recoll-1.21.5/0000755000175000017500000000000012652665303012372 5ustar dockesdockesrecoll-1.21.5/sampleconf/0000755000175000017500000000000012652665251014523 5ustar dockesdockesrecoll-1.21.5/sampleconf/recoll.conf.in0000644000175000017500000004354212602163572017261 0ustar dockesdockes# (C) 2004 J.F.Dockes. License: GPL # # Recoll default configuration file. This typically lives in # @prefix@/share/recoll/examples and provides default values. You can # override selected parameters by adding assigments to # ~/.recoll/recoll.conf (or $RECOLL_CONFDIR/recoll.conf) # # Almost all values in this file can be set from the GUI configuration # menus, which may be an easier approach than direct editing. # # Space-separated list of directories to index. Next line indexes $HOME topdirs = ~ # Wildcard expressions for names of files and directories that we should # ignore. If you need index mozilla/thunderbird mail folders, don't put # ".*" in there (as was the case with an older sample config) # These are simple names, not paths (must contain no / ) skippedNames = #* bin CVS Cache cache* .cache caughtspam tmp \ .thumbnails .svn \ *~ .beagle .git .hg .bzr loop.ps .xsession-errors \ .recoll* xapiandb recollrc recoll.conf # Wildcard expressions for paths we shouldn't go into. The database and # configuration directories will automatically be added in there. # We add the usual mount point for removable media by default to remind # people that it is a bad idea to naively have recoll work on these # (esp. with the monitor: media gets indexed on mount, all data gets erased # on unmount...). Typically the presence of /media is mostly a reminder, it # would only have effect for someone who's indexing / ... # Explicitely adding /media/xxx to the topdirs will override this. skippedPaths = /media # List of suffixes for which we don't try mime type identification (and # don't uncompress or index content obviously). This complements the now # obsoleted mimemap recoll_noindex list, which will go away in a future # release (the move from mimemap to recoll.conf allows editing the list # through the GUI). This is different from skippedNames because these are # name ending matches only (not wildcard patterns), and the file name # itself gets indexed normally. noContentSuffixes = .md5 .map \ .o .lib .dll .a .sys .exe .com \ .mpp .mpt .vsd \ .img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz \ .dat .bak .rdf .log.gz .log .db .msf .pid \ ,v ~ # # Same for real time indexing. The idea here is that there is stuff that # you might want to initially index but not monitor. If daemSkippedPaths is # not set, the daemon uses skippedPaths. #daemSkippedPaths = # Recoll uses FNM_PATHNAME by default when matching skipped paths, which # means that /dir1/dir2/dir3 is not matched by */dir3. Can't change the # default now, but you can set the following variable to 0 to disable the # use of FNM_PATHNAME (see fnmatch(3) man page) #skippedPathsFnmPathname = 1 # Option to follow symbolic links. We normally don't, to avoid duplicated # indexing (in any case, no effort is made to identify or avoid multiple # indexing of linked files) #followLinks = 0 # Debug messages. 2 is errors/warnings only. 3 information like doc # updates, 4 is quite verbose and 6 very verbose loglevel = 3 logfilename = stderr # Specific versions of log file name and level for the indexing daemon. The # default is to use the above values. # daemloglevel = 3 # daemlogfilename = /dev/null # Run directory for the indexing process. The filters sometimes leave # garbage in the current directory, so it makes sense to have recollindex # chdir to some garbage bin. 3 possible values: # - (literal) tmp : go to temp dir as set by env (RECOLL_TMPDIR else # TMPDIR else /tmp) # - Empty: stay where started # - Absolute path value: go there. idxrundir = tmp # Decide if we store character case and diacritics in the index. If we do, # searches sensitive to case and diacritics can be performed, but the index # will be bigger, and some marginal weirdness may sometimes occur. We # default to a stripped index for now. indexStripChars = 1 # IF the index is not stripped. Decide if we automatically trigger # diacritics sensitivity if the search term has accented characters (not in # unac_except_trans). Else you need to use the query language and the "D" # modifier to specify diacritics sensitivity. Default is no. autodiacsens = 0 # IF the index is not stripped. Decide if we automatically trigger # character case sensitivity if the search term has upper-case characters # in any but the first position. Else you need to use the query language # and the "C" modifier to specify character-case sensitivity. Default is # yes. autocasesens = 1 # Languages for which to build stemming databases at the end of # indexing. Stemmer names can be found on http://www.xapian.org # The flag to perform stem expansion at query time is now set from the GUI indexstemminglanguages = english # Default character set. Values found inside files, ie content tag in html # documents, will override this. It can be specified per directory (see # below). Used when converting to utf-8 (internal storage format), so it # may be quite important for pure text files. # The default used to be set to iso8859-1, but we now take it from the nls # environment (LC_ALL/LC_CTYPE/LANG). The ultimate hardwired default is # still 8859-1. If for some reason you want a general default which doesnt # match your LANG and is not 8859-1, set it here. # defaultcharset = iso-8859-1 # A list of characters, encoded in UTF-8, which should be handled specially # when converting text to unaccented lowercase. For example, in Swedish, # the letter a with diaeresis has full alphabet citizenship and should not # be turned into an a. # Each element in the space-separated list has the special character as # first element and the translation following. The handling of both the # lowercase and upper-case versions of a character should be specified, as # appartenance to the list will turn-off both standard accent and case # processing. Examples: # Swedish: # unac_except_trans = ää Ää öö Öö üü Üü ßss œoe Œoe æae Æae ffff fifi flfl åå Åå # German: # unac_except_trans = ää Ää öö Öö üü Üü ßss œoe Œoe æae Æae ffff fifi flfl # In French, you probably want to decompose oe and ae and nobody would type # a German ß # unac_except_trans = ßss œoe Œoe æae Æae ffff fifi flfl # Reasonable default for all until someone protests. These decompositions # are not performed by unac, but I cant imagine someone typing the composed # forms in a search. unac_except_trans = ßss œoe Œoe æae Æae ffff fifi flfl # Maximum expansion count for a single term (ie: when using wildcards). # We used to not limit this at all (except for filenames where the limit # was too low at 1000), but it is unreasonable with a big index. # Default 10 000 maxTermExpand = 10000 # Maximum number of clauses we add to a single Xapian query. In some cases, # the result of term expansion can be multiplicative, and we want to avoid # eating all the memory. Default 50000 maxXapianClauses = 50000 # Where to store the database (directory). This may be an absolute path, # else it is taken as relative to the configuration directory (-c argument # or $RECOLL_CONFDIR). # If nothing is specified, the default is then ~/.recoll/xapiandb/ dbdir = xapiandb # Indexing process threads configuration. If Recoll is configured for # multithreading, this defines what queues are active and how many threads # to start for any of them. The default values were found good on a # quad-core processor. The three steps are file conversion, term extraction # and conversion and Xapian index update. The three queue values define the # max number of jobs waiting on one of the corresponding queues. Setting a # value to -1 disables a queue (replaced by a direct call). The thrTcounts # values define the number of threads to start for each queue. The last # value can only be one (as Xapian is single-threaded). # If the first element in thrQSizes is 0, recollindex will attempt to set # roughly guestimated values based on the number of CPUs. # # The following are the best setup on my core i5 system (4 cores, no # hyperthreading, multiple disks). #thrQSizes = 2 2 2 #thrTCounts = 4 2 1 # The default is to let recoll guess. thrQSizes = 0 # Maximum file system occupation before we stop indexing. The default value # is 0, meaning no checking. The value is a percentage, corresponding to # what the "Capacity" df output column shows. maxfsoccuppc = 0 # Threshold (megabytes of new data) where we flush from memory to disk # index. Setting this (ie to 10) can help control memory usage. # # A value of 0 means no explicit flushing, which lets Xapian perform its # own thing, meaning flushing every XAPIAN_FLUSH_THRESHOLD documents # created, modified or deleted. XAPIAN_FLUSH_THRESHOLD is an environment # variable. As memory usage depends on average document size, not only # document count, this is not very useful. # # The default value of 10 MB may be a bit low. If you are looking for # maximum speed, you may want to experiment with values between 20 and # 80. In my experience, values beyond 100 are always counterproductive. If # you find otherwise, please drop me a note. idxflushmb = 10 # Place to search for executable filters. If RECOLL_FILTERSDIR is set in # the environment, we use it instead filtersdir = @prefix@/share/recoll/filters # Place to search for icons. The only reason to change this would be if you # want to change the icons displayed in the result list iconsdir = @prefix@/share/recoll/images # Should we use the system's 'file -i' command as a final step in file type # identification ? This may be useful, but will usually cause the # indexation of many bogus 'text' files usesystemfilecommand = 1 # Actual command to use as "file -i" workalike. xdg-mime works fine here. # The file path will be added as a last parameter to the command line. If # that's not what your preferred command would like, use an intermediary # script. # systemfilecommand = xdg-mime query filetype # systemfilecommand = file -i filetype # Should we index the file names of files with mime types we don't # know? (we can otherwise just ignore them) indexallfilenames = 1 # A restrictive list of indexed mime types. Normally not set. If it is set, # only the types from the list will have their contents indexed (the names # will be indexed anyway if indexallfilenames is set as by default). Mime # type names should be taken from the mimemap file. # # indexedmimetypes = # An excluded list of mime types. It can be redefined in subdirectories, # so can be used to locally exclude some types. # # excludededmimetypes = # # Size limit for archive members. This is passed to the filters in the # environment as RECOLL_FILTER_MAXMEMBERKB # membermaxkbs = 50000 # Size limit for compressed files. We need to decompress these in a # temporary directory for identification, which can be wasteful in some # cases. Limit the waste. Negative means no limit. 0 results in no # processing of any compressed file. Used to be -1 by default. compressedfilemaxkbs = 20000 # Size limit for text files. This is for skipping monster logs textfilemaxmbs = 20 # Page size for text files. If this is set, text/plain files will be # divided into documents of approximately this size. May be useful to # access pieces of big text files which would be problematic to load as one # piece into the preview window. Might be useful for big logs textfilepagekbs = 1000 # Maximum external filter execution time. Default 20mn. This is mainly # to avoid infinite loops in postscript files (loop.ps) filtermaxseconds = 1200 # Maximum virtual memory space for filter process (setrlimit(RLIMIT_AS)), # in megabytes. Note that this includes any mapped libs (there is no # reliable Linux way to limit the data space only), so we need to be a # bit generous here. Anything over 2000 will be ignored on 32 bits machines. filtermaxmbytes = 2000 # Length of abstracts we store while indexing. Longer will make for a # bigger db # idxabsmlen = 250 # Truncation length of stored metadata fields. This does not affect # indexing, just what can be displayed inside results. # idxmetastoredlen = 150 # Language definitions to use when creating the aspell dictionary. # The value must match a set of aspell language definition files. # You can type "aspell dicts" to see a list # The default if this is not set is to use the NLS environment to guess the # value # aspellLanguage = en # Somme aspell packages may need an additional option (e.g. on Debian # Jessie). See Debian bug 772415 # aspellAddCreateParam = --local-data-dir=/usr/lib/aspell # You may also want to set this to have a look at aspell dictionary # creation errors. But there are always many, so this is mostly for debugging # aspellKeepStderr = 1 # Disabling aspell use. The aspell dictionary generation takes some time, # and some combinations of aspell version, language, and local terms, # result in aspell dumping core each time. You can disable the aspell # dictionary generation by setting the following variable: # noaspell = 1 # Timing parameters for the real time mode: # # Seconds between auxiliary databases updates (stemdb, aspell): # monauxinterval = 3600 # # Resting time (seconds) during which we let the queue accumulate, in hope # that events to the same file will merge, before we start indexing: # monixinterval = 30 # # Definitions for files which get a longer delay before reindexing is # allowed. This is for fast-changing files, that should only be reindexed # once in a while. A list of wildcardPattern:seconds pairs. The patterns # are matched with fnmatch(pattern, path, 0) You can quote entries containing # white space with double quotes. The default is empty, here follows an # example: # mondelaypatterns = *.log:20 "*with spaces.*:30" # ionice class for monitor (on platforms where this is supported) # monioniceclass = 3 # ionice class param for monitor (on platforms where this is supported) # monioniceclassdata = # If this is set, process the directory where the Recoll Web browser plugins # copy visited pages for indexing. processwebqueue = 0 # The path to the Web indexing queue. This is hard-coded in the # plugin as ~/.recollweb/ToIndex so there should be no need to change it. #webqueuedir = ~/.recollweb/ToIndex # This is only used by the web history indexing code, and # defines where the cache for visited pages will live. Default: # $RECOLL_CONFDIR/webcache webcachedir = webcache # This is only used by the web history indexing code, and # defines the maximum size for the web page cache. Default: 40 MB. # ** Quite unfortunately, this is only used when creating the file, you # need to delete the cache for a change to be taken into account ** webcachemaxmbs = 40 # The directory where mbox message offsets cache files are held. This is # normally $RECOLL_CONFDIR/mboxcache, but it may be useful to share a # directory between different configurations. #mboxcachedir = mboxcache # The minimum mbox file size over which we cache the offsets. There is # really no sense in caching offsets for small files. The default is 5 MB. #mboxcacheminmbs = 5 # Maximum number of positions we walk while populating a snippet for the # result list. The default of 1 000 000 may be insufficient for big # documents, the consequence would be snippets with possibly # meaning-altering missing words. snippetMaxPosWalk = 1000000 # Use mtime instead of default ctime to determine if a file has been # modified (in addition to size, which is always used). # Setting this can reduce re-indexing on systems where extended attributes # are used (by some other applications), but not indexed (changing # ext. attrs. only affects ctime). # Notes: # - this may prevent detection of change in some marginal file rename cases # (the target would need to have the same size and mtime). # - You should probably also set noxattrfields to 1 in this case, except if # you still prefer to perform xattr indexing, for example if the local # file update pattern makes it of value (as in general, there is a risk # for pure extended attributes updates without file modification to go # undetected). Perform a full index reset after changing this. testmodifusemtime = 0 # Script used to heuristically check if we need to retry indexing files # which previously failed. The default script checks the modified dates on # /usr/bin and /usr/local/bin. A relative path will be looked up in the # filters dirs, then in the path. Use an absolute path to do otherwise. checkneedretryindexscript = rclcheckneedretry.sh # Disable extended attributes conversion to metadata fields. This probably # needs to be set if testmodifusemtime is set. noxattrfields = 0 # You could specify different parameters for a subdirectory like this: #[~/hungariandocs/plain] #defaultcharset = iso-8859-2 # You can set fields on all files of a specific fs area. (rclaptg can be # used for application selection inside mimeview). # Syntax is the usual name = value ; attr1 = val1 ; ... with an empty value # so needs initial semi-colon #[/some/app/directory] #localfields = ; rclaptg = someapp; otherfield = somevalue # It's also possible to execute external commands to gather external # metadata, for example tmsu tags. # There can be several entries, separated by semi-colons, each defining # which field name the data goes into and the command to use. Don't forget the # initial semi-colon. All the field names must be different. You can use # aliases in the "field" file if necessary. # As a not too pretty hack conceded to convenience, any field name # beginning with "rclmulti" will be taken as an indication that the command # returns multiple field values inside a text blob formatted as a recoll # configuration file ("fieldname = fieldvalue" lines). The rclmultixx name # will be ignored, and field names and values will be parsed from the data. #[/some/area/of/the/fs] #metadatacmds = ; tags = tmsu tags %f; rclmulti1 = cmdOutputsConf %f [/usr/share/man] followLinks = 1 # Enable thunderbird mbox format quirks where appropriate, and same for # mozilla/seamonkey [~/.thunderbird] mhmboxquirks = tbird [~/.mozilla] mhmboxquirks = tbird # pidgin / purple directories for irc chats have names beginning with # [~/.purple] skippedNames = recoll-1.21.5/sampleconf/fragbuts.xml0000644000175000017500000000234112602163540017047 0ustar dockesdockes -rclbes:BGL rclbes:BGL date:2010-01-01/2010-12-31 ext:cpp OR ext:cxx dir:/my/great/directory recoll-1.21.5/sampleconf/mimeview0000644000175000017500000001461612602163540016265 0ustar dockesdockes# @(#$Id: mimeview,v 1.16 2008-09-15 08:03:37 dockes Exp $ (C) 2004 J.F.Dockes ## ########################################## # External viewers, launched by the recoll GUI when you click on a result # 'edit' link # Mime types which we should not uncompress if they are found gzipped or # bzipped because the native viewer knows how to handle. These would be # exceptions and the list is normally empty #nouncompforviewmts = # For releases 1.18 and later: exceptions when using the x-all entry: these # types will use their local definition. This is useful, e.g.: # # - for pdf, where we can pass additional parameters like page to open and # search string # - For pages of CHM and EPUB documents where we can choose to open the # parent document instead of a temporary html file. xallexcepts = application/pdf application/postscript application/x-dvi \ text/html|gnuinfo text/html|chm text/html|epub \ application/x-fsdirectory|parentopen inode/directory|parentopen [view] # Pseudo entry used if the 'use desktop' preference is set in the GUI application/x-all = xdg-open %u application/epub+zip = ebook-viewer %f # Open the parent epub document for epub parts instead of opening them as # html documents. This is almost always what we want. text/html|epub = ebook-viewer %F;ignoreipath=1 application/x-gnote = gnote %f application/x-mobipocket-ebook = ebook-viewer %f application/x-kword = kword %f application/x-abiword = abiword %f application/pdf = evince --page-index=%p --find=%s %f # Or: #application/pdf = qpdfview --search %s %f#%p application/postscript = evince --page-index=%p --find=%s %f application/x-dvi = evince --page-index=%p --find=%s %f application/x-lyx = lyx %f application/x-scribus = scribus %f application/msword = libreoffice %f application/vnd.ms-excel = libreoffice %f application/vnd.ms-powerpoint = libreoffice %f application/vnd.oasis.opendocument.text = libreoffice %f application/vnd.oasis.opendocument.presentation = libreoffice %f application/vnd.oasis.opendocument.spreadsheet = libreoffice %f application/vnd.openxmlformats-officedocument.wordprocessingml.document = \ libreoffice %f application/vnd.openxmlformats-officedocument.wordprocessingml.template = \ libreoffice %f application/vnd.openxmlformats-officedocument.presentationml.template = \ libreoffice %f application/vnd.openxmlformats-officedocument.presentationml.presentation = \ libreoffice %f application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = \ libreoffice %f application/vnd.openxmlformats-officedocument.spreadsheetml.template =\ libreoffice %f application/vnd.sun.xml.calc = libreoffice %f application/vnd.sun.xml.calc.template = libreoffice %f application/vnd.sun.xml.draw = libreoffice %f application/vnd.sun.xml.draw.template = libreoffice %f application/vnd.sun.xml.impress = libreoffice %f application/vnd.sun.xml.impress.template = libreoffice %f application/vnd.sun.xml.math = libreoffice %f application/vnd.sun.xml.writer = libreoffice %f application/vnd.sun.xml.writer.global = libreoffice %f application/vnd.sun.xml.writer.template = libreoffice %f application/vnd.wordperfect = libreoffice %f text/rtf = libreoffice %f application/x-dia-diagram = dia %f application/x-fsdirectory = dolphin %f inode/directory = dolphin %f # Both dolphin and nautilus can pre-select a file inside a # directory. Thunar can't afaik. xdg-open cant pass an additional # parameters so these are to be xallexcepts. application/x-fsdirectory|parentopen = dolphin --select %(childurl) %f inode/directory|parentopen = dolphin --select %(childurl) %f #application/x-fsdirectory|parentopen = nautilus %(childurl) #inode/directory|parentopen = nautilus %(childurl) application/x-gnuinfo = xterm -e "info -f %f" application/x-gnumeric = gnumeric %f application/x-flac = rhythmbox %f audio/mpeg = rhythmbox %f application/ogg = rhythmbox %f audio/x-karaoke = kmid %f image/jpeg = gwenview %f image/png = gwenview %f image/tiff = gwenview %f image/gif = gwenview %f image/svg+xml = inkview %f image/vnd.djvu = djview %f image/x-xcf = gimp %f image/bmp = gwenview %f image/x-ms-bmp = gwenview %f image/x-xpmi = gwenview %f # Opening mail messages not always works. # - Thunderbird will only open a single-message file if it has an .emf # extension # - "sylpheed %f" seems to work ok as of version 3.3 # - "kmail --view %u" works message/rfc822 = thunderbird -file %f text/x-mail = thunderbird -file %f application/x-mimehtml = thunderbird -file %f text/calendar = evolution %f application/x-okular-notes = okular %f application/x-rar = ark %f application/x-tar = ark %f application/zip = ark %f application/x-7z-compressed = ark %f application/x-awk = emacsclient --no-wait %f application/x-perl = emacsclient --no-wait %f text/x-perl = emacsclient --no-wait %f application/x-shellscript = emacsclient --no-wait %f text/x-shellscript = emacsclient --no-wait %f # Or firefox -remote "openFile(%u)" text/html = firefox %u # gnu info nodes are translated to html with a "gnuinfo" # rclaptg. rclshowinfo knows how to start the info command on the right # node text/html|gnuinfo = rclshowinfo %F %(title);ignoreipath=1 application/x-webarchive = konqueror %f text/x-fictionbook = ebook-viewer %f application/x-tex = emacsclient --no-wait %f application/xml = emacsclient --no-wait %f text/xml = emacsclient --no-wait %f text/x-tex = emacsclient --no-wait %f text/plain = emacsclient --no-wait %f text/x-awk = emacsclient --no-wait %f text/x-c = emacsclient --no-wait %f text/x-c+ = emacsclient --no-wait %f text/x-c++ = emacsclient --no-wait %f text/x-csv = libreoffice %f text/x-html-sidux-man = konqueror %f text/x-html-aptosid-man = iceweasel %f application/x-chm = kchmviewer %f # Html pages inside a chm have a chm rclaptg set by the filter. Kchmviewer # knows how to use the ipath (which is the internal chm path) to open the # file at the right place text/html|chm = kchmviewer --url %i %F text/x-ini = emacsclient --no-wait %f text/x-man = xterm -u8 -e "groff -T ascii -man %f | more" text/x-python = idle %f text/x-gaim-log = emacsclient --no-wait %f text/x-purple-html-log = emacsclient --no-wait %f text/x-purple-log = emacsclient --no-wait %f # The video types will usually be handled by the desktop default, but they # need entries here to get an "Open" link video/3gpp = vlc %f video/mp2p = vlc %f video/mp2t = vlc %f video/mp4 = vlc %f video/mpeg = vlc %f video/quicktime = vlc %f video/x-matroska = vlc %f video/x-ms-asf = vlc %f video/x-msvideo = vlc %f recoll-1.21.5/sampleconf/mimeview.mac0000644000175000017500000001275412602163540017025 0ustar dockesdockes# @(#$Id: mimeview,v 1.16 2008-09-15 08:03:37 dockes Exp $ (C) 2004 J.F.Dockes ## ########################################## # External viewers, launched by the recoll GUI when you click on a result # 'Open' link - MAC version # On the MAC, we use "open" for everything... # Mime types which we should not uncompress if they are found gzipped or # bzipped because the native viewer knows how to handle. These would be # exceptions and the list is normally empty #nouncompforviewmts = # For releases 1.18 and later: exceptions when using the x-all entry: these # types will use their local definition. This is useful, e.g.: # # - for pdf, where we can pass additional parameters like page to open and # search string # - For pages of CHM and EPUB documents where we can choose to open the # parent document instead of a temporary html file. #xallexcepts = application/pdf application/postscript application/x-dvi \ # text/html|gnuinfo text/html|chm text/html|epub [view] # Pseudo entry used if the 'use desktop' preference is set in the GUI application/x-all = open %f application/epub+zip = ebook-viewer %f # If you want to open the parent epub document for epub parts instead of # opening them as html documents: #text/html|epub = ebook-viewer %F;ignoreipath=1 application/x-mobipocket-ebook = ebook-viewer %f application/x-kword = kword %f application/x-abiword = abiword %f application/pdf = evince --page-index=%p --find=%s %f application/postscript = evince --page-index=%p --find=%s %f application/x-dvi = evince --page-index=%p --find=%s %f application/x-lyx = lyx %f application/x-scribus = scribus %f application/msword = libreoffice %f application/vnd.ms-excel = libreoffice %f application/vnd.ms-powerpoint = libreoffice %f application/vnd.oasis.opendocument.text = libreoffice %f application/vnd.oasis.opendocument.presentation = libreoffice %f application/vnd.oasis.opendocument.spreadsheet = libreoffice %f application/vnd.openxmlformats-officedocument.wordprocessingml.document = \ libreoffice %f application/vnd.openxmlformats-officedocument.wordprocessingml.template = \ libreoffice %f application/vnd.openxmlformats-officedocument.presentationml.template = \ libreoffice %f application/vnd.openxmlformats-officedocument.presentationml.presentation = \ libreoffice %f application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = \ libreoffice %f application/vnd.openxmlformats-officedocument.spreadsheetml.template =\ libreoffice %f application/vnd.sun.xml.calc = libreoffice %f application/vnd.sun.xml.calc.template = libreoffice %f application/vnd.sun.xml.draw = libreoffice %f application/vnd.sun.xml.draw.template = libreoffice %f application/vnd.sun.xml.impress = libreoffice %f application/vnd.sun.xml.impress.template = libreoffice %f application/vnd.sun.xml.math = libreoffice %f application/vnd.sun.xml.writer = libreoffice %f application/vnd.sun.xml.writer.global = libreoffice %f application/vnd.sun.xml.writer.template = libreoffice %f application/vnd.wordperfect = libreoffice %f text/rtf = libreoffice %f application/x-chm = kchmviewer %f application/x-dia-diagram = dia %f application/x-fsdirectory = dolphin %f application/x-gnuinfo = xterm -e "info -f %f" application/x-gnumeric = gnumeric %f application/x-flac = rhythmbox %f audio/mpeg = rhythmbox %f application/ogg = rhythmbox %f audio/x-karaoke = kmid %f image/jpeg = gwenview %f image/png = gwenview %f image/tiff = gwenview %f image/gif = gwenview %f image/svg+xml = inkview %f image/vnd.djvu = djview %f image/x-xcf = gimp %f image/bmp = gwenview %f image/x-ms-bmp = gwenview %f image/x-xpmi = gwenview %f message/rfc822 = thunderbird -file %f text/x-mail = thunderbird -file %f application/x-mimehtml = thunderbird -file %f text/calendar = evolution %f application/x-okular-notes = okular %f application/x-rar = ark %f application/x-tar = ark %f application/zip = ark %f application/x-7z-compressed = ark %f application/x-awk = emacsclient %f application/x-perl = emacsclient %f text/x-perl = emacsclient %f application/x-shellscript = emacsclient %f text/x-shellscript = emacsclient %f # Or firefox -remote "openFile(%u)" text/html = firefox %u # gnu info nodes are translated to html with a "gnuinfo" # rclaptg. rclshowinfo knows how to start the info command on the right # node text/html|gnuinfo = rclshowinfo %F %(title);ignoreipath=1 application/x-webarchive = konqueror %f text/x-fictionbook = ebook-viewer %f application/x-tex = emacsclient %f application/xml = emacsclient %f text/xml = emacsclient %f text/x-tex = emacsclient %f text/plain = emacsclient %f text/x-awk = emacsclient %f text/x-c = emacsclient %f text/x-c+ = emacsclient %f text/x-c++ = emacsclient %f text/x-csv = libreoffice %f text/x-html-sidux-man = konqueror %f text/x-html-aptosid-man = iceweasel %f # Html pages inside a chm have a chm rclaptg set by the filter. Kchmviewer # knows how to use the ipath (which is the internal chm path) to open the # file at the right place text/html|chm = kchmviewer --url %i %F text/x-ini = emacsclient %f text/x-man = xterm -u8 -e "groff -T ascii -man %f | more" text/x-python = idle %f text/x-gaim-log = emacsclient %f text/x-purple-html-log = emacsclient %f text/x-purple-log = emacsclient %f # The video types will usually be handled by the desktop default, but they # need entries here to get an "Open" link video/3gpp = open %f video/mp2p = open %f video/mp2t = open %f video/mp4 = open %f video/mpeg = open %f video/quicktime = open %f video/x-matroska = open %f video/x-ms-asf = open %f video/x-msvideo = open %f recoll-1.21.5/sampleconf/mimeconf0000644000175000017500000003450412602163572016243 0ustar dockesdockes# (C) 2004 J.F.Dockes # This file contains most of the data which determines how we # handle the different mime types (also see the "mimeview" file). # Sections: # top-level: Decompression parameters. Should not be at top-level, historical. # [index] : Associations of mime types to the filters that translate them # to plain text or html. # [icons] : Associations of mime types to result list icons (GUI) # [categories] : groupings of mime types (media, text, message etc.) # [guifilters] : defines the filtering checkboxes in the GUI. Uses the # above categories by default ## ####################################### # Decompression: these types need a first pass to create a temp file to # work with. We use a script because uncompress utilities usually work in # place, which is not suitable. # # Obviously this should be in a [decompress] section or such, but it was once # forgotten and remained global for compatibility... # # The %t parameter will be substituted to the name of a temporary directory # by recoll. This directory is guaranteed empty when calling the filter # # The %f parameter will be substituted with the input file. # # The script (ie: rcluncomp) must output the uncompressed file name on # stdout. application/gzip = uncompress rcluncomp gunzip %f %t application/x-gzip = uncompress rcluncomp gunzip %f %t application/x-compress = uncompress rcluncomp gunzip %f %t application/x-bzip2 = uncompress rcluncomp bunzip2 %f %t application/x-xz = uncompress rcluncomp unxz %f %t application/x-lzma = uncompress rcluncomp unxz %f %t ## ################################### # Filters for indexing and internal preview. # The "internal" filters are hardwired in the c++ code. # The external "exec" filters are typically scripts. By default, they output the # document in simple html format, have a look at the scripts. # A different format (ie text/plain), and a character set can be defined for # each filter, see the exemples below (ie: msword) [index] application/epub+zip = execm rclepub # Returned by xdg-mime for .js. Future-proofing application/javascript = internal text/plain # MSWORD: the rcldoc script handles a number of marginal case that raw # antiword won't: # - with wvWare: "text stream of this file is too small to handle" # - with unrtf: rtf files disguising as doc files. # The default is now again to use rcldoc. Use raw antiword if speed is more # important for you than catching all data, application/msword = exec rcldoc #application/msword = exec antiword -t -i 1 -m UTF-8;mimetype=text/plain # You can also use wvware directly but it's much slower. # application/msword = exec wvWare --charset=utf-8 --nographics # Also Handle the mime type returned by "file -i" for a suffix-less word # file. This could probably just as well be an excel file, but we have to # chose one. application/vnd.ms-office = exec rcldoc application/ogg = execm rclaudio application/pdf = exec rclpdf # application/pdf = execm rclmpdf application/postscript = exec pstotext;charset=iso-8859-1;mimetype=text/plain application/vnd.ms-excel = exec rclxls application/vnd.ms-powerpoint = exec rclppt application/vnd.oasis.opendocument.text = exec rclsoff application/vnd.oasis.opendocument.text-template = exec rclsoff application/vnd.oasis.opendocument.presentation = exec rclsoff application/vnd.oasis.opendocument.spreadsheet = exec rclsoff application/vnd.oasis.opendocument.graphics = exec rclsoff application/vnd.openxmlformats-officedocument.wordprocessingml.document = \ exec rclopxml application/vnd.openxmlformats-officedocument.wordprocessingml.template = \ exec rclopxml application/vnd.openxmlformats-officedocument.presentationml.template = \ exec rclopxml application/vnd.openxmlformats-officedocument.presentationml.presentation = \ exec rclopxml application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = \ exec rclopxml application/vnd.openxmlformats-officedocument.spreadsheetml.template =\ exec rclopxml application/vnd.sun.xml.calc = exec rclsoff application/vnd.sun.xml.calc.template = exec rclsoff application/vnd.sun.xml.draw = exec rclsoff application/vnd.sun.xml.draw.template = exec rclsoff application/vnd.sun.xml.impress = exec rclsoff application/vnd.sun.xml.impress.template = exec rclsoff application/vnd.sun.xml.math = exec rclsoff application/vnd.sun.xml.writer = exec rclsoff application/vnd.sun.xml.writer.global = exec rclsoff application/vnd.sun.xml.writer.template = exec rclsoff application/vnd.wordperfect = exec wpd2html;mimetype=text/html application/x-abiword = exec rclabw application/x-awk = internal text/plain application/x-chm = execm rclchm application/x-dia-diagram = execm rcldia;mimetype=text/plain application/x-dvi = exec rcldvi application/x-flac = execm rclaudio application/x-gnote = exec rclxml application/x-gnuinfo = execm rclinfo application/x-gnumeric = exec rclgnm application/x-kword = exec rclkwd application/x-lyx = exec rcllyx application/x-mimehtml = internal message/rfc822 #application/x-mobipocket-ebook = execm rclmobi application/x-okular-notes = exec rclokulnote application/x-perl = internal text/plain # Returned by xdg-mime for .php. Future-proofing application/x-php = internal text/plain application/x-rar = execm rclrar;charset=default application/x-scribus = exec rclscribus application/x-shellscript = internal text/plain #application/x-tar = execm rcltar application/x-tex = exec rcltex application/x-webarchive = execm rclwar application/zip = execm rclzip;charset=default application/x-7z-compressed = execm rcl7z audio/mpeg = execm rclaudio audio/mp4 = execm rclaudio audio/aac = execm rclaudio audio/x-karaoke = execm rclkar image/gif = execm rclimg image/jp2 = execm rclimg image/jpeg = execm rclimg image/png = execm rclimg image/tiff = execm rclimg image/vnd.djvu = exec rcldjvu image/svg+xml = exec rclsvg image/x-xcf = execm rclimg inode/symlink = internal inode/x-empty = exec rclnull message/rfc822 = internal text/calendar = execm rclics;mimetype=text/plain text/html = internal text/plain = internal text/rtf = exec unrtf --nopict --html;mimetype=text/html text/x-c = internal text/x-c++ = internal text/x-c+ = internal text/x-csv = internal text/plain text/x-fictionbook = exec rclfb2 text/x-gaim-log = exec rclgaim text/x-html-sidux-man = exec rclsiduxman text/x-html-aptosid-man = exec rclaptosidman text/x-chm-html = internal text/html text/x-ini = internal text/plain text/x-mail = internal text/x-man = exec rclman text/x-perl = internal text/plain text/x-purple-log = exec rclpurple text/x-purple-html-log = internal text/html text/x-python = exec rclpython text/x-shellscript = internal text/plain text/x-tex = exec rcltex application/xml = exec rclxml text/xml = exec rclxml # Using these instead of the two above would index all parameter and tag # names, attribute values etc, instead of just the text content. #application/xml = internal text/plain #text/xml = internal text/plain ## ############################################# # Icons to be used in the result list if required by gui config [icons] application/epub+zip = book application/javascript = source application/msword = wordprocessing application/ogg = sownd application/pdf = pdf application/postscript = postscript application/vnd.ms-excel = spreadsheet application/vnd.ms-powerpoint = presentation application/vnd.oasis.opendocument.presentation = presentation application/vnd.oasis.opendocument.spreadsheet = spreadsheet application/vnd.oasis.opendocument.text = wordprocessing application/vnd.openxmlformats-officedocument.presentationml.presentation = presentation application/vnd.openxmlformats-officedocument.presentationml.template = presentation application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = spreadsheet application/vnd.openxmlformats-officedocument.spreadsheetml.template = spreadsheet application/vnd.openxmlformats-officedocument.wordprocessingml.document = wordprocessing application/vnd.openxmlformats-officedocument.wordprocessingml.template = wordprocessing application/vnd.sun.xml.calc = spreadsheet application/vnd.sun.xml.calc.template = spreadsheet application/vnd.sun.xml.draw = drawing application/vnd.sun.xml.draw.template = drawing application/vnd.sun.xml.impress = presentation application/vnd.sun.xml.impress.template = presentation application/vnd.sun.xml.math = wordprocessing application/vnd.sun.xml.writer = wordprocessing application/vnd.sun.xml.writer.global = wordprocessing application/vnd.sun.xml.writer.template = wordprocessing application/vnd.wordperfect = wordprocessing application/x-abiword = wordprocessing application/x-awk = source application/x-chm = book application/x-dia-diagram = drawing application/x-dvi = document application/x-flac = sownd application/x-fsdirectory = folder application/x-gnote = document application/x-gnuinfo = book application/x-gnumeric = spreadsheet application/x-kword = wordprocessing application/x-lyx = wordprocessing application/x-mimehtml = message application/x-mobipocket-ebook = document application/x-okular-notes = document application/x-perl = source application/x-php = source application/x-rar = archive application/x-scribus = document application/x-scribus = wordprocessing application/x-shellscript = source application/x-tar = archive application/x-tex = wordprocessing application/x-webarchive = archive application/xml = document application/zip = archive application/x-7z-compressed = archive audio/mpeg = sownd audio/x-karaoke = sownd image/bmp = image image/gif = image image/jp2 = image image/jpeg = image image/png = image image/svg+xml = drawing image/tiff = image image/vnd.djvu = document image/x-xcf = image image/x-xpmi = image inode/directory = folder inode/symlink = emblem-symbolic-link message/rfc822 = message text/html = html text/html|chm = bookchap text/html|epub = bookchap text/html|gnuinfo = bookchap text/plain = txt text/rtf = wordprocessing text/x-c = source text/x-c+ = source text/x-c++ = source text/x-csv = txt text/x-fictionbook = document text/x-html-aptosid-man = aptosid-book text/x-html-sidux-man = sidux-book text/x-ini = txt text/x-mail = message text/x-man = document text/x-perl = source text/x-purple-html-log = pidgin text/x-purple-log = pidgin text/x-python = text-x-python text/x-shellscript = source text/x-tex = wordprocessing text/xml = document video/3gpp = video video/mp2p = video video/mp2t = video video/mp4 = video video/mpeg = video video/quicktime = video video/x-matroska = video video/x-ms-asf = video video/x-msvideo = video [categories] # Categories group mime types by "kind". They can be used from the query # language as an "rclcat" clause. This is fully dynamic, you can change the # names and groups as you wish, only the mime types are stored in the index. # # If you add/remove categories, you may also want to change the # "guifilters" section below. text = \ application/epub+zip \ application/msword \ application/pdf \ application/postscript \ application/vnd.oasis.opendocument.text \ application/vnd.openxmlformats-officedocument.wordprocessingml.document \ application/vnd.openxmlformats-officedocument.wordprocessingml.template \ application/vnd.sun.xml.writer \ application/vnd.sun.xml.writer.global \ application/vnd.sun.xml.writer.template \ application/vnd.wordperfect \ application/x-abiword \ application/x-awk \ application/x-chm \ application/x-dvi \ application/x-gnote \ application/x-gnuinfo \ application/x-kword \ application/x-lyx \ application/x-mobipocket-ebook \ application/x-okular-notes \ application/x-perl \ application/x-scribus \ application/x-shellscript \ application/x-tex \ application/xml \ text/xml \ text/x-csv \ text/x-tex \ image/vnd.djvu \ text/calendar \ text/html \ text/plain \ text/rtf \ text/x-c \ text/x-c++ \ text/x-c+ \ text/x-fictionbook \ text/x-html-aptosid-man \ text/x-html-sidux-man \ text/x-ini \ text/x-man \ text/x-perl \ text/x-python \ text/x-shellscript spreadsheet = \ application/vnd.ms-excel \ application/vnd.oasis.opendocument.spreadsheet \ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet \ application/vnd.openxmlformats-officedocument.spreadsheetml.template \ application/vnd.sun.xml.calc \ application/vnd.sun.xml.calc.template \ application/x-gnumeric presentation = \ application/vnd.ms-powerpoint \ application/vnd.oasis.opendocument.presentation \ application/vnd.openxmlformats-officedocument.presentationml.presentation \ application/vnd.openxmlformats-officedocument.presentationml.template \ application/vnd.sun.xml.impress \ application/vnd.sun.xml.impress.template media = \ application/ogg \ application/x-flac \ audio/* \ image/* \ video/* \ message = message/rfc822 \ text/x-gaim-log \ text/x-mail \ text/x-purple-log \ text/x-purple-html-log \ other = application/vnd.sun.xml.draw \ application/vnd.sun.xml.draw.template \ application/vnd.sun.xml.math \ application/x-dia-diagram \ application/x-fsdirectory \ application/x-mimehtml \ application/x-rar \ application/x-tar \ application/x-webarchive \ application/zip \ application/x-7z-compressed \ inode/directory \ inode/symlink \ [guifilters] # This defines the top level filters in the GUI (accessed by the the # radiobuttons above the results area, or a toolbar combobox). # Each entry defines a label and a query language fragment that will be # applied to filter the current query if the option is activated. # # This does not really belong in mimeconf, but it does belong in the index # config (not the GUI one), because it's not necessarily the same in all # configs, it has to go somewhere, and it's not worth a separate config # file... # # By default this filters by document category (see above), but any # language fragment should be ok. Be aware though that the "document # history" queries only know about simple "rclcat" filtering. # # If you don't want the filter names to be displayed in alphabetic order, # you can define them with a colon. The part before the colon is not # displayed but used for ordering, ie: a:zzbutshouldbefirst b:aacomeslast # text = rclcat:text spreadsheet = rclcat:spreadsheet presentation = rclcat:presentation media = rclcat:media message = rclcat:message other = rclcat:other recoll-1.21.5/sampleconf/mimemap0000644000175000017500000001452112602163540016063 0ustar dockesdockes# (C) 2004 J.F.Dockes # Associations of file name extensions to mime types .txt = text/plain .text = text/plain .srt = text/plain .ini = text/x-ini .csv = text/x-csv # Source files. # Defining them with specific types allows using a specific ext viewer (in # mimeview). You can in general use rcltext to wrap them in html for # indexing the contents (and rough preview). You could also just set them # as text/plain (index as text, use text viewer) .cpp = text/x-c .h = text/x-c .c = text/x-c .cc = text/x-c .cxx = text/x-c .hxx = text/x-c .f = text/x-fortran .py = text/x-python .awk = application/x-awk .pl = application/x-perl .sh = application/x-shellscript .tcl = text/x-tcl .xml = text/xml .note = application/x-gnote .rtf = text/rtf .html = text/html .htm = text/html .shtml = text/html .php = text/html .ics = text/calendar # .eml is used as an extension by several mail apps for a single message # saved in raw MIME format. Mainly used here to get Thunderbird to open an # extracted message. .eml = message/rfc822 .pdf = application/pdf .ps = application/postscript .eps = application/postscript .ai = application/postscript .tex = application/x-tex .dvi = application/x-dvi .djvu = image/vnd.djvu .svg = image/svg+xml .dia = application/x-dia-diagram .gz = application/x-gzip .Z = application/x-gzip .bz2 = application/x-bzip2 .rar = application/x-rar #.Z = application/x-compress .zip = application/zip .7z = application/x-7z-compressed # The rcltar module can handle compressed tar formats internally so we # use application/x-tar for all tar files compressed or not. Note that tar # file indexing is disabled by default, you'll need to copy and uncomment # the application/x-tar commented line from mimeconf into your personal config .tar = application/x-tar .tar.gz = application/x-tar .tgz = application/x-tar .tbz = application/x-tar .tar.bz2 = application/x-tar .doc = application/msword .dot = application/msword .ppt = application/vnd.ms-powerpoint .pps = application/vnd.ms-powerpoint .pot = application/vnd.ms-powerpoint .xls = application/vnd.ms-excel .xla = application/vnd.ms-excel .chm = application/x-chm .epub = application/epub+zip .mobi = application/x-mobipocket-ebook # OpenOffice / opendocument. We handle opendocument as old openoffice files # for now .sxc = application/vnd.sun.xml.calc .ods = application/vnd.sun.xml.calc .stc = application/vnd.sun.xml.calc.template .sxd = application/vnd.sun.xml.draw .odg = application/vnd.sun.xml.draw .std = application/vnd.sun.xml.draw.template .sxi = application/vnd.sun.xml.impress .odp = application/vnd.sun.xml.impress .sti = application/vnd.sun.xml.impress.template .sxm = application/vnd.sun.xml.math .sxw = application/vnd.sun.xml.writer .odt = application/vnd.sun.xml.writer .sxg = application/vnd.sun.xml.writer.global .stw = application/vnd.sun.xml.writer.template # ms openxml .docm = application/vnd.ms-word.document.macroEnabled.12 .docx = application/vnd.openxmlformats-officedocument.wordprocessingml.document .dotm = application/vnd.ms-word.template.macroEnabled.12 .dotx = application/vnd.openxmlformats-officedocument.wordprocessingml.template .potm = application/vnd.ms-powerpoint.template.macroEnabled.12 .potx = application/vnd.openxmlformats-officedocument.presentationml.template .ppam = application/vnd.ms-powerpoint.addin.macroEnabled.12 .ppsm = application/vnd.ms-powerpoint.slideshow.macroEnabled.12 .ppsx = application/vnd.openxmlformats-officedocument.presentationml.slideshow .pptm = application/vnd.ms-powerpoint.presentation.macroEnabled.12 .pptx = application/vnd.openxmlformats-officedocument.presentationml.presentation .xlam = application/vnd.ms-excel.addin.macroEnabled.12 .xlsb = application/vnd.ms-excel.sheet.binary.macroEnabled.12 .xlsm = application/vnd.ms-excel.sheet.macroEnabled.12 .xlsx = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xltm = application/vnd.ms-excel.template.macroEnabled.12 .xltx = application/vnd.openxmlformats-officedocument.spreadsheetml.template .abw = application/x-abiword .lyx = application/x-lyx .sla = application/x-scribus .scd = application/x-scribus .info = application/x-gnuinfo .kwd = application/x-kword .gnumeric = application/x-gnumeric .gnm = application/x-gnumeric .wpd = application/vnd.wordperfect .rtf = text/rtf .mp3 = audio/mpeg .flac = application/x-flac .ogg = application/ogg .oga = application/ogg # Note: file -i says audio/x-midi, but soft karaoke files are special. .kar = audio/x-karaoke .mid = audio/x-karaoke .aac = audio/aac .m4a = audio/mp4 .mkv = video/x-matroska .ogv = video/ogg .png = image/png .jp2 = image/jp2 .jpg = image/jpeg .jpeg = image/jpeg .gif = image/gif .tiff = image/tiff .tif = image/tiff .xcf = image/x-xcf .bmp = image/bmp .xpm = image/x-xpmi .fb2 = text/x-fictionbook .war = application/x-webarchive .mht = application/x-mimehtml .mhtml = application/x-mimehtml # Note: recoll_noindex has been obsoleted and moved to recoll.conf as # noContentSuffixes. recoll_noindex from your personal mimemap file is # still taken into account for now, but you should move its contents to the # new recoll.conf variable. # Special handling of .txt files inside ~/.gaim and ~/.purple directories [~/.gaim] .txt = text/x-gaim-log [~/.purple] .txt = text/x-purple-log .html = text/x-purple-html-log # Special handling of aptosid manual menu system [/usr/share/aptosid-manual] .htm = text/x-html-aptosid-man .html = text/x-html-aptosid-man # Special handling of sidux manual menu system [/usr/share/sidux-manual] .htm = text/x-html-sidux-man .html = text/x-html-sidux-man # Manual files. You may want to adjust the location for your system # We can't use the default text/troff type because this doesn't say # what macro set to use (groff -man) [/usr/share/man] .0p = text/x-man .1 = text/x-man .1m = text/x-man .1p = text/x-man .1ssl = text/x-man .1x = text/x-man .2 = text/x-man .3 = text/x-man .3curses = text/x-man .3form = text/x-man .3gl = text/x-man .3menu = text/x-man .3ncurses = text/x-man .3p = text/x-man .3pm = text/x-man .3ssl = text/x-man .3tiff = text/x-man .3x = text/x-man .4 = text/x-man .5 = text/x-man .5ssl = text/x-man .6 = text/x-man .6x = text/x-man .7 = text/x-man .7ssl = text/x-man .8 = text/x-man .9 = text/x-man .n = text/x-man # Special handling for okular notes [~/.kde4/share/apps/okular/docdata] .xml = application/x-okular-notes [~/.kde/share/apps/okular/docdata] .xml = application/x-okular-notes recoll-1.21.5/sampleconf/fields0000644000175000017500000001260312602163572015710 0ustar dockesdockes# (C) 2007-2011 J.F.Dockes # License: GPL V2 # # Field names configuration. This defines how one may search ie for: # author:Hemingway # # Important: # - the field names MUST be all lowercase alphabetic ascii here. They can # be anycased in the documents. [prefixes] ##################################################### # This section defines what prefix the terms inside named fields will be # indexed with (in addition to prefix-less indexing for general search) # ALL prefixes MUST be all ASCII UPPERCASE (NO DIGITS) # # The field names should be the canonic ones, not the aliases defined in # the following section. Don't change those which are predefined here, # quite a few are hard-coded in the c++. But you can add more (for new # fields emitted by filters). # # Fields can have two relevance boost factors defined, such as in: # caption = S ; wdfinc=10 # and/or # caption = S ; boost = 10 # The first line would boost the xapian "within document frequency" of # caption terms by a factor of 10 at indexing time. The second one # (NOT CURRENTLY IMPLEMENTED) would automatically boost the weight of a # caption-based field query (ie: caption:mytitle or title:mytitle) at query # time. # # The pfxonly attribute can also be set on entries to express that terms # from the field should be indexed only with a prefix (in general, field # terms are indexed both with and without a prefix). # The following ones are probably hard-coded in the c code, can't change at # all. # Also reserved: F(parentid), Q(uniqueid) author = A xapdate = D keywords= K xapyearmon = M title = S ; wdfinc = 10 mtype = T ext = XE rclmd5 = XM dir = XP abstract = XS filename = XSFN containerfilename = XCFN ; pfxonly = 1 rclUnsplitFN = XSFS xapyear = Y recipient = XTO # Extension examples. These are actually used by default by Recoll, you can # add your own to search for fields produced by the filters and not handled # by default. # Some values are internally reserved by recoll: # XE (file ext), XP (for path elements), XSFN, XSFS, XXST, XXND, XXPG rclbes = XB # Using XX was not a good idea. # # I hereby commit to not using XY for Recoll: # *** USE XY for beginning your local prefixes *** ie: # myfield = XYMYPREF [stored] ############################ # Some fields are stored in the document data record inside the index and # can be displayed in result lists. There is no necessity that stored fields # should be indexed (have a prefix in the preceding section). Example: "url" # # Some fields are stored by default, don't add them here: # caption, mimetype, url # Only canonical names should be used here, not aliases. # "rclaptg" is used for viewer specialization (depending on local config) # "rclbes" defines the backend type (ie normal fs, firefox cache). Should # probably be hardcoded, don't remove it abstract= author= filename= keywords= rclaptg= rclbes= recipient= [aliases] ########################## # This section defines field names aliases or synonyms. Any right hand side # value will be turned into the lhs canonic name before further treatment # # The left-hand values in the recoll distribution file are well known and # must match names used in the c++ code, or even the index data # record. They can't change! But you can add others. # # Filters should only add canonic names to the meta array when indexing, # not aliases. abstract = summary dc:summary description xesam:description author = creator dc:creator xesam:author xesam:creator from title = caption title dc:title subject # catg = dc:type contentCategory dbytes = size xesam:size dmtime = date dc:date dc:datemodified datemodified contentmodified \ xesam:contentmodified ext = fileextension xesam:fileextension # Don't add subject to keywords aliases, it's better to keep it for email keywords = keyword xesam:keyword tag tags dc:subject xesam:subject \ dc:description mtype = mime mimetype xesam:mimetype contenttype xesam:contenttype dc:format recipient = to xesam:recipient url = dc:identifier xesam:url ################## # The queryaliases section defines aliases which are used exclusively at # query time: there is no risk to pick up a random field from a document # (e.g. an HTML meta field) and index it. [queryaliases] #filename = fn #containerfilename = cfn [xattrtofields] ###################### # Processing for extended file attributes. # By default, attributes are processed as document fields (after removing # the 'user' prefix from the name on Linux). # You can enter name translations as "xattrname = fieldname". Case matters. # Entering an empty translation will disable use of the attribute. # The values from the extended attributes will extend, not replace, the # data found from equivalent fields inside the document. # As an example, the following would map a quite plausible "tags" extended # attribute into the "keywords" field. tags = keywords # Proposed or standard freedesktop.org extended attributes xdg.tags = keywords xdg.comment = abstract # Some standard fields are not to be indexed mime_type = charset = ######################## # Sections reserved for specific filters follow # ########################## # Mail filter section. You can specify mail headers to be indexed # in addition to the standard ones: (To:, Cc:, From:, Subject:, Date, # Message-Id), along with the field name to be used. For this to be useful, # the field name should also be listed in the [prefixes] and possibly the # [stored] sections. # # [mail] # x-my-tag = mymailtag recoll-1.21.5/sampleconf/recoll.qss0000644000175000017500000000353512602163540016526 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* This is an embryonic example Qt style sheet for Recoll. It is not really supposed to be less ugly than the default look, it's just provided in hope that someone with better taste will want to step in, or you can use it to indulge your preference for bright red backgrounds... If you do want to use it, and encounter a difficulty due to (lack of) widget object names or whatever, please get in touch, I'll fix what needs to be. Please check http://developer.qt.nokia.com/doc/qt-4.8/stylesheet.html for Qt style sheet information. */ /* Use a light grey background by default (lighter than the usual qt default): */ * { background: #eeeeee; } /* Use a light yellow background for all text display areas: */ QComboBox[editable="true"], QTextEdit, QLineEdit, QTextBrowser, QTableView, QWebView, QPlainTextEdit { background: #ffffee; } /* Keep a white background for the QTextEdit inside the Preview window This is rather arbitrary, just to show how to do it: */ Preview QTextEdit { background: white; font-family: Serif; font-size: 12pt; } recoll-1.21.5/configure.ac0000644000175000017500000004576312602163571014672 0ustar dockesdockesAC_INIT([Recoll], m4_esyscmd_s(cat VERSION)) AC_CONFIG_HEADERS([common/autoconfig.h]) AC_PREREQ(2.53) AC_CONFIG_SRCDIR(index/recollindex.cpp) AC_PROG_CXX if test C$CXX = C ; then AC_MSG_ERROR([C++ compiler needed. Please install one (ie: gnu g++)]) fi AC_C_BIGENDIAN sys=`uname | tr / _ | awk -F_ '{print $1}'` if test ! -f mk/$sys ; then AC_MSG_NOTICE([ No system configuration file found in mk/ for uname = '$sys'. Trying with Default file. If the build fails, you'll need to write a configuration file, starting from one of the existing ones.]) sys=Default fi (cd mk; rm -f sysconf; ln -s $sys sysconf) # There a few Recoll users on Mac OS X and a few things are just not worth # supporting if test X$sys = XDarwin ; then NODYNLIB=# fi AC_SYS_LARGEFILE # OpenBSD needs sys/param.h for mount.h to compile AC_CHECK_HEADERS([sys/param.h, spawn.h]) AC_CHECK_FUNCS([posix_spawn, setrlimit]) if test "x$ac_cv_func_posix_spawn" = xyes; then : AC_ARG_ENABLE(posix_spawn, AC_HELP_STRING([--enable-posix_spawn], [Enable the use of posix_spawn().]), posixSpawnEnabled=$enableval, posixSpawnEnabled=no) fi if test X$posixSpawnEnabled = Xyes ; then AC_DEFINE(USE_POSIX_SPAWN, 1, [Use posix_spawn()]) fi # Check for where to find unordered_map etc. AC_LANG_PUSH([C++]) AC_CHECK_HEADER(tr1/unordered_map,[AC_DEFINE([HAVE_TR1_UNORDERED], [],["Have tr1"])],[]) AC_CHECK_HEADER(unordered_map,[AC_DEFINE([HAVE_CXX0X_UNORDERED], [],["Have C++0x"])],[]) AC_LANG_POP([C++]) AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h], [], [], [#ifdef HAVE_SYS_PARAM_H # include #endif ]) # Use specific 'file' command ? (Useful on solaris to specify # /usr/local/bin/file instead of the system's which doesn't understand '-i' AC_ARG_WITH(file-command, AC_HELP_STRING([--with-file-command], [Specify version of 'file' command (ie: --with-file-command=/usr/local/bin/file)]), withFileCommand=$withval, withFileCommand=file) case $withFileCommand in file) AC_PATH_PROG(fileProg, file);; *) fileProg=$withFileCommand;; esac if test ! -x "$fileProg"; then AC_MSG_ERROR([$fileProg does not exist or is not executable]) fi AC_DEFINE_UNQUOTED(FILE_PROG, "$fileProg", [Path to the file program]) # Can't use Solaris standard 'file' command, it doesn't support -i if test X$sys != XSunOS -o X$fileProg != X/usr/bin/file; then AC_DEFINE(USE_SYSTEM_FILE_COMMAND, 1, [Enable using the system's 'file' command to id mime if we fail internally]) fi # Use aspell to provide spelling expansions ? # The default is yes. If we do find an aspell installation, we use it. Else # we do compile the aspell module using an internal copy of aspell.h # Only --with-aspell=no will completely disable aspell support AC_ARG_WITH(aspell, AC_HELP_STRING([--without-aspell], [Disable use of aspell spelling package to provide term expansion to other spellings]), withAspell=$withval, withAspell=yes) case $withAspell in no);; yes) AC_PATH_PROG(aspellProg, aspell) ;; *) # The argument should be the path to the aspell program aspellProg=$withAspell ;; esac if test X$withAspell != Xno ; then AC_DEFINE(RCL_USE_ASPELL, 1, [Compile the aspell interface]) if test X$aspellProg != X ; then aspellBase=`dirname $aspellProg` aspellBase=`dirname $aspellBase` AC_DEFINE_UNQUOTED(ASPELL_PROG, "$aspellProg", [Path to the aspell program]) if test -f $aspellBase/include/aspell.h ; then AC_DEFINE_UNQUOTED(ASPELL_INCLUDE, "$aspellBase/include/aspell.h", [Path to the aspell api include file]) else AC_MSG_NOTICE([aspell support enabled but aspell package not found. Compiling with internal aspell interface file]) AC_DEFINE(ASPELL_INCLUDE, ["aspell-local.h"]) fi else # aspell support enabled but no aspell install yet AC_MSG_NOTICE([aspell support enabled but aspell package not found. Compiling with internal aspell interface file]) AC_DEFINE(ASPELL_INCLUDE, ["aspell-local.h"]) fi fi if test -f /usr/include/sys/inotify.h -o -f /usr/include/linux/inotify.h; then inot_default=yes else inot_default=no fi # Real time monitoring with inotify AC_ARG_WITH(inotify, AC_HELP_STRING([--with-inotify], [Use inotify for almost real time indexing of modified files (the default is yes on Linux).]), withInotify=$withval, withInotify=$inot_default) if test X$withInotify != Xno ; then AC_MSG_NOTICE([enabled support for inotify monitoring]) AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option]) AC_DEFINE(RCL_USE_INOTIFY, 1, [Compile the inotify interface]) else AC_MSG_NOTICE([inotify not found, inotify monitoring disabled]) fi # Real time monitoring with FAM AC_ARG_WITH(fam, AC_HELP_STRING([--with-fam], [Use File Alteration Monitor for almost real time indexing of modified files. Give the fam/gamin library as argument (ie: /usr/lib/libfam.so) if configure does not find the right one.]), withFam=$withval, withFam=yes) if test X$withFam != Xno -a X$withInotify != Xno ; then AC_MSG_NOTICE([FAM support enabled but inotify support also enabled. Disabling FAM support and using inotify]) withFam=no fi famLib="" case $withFam in no);; yes) for dir in /usr/local/lib ${libdir};do if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi done if test X$famLib = X ; then AC_MSG_NOTICE([FAM library not found, disabling FAM and real time indexing support]) withFam=no fi ;; *) # The argument should be the path to the fam library famLib=$withFam ;; esac if test X$withFam != Xno ; then AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option]) AC_DEFINE(RCL_USE_FAM, 1, [Compile the fam interface]) if test X$famLib != X ; then famLibDir=`dirname $famLib` famBase=`dirname $famLibDir` famBLib=`basename $famLib .so | sed -e s/lib//` if test ! -f $famBase/include/fam.h ; then AC_MSG_ERROR([fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support]) fi LIBFAM="-L$famLibDir -l$famBLib" AC_MSG_NOTICE([fam library directive: $LIBFAM]) AC_DEFINE_UNQUOTED(FAM_INCLUDE, "$famBase/include/fam.h", [Path to the fam api include file]) else AC_MSG_ERROR([fam library not found]) fi fi # Enable use of threads in the indexing pipeline. # This is disabled by default as we usually care little about indexing # absolute performance (more about impact on usability and total # resources used). AC_ARG_ENABLE(idxthreads, AC_HELP_STRING([--disable-idxthreads], [Disable multithread indexing.]), idxthreadsEnabled=$enableval, idxthreadsEnabled=yes) if test X$idxthreadsEnabled = Xyes ; then AC_DEFINE(IDX_THREADS, 1, [Use multiple threads for indexing]) NOTHREADS="" else NOTHREADS="#" fi # Enable CamelCase word splitting. This is optional because it causes # problems with phrases: with camelcase enabled, "MySQL manual" # will be matched by "MySQL manual" and "my sql manual" but not # "mysql manual" (which would need increased slack as manual is now at pos # 2 instead of 1 AC_ARG_ENABLE(camelcase, AC_HELP_STRING([--enable-camelcase], [Enable splitting camelCase words. This is not enabled by default as this makes phrase matches more difficult: you need to use matching case in the phrase query to get a match. Ie querying for "MySQL manual" and "my sql manual" are the same, but not the same as "mysql manual" (in phrases only and you could raise the phrase slack to get a match).]), camelcaseEnabled=$enableval, camelcaseEnabled=no) if test X$camelcaseEnabled = Xyes ; then AC_DEFINE(RCL_SPLIT_CAMELCASE, 1, [Split camelCase words]) fi # Disable building the python module. This is built by default, because # it's really the easiest way to interface and extend recoll. It forces PIC # objects for everything (indexing performance impact: 1%), because it's # just not worth building the lib twice # You can still have a non-pic recoll with: # configure --disable-python-module; make; make install;make clean # configure; make; cd python/recoll; make install # if test X$sys != XDarwin ; then AC_ARG_ENABLE(python-module, AC_HELP_STRING([--disable-python-module], [Do not build the Python module.]), pythonEnabled=$enableval, pythonEnabled=yes) if test X$pythonEnabled = Xyes ; then NOPYTHON="" else NOPYTHON="#" fi else NOPYTHON="#" fi # Build PIC objects for the library ? AC_ARG_ENABLE(pic, AC_HELP_STRING([--disable-pic], [Do not compile library objects as position independant code. This is incompatible with the php or python extensions.]), picEnabled=$enableval, picEnabled=forpython) case $picEnabled in forpython) picEnabled=$pythonEnabled; NOPIC=$NOPYTHON;; yes) NOPIC="";; *) NOPIC="#";; esac if test X$pythonEnabled = Xyes -a X$picEnabled != Xyes; then AC_MSG_ERROR([Python build needs PIC library]) fi if test X$NOPIC != X; then NODYNLIB=# fi AC_CHECK_FUNCS(mkdtemp) ##### Look for iconv. This can exist in either libc (ie: Linux, solaris) or ##### libiconv. We'd need a --with-libiconv= option AC_LANG(C++) LIBICONV="" S_LIBS=$LIBS S_CPPFLAGS=$CPPFLAGS for dir in ${libdir} /opt/local/lib /usr/local/lib;do CPPFLAGS="$S_CPPFLAGS -I$dir/../include" LIBS="$S_LIBS -L$dir" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], LIBICONV="-L$dir";INCICONV=-I$dir/../include) if test A"$LIBICONV" != A ; then break fi LIBS="$S_LIBS -L$dir -liconv" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], LIBICONV="-L$dir -liconv";INCICONV=-I$dir/../include) if test A"$LIBICONV" != A ; then break fi done LIBS=$S_LIBS CPPFLAGS=$S_CPPFLAGS if test A"$LIBICONV" = A ; then AC_MSG_ERROR([Cannot find iconv_open anywhere. Please install iconv]) exit 1 fi #echo LIBICONV $LIBICONV #echo INCICONV $INCICONV CPPFLAGS="$CPPFLAGS $INCICONV" AC_MSG_CHECKING(for type of inbuf parameter to iconv) AC_TRY_COMPILE([ #include #include ],[ iconv(0,(const char **)0,(size_t *)0,(char **)0,(size_t *)0); ], rcl_iconv_inbuf_const="1", rcl_iconv_inbuf_const="0") if test X$rcl_iconv_inbuf_const = X1 ; then AC_DEFINE(RCL_ICONV_INBUF_CONST, 1, [iconv parameter 2 is const char**]) fi ############# Putenv AC_MSG_CHECKING(for type of string parameter to putenv) AC_TRY_COMPILE([ #include ],[ putenv((const char *)0); ], rcl_putenv_string_const="1", rcl_putenv_string_const="0") if test X$rcl_putenv_string_const = X1 ; then AC_DEFINE(PUTENV_ARG_CONST, 1, [putenv parameter is const]) fi #### Look for Xapian. Done in a strange way to work around autoconf # cache XAPIAN_CONFIG=no if test "$XAPIAN_CONFIG" = "no"; then AC_PATH_PROG(XAPIAN_CONFIG0, [xapian-config], no) XAPIAN_CONFIG=$XAPIAN_CONFIG0 fi if test "$XAPIAN_CONFIG" = "no"; then AC_PATH_PROG(XAPIAN_CONFIG1, [xapian-config-1.3], no) XAPIAN_CONFIG=$XAPIAN_CONFIG1 fi if test "$XAPIAN_CONFIG" = "no"; then AC_PATH_PROG(XAPIAN_CONFIG2, [xapian-config-1.1], no) XAPIAN_CONFIG=$XAPIAN_CONFIG2 fi if test "$XAPIAN_CONFIG" = "no" ; then AC_MSG_ERROR([Cannot find xapian-config command in $PATH. Is xapian-core installed ?]) exit 1 fi LIBXAPIAN=`$XAPIAN_CONFIG --libs` # The --static thing fails with older Xapians. Happily enough they don't # need it either (because there are no needed libraries (no uuid and we # deal explicitely with libz) LIBXAPIANSTATICEXTRA=`$XAPIAN_CONFIG --static --libs 2> /dev/null` # Workaround for problem in xapian-config in some versions: wrongly lists # libstdc++.la in the lib list for i in $LIBXAPIAN ; do case $i in *stdc++*|-lm|-lgcc_s|-lc);; *) tmpxaplib="$tmpxaplib $i";; esac done LIBXAPIAN=$tmpxaplib # Also recent xapian libs need lz even when they think they don't... LIBXAPIAN="$LIBXAPIAN -lz" LIBXAPIANDIR=`$XAPIAN_CONFIG --libs | awk '{print $1}'` case A"$LIBXAPIANDIR" in A-L*) LIBXAPIANDIR=`echo $LIBXAPIANDIR | sed -e 's/-L//'`;; *) LIBXAPIANDIR="";; esac XAPIANCXXFLAGS=`$XAPIAN_CONFIG --cxxflags` #echo XAPIAN_CONFIG: $XAPIAN_CONFIG #echo LIBXAPIAN: $LIBXAPIAN #echo LIBXAPIANDIR: $LIBXAPIANDIR #echo LIBXAPIANSTATICEXTRA: $LIBXAPIANSTATICEXTRA #echo XAPIANCXXFLAGS: $XAPIANCXXFLAGS #### QT # The way qt and its tools (qmake especially) are installed is very # different between systems (and maybe qt versions) # # In general we need QTDIR to be set, because it is used inside the # qmake-generated makefiles. But there are exceptions: ie on debian3.1 (at # least on the sourceforge compile farm), QTDIR is not needed because qmake # generates hard paths (and is installed in /usr/bin). We don't want to # force the user to set QTDIR if it is not needed. # # The logic is then to first look for qmake, possibly using QTDIR if it is # set. # # If QTDIR is not set, we then generate a bogus qt project and check if # QTDIR is needed in the Makefile, in which case we complain. # # QMAKESPEC: on most Linux system, there is a 'default' link inside the # mkspecs directory, so that QMAKESPEC is not needed. # If QMAKESPEC is not set and needed, the qmake test at the previous test # will have failed, and we tell the user to check his environment. # AC_ARG_ENABLE(qtgui, AC_HELP_STRING([--disable-qtgui], [Disable the QT-based graphical user interface.]), enableQT=$enableval, enableQT="yes") if test "$enableQT" != "yes" ; then NOQTMAKE="#" NOCMDLINE="" else NOQTMAKE="" NOCMDLINE="#" if test X$QTDIR != X ; then PATH=$PATH:$QTDIR/bin export PATH fi if test X$QMAKE = X ; then QMAKE=qmake fi case $QMAKE in */*) QMAKEPATH=$QMAKE;; *) AC_PATH_PROG([QMAKEPATH], $QMAKE, NOTFOUND);; esac if test X$QMAKEPATH = XNOTFOUND ; then AC_MSG_ERROR([Cannot find the qmake program. Maybe you need to install qt development files and tools and/or set the QTDIR environment variable?]) fi QMAKE=$QMAKEPATH # MAC OS X: we don't support this (the native search tool is more than # good enough), but we make things work just enough so that the program can # be compiled and roughly installed (not as a .app, but to /usr/local), # basically to enable using a Macbook for development if test X$sys = XDarwin ; then # The default is xcode QMAKE="${QMAKE} -spec macx-g++" fi # Discriminate qt3/4. Qt3 qmake prints its version on stderr but we don't # depend on this. We try to detect the qt 4 version string instead. qmakevers="`${QMAKE} --version 2>&1`" #echo "qmake version: $qmakevers" v4=`expr "$qmakevers" : '.*Qt[ ][ ]*version[ ][ ]*4.*'` v5=`expr "$qmakevers" : '.*Qt[ ][ ]*version[ ][ ]*5.*'` if test X$v4 = X0 -a X$v5 = X0; then AC_MSG_ERROR([qmake seems to be using Qt version 3 which is not supported any more]) QTGUI=qtgui else if test X$v4 != X0 ; then AC_MSG_NOTICE([using qt version 4 user interface]) else AC_MSG_NOTICE([using qt version 5 user interface]) fi QTGUI=qtgui fi cd $QTGUI # We just want a .pro file: no problem with unsubstituted variables at # this point. test -f recoll.pro && chmod +w recoll.pro cp recoll.pro.in recoll.pro #echo QMAKE ${QMAKE} ${QMAKE} recoll.pro if test $? != 0 ; then AC_MSG_ERROR([Cannot use qmake to generate a Makefile. Maybe you need to check the QTDIR and QMAKESPEC environment variables?]) fi # is QTDIR set and do we actually need it ? if test X$QTDIR = X ; then QTDIRNEEDED=`grep INCPATH Makefile | grep = | grep QTDIR` if test "X$QTDIRNEEDED" != "X" ; then AC_MSG_ERROR([You need to set the QTDIR variable to point to the QT installation. If there is no default mkspecs, you should also set QMAKESPEC]) fi fi cd .. ##### Using Qt webkit for reslist display? Else Qt textbrowser AC_ARG_ENABLE(webkit, AC_HELP_STRING([--disable-webkit], [Disable use of qt-webkit (only meaningful if qtgui is enabled).]), enableWebkit=$enableval, enableWebkit="yes") if test "$enableWebkit" = "yes" ; then QMAKE_ENABLE_WEBKIT="" QMAKE_DISABLE_WEBKIT="#" else QMAKE_ENABLE_WEBKIT="#" QMAKE_DISABLE_WEBKIT="" fi ##### Using QZeitGeist lib ? Default no for now AC_ARG_WITH(qzeitgeist, AC_HELP_STRING([--with-qzeitgeist], [Enable the use of the qzeitgeist library to send zeitgeist events.]), withQZeitgeist=$withval, withQZeitgeist="no") case "$withQZeitgeist" in no) LIBQZEITGEIST=;; yes) LIBQZEITGEIST=-lqzeitgeist;; *) LIBQZEITGEIST=$withQZeitgeist;; esac if test "$withQZeitgeist" != "no" ; then QMAKE_ENABLE_ZEITGEIST="" QMAKE_DISABLE_ZEITGEIST="#" else QMAKE_ENABLE_ZEITGEIST="#" QMAKE_DISABLE_ZEITGEIST="" fi AC_CONFIG_FILES($QTGUI/recoll.pro) ##################### End QT stuff fi ### X11: this is needed for the session monitoring code (in recollindex -m) AC_ARG_ENABLE(x11mon, AC_HELP_STRING([--disable-x11mon], [Disable recollindex support for X11 session monitoring.]), enableX11mon=$enableval, enableX11mon="yes") if test X$withInotify = Xno -a X$withFam = Xno ; then enableX11mon=no fi if test "$enableX11mon" = "yes" ; then AC_PATH_XTRA X_LIBX11=-lX11 else AC_DEFINE(DISABLE_X11MON, 1, [No X11 session monitoring support]) X_LIBX11="" fi #echo X_CFLAGS "'$X_CFLAGS'" X_PRE_LIBS "'$X_PRE_LIBS'" X_LIBS \ # "'$X_LIBS'" X_LIBX11 "'$X_LIBX11'" X_EXTRA_LIBS "'$X_EXTRA_LIBS'" # We have to expand prefix in here, couldn't find a way to do it inside # the qt gui .pro file or Makefile. This just means that you can't change # prefix at build time. It works at install time because we dont' use the # qtgui Makefile m_prefix=$prefix test "X$m_prefix" = "XNONE" && m_prefix=/usr/local m_datadir=${m_prefix}/share QTRECOLL_DATADIR=${m_datadir}/recoll RCLVERSION=`cat VERSION` RCLLIBVERSION=$RCLVERSION AC_SUBST(X_CFLAGS) AC_SUBST(X_PRE_LIBS) AC_SUBST(X_LIBS) AC_SUBST(X_LIBX11) AC_SUBST(X_EXTRA_LIBS) AC_SUBST(INCICONV) AC_SUBST(LIBICONV) AC_SUBST(LIBXAPIAN) AC_SUBST(LIBXAPIANDIR) AC_SUBST(LIBXAPIANSTATICEXTRA) AC_SUBST(LIBFAM) AC_SUBST(QMAKE) AC_SUBST(QTGUI) AC_SUBST(QTRECOLL_DATADIR) AC_SUBST(XAPIANCXXFLAGS) AC_SUBST(HAVE_MKDTEMP) AC_SUBST(NOQTMAKE) AC_SUBST(NOCMDLINE) AC_SUBST(QMAKE_ENABLE_WEBKIT) AC_SUBST(QMAKE_DISABLE_WEBKIT) AC_SUBST(QMAKE_ENABLE_ZEITGEIST) AC_SUBST(QMAKE_DISABLE_ZEITGEIST) AC_SUBST(LIBQZEITGEIST) AC_SUBST(NOPIC) AC_SUBST(NOTHREADS) AC_SUBST(NOPYTHON) AC_SUBST(NODYNLIB) AC_SUBST(RCLVERSION) AC_SUBST(RCLLIBVERSION) # All object files depend on localdefs which has the cc flags. Avoid # changing it unless necessary AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(common/rclversion.h) AC_CONFIG_FILES(lib/mkMake) AC_CONFIG_FILES(mk/localdefs.new:mk/localdefs.in) AC_CONFIG_FILES(python/recoll/setup.py) AC_CONFIG_FILES(recollinstall) AC_CONFIG_FILES(sampleconf/recoll.conf) for d in bincimapmime index lib query do rm -f $d/alldeps.stamp cp -f /dev/null $d/alldeps done AC_OUTPUT if cmp -s mk/localdefs mk/localdefs.new ; then rm -f mk/localdefs.new else mv -f mk/localdefs.new mk/localdefs fi recoll-1.21.5/query/0000755000175000017500000000000012652665251013541 5ustar dockesdockesrecoll-1.21.5/query/recollq.cpp0000644000175000017500000003151312602163572015703 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Takes a query and run it, no gui, results to stdout #ifndef TEST_RECOLLQ #include #include #include #include #include #include #include #include #include #include using namespace std; #include "rcldb.h" #include "rclquery.h" #include "rclconfig.h" #include "pathut.h" #include "rclinit.h" #include "debuglog.h" #include "wasatorcl.h" #include "internfile.h" #include "wipedir.h" #include "transcode.h" #include "textsplit.h" #include "smallut.h" #include "base64.h" bool dump_contents(RclConfig *rclconfig, Rcl::Doc& idoc) { FileInterner interner(idoc, rclconfig, FileInterner::FIF_forPreview); Rcl::Doc fdoc; string ipath = idoc.ipath; if (interner.internfile(fdoc, ipath)) { cout << fdoc.text << endl; } else { cout << "Cant turn to text:" << idoc.url << " | " << idoc.ipath << endl; } return true; } void output_fields(vector fields, Rcl::Doc& doc, Rcl::Query& query, Rcl::Db& rcldb, bool printnames) { if (fields.empty()) { map::const_iterator it; for (it = doc.meta.begin();it != doc.meta.end(); it++) { fields.push_back(it->first); } } for (vector::const_iterator it = fields.begin(); it != fields.end(); it++) { string out; if (!it->compare("abstract")) { string abstract; query.makeDocAbstract(doc, abstract); base64_encode(abstract, out); } else if (!it->compare("xdocid")) { char cdocid[30]; sprintf(cdocid, "%lu", (unsigned long)doc.xdocid); base64_encode(cdocid, out); } else { base64_encode(doc.meta[*it], out); } // Before printnames existed, recollq printed a single blank for empty // fields. This is a problem when printing names and using strtok, but // have to keep the old behaviour when printnames is not set. if (!(out.empty() && printnames)) { if (printnames) cout << *it << " "; cout << out << " "; } } cout << endl; } static char *thisprog; static char usage [] = " -P: Show the date span for all the documents present in the index\n" " [-o|-a|-f] [-q] \n" " Runs a recoll query and displays result lines. \n" " Default: will interpret the argument(s) as a xesam query string\n" " Query elements: \n" " * Implicit AND, exclusion, field spec: t1 -t2 title:t3\n" " * OR has priority: t1 OR t2 t3 OR t4 means (t1 OR t2) AND (t3 OR t4)\n" " * Phrase: \"t1 t2\" (needs additional quoting on cmd line)\n" " -o Emulate the GUI simple search in ANY TERM mode\n" " -a Emulate the GUI simple search in ALL TERMS mode\n" " -f Emulate the GUI simple search in filename mode\n" " -q is just ignored (compatibility with the recoll GUI command line)\n" "Common options:\n" " -c : specify config directory, overriding $RECOLL_CONFDIR\n" " -d also dump file contents\n" " -n [first-] define the result slice. The default value for [first]\n" " is 0. Without the option, the default max count is 2000.\n" " Use n=0 for no limit\n" " -b : basic. Just output urls, no mime types or titles\n" " -Q : no result lines, just the processed query and result count\n" " -m : dump the whole document meta[] array for each result\n" " -A : output the document abstracts\n" " -S fld : sort by field \n" " -D : sort descending\n" " -s stemlang : set stemming language to use (must exist in index...)\n" " Use -s \"\" to turn off stem expansion\n" " -i : additional index, several can be given\n" " -e use url encoding (%xx) for urls\n" " -F : output exactly these fields for each result.\n" " The field values are encoded in base64, output in one line and \n" " separated by one space character. This is the recommended format \n" " for use by other programs. Use a normal query with option -m to \n" " see the field names. Use -F '' to output all fields, but you probably\n" " also want option -N in this case\n" " -N : with -F, print the (plain text) field names before the field values\n" ; static void Usage(void) { cerr << thisprog << ": usage:" << endl << usage; exit(1); } // ATTENTION A LA COMPATIBILITE AVEC LES OPTIONS DE recoll // -q, -t and -l are accepted and ignored // -a/f/o -c have the same meaning // -h is not used static int op_flags; #define OPT_A 0x1 #define OPT_a 0x2 #define OPT_b 0x4 #define OPT_c 0x8 #define OPT_D 0x10 #define OPT_d 0x20 #define OPT_f 0x40 #define OPT_i 0x80 #define OPT_l 0x100 #define OPT_m 0x200 #define OPT_n 0x400 #define OPT_o 0x800 #define OPT_P 0x1000 #define OPT_Q 0x2000 #define OPT_q 0x4000 #define OPT_S 0x8000 #define OPT_s 0x10000 #define OPT_t 0x20000 #define OPT_e 0x40000 #define OPT_F 0x80000 #define OPT_N 0x100000 int recollq(RclConfig **cfp, int argc, char **argv) { string a_config; string sortfield; string stemlang("english"); list extra_dbs; string sf; vector fields; int firstres = 0; int maxcount = 2000; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case '-': // -- : end of options if (*(*argv) != 0) Usage(); goto endopts; case 'A': op_flags |= OPT_A; break; case 'a': op_flags |= OPT_a; break; case 'b': op_flags |= OPT_b; break; case 'c': op_flags |= OPT_c; if (argc < 2) Usage(); a_config = *(++argv); argc--; goto b1; case 'd': op_flags |= OPT_d; break; case 'D': op_flags |= OPT_D; break; case 'e': op_flags |= OPT_e; break; case 'f': op_flags |= OPT_f; break; case 'F': op_flags |= OPT_F; if (argc < 2) Usage(); sf = *(++argv); argc--; goto b1; case 'i': op_flags |= OPT_i; if (argc < 2) Usage(); extra_dbs.push_back(*(++argv)); argc--; goto b1; case 'l': op_flags |= OPT_l; break; case 'm': op_flags |= OPT_m; break; case 'N': op_flags |= OPT_N; break; case 'n': op_flags |= OPT_n; if (argc < 2) Usage(); { string rescnt = *(++argv); string::size_type dash = rescnt.find("-"); if (dash != string::npos) { firstres = atoi(rescnt.substr(0, dash).c_str()); if (dash < rescnt.size()-1) { maxcount = atoi(rescnt.substr(dash+1).c_str()); } } else { maxcount = atoi(rescnt.c_str()); } if (maxcount <= 0) maxcount = INT_MAX; } argc--; goto b1; case 'o': op_flags |= OPT_o; break; case 'P': op_flags |= OPT_P; break; case 'q': op_flags |= OPT_q; break; case 'Q': op_flags |= OPT_Q; break; case 'S': op_flags |= OPT_S; if (argc < 2) Usage(); sortfield = *(++argv); argc--; goto b1; case 's': op_flags |= OPT_s; if (argc < 2) Usage(); stemlang = *(++argv); argc--; goto b1; case 't': op_flags |= OPT_t; break; default: Usage(); break; } b1: argc--; argv++; } endopts: string reason; *cfp = recollinit(0, 0, reason, &a_config); RclConfig *rclconfig = *cfp; if (!rclconfig || !rclconfig->ok()) { fprintf(stderr, "Recoll init failed: %s\n", reason.c_str()); exit(1); } if (argc < 1 && !(op_flags & OPT_P)) { Usage(); } if (op_flags & OPT_F) { if (op_flags & (OPT_b|OPT_d|OPT_b|OPT_Q|OPT_m|OPT_A)) Usage(); stringToStrings(sf, fields); } Rcl::Db rcldb(rclconfig); if (!extra_dbs.empty()) { for (list::iterator it = extra_dbs.begin(); it != extra_dbs.end(); it++) { if (!rcldb.addQueryDb(*it)) { cerr << "Can't add index: " << *it << endl; exit(1); } } } if (!rcldb.open(Rcl::Db::DbRO)) { cerr << "Cant open database in " << rclconfig->getDbDir() << " reason: " << rcldb.getReason() << endl; exit(1); } if (op_flags & OPT_P) { int minyear, maxyear; if (!rcldb.maxYearSpan(&minyear, &maxyear)) { cerr << "maxYearSpan failed: " << rcldb.getReason() << endl; exit(1); } else { cout << "Min year " << minyear << " Max year " << maxyear << endl; exit(0); } } if (argc < 1) { Usage(); } string qs = *argv++;argc--; while (argc > 0) { qs += string(" ") + *argv++;argc--; } { string uq; string charset = rclconfig->getDefCharset(true); int ercnt; if (!transcode(qs, uq, charset, "UTF-8", &ercnt)) { fprintf(stderr, "Can't convert command line args to utf-8\n"); exit(1); } else if (ercnt) { fprintf(stderr, "%d errors while converting arguments from %s " "to utf-8\n", ercnt, charset.c_str()); } qs = uq; } Rcl::SearchData *sd = 0; if (op_flags & (OPT_a|OPT_o|OPT_f)) { sd = new Rcl::SearchData(Rcl::SCLT_OR, stemlang); Rcl::SearchDataClause *clp = 0; if (op_flags & OPT_f) { clp = new Rcl::SearchDataClauseFilename(qs); } else { clp = new Rcl::SearchDataClauseSimple((op_flags & OPT_o)? Rcl::SCLT_OR : Rcl::SCLT_AND, qs); } if (sd) sd->addClause(clp); } else { sd = wasaStringToRcl(rclconfig, stemlang, qs, reason); } if (!sd) { cerr << "Query string interpretation failed: " << reason << endl; return 1; } RefCntr rq(sd); Rcl::Query query(&rcldb); if (op_flags & OPT_S) { query.setSortBy(sortfield, (op_flags & OPT_D) ? false : true); } Chrono chron; if (!query.setQuery(rq)) { cerr << "Query setup failed: " << query.getReason() << endl; return(1); } int cnt = query.getResCnt(); if (!(op_flags & OPT_b)) { cout << "Recoll query: " << rq->getDescription() << endl; if (firstres == 0) { if (cnt <= maxcount) cout << cnt << " results" << endl; else cout << cnt << " results (printing " << maxcount << " max):" << endl; } else { cout << "Printing at most " << cnt - (firstres+maxcount) << " results from first " << firstres << endl; } } if (op_flags & OPT_Q) cout << "Query setup took " << chron.millis() << " mS" << endl; if (op_flags & OPT_Q) return(0); for (int i = firstres; i < firstres + maxcount; i++) { Rcl::Doc doc; if (!query.getDoc(i, doc)) break; if (op_flags & OPT_F) { output_fields(fields, doc, query, rcldb, op_flags & OPT_N); continue; } if (op_flags & OPT_e) doc.url = url_encode(doc.url); if (op_flags & OPT_b) { cout << doc.url << endl; } else { string titleorfn = doc.meta[Rcl::Doc::keytt]; if (titleorfn.empty()) titleorfn = doc.meta[Rcl::Doc::keyfn]; if (titleorfn.empty()) { string url; printableUrl(rclconfig->getDefCharset(), doc.url, url); titleorfn = path_getsimple(url); } char cpc[20]; sprintf(cpc, "%d", doc.pc); cout << doc.mimetype << "\t" << "[" << doc.url << "]" << "\t" << "[" << titleorfn << "]" << "\t" << doc.fbytes << "\tbytes" << "\t" << endl; if (op_flags & OPT_m) { for (map::const_iterator it = doc.meta.begin(); it != doc.meta.end(); it++) { cout << it->first << " = " << it->second << endl; } } if (op_flags & OPT_A) { string abstract; if (query.makeDocAbstract(doc, abstract)) { cout << "ABSTRACT" << endl; cout << abstract << endl; cout << "/ABSTRACT" << endl; } } } if (op_flags & OPT_d) { dump_contents(rclconfig, doc); } } return 0; } #else // TEST_RECOLLQ The test driver is actually the useful program... #include #include "rclconfig.h" #include "recollq.h" static RclConfig *rclconfig; int main(int argc, char **argv) { return(recollq(&rclconfig, argc, argv)); } #endif // TEST_RECOLLQ recoll-1.21.5/query/sortseq.h0000644000175000017500000000316012602163572015404 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SORTSEQ_H_INCLUDED_ #define _SORTSEQ_H_INCLUDED_ #include #include #include "refcntr.h" #include "docseq.h" /** * A sorted sequence is created from the first N documents of another one, * and sorts them according to the given criteria. */ class DocSeqSorted : public DocSeqModifier { public: DocSeqSorted(RefCntr iseq, DocSeqSortSpec &sortspec) : DocSeqModifier(iseq) { setSortSpec(sortspec); } virtual ~DocSeqSorted() {} virtual bool canSort() {return true;} virtual bool setSortSpec(const DocSeqSortSpec &sortspec); virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0); virtual int getResCnt() {return m_docsp.size();} private: DocSeqSortSpec m_spec; std::vector m_docs; std::vector m_docsp; }; #endif /* _SORTSEQ_H_INCLUDED_ */ recoll-1.21.5/query/docseq.cpp0000644000175000017500000000664112602163572015524 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "docseq.h" #include "filtseq.h" #include "sortseq.h" #include "debuglog.h" #include "internfile.h" PTMutexInit DocSequence::o_dblock; string DocSequence::o_sort_trans; string DocSequence::o_filt_trans; int DocSequence::getSeqSlice(int offs, int cnt, vector& result) { int ret = 0; for (int num = offs; num < offs + cnt; num++, ret++) { result.push_back(ResListEntry()); if (!getDoc(num, result.back().doc, &result.back().subHeader)) { result.pop_back(); return ret; } } return ret; } bool DocSequence::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) { Rcl::Db *db = getDb(); if (db == 0) { LOGERR(("DocSequence::getEnclosing: no db\n")); return false; } PTMutexLocker locker(o_dblock); string udi; if (!FileInterner::getEnclosingUDI(doc, udi)) return false; bool dbret = db->getDoc(udi, doc, pdoc); return dbret && pdoc.pc != -1; } // Remove stacked modifying sources (sort, filter) until we get to a real one void DocSource::stripStack() { if (m_seq.isNull()) return; while (m_seq->getSourceSeq().isNotNull()) { m_seq = m_seq->getSourceSeq(); } } bool DocSource::buildStack() { LOGDEB2(("DocSource::buildStack()\n")); stripStack(); if (m_seq.isNull()) return false; // Filtering must be done before sorting, (which may // truncates the original list) if (m_seq->canFilter()) { if (!m_seq->setFiltSpec(m_fspec)) { LOGERR(("DocSource::buildStack: setfiltspec failed\n")); } } else { if (m_fspec.isNotNull()) { m_seq = RefCntr(new DocSeqFiltered(m_config, m_seq, m_fspec)); } } if (m_seq->canSort()) { if (!m_seq->setSortSpec(m_sspec)) { LOGERR(("DocSource::buildStack: setsortspec failed\n")); } } else { if (m_sspec.isNotNull()) { m_seq = RefCntr(new DocSeqSorted(m_seq, m_sspec)); } } return true; } string DocSource::title() { if (m_seq.isNull()) return string(); string qual; if (m_fspec.isNotNull() && !m_sspec.isNotNull()) qual = string(" (") + o_filt_trans + string(")"); else if (!m_fspec.isNotNull() && m_sspec.isNotNull()) qual = string(" (") + o_sort_trans + string(")"); else if (m_fspec.isNotNull() && m_sspec.isNotNull()) qual = string(" (") + o_sort_trans + string(",") + o_filt_trans + string(")"); return m_seq->title() + qual; } bool DocSource::setFiltSpec(const DocSeqFiltSpec &f) { LOGDEB2(("DocSource::setFiltSpec\n")); m_fspec = f; buildStack(); return true; } bool DocSource::setSortSpec(const DocSeqSortSpec &s) { LOGDEB2(("DocSource::setSortSpec\n")); m_sspec = s; buildStack(); return true; } recoll-1.21.5/query/sortseq.cpp0000644000175000017500000000437012602163537015744 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "debuglog.h" #include "sortseq.h" using std::string; class CompareDocs { DocSeqSortSpec ss; public: CompareDocs(const DocSeqSortSpec &sortspec) : ss(sortspec) {} // It's not too clear in the std::sort doc what this should do. This // behaves as operator< int operator()(const Rcl::Doc *x, const Rcl::Doc *y) { LOGDEB1(("Comparing .. \n")); map::const_iterator xit, yit; xit = x->meta.find(ss.field); yit = y->meta.find(ss.field); if (xit == x->meta.end() || yit == y->meta.end()) return 0; return ss.desc ? yit->second < xit->second : xit->second < yit->second; } }; bool DocSeqSorted::setSortSpec(const DocSeqSortSpec &sortspec) { LOGDEB(("DocSeqSorted::setSortSpec\n")); m_spec = sortspec; int count = m_seq->getResCnt(); LOGDEB(("DocSeqSorted:: count %d\n", count)); m_docs.resize(count); int i; for (i = 0; i < count; i++) { if (!m_seq->getDoc(i, m_docs[i])) { LOGERR(("DocSeqSorted: getDoc failed for doc %d\n", i)); count = i; break; } } m_docs.resize(count); m_docsp.resize(count); for (i = 0; i < count; i++) m_docsp[i] = &m_docs[i]; CompareDocs cmp(sortspec); sort(m_docsp.begin(), m_docsp.end(), cmp); return true; } bool DocSeqSorted::getDoc(int num, Rcl::Doc &doc, string *) { LOGDEB(("DocSeqSorted::getDoc(%d)\n", num)); if (num < 0 || num >= int(m_docsp.size())) return false; doc = *m_docsp[num]; return true; } recoll-1.21.5/query/filtseq.h0000644000175000017500000000315212602163572015354 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FILTSEQ_H_INCLUDED_ #define _FILTSEQ_H_INCLUDED_ #include #include using std::string; using std::vector; #include "refcntr.h" #include "docseq.h" class RclConfig; /** * A filtered sequence is created from another one by selecting entries * according to the given criteria. */ class DocSeqFiltered : public DocSeqModifier { public: DocSeqFiltered(RclConfig *conf, RefCntr iseq, DocSeqFiltSpec &filtspec); virtual ~DocSeqFiltered() {} virtual bool canFilter() {return true;} virtual bool setFiltSpec(const DocSeqFiltSpec &filtspec); virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0); virtual int getResCnt() {return m_seq->getResCnt();} private: RclConfig *m_config; DocSeqFiltSpec m_spec; vector m_dbindices; }; #endif /* _FILTSEQ_H_INCLUDED_ */ recoll-1.21.5/query/wasatorcl.h0000644000175000017500000000241212602163540015675 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _WASATORCL_H_INCLUDED_ #define _WASATORCL_H_INCLUDED_ #include namespace Rcl { class SearchData; } class RclConfig; extern Rcl::SearchData *wasaStringToRcl(const RclConfig *, const std::string& stemlang, const std::string& query, std::string &reason, const std::string& autosuffs = ""); #endif /* _WASATORCL_H_INCLUDED_ */ recoll-1.21.5/query/xadump.cpp0000644000175000017500000002271712602163540015541 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include #include #include #include "pathut.h" #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ #include "utf8iter.h" #include "xapian.h" static string thisprog; static string usage = " -d \n" "-e \n" " -i docid -D : get document data for docid\n" " -i docid -X : delete document docid\n" " -i docid -b : 'rebuild' document from term positions\n" " -i docid -T : term list for doc docid\n" " -t term -E : term existence test\n" " -t term -F : retrieve term frequency data for given term\n" " -t term -P : retrieve postings for term\n" " -T : list all terms\n" " -f : precede each term in the list with its occurrence counts\n" " -n : raw data (no [])\n" " -l : don't list prefixed terms\n" " -x : separate each output char with a space\n" " -s : special mode to dump recoll stem db\n" " -q term [term ...] : perform AND query\n" " \n\n" ; static void Usage(void) { cerr << thisprog << ": usage:\n" << usage; exit(1); } static int op_flags; #define OPT_D 0x1 #define OPT_E 0x2 #define OPT_F 0x4 #define OPT_P 0x8 #define OPT_T 0x10 #define OPT_X 0x20 #define OPT_b 0x40 #define OPT_d 0x80 #define OPT_e 0x100 #define OPT_f 0x200 #define OPT_i 0x400 #define OPT_n 0x800 #define OPT_q 0x1000 #define OPT_s 0x2000 #define OPT_t 0x4000 #define OPT_x 0x8000 #define OPT_l 0x10000 // Compute an exploded version of string, inserting a space between each char. // (no character combining possible) static string detailstring(const string& in) { if (!(op_flags & OPT_x)) return in; string out; Utf8Iter it(in); for (; !it.eof(); it++) { it.appendchartostring(out); out += ' '; } // Strip last space if (!out.empty()) out.resize(out.size()-1); return out; } Xapian::Database *db; static void cleanup() { delete db; } static void sigcleanup(int sig) { fprintf(stderr, "sigcleanup\n"); cleanup(); exit(1); } bool o_index_stripchars; inline bool has_prefix(const string& trm) { if (o_index_stripchars) { return trm.size() && 'A' <= trm[0] && trm[0] <= 'Z'; } else { return trm.size() > 0 && trm[0] == ':'; } } int main(int argc, char **argv) { string dbdir = path_cat(path_home(), ".recoll/xapiandb"); string outencoding = "ISO8859-1"; int docid = 1; string aterm; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'b': op_flags |= OPT_b; break; case 'D': op_flags |= OPT_D; break; case 'd': op_flags |= OPT_d; if (argc < 2) Usage(); dbdir = *(++argv); argc--; goto b1; case 'E': op_flags |= OPT_E; break; case 'e': op_flags |= OPT_d; if (argc < 2) Usage(); outencoding = *(++argv); argc--; goto b1; case 'F': op_flags |= OPT_F; break; case 'f': op_flags |= OPT_f; break; case 'i': op_flags |= OPT_i; if (argc < 2) Usage(); if (sscanf(*(++argv), "%d", &docid) != 1) Usage(); argc--; goto b1; case 'l': op_flags |= OPT_l; break; case 'n': op_flags |= OPT_n; break; case 'P': op_flags |= OPT_P; break; case 'q': op_flags |= OPT_q; break; case 's': op_flags |= OPT_s; break; case 'T': op_flags |= OPT_T; break; case 't': op_flags |= OPT_t; if (argc < 2) Usage(); aterm = *(++argv); argc--; goto b1; case 'X': op_flags |= OPT_X; break; case 'x': op_flags |= OPT_x; break; default: Usage(); break; } b1: argc--; argv++; } vector qterms; if (op_flags & OPT_q) { fprintf(stderr, "q argc %d\n", argc); if (argc < 1) Usage(); while (argc > 0) { qterms.push_back(*argv++); argc--; } } if (argc != 0) Usage(); atexit(cleanup); if (signal(SIGHUP, SIG_IGN) != SIG_IGN) signal(SIGHUP, sigcleanup); if (signal(SIGINT, SIG_IGN) != SIG_IGN) signal(SIGINT, sigcleanup); if (signal(SIGQUIT, SIG_IGN) != SIG_IGN) signal(SIGQUIT, sigcleanup); if (signal(SIGTERM, SIG_IGN) != SIG_IGN) signal(SIGTERM, sigcleanup); try { db = new Xapian::Database(dbdir); cout << "DB: ndocs " << db->get_doccount() << " lastdocid " << db->get_lastdocid() << " avglength " << db->get_avlength() << endl; // If we have terms with a leading ':' it's a new style, // unstripped index { Xapian::TermIterator term = db->allterms_begin(":"); if (term == db->allterms_end()) o_index_stripchars = true; else o_index_stripchars = false; cout<<"DB: terms are "<<(o_index_stripchars?"stripped":"raw")<termlist_begin(docid); term != db->termlist_end(docid);term++) { const string& s = *term; if ((op_flags&OPT_l) && has_prefix(s)) continue; cout << op << detailstring(s) << cl << endl; } } else { for (term = db->allterms_begin(); term != db->allterms_end();term++) { const string& s = *term; if ((op_flags&OPT_l) && has_prefix(s)) continue; if (op_flags & OPT_f) cout << db->get_collection_freq(*term) << " " << term.get_termfreq() << " "; cout << op << detailstring(s) << cl << endl; } } } else if (op_flags & OPT_s) { for (unsigned int docid = 1; docid < db->get_lastdocid(); docid++) { // cout << docid << ": "; Xapian::TermIterator term; for (term = db->termlist_begin(docid); term != db->termlist_end(docid);term++) { cout << detailstring(*term) << " "; Xapian::Document doc = db->get_document(docid); string data = doc.get_data(); cout << data; } } } else if (op_flags & OPT_D) { Xapian::Document doc = db->get_document(docid); string data = doc.get_data(); cout << data << endl; } else if (op_flags & OPT_X) { Xapian::Document doc = db->get_document(docid); string data = doc.get_data(); cout << data << endl; cout << "Really delete xapian document ?" << endl; string rep; cin >> rep; if (!rep.empty() && (rep[0] == 'y' || rep[0] == 'Y')) { Xapian::WritableDatabase wdb(dbdir, Xapian::DB_OPEN); cout << "Deleting" << endl; wdb.delete_document(docid); } } else if (op_flags & OPT_b) { if (!(op_flags & OPT_i)) Usage(); vector buf; Xapian::TermIterator term; for (term = db->termlist_begin(docid); term != db->termlist_end(docid); term++) { Xapian::PositionIterator pos; for (pos = db->positionlist_begin(docid, *term); pos != db->positionlist_end(docid, *term); pos++) { if (buf.size() <= *pos) buf.resize((*pos)+100); buf[(*pos)] = detailstring(*term); } } for (vector::iterator it = buf.begin(); it != buf.end(); it++) { cout << *it << " "; } } else if (op_flags & OPT_P) { Xapian::PostingIterator doc; for (doc = db->postlist_begin(aterm); doc != db->postlist_end(aterm); doc++) { cout << *doc << "(" << doc.get_wdf() << ") : " ; Xapian::PositionIterator pos; for (pos = doc.positionlist_begin(); pos != doc.positionlist_end(); pos++) { cout << *pos << " " ; } cout << endl; } } else if (op_flags & OPT_F) { cout << "FreqFor " << aterm << " : " << db->get_termfreq(aterm) << endl; } else if (op_flags & OPT_E) { cout << "Exists [" << aterm << "] : " << db->term_exists(aterm) << endl; } else if (op_flags & OPT_q) { Xapian::Enquire enquire(*db); Xapian::Query query(Xapian::Query::OP_AND, qterms.begin(), qterms.end()); cout << "Performing query `" << query.get_description() << "'" << endl; enquire.set_query(query); Xapian::MSet matches = enquire.get_mset(0, 10); cout << "Estimated results: " << matches.get_matches_lower_bound() << endl; Xapian::MSetIterator i; for (i = matches.begin(); i != matches.end(); ++i) { cout << "Document ID " << *i << "\t"; cout << i.get_percent() << "% "; Xapian::Document doc = i.get_document(); cout << "[" << doc.get_data() << "]" << endl; } } } catch (const Xapian::Error &e) { cout << "Exception: " << e.get_msg() << endl; } catch (const string &s) { cout << "Exception: " << s << endl; } catch (const char *s) { cout << "Exception: " << s << endl; } catch (...) { cout << "Caught unknown exception" << endl; } exit(0); } recoll-1.21.5/query/wasaparserdriver.h0000644000175000017500000000531112652662752017301 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _WASAPARSERDRIVER_H_INCLUDED_ #define _WASAPARSERDRIVER_H_INCLUDED_ #include #include #include #include "smallut.h" class WasaParserDriver; namespace Rcl { class SearchData; class SearchDataClauseSimple; } namespace yy { class parser; } class RclConfig; class WasaParserDriver { public: WasaParserDriver(const RclConfig *c, const std::string sl, const std::string& as); ~WasaParserDriver(); Rcl::SearchData *parse(const std::string&); bool addClause(Rcl::SearchData *sd, Rcl::SearchDataClauseSimple* cl); int GETCHAR(); void UNGETCHAR(int c); std::string& qualifiers() { return m_qualifiers; } void setreason(const std::string& reason) { m_reason = reason; } const std::string& getreason() const { return m_reason; } private: friend class yy::parser; std::string m_stemlang; std::string m_autosuffs; const RclConfig *m_config; // input string. std::string m_input; // Current position in m_input unsigned int m_index; // Characters pushed-back, ready for next getchar. std::stack m_returns; // Result, set by parser. Rcl::SearchData *m_result; // Storage for top level filters std::vector m_filetypes; std::vector m_nfiletypes; bool m_haveDates; DateInterval m_dates; // Restrict to date interval size_t m_maxSize; size_t m_minSize; std::string m_reason; // Let the quoted string reader store qualifiers in there, simpler // than handling this in the parser, because their nature is // determined by the absence of white space after the closing // dquote. e.g "some term"abc. We could avoid this by making white // space a token. std::string m_qualifiers; }; #endif /* _WASAPARSERDRIVER_H_INCLUDED_ */ recoll-1.21.5/query/Makefile0000644000175000017500000000276512602163572015205 0ustar dockesdockesdepth = .. include $(depth)/mk/sysconf PROGS = xadump recollq #trhist qtry qxtry SRCS = xadump.cpp all: wasaparse.tab.cpp depend librecoll $(PROGS) wasaparse.tab.cpp : wasaparse.y bison wasaparse.y mv -f wasaparse.tab.c wasaparse.tab.cpp XADUMP_OBJS= xadump.o xadump : $(XADUMP_OBJS) $(CXX) $(ALL_CXXFLAGS) -o xadump $(XADUMP_OBJS) \ $(depth)/lib/librecoll.a $(LIBICONV) $(LIBXAPIAN) $(LIBSYS) xadump.o : xadump.cpp $(CXX) $(ALL_CXXFLAGS) -c xadump.cpp RECOLLQ_OBJS= recollq.o recollq : $(RECOLLQ_OBJS) $(CXX) $(ALL_CXXFLAGS) -o recollq $(RECOLLQ_OBJS) \ $(BSTATIC) $(LIBRECOLL) $(LIBXAPIAN) $(LIBICONV) $(BDYNAMIC) \ $(LIBSYS) recollq.o : recollq.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_RECOLLQ -c recollq.cpp HISTORY_OBJS= trhist.o trhist : $(HISTORY_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trhist $(HISTORY_OBJS) \ $(LIBICONV) $(LIBXAPIAN) trhist.o : history.cpp history.h $(CXX) $(ALL_CXXFLAGS) -DTEST_HISTORY -c -o trhist.o history.cpp WASASTRINGTOQUERY_OBJS= trwasastrtoq.o trwasastrtoq : $(WASASTRINGTOQUERY_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trwasastrtoq $(WASASTRINGTOQUERY_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBXAPIAN) trwasastrtoq.o : wasastringtoquery.cpp wasastringtoquery.h $(CXX) $(ALL_CXXFLAGS) -DTEST_WASASTRINGTOQUERY -c \ -o trwasastrtoq.o wasastringtoquery.cpp include $(depth)/mk/commontargets include alldeps distclean:: -rm -f location.hh position.hh stack.hh \ wasaparse.tab.c wasaparse.tab.cpp wasaparse.tab.h recoll-1.21.5/query/docseqhist.h0000644000175000017500000000450312602163572016054 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DOCSEQHIST_H_INCLUDED_ #define _DOCSEQHIST_H_INCLUDED_ #include "docseq.h" #include "dynconf.h" namespace Rcl { class Db; } /** DynConf Document history entry */ class RclDHistoryEntry : public DynConfEntry { public: RclDHistoryEntry() : unixtime(0) {} RclDHistoryEntry(long t, const string& u) : unixtime(t), udi(u) {} virtual ~RclDHistoryEntry() {} virtual bool decode(const string &value); virtual bool encode(string& value); virtual bool equal(const DynConfEntry& other); long unixtime; string udi; }; /** A DocSequence coming from the history file. * History is kept as a list of urls. This queries the db to fetch * metadata for an url key */ class DocSequenceHistory : public DocSequence { public: DocSequenceHistory(Rcl::Db *d, RclDynConf *h, const string &t) : DocSequence(t), m_db(d), m_hist(h), m_prevnum(-1), m_prevtime(-1) {} virtual ~DocSequenceHistory() {} virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0); virtual int getResCnt(); virtual string getDescription() {return m_description;} void setDescription(const string& desc) {m_description = desc;} protected: virtual Rcl::Db *getDb(); private: Rcl::Db *m_db; RclDynConf *m_hist; int m_prevnum; long m_prevtime; std::string m_description; // This is just an nls translated 'doc history' std::list m_hlist; std::list::const_iterator m_it; }; extern bool historyEnterDoc(RclDynConf *dncf, const string& udi); #endif /* _DOCSEQ_H_INCLUDED_ */ recoll-1.21.5/query/docseqdocs.h0000644000175000017500000000346212602163537016041 0ustar dockesdockes/* Copyright (C) 2004-2013 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DOCSEQDOCS_H_INCLUDED_ #define _DOCSEQDOCS_H_INCLUDED_ #include "docseq.h" #include "rcldoc.h" namespace Rcl { class Db; } /** A DocSequence that's just built from a bunch of docs */ class DocSequenceDocs : public DocSequence { public: DocSequenceDocs(Rcl::Db *d, const std::vector docs, const string &t) : DocSequence(t), m_db(d), m_docs(docs) { } virtual ~DocSequenceDocs() { } virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0) { if (sh) *sh = string(); if (num < 0 || num >= int(m_docs.size())) return false; doc = m_docs[num]; return true; } virtual int getResCnt() { return m_docs.size(); } virtual string getDescription() { return m_description; } void setDescription(const string& desc) { m_description = desc; } protected: virtual Rcl::Db *getDb() { return m_db; } private: Rcl::Db *m_db; string m_description; std::vector m_docs; }; #endif /* _DOCSEQ_H_INCLUDED_ */ recoll-1.21.5/query/docseqhist.cpp0000644000175000017500000001061012602163572016403 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include using std::list; #include "docseqhist.h" #include "rcldb.h" #include "fileudi.h" #include "base64.h" #include "debuglog.h" #include "smallut.h" // Encode document history entry: // U + Unix time + base64 of udi // The U distinguishes udi-based entries from older fn+ipath ones bool RclDHistoryEntry::encode(string& value) { char chartime[30]; sprintf(chartime,"%ld", unixtime); string budi; base64_encode(udi, budi); value = string("U ") + string(chartime) + " " + budi; return true; } // Decode. We support historical entries which were like "time b64fn [b64ipath]" // Current entry format is "U time b64udi" bool RclDHistoryEntry::decode(const string &value) { vector vall; stringToStrings(value, vall); vector::const_iterator it = vall.begin(); udi.erase(); string fn, ipath; switch (vall.size()) { case 2: // Old fn+ipath, null ipath case unixtime = atoll((*it++).c_str()); base64_decode(*it++, fn); break; case 3: if (!it->compare("U")) { // New udi-based entry it++; unixtime = atoll((*it++).c_str()); base64_decode(*it++, udi); } else { // Old fn + ipath. We happen to know how to build an udi unixtime = atoll((*it++).c_str()); base64_decode(*it++, fn); base64_decode(*it, ipath); } break; default: return false; } if (!fn.empty()) { // Old style entry found, make an udi, using the fs udi maker make_udi(fn, ipath, udi); } LOGDEB1(("RclDHistoryEntry::decode: udi [%s]\n", udi.c_str())); return true; } bool RclDHistoryEntry::equal(const DynConfEntry& other) { const RclDHistoryEntry& e = dynamic_cast(other); return e.udi == udi; } bool historyEnterDoc(RclDynConf *dncf, const string& udi) { LOGDEB1(("historyEnterDoc: [%s] into %s\n", udi.c_str(), dncf->getFilename().c_str())); RclDHistoryEntry ne(time(0), udi); RclDHistoryEntry scratch; return dncf->insertNew(docHistSubKey, ne, scratch, 200); } list getDocHistory(RclDynConf* dncf) { return dncf->getList(docHistSubKey); } bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, string *sh) { // Retrieve history list if (!m_hist) return false; if (m_hlist.empty()) m_hlist = getDocHistory(m_hist); if (num < 0 || num >= (int)m_hlist.size()) return false; int skip; if (m_prevnum >= 0 && num >= m_prevnum) { skip = num - m_prevnum; } else { skip = num; m_it = m_hlist.begin(); m_prevtime = -1; } m_prevnum = num; while (skip--) m_it++; if (sh) { if (m_prevtime < 0 || abs (float(m_prevtime) - float(m_it->unixtime)) > 86400) { m_prevtime = m_it->unixtime; time_t t = (time_t)(m_it->unixtime); *sh = string(ctime(&t)); // Get rid of the final \n in ctime sh->erase(sh->length()-1); } else sh->erase(); } // For now history does not store an index id. Use empty doc as ref. Rcl::Doc idxdoc; bool ret = m_db->getDoc(m_it->udi, idxdoc, doc); if (!ret || doc.pc == -1) { doc.url = "UNKNOWN"; doc.ipath = ""; } // Ensure the snippets link won't be shown as it does not make // sense (no query terms...) doc.haspages = 0; return ret; } Rcl::Db *DocSequenceHistory::getDb() { return m_db; } int DocSequenceHistory::getResCnt() { if (m_hlist.empty()) m_hlist = getDocHistory(m_hist); return m_hlist.size(); } recoll-1.21.5/query/wasaparse.cpp0000644000175000017500000001755412652662752016252 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include "wasatorcl.h" #include "wasaparserdriver.h" #include "searchdata.h" #include "debuglog.h" #define YYDEBUG 1 #include "wasaparse.tab.h" using namespace std; using namespace Rcl; void yy::parser::error (const location_type& l, const std::string& m) { d->setreason(m); } SearchData *wasaStringToRcl(const RclConfig *config, const std::string& stemlang, const std::string& query, string &reason, const std::string& autosuffs) { WasaParserDriver d(config, stemlang, autosuffs); SearchData *sd = d.parse(query); if (!sd) reason = d.getreason(); return sd; } WasaParserDriver::WasaParserDriver(const RclConfig *c, const std::string sl, const std::string& as) : m_stemlang(sl), m_autosuffs(as), m_config(c), m_index(0), m_result(0), m_haveDates(false), m_maxSize((size_t)-1), m_minSize((size_t)-1) { } WasaParserDriver::~WasaParserDriver() { } SearchData *WasaParserDriver::parse(const std::string& in) { m_input = in; m_index = 0; delete m_result; m_result = 0; m_returns = stack(); yy::parser parser(this); parser.set_debug_level(0); if (parser.parse() != 0) { delete m_result; m_result = 0; } if (m_result == 0) return m_result; // Set the top level filters (types, dates, size) for (vector::const_iterator it = m_filetypes.begin(); it != m_filetypes.end(); it++) { m_result->addFiletype(*it); } for (vector::const_iterator it = m_nfiletypes.begin(); it != m_nfiletypes.end(); it++) { m_result->remFiletype(*it); } if (m_haveDates) { m_result->setDateSpan(&m_dates); } if (m_minSize != (size_t)-1) { m_result->setMinSize(m_minSize); } if (m_maxSize != (size_t)-1) { m_result->setMaxSize(m_maxSize); } //if (m_result) m_result->dump(cout); return m_result; } int WasaParserDriver::GETCHAR() { if (!m_returns.empty()) { int c = m_returns.top(); m_returns.pop(); return c; } if (m_index < m_input.size()) return m_input[m_index++]; return 0; } void WasaParserDriver::UNGETCHAR(int c) { m_returns.push(c); } // Add clause to query, handling special pseudo-clauses for size/date // etc. (mostly determined on field name). bool WasaParserDriver::addClause(SearchData *sd, SearchDataClauseSimple* cl) { if (cl->getfield().empty()) { // Simple clause with empty field spec. // Possibly change terms found in the "autosuffs" list into "ext" // field queries if (!m_autosuffs.empty()) { vector asfv; if (stringToStrings(m_autosuffs, asfv)) { if (find_if(asfv.begin(), asfv.end(), StringIcmpPred(cl->gettext())) != asfv.end()) { cl->setfield("ext"); cl->addModifier(SearchDataClause::SDCM_NOSTEMMING); } } } return sd->addClause(cl); } const string& fld = cl->getfield(); // MIME types and categories if (!stringicmp("mime", fld) ||!stringicmp("format", fld)) { if (cl->getexclude()) { m_nfiletypes.push_back(cl->gettext()); } else { m_filetypes.push_back(cl->gettext()); } delete cl; return false; } if (!stringicmp("rclcat", fld) || !stringicmp("type", fld)) { vector mtypes; if (m_config && m_config->getMimeCatTypes(cl->gettext(), mtypes)) { for (vector::iterator mit = mtypes.begin(); mit != mtypes.end(); mit++) { if (cl->getexclude()) { m_nfiletypes.push_back(*mit); } else { m_filetypes.push_back(*mit); } } } delete cl; return false; } // Handle "date" spec if (!stringicmp("date", fld)) { DateInterval di; if (!parsedateinterval(cl->gettext(), &di)) { LOGERR(("Bad date interval format: %s\n", cl->gettext().c_str())); m_reason = "Bad date interval format"; delete cl; return false; } LOGDEB(("addClause:: date span: %d-%d-%d/%d-%d-%d\n", di.y1,di.m1,di.d1, di.y2,di.m2,di.d2)); m_haveDates = true; m_dates = di; delete cl; return false; } // Handle "size" spec if (!stringicmp("size", fld)) { char *cp; size_t size = strtoll(cl->gettext().c_str(), &cp, 10); if (*cp != 0) { switch (*cp) { case 'k': case 'K': size *= 1E3;break; case 'm': case 'M': size *= 1E6;break; case 'g': case 'G': size *= 1E9;break; case 't': case 'T': size *= 1E12;break; default: m_reason = string("Bad multiplier suffix: ") + *cp; delete cl; return false; } } SearchDataClause::Relation rel = cl->getrel(); delete cl; switch (rel) { case SearchDataClause::REL_EQUALS: m_maxSize = m_minSize = size; break; case SearchDataClause::REL_LT: case SearchDataClause::REL_LTE: m_maxSize = size; break; case SearchDataClause::REL_GT: case SearchDataClause::REL_GTE: m_minSize = size; break; default: m_reason = "Bad relation operator with size query. Use > < or ="; return false; } return false; } if (!stringicmp("dir", fld)) { // dir filtering special case SearchDataClausePath *nclause = new SearchDataClausePath(cl->gettext(), cl->getexclude()); delete cl; return sd->addClause(nclause); } if (cl->getTp() == SCLT_OR || cl->getTp() == SCLT_AND) { // If this is a normal clause and the term has commas or // slashes inside, take it as a list, turn the slashes/commas // to spaces, leave unquoted. Otherwise, this would end up as // a phrase query. This is a handy way to enter multiple terms // to be searched inside a field. We interpret ',' as AND, and // '/' as OR. No mixes allowed and ',' wins. SClType tp = SCLT_FILENAME;// impossible value string ns = neutchars(cl->gettext(), ","); if (ns.compare(cl->gettext())) { // had ',' tp = SCLT_AND; } else { ns = neutchars(cl->gettext(), "/"); if (ns.compare(cl->gettext())) { // had not ',' but has '/' tp = SCLT_OR; } } if (tp != SCLT_FILENAME) { SearchDataClauseSimple *ncl = new SearchDataClauseSimple(tp, ns, fld); delete cl; return sd->addClause(ncl); } } return sd->addClause(cl); } recoll-1.21.5/query/plaintorich.cpp0000644000175000017500000004151112602163572016555 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include using std::vector; using std::list; using std::pair; using std::set; #include "rcldb.h" #include "rclconfig.h" #include "debuglog.h" #include "textsplit.h" #include "utf8iter.h" #include "smallut.h" #include "plaintorich.h" #include "cancelcheck.h" #include "unacpp.h" // For debug printing static string vecStringToString(const vector& t) { string sterms; for (vector::const_iterator it = t.begin(); it != t.end(); it++) { sterms += "[" + *it + "] "; } return sterms; } struct MatchEntry { // Start/End byte offsets in the document text pair offs; // Index of the search group this comes from: this is to relate a // match to the original user input. unsigned int grpidx; MatchEntry(int sta, int sto, unsigned int idx) : offs(sta, sto), grpidx(idx) { } }; // Text splitter used to take note of the position of query terms // inside the result text. This is then used to insert highlight tags. class TextSplitPTR : public TextSplit { public: // Out: begin and end byte positions of query terms/groups in text vector tboffs; TextSplitPTR(const HighlightData& hdata) : m_wcount(0), m_hdata(hdata) { // We separate single terms and groups and extract the group // terms for computing positions list before looking for group // matches for (vector >::const_iterator vit = hdata.groups.begin(); vit != hdata.groups.end(); vit++) { if (vit->size() == 1) { m_terms[vit->front()] = vit - hdata.groups.begin(); } else if (vit->size() > 1) { for (vector::const_iterator it = vit->begin(); it != vit->end(); it++) { m_gterms.insert(*it); } } } } // Accept word and its position. If word is search term, add // highlight zone definition. If word is part of search group // (phrase or near), update positions list. virtual bool takeword(const std::string& term, int pos, int bts, int bte) { string dumb = term; if (o_index_stripchars) { if (!unacmaybefold(term, dumb, "UTF-8", UNACOP_UNACFOLD)) { LOGINFO(("PlainToRich::takeword: unac failed for [%s]\n", term.c_str())); return true; } } //LOGDEB2(("Input dumbbed term: '%s' %d %d %d\n", dumb.c_str(), // pos, bts, bte)); // If this word is a search term, remember its byte-offset span. map::const_iterator it = m_terms.find(dumb); if (it != m_terms.end()) { tboffs.push_back(MatchEntry(bts, bte, (*it).second)); } // If word is part of a search group, update its positions list if (m_gterms.find(dumb) != m_gterms.end()) { // Term group (phrase/near) handling m_plists[dumb].push_back(pos); m_gpostobytes[pos] = pair(bts, bte); //LOGDEB2(("Recorded bpos for %d: %d %d\n", pos, bts, bte)); } // Check for cancellation request if ((m_wcount++ & 0xfff) == 0) CancelCheck::instance().checkCancel(); return true; } // Must be called after the split to find the phrase/near match positions virtual bool matchGroups(); private: virtual bool matchGroup(unsigned int idx); // Word count. Used to call checkCancel from time to time. int m_wcount; // In: user query terms map m_terms; // m_gterms holds all the terms in m_groups, as a set for quick lookup set m_gterms; const HighlightData& m_hdata; // group/near terms word positions. map > m_plists; map > m_gpostobytes; }; /** Sort by shorter comparison class */ class VecIntCmpShorter { public: /** Return true if and only if a is strictly shorter than b. */ bool operator()(const vector *a, const vector *b) { return a->size() < b->size(); } }; #define SETMINMAX(POS, STA, STO) {if ((POS) < (STA)) (STA) = (POS); \ if ((POS) > (STO)) (STO) = (POS);} // Check that at least an entry from the first position list is inside // the window and recurse on next list. The window is readjusted as // the successive terms are found. // // @param window the search window width // @param plists the position list vector // @param i the position list to process (we then recurse with the next list) // @param min the current minimum pos for a found term // @param max the current maximum pos for a found term // @param sp, ep output: the found area // @param minpos bottom of search: this is the highest point of // any previous match. We don't look below this as overlapping matches // make no sense for highlighting. static bool do_proximity_test(int window, vector* >& plists, unsigned int i, int min, int max, int *sp, int *ep, int minpos) { LOGDEB1(("do_prox_test: win %d i %d min %d max %d minpos %d\n", window, i, min, max, minpos)); int tmp = max + 1 - window; if (tmp < minpos) tmp = minpos; // Find 1st position bigger than window start vector::iterator it = plists[i]->begin(); while (it != plists[i]->end() && *it < tmp) it++; // Look for position inside window. If not found, no match. If // found: if this is the last list we're done, else recurse on // next list after adjusting the window while (it != plists[i]->end()) { int pos = *it; if (pos > min + window - 1) return false; if (i + 1 == plists.size()) { SETMINMAX(pos, *sp, *ep); return true; } SETMINMAX(pos, min, max); if (do_proximity_test(window,plists, i + 1, min, max, sp, ep, minpos)) { SETMINMAX(pos, *sp, *ep); return true; } it++; } return false; } // Find NEAR matches for one group of terms, update highlight map bool TextSplitPTR::matchGroup(unsigned int grpidx) { const vector& terms = m_hdata.groups[grpidx]; int window = m_hdata.groups[grpidx].size() + m_hdata.slacks[grpidx]; LOGDEB1(("TextSplitPTR::matchGroup:d %d: %s\n", window, vecStringToString(terms).c_str())); // The position lists we are going to work with. We extract them from the // (string->plist) map vector* > plists; // A revert plist->term map. This is so that we can find who is who after // sorting the plists by length. map*, string> plistToTerm; // Find the position list for each term in the group. It is // possible that this particular group was not actually matched by // the search, so that some terms are not found. for (vector::const_iterator it = terms.begin(); it != terms.end(); it++) { map >::iterator pl = m_plists.find(*it); if (pl == m_plists.end()) { LOGDEB1(("TextSplitPTR::matchGroup: [%s] not found in m_plists\n", (*it).c_str())); return false; } plists.push_back(&(pl->second)); plistToTerm[&(pl->second)] = *it; } // I think this can't actually happen, was useful when we used to // prune the groups, but doesn't hurt. if (plists.size() < 2) { LOGDEB1(("TextSplitPTR::matchGroup: no actual groups found\n")); return false; } // Sort the positions lists so that the shorter is first std::sort(plists.begin(), plists.end(), VecIntCmpShorter()); { // Debug map*, string>::iterator it; it = plistToTerm.find(plists[0]); if (it == plistToTerm.end()) { // SuperWeird LOGERR(("matchGroup: term for first list not found !?!\n")); return false; } LOGDEB1(("matchGroup: walking the shortest plist. Term [%s], len %d\n", it->second.c_str(), plists[0]->size())); } // Minpos is the highest end of a found match. While looking for // further matches, we don't want the search to extend before // this, because it does not make sense for highlight regions to // overlap int minpos = 0; // Walk the shortest plist and look for matches for (vector::iterator it = plists[0]->begin(); it != plists[0]->end(); it++) { int pos = *it; int sta = int(10E9), sto = 0; LOGDEB2(("MatchGroup: Testing at pos %d\n", pos)); if (do_proximity_test(window,plists, 1, pos, pos, &sta, &sto, minpos)) { LOGDEB1(("TextSplitPTR::matchGroup: MATCH termpos [%d,%d]\n", sta, sto)); // Maybe extend the window by 1st term position, this was not // done by do_prox.. SETMINMAX(pos, sta, sto); minpos = sto+1; // Translate the position window into a byte offset window map >::iterator i1 = m_gpostobytes.find(sta); map >::iterator i2 = m_gpostobytes.find(sto); if (i1 != m_gpostobytes.end() && i2 != m_gpostobytes.end()) { LOGDEB2(("TextSplitPTR::matchGroup: pushing bpos %d %d\n", i1->second.first, i2->second.second)); tboffs.push_back(MatchEntry(i1->second.first, i2->second.second, grpidx)); } else { LOGDEB0(("matchGroup: no bpos found for %d or %d\n", sta, sto)); } } else { LOGDEB1(("matchGroup: no group match found at this position\n")); } } return true; } /** Sort integer pairs by increasing first value and decreasing width */ class PairIntCmpFirst { public: bool operator()(const MatchEntry& a, const MatchEntry& b) { if (a.offs.first != b.offs.first) return a.offs.first < b.offs.first; return a.offs.second > b.offs.second; } }; // Look for matches to PHRASE and NEAR term groups and finalize the // matched regions list (sort it by increasing start then decreasing // length) // Actually, we handle all groups as NEAR (ignore order). bool TextSplitPTR::matchGroups() { for (unsigned int i = 0; i < m_hdata.groups.size(); i++) { if (m_hdata.groups[i].size() <= 1) continue; matchGroup(i); } // Sort regions by increasing start and decreasing width. // The output process will skip overlapping entries. std::sort(tboffs.begin(), tboffs.end(), PairIntCmpFirst()); return true; } // Fix result text for display inside the gui text window. // // We call overridden functions to output header data, beginnings and ends of // matches etc. // // If the input is text, we output the result in chunks, arranging not // to cut in the middle of a tag, which would confuse qtextedit. If // the input is html, the body is always a single output chunk. bool PlainToRich::plaintorich(const string& in, list& out, // Output chunk list const HighlightData& hdata, int chunksize) { Chrono chron; bool ret = true; LOGDEB1(("plaintorichich: in: [%s]\n", in.c_str())); m_hdata = &hdata; // Compute the positions for the query terms. We use the text // splitter to break the text into words, and compare the words to // the search terms, TextSplitPTR splitter(hdata); // Note: the splitter returns the term locations in byte, not // character, offsets. splitter.text_to_words(in); LOGDEB2(("plaintorich: split done %d mS\n", chron.millis())); // Compute the positions for NEAR and PHRASE groups. splitter.matchGroups(); LOGDEB2(("plaintorich: group match done %d mS\n", chron.millis())); out.clear(); out.push_back(""); list::iterator olit = out.begin(); // Rich text output *olit = header(); // No term matches. Happens, for example on a snippet selected for // a term match when we are actually looking for a group match // (the snippet generator does this...). if (splitter.tboffs.empty()) { LOGDEB1(("plaintorich: no term matches\n")); ret = false; } // Iterator for the list of input term positions. We use it to // output highlight tags and to compute term positions in the // output text vector::iterator tPosIt = splitter.tboffs.begin(); vector::iterator tPosEnd = splitter.tboffs.end(); #if 0 for (vector >::const_iterator it = splitter.tboffs.begin(); it != splitter.tboffs.end(); it++) { LOGDEB2(("plaintorich: region: %d %d\n", it->first, it->second)); } #endif // Input character iterator Utf8Iter chariter(in); // State variables used to limit the number of consecutive empty lines, // convert all eol to '\n', and preserve some indentation int eol = 0; int hadcr = 0; int inindent = 1; // HTML state bool intag = false, inparamvalue = false; // My tag state int inrcltag = 0; string::size_type headend = 0; if (m_inputhtml) { headend = in.find(""); if (headend == string::npos) headend = in.find(""); if (headend != string::npos) headend += 7; } for (string::size_type pos = 0; pos != string::npos; pos = chariter++) { // Check from time to time if we need to stop if ((pos & 0xfff) == 0) { CancelCheck::instance().checkCancel(); } // If we still have terms positions, check (byte) position. If // we are at or after a term match, mark. if (tPosIt != tPosEnd) { int ibyteidx = chariter.getBpos(); if (ibyteidx == tPosIt->offs.first) { if (!intag && ibyteidx >= (int)headend) { *olit += startMatch(tPosIt->grpidx); } inrcltag = 1; } else if (ibyteidx == tPosIt->offs.second) { // Output end of match region tags if (!intag && ibyteidx > (int)headend) { *olit += endMatch(); } // Skip all highlight areas that would overlap this one int crend = tPosIt->offs.second; while (tPosIt != splitter.tboffs.end() && tPosIt->offs.first < crend) tPosIt++; inrcltag = 0; } } unsigned int car = *chariter; if (car == '\n') { if (!hadcr) eol++; hadcr = 0; continue; } else if (car == '\r') { hadcr++; eol++; continue; } else if (eol) { // Got non eol char in line break state. Do line break; inindent = 1; hadcr = 0; if (eol > 2) eol = 2; while (eol) { if (!m_inputhtml && m_eolbr) *olit += "
"; *olit += "\n"; eol--; } // Maybe end this chunk, begin next. Don't do it on html // there is just no way to do it right (qtextedit cant grok // chunks cut in the middle of for example). if (!m_inputhtml && !inrcltag && olit->size() > (unsigned int)chunksize) { out.push_back(string(startChunk())); olit++; } } switch (car) { case '<': inindent = 0; if (m_inputhtml) { if (!inparamvalue) intag = true; chariter.appendchartostring(*olit); } else { *olit += "<"; } break; case '>': inindent = 0; if (m_inputhtml) { if (!inparamvalue) intag = false; } chariter.appendchartostring(*olit); break; case '&': inindent = 0; if (m_inputhtml) { chariter.appendchartostring(*olit); } else { *olit += "&"; } break; case '"': inindent = 0; if (m_inputhtml && intag) { inparamvalue = !inparamvalue; } chariter.appendchartostring(*olit); break; case ' ': if (m_eolbr && inindent) { *olit += " "; } else { chariter.appendchartostring(*olit); } break; case '\t': if (m_eolbr && inindent) { *olit += "    "; } else { chariter.appendchartostring(*olit); } break; default: inindent = 0; chariter.appendchartostring(*olit); } } // End chariter loop #if 0 { FILE *fp = fopen("/tmp/debugplaintorich", "a"); fprintf(fp, "BEGINOFPLAINTORICHOUTPUT\n"); for (list::iterator it = out.begin(); it != out.end(); it++) { fprintf(fp, "BEGINOFPLAINTORICHCHUNK\n"); fprintf(fp, "%s", it->c_str()); fprintf(fp, "ENDOFPLAINTORICHCHUNK\n"); } fprintf(fp, "ENDOFPLAINTORICHOUTPUT\n"); fclose(fp); } #endif LOGDEB2(("plaintorich: done %d mS\n", chron.millis())); return ret; } recoll-1.21.5/query/dynconf.cpp0000644000175000017500000001254012602163537015702 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_HISTORY #include #include #include #include "dynconf.h" #include "base64.h" #include "smallut.h" #include "debuglog.h" using namespace std; // Well known keys for history and external indexes. const string docHistSubKey = "docs"; const string allEdbsSk = "allExtDbs"; const string actEdbsSk = "actExtDbs"; const string advSearchHistSk = "advSearchHist"; bool RclDynConf::insertNew(const string &sk, DynConfEntry &n, DynConfEntry &s, int maxlen) { // Is this doc already in list ? If it is we remove the old entry vector names = m_data.getNames(sk); vector::const_iterator it; bool changed = false; for (it = names.begin(); it != names.end(); it++) { string oval; if (!m_data.get(*it, oval, sk)) { LOGDEB(("No data for %s\n", (*it).c_str())); continue; } s.decode(oval); if (s.equal(n)) { LOGDEB(("Erasing old entry\n")); m_data.erase(*it, sk); changed = true; } } // Maybe reget things if (changed) names = m_data.getNames(sk); // Need to prune ? if (maxlen > 0 && names.size() >= (unsigned int)maxlen) { // Need to erase entries until we're back to size. Note that // we don't ever reset numbers. Problems will arise when // history is 4 billion entries old it = names.begin(); for (unsigned int i = 0; i < names.size() - maxlen + 1; i++, it++) { m_data.erase(*it, sk); } } // Increment highest number unsigned int hi = names.empty() ? 0 : (unsigned int)atoi(names.back().c_str()); hi++; char nname[20]; sprintf(nname, "%010u", hi); string value; n.encode(value); LOGDEB1(("Encoded value [%s] (%d)\n", value.c_str(), value.size())); if (!m_data.set(string(nname), value, sk)) { LOGERR(("RclDHistory::insertNew: set failed\n")); return false; } return true; } bool RclDynConf::eraseAll(const string &sk) { vector names = m_data.getNames(sk); vector::const_iterator it; for (it = names.begin(); it != names.end(); it++) { m_data.erase(*it, sk); } return true; } // Specialization for plain strings /////////////////////////////////// bool RclDynConf::enterString(const string sk, const string value, int maxlen) { RclSListEntry ne(value); RclSListEntry scratch; return insertNew(sk, ne, scratch, maxlen); } list RclDynConf::getStringList(const string sk) { list el = getList(sk); list sl; for (list::const_iterator it = el.begin(); it != el.end(); it++) sl.push_back(it->value); return sl; } #else #include #include #include "history.h" #include "debuglog.h" #ifndef NO_NAMESPACES using namespace std; #endif static string thisprog; static string usage = "trhist [opts] \n" " [-s ]: specify subkey (default: RclDynConf::docHistSubKey)\n" " [-e] : erase all\n" " [-a ] enter string (needs -s, no good for history entries\n" "\n" ; static void Usage(void) { cerr << thisprog << ": usage:\n" << usage; exit(1); } static int op_flags; #define OPT_e 0x2 #define OPT_s 0x4 #define OPT_a 0x8 int main(int argc, char **argv) { string sk = "docs"; string value; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'a': op_flags |= OPT_a; if (argc < 2) Usage(); value = *(++argv); argc--; goto b1; case 's': op_flags |= OPT_s; if (argc < 2) Usage(); sk = *(++argv); argc--; goto b1; case 'e': op_flags |= OPT_e; break; default: Usage(); break; } b1: argc--; argv++; } if (argc != 1) Usage(); string filename = *argv++;argc--; RclDynConf hist(filename, 5); DebugLog::getdbl()->setloglevel(DEBDEB1); DebugLog::setfilename("stderr"); if (op_flags & OPT_e) { hist.eraseAll(sk); } else if (op_flags & OPT_a) { if (!(op_flags & OPT_s)) Usage(); hist.enterString(sk, value); } else { for (int i = 0; i < 10; i++) { char docname[200]; sprintf(docname, "A very long document document name" "is very long indeed and this is the end of " "it here and exactly here:\n%d", i); hist.enterDoc(string(docname), "ipathx"); } list hlist = hist.getDocHistory(); for (list::const_iterator it = hlist.begin(); it != hlist.end(); it++) { printf("[%ld] [%s] [%s]\n", it->unixtime, it->fn.c_str(), it->ipath.c_str()); } } } #endif recoll-1.21.5/query/wasaparse.y0000644000175000017500000002532112652664315015724 0ustar dockesdockes%{ #define YYDEBUG 1 #include #include #include #include "searchdata.h" #include "wasaparserdriver.h" #include "wasaparse.tab.h" using namespace std; // #define LOG_PARSER #ifdef LOG_PARSER #define LOGP(X) {cerr << X;} #else #define LOGP(X) #endif int yylex(yy::parser::semantic_type *, yy::parser::location_type *, WasaParserDriver *); void yyerror(char const *); static void qualify(Rcl::SearchDataClauseDist *, const string &); static void addSubQuery(WasaParserDriver *d, Rcl::SearchData *sd, Rcl::SearchData *sq) { if (sd && sq) sd->addClause( new Rcl::SearchDataClauseSub(RefCntr(sq))); } %} %skeleton "lalr1.cc" %defines %locations %error-verbose %parse-param {WasaParserDriver* d} %lex-param {WasaParserDriver* d} %union { std::string *str; Rcl::SearchDataClauseSimple *cl; Rcl::SearchData *sd; } %destructor {delete $$;} %type qualquote %type fieldexpr %type term %type query %type complexfieldname /* Non operator tokens need precedence because of the possibility of concatenation which needs to have lower prec than OR */ %left WORD %left QUOTED %left QUALIFIERS %left AND UCONCAT '(' '-' %left OR %token EQUALS CONTAINS SMALLEREQ SMALLER GREATEREQ GREATER %% topquery: query { // It's possible that we end up with no query (e.g.: because just a // date filter was set, no terms). Allocate an empty query so that we // have something to set the global criteria on (this will yield a // Xapian search like FILTER xxx if ($1 == 0) d->m_result = new Rcl::SearchData(Rcl::SCLT_AND, d->m_stemlang); else d->m_result = $1; } query: query query %prec UCONCAT { LOGP("q: query query\n"); Rcl::SearchData *sd = 0; if ($1 || $2) { sd = new Rcl::SearchData(Rcl::SCLT_AND, d->m_stemlang); addSubQuery(d, sd, $1); addSubQuery(d, sd, $2); } $$ = sd; } | query AND query { LOGP("q: query AND query\n"); Rcl::SearchData *sd = 0; if ($1 || $3) { sd = new Rcl::SearchData(Rcl::SCLT_AND, d->m_stemlang); addSubQuery(d, sd, $1); addSubQuery(d, sd, $3); } $$ = sd; } | query OR query { LOGP("query: query OR query\n"); Rcl::SearchData *top = 0; if ($1 || $3) { top = new Rcl::SearchData(Rcl::SCLT_OR, d->m_stemlang); addSubQuery(d, top, $1); addSubQuery(d, top, $3); } $$ = top; } | '(' query ')' { LOGP("q: ( query )\n"); $$ = $2; } | fieldexpr %prec UCONCAT { LOGP("q: fieldexpr\n"); Rcl::SearchData *sd = new Rcl::SearchData(Rcl::SCLT_AND, d->m_stemlang); if (d->addClause(sd, $1)) { $$ = sd; } else { delete sd; $$ = 0; } } ; fieldexpr: term { LOGP("fe: simple fieldexpr: " << $1->gettext() << endl); $$ = $1; } | complexfieldname EQUALS term { LOGP("fe: " << *$1 << " = " << $3->gettext() << endl); $3->setfield(*$1); $3->setrel(Rcl::SearchDataClause::REL_EQUALS); $$ = $3; delete $1; } | complexfieldname CONTAINS term { LOGP("fe: " << *$1 << " : " << $3->gettext() << endl); $3->setfield(*$1); $3->setrel(Rcl::SearchDataClause::REL_CONTAINS); $$ = $3; delete $1; } | complexfieldname SMALLER term { LOGP(cerr << "fe: " << *$1 << " < " << $3->gettext() << endl); $3->setfield(*$1); $3->setrel(Rcl::SearchDataClause::REL_LT); $$ = $3; delete $1; } | complexfieldname SMALLEREQ term { LOGP("fe: " << *$1 << " <= " << $3->gettext() << endl); $3->setfield(*$1); $3->setrel(Rcl::SearchDataClause::REL_LTE); $$ = $3; delete $1; } | complexfieldname GREATER term { LOGP("fe: " << *$1 << " > " << $3->gettext() << endl); $3->setfield(*$1); $3->setrel(Rcl::SearchDataClause::REL_GT); $$ = $3; delete $1; } | complexfieldname GREATEREQ term { LOGP("fe: " << *$1 << " >= " << $3->gettext() << endl); $3->setfield(*$1); $3->setrel(Rcl::SearchDataClause::REL_GTE); $$ = $3; delete $1; } | '-' fieldexpr { LOGP("fe: - fieldexpr[" << $2->gettext() << "]" << endl); $2->setexclude(true); $$ = $2; } ; /* Deal with field names like dc:title */ complexfieldname: WORD { LOGP("cfn: WORD" << endl); $$ = $1; } | complexfieldname CONTAINS WORD { LOGP("cfn: complexfieldname ':' WORD" << endl); $$ = new string(*$1 + string(":") + *$3); delete $1; delete $3; } term: WORD { LOGP("term[" << *$1 << "]" << endl); $$ = new Rcl::SearchDataClauseSimple(Rcl::SCLT_AND, *$1); delete $1; } | qualquote { $$ = $1; } qualquote: QUOTED { LOGP("QUOTED[" << *$1 << "]" << endl); $$ = new Rcl::SearchDataClauseDist(Rcl::SCLT_PHRASE, *$1, 0); delete $1; } | QUOTED QUALIFIERS { LOGP("QUOTED[" << *$1 << "] QUALIFIERS[" << *$2 << "]" << endl); Rcl::SearchDataClauseDist *cl = new Rcl::SearchDataClauseDist(Rcl::SCLT_PHRASE, *$1, 0); qualify(cl, *$2); $$ = cl; delete $1; delete $2; } %% #include // Look for int at index, skip and return new index found? value. static unsigned int qualGetInt(const string& q, unsigned int cur, int *pval) { unsigned int ncur = cur; if (cur < q.size() - 1) { char *endptr; int val = strtol(&q[cur + 1], &endptr, 10); if (endptr != &q[cur + 1]) { ncur += endptr - &q[cur + 1]; *pval = val; } } return ncur; } static void qualify(Rcl::SearchDataClauseDist *cl, const string& quals) { // cerr << "qualify(" << cl << ", " << quals << ")" << endl; for (unsigned int i = 0; i < quals.length(); i++) { //fprintf(stderr, "qual char %c\n", quals[i]); switch (quals[i]) { case 'b': cl->setWeight(10.0); break; case 'c': break; case 'C': cl->addModifier(Rcl::SearchDataClause::SDCM_CASESENS); break; case 'd': break; case 'D': cl->addModifier(Rcl::SearchDataClause::SDCM_DIACSENS); break; case 'e': cl->addModifier(Rcl::SearchDataClause::SDCM_CASESENS); cl->addModifier(Rcl::SearchDataClause::SDCM_DIACSENS); cl->addModifier(Rcl::SearchDataClause::SDCM_NOSTEMMING); break; case 'l': cl->addModifier(Rcl::SearchDataClause::SDCM_NOSTEMMING); break; case 'L': break; case 'o': { int slack = 10; i = qualGetInt(quals, i, &slack); cl->setslack(slack); //cerr << "set slack " << cl->getslack() << " done" << endl; } break; case 'p': cl->setTp(Rcl::SCLT_NEAR); if (cl->getslack() == 0) { cl->setslack(10); //cerr << "set slack " << cl->getslack() << " done" << endl; } break; case '.':case '0':case '1':case '2':case '3':case '4': case '5':case '6':case '7':case '8':case '9': { int n = 0; float factor = 1.0; if (sscanf(&(quals[i]), "%f %n", &factor, &n)) { if (factor != 1.0) { cl->setWeight(factor); } } if (n > 0) i += n - 1; } default: break; } } } // specialstartchars are special only at the beginning of a token // (e.g. doctor-who is a term, not 2 terms separated by '-') static const string specialstartchars("-"); // specialinchars are special everywhere except inside a quoted string static const string specialinchars(":=<>()"); // Called with the first dquote already read static int parseString(WasaParserDriver *d, yy::parser::semantic_type *yylval) { string* value = new string(); d->qualifiers().clear(); int c; while ((c = d->GETCHAR())) { switch (c) { case '\\': /* Escape: get next char */ c = d->GETCHAR(); if (c == 0) { value->push_back(c); goto out; } value->push_back(c); break; case '"': /* End of string. Look for qualifiers */ while ((c = d->GETCHAR()) && (isalnum(c) || c == '.')) d->qualifiers().push_back(c); d->UNGETCHAR(c); goto out; default: value->push_back(c); } } out: //cerr << "GOT QUOTED ["<qualifiers() << "]" << endl; yylval->str = value; return yy::parser::token::QUOTED; } int yylex(yy::parser::semantic_type *yylval, yy::parser::location_type *, WasaParserDriver *d) { if (!d->qualifiers().empty()) { yylval->str = new string(); yylval->str->swap(d->qualifiers()); return yy::parser::token::QUALIFIERS; } int c; /* Skip white space. */ while ((c = d->GETCHAR()) && isspace(c)) continue; if (c == 0) return 0; if (specialstartchars.find_first_of(c) != string::npos) { //cerr << "yylex: return " << c << endl; return c; } // field-term relations switch (c) { case '=': return yy::parser::token::EQUALS; case ':': return yy::parser::token::CONTAINS; case '<': { int c1 = d->GETCHAR(); if (c1 == '=') { return yy::parser::token::SMALLEREQ; } else { d->UNGETCHAR(c1); return yy::parser::token::SMALLER; } } case '>': { int c1 = d->GETCHAR(); if (c1 == '=') { return yy::parser::token::GREATEREQ; } else { d->UNGETCHAR(c1); return yy::parser::token::GREATER; } } case '(': case ')': return c; } if (c == '"') return parseString(d, yylval); d->UNGETCHAR(c); // Other chars start a term or field name or reserved word string* word = new string(); while ((c = d->GETCHAR())) { if (isspace(c)) { //cerr << "Word broken by whitespace" << endl; break; } else if (specialinchars.find_first_of(c) != string::npos) { //cerr << "Word broken by special char" << endl; d->UNGETCHAR(c); break; } else if (c == 0) { //cerr << "Word broken by EOF" << endl; break; } else { word->push_back(c); } } if (!word->compare("AND") || !word->compare("&&")) { delete word; return yy::parser::token::AND; } else if (!word->compare("OR") || !word->compare("||")) { delete word; return yy::parser::token::OR; } // cerr << "Got word [" << word << "]" << endl; yylval->str = word; return yy::parser::token::WORD; } recoll-1.21.5/query/plaintorich.h0000644000175000017500000000636112602163537016227 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PLAINTORICH_H_INCLUDED_ #define _PLAINTORICH_H_INCLUDED_ #include #include #include "hldata.h" #include "cstr.h" /** * A class for highlighting search results. Overridable methods allow * for different styles. We can handle plain text or html input. In the latter * case, we may fail to highligt term groups if they are mixed with HTML * tags (ex: firstterm 2ndterm). */ class PlainToRich { public: PlainToRich() : m_inputhtml(false), m_eolbr(false), m_hdata(0) { } virtual ~PlainToRich() { } void set_inputhtml(bool v) { m_inputhtml = v; } /** * Transform plain text for highlighting search terms, ie in the * preview window or result list entries. * * The actual tags used for highlighting and anchoring are * determined by deriving from this class which handles the searching for * terms and groups, but there is an assumption that the output will be * html-like: we escape characters like < or & * * Finding the search terms is relatively complicated because of * phrase/near searches, which need group highlights. As a matter * of simplification, we handle "phrase" as "near", not filtering * on word order. * * @param in raw text out of internfile. * @param out rich text output, divided in chunks (to help our caller * avoid inserting half tags into textedit which doesnt like it) * @param in hdata terms and groups to be highlighted. These are * lowercase and unaccented. * @param chunksize max size of chunks in output list */ virtual bool plaintorich(const std::string &in, std::list &out, const HighlightData& hdata, int chunksize = 50000 ); /* Overridable output methods for headers, highlighting and marking tags */ virtual std::string header() { return cstr_null; } /** Return match prefix (e.g.:
). @param groupidx the index into hdata.groups */ virtual std::string startMatch(unsigned int) { return cstr_null; } /** Return data for end of match area (e.g.:
). */ virtual std::string endMatch() { return cstr_null; } virtual std::string startChunk() { return cstr_null; } protected: bool m_inputhtml; // Use
to break plain text lines (else caller has used a
 tag)
    bool m_eolbr; 
    const HighlightData *m_hdata;
};

#endif /* _PLAINTORICH_H_INCLUDED_ */
recoll-1.21.5/query/dynconf.h0000644000175000017500000001114512602163537015347 0ustar  dockesdockes/* Copyright (C) 2004 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
#ifndef _DYNCONF_H_INCLUDED_
#define _DYNCONF_H_INCLUDED_

/**
 * Dynamic configuration storage
 *
 * This used to be called "history" because of the initial usage.
 * Used to store some parameters which would fit neither in recoll.conf,
 * basically because they change a lot, nor in the QT preferences file, mostly 
 * because they are specific to a configuration directory.
 * Examples:
 *  - History of documents selected for preview
 *  - Active and inactive external databases (depend on the 
 *    configuration directory)
 *  - ...
 *
 * The storage is performed in a ConfSimple file, with subkeys and
 * encodings which depend on the data stored. Under each section, the keys 
 * are sequential numeric, so this basically manages a set of lists.
 *
 * The code ensures that a a given value (as defined by the
 * DynConfEntry::equal() method is only stored once. If undesirable,
 * equal() should always return false.
 */

#include 
#include 
#include 

#include "conftree.h"
#include "base64.h"

/** Interface for a stored object. */
class DynConfEntry {
 public:
    virtual ~DynConfEntry() {}
    /** Decode object-as-string coming out from storage */
    virtual bool decode(const std::string &value) = 0;
    /** Encode object state into state for storing */
    virtual bool encode(std::string& value) = 0;
    /** Compare objects */
    virtual bool equal(const DynConfEntry &other) = 0;
};

/** Stored object specialization for generic string storage */
class RclSListEntry : public DynConfEntry {
 public:
    RclSListEntry() 
    {
    }
    virtual ~RclSListEntry() {}
    RclSListEntry(const std::string& v) 
    : value(v) 
    {
    }
    virtual bool decode(const std::string &enc)
    {
	base64_decode(enc, value);
	return true;
    }
    virtual bool encode(std::string& enc)
    {
	base64_encode(value, enc);
	return true;
    }
    virtual bool equal(const DynConfEntry& other)
    {
	const RclSListEntry& e = dynamic_cast(other);
	return e.value == value;
    }

    std::string value;
};

/** The dynamic configuration class */
class RclDynConf {
 public:
    RclDynConf(const std::string &fn)
        : m_data(fn.c_str()) 
    {
    }
    bool ok() 
    {
	return m_data.getStatus() == ConfSimple::STATUS_RW;
    }
    std::string getFilename() 
    {
	return m_data.getFilename();
    }

    // Generic methods
    bool eraseAll(const std::string& sk);

    /** Insert new entry for section sk
     * @param sk section this is for
     * @param n  new entry
     * @param s a scratch entry used for decoding and comparisons,
     *        avoiding templating the routine for the actual entry type.
     */
    bool insertNew(const std::string& sk, DynConfEntry &n, DynConfEntry &s, 
                   int maxlen = -1);
    template std::list getList(const std::string& sk);

    // Specialized methods for simple string lists, designated by the
    // subkey value
    bool enterString(const std::string sk, const std::string value, int maxlen = -1);
    std::list getStringList(const std::string sk);

 private:
    unsigned int m_mlen;
    ConfSimple   m_data;
};

template std::list RclDynConf::getList(const std::string &sk)
{
    std::list mlist;
    Tp entry;
    std::vector names = m_data.getNames(sk);
    for (std::vector::const_iterator it = names.begin(); 
	 it != names.end(); it++) {
	std::string value;
	if (m_data.get(*it, value, sk)) {
	    if (!entry.decode(value))
		continue;
	    mlist.push_front(entry);
	}
    }
    return mlist;
}

// Defined subkeys. Values in dynconf.cpp
// History
extern const std::string docHistSubKey;
// All external indexes
extern const std::string allEdbsSk;
// Active external indexes
extern const std::string actEdbsSk;
// Advanced search history
extern const std::string advSearchHistSk;

#endif /* _DYNCONF_H_INCLUDED_ */
recoll-1.21.5/query/filtseq.cpp0000644000175000017500000000724412602163572015715 0ustar  dockesdockes/* Copyright (C) 2005 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#include "debuglog.h"
#include "filtseq.h"
#include "rclconfig.h"

using std::string;

static bool filter(const DocSeqFiltSpec& fs, const Rcl::Doc *x)
{
    LOGDEB2(("  Filter: ncrits %d\n", fs.crits.size()));
    // Compare using each criterion in term. We're doing an or:
    // 1st ok ends 
    for (unsigned int i = 0; i < fs.crits.size(); i++) {
	switch (fs.crits[i]) {
	case DocSeqFiltSpec::DSFS_MIMETYPE:
	    LOGDEB2((" filter: MIMETYPE: me [%s] doc [%s]\n",
		    fs.values[i].c_str(), x->mimetype.c_str()));
	    if (x->mimetype == fs.values[i])
		return true;
	    break;
	case DocSeqFiltSpec::DSFS_QLANG:
	{
	    LOGDEB((" filter: QLANG [%s]!!\n", fs.values[i].c_str()));
	}
	break;
	case DocSeqFiltSpec::DSFS_PASSALL:
	    return true;
	}
    }
    // Did all comparisons
    return false;
} 

DocSeqFiltered::DocSeqFiltered(RclConfig *conf, RefCntr iseq, 
			       DocSeqFiltSpec &filtspec)
    :  DocSeqModifier(iseq), m_config(conf)
{
    setFiltSpec(filtspec);
}

bool DocSeqFiltered::setFiltSpec(const DocSeqFiltSpec &filtspec)
{
    LOGDEB0(("DocSeqFiltered::setFiltSpec\n"));
    for (unsigned int i = 0; i < filtspec.crits.size(); i++) {
	switch (filtspec.crits[i]) {
	case DocSeqFiltSpec::DSFS_MIMETYPE:
	    m_spec.orCrit(filtspec.crits[i], filtspec.values[i]);
	    break;
	case DocSeqFiltSpec::DSFS_QLANG:
	{
	    // There are very few lang constructs that we can
	    // interpret. The default config uses rclcat:value
	    // only. That will be all for now...
	    string val = filtspec.values[i];
	    if (val.find("rclcat:") == 0) {
		string catg = val.substr(7);
		vector tps;
		m_config->getMimeCatTypes(catg, tps);
		for (vector::const_iterator it = tps.begin();
		     it != tps.end(); it++) {
		    LOGDEB2(("Adding mime: [%s]\n", it->c_str()));
		    m_spec.orCrit(DocSeqFiltSpec::DSFS_MIMETYPE, *it);
		}
	    }
	}
	break;
	default:
	    break;
	}
    }
    // If m_spec ends up empty, pass everything, better than filtering all.
    if (m_spec.crits.empty()) {
	m_spec.orCrit(DocSeqFiltSpec::DSFS_PASSALL, "");
    }
    m_dbindices.clear();
    return true;
}

bool DocSeqFiltered::getDoc(int idx, Rcl::Doc &doc, string *)
{
    LOGDEB2(("DocSeqFiltered::getDoc() fetching %d\n", idx));

    if (idx >= (int)m_dbindices.size()) {
	// Have to fetch docs and filter until we get enough or
	// fail
	m_dbindices.reserve(idx+1);

	// First backend seq doc we fetch is the one after last stored 
	int backend_idx = m_dbindices.size() > 0 ? m_dbindices.back() + 1 : 0;

	// Loop until we get enough docs
	Rcl::Doc tdoc;
	int i = 0;
	while (idx >= (int)m_dbindices.size()) {
	    if (!m_seq->getDoc(backend_idx, tdoc)) 
		return false;
	    if (filter(m_spec, &tdoc)) {
		m_dbindices.push_back(backend_idx);
	    }
	    backend_idx++;
	}
	doc = tdoc;
    } else {
	// The corresponding backend indice is already known
	if (!m_seq->getDoc(m_dbindices[idx], doc)) 
	    return false;
    }
    return true;
}
recoll-1.21.5/query/reslistpager.h0000644000175000017500000001016712602163572016415 0ustar  dockesdockes/* Copyright (C) 2007 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#ifndef _reslistpager_h_included_
#define _reslistpager_h_included_

#include 

#include "refcntr.h"
#include "docseq.h"
#include "hldata.h"

class RclConfig;
class PlainToRich;

/**
 * Manage a paged HTML result list. 
 */
class ResListPager {
public:
    ResListPager(int pagesize=10);
    virtual ~ResListPager() {}

    void setHighLighter(PlainToRich *ptr) 
    {
        m_hiliter = ptr;
    }
    void setDocSource(RefCntr src, int winfirst = -1)
    {
        m_pagesize = m_newpagesize;
	m_winfirst = winfirst;
	m_hasNext = true;
	m_docSource = src;
	m_respage.clear();
    }
    void setPageSize(int ps) 
    {
        m_newpagesize = ps;
    }
    int pageNumber() 
    {
	if (m_winfirst < 0 || m_pagesize <= 0)
	    return -1;
	return m_winfirst / m_pagesize;
    }
    int pageFirstDocNum() {
	return m_winfirst;
    }
    int pageLastDocNum() {
	if (m_winfirst < 0 || m_respage.size() == 0)
	    return -1;
	return m_winfirst + m_respage.size() - 1;
    }
    virtual int pageSize() const {return m_pagesize;}
    void pageNext();
    bool hasNext() {return m_hasNext;}
    bool hasPrev() {return m_winfirst > 0;}
    bool atBot() {return m_winfirst <= 0;}
    void resultPageFirst() {
	m_winfirst = -1;
        m_pagesize = m_newpagesize;
	resultPageNext();
    }
    void resultPageBack() {
	if (m_winfirst <= 0) return;
	m_winfirst -= m_resultsInCurrentPage + m_pagesize;
	resultPageNext();
    }
    void resultPageNext();
    void resultPageFor(int docnum);
    void displayPage(RclConfig *);
    void displayDoc(RclConfig *, int idx, Rcl::Doc& doc, 
		    const HighlightData& hdata, const string& sh = "");
    bool pageEmpty() {return m_respage.size() == 0;}

    string queryDescription() {return m_docSource.isNull() ? "" :
	    m_docSource->getDescription();}

    bool getDoc(int num, Rcl::Doc &doc);

    // Things that need to be reimplemented in the subclass:
    virtual bool append(const string& data);
    virtual bool append(const string& data, int, const Rcl::Doc&)
    {
	return append(data);
    }
    // Translation function. This is reimplemented in the qt reslist
    // object For this to work, the strings must be duplicated inside
    // reslist.cpp (see the QT_TR_NOOP in there). Very very unwieldy.
    // To repeat: any change to a string used with trans() inside
    // reslistpager.cpp must be reflected in the string table inside
    // reslist.cpp for translation to work.
    virtual string trans(const string& in);
    virtual string detailsLink();
    virtual const string &parFormat();
    virtual const string &dateFormat();
    virtual string nextUrl();
    virtual string prevUrl();
    virtual string pageTop() {return string();}
    virtual string headerContent() {return string();}
    virtual string iconUrl(RclConfig *, Rcl::Doc& doc);
    virtual void suggest(const std::vector, 
			std::map >& sugg) 
    {
        sugg.clear();
    }
    virtual string absSep() {return "…";}
private:
    int                  m_pagesize;
    int                  m_newpagesize;
    int                  m_resultsInCurrentPage;
    // First docnum (from docseq) in current page
    int                  m_winfirst;
    bool                 m_hasNext;
    PlainToRich         *m_hiliter;
    RefCntr m_docSource;
    std::vector m_respage;
};

#endif /* _reslistpager_h_included_ */
recoll-1.21.5/query/reslistpager.cpp0000644000175000017500000003574412602163572016760 0ustar  dockesdockes/* Copyright (C) 2007 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
#ifdef HAVE_CONFIG_H
#include "autoconfig.h"
#endif

#include 
#include 
#include 
#include 

#include 
#include 
using std::ostringstream;
using std::endl;
using std::list;

#include "cstr.h"
#include "reslistpager.h"
#include "debuglog.h"
#include "rclconfig.h"
#include "smallut.h"
#include "plaintorich.h"
#include "mimehandler.h"

// Default highlighter. No need for locking, this is query-only.
static const string cstr_hlfontcolor("");
static const string cstr_hlendfont("");
class PlainToRichHtReslist : public PlainToRich {
public:
    virtual string startMatch(unsigned int) 
    {
	return cstr_hlfontcolor;
    }
    virtual string endMatch() 
    {
	return cstr_hlendfont;
    }
};
static PlainToRichHtReslist g_hiliter;

ResListPager::ResListPager(int pagesize) 
    : m_pagesize(pagesize),
      m_newpagesize(pagesize),
      m_resultsInCurrentPage(0),
      m_winfirst(-1),
      m_hasNext(true),
      m_hiliter(&g_hiliter)
{
}

void ResListPager::resultPageNext()
{
    if (m_docSource.isNull()) {
	LOGDEB(("ResListPager::resultPageNext: null source\n"));
	return;
    }

    int resCnt = m_docSource->getResCnt();
    LOGDEB(("ResListPager::resultPageNext: rescnt %d, winfirst %d\n", 
	    resCnt, m_winfirst));

    if (m_winfirst < 0) {
	m_winfirst = 0;
    } else {
	m_winfirst += m_respage.size();
    }
    // Get the next page of results. Note that we look ahead by one to
    // determine if there is actually a next page
    vector npage;
    int pagelen = m_docSource->getSeqSlice(m_winfirst, m_pagesize + 1, npage);

    // If page was truncated, there is no next
    m_hasNext = (pagelen == m_pagesize + 1);

    // Get rid of the possible excess result
    if (pagelen == m_pagesize + 1) {
	npage.resize(m_pagesize);
	pagelen--;
    }

    if (pagelen <= 0) {
	// No results ? This can only happen on the first page or if the
	// actual result list size is a multiple of the page pref (else
	// there would have been no Next on the last page)
	if (m_winfirst > 0) {
	    // Have already results. Let them show, just disable the
	    // Next button. We'd need to remove the Next link from the page
	    // too.
	    // Restore the m_winfirst value, let the current result vector alone
	    m_winfirst -= m_respage.size();
	} else {
	    // No results at all (on first page)
	    m_winfirst = -1;
	}
	return;
    }
    m_resultsInCurrentPage = pagelen;
    m_respage = npage;
}
static string maybeEscapeHtml(const string& fld)
{
    if (fld.compare(0, cstr_fldhtm.size(), cstr_fldhtm))
	return escapeHtml(fld);
    else
	return fld.substr(cstr_fldhtm.size());
}


void ResListPager::resultPageFor(int docnum)
{
    if (m_docSource.isNull()) {
	LOGDEB(("ResListPager::resultPageFor: null source\n"));
	return;
    }

    int resCnt = m_docSource->getResCnt();
    LOGDEB(("ResListPager::resultPageFor(%d): rescnt %d, winfirst %d\n", 
	    docnum, resCnt, m_winfirst));
    m_winfirst = (docnum / m_pagesize) * m_pagesize;

    // Get the next page of results.
    vector npage;
    int pagelen = m_docSource->getSeqSlice(m_winfirst, m_pagesize, npage);

    // If page was truncated, there is no next
    m_hasNext = (pagelen == m_pagesize);

    if (pagelen <= 0) {
	m_winfirst = -1;
	return;
    }
    m_respage = npage;
}

void ResListPager::displayDoc(RclConfig *config, int i, Rcl::Doc& doc, 
			      const HighlightData& hdata, const string& sh)
{
    ostringstream chunk;
    int percent;
    if (doc.pc == -1) {
	percent = 0;
	// Document not available, maybe other further, will go on.
	doc.meta[Rcl::Doc::keyabs] = string(trans("Unavailable document"));
    } else {
	percent = doc.pc;
    }

    // Determine icon to display if any
    string iconurl = iconUrl(config, doc);

    // Printable url: either utf-8 if transcoding succeeds, or url-encoded
    string url;
    printableUrl(config->getDefCharset(), doc.url, url);

    // Same as url, but with file:// possibly stripped. output by %u instead
    // of %U. 
    string urlOrLocal;
    urlOrLocal = fileurltolocalpath(url);
    if (urlOrLocal.empty())
        urlOrLocal = url;

    // Make title out of file name if none yet
    string titleOrFilename;
    string utf8fn;
    doc.getmeta(Rcl::Doc::keytt, &titleOrFilename);
    doc.getmeta(Rcl::Doc::keyfn, &utf8fn);
    if (utf8fn.empty()) {
	utf8fn = path_getsimple(url);	
    }
    if (titleOrFilename.empty()) {
	titleOrFilename = utf8fn;
    }

    // Url for the parent directory. We strip the file:// part for local
    // paths
    string parenturl = url_parentfolder(url);
    {
        string localpath = fileurltolocalpath(parenturl);
        if (!localpath.empty())
            parenturl = localpath;
    }

    // Result number
    char numbuf[20];
    int docnumforlinks = m_winfirst + 1 + i;
    sprintf(numbuf, "%d", docnumforlinks);

    // Document date: either doc or file modification time
    char datebuf[100];
    datebuf[0] = 0;
    if (!doc.dmtime.empty() || !doc.fmtime.empty()) {
	time_t mtime = doc.dmtime.empty() ?
	    atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str());
	struct tm *tm = localtime(&mtime);
	strftime(datebuf, 99, dateFormat().c_str(), tm);
    }

    // Size information. We print both doc and file if they differ a lot
    off_t fsize = -1, dsize = -1;
    if (!doc.dbytes.empty())
	dsize = atoll(doc.dbytes.c_str());
    if (!doc.fbytes.empty())
	fsize = atoll(doc.fbytes.c_str());
    string sizebuf;
    if (dsize > 0) {
	sizebuf = displayableBytes(dsize);
	if (fsize > 10 * dsize && fsize - dsize > 1000)
	    sizebuf += string(" / ") + displayableBytes(fsize);
    } else if (fsize >= 0) {
	sizebuf = displayableBytes(fsize);
    }

    string richabst;
    bool needabstract = parFormat().find("%A") != string::npos;
    if (needabstract && m_docSource.isNotNull()) {
	vector vabs;
	m_docSource->getAbstract(doc, vabs);
	m_hiliter->set_inputhtml(false);

	for (vector::const_iterator it = vabs.begin();
	     it != vabs.end(); it++) {
	    if (!it->empty()) {
		// No need to call escapeHtml(), plaintorich handles it
		list lr;
		// There may be data like page numbers before the snippet text.
		// will be in brackets.
		string::size_type bckt = it->find("]");
		if (bckt == string::npos) {
		    m_hiliter->plaintorich(*it, lr, hdata);
		} else {
		    m_hiliter->plaintorich(it->substr(bckt), lr, hdata);
		    lr.front() = it->substr(0, bckt) + lr.front();
		}
		richabst += lr.front();
		richabst += absSep();
	    }
	}
    }

    // Links;
    ostringstream linksbuf;
    if (canIntern(doc.mimetype, config)) { 
	linksbuf << "" 
		 << trans("Preview") << "  ";
    }

    string apptag;
    doc.getmeta(Rcl::Doc::keyapptg, &apptag);

    if (!config->getMimeViewerDef(doc.mimetype, apptag, false).empty()) {
	linksbuf << ""  
		 << trans("Open") << "";
    }
    ostringstream snipsbuf;
    if (doc.haspages) {
	snipsbuf << "" 
		 << trans("Snippets") << "  ";
	linksbuf << "  " << snipsbuf.str();
    }

    string collapscnt;
    if (doc.getmeta(Rcl::Doc::keycc, &collapscnt) && !collapscnt.empty()) {
	ostringstream collpsbuf;
	int clc = atoi(collapscnt.c_str()) + 1;
	collpsbuf << "" 
		  << trans("Dups") << "(" << clc << ")" << "  ";
	linksbuf << "  " << collpsbuf.str();
    }

    // Build the result list paragraph:

    // Subheader: this is used by history
    if (!sh.empty())
	chunk << "

" << sh << "

\n

"; else chunk << "

"; // Configurable stuff map subs; subs["A"] = !richabst.empty() ? richabst : ""; subs["D"] = datebuf; subs["E"] = snipsbuf.str(); subs["I"] = iconurl; subs["i"] = doc.ipath; subs["K"] = !doc.meta[Rcl::Doc::keykw].empty() ? string("[") + maybeEscapeHtml(doc.meta[Rcl::Doc::keykw]) + "]" : ""; subs["L"] = linksbuf.str(); subs["N"] = numbuf; subs["M"] = doc.mimetype; subs["P"] = parenturl; subs["R"] = doc.meta[Rcl::Doc::keyrr]; subs["S"] = sizebuf; subs["T"] = maybeEscapeHtml(titleOrFilename); subs["t"] = maybeEscapeHtml(doc.meta[Rcl::Doc::keytt]); subs["U"] = url; subs["u"] = urlOrLocal; // Let %(xx) access all metadata. HTML-neuter everything: for (map::iterator it = doc.meta.begin(); it != doc.meta.end(); it++) { if (!it->first.empty()) subs[it->first] = maybeEscapeHtml(it->second); } string formatted; pcSubst(parFormat(), formatted, subs); chunk << formatted; chunk << "

" << endl; // This was to force qt 4.x to clear the margins (which it should do // anyway because of the paragraph's style), but we finally took // the table approach for 1.15 for now (in guiutils.cpp) // chunk << "
" << endl; LOGDEB2(("Chunk: [%s]\n", (const char *)chunk.rdbuf()->str().c_str())); append(chunk.rdbuf()->str(), i, doc); } bool ResListPager::getDoc(int num, Rcl::Doc& doc) { if (m_winfirst < 0 || m_respage.size() == 0) return false; if (num < m_winfirst || num >= m_winfirst + int(m_respage.size())) return false; doc = m_respage[num-m_winfirst].doc; return true; } void ResListPager::displayPage(RclConfig *config) { LOGDEB(("ResListPager::displayPage\n")); if (m_docSource.isNull()) { LOGDEB(("ResListPager::displayPage: null source\n")); return; } if (m_winfirst < 0 && !pageEmpty()) { LOGDEB(("ResListPager::displayPage: sequence error: winfirst < 0\n")); return; } ostringstream chunk; // Display list header // We could use a but the textedit doesnt display // it prominently // Note: have to append text in chunks that make sense // html-wise. If we break things up too much, the editor // gets confused. Hence the use of the 'chunk' text // accumulator // Also note that there can be results beyond the estimated resCnt. chunk << "<html><head>" << endl << "<meta http-equiv=\"content-type\"" << " content=\"text/html; charset=utf-8\">" << endl << headerContent() << "</head><body>" << endl << pageTop() << "<p><span style=\"font-size:110%;\"><b>" << m_docSource->title() << "</b></span>   "; if (pageEmpty()) { chunk << trans("<p><b>No results found</b><br>"); string reason = m_docSource->getReason(); if (!reason.empty()) { chunk << "<blockquote>" << escapeHtml(reason) << "</blockquote></p>"; } else { HighlightData hldata; m_docSource->getTerms(hldata); vector<string> uterms(hldata.uterms.begin(), hldata.uterms.end()); if (!uterms.empty()) { map<string, vector<string> > spellings; suggest(uterms, spellings); if (!spellings.empty()) { if (o_index_stripchars) { chunk << trans("<p><i>Alternate spellings (accents suppressed): </i>") << "<br /><blockquote>"; } else { chunk << trans("<p><i>Alternate spellings: </i>") << "<br /><blockquote>"; } for (map<string, vector<string> >::const_iterator it0 = spellings.begin(); it0 != spellings.end(); it0++) { chunk << "<b>" << it0->first << "</b> : "; for (vector<string>::const_iterator it = it0->second.begin(); it != it0->second.end(); it++) { chunk << *it << " "; } chunk << "<br />"; } chunk << "</blockquote></p>"; } } } } else { unsigned int resCnt = m_docSource->getResCnt(); if (m_winfirst + m_respage.size() < resCnt) { chunk << trans("Documents") << " <b>" << m_winfirst + 1 << "-" << m_winfirst + m_respage.size() << "</b> " << trans("out of at least") << " " << resCnt << " " << trans("for") << " " ; } else { chunk << trans("Documents") << " <b>" << m_winfirst + 1 << "-" << m_winfirst + m_respage.size() << "</b> " << trans("for") << " "; } } chunk << detailsLink(); if (hasPrev() || hasNext()) { chunk << "  "; if (hasPrev()) { chunk << "<a href=\"" + prevUrl() + "\"><b>" << trans("Previous") << "</b></a>   "; } if (hasNext()) { chunk << "<a href=\""+ nextUrl() + "\"><b>" << trans("Next") << "</b></a>"; } } chunk << "</p>" << endl; append(chunk.rdbuf()->str()); chunk.rdbuf()->str(""); if (pageEmpty()) return; HighlightData hdata; m_docSource->getTerms(hdata); // Emit data for result entry paragraph. Do it in chunks that make sense // html-wise, else our client may get confused for (int i = 0; i < (int)m_respage.size(); i++) { Rcl::Doc& doc(m_respage[i].doc); string& sh(m_respage[i].subHeader); displayDoc(config, i, doc, hdata, sh); } // Footer chunk << "<p align=\"center\">"; if (hasPrev() || hasNext()) { if (hasPrev()) { chunk << "<a href=\"" + prevUrl() + "\"><b>" << trans("Previous") << "</b></a>   "; } if (hasNext()) { chunk << "<a href=\""+ nextUrl() + "\"><b>" << trans("Next") << "</b></a>"; } } chunk << "</p>" << endl; chunk << "</body></html>" << endl; append(chunk.rdbuf()->str()); } // Default implementations for things that should be implemented by // specializations string ResListPager::nextUrl() { return "n-1"; } string ResListPager::prevUrl() { return "p-1"; } string ResListPager::iconUrl(RclConfig *config, Rcl::Doc& doc) { string apptag; doc.getmeta(Rcl::Doc::keyapptg, &apptag); return cstr_fileu + config->getMimeIconPath(doc.mimetype, apptag); } bool ResListPager::append(const string& data) { fprintf(stderr, "%s", data.c_str()); return true; } string ResListPager::trans(const string& in) { return in; } string ResListPager::detailsLink() { string chunk = "<a href=\"H-1\">"; chunk += trans("(show query)") + "</a>"; return chunk; } const string &ResListPager::parFormat() { static const string cstr_format("<img src=\"%I\" align=\"left\">" "%R %S %L   <b>%T</b><br>" "%M %D   <i>%U</i><br>" "%A %K"); return cstr_format; } const string &ResListPager::dateFormat() { static const string cstr_format(" %Y-%m-%d %H:%M:%S %z"); return cstr_format; } ����������������������������recoll-1.21.5/query/docseq.h������������������������������������������������������������������������0000644�0001750�0001750�00000020030�12602163572�015155� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DOCSEQ_H_INCLUDED_ #define _DOCSEQ_H_INCLUDED_ #include <string> #include <list> #include <vector> #include "rcldoc.h" #include "refcntr.h" #include "hldata.h" #include "ptmutex.h" // Need this for the "Snippet" class def. #include "rclquery.h" // A result list entry. struct ResListEntry { Rcl::Doc doc; std::string subHeader; }; /** Sort specification. */ class DocSeqSortSpec { public: DocSeqSortSpec() : desc(false) {} bool isNotNull() const {return !field.empty();} void reset() {field.erase();} std::string field; bool desc; }; /** Filtering spec. This is only used to filter by doc category for now, hence the rather specialized interface */ class DocSeqFiltSpec { public: DocSeqFiltSpec() {} enum Crit {DSFS_MIMETYPE, DSFS_QLANG, DSFS_PASSALL}; void orCrit(Crit crit, const std::string& value) { crits.push_back(crit); values.push_back(value); } std::vector<Crit> crits; std::vector<std::string> values; void reset() {crits.clear(); values.clear();} bool isNotNull() const {return crits.size() != 0;} }; /** Interface for a list of documents coming from some source. The result list display data may come from different sources (ie: history or Db query), and be post-processed (DocSeqSorted). Additional functionality like filtering/sorting can either be obtained by stacking DocSequence objects (ie: sorting history), or by native capability (ex: docseqdb can sort and filter). The implementation might be nicer by using more sophisticated c++ with multiple inheritance of sort and filter virtual interfaces, but the current one will have to do for now. */ class DocSequence { public: DocSequence(const std::string &t) : m_title(t) {} virtual ~DocSequence() {} /** Get document at given rank. * * @param num document rank in sequence * @param doc return data * @param sh subheader to display before this result (ie: date change * inside history) * @return true if ok, false for error or end of data */ virtual bool getDoc(int num, Rcl::Doc &doc, std::string *sh = 0) = 0; /** Get next page of documents. This accumulates entries into the result * list parameter (doesn't reset it). */ virtual int getSeqSlice(int offs, int cnt, std::vector<ResListEntry>& result); /** Get abstract for document. This is special because it may take time. * The default is to return the input doc's abstract fields, but some * sequences can compute a better value (ie: docseqdb) */ virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) { abs.push_back(doc.meta[Rcl::Doc::keyabs]); return true; } virtual bool getAbstract(Rcl::Doc& doc, std::vector<Rcl::Snippet>& abs) { abs.push_back(Rcl::Snippet(0, doc.meta[Rcl::Doc::keyabs])); return true; } virtual int getFirstMatchPage(Rcl::Doc&, std::string&) { return -1; } /** Get duplicates. */ virtual bool docDups(const Rcl::Doc&, std::vector<Rcl::Doc>&) { return false; } virtual bool getEnclosing(Rcl::Doc&, Rcl::Doc&); /** Get estimated total count in results */ virtual int getResCnt() = 0; /** Get title for result list */ virtual std::string title() { return m_title; } /** Can do snippets ? */ virtual bool snippetsCapable() { return false; } /** Get description for underlying query */ virtual std::string getDescription() = 0; /** Get search terms (for highlighting abstracts). Some sequences * may have no associated search terms. Implement this for them. */ virtual void getTerms(HighlightData& hld) { hld.clear(); } virtual std::list<std::string> expand(Rcl::Doc &) { return std::list<std::string>(); } virtual std::string getReason() { return m_reason; } /** Optional functionality. */ virtual bool canFilter() {return false;} virtual bool canSort() {return false;} virtual bool setFiltSpec(const DocSeqFiltSpec &) {return false;} virtual bool setSortSpec(const DocSeqSortSpec &) {return false;} virtual RefCntr<DocSequence> getSourceSeq() {return RefCntr<DocSequence>();} static void set_translations(const std::string& sort, const std::string& filt) { o_sort_trans = sort; o_filt_trans = filt; } protected: friend class DocSeqModifier; virtual Rcl::Db *getDb() = 0; static PTMutexInit o_dblock; static std::string o_sort_trans; static std::string o_filt_trans; std::string m_reason; private: std::string m_title; }; /** A modifier has a child sequence which does the real work and does * something with the results. Some operations are just delegated */ class DocSeqModifier : public DocSequence { public: DocSeqModifier(RefCntr<DocSequence> iseq) : DocSequence(""), m_seq(iseq) {} virtual ~DocSeqModifier() {} virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) { if (m_seq.isNull()) return false; return m_seq->getAbstract(doc, abs); } virtual bool getAbstract(Rcl::Doc& doc, std::vector<Rcl::Snippet>& abs) { if (m_seq.isNull()) return false; return m_seq->getAbstract(doc, abs); } /** Get duplicates. */ virtual bool docDups(const Rcl::Doc& doc, std::vector<Rcl::Doc>& dups) { if (m_seq.isNull()) return false; return m_seq->docDups(doc, dups); } virtual bool snippetsCapable() { if (m_seq.isNull()) return false; return m_seq->snippetsCapable(); } virtual std::string getDescription() { if (m_seq.isNull()) return ""; return m_seq->getDescription(); } virtual void getTerms(HighlightData& hld) { if (m_seq.isNull()) return; m_seq->getTerms(hld); } virtual bool getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) { if (m_seq.isNull()) return false; return m_seq->getEnclosing(doc, pdoc); } virtual std::string getReason() { if (m_seq.isNull()) return string(); return m_seq->getReason(); } virtual std::string title() { return m_seq->title(); } virtual RefCntr<DocSequence> getSourceSeq() { return m_seq; } protected: virtual Rcl::Db *getDb() { if (m_seq.isNull()) return 0; return m_seq->getDb(); } RefCntr<DocSequence> m_seq; }; class RclConfig; // A DocSource can juggle docseqs of different kinds to implement // sorting and filtering in ways depending on the base seqs capabilities class DocSource : public DocSeqModifier { public: DocSource(RclConfig *config, RefCntr<DocSequence> iseq) : DocSeqModifier(iseq), m_config(config) {} virtual bool canFilter() {return true;} virtual bool canSort() {return true;} virtual bool setFiltSpec(const DocSeqFiltSpec &); virtual bool setSortSpec(const DocSeqSortSpec &); virtual bool getDoc(int num, Rcl::Doc &doc, std::string *sh = 0) { if (m_seq.isNull()) return false; return m_seq->getDoc(num, doc, sh); } virtual int getResCnt() { if (m_seq.isNull()) return 0; return m_seq->getResCnt(); } virtual std::string title(); private: bool buildStack(); void stripStack(); RclConfig *m_config; DocSeqFiltSpec m_fspec; DocSeqSortSpec m_sspec; }; #endif /* _DOCSEQ_H_INCLUDED_ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/query/docseqdb.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000014367�12602163572�016036� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <math.h> #include <time.h> #include <list> using std::list; #include "docseqdb.h" #include "rcldb.h" #include "debuglog.h" #include "wasatorcl.h" DocSequenceDb::DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, RefCntr<Rcl::SearchData> sdata) : DocSequence(t), m_q(q), m_sdata(sdata), m_fsdata(sdata), m_rescnt(-1), m_queryBuildAbstract(true), m_queryReplaceAbstract(false), m_isFiltered(false), m_isSorted(false), m_needSetQuery(false), m_lastSQStatus(true) { } void DocSequenceDb::getTerms(HighlightData& hld) { m_fsdata->getTerms(hld); } string DocSequenceDb::getDescription() { return m_fsdata->getDescription(); } bool DocSequenceDb::getDoc(int num, Rcl::Doc &doc, string *sh) { PTMutexLocker locker(o_dblock); if (!setQuery()) return false; if (sh) sh->erase(); return m_q->getDoc(num, doc); } int DocSequenceDb::getResCnt() { PTMutexLocker locker(o_dblock); if (!setQuery()) return false; if (m_rescnt < 0) { m_rescnt= m_q->getResCnt(); } return m_rescnt; } static const string cstr_mre("[...]"); // This one only gets called to fill-up the snippets window // We ignore most abstract/snippets preferences. bool DocSequenceDb::getAbstract(Rcl::Doc &doc, vector<Rcl::Snippet>& vpabs) { LOGDEB(("DocSequenceDb::getAbstract/pair\n")); PTMutexLocker locker(o_dblock); if (!setQuery()) return false; // Have to put the limit somewhere. int maxoccs = 1000; int ret = Rcl::ABSRES_ERROR; if (m_q->whatDb()) { ret = m_q->makeDocAbstract(doc, vpabs, maxoccs, m_q->whatDb()->getAbsCtxLen()+ 2); } LOGDEB(("DocSequenceDb::getAbstract: got ret %d vpabs len %u\n", ret, vpabs.size())); if (vpabs.empty()) { return true; } // If the list was probably truncated, indicate it. if (ret & Rcl::ABSRES_TRUNC) { vpabs.push_back(Rcl::Snippet(-1, cstr_mre)); } if (ret & Rcl::ABSRES_TERMMISS) { vpabs.insert(vpabs.begin(), Rcl::Snippet(-1, "(Words missing in snippets)")); } return true; } bool DocSequenceDb::getAbstract(Rcl::Doc &doc, vector<string>& vabs) { PTMutexLocker locker(o_dblock); if (!setQuery()) return false; if (m_q->whatDb() && m_queryBuildAbstract && (doc.syntabs || m_queryReplaceAbstract)) { m_q->makeDocAbstract(doc, vabs); } if (vabs.empty()) vabs.push_back(doc.meta[Rcl::Doc::keyabs]); return true; } int DocSequenceDb::getFirstMatchPage(Rcl::Doc &doc, string& term) { PTMutexLocker locker(o_dblock); if (!setQuery()) return false; if (m_q->whatDb()) { return m_q->getFirstMatchPage(doc, term); } return -1; } Rcl::Db *DocSequenceDb::getDb() { return m_q.isNotNull() ? m_q->whatDb() : 0; } list<string> DocSequenceDb::expand(Rcl::Doc &doc) { PTMutexLocker locker(o_dblock); if (!setQuery()) return list<string>(); vector<string> v = m_q->expand(doc); return list<string>(v.begin(), v.end()); } string DocSequenceDb::title() { string qual; if (m_isFiltered && !m_isSorted) qual = string(" (") + o_filt_trans + string(")"); else if (!m_isFiltered && m_isSorted) qual = string(" (") + o_sort_trans + string(")"); else if (m_isFiltered && m_isSorted) qual = string(" (") + o_sort_trans + string(",") + o_filt_trans + string(")"); return DocSequence::title() + qual; } bool DocSequenceDb::setFiltSpec(const DocSeqFiltSpec &fs) { LOGDEB(("DocSequenceDb::setFiltSpec\n")); PTMutexLocker locker(o_dblock); if (fs.isNotNull()) { // We build a search spec by adding a filtering layer to the base one. m_fsdata = RefCntr<Rcl::SearchData>( new Rcl::SearchData(Rcl::SCLT_AND, m_sdata->getStemLang())); Rcl::SearchDataClauseSub *cl = new Rcl::SearchDataClauseSub(m_sdata); m_fsdata->addClause(cl); for (unsigned int i = 0; i < fs.crits.size(); i++) { switch (fs.crits[i]) { case DocSeqFiltSpec::DSFS_MIMETYPE: m_fsdata->addFiletype(fs.values[i]); break; case DocSeqFiltSpec::DSFS_QLANG: { if (m_q.isNull()) break; string reason; Rcl::SearchData *sd = wasaStringToRcl(m_q->whatDb()->getConf(), m_sdata->getStemLang(), fs.values[i], reason); if (sd) { Rcl::SearchDataClauseSub *cl1 = new Rcl::SearchDataClauseSub( RefCntr<Rcl::SearchData>(sd)); m_fsdata->addClause(cl1); } } break; default: break; } } m_isFiltered = true; } else { m_fsdata = m_sdata; m_isFiltered = false; } m_needSetQuery = true; return true; } bool DocSequenceDb::setSortSpec(const DocSeqSortSpec &spec) { LOGDEB(("DocSequenceDb::setSortSpec: fld [%s] %s\n", spec.field.c_str(), spec.desc ? "desc" : "asc")); PTMutexLocker locker(o_dblock); if (spec.isNotNull()) { m_q->setSortBy(spec.field, !spec.desc); m_isSorted = true; } else { m_q->setSortBy(string(), true); m_isSorted = false; } m_needSetQuery = true; return true; } bool DocSequenceDb::setQuery() { if (!m_needSetQuery) return true; m_needSetQuery = false; m_rescnt = -1; m_lastSQStatus = m_q->setQuery(m_fsdata); if (!m_lastSQStatus) { m_reason = m_q->getReason(); LOGERR(("DocSequenceDb::setQuery: rclquery::setQuery failed: %s\n", m_reason.c_str())); } return m_lastSQStatus; } bool DocSequenceDb::docDups(const Rcl::Doc& doc, std::vector<Rcl::Doc>& dups) { if (m_q->whatDb()) { PTMutexLocker locker(o_dblock); return m_q->whatDb()->docDups(doc, dups); } else { return false; } } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/query/docseqdb.h����������������������������������������������������������������������0000644�0001750�0001750�00000005321�12602163572�015471� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DOCSEQDB_H_INCLUDED_ #define _DOCSEQDB_H_INCLUDED_ #include "docseq.h" #include "refcntr.h" #include "searchdata.h" #include "rclquery.h" /** A DocSequence from a Db query */ class DocSequenceDb : public DocSequence { public: DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, RefCntr<Rcl::SearchData> sdata); virtual ~DocSequenceDb() {} virtual bool getDoc(int num, Rcl::Doc &doc, string * = 0); virtual int getResCnt(); virtual void getTerms(HighlightData& hld); // Called to fill-up the snippets window. Ignoers // buildabstract/replaceabstract and syntabslen virtual bool getAbstract(Rcl::Doc &doc, vector<Rcl::Snippet>&); virtual bool getAbstract(Rcl::Doc &doc, vector<string>&); virtual int getFirstMatchPage(Rcl::Doc&, std::string& term); virtual bool docDups(const Rcl::Doc& doc, std::vector<Rcl::Doc>& dups); virtual string getDescription(); virtual std::list<std::string> expand(Rcl::Doc &doc); virtual bool canFilter() {return true;} virtual bool setFiltSpec(const DocSeqFiltSpec &filtspec); virtual bool canSort() {return true;} virtual bool setSortSpec(const DocSeqSortSpec &sortspec); virtual void setAbstractParams(bool qba, bool qra) { m_queryBuildAbstract = qba; m_queryReplaceAbstract = qra; } virtual bool snippetsCapable() { return true; } virtual string title(); protected: virtual Rcl::Db *getDb(); private: RefCntr<Rcl::Query> m_q; RefCntr<Rcl::SearchData> m_sdata; RefCntr<Rcl::SearchData> m_fsdata; // Filtered int m_rescnt; bool m_queryBuildAbstract; bool m_queryReplaceAbstract; bool m_isFiltered; bool m_isSorted; bool m_needSetQuery; // search data changed, need to reapply before fetch bool m_lastSQStatus; bool setQuery(); }; #endif /* _DOCSEQDB_H_INCLUDED_ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/query/recollq.h�����������������������������������������������������������������������0000644�0001750�0001750�00000002040�12602163537�015342� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _recollq_h_included_ #define _recollq_h_included_ /// Execute query, print results to stdout. This is just an api to the /// recollq command line program. class RclConfig; extern int recollq(RclConfig **cfp, int argc, char **argv); #endif /* _recollq_h_included_ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/��������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12652665122�013457� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/stemdb.h������������������������������������������������������������������������0000644�0001750�0001750�00000007314�12602163540�015103� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _STEMDB_H_INCLUDED_ #define _STEMDB_H_INCLUDED_ /** Stem database code * * Stem databases list stems and the set of index terms they expand to. They * are computed from index data by stemming each term and regrouping those * that stem to the same value. * * Stem databases are stored as separate Xapian databases, in * subdirectories of the index (e.g.: stem_french, stem_german2) * * The stem database is generated at the end of an indexing session by * walking the whole index term list, computing the stem for each * term, and building a stem->terms map. * * The map is then stored as a Xapian index where each stem is the * unique term indexing a document, and the list of expansions is stored * as the document data record. It would probably be possible to store * the expansions as the document term list instead (using a prefix to * distinguish the stem term). I tried this (chert, 08-2012) and the stem * db creation is very slightly slower than with the record approach, and * the result is 50% bigger. * * Another possible approach would be to update the stem map as we index. * This would probably be be less efficient for a full index pass because * each term would be seen and stemmed many times, but it might be * more efficient for an incremental pass with a limited number of * updated documents. For a small update, the stem building part often * dominates the indexing time. * * For future reference, I did try to store the map in a gdbm file and * the result is bigger and takes more time to create than the Xapian version. */ #include <vector> #include <string> #include <xapian.h> #include "synfamily.h" namespace Rcl { /* A stemming functor for using with XapComputableSynFamMember. * We could perform the change to lowercase in there too, as stemdb keys * must be lower case, but then the input conversion would be repeated for each * stemming language, which would be inefficient. So we let our caller make sure * that the input is lower-case */ class SynTermTransStem : public SynTermTrans { public: SynTermTransStem(const std::string& lang) : m_stemmer(lang), m_lang(lang) { } virtual ~SynTermTransStem() {} virtual std::string operator()(const std::string& in) { string out = m_stemmer(in); LOGDEB2(("SynTermTransStem(%s): in [%s] out [%s]\n", m_lang.c_str(), in.c_str(), out.c_str())); return out; } Xapian::Stem m_stemmer; std::string m_lang; }; /** Stemdb is a bit special as a SynFamily as we may want to expand for one * or several members (languages) */ class StemDb : public XapSynFamily { public: StemDb(Xapian::Database& xdb) : XapSynFamily(xdb, synFamStem) { } /** Expand for a number of languages * @param langs space-separated set of languages * @param term term to expand */ bool stemExpand(const std::string& langs, const std::string& term, std::vector<std::string>& result); }; } #endif /* _STEMDB_H_INCLUDED_ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/searchdata.cpp������������������������������������������������������������������0000644�0001750�0001750�00000027305�12652664535�016300� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Handle translation from rcl's SearchData structures to Xapian Queries #include "autoconfig.h" #include <stdio.h> #include <string> #include <vector> #include <algorithm> #include <sstream> #include <iostream> using namespace std; #include "xapian.h" #include "cstr.h" #include "rcldb.h" #include "rcldb_p.h" #include "searchdata.h" #include "debuglog.h" #include "smallut.h" #include "textsplit.h" #include "unacpp.h" #include "utf8iter.h" #include "stoplist.h" #include "rclconfig.h" #include "termproc.h" #include "synfamily.h" #include "stemdb.h" #include "expansiondbs.h" #include "base64.h" #include "daterange.h" namespace Rcl { typedef vector<SearchDataClause *>::iterator qlist_it_t; typedef vector<SearchDataClause *>::const_iterator qlist_cit_t; void SearchData::commoninit() { m_haveDates = false; m_maxSize = size_t(-1); m_minSize = size_t(-1); m_haveWildCards = false; m_autodiacsens = false; m_autocasesens = true; m_maxexp = 10000; m_maxcl = 100000; m_softmaxexpand = -1; } SearchData::~SearchData() { LOGDEB0(("SearchData::~SearchData\n")); for (qlist_it_t it = m_query.begin(); it != m_query.end(); it++) delete *it; } // This is called by the GUI simple search if the option is set: add // (OR) phrase to a query (if it is simple enough) so that results // where the search terms are close and in order will come up on top. // We remove very common terms from the query to avoid performance issues. bool SearchData::maybeAddAutoPhrase(Rcl::Db& db, double freqThreshold) { LOGDEB0(("SearchData::maybeAddAutoPhrase()\n")); // cerr << "BEFORE SIMPLIFY\n"; dump(cerr); simplify(); // cerr << "AFTER SIMPLIFY\n"; dump(cerr); if (!m_query.size()) { LOGDEB2(("SearchData::maybeAddAutoPhrase: empty query\n")); return false; } string field; vector<string> words; // Walk the clause list. If we find any non simple clause or different // field names, bail out. for (qlist_it_t it = m_query.begin(); it != m_query.end(); it++) { SClType tp = (*it)->m_tp; if (tp != SCLT_AND && tp != SCLT_OR) { LOGDEB2(("SearchData::maybeAddAutoPhrase: wrong tp %d\n", tp)); return false; } SearchDataClauseSimple *clp = dynamic_cast<SearchDataClauseSimple*>(*it); if (clp == 0) { LOGDEB2(("SearchData::maybeAddAutoPhrase: dyncast failed\n")); return false; } if (it == m_query.begin()) { field = clp->getfield(); } else { if (clp->getfield().compare(field)) { LOGDEB2(("SearchData::maybeAddAutoPhrase: diff. fields\n")); return false; } } // If there are wildcards or quotes in there, bail out if (clp->gettext().find_first_of("\"*[?") != string::npos) { LOGDEB2(("SearchData::maybeAddAutoPhrase: wildcards\n")); return false; } // Do a simple word-split here, not the full-blown // textsplit. Spans of stopwords should not be trimmed later // in this function, they will be properly split when the // phrase gets processed by toNativeQuery() later on. vector<string> wl; stringToStrings(clp->gettext(), wl); words.insert(words.end(), wl.begin(), wl.end()); } // Trim the word list by eliminating very frequent terms // (increasing the slack as we do it): int slack = 0; int doccnt = db.docCnt(); if (!doccnt) doccnt = 1; string swords; for (vector<string>::iterator it = words.begin(); it != words.end(); it++) { double freq = double(db.termDocCnt(*it)) / doccnt; if (freq < freqThreshold) { if (!swords.empty()) swords.append(1, ' '); swords += *it; } else { LOGDEB0(("SearchData::Autophrase: [%s] too frequent (%.2f %%)\n", it->c_str(), 100 * freq)); slack++; } } // We can't make a phrase with a single word :) int nwords = TextSplit::countWords(swords); if (nwords <= 1) { LOGDEB2(("SearchData::maybeAddAutoPhrase: ended with 1 word\n")); return false; } // Increase the slack: we want to be a little more laxist than for // an actual user-entered phrase slack += 1 + nwords / 3; m_autophrase = RefCntr<SearchDataClauseDist>( new SearchDataClauseDist(SCLT_PHRASE, swords, slack, field)); return true; } // Add clause to current list. OR lists cant have EXCL clauses. bool SearchData::addClause(SearchDataClause* cl) { if (m_tp == SCLT_OR && cl->getexclude()) { LOGERR(("SearchData::addClause: cant add EXCL to OR list\n")); m_reason = "No Negative (AND_NOT) clauses allowed in OR queries"; return false; } cl->setParent(this); m_haveWildCards = m_haveWildCards || cl->m_haveWildCards; m_query.push_back(cl); return true; } // Am I a file name only search ? This is to turn off term highlighting bool SearchData::fileNameOnly() { for (qlist_it_t it = m_query.begin(); it != m_query.end(); it++) if (!(*it)->isFileName()) return false; return true; } void SearchData::simplify() { for (unsigned int i = 0; i < m_query.size(); i++) { if (m_query[i]->m_tp != SCLT_SUB) continue; //C[est ce dyncast qui crashe?? SearchDataClauseSub *clsubp = dynamic_cast<SearchDataClauseSub*>(m_query[i]); if (clsubp == 0) { // ?? continue; } if (clsubp->getSub()->m_tp != m_tp) continue; clsubp->getSub()->simplify(); // If this subquery has special attributes, it's not a // candidate for collapsing, except if it has no clauses, because // then, we just pick the attributes. if (!clsubp->getSub()->m_filetypes.empty() || !clsubp->getSub()->m_nfiletypes.empty() || clsubp->getSub()->m_haveDates || clsubp->getSub()->m_maxSize != size_t(-1) || clsubp->getSub()->m_minSize != size_t(-1) || clsubp->getSub()->m_haveWildCards) { if (!clsubp->getSub()->m_query.empty()) continue; m_filetypes.insert(m_filetypes.end(), clsubp->getSub()->m_filetypes.begin(), clsubp->getSub()->m_filetypes.end()); m_nfiletypes.insert(m_nfiletypes.end(), clsubp->getSub()->m_nfiletypes.begin(), clsubp->getSub()->m_nfiletypes.end()); if (clsubp->getSub()->m_haveDates && !m_haveDates) { m_dates = clsubp->getSub()->m_dates; } if (m_maxSize == size_t(-1)) m_maxSize = clsubp->getSub()->m_maxSize; if (m_minSize == size_t(-1)) m_minSize = clsubp->getSub()->m_minSize; m_haveWildCards = m_haveWildCards || clsubp->getSub()->m_haveWildCards; // And then let the clauses processing go on, there are // none anyway, we will just delete the subquery. } bool allsametp = true; for (qlist_it_t it1 = clsubp->getSub()->m_query.begin(); it1 != clsubp->getSub()->m_query.end(); it1++) { // We want all AND or OR clause, and same as our conjunction if (((*it1)->getTp() != SCLT_AND && (*it1)->getTp() != SCLT_OR) || (*it1)->getTp() != m_tp) { allsametp = false; break; } } if (!allsametp) continue; // All ok: delete the clause_sub, and insert the queries from // its searchdata in its place m_query.erase(m_query.begin() + i); m_query.insert(m_query.begin() + i, clsubp->getSub()->m_query.begin(), clsubp->getSub()->m_query.end()); for (unsigned int j = i; j < i + clsubp->getSub()->m_query.size(); j++) { m_query[j]->setParent(this); } i += clsubp->getSub()->m_query.size() - 1; // We don't want the clauses to be deleted when the parent is, as we // know own them. clsubp->getSub()->m_query.clear(); delete clsubp; } } bool SearchData::singleSimple() { if (m_query.size() != 1 || !m_filetypes.empty() || !m_nfiletypes.empty() || m_haveDates || m_maxSize != size_t(-1) || m_minSize != size_t(-1) || m_haveWildCards) return false; SearchDataClause *clp = *m_query.begin(); if (clp->getTp() != SCLT_AND && clp->getTp() != SCLT_OR) { return false; } return true; } // Extract all term data void SearchData::getTerms(HighlightData &hld) const { for (qlist_cit_t it = m_query.begin(); it != m_query.end(); it++) (*it)->getTerms(hld); return; } static const char * tpToString(SClType t) { switch (t) { case SCLT_AND: return "AND"; case SCLT_OR: return "OR"; case SCLT_FILENAME: return "FILENAME"; case SCLT_PHRASE: return "PHRASE"; case SCLT_NEAR: return "NEAR"; case SCLT_PATH: return "PATH"; case SCLT_SUB: return "SUB"; default: return "UNKNOWN"; } } static string dumptabs; void SearchData::dump(ostream& o) const { o << dumptabs << "SearchData: " << tpToString(m_tp) << " qs " << int(m_query.size()) << " ft " << m_filetypes.size() << " nft " << m_nfiletypes.size() << " hd " << m_haveDates << " maxs " << int(m_maxSize) << " mins " << int(m_minSize) << " wc " << m_haveWildCards << "\n"; for (std::vector<SearchDataClause*>::const_iterator it = m_query.begin(); it != m_query.end(); it++) { o << dumptabs; (*it)->dump(o); o << "\n"; } // o << dumptabs << "\n"; } void SearchDataClause::dump(ostream& o) const { o << "SearchDataClause??"; } void SearchDataClauseSimple::dump(ostream& o) const { o << "ClauseSimple: " << tpToString(m_tp) << " "; if (m_exclude) o << "- "; o << "[" ; if (!m_field.empty()) o << m_field << " : "; o << m_text << "]"; } void SearchDataClauseFilename::dump(ostream& o) const { o << "ClauseFN: "; if (m_exclude) o << " - "; o << "[" << m_text << "]"; } void SearchDataClausePath::dump(ostream& o) const { o << "ClausePath: "; if (m_exclude) o << " - "; o << "[" << m_text << "]"; } void SearchDataClauseDist::dump(ostream& o) const { if (m_tp == SCLT_NEAR) o << "ClauseDist: NEAR "; else o << "ClauseDist: PHRA "; if (m_exclude) o << " - "; o << "["; if (!m_field.empty()) o << m_field << " : "; o << m_text << "]"; } void SearchDataClauseSub::dump(ostream& o) const { o << "ClauseSub {\n"; dumptabs += '\t'; m_sub.getconstptr()->dump(o); dumptabs.erase(dumptabs.size()- 1); o << dumptabs << "}"; } } // Namespace Rcl ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/expansiondbs.h������������������������������������������������������������������0000644�0001750�0001750�00000003652�12602163572�016330� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _EXPANSIONDBS_H_INCLUDED_ #define _EXPANSIONDBS_H_INCLUDED_ #include <string> #include <vector> #include <xapian.h> #include "unacpp.h" #include "synfamily.h" /** Specialization and overall creation code for the term expansion mechanism * defined in synfamily.h */ namespace Rcl { /** A Capitals/Diacritics removal functor for using with * XapComputableSynFamMember. The input term transformation always uses * UNACFOLD. Post-expansion filtering uses either UNAC or FOLD */ class SynTermTransUnac : public SynTermTrans { public: /** Constructor * @param op defines if we remove diacritics, case or both */ SynTermTransUnac(UnacOp op) : m_op(op) { } virtual std::string operator()(const std::string& in) { string out; unacmaybefold(in, out, "UTF-8", m_op); LOGDEB2(("SynTermTransUnac(%d): in [%s] out [%s]\n", int(m_op), in.c_str(), out.c_str())); return out; } UnacOp m_op; }; /** Walk the Xapian term list and create all the expansion dbs in one go. */ extern bool createExpansionDbs(Xapian::WritableDatabase& wdb, const std::vector<std::string>& langs); } #endif /* _EXPANSIONDBS_H_INCLUDED_ */ ��������������������������������������������������������������������������������������recoll-1.21.5/rcldb/expansiondbs.cpp����������������������������������������������������������������0000644�0001750�0001750�00000011666�12602164574�016672� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include "debuglog.h" #include "utf8iter.h" #include "smallut.h" #include "refcntr.h" #include "textsplit.h" #include "xmacros.h" #include "rcldb.h" #include "stemdb.h" #include "expansiondbs.h" using namespace std; namespace Rcl { /** * Create all expansion dbs used to transform user input term to widen a query * We use Xapian synonyms subsets to store the expansions. */ bool createExpansionDbs(Xapian::WritableDatabase& wdb, const vector<string>& langs) { LOGDEB(("StemDb::createExpansionDbs: languages: %s\n", stringsToString(langs).c_str())); Chrono cron; // Erase and recreate all the expansion groups // If langs is empty and we don't need casediac expansion, then no need to // walk the big list if (langs.empty()) { if (o_index_stripchars) return true; } // Stem dbs vector<XapWritableComputableSynFamMember> stemdbs; // Note: tried to make this to work with stack-allocated objects, couldn't. // Looks like a bug in copy constructors somewhere, can't guess where vector<RefCntr<SynTermTransStem> > stemmers; for (unsigned int i = 0; i < langs.size(); i++) { stemmers.push_back(RefCntr<SynTermTransStem> (new SynTermTransStem(langs[i]))); stemdbs.push_back( XapWritableComputableSynFamMember(wdb, synFamStem, langs[i], stemmers.back().getptr())); stemdbs.back().recreate(); } // Unaccented stem dbs vector<XapWritableComputableSynFamMember> unacstemdbs; // We can reuse the same stemmer pointers, the objects are stateless. if (!o_index_stripchars) { for (unsigned int i = 0; i < langs.size(); i++) { unacstemdbs.push_back( XapWritableComputableSynFamMember(wdb, synFamStemUnac, langs[i], stemmers.back().getptr())); unacstemdbs.back().recreate(); } } SynTermTransUnac transunac(UNACOP_UNACFOLD); XapWritableComputableSynFamMember diacasedb(wdb, synFamDiCa, "all", &transunac); if (!o_index_stripchars) diacasedb.recreate(); // Walk the list of all terms, and stem/unac each. string ermsg; try { Xapian::TermIterator it = wdb.allterms_begin(); // We'd want to skip to the first non-prefixed term, but this is a bit // complicated, so we just jump over most of the prefixed term and then // skip the rest one by one. it.skip_to(wrap_prefix("Z")); for ( ;it != wdb.allterms_end(); it++) { if (has_prefix(*it)) continue; // Detect and skip CJK terms. Utf8Iter utfit(*it); if (utfit.eof()) // Empty term?? Seems to happen. continue; if (TextSplit::isCJK(*utfit)) { // LOGDEB(("stemskipped: Skipping CJK\n")); continue; } string lower = *it; // If the index is raw, compute the case-folded term which // is the input to the stem db, and add a synonym from the // stripped term to the cased and accented one, for accent // and case expansion at query time if (!o_index_stripchars) { unacmaybefold(*it, lower, "UTF-8", UNACOP_FOLD); diacasedb.addSynonym(*it); } // Dont' apply stemming to terms which don't look like // natural language words. if (!Db::isSpellingCandidate(*it)) { LOGDEB1(("createExpansionDbs: skipped: [%s]\n", (*it).c_str())); continue; } // Create stemming synonym for every language. The input is the // lowercase accented term for (unsigned int i = 0; i < langs.size(); i++) { stemdbs[i].addSynonym(lower); } // For a raw index, also maybe create a stem expansion for // the unaccented term. While this may be incorrect, it is // also necessary for searching in a diacritic-unsensitive // way on a raw index if (!o_index_stripchars) { string unac; unacmaybefold(lower, unac, "UTF-8", UNACOP_UNAC); if (unac != lower) { for (unsigned int i = 0; i < langs.size(); i++) { unacstemdbs[i].addSynonym(unac); } } } } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db::createStemDb: map build failed: %s\n", ermsg.c_str())); return false; } LOGDEB(("StemDb::createExpansionDbs: done: %.2f S\n", cron.secs())); return true; } } ��������������������������������������������������������������������������recoll-1.21.5/rcldb/Makefile������������������������������������������������������������������������0000644�0001750�0001750�00000001333�12602163572�015114� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������depth = .. include $(depth)/mk/sysconf # Only test executables get build in here PROGS = synfamily stoplist all: librecoll $(PROGS) STOPLIST_OBJS= trstoplist.o stoplist : $(STOPLIST_OBJS) $(CXX) $(ALL_CXXFLAGS) -o stoplist $(STOPLIST_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trstoplist.o : stoplist.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_STOPLIST -c -o trstoplist.o \ stoplist.cpp SYNFAMILY_OBJS= trsynfamily.o synfamily : $(SYNFAMILY_OBJS) $(CXX) $(ALL_CXXFLAGS) -o synfamily $(SYNFAMILY_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBXAPIAN) $(LIBSYS) trsynfamily.o : synfamily.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_SYNFAMILY -c -o trsynfamily.o \ synfamily.cpp include $(depth)/mk/commontargets �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rclquery.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000034005�12602163572�016030� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2008 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <vector> #include <sstream> using namespace std; #include "xapian.h" #include "cstr.h" #include "rclconfig.h" #include "debuglog.h" #include "rcldb.h" #include "rcldb_p.h" #include "rclquery.h" #include "rclquery_p.h" #include "conftree.h" #include "smallut.h" #include "searchdata.h" #include "unacpp.h" namespace Rcl { // This is used as a marker inside the abstract frag lists, but // normally doesn't remain in final output (which is built with a // custom sep. by our caller). static const string cstr_ellipsis("..."); // Field names inside the index data record may differ from the rcldoc ones // (esp.: caption / title) static const string& docfToDatf(const string& df) { if (!df.compare(Doc::keytt)) { return cstr_caption; } else if (!df.compare(Doc::keymt)) { return cstr_dmtime; } else { return df; } } // Sort helper class. As Xapian sorting is lexicographic, we do some // special processing for special fields like dates and sizes. User // custom field data will have to be processed before insertion to // achieve equivalent results. #if XAPIAN_MAJOR_VERSION == 1 && XAPIAN_MINOR_VERSION < 2 class QSorter : public Xapian::Sorter { #else class QSorter : public Xapian::KeyMaker { #endif public: QSorter(const string& f) : m_fld(docfToDatf(f) + "=") { m_ismtime = !m_fld.compare("dmtime="); if (m_ismtime) m_issize = false; else m_issize = !m_fld.compare("fbytes=") || !m_fld.compare("dbytes=") || !m_fld.compare("pcbytes="); } virtual std::string operator()(const Xapian::Document& xdoc) const { string data = xdoc.get_data(); // It would be simpler to do the record->Rcl::Doc thing, but // hand-doing this will be faster. It makes more assumptions // about the format than a ConfTree though: string::size_type i1, i2; i1 = data.find(m_fld); if (i1 == string::npos) { if (m_ismtime) { // Ugly: specialcase mtime as it's either dmtime or fmtime i1 = data.find("fmtime="); if (i1 == string::npos) { return string(); } } else { return string(); } } i1 += m_fld.length(); if (i1 >= data.length()) return string(); i2 = data.find_first_of("\n\r", i1); if (i2 == string::npos) return string(); string term = data.substr(i1, i2-i1); if (m_ismtime) { return term; } else if (m_issize) { // Left zeropad values for appropriate numeric sorting leftzeropad(term, 12); return term; } // Process data for better sorting. We should actually do the // unicode thing // (http://unicode.org/reports/tr10/#Introduction), but just // removing accents and majuscules will remove the most // glaring weirdnesses (or not, depending on your national // approach to collating...) string sortterm; // We're not even sure the term is utf8 here (ie: url) if (!unacmaybefold(term, sortterm, "UTF-8", UNACOP_UNACFOLD)) { sortterm = term; } // Also remove some common uninteresting starting characters i1 = sortterm.find_first_not_of(" \t\\\"'([*+,.#/"); if (i1 != 0 && i1 != string::npos) { sortterm = sortterm.substr(i1, sortterm.size()-i1); } LOGDEB2(("QSorter: [%s] -> [%s]\n", term.c_str(), sortterm.c_str())); return sortterm; } private: string m_fld; bool m_ismtime; bool m_issize; }; Query::Query(Db *db) : m_nq(new Native(this)), m_db(db), m_sorter(0), m_sortAscending(true), m_collapseDuplicates(false), m_resCnt(-1), m_snipMaxPosWalk(1000000) { if (db) db->getConf()->getConfParam("snippetMaxPosWalk", &m_snipMaxPosWalk); } Query::~Query() { deleteZ(m_nq); if (m_sorter) { delete (QSorter*)m_sorter; m_sorter = 0; } } void Query::setSortBy(const string& fld, bool ascending) { if (fld.empty()) { m_sortField.erase(); } else { m_sortField = m_db->getConf()->fieldQCanon(fld); m_sortAscending = ascending; } LOGDEB0(("RclQuery::setSortBy: [%s] %s\n", m_sortField.c_str(), m_sortAscending ? "ascending" : "descending")); } //#define ISNULL(X) (X).isNull() #define ISNULL(X) !(X) // Prepare query out of user search data bool Query::setQuery(RefCntr<SearchData> sdata) { LOGDEB(("Query::setQuery:\n")); if (!m_db || ISNULL(m_nq)) { LOGERR(("Query::setQuery: not initialised!\n")); return false; } m_resCnt = -1; m_reason.erase(); m_nq->clear(); m_sd = sdata; Xapian::Query xq; if (!sdata->toNativeQuery(*m_db, &xq)) { m_reason += sdata->getReason(); return false; } m_nq->xquery = xq; string d; for (int tries = 0; tries < 2; tries++) { try { m_nq->xenquire = new Xapian::Enquire(m_db->m_ndb->xrdb); if (m_collapseDuplicates) { m_nq->xenquire->set_collapse_key(Rcl::VALUE_MD5); } else { m_nq->xenquire->set_collapse_key(Xapian::BAD_VALUENO); } m_nq->xenquire->set_docid_order(Xapian::Enquire::DONT_CARE); if (!m_sortField.empty() && stringlowercmp("relevancyrating", m_sortField)) { if (m_sorter) { delete (QSorter*)m_sorter; m_sorter = 0; } m_sorter = new QSorter(m_sortField); // It really seems there is a xapian bug about sort order, we // invert here. m_nq->xenquire->set_sort_by_key((QSorter*)m_sorter, !m_sortAscending); } m_nq->xenquire->set_query(m_nq->xquery); m_nq->xmset = Xapian::MSet(); // Get the query description and trim the "Xapian::Query" d = m_nq->xquery.get_description(); m_reason.erase(); break; } catch (const Xapian::DatabaseModifiedError &e) { m_reason = e.get_msg(); m_db->m_ndb->xrdb.reopen(); continue; } XCATCHERROR(m_reason); break; } if (!m_reason.empty()) { LOGDEB(("Query::SetQuery: xapian error %s\n", m_reason.c_str())); return false; } if (d.find("Xapian::Query") == 0) d.erase(0, strlen("Xapian::Query")); sdata->setDescription(d); m_sd = sdata; LOGDEB(("Query::SetQuery: Q: %s\n", sdata->getDescription().c_str())); return true; } bool Query::getQueryTerms(vector<string>& terms) { if (ISNULL(m_nq)) return false; terms.clear(); Xapian::TermIterator it; string ermsg; try { for (it = m_nq->xquery.get_terms_begin(); it != m_nq->xquery.get_terms_end(); it++) { terms.push_back(*it); } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("getQueryTerms: xapian error: %s\n", ermsg.c_str())); return false; } return true; } int Query::makeDocAbstract(const Doc &doc, vector<Snippet>& abstract, int maxoccs, int ctxwords) { LOGDEB(("makeDocAbstract: maxoccs %d ctxwords %d\n", maxoccs, ctxwords)); if (!m_db || !m_db->m_ndb || !m_db->m_ndb->m_isopen || !m_nq) { LOGERR(("Query::makeDocAbstract: no db or no nq\n")); return ABSRES_ERROR; } int ret = ABSRES_ERROR; XAPTRY(ret = m_nq->makeAbstract(doc.xdocid, abstract, maxoccs, ctxwords), m_db->m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGDEB(("makeDocAbstract: makeAbstract error, reason: %s\n", m_reason.c_str())); return ABSRES_ERROR; } return ret; } bool Query::makeDocAbstract(const Doc &doc, vector<string>& abstract) { vector<Snippet> vpabs; if (!makeDocAbstract(doc, vpabs)) return false; for (vector<Snippet>::const_iterator it = vpabs.begin(); it != vpabs.end(); it++) { string chunk; if (it->page > 0) { ostringstream ss; ss << it->page; chunk += string(" [p ") + ss.str() + "] "; } chunk += it->snippet; abstract.push_back(chunk); } return true; } bool Query::makeDocAbstract(const Doc &doc, string& abstract) { vector<Snippet> vpabs; if (!makeDocAbstract(doc, vpabs)) return false; for (vector<Snippet>::const_iterator it = vpabs.begin(); it != vpabs.end(); it++) { abstract.append(it->snippet); abstract.append(cstr_ellipsis); } return m_reason.empty() ? true : false; } int Query::getFirstMatchPage(const Doc &doc, string& term) { LOGDEB1(("Db::getFirstMatchPage\n"));; if (!m_nq) { LOGERR(("Query::getFirstMatchPage: no nq\n")); return false; } int pagenum = -1; XAPTRY(pagenum = m_nq->getFirstMatchPage(Xapian::docid(doc.xdocid), term), m_db->m_ndb->xrdb, m_reason); return m_reason.empty() ? pagenum : -1; } // Mset size static const int qquantum = 50; // Get estimated result count for query. Xapian actually does most of // the search job in there, this can be long int Query::getResCnt() { if (ISNULL(m_nq) || !m_nq->xenquire) { LOGERR(("Query::getResCnt: no query opened\n")); return -1; } if (m_resCnt >= 0) return m_resCnt; m_resCnt = -1; if (m_nq->xmset.size() <= 0) { Chrono chron; XAPTRY(m_nq->xmset = m_nq->xenquire->get_mset(0, qquantum, 1000); m_resCnt = m_nq->xmset.get_matches_lower_bound(), m_db->m_ndb->xrdb, m_reason); LOGDEB(("Query::getResCnt: %d %d mS\n", m_resCnt, chron.millis())); if (!m_reason.empty()) LOGERR(("xenquire->get_mset: exception: %s\n", m_reason.c_str())); } else { m_resCnt = m_nq->xmset.get_matches_lower_bound(); } return m_resCnt; } // Get document at rank xapi in query results. We check if the // current mset has the doc, else ask for an other one. We use msets // of qquantum documents. // // Note that as stated by a Xapian developer, Enquire searches from // scratch each time get_mset() is called. So the better performance // on subsequent calls is probably only due to disk caching. bool Query::getDoc(int xapi, Doc &doc) { LOGDEB1(("Query::getDoc: xapian enquire index %d\n", xapi)); if (ISNULL(m_nq) || !m_nq->xenquire) { LOGERR(("Query::getDoc: no query opened\n")); return false; } int first = m_nq->xmset.get_firstitem(); int last = first + m_nq->xmset.size() -1; if (!(xapi >= first && xapi <= last)) { LOGDEB(("Fetching for first %d, count %d\n", xapi, qquantum)); XAPTRY(m_nq->xmset = m_nq->xenquire->get_mset(xapi, qquantum, (const Xapian::RSet *)0), m_db->m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("enquire->get_mset: exception: %s\n", m_reason.c_str())); return false; } if (m_nq->xmset.empty()) { LOGDEB(("enquire->get_mset: got empty result\n")); return false; } first = m_nq->xmset.get_firstitem(); last = first + m_nq->xmset.size() -1; } LOGDEB1(("Query::getDoc: Qry [%s] win [%d-%d] Estimated results: %d", m_nq->query.get_description().c_str(), first, last, m_nq->xmset.get_matches_lower_bound())); Xapian::Document xdoc; Xapian::docid docid = 0; int pc = 0; int collapsecount = 0; string data; string udi; m_reason.erase(); for (int xaptries=0; xaptries < 2; xaptries++) { try { xdoc = m_nq->xmset[xapi-first].get_document(); collapsecount = m_nq->xmset[xapi-first].get_collapse_count(); docid = *(m_nq->xmset[xapi-first]); pc = m_nq->xmset.convert_to_percent(m_nq->xmset[xapi-first]); data = xdoc.get_data(); m_reason.erase(); Chrono chron; m_db->m_ndb->xdocToUdi(xdoc, udi); LOGDEB2(("Query::getDoc: %d ms for udi [%s], collapse count %d\n", chron.millis(), udi.c_str(), collapsecount)); break; } catch (Xapian::DatabaseModifiedError &error) { // retry or end of loop m_reason = error.get_msg(); continue; } XCATCHERROR(m_reason); break; } if (!m_reason.empty()) { LOGERR(("Query::getDoc: %s\n", m_reason.c_str())); return false; } doc.meta[Rcl::Doc::keyudi] = udi; doc.pc = pc; char buf[200]; if (collapsecount > 0) { sprintf(buf,"%3d%% (%d)", pc, collapsecount + 1); } else { sprintf(buf,"%3d%%", pc); } doc.meta[Doc::keyrr] = buf; if (collapsecount > 0) { sprintf(buf, "%d", collapsecount); doc.meta[Rcl::Doc::keycc] = buf; } // Parse xapian document's data and populate doc fields return m_db->m_ndb->dbDataToRclDoc(docid, data, doc); } vector<string> Query::expand(const Doc &doc) { LOGDEB(("Rcl::Query::expand()\n")); vector<string> res; if (ISNULL(m_nq) || !m_nq->xenquire) { LOGERR(("Query::expand: no query opened\n")); return res; } for (int tries = 0; tries < 2; tries++) { try { Xapian::RSet rset; rset.add_document(Xapian::docid(doc.xdocid)); // We don't exclude the original query terms. Xapian::ESet eset = m_nq->xenquire->get_eset(20, rset, false); LOGDEB(("ESet terms:\n")); // We filter out the special terms for (Xapian::ESetIterator it = eset.begin(); it != eset.end(); it++) { LOGDEB((" [%s]\n", (*it).c_str())); if ((*it).empty() || has_prefix(*it)) continue; res.push_back(*it); if (res.size() >= 10) break; } m_reason.erase(); break; } catch (const Xapian::DatabaseModifiedError &e) { m_reason = e.get_msg(); m_db->m_ndb->xrdb.reopen(); continue; } XCATCHERROR(m_reason); break; } if (!m_reason.empty()) { LOGERR(("Query::expand: xapian error %s\n", m_reason.c_str())); res.clear(); } return res; } } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rclquery.h����������������������������������������������������������������������0000644�0001750�0001750�00000010335�12602163572�015475� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2008 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _rclquery_h_included_ #define _rclquery_h_included_ #include <string> #include <vector> #include "refcntr.h" #include "searchdata.h" #ifndef NO_NAMESPACES namespace Rcl { #endif class Db; class Doc; enum abstract_result { ABSRES_ERROR = 0, ABSRES_OK = 1, ABSRES_TRUNC = 2, ABSRES_TERMMISS = 4 }; // Snippet entry for makeDocAbstract class Snippet { public: Snippet(int page, const std::string& snip) : page(page), snippet(snip) { } Snippet& setTerm(const std::string& trm) { term = trm; return *this; } int page; std::string term; std::string snippet; }; /** * An Rcl::Query is a question (SearchData) applied to a * database. Handles access to the results. Somewhat equivalent to a * cursor in an rdb. * */ class Query { public: Query(Db *db); ~Query(); /** Get explanation about last error */ std::string getReason() const { return m_reason; } /** Choose sort order. Must be called before setQuery */ void setSortBy(const std::string& fld, bool ascending = true); const std::string& getSortBy() const { return m_sortField; } bool getSortAscending() const { return m_sortAscending; } /** Return or filter results with identical content checksum */ void setCollapseDuplicates(bool on) { m_collapseDuplicates = on; } /** Accept data describing the search and query the index. This can * be called repeatedly on the same object which gets reinitialized each * time. */ bool setQuery(RefCntr<SearchData> q); /** Get results count for current query */ int getResCnt(); /** Get document at rank i in current query results. */ bool getDoc(int i, Doc &doc); /** Get possibly expanded list of query terms */ bool getQueryTerms(std::vector<std::string>& terms); /** Build synthetic abstract for document, extracting chunks relevant for * the input query. This uses index data only (no access to the file) */ // Abstract returned as one string bool makeDocAbstract(const Doc &doc, std::string& abstract); // Returned as a snippets vector bool makeDocAbstract(const Doc &doc, std::vector<std::string>& abstract); // Returned as a vector of pair<page,snippet> page is 0 if unknown int makeDocAbstract(const Doc &doc, std::vector<Snippet>& abst, int maxoccs= -1, int ctxwords = -1); /** Retrieve page number for first match for "significant" query term * @param term returns the chosen term */ int getFirstMatchPage(const Doc &doc, std::string& term); /** Retrieve a reference to the searchData we are using */ RefCntr<SearchData> getSD() { return m_sd; } /** Expand query to look for documents like the one passed in */ std::vector<std::string> expand(const Doc &doc); /** Return the Db we're set for */ Db *whatDb() const { return m_db; } /* make this public for access from embedded Db::Native */ class Native; Native *m_nq; private: std::string m_reason; // Error explanation Db *m_db; void *m_sorter; std::string m_sortField; bool m_sortAscending; bool m_collapseDuplicates; int m_resCnt; RefCntr<SearchData> m_sd; int m_snipMaxPosWalk; /* Copyconst and assignement private and forbidden */ Query(const Query &) {} Query & operator=(const Query &) {return *this;}; }; #ifndef NO_NAMESPACES } #endif // NO_NAMESPACES #endif /* _rclquery_h_included_ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/searchdatatox.cpp���������������������������������������������������������������0000644�0001750�0001750�00000101465�12602163572�017021� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Handle translation from rcl's SearchData structures to Xapian Queries #include "autoconfig.h" #include <stdio.h> #include <string> #include <vector> #include <algorithm> #include <sstream> using namespace std; #include "xapian.h" #include "cstr.h" #include "rcldb.h" #include "rcldb_p.h" #include "searchdata.h" #include "debuglog.h" #include "smallut.h" #include "textsplit.h" #include "unacpp.h" #include "utf8iter.h" #include "stoplist.h" #include "rclconfig.h" #include "termproc.h" #include "synfamily.h" #include "stemdb.h" #include "expansiondbs.h" #include "base64.h" #include "daterange.h" namespace Rcl { typedef vector<SearchDataClause *>::iterator qlist_it_t; static const int original_term_wqf_booster = 10; // Expand categories and mime type wild card exps Categories are // expanded against the configuration, mimetypes against the index // (for wildcards). bool SearchData::expandFileTypes(Db &db, vector<string>& tps) { const RclConfig *cfg = db.getConf(); if (!cfg) { LOGFATAL(("Db::expandFileTypes: null configuration!!\n")); return false; } vector<string> exptps; for (vector<string>::iterator it = tps.begin(); it != tps.end(); it++) { if (cfg->isMimeCategory(*it)) { vector<string>tps; cfg->getMimeCatTypes(*it, tps); exptps.insert(exptps.end(), tps.begin(), tps.end()); } else { TermMatchResult res; string mt = stringtolower((const string&)*it); // We set casesens|diacsens to get an equivalent of ixTermMatch() db.termMatch(Db::ET_WILD|Db::ET_CASESENS|Db::ET_DIACSENS, string(), mt, res, -1, "mtype"); if (res.entries.empty()) { exptps.push_back(it->c_str()); } else { for (vector<TermMatchEntry>::const_iterator rit = res.entries.begin(); rit != res.entries.end(); rit++) { exptps.push_back(strip_prefix(rit->term)); } } } } sort(exptps.begin(), exptps.end()); exptps.erase(unique(exptps.begin(), exptps.end()), exptps.end()); tps = exptps; return true; } static const char *maxXapClauseMsg = "Maximum Xapian query size exceeded. Increase maxXapianClauses " "in the configuration. "; static const char *maxXapClauseCaseDiacMsg = "Or try to use case (C) or diacritics (D) sensitivity qualifiers, or less " "wildcards ?" ; bool SearchData::clausesToQuery(Rcl::Db &db, SClType tp, vector<SearchDataClause*>& query, string& reason, void *d) { Xapian::Query xq; for (qlist_it_t it = query.begin(); it != query.end(); it++) { Xapian::Query nq; if (!(*it)->toNativeQuery(db, &nq)) { LOGERR(("SearchData::clausesToQuery: toNativeQuery failed: %s\n", (*it)->getReason().c_str())); reason += (*it)->getReason() + " "; return false; } if (nq.empty()) { LOGDEB(("SearchData::clausesToQuery: skipping empty clause\n")); continue; } // If this structure is an AND list, must use AND_NOT for excl clauses. // Else this is an OR list, and there can't be excl clauses (checked by // addClause()) Xapian::Query::op op; if (tp == SCLT_AND) { if ((*it)->getexclude()) { op = Xapian::Query::OP_AND_NOT; } else { op = Xapian::Query::OP_AND; } } else { op = Xapian::Query::OP_OR; } if (xq.empty()) { if (op == Xapian::Query::OP_AND_NOT) xq = Xapian::Query(op, Xapian::Query::MatchAll, nq); else xq = nq; } else { xq = Xapian::Query(op, xq, nq); } if (int(xq.get_length()) >= getMaxCl()) { LOGERR(("%s\n", maxXapClauseMsg)); m_reason += maxXapClauseMsg; if (!o_index_stripchars) m_reason += maxXapClauseCaseDiacMsg; return false; } } LOGDEB0(("SearchData::clausesToQuery: got %d clauses\n", xq.get_length())); if (xq.empty()) xq = Xapian::Query::MatchAll; *((Xapian::Query *)d) = xq; return true; } bool SearchData::toNativeQuery(Rcl::Db &db, void *d) { LOGDEB(("SearchData::toNativeQuery: stemlang [%s]\n", m_stemlang.c_str())); m_reason.erase(); db.getConf()->getConfParam("maxTermExpand", &m_maxexp); db.getConf()->getConfParam("maxXapianClauses", &m_maxcl); // Walk the clause list translating each in turn and building the // Xapian query tree Xapian::Query xq; if (!clausesToQuery(db, m_tp, m_query, m_reason, &xq)) { LOGERR(("SearchData::toNativeQuery: clausesToQuery failed. reason: %s\n", m_reason.c_str())); return false; } if (m_haveDates) { // If one of the extremities is unset, compute db extremas if (m_dates.y1 == 0 || m_dates.y2 == 0) { int minyear = 1970, maxyear = 2100; if (!db.maxYearSpan(&minyear, &maxyear)) { LOGERR(("Can't retrieve index min/max dates\n")); //whatever, go on. } if (m_dates.y1 == 0) { m_dates.y1 = minyear; m_dates.m1 = 1; m_dates.d1 = 1; } if (m_dates.y2 == 0) { m_dates.y2 = maxyear; m_dates.m2 = 12; m_dates.d2 = 31; } } LOGDEB(("Db::toNativeQuery: date interval: %d-%d-%d/%d-%d-%d\n", m_dates.y1, m_dates.m1, m_dates.d1, m_dates.y2, m_dates.m2, m_dates.d2)); Xapian::Query dq = date_range_filter(m_dates.y1, m_dates.m1, m_dates.d1, m_dates.y2, m_dates.m2, m_dates.d2); if (dq.empty()) { LOGINFO(("Db::toNativeQuery: date filter is empty\n")); } // If no probabilistic query is provided then promote the daterange // filter to be THE query instead of filtering an empty query. if (xq.empty()) { LOGINFO(("Db::toNativeQuery: proba query is empty\n")); xq = dq; } else { xq = Xapian::Query(Xapian::Query::OP_FILTER, xq, dq); } } if (m_minSize != size_t(-1) || m_maxSize != size_t(-1)) { Xapian::Query sq; char min[50], max[50]; sprintf(min, "%lld", (long long)m_minSize); sprintf(max, "%lld", (long long)m_maxSize); if (m_minSize == size_t(-1)) { string value(max); leftzeropad(value, 12); sq = Xapian::Query(Xapian::Query::OP_VALUE_LE, VALUE_SIZE, value); } else if (m_maxSize == size_t(-1)) { string value(min); leftzeropad(value, 12); sq = Xapian::Query(Xapian::Query::OP_VALUE_GE, VALUE_SIZE, value); } else { string minvalue(min); leftzeropad(minvalue, 12); string maxvalue(max); leftzeropad(maxvalue, 12); sq = Xapian::Query(Xapian::Query::OP_VALUE_RANGE, VALUE_SIZE, minvalue, maxvalue); } // If no probabilistic query is provided then promote the // filter to be THE query instead of filtering an empty query. if (xq.empty()) { LOGINFO(("Db::toNativeQuery: proba query is empty\n")); xq = sq; } else { xq = Xapian::Query(Xapian::Query::OP_FILTER, xq, sq); } } // Add the autophrase if any if (m_autophrase.isNotNull()) { Xapian::Query apq; if (m_autophrase->toNativeQuery(db, &apq)) { xq = xq.empty() ? apq : Xapian::Query(Xapian::Query::OP_AND_MAYBE, xq, apq); } } // Add the file type filtering clause if any if (!m_filetypes.empty()) { expandFileTypes(db, m_filetypes); Xapian::Query tq; for (vector<string>::iterator it = m_filetypes.begin(); it != m_filetypes.end(); it++) { string term = wrap_prefix(mimetype_prefix) + *it; LOGDEB0(("Adding file type term: [%s]\n", term.c_str())); tq = tq.empty() ? Xapian::Query(term) : Xapian::Query(Xapian::Query::OP_OR, tq, Xapian::Query(term)); } xq = xq.empty() ? tq : Xapian::Query(Xapian::Query::OP_FILTER, xq, tq); } // Add the neg file type filtering clause if any if (!m_nfiletypes.empty()) { expandFileTypes(db, m_nfiletypes); Xapian::Query tq; for (vector<string>::iterator it = m_nfiletypes.begin(); it != m_nfiletypes.end(); it++) { string term = wrap_prefix(mimetype_prefix) + *it; LOGDEB0(("Adding negative file type term: [%s]\n", term.c_str())); tq = tq.empty() ? Xapian::Query(term) : Xapian::Query(Xapian::Query::OP_OR, tq, Xapian::Query(term)); } xq = xq.empty() ? tq : Xapian::Query(Xapian::Query::OP_AND_NOT, xq, tq); } *((Xapian::Query *)d) = xq; return true; } // Splitter for breaking a user string into simple terms and // phrases. This is for parts of the user entry which would appear as // a single word because there is no white space inside, but are // actually multiple terms to rcldb (ie term1,term2). Still, most of // the time, the result of our splitting will be a single term. class TextSplitQ : public TextSplitP { public: TextSplitQ(Flags flags, TermProc *prc) : TextSplitP(prc, flags), m_nostemexp(false) { } bool takeword(const std::string &term, int pos, int bs, int be) { // Check if the first letter is a majuscule in which // case we do not want to do stem expansion. Need to do this // before unac of course... m_nostemexp = unaciscapital(term); return TextSplitP::takeword(term, pos, bs, be); } bool nostemexp() const { return m_nostemexp; } private: bool m_nostemexp; }; class TermProcQ : public TermProc { public: TermProcQ() : TermProc(0), m_alltermcount(0), m_lastpos(0), m_ts(0) {} // We need a ref to the splitter (only it knows about orig term // capitalization for controlling stemming. The ref can't be set // in the constructor because the splitter is not built yet when // we are born (chicken and egg). void setTSQ(const TextSplitQ *ts) { m_ts = ts; } bool takeword(const std::string &term, int pos, int bs, int be) { m_alltermcount++; if (m_lastpos < pos) m_lastpos = pos; bool noexpand = be ? m_ts->nostemexp() : true; LOGDEB1(("TermProcQ::takeword: pushing [%s] pos %d noexp %d\n", term.c_str(), pos, noexpand)); if (m_terms[pos].size() < term.size()) { m_terms[pos] = term; m_nste[pos] = noexpand; } return true; } bool flush() { for (map<int, string>::const_iterator it = m_terms.begin(); it != m_terms.end(); it++) { m_vterms.push_back(it->second); m_vnostemexps.push_back(m_nste[it->first]); } return true; } int alltermcount() const { return m_alltermcount; } int lastpos() const { return m_lastpos; } const vector<string>& terms() { return m_vterms; } const vector<bool>& nostemexps() { return m_vnostemexps; } private: // Count of terms including stopwords: this is for adjusting // phrase/near slack int m_alltermcount; int m_lastpos; const TextSplitQ *m_ts; vector<string> m_vterms; vector<bool> m_vnostemexps; map<int, string> m_terms; map<int, bool> m_nste; }; #if 1 static void listVector(const string& what, const vector<string>&l) { string a; for (vector<string>::const_iterator it = l.begin(); it != l.end(); it++) { a = a + *it + " "; } LOGDEB0(("%s: %s\n", what.c_str(), a.c_str())); } #endif /** Expand term into term list, using appropriate mode: stem, wildcards, * diacritics... * * @param mods stem expansion, case and diacritics sensitivity control. * @param term input single word * @param oexp output expansion list * @param sterm output original input term if there were no wildcards * @param prefix field prefix in index. We could recompute it, but the caller * has it already. Used in the simple case where there is nothing to expand, * and we just return the prefixed term (else Db::termMatch deals with it). */ bool SearchDataClauseSimple::expandTerm(Rcl::Db &db, string& ermsg, int mods, const string& term, vector<string>& oexp, string &sterm, const string& prefix) { LOGDEB0(("expandTerm: mods 0x%x fld [%s] trm [%s] lang [%s]\n", mods, m_field.c_str(), term.c_str(), getStemLang().c_str())); sterm.clear(); oexp.clear(); if (term.empty()) return true; bool maxexpissoft = false; int maxexpand = getSoftMaxExp(); if (maxexpand != -1) { maxexpissoft = true; } else { maxexpand = getMaxExp(); } bool haswild = term.find_first_of(cstr_minwilds) != string::npos; // If there are no wildcards, add term to the list of user-entered terms if (!haswild) { m_hldata.uterms.insert(term); sterm = term; } // No stem expansion if there are wildcards or if prevented by caller bool nostemexp = (mods & SDCM_NOSTEMMING) != 0; if (haswild || getStemLang().empty()) { LOGDEB2(("expandTerm: found wildcards or stemlang empty: no exp\n")); nostemexp = true; } // noexpansion can be modified further down by possible case/diac expansion bool noexpansion = nostemexp && !haswild; int termmatchsens = 0; bool diac_sensitive = (mods & SDCM_DIACSENS) != 0; bool case_sensitive = (mods & SDCM_CASESENS) != 0; if (o_index_stripchars) { diac_sensitive = case_sensitive = false; } else { // If we are working with a raw index, apply the rules for case and // diacritics sensitivity. // If any character has a diacritic, we become // diacritic-sensitive. Note that the way that the test is // performed (conversion+comparison) will automatically ignore // accented characters which are actually a separate letter if (getAutoDiac() && unachasaccents(term)) { LOGDEB0(("expandTerm: term has accents -> diac-sensitive\n")); diac_sensitive = true; } // If any character apart the first is uppercase, we become // case-sensitive. The first character is reserved for // turning off stemming. You need to use a query language // modifier to search for Floor in a case-sensitive way. Utf8Iter it(term); it++; if (getAutoCase() && unachasuppercase(term.substr(it.getBpos()))) { LOGDEB0(("expandTerm: term has uppercase -> case-sensitive\n")); case_sensitive = true; } // If we are sensitive to case or diacritics turn stemming off if (diac_sensitive || case_sensitive) { LOGDEB0(("expandTerm: diac or case sens set -> stemexpand off\n")); nostemexp = true; } if (!case_sensitive || !diac_sensitive) noexpansion = false; } if (case_sensitive) termmatchsens |= Db::ET_CASESENS; if (diac_sensitive) termmatchsens |= Db::ET_DIACSENS; if (noexpansion) { oexp.push_back(prefix + term); m_hldata.terms[term] = term; LOGDEB(("ExpandTerm: noexpansion: final: %s\n", stringsToString(oexp).c_str())); return true; } Db::MatchType mtyp = haswild ? Db::ET_WILD : nostemexp ? Db::ET_NONE : Db::ET_STEM; TermMatchResult res; if (!db.termMatch(mtyp | termmatchsens, getStemLang(), term, res, maxexpand, m_field)) { // Let it go through } // Term match entries to vector of terms if (int(res.entries.size()) >= maxexpand && !maxexpissoft) { ermsg = "Maximum term expansion size exceeded." " Maybe use case/diacritics sensitivity or increase maxTermExpand."; return false; } for (vector<TermMatchEntry>::const_iterator it = res.entries.begin(); it != res.entries.end(); it++) { oexp.push_back(it->term); } // If the term does not exist at all in the db, the return from // termMatch() is going to be empty, which is not what we want (we // would then compute an empty Xapian query) if (oexp.empty()) oexp.push_back(prefix + term); // Remember the uterm-to-expansion links for (vector<string>::const_iterator it = oexp.begin(); it != oexp.end(); it++) { m_hldata.terms[strip_prefix(*it)] = term; } LOGDEB(("ExpandTerm: final: %s\n", stringsToString(oexp).c_str())); return true; } // Do distribution of string vectors: a,b c,d -> a,c a,d b,c b,d void multiply_groups(vector<vector<string> >::const_iterator vvit, vector<vector<string> >::const_iterator vvend, vector<string>& comb, vector<vector<string> >&allcombs) { // Remember my string vector and compute next, for recursive calls. vector<vector<string> >::const_iterator myvit = vvit++; // Walk the string vector I'm called upon and, for each string, // add it to current result, an call myself recursively on the // next string vector. The last call (last element of the vector of // vectors), adds the elementary result to the output // Walk my string vector for (vector<string>::const_iterator strit = (*myvit).begin(); strit != (*myvit).end(); strit++) { // Add my current value to the string vector we're building comb.push_back(*strit); if (vvit == vvend) { // Last call: store current result allcombs.push_back(comb); } else { // Call recursively on next string vector multiply_groups(vvit, vvend, comb, allcombs); } // Pop the value I just added (make room for the next element in my // vector) comb.pop_back(); } } void SearchDataClauseSimple::processSimpleSpan(Rcl::Db &db, string& ermsg, const string& span, int mods, void * pq) { vector<Xapian::Query>& pqueries(*(vector<Xapian::Query>*)pq); LOGDEB0(("StringToXapianQ::processSimpleSpan: [%s] mods 0x%x\n", span.c_str(), (unsigned int)mods)); vector<string> exp; string sterm; // dumb version of user term string prefix; const FieldTraits *ftp; if (!m_field.empty() && db.fieldToTraits(m_field, &ftp, true)) { prefix = wrap_prefix(ftp->pfx); } if (!expandTerm(db, ermsg, mods, span, exp, sterm, prefix)) return; // Set up the highlight data. No prefix should go in there for (vector<string>::const_iterator it = exp.begin(); it != exp.end(); it++) { m_hldata.groups.push_back(vector<string>(1, it->substr(prefix.size()))); m_hldata.slacks.push_back(0); m_hldata.grpsugidx.push_back(m_hldata.ugroups.size() - 1); } // Push either term or OR of stem-expanded set Xapian::Query xq(Xapian::Query::OP_OR, exp.begin(), exp.end()); m_curcl += exp.size(); // If sterm (simplified original user term) is not null, give it a // relevance boost. We do this even if no expansion occurred (else // the non-expanded terms in a term list would end-up with even // less wqf). This does not happen if there are wildcards anywhere // in the search. // We normally boost the original term in the stem expansion list. Don't // do it if there are wildcards anywhere, this would skew the results. bool doBoostUserTerm = (m_parentSearch && !m_parentSearch->haveWildCards()) || (m_parentSearch == 0 && !m_haveWildCards); if (doBoostUserTerm && !sterm.empty()) { xq = Xapian::Query(Xapian::Query::OP_OR, xq, Xapian::Query(prefix+sterm, original_term_wqf_booster)); } pqueries.push_back(xq); } // User entry element had several terms: transform into a PHRASE or // NEAR xapian query, the elements of which can themselves be OR // queries if the terms get expanded by stemming or wildcards (we // don't do stemming for PHRASE though) void SearchDataClauseSimple::processPhraseOrNear(Rcl::Db &db, string& ermsg, TermProcQ *splitData, int mods, void *pq, bool useNear, int slack) { vector<Xapian::Query> &pqueries(*(vector<Xapian::Query>*)pq); Xapian::Query::op op = useNear ? Xapian::Query::OP_NEAR : Xapian::Query::OP_PHRASE; vector<Xapian::Query> orqueries; #ifdef XAPIAN_NEAR_EXPAND_SINGLE_BUF bool hadmultiple = false; #endif vector<vector<string> >groups; string prefix; const FieldTraits *ftp; if (!m_field.empty() && db.fieldToTraits(m_field, &ftp, true)) { prefix = wrap_prefix(ftp->pfx); } if (mods & Rcl::SearchDataClause::SDCM_ANCHORSTART) { orqueries.push_back(Xapian::Query(prefix + start_of_field_term)); slack++; } // Go through the list and perform stem/wildcard expansion for each element vector<bool>::const_iterator nxit = splitData->nostemexps().begin(); for (vector<string>::const_iterator it = splitData->terms().begin(); it != splitData->terms().end(); it++, nxit++) { LOGDEB0(("ProcessPhrase: processing [%s]\n", it->c_str())); // Adjust when we do stem expansion. Not if disabled by // caller, not inside phrases, and some versions of xapian // will accept only one OR clause inside NEAR. bool nostemexp = *nxit || (op == Xapian::Query::OP_PHRASE) #ifdef XAPIAN_NEAR_EXPAND_SINGLE_BUF || hadmultiple #endif // single OR inside NEAR ; int lmods = mods; if (nostemexp) lmods |= SearchDataClause::SDCM_NOSTEMMING; string sterm; vector<string> exp; if (!expandTerm(db, ermsg, lmods, *it, exp, sterm, prefix)) return; LOGDEB0(("ProcessPhraseOrNear: exp size %d\n", exp.size())); listVector("", exp); // groups is used for highlighting, we don't want prefixes in there. vector<string> noprefs; for (vector<string>::const_iterator it = exp.begin(); it != exp.end(); it++) { noprefs.push_back(it->substr(prefix.size())); } groups.push_back(noprefs); orqueries.push_back(Xapian::Query(Xapian::Query::OP_OR, exp.begin(), exp.end())); m_curcl += exp.size(); if (m_curcl >= getMaxCl()) return; #ifdef XAPIAN_NEAR_EXPAND_SINGLE_BUF if (exp.size() > 1) hadmultiple = true; #endif } if (mods & Rcl::SearchDataClause::SDCM_ANCHOREND) { orqueries.push_back(Xapian::Query(prefix + end_of_field_term)); slack++; } // Generate an appropriate PHRASE/NEAR query with adjusted slack // For phrases, give a relevance boost like we do for original terms LOGDEB2(("PHRASE/NEAR: alltermcount %d lastpos %d\n", splitData->alltermcount(), splitData->lastpos())); Xapian::Query xq(op, orqueries.begin(), orqueries.end(), splitData->lastpos() + 1 + slack); if (op == Xapian::Query::OP_PHRASE) xq = Xapian::Query(Xapian::Query::OP_SCALE_WEIGHT, xq, original_term_wqf_booster); pqueries.push_back(xq); // Add all combinations of NEAR/PHRASE groups to the highlighting data. vector<vector<string> > allcombs; vector<string> comb; multiply_groups(groups.begin(), groups.end(), comb, allcombs); // Insert the search groups and slacks in the highlight data, with // a reference to the user entry that generated them: m_hldata.groups.insert(m_hldata.groups.end(), allcombs.begin(), allcombs.end()); m_hldata.slacks.insert(m_hldata.slacks.end(), allcombs.size(), slack); m_hldata.grpsugidx.insert(m_hldata.grpsugidx.end(), allcombs.size(), m_hldata.ugroups.size() - 1); } // Trim string beginning with ^ or ending with $ and convert to flags static int stringToMods(string& s) { int mods = 0; // Check for an anchored search trimstring(s); if (s.length() > 0 && s[0] == '^') { mods |= Rcl::SearchDataClause::SDCM_ANCHORSTART; s.erase(0, 1); } if (s.length() > 0 && s[s.length()-1] == '$') { mods |= Rcl::SearchDataClause::SDCM_ANCHOREND; s.erase(s.length()-1); } return mods; } /** * Turn user entry string (NOT query language) into a list of xapian queries. * We just separate words and phrases, and do wildcard and stem expansion, * * This is used to process data entered into an OR/AND/NEAR/PHRASE field of * the GUI (in the case of NEAR/PHRASE, clausedist adds dquotes to the user * entry). * * This appears awful, and it would seem that the split into * terms/phrases should be performed in the upper layer so that we * only receive pure term or near/phrase pure elements here, but in * fact there are things that would appear like terms to naive code, * and which will actually may be turned into phrases (ie: tom:jerry), * in a manner which intimately depends on the index implementation, * so that it makes sense to process this here. * * The final list contains one query for each term or phrase * - Elements corresponding to a stem-expanded part are an OP_OR * composition of the stem-expanded terms (or a single term query). * - Elements corresponding to phrase/near are an OP_PHRASE/NEAR * composition of the phrase terms (no stem expansion in this case) * @return the subquery count (either or'd stem-expanded terms or phrase word * count) */ bool SearchDataClauseSimple::processUserString(Rcl::Db &db, const string &iq, string &ermsg, void *pq, int slack, bool useNear) { vector<Xapian::Query> &pqueries(*(vector<Xapian::Query>*)pq); int mods = m_modifiers; LOGDEB(("StringToXapianQ:pUS:: qstr [%s] fld [%s] mods 0x%x " "slack %d near %d\n", iq.c_str(), m_field.c_str(), mods, slack, useNear)); ermsg.erase(); m_curcl = 0; const StopList stops = db.getStopList(); // Simple whitespace-split input into user-level words and // double-quoted phrases: word1 word2 "this is a phrase". // // The text splitter may further still decide that the resulting // "words" are really phrases, this depends on separators: // [paul@dom.net] would still be a word (span), but [about:me] // will probably be handled as a phrase. vector<string> phrases; TextSplit::stringToStrings(iq, phrases); // Process each element: textsplit into terms, handle stem/wildcard // expansion and transform into an appropriate Xapian::Query try { for (vector<string>::iterator it = phrases.begin(); it != phrases.end(); it++) { LOGDEB0(("strToXapianQ: phrase/word: [%s]\n", it->c_str())); // Anchoring modifiers int amods = stringToMods(*it); int terminc = amods != 0 ? 1 : 0; mods |= amods; // If there are multiple spans in this element, including // at least one composite, we have to increase the slack // else a phrase query including a span would fail. // Ex: "term0@term1 term2" is onlyspans-split as: // 0 term0@term1 0 12 // 2 term2 13 18 // The position of term2 is 2, not 1, so a phrase search // would fail. // We used to do word split, searching for // "term0 term1 term2" instead, which may have worse // performance, but will succeed. // We now adjust the phrase/near slack by comparing the term count // and the last position // The term processing pipeline: // split -> [unac/case ->] stops -> store terms TermProcQ tpq; TermProc *nxt = &tpq; TermProcStop tpstop(nxt, stops); nxt = &tpstop; //TermProcCommongrams tpcommon(nxt, stops); nxt = &tpcommon; //tpcommon.onlygrams(true); TermProcPrep tpprep(nxt); if (o_index_stripchars) nxt = &tpprep; TextSplitQ splitter(TextSplit::Flags(TextSplit::TXTS_ONLYSPANS | TextSplit::TXTS_KEEPWILD), nxt); tpq.setTSQ(&splitter); splitter.text_to_words(*it); slack += tpq.lastpos() - tpq.terms().size() + 1; LOGDEB0(("strToXapianQ: termcount: %d\n", tpq.terms().size())); switch (tpq.terms().size() + terminc) { case 0: continue;// ?? case 1: { int lmods = mods; if (tpq.nostemexps().front()) lmods |= SearchDataClause::SDCM_NOSTEMMING; m_hldata.ugroups.push_back(tpq.terms()); processSimpleSpan(db, ermsg, tpq.terms().front(), lmods, &pqueries); } break; default: m_hldata.ugroups.push_back(tpq.terms()); processPhraseOrNear(db, ermsg, &tpq, mods, &pqueries, useNear, slack); } if (m_curcl >= getMaxCl()) { ermsg = maxXapClauseMsg; if (!o_index_stripchars) ermsg += maxXapClauseCaseDiacMsg; break; } } } catch (const Xapian::Error &e) { ermsg = e.get_msg(); } catch (const string &s) { ermsg = s; } catch (const char *s) { ermsg = s; } catch (...) { ermsg = "Caught unknown exception"; } if (!ermsg.empty()) { LOGERR(("stringToXapianQueries: %s\n", ermsg.c_str())); return false; } return true; } // Translate a simple OR or AND search clause. bool SearchDataClauseSimple::toNativeQuery(Rcl::Db &db, void *p) { LOGDEB(("SearchDataClauseSimple::toNativeQuery: fld [%s] val [%s] " "stemlang [%s]\n", m_field.c_str(), m_text.c_str(), getStemLang().c_str())); Xapian::Query *qp = (Xapian::Query *)p; *qp = Xapian::Query(); Xapian::Query::op op; switch (m_tp) { case SCLT_AND: op = Xapian::Query::OP_AND; break; case SCLT_OR: op = Xapian::Query::OP_OR; break; default: LOGERR(("SearchDataClauseSimple: bad m_tp %d\n", m_tp)); m_reason = "Internal error"; return false; } vector<Xapian::Query> pqueries; if (!processUserString(db, m_text, m_reason, &pqueries)) return false; if (pqueries.empty()) { LOGERR(("SearchDataClauseSimple: resolved to null query\n")); m_reason = string("Resolved to null query. Term too long ? : [" + m_text + string("]")); return false; } *qp = Xapian::Query(op, pqueries.begin(), pqueries.end()); if (m_weight != 1.0) { *qp = Xapian::Query(Xapian::Query::OP_SCALE_WEIGHT, *qp, m_weight); } return true; } // Translate a FILENAME search clause. This always comes // from a "filename" search from the gui or recollq. A query language // "filename:"-prefixed field will not go through here, but through // the generic field-processing code. // // We do not split the entry any more (used to do some crazy thing // about expanding multiple fragments in the past). We just take the // value blanks and all and expand this against the indexed unsplit // file names bool SearchDataClauseFilename::toNativeQuery(Rcl::Db &db, void *p) { Xapian::Query *qp = (Xapian::Query *)p; *qp = Xapian::Query(); int maxexp = getSoftMaxExp(); if (maxexp == -1) maxexp = getMaxExp(); vector<string> names; db.filenameWildExp(m_text, names, maxexp); *qp = Xapian::Query(Xapian::Query::OP_OR, names.begin(), names.end()); if (m_weight != 1.0) { *qp = Xapian::Query(Xapian::Query::OP_SCALE_WEIGHT, *qp, m_weight); } return true; } // Translate a dir: path filtering clause. See comments in .h bool SearchDataClausePath::toNativeQuery(Rcl::Db &db, void *p) { LOGDEB(("SearchDataClausePath::toNativeQuery: [%s]\n", m_text.c_str())); Xapian::Query *qp = (Xapian::Query *)p; *qp = Xapian::Query(); if (m_text.empty()) { LOGERR(("SearchDataClausePath: empty path??\n")); m_reason = "Empty path ?"; return false; } vector<Xapian::Query> orqueries; if (m_text[0] == '/') orqueries.push_back(Xapian::Query(wrap_prefix(pathelt_prefix))); else m_text = path_tildexpand(m_text); vector<string> vpath; stringToTokens(m_text, vpath, "/"); for (vector<string>::const_iterator pit = vpath.begin(); pit != vpath.end(); pit++){ string sterm; vector<string> exp; if (!expandTerm(db, m_reason, SDCM_NOSTEMMING|SDCM_CASESENS|SDCM_DIACSENS, *pit, exp, sterm, wrap_prefix(pathelt_prefix))) { return false; } LOGDEB0(("SDataPath::toNative: exp size %d\n", exp.size())); listVector("", exp); if (exp.size() == 1) orqueries.push_back(Xapian::Query(exp[0])); else orqueries.push_back(Xapian::Query(Xapian::Query::OP_OR, exp.begin(), exp.end())); m_curcl += exp.size(); if (m_curcl >= getMaxCl()) return false; } *qp = Xapian::Query(Xapian::Query::OP_PHRASE, orqueries.begin(), orqueries.end()); if (m_weight != 1.0) { *qp = Xapian::Query(Xapian::Query::OP_SCALE_WEIGHT, *qp, m_weight); } return true; } // Translate NEAR or PHRASE clause. bool SearchDataClauseDist::toNativeQuery(Rcl::Db &db, void *p) { LOGDEB(("SearchDataClauseDist::toNativeQuery\n")); Xapian::Query *qp = (Xapian::Query *)p; *qp = Xapian::Query(); vector<Xapian::Query> pqueries; // We produce a single phrase out of the user entry then use // stringToXapianQueries() to lowercase and simplify the phrase // terms etc. This will result into a single (complex) // Xapian::Query. if (m_text.find('\"') != string::npos) { m_text = neutchars(m_text, "\""); } string s = cstr_dquote + m_text + cstr_dquote; bool useNear = (m_tp == SCLT_NEAR); if (!processUserString(db, s, m_reason, &pqueries, m_slack, useNear)) return false; if (pqueries.empty()) { LOGERR(("SearchDataClauseDist: resolved to null query\n")); m_reason = string("Resolved to null query. Term too long ? : [" + m_text + string("]")); return false; } *qp = *pqueries.begin(); if (m_weight != 1.0) { *qp = Xapian::Query(Xapian::Query::OP_SCALE_WEIGHT, *qp, m_weight); } return true; } } // Namespace Rcl �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/daterange.h���������������������������������������������������������������������0000644�0001750�0001750�00000000356�12602163540�015556� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef _DATERANGE_H_INCLUDED_ #define _DATERANGE_H_INCLUDED_ #include <xapian.h> namespace Rcl { extern Xapian::Query date_range_filter(int y1, int m1, int d1, int y2, int m2, int d2); } #endif /* _DATERANGE_H_INCLUDED_ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rcldb.h�������������������������������������������������������������������������0000644�0001750�0001750�00000046045�12602163572�014724� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DB_H_INCLUDED_ #define _DB_H_INCLUDED_ #include "autoconfig.h" #include <string> #include <vector> #include "cstr.h" #include "refcntr.h" #include "rcldoc.h" #include "stoplist.h" #include "rclconfig.h" #include "utf8iter.h" #include "textsplit.h" using std::string; using std::vector; // rcldb defines an interface for a 'real' text database. The current // implementation uses xapian only, and xapian-related code is in rcldb.cpp // If support was added for other backend, the xapian code would be moved in // rclxapian.cpp, another file would be created for the new backend, and the // configuration/compile/link code would be adjusted to allow choosing. There // is no plan for supporting multiple different backends. // // In no case does this try to implement a useful virtualized text-db interface // The main goal is simplicity and good matching to usage inside the recoll // user interface. In other words, this is not exhaustive or well-designed or // reusable. // // Unique Document Identifier: uniquely identifies a document in its // source storage (file system or other). Used for up to date checks // etc. "udi". Our user is responsible for making sure it's not too // big, cause it's stored as a Xapian term (< 150 bytes would be // reasonable) class RclConfig; namespace Rcl { // Omega compatible values. We leave a hole for future omega values. Not sure // it makes any sense to keep any level of omega compat given that the index // is incompatible anyway. enum value_slot { // Omega-compatible values: VALUE_LASTMOD = 0, // 4 byte big endian value - seconds since 1970. VALUE_MD5 = 1, // 16 byte MD5 checksum of original document. VALUE_SIZE = 2, // sortable_serialise(<file size in bytes>) // Recoll only: VALUE_SIG = 10 // Doc sig as chosen by app (ex: mtime+size }; class SearchData; class TermIter; class Query; /** Used for returning result lists for index terms matching some criteria */ class TermMatchEntry { public: TermMatchEntry() : wcf(0) { } TermMatchEntry(const string& t, int f, int d) : term(t), wcf(f), docs(d) { } TermMatchEntry(const string& t) : term(t), wcf(0) { } bool operator==(const TermMatchEntry &o) const { return term == o.term; } bool operator<(const TermMatchEntry &o) const { return term < o.term; } string term; int wcf; // Total count of occurrences within collection. int docs; // Number of documents countaining term. }; /** Term match result list header: statistics and global info */ class TermMatchResult { public: TermMatchResult() { clear(); } void clear() { entries.clear(); } // Term expansion vector<TermMatchEntry> entries; // If a field was specified, this is the corresponding index prefix string prefix; }; class DbStats { public: DbStats() :dbdoccount(0), dbavgdoclen(0), mindoclen(0), maxdoclen(0) { } // Index-wide stats unsigned int dbdoccount; double dbavgdoclen; size_t mindoclen; size_t maxdoclen; }; inline bool has_prefix(const string& trm) { if (o_index_stripchars) { return !trm.empty() && 'A' <= trm[0] && trm[0] <= 'Z'; } else { return !trm.empty() && trm[0] == ':'; } } inline string strip_prefix(const string& trm) { if (trm.empty()) return trm; string::size_type st = 0; if (o_index_stripchars) { st = trm.find_first_not_of("ABCDEFIJKLMNOPQRSTUVWXYZ"); if (st == string::npos) return string(); } else { if (has_prefix(trm)) { st = trm.find_last_of(":") + 1; } else { return trm; } } return trm.substr(st); } inline string wrap_prefix(const string& pfx) { if (o_index_stripchars) { return pfx; } else { return cstr_colon + pfx + cstr_colon; } } /** * Wrapper class for the native database. */ class Db { public: // A place for things we don't want visible here. class Native; friend class Native; /* General stuff (valid for query or update) ****************************/ Db(const RclConfig *cfp); ~Db(); enum OpenMode {DbRO, DbUpd, DbTrunc}; enum OpenError {DbOpenNoError, DbOpenMainDb, DbOpenExtraDb}; bool open(OpenMode mode, OpenError *error = 0); bool close(); bool isopen(); /** Get explanation about last error */ string getReason() const {return m_reason;} /** Return all possible stemmer names */ static vector<string> getStemmerNames(); /** Return existing stemming databases */ vector<string> getStemLangs(); /** Test word for spelling correction candidate: not too long, no special chars... */ static bool isSpellingCandidate(const string& term) { if (term.empty() || term.length() > 50) return false; if (has_prefix(term)) return false; Utf8Iter u8i(term); if (TextSplit::isCJK(*u8i)) return false; if (term.find_first_of(" !\"#$%&()*+,-./0123456789:;<=>?@[\\]^_`{|}~") != string::npos) return false; return true; } #ifdef TESTING_XAPIAN_SPELL /** Return spelling suggestion */ string getSpellingSuggestion(const string& word); #endif /* The next two, only for searchdata, should be somehow hidden */ /* Return configured stop words */ const StopList& getStopList() const {return m_stops;} /* Field name to prefix translation (ie: author -> 'A') */ bool fieldToTraits(const string& fldname, const FieldTraits **ftpp, bool isquery = false); /* Update-related methods ******************************************/ /** Test if the db entry for the given udi is up to date. * * This is done by comparing the input and stored sigs. This is * used both when indexing and querying (before opening a document * using stale info). * * **This assumes that the udi pertains to the main index (idxi==0).** * * Side-effect when the db is writeable and the document up to * date: set the existence flag for the file document and all * subdocs if any (for later use by 'purge()') * * @param udi Unique Document Identifier (as chosen by indexer). * @param sig New signature (as computed by indexer). * @param xdocid[output] Non-zero if doc existed. Should be considered * as opaque, to be used for a possible later call to setExistingFlags() * Note that if inplaceReset is set, the return value is non-zero but not * an actual docid, it's only used as a flag in this case. * @param osig[output] old signature. */ bool needUpdate(const string &udi, const string& sig, unsigned int *xdocid = 0, std::string *osig = 0); /** Set the existance flags for the document and its eventual subdocuments * * This can be called by the indexer after needUpdate() has returned true, * if the indexer does not wish to actually re-index (e.g.: the doc is * known to cause errors). */ void setExistingFlags(const string& udi, unsigned int docid); /** Indicate if we are doing a systematic reindex. This complements needUpdate() return */ bool inFullReset() {return o_inPlaceReset || m_mode == DbTrunc;} /** Add or update document identified by unique identifier. * @param config Config object to use. Can be the same as the member config * or a clone, to avoid sharing when called in multithread context. * @param udi the Unique Document Identifier is opaque to us. * Maximum size 150 bytes. * @param parent_udi the UDI for the container document. In case of complex * embedding, this is not always the immediate parent but the UDI for * the container file (which may be a farther ancestor). It is * used for purging subdocuments when a file ceases to exist and * to set the existence flags of all subdocuments of a container * that is found to be up to date. In other words, the * parent_udi is the UDI for the ancestor of the document which * is subject to needUpdate() and physical existence tests (some * kind of file equivalent). Empty for top-level docs. Should * probably be renamed container_udi. * @param doc container for document data. Should have been filled as * much as possible depending on the document type. * ** doc will be modified in a destructive way ** */ bool addOrUpdate(const string &udi, const string &parent_udi, Doc &doc); #ifdef IDX_THREADS void waitUpdIdle(); #endif /** Delete document(s) for given UDI, including subdocs */ bool purgeFile(const string &udi, bool *existed = 0); /** Delete subdocs with an out of date sig. We do this to purge obsolete subdocs during a partial update where no general purge will be done */ bool purgeOrphans(const string &udi); /** Remove documents that no longer exist in the file system. This * depends on the update map, which is built during * indexing (needUpdate() / addOrUpdate()). * * This should only be called after a full walk of * the file system, else the update map will not be complete, and * many documents will be deleted that shouldn't, which is why this * has to be called externally, rcldb can't know if the indexing * pass was complete or partial. */ bool purge(); /** Create stem expansion database for given languages. */ bool createStemDbs(const std::vector<std::string> &langs); /** Delete stem expansion database for given language. */ bool deleteStemDb(const string &lang); /* Query-related methods ************************************/ /** Return total docs in db */ int docCnt(); /** Return count of docs which have an occurrence of term */ int termDocCnt(const string& term); /** Add extra Xapian database for querying. * @param dir must point to something which can be passed as parameter * to a Xapian::Database constructor (directory or stub). */ bool addQueryDb(const string &dir); /** Remove extra database. if dir == "", remove all. */ bool rmQueryDb(const string &dir); /** Look where the doc result comes from. * @param doc must come from a db query so that "opaque" xdocid is set. * @return: 0 main index, (size_t)-1 don't know, * other: order of database in add_database() sequence. */ size_t whatDbIdx(const Doc& doc); /** Tell if directory seems to hold xapian db */ static bool testDbDir(const string &dir, bool *stripped = 0); /** Return the index terms that match the input string * Expansion is performed either with either wildcard or regexp processing * Stem expansion is performed if lang is not empty * * @param typ_sens defines the kind of expansion: none, wildcard, * regexp or stemming. "none" will still expand case and * diacritics depending on the casesens and diacsens flags. * @param lang sets the stemming language(s). Can be a space-separated list * @param term is the term to expand * @param result is the main output * @param max defines the maximum result count * @param field if set, defines the field within with the expansion should * be performed. Only used for wildcards and regexps, stemming is * always global. If this is set, the resulting output terms * will be appropriately prefixed and the prefix value will be set * in the TermMatchResult header */ enum MatchType {ET_NONE=0, ET_WILD=1, ET_REGEXP=2, ET_STEM=3, ET_DIACSENS=8, ET_CASESENS=16}; int matchTypeTp(int tp) { return tp & 7; } bool termMatch(int typ_sens, const string &lang, const string &term, TermMatchResult& result, int max = -1, const string& field = cstr_null); bool dbStats(DbStats& stats); /** Return min and max years for doc mod times in db */ bool maxYearSpan(int *minyear, int *maxyear); /** Return all mime types in index. This can be different from the ones defined in the config because of 'file' command usage. Inserts the types at the end of the parameter */ bool getAllDbMimeTypes(std::vector<std::string>&); /** Wildcard expansion specific to file names. Internal/sdata use only */ bool filenameWildExp(const string& exp, vector<string>& names, int max); /** Set parameters for synthetic abstract generation */ void setAbstractParams(int idxTrunc, int synthLen, int syntCtxLen); int getAbsCtxLen() const { return m_synthAbsWordCtxLen; } int getAbsLen() const { return m_synthAbsLen; } /** Get document for given udi * * Used by the 'history' feature, and to retrieve ancestor documents. * @param udi The unique document identifier. * @param idxdoc A document from the same database as an opaque way to pass * the database id (e.g.: when looking for parent in a multi-database * context). * @param[out] doc The output Recoll document. * @return True for success. */ bool getDoc(const string &udi, const Doc& idxdoc, Doc &doc); /** Test if documents has sub-documents. * * This can always be detected for file-level documents, using the * postlist for the parent term constructed with udi. * * For non file-level documents (e.g.: does an email inside an * mbox have attachments ?), detection is dependant on the filter * having set an appropriate flag at index time. Higher level code * can't detect it because the doc for the parent may have been * seen before any children. The flag is stored as a value in the * index. */ bool hasSubDocs(const Doc &idoc); /** Get subdocuments of given document. * * For file-level documents, these are all docs indexed by the * parent term built on idoc.udi. For embedded documents, the * parent doc is looked for, then its subdocs list is * filtered using the idoc ipath as a prefix. */ bool getSubDocs(const Doc& idoc, vector<Doc>& subdocs); /** Get duplicates (md5) of document */ bool docDups(const Doc& idoc, std::vector<Doc>& odocs); /* The following are mainly for the aspell module */ /** Whole term list walking. */ TermIter *termWalkOpen(); bool termWalkNext(TermIter *, string &term); void termWalkClose(TermIter *); /** Test term existence */ bool termExists(const string& term); /** Test if terms stem to different roots. */ bool stemDiffers(const string& lang, const string& term, const string& base); const RclConfig *getConf() {return m_config;} /** Activate the "in place reset" mode where all documents are considered as needing update. This is a global/per-process option, and can't be reset. It should be set at the start of the indexing pass. 2012-10: no idea why this is done this way... */ static void setInPlaceReset() {o_inPlaceReset = true;} /** Flush interval get/set. This is used by the first indexing pass to override the config value and flush more rapidly initially so that the user can quickly play with queries */ int getFlushMb() { return m_flushMb; } void setFlushMb(int mb) { m_flushMb = mb; } bool doFlush(); /* This has to be public for access by embedded Query::Native */ Native *m_ndb; private: const RclConfig *m_config; string m_reason; // Error explanation // Xapian directories for additional databases to query vector<string> m_extraDbs; OpenMode m_mode; // File existence vector: this is filled during the indexing pass. Any // document whose bit is not set at the end is purged vector<bool> updated; // Text bytes indexed since beginning long long m_curtxtsz; // Text bytes at last flush long long m_flushtxtsz; // Text bytes at last fsoccup check long long m_occtxtsz; // First fs occup check ? int m_occFirstCheck; /*************** * Parameters cached out of the configuration files. Logically const * after init */ // Stop terms: those don't get indexed. StopList m_stops; // Truncation length for stored meta fields int m_idxMetaStoredLen; // This is how long an abstract we keep or build from beginning of // text when indexing. It only has an influence on the size of the // db as we are free to shorten it again when displaying int m_idxAbsTruncLen; // This is the size of the abstract that we synthetize out of query // term contexts at *query time* int m_synthAbsLen; // This is how many words (context size) we keep around query terms // when building the abstract int m_synthAbsWordCtxLen; // Flush threshold. Megabytes of text indexed before we flush. int m_flushMb; // Maximum file system occupation percentage int m_maxFsOccupPc; // Database directory string m_basedir; // When this is set, all documents are considered as needing a reindex. // This implements an alternative to just erasing the index before // beginning, with the advantage that, for small index formats updates, // between releases the index remains available while being recreated. static bool o_inPlaceReset; /******* End logical constnesss */ #ifdef IDX_THREADS friend void *DbUpdWorker(void*); #endif // IDX_THREADS // Internal form of setExistingFlags: no locking void i_setExistingFlags(const string& udi, unsigned int docid); // Internal form of close, can be called during destruction bool i_close(bool final); // Reinitialize when adding/removing additional dbs bool adjustdbs(); bool idxTermMatch(int typ_sens, const string &lang, const string &term, TermMatchResult& result, int max = -1, const string& field = cstr_null); // Flush when idxflushmb is reached bool maybeflush(off_t moretext); bool docExists(const string& uniterm); /* Copyconst and assignement private and forbidden */ Db(const Db &) {} Db& operator=(const Db &) {return *this;}; }; // This has to go somewhere, and as it needs the Xapian version, this is // the most reasonable place. string version_string(); extern const string pathelt_prefix; extern const string udi_prefix; extern const string parent_prefix; extern const string mimetype_prefix; extern const string unsplitFilenameFieldName; extern string start_of_field_term; extern string end_of_field_term; } #endif /* _DB_H_INCLUDED_ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rcldb_p.h�����������������������������������������������������������������������0000644�0001750�0001750�00000014650�12602163572�015240� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _rcldb_p_h_included_ #define _rcldb_p_h_included_ #include "autoconfig.h" #include <map> #include <xapian.h> #ifdef IDX_THREADS #include "workqueue.h" #endif // IDX_THREADS #include "debuglog.h" #include "xmacros.h" #include "ptmutex.h" namespace Rcl { class Query; #ifdef IDX_THREADS // Task for the index update thread. This can be // - add/update for a new / update documment // - delete for a deleted document // - purgeOrphans when a multidoc file is updated during a partial pass (no // general purge). We want to remove subDocs that possibly don't // exist anymore. We find them by their different sig // txtlen and doc are only valid for add/update else, len is (size_t)-1 and doc // is empty class DbUpdTask { public: enum Op {AddOrUpdate, Delete, PurgeOrphans}; // Note that udi and uniterm are strictly equivalent and are // passed both just to avoid recomputing uniterm which is // available on the caller site. // Take some care to avoid sharing string data (if string impl is cow) DbUpdTask(Op _op, const string& ud, const string& un, Xapian::Document *d, size_t tl) : op(_op), udi(ud.begin(), ud.end()), uniterm(un.begin(), un.end()), doc(d), txtlen(tl) {} // Udi and uniterm equivalently designate the doc Op op; string udi; string uniterm; Xapian::Document *doc; // txtlen is used to update the flush interval. It's -1 for a // purge because we actually don't know it, and the code fakes a // text length based on the term count. size_t txtlen; }; #endif // IDX_THREADS class TextSplitDb; // A class for data and methods that would have to expose // Xapian-specific stuff if they were in Rcl::Db. There could actually be // 2 different ones for indexing or query as there is not much in // common. class Db::Native { public: Db *m_rcldb; // Parent bool m_isopen; bool m_iswritable; bool m_noversionwrite; //Set if open failed because of version mismatch! #ifdef IDX_THREADS WorkQueue<DbUpdTask*> m_wqueue; int m_loglevel; PTMutexInit m_mutex; long long m_totalworkns; bool m_havewriteq; void maybeStartThreads(); #endif // IDX_THREADS // Indexing Xapian::WritableDatabase xwdb; // Querying (active even if the wdb is too) Xapian::Database xrdb; Native(Db *db); ~Native(); #ifdef IDX_THREADS friend void *DbUpdWorker(void*); #endif // IDX_THREADS // Final steps of doc update, part which need to be single-threaded bool addOrUpdateWrite(const string& udi, const string& uniterm, Xapian::Document *doc, size_t txtlen); /** Delete all documents which are contained in the input document, * which must be a file-level one. * * @param onlyOrphans if true, only delete documents which have * not the same signature as the input. This is used to delete docs * which do not exist any more in the file after an update, for * example the tail messages after a folder truncation). If false, * delete all. * @param udi the parent document identifier. * @param uniterm equivalent to udi, passed just to avoid recomputing. */ bool purgeFileWrite(bool onlyOrphans, const string& udi, const string& uniterm); bool getPagePositions(Xapian::docid docid, vector<int>& vpos); int getPageNumberForPosition(const vector<int>& pbreaks, unsigned int pos); bool dbDataToRclDoc(Xapian::docid docid, std::string &data, Doc &doc); size_t whatDbIdx(Xapian::docid id); /** Retrieve Xapian::docid, given unique document identifier, * using the posting list for the derived term. * * @param udi the unique document identifier (opaque hashed path+ipath). * @param idxi the database index, at query time, when using external * databases. * @param[out] xdoc the xapian document. * @return 0 if not found */ Xapian::docid getDoc(const string& udi, int idxi, Xapian::Document& xdoc); /** Retrieve unique document identifier for given Xapian document, * using the document termlist */ bool xdocToUdi(Xapian::Document& xdoc, string &udi); /** Check if doc is indexed by term */ bool hasTerm(const string& udi, int idxi, const string& term); /** Update existing Xapian document for pure extended attrs change */ bool docToXdocXattrOnly(TextSplitDb *splitter, const string &udi, Doc &doc, Xapian::Document& xdoc); /** Remove all terms currently indexed for field defined by idx prefix */ bool clearField(Xapian::Document& xdoc, const string& pfx, Xapian::termcount wdfdec); /** Check if term wdf is 0 and remove term if so */ bool clearDocTermIfWdf0(Xapian::Document& xdoc, const string& term); /** Compute list of subdocuments for a given udi. We look for documents * indexed by a parent term matching the udi, the posting list for the * parentterm(udi) (As suggested by James Aylett) * * Note that this is not currently recursive: all subdocs are supposed * to be children of the file doc. * Ie: in a mail folder, all messages, attachments, attachments of * attached messages etc. must have the folder file document as * parent. * * Finer grain parent-child relationships are defined by the * indexer (rcldb user), using the ipath. * */ bool subDocs(const string &udi, int idxi, vector<Xapian::docid>& docids); /** Check if a page position list is defined */ bool hasPages(Xapian::docid id); }; // This is the word position offset at which we index the body text // (abstract, keywords, etc.. are stored before this) static const unsigned int baseTextPosition = 100000; } #endif /* _rcldb_p_h_included_ */ ����������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rclterms.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000036531�12602163572�016023� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ //////////////////////////////////////////////////////////////////// /** Things dealing with walking the terms lists and expansion dbs */ #include "autoconfig.h" #include <string> using namespace std; #include "debuglog.h" #include "rcldb.h" #include "rcldb_p.h" #include "stemdb.h" #include "expansiondbs.h" namespace Rcl { // File name wild card expansion. This is a specialisation ot termMatch bool Db::filenameWildExp(const string& fnexp, vector<string>& names, int max) { string pattern = fnexp; names.clear(); // If pattern is not capitalized, not quoted (quoted pattern can't // get here currently anyway), and has no wildcards, we add * at // each end: match any substring if (pattern[0] == '"' && pattern[pattern.size()-1] == '"') { pattern = pattern.substr(1, pattern.size() -2); } else if (pattern.find_first_of(cstr_minwilds) == string::npos && !unaciscapital(pattern)) { pattern = "*" + pattern + "*"; } // else let it be LOGDEB(("Rcl::Db::filenameWildExp: pattern: [%s]\n", pattern.c_str())); // We inconditionnally lowercase and strip the pattern, as is done // during indexing. This seems to be the only sane possible // approach with file names and wild cards. termMatch does // stripping conditionally on indexstripchars. string pat1; if (unacmaybefold(pattern, pat1, "UTF-8", UNACOP_UNACFOLD)) { pattern.swap(pat1); } TermMatchResult result; if (!idxTermMatch(ET_WILD, string(), pattern, result, max, unsplitFilenameFieldName)) return false; for (vector<TermMatchEntry>::const_iterator it = result.entries.begin(); it != result.entries.end(); it++) names.push_back(it->term); if (names.empty()) { // Build an impossible query: we know its impossible because we // control the prefixes! names.push_back(wrap_prefix("XNONE") + "NoMatchingTerms"); } return true; } // Walk the Y terms and return min/max bool Db::maxYearSpan(int *minyear, int *maxyear) { LOGDEB(("Rcl::Db:maxYearSpan\n")); *minyear = 1000000; *maxyear = -1000000; TermMatchResult result; if (!idxTermMatch(ET_WILD, string(), "*", result, -1, "xapyear")) { LOGINFO(("Rcl::Db:maxYearSpan: termMatch failed\n")); return false; } for (vector<TermMatchEntry>::const_iterator it = result.entries.begin(); it != result.entries.end(); it++) { if (!it->term.empty()) { int year = atoi(strip_prefix(it->term).c_str()); if (year < *minyear) *minyear = year; if (year > *maxyear) *maxyear = year; } } return true; } bool Db::getAllDbMimeTypes(std::vector<std::string>& exp) { Rcl::TermMatchResult res; if (!idxTermMatch(Rcl::Db::ET_WILD, "", "*", res, -1, "mtype")) { return false; } for (vector<Rcl::TermMatchEntry>::const_iterator rit = res.entries.begin(); rit != res.entries.end(); rit++) { exp.push_back(Rcl::strip_prefix(rit->term)); } return true; } class TermMatchCmpByWcf { public: int operator()(const TermMatchEntry& l, const TermMatchEntry& r) { return r.wcf - l.wcf < 0; } }; class TermMatchCmpByTerm { public: int operator()(const TermMatchEntry& l, const TermMatchEntry& r) { return l.term.compare(r.term) > 0; } }; class TermMatchTermEqual { public: int operator()(const TermMatchEntry& l, const TermMatchEntry& r) { return !l.term.compare(r.term); } }; /** Add prefix to all strings in list. * @param prefix already wrapped prefix */ static void addPrefix(vector<TermMatchEntry>& terms, const string& prefix) { if (prefix.empty()) return; for (vector<TermMatchEntry>::iterator it = terms.begin(); it != terms.end(); it++) it->term.insert(0, prefix); } static const char *tmtptostr(int typ) { switch (typ) { case Db::ET_WILD: return "wildcard"; case Db::ET_REGEXP: return "regexp"; case Db::ET_STEM: return "stem"; case Db::ET_NONE: default: return "none"; } } // Find all index terms that match an input along different expansion modes: // wildcard, regular expression, or stemming. Depending on flags we perform // case and/or diacritics expansion (this can be the only thing requested). // If the "field" parameter is set, we return a list of appropriately // prefixed terms (which are going to be used to build a Xapian // query). // This routine performs case/diacritics/stemming expansion against // the auxiliary tables, and possibly calls idxTermMatch() for work // using the main index terms (filtering, retrieving stats, expansion // in some cases). bool Db::termMatch(int typ_sens, const string &lang, const string &_term, TermMatchResult& res, int max, const string& field) { int matchtyp = matchTypeTp(typ_sens); if (!m_ndb || !m_ndb->m_isopen) return false; Xapian::Database xrdb = m_ndb->xrdb; bool diac_sensitive = (typ_sens & ET_DIACSENS) != 0; bool case_sensitive = (typ_sens & ET_CASESENS) != 0; LOGDEB0(("Db::TermMatch: typ %s diacsens %d casesens %d lang [%s] term [%s]" " max %d field [%s] stripped %d init res.size %u\n", tmtptostr(matchtyp), diac_sensitive, case_sensitive, lang.c_str(), _term.c_str(), max, field.c_str(), o_index_stripchars, res.entries.size())); // If index is stripped, no case or diac expansion can be needed: // for the processing inside this routine, everything looks like // we're all-sensitive: no use of expansion db. // Also, convert input to lowercase and strip its accents. string term = _term; if (o_index_stripchars) { diac_sensitive = case_sensitive = true; if (!unacmaybefold(_term, term, "UTF-8", UNACOP_UNACFOLD)) { LOGERR(("Db::termMatch: unac failed for [%s]\n", _term.c_str())); return false; } } // The case/diac expansion db SynTermTransUnac unacfoldtrans(UNACOP_UNACFOLD); XapComputableSynFamMember synac(xrdb, synFamDiCa, "all", &unacfoldtrans); if (matchtyp == ET_WILD || matchtyp == ET_REGEXP) { RefCntr<StrMatcher> matcher; if (matchtyp == ET_WILD) { matcher = RefCntr<StrMatcher>(new StrWildMatcher(term)); } else { matcher = RefCntr<StrMatcher>(new StrRegexpMatcher(term)); } if (!diac_sensitive || !case_sensitive) { // Perform case/diac expansion on the exp as appropriate and // expand the result. vector<string> exp; if (diac_sensitive) { // Expand for diacritics and case, filtering for same diacritics SynTermTransUnac foldtrans(UNACOP_FOLD); synac.synKeyExpand(matcher.getptr(), exp, &foldtrans); } else if (case_sensitive) { // Expand for diacritics and case, filtering for same case SynTermTransUnac unactrans(UNACOP_UNAC); synac.synKeyExpand(matcher.getptr(), exp, &unactrans); } else { // Expand for diacritics and case, no filtering synac.synKeyExpand(matcher.getptr(), exp); } // Retrieve additional info and filter against the index itself for (vector<string>::const_iterator it = exp.begin(); it != exp.end(); it++) { idxTermMatch(ET_NONE, "", *it, res, max, field); } // And also expand the original expression against the // main index: for the common case where the expression // had no case/diac expansion (no entry in the exp db if // the original term is lowercase and without accents). idxTermMatch(typ_sens, lang, term, res, max, field); } else { idxTermMatch(typ_sens, lang, term, res, max, field); } } else { // Expansion is STEM or NONE (which may still need case/diac exp) vector<string> lexp; if (diac_sensitive && case_sensitive) { // No case/diac expansion lexp.push_back(term); } else if (diac_sensitive) { // Expand for accents and case, filtering for same accents, SynTermTransUnac foldtrans(UNACOP_FOLD); synac.synExpand(term, lexp, &foldtrans); } else if (case_sensitive) { // Expand for accents and case, filtering for same case SynTermTransUnac unactrans(UNACOP_UNAC); synac.synExpand(term, lexp, &unactrans); } else { // We are neither accent- nor case- sensitive and may need stem // expansion or not. Expand for accents and case synac.synExpand(term, lexp); } if (matchTypeTp(typ_sens) == ET_STEM) { // Need stem expansion. Lowercase the result of accent and case // expansion for input to stemdb. for (unsigned int i = 0; i < lexp.size(); i++) { string lower; unacmaybefold(lexp[i], lower, "UTF-8", UNACOP_FOLD); lexp[i] = lower; } sort(lexp.begin(), lexp.end()); lexp.erase(unique(lexp.begin(), lexp.end()), lexp.end()); StemDb sdb(xrdb); vector<string> exp1; for (vector<string>::const_iterator it = lexp.begin(); it != lexp.end(); it++) { sdb.stemExpand(lang, *it, exp1); } LOGDEB(("ExpTerm: stem exp-> %s\n", stringsToString(exp1).c_str())); // Expand the resulting list for case (all stemdb content // is lowercase) lexp.clear(); for (vector<string>::const_iterator it = exp1.begin(); it != exp1.end(); it++) { synac.synExpand(*it, lexp); } sort(lexp.begin(), lexp.end()); lexp.erase(unique(lexp.begin(), lexp.end()), lexp.end()); } // Filter the result and get the stats, possibly add prefixes. LOGDEB(("ExpandTerm:TM: lexp: %s\n", stringsToString(lexp).c_str())); for (vector<string>::const_iterator it = lexp.begin(); it != lexp.end(); it++) { idxTermMatch(Rcl::Db::ET_WILD, "", *it, res, max, field); } } TermMatchCmpByTerm tcmp; sort(res.entries.begin(), res.entries.end(), tcmp); TermMatchTermEqual teq; vector<TermMatchEntry>::iterator uit = unique(res.entries.begin(), res.entries.end(), teq); res.entries.resize(uit - res.entries.begin()); TermMatchCmpByWcf wcmp; sort(res.entries.begin(), res.entries.end(), wcmp); if (max > 0) { // Would need a small max and big stem expansion... res.entries.resize(MIN(res.entries.size(), (unsigned int)max)); } return true; } // Second phase of wildcard/regexp term expansion after case/diac // expansion: expand against main index terms bool Db::idxTermMatch(int typ_sens, const string &lang, const string &root, TermMatchResult& res, int max, const string& field) { int typ = matchTypeTp(typ_sens); LOGDEB1(("Db::idxTermMatch: typ %s lang [%s] term [%s] " "max %d field [%s] init res.size %u\n", tmtptostr(typ), lang.c_str(), root.c_str(), max, field.c_str(), res.entries.size())); if (typ == ET_STEM) { LOGFATAL(("RCLDB: internal error: idxTermMatch called with ET_STEM\n")); abort(); } Xapian::Database xdb = m_ndb->xrdb; string prefix; if (!field.empty()) { const FieldTraits *ftp = 0; if (!fieldToTraits(field, &ftp, true) || ftp->pfx.empty()) { LOGDEB(("Db::termMatch: field is not indexed (no prefix): [%s]\n", field.c_str())); } else { prefix = wrap_prefix(ftp->pfx); } } res.prefix = prefix; RefCntr<StrMatcher> matcher; if (typ == ET_REGEXP) { matcher = RefCntr<StrMatcher>(new StrRegexpMatcher(root)); if (!matcher->ok()) { LOGERR(("termMatch: regcomp failed: %s\n", matcher->getreason().c_str())) return false; } } else if (typ == ET_WILD) { matcher = RefCntr<StrMatcher>(new StrWildMatcher(root)); } // Find the initial section before any special char string::size_type es = string::npos; if (matcher.isNotNull()) { es = matcher->baseprefixlen(); } // Initial section: the part of the prefix+expr before the // first wildcard character. We only scan the part of the // index where this matches string is; switch (es) { case string::npos: is = prefix + root; break; case 0: is = prefix; break; default: is = prefix + root.substr(0, es); break; } LOGDEB2(("termMatch: initsec: [%s]\n", is.c_str())); for (int tries = 0; tries < 2; tries++) { try { Xapian::TermIterator it = xdb.allterms_begin(); if (!is.empty()) it.skip_to(is.c_str()); for (int rcnt = 0; it != xdb.allterms_end(); it++) { // If we're beyond the terms matching the initial // section, end if (!is.empty() && (*it).find(is) != 0) break; // Else try to match the term. The matcher content // is without prefix, so we remove this if any. We // just checked that the index term did begin with // the prefix. string term; if (!prefix.empty()) { term = (*it).substr(prefix.length()); } else { if (has_prefix(*it)) { continue; } term = *it; } if (matcher.isNotNull() && !matcher->match(term)) continue; res.entries.push_back( TermMatchEntry(*it, xdb.get_collection_freq(*it), it.get_termfreq())); // The problem with truncating here is that this is done // alphabetically and we may not keep the most frequent // terms. OTOH, not doing it may stall the program if // we are walking the whole term list. We compromise // by cutting at 2*max if (max > 0 && ++rcnt >= 2*max) break; } m_reason.erase(); break; } catch (const Xapian::DatabaseModifiedError &e) { m_reason = e.get_msg(); xdb.reopen(); continue; } XCATCHERROR(m_reason); break; } if (!m_reason.empty()) { LOGERR(("termMatch: %s\n", m_reason.c_str())); return false; } return true; } /** Term list walking. */ class TermIter { public: Xapian::TermIterator it; Xapian::Database db; }; TermIter *Db::termWalkOpen() { if (!m_ndb || !m_ndb->m_isopen) return 0; TermIter *tit = new TermIter; if (tit) { tit->db = m_ndb->xrdb; XAPTRY(tit->it = tit->db.allterms_begin(), tit->db, m_reason); if (!m_reason.empty()) { LOGERR(("Db::termWalkOpen: xapian error: %s\n", m_reason.c_str())); return 0; } } return tit; } bool Db::termWalkNext(TermIter *tit, string &term) { XAPTRY( if (tit && tit->it != tit->db.allterms_end()) { term = *(tit->it)++; return true; } , tit->db, m_reason); if (!m_reason.empty()) { LOGERR(("Db::termWalkOpen: xapian error: %s\n", m_reason.c_str())); } return false; } void Db::termWalkClose(TermIter *tit) { try { delete tit; } catch (...) {} } bool Db::termExists(const string& word) { if (!m_ndb || !m_ndb->m_isopen) return 0; XAPTRY(if (!m_ndb->xrdb.term_exists(word)) return false, m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::termWalkOpen: xapian error: %s\n", m_reason.c_str())); return false; } return true; } bool Db::stemDiffers(const string& lang, const string& word, const string& base) { Xapian::Stem stemmer(lang); if (!stemmer(word).compare(stemmer(base))) { LOGDEB2(("Rcl::Db::stemDiffers: same for %s and %s\n", word.c_str(), base.c_str())); return false; } return true; } } // End namespace Rcl �����������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/stoplist.h����������������������������������������������������������������������0000644�0001750�0001750�00000003127�12602163540�015504� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _STOPLIST_H_INCLUDED_ #define _STOPLIST_H_INCLUDED_ #include <set> #include <string> #ifndef NO_NAMESPACES using std::set; using std::string; namespace Rcl { #endif /** * A StopList is just a bunch of strings read from a file. * * Some of the string may contain whitespace (that's for experimentation with * stop n-grams), so we take care of dquotes while reading the file. We also * lowercase and remove accents. The source file should be utf-8. */ class StopList { public: StopList() {} StopList(const string &filename) {setFile(filename);} virtual ~StopList() {} bool setFile(const string &filename); bool isStop(const string &term) const; bool hasStops() const {return !m_stops.empty();} private: set<string> m_stops; }; #ifndef NO_NAMESPACES } #endif #endif /* _STOPLIST_H_INCLUDED_ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/daterange.cpp�������������������������������������������������������������������0000644�0001750�0001750�00000006363�12602163572�016122� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* The dates-to-query routine is is lifted quasi-verbatim but * modified from xapian-omega:date.cc. Copyright info: * * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2001 James Aylett * Copyright 2001,2002 Ananova Ltd * Copyright 2002 Intercede 1749 Ltd * Copyright 2002,2003,2006 Olly Betts * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA */ #include "autoconfig.h" #include <stdio.h> #include <vector> using namespace std; #include "xapian.h" #include "debuglog.h" #include "rclconfig.h" namespace Rcl { static inline void bufprefix(char *buf, char c) { if (o_index_stripchars) { buf[0] = c; } else { buf[0] = ':'; buf[1] = c; buf[2] = ':'; } } static inline int bpoffs() { return o_index_stripchars ? 1 : 3; } Xapian::Query date_range_filter(int y1, int m1, int d1, int y2, int m2, int d2) { // Xapian uses a smallbuf and snprintf. Can't be bothered, we're // doing at most 3 %d's ! char buf[200]; vector<Xapian::Query> v; // Deal with days till the end of the first month if any bufprefix(buf, 'D'); sprintf(buf + bpoffs(), "%04d%02d", y1, m1); int d_last = monthdays(m1, y1); int d_end = d_last; if (y1 == y2 && m1 == m2 && d2 < d_last) { d_end = d2; } if (d1 > 1 || d_end < d_last) { for ( ; d1 <= d_end ; d1++) { sprintf(buf + 6 + bpoffs(), "%02d", d1); v.push_back(Xapian::Query(buf)); } } else { bufprefix(buf, 'M'); v.push_back(Xapian::Query(buf)); } if (y1 == y2 && m1 == m2) { return Xapian::Query(Xapian::Query::OP_OR, v.begin(), v.end()); } // Months till the end of first year int m_last = (y1 < y2) ? 12 : m2 - 1; bufprefix(buf, 'M'); while (++m1 <= m_last) { sprintf(buf + 4 + bpoffs(), "%02d", m1); v.push_back(Xapian::Query(buf)); } // Years inbetween and first months of the last year if (y1 < y2) { bufprefix(buf, 'Y'); while (++y1 < y2) { sprintf(buf + bpoffs(), "%04d", y1); v.push_back(Xapian::Query(buf)); } bufprefix(buf, 'M'); sprintf(buf + bpoffs(), "%04d", y2); for (m1 = 1; m1 < m2; m1++) { sprintf(buf + 4 + bpoffs(), "%02d", m1); v.push_back(Xapian::Query(buf)); } } // Last month sprintf(buf + 4 + bpoffs(), "%02d", m2); // Deal with any final partial month if (d2 < monthdays(m2, y2)) { bufprefix(buf, 'D'); for (d1 = 1 ; d1 <= d2; d1++) { sprintf(buf + 6 + bpoffs(), "%02d", d1); v.push_back(Xapian::Query(buf)); } } else { bufprefix(buf, 'M'); v.push_back(Xapian::Query(buf)); } return Xapian::Query(Xapian::Query::OP_OR, v.begin(), v.end()); } } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rcldb.cpp�����������������������������������������������������������������������0000644�0001750�0001750�00000205745�12616062474�015267� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <stdio.h> #include <cstring> #include <unistd.h> #include <math.h> #include <time.h> #include <string> #include <vector> #include <algorithm> #include <sstream> using namespace std; #include "xapian.h" #include "rclconfig.h" #include "debuglog.h" #include "rcldb.h" #include "rcldb_p.h" #include "stemdb.h" #include "textsplit.h" #include "transcode.h" #include "unacpp.h" #include "conftree.h" #include "pathut.h" #include "smallut.h" #include "utf8iter.h" #include "searchdata.h" #include "rclquery.h" #include "rclquery_p.h" #include "md5ut.h" #include "rclversion.h" #include "cancelcheck.h" #include "ptmutex.h" #include "termproc.h" #include "expansiondbs.h" #include "rclinit.h" #include "internfile.h" // Recoll index format version is stored in user metadata. When this change, // we can't open the db and will have to reindex. static const string cstr_RCL_IDX_VERSION_KEY("RCL_IDX_VERSION_KEY"); static const string cstr_RCL_IDX_VERSION("1"); static const string cstr_mbreaks("rclmbreaks"); namespace Rcl { // Some prefixes that we could get from the fields file, but are not going // to ever change. static const string fileext_prefix = "XE"; const string mimetype_prefix = "T"; static const string xapday_prefix = "D"; static const string xapmonth_prefix = "M"; static const string xapyear_prefix = "Y"; const string pathelt_prefix = "XP"; const string udi_prefix("Q"); const string parent_prefix("F"); // Special terms to mark begin/end of field (for anchored searches), and // page breaks string start_of_field_term; string end_of_field_term; const string page_break_term = "XXPG/"; // Special term to mark documents with children. const string has_children_term("XXC/"); // Field name for the unsplit file name. Has to exist in the field file // because of usage in termmatch() const string unsplitFilenameFieldName = "rclUnsplitFN"; static const string unsplitfilename_prefix = "XSFS"; // Empty string md5s static const string cstr_md5empty("d41d8cd98f00b204e9800998ecf8427e"); static const int MB = 1024 * 1024; string version_string(){ return string("Recoll ") + string(rclversionstr) + string(" + Xapian ") + string(Xapian::version_string()); } // Synthetic abstract marker (to discriminate from abstract actually // found in document) static const string cstr_syntAbs("?!#@"); // Compute the unique term used to link documents to their origin. // "Q" + external udi static inline string make_uniterm(const string& udi) { string uniterm(wrap_prefix(udi_prefix)); uniterm.append(udi); return uniterm; } // Compute parent term used to link documents to their parent document (if any) // "F" + parent external udi static inline string make_parentterm(const string& udi) { // I prefer to be in possible conflict with omega than with // user-defined fields (Xxxx) that we also allow. "F" is currently // not used by omega (2008-07) string pterm(wrap_prefix(parent_prefix)); pterm.append(udi); return pterm; } Db::Native::Native(Db *db) : m_rcldb(db), m_isopen(false), m_iswritable(false), m_noversionwrite(false) #ifdef IDX_THREADS , m_wqueue("DbUpd", m_rcldb->m_config->getThrConf(RclConfig::ThrDbWrite).first), m_loglevel(4), m_totalworkns(0LL), m_havewriteq(false) #endif // IDX_THREADS { LOGDEB1(("Native::Native: me %p\n", this)); } Db::Native::~Native() { LOGDEB1(("Native::~Native: me %p\n", this)); #ifdef IDX_THREADS if (m_havewriteq) { void *status = m_wqueue.setTerminateAndWait(); LOGDEB2(("Native::~Native: worker status %ld\n", long(status))); } #endif // IDX_THREADS } #ifdef IDX_THREADS void *DbUpdWorker(void* vdbp) { recoll_threadinit(); Db::Native *ndbp = (Db::Native *)vdbp; WorkQueue<DbUpdTask*> *tqp = &(ndbp->m_wqueue); DebugLog::getdbl()->setloglevel(ndbp->m_loglevel); DbUpdTask *tsk = 0; for (;;) { size_t qsz = -1; if (!tqp->take(&tsk, &qsz)) { tqp->workerExit(); return (void*)1; } bool status = false; switch (tsk->op) { case DbUpdTask::AddOrUpdate: LOGDEB(("DbUpdWorker: got add/update task, ql %d\n", int(qsz))); status = ndbp->addOrUpdateWrite(tsk->udi, tsk->uniterm, tsk->doc, tsk->txtlen); break; case DbUpdTask::Delete: LOGDEB(("DbUpdWorker: got delete task, ql %d\n", int(qsz))); status = ndbp->purgeFileWrite(false, tsk->udi, tsk->uniterm); break; case DbUpdTask::PurgeOrphans: LOGDEB(("DbUpdWorker: got orphans purge task, ql %d\n", int(qsz))); status = ndbp->purgeFileWrite(true, tsk->udi, tsk->uniterm); break; default: LOGERR(("DbUpdWorker: unknown op %d !!\n", tsk->op)); break; } if (!status) { LOGERR(("DbUpdWorker: xxWrite failed\n")); tqp->workerExit(); delete tsk; return (void*)0; } delete tsk; } } void Db::Native::maybeStartThreads() { m_loglevel = DebugLog::getdbl()->getlevel(); m_havewriteq = false; const RclConfig *cnf = m_rcldb->m_config; int writeqlen = cnf->getThrConf(RclConfig::ThrDbWrite).first; int writethreads = cnf->getThrConf(RclConfig::ThrDbWrite).second; if (writethreads > 1) { LOGINFO(("RclDb: write threads count was forced down to 1\n")); writethreads = 1; } if (writeqlen >= 0 && writethreads > 0) { if (!m_wqueue.start(writethreads, DbUpdWorker, this)) { LOGERR(("Db::Db: Worker start failed\n")); return; } m_havewriteq = true; } LOGDEB(("RclDb:: threads: haveWriteQ %d, wqlen %d wqts %d\n", m_havewriteq, writeqlen, writethreads)); } #endif // IDX_THREADS /* See comment in class declaration: return all subdocuments of a * document given by its unique id. */ bool Db::Native::subDocs(const string &udi, int idxi, vector<Xapian::docid>& docids) { LOGDEB2(("subDocs: [%s]\n", uniterm.c_str())); string pterm = make_parentterm(udi); vector<Xapian::docid> candidates; XAPTRY(docids.clear(); candidates.insert(candidates.begin(), xrdb.postlist_begin(pterm), xrdb.postlist_end(pterm)), xrdb, m_rcldb->m_reason); if (!m_rcldb->m_reason.empty()) { LOGERR(("Rcl::Db::subDocs: %s\n", m_rcldb->m_reason.c_str())); return false; } else { for (unsigned int i = 0; i < candidates.size(); i++) { if (whatDbIdx(candidates[i]) == (size_t)idxi) { docids.push_back(candidates[i]); } } LOGDEB0(("Db::Native::subDocs: returning %d ids\n", docids.size())); return true; } } bool Db::Native::xdocToUdi(Xapian::Document& xdoc, string &udi) { Xapian::TermIterator xit; XAPTRY(xit = xdoc.termlist_begin(); xit.skip_to(wrap_prefix(udi_prefix)), xrdb, m_rcldb->m_reason); if (!m_rcldb->m_reason.empty()) { LOGERR(("xdocToUdi: xapian error: %s\n", m_rcldb->m_reason.c_str())); return false; } if (xit != xdoc.termlist_end()) { udi = *xit; if (!udi.empty()) { udi = udi.substr(wrap_prefix(udi_prefix).size()); return true; } } return false; } // Clear term from document if its frequency is 0. This should // probably be done by Xapian when the freq goes to 0 when removing a // posting, but we have to do it ourselves bool Db::Native::clearDocTermIfWdf0(Xapian::Document& xdoc, const string& term) { LOGDEB1(("Db::clearDocTermIfWdf0: [%s]\n", term.c_str())); // Find the term Xapian::TermIterator xit; XAPTRY(xit = xdoc.termlist_begin(); xit.skip_to(term);, xrdb, m_rcldb->m_reason); if (!m_rcldb->m_reason.empty()) { LOGERR(("Db::clearDocTerm...: [%s] skip failed: %s\n", term.c_str(), m_rcldb->m_reason.c_str())); return false; } if (xit == xdoc.termlist_end() || term.compare(*xit)) { LOGDEB0(("Db::clearDocTermIFWdf0: term [%s] not found. xit: [%s]\n", term.c_str(), xit == xdoc.termlist_end() ? "EOL":(*xit).c_str())); return false; } // Clear the term if its frequency is 0 if (xit.get_wdf() == 0) { LOGDEB1(("Db::clearDocTermIfWdf0: clearing [%s]\n", term.c_str())); XAPTRY(xdoc.remove_term(term), xwdb, m_rcldb->m_reason); if (!m_rcldb->m_reason.empty()) { LOGDEB0(("Db::clearDocTermIfWdf0: failed [%s]: %s\n", term.c_str(), m_rcldb->m_reason.c_str())); } } return true; } // Holder for term + pos struct DocPosting { DocPosting(string t, Xapian::termpos ps) : term(t), pos(ps) {} string term; Xapian::termpos pos; }; // Clear all terms for given field for given document. // The terms to be cleared are all those with the appropriate // prefix. We also remove the postings for the unprefixed terms (that // is, we undo what we did when indexing). bool Db::Native::clearField(Xapian::Document& xdoc, const string& pfx, Xapian::termcount wdfdec) { LOGDEB1(("Db::clearField: clearing prefix [%s] for docid %u\n", pfx.c_str(), unsigned(xdoc.get_docid()))); vector<DocPosting> eraselist; string wrapd = wrap_prefix(pfx); m_rcldb->m_reason.clear(); for (int tries = 0; tries < 2; tries++) { try { Xapian::TermIterator xit; xit = xdoc.termlist_begin(); xit.skip_to(wrapd); while (xit != xdoc.termlist_end() && !(*xit).compare(0, wrapd.size(), wrapd)) { LOGDEB1(("Db::clearfield: erasing for [%s]\n", (*xit).c_str())); Xapian::PositionIterator posit; for (posit = xit.positionlist_begin(); posit != xit.positionlist_end(); posit++) { eraselist.push_back(DocPosting(*xit, *posit)); eraselist.push_back(DocPosting(strip_prefix(*xit), *posit)); } xit++; } } catch (const Xapian::DatabaseModifiedError &e) { m_rcldb->m_reason = e.get_msg(); xrdb.reopen(); continue; } XCATCHERROR(m_rcldb->m_reason); break; } if (!m_rcldb->m_reason.empty()) { LOGERR(("Db::clearField: failed building erase list: %s\n", m_rcldb->m_reason.c_str())); return false; } // Now remove the found positions, and the terms if the wdf is 0 for (vector<DocPosting>::const_iterator it = eraselist.begin(); it != eraselist.end(); it++) { LOGDEB1(("Db::clearField: remove posting: [%s] pos [%d]\n", it->term.c_str(), int(it->pos))); XAPTRY(xdoc.remove_posting(it->term, it->pos, wdfdec);, xwdb,m_rcldb->m_reason); if (!m_rcldb->m_reason.empty()) { // Not that this normally fails for non-prefixed XXST and // ND, don't make a fuss LOGDEB1(("Db::clearFiedl: remove_posting failed for [%s],%d: %s\n", it->term.c_str(),int(it->pos), m_rcldb->m_reason.c_str())); } clearDocTermIfWdf0(xdoc, it->term); } return true; } // Check if doc given by udi is indexed by term bool Db::Native::hasTerm(const string& udi, int idxi, const string& term) { LOGDEB2(("Native::hasTerm: udi [%s] term [%s]\n",udi.c_str(),term.c_str())); Xapian::Document xdoc; if (getDoc(udi, idxi, xdoc)) { Xapian::TermIterator xit; XAPTRY(xit = xdoc.termlist_begin(); xit.skip_to(term);, xrdb, m_rcldb->m_reason); if (!m_rcldb->m_reason.empty()) { LOGERR(("Rcl::Native::hasTerm: %s\n", m_rcldb->m_reason.c_str())); return false; } if (xit != xdoc.termlist_end() && !term.compare(*xit)) { return true; } } return false; } // Retrieve Xapian document, given udi. There may be several identical udis // if we are using multiple indexes. Xapian::docid Db::Native::getDoc(const string& udi, int idxi, Xapian::Document& xdoc) { string uniterm = make_uniterm(udi); for (int tries = 0; tries < 2; tries++) { try { Xapian::PostingIterator docid; for (docid = xrdb.postlist_begin(uniterm); docid != xrdb.postlist_end(uniterm); docid++) { xdoc = xrdb.get_document(*docid); if (whatDbIdx(*docid) == (size_t)idxi) return *docid; } // Udi not in Db. return 0; } catch (const Xapian::DatabaseModifiedError &e) { m_rcldb->m_reason = e.get_msg(); xrdb.reopen(); continue; } XCATCHERROR(m_rcldb->m_reason); break; } LOGERR(("Db::Native::getDoc: Xapian error: %s\n", m_rcldb->m_reason.c_str())); return 0; } // Turn data record from db into document fields bool Db::Native::dbDataToRclDoc(Xapian::docid docid, std::string &data, Doc &doc) { LOGDEB2(("Db::dbDataToRclDoc: data:\n%s\n", data.c_str())); ConfSimple parms(data); if (!parms.ok()) return false; doc.xdocid = docid; doc.haspages = hasPages(docid); // Compute what index this comes from, and check for path translations string dbdir = m_rcldb->m_basedir; doc.idxi = 0; if (!m_rcldb->m_extraDbs.empty()) { unsigned int idxi = whatDbIdx(docid); // idxi is in [0, extraDbs.size()]. 0 is for the main index, // idxi-1 indexes into the additional dbs array. if (idxi) { dbdir = m_rcldb->m_extraDbs[idxi - 1]; doc.idxi = idxi; } } parms.get(Doc::keyurl, doc.idxurl); doc.url = doc.idxurl; m_rcldb->m_config->urlrewrite(dbdir, doc.url); if (!doc.url.compare(doc.idxurl)) doc.idxurl.clear(); // Special cases: parms.get(Doc::keytp, doc.mimetype); parms.get(Doc::keyfmt, doc.fmtime); parms.get(Doc::keydmt, doc.dmtime); parms.get(Doc::keyoc, doc.origcharset); parms.get(cstr_caption, doc.meta[Doc::keytt]); parms.get(Doc::keyabs, doc.meta[Doc::keyabs]); // Possibly remove synthetic abstract indicator (if it's there, we // used to index the beginning of the text as abstract). doc.syntabs = false; if (doc.meta[Doc::keyabs].find(cstr_syntAbs) == 0) { doc.meta[Doc::keyabs] = doc.meta[Doc::keyabs].substr(cstr_syntAbs.length()); doc.syntabs = true; } parms.get(Doc::keyipt, doc.ipath); parms.get(Doc::keypcs, doc.pcbytes); parms.get(Doc::keyfs, doc.fbytes); parms.get(Doc::keyds, doc.dbytes); parms.get(Doc::keysig, doc.sig); // Normal key/value pairs: vector<string> keys = parms.getNames(string()); for (vector<string>::const_iterator it = keys.begin(); it != keys.end(); it++) { if (doc.meta.find(*it) == doc.meta.end()) parms.get(*it, doc.meta[*it]); } doc.meta[Doc::keyurl] = doc.url; doc.meta[Doc::keymt] = doc.dmtime.empty() ? doc.fmtime : doc.dmtime; return true; } bool Db::Native::hasPages(Xapian::docid docid) { string ermsg; Xapian::PositionIterator pos; XAPTRY(pos = xrdb.positionlist_begin(docid, page_break_term); if (pos != xrdb.positionlist_end(docid, page_break_term)) { return true; }, xrdb, ermsg); if (!ermsg.empty()) { LOGERR(("Db::Native::hasPages: xapian error: %s\n", ermsg.c_str())); } return false; } // Return the positions list for the page break term bool Db::Native::getPagePositions(Xapian::docid docid, vector<int>& vpos) { vpos.clear(); // Need to retrieve the document record to check for multiple page breaks // that we store there for lack of better place map<int, int> mbreaksmap; try { Xapian::Document xdoc = xrdb.get_document(docid); string data = xdoc.get_data(); Doc doc; string mbreaks; if (dbDataToRclDoc(docid, data, doc) && doc.getmeta(cstr_mbreaks, &mbreaks)) { vector<string> values; stringToTokens(mbreaks, values, ","); for (unsigned int i = 0; i < values.size() - 1; i += 2) { int pos = atoi(values[i].c_str()) + baseTextPosition; int incr = atoi(values[i+1].c_str()); mbreaksmap[pos] = incr; } } } catch (...) { } string qterm = page_break_term; Xapian::PositionIterator pos; try { for (pos = xrdb.positionlist_begin(docid, qterm); pos != xrdb.positionlist_end(docid, qterm); pos++) { int ipos = *pos; if (ipos < int(baseTextPosition)) { LOGDEB(("getPagePositions: got page position %d not in body\n", ipos)); // Not in text body. Strange... continue; } map<int, int>::iterator it = mbreaksmap.find(ipos); if (it != mbreaksmap.end()) { LOGDEB1(("getPagePositions: found multibreak at %d incr %d\n", ipos, it->second)); for (int i = 0 ; i < it->second; i++) vpos.push_back(ipos); } vpos.push_back(ipos); } } catch (...) { // Term does not occur. No problem. } return true; } int Db::Native::getPageNumberForPosition(const vector<int>& pbreaks, unsigned int pos) { if (pos < baseTextPosition) // Not in text body return -1; vector<int>::const_iterator it = upper_bound(pbreaks.begin(), pbreaks.end(), pos); return it - pbreaks.begin() + 1; } // Note: we're passed a Xapian::Document* because Xapian // reference-counting is not mt-safe. We take ownership and need // to delete it before returning. bool Db::Native::addOrUpdateWrite(const string& udi, const string& uniterm, Xapian::Document *newdocument_ptr, size_t textlen) { #ifdef IDX_THREADS Chrono chron; PTMutexLocker lock(m_mutex); #endif RefCntr<Xapian::Document> doc_cleaner(newdocument_ptr); // Check file system full every mbyte of indexed text. It's a bit wasteful // to do this after having prepared the document, but it needs to be in // the single-threaded section. if (m_rcldb->m_maxFsOccupPc > 0 && (m_rcldb->m_occFirstCheck || (m_rcldb->m_curtxtsz - m_rcldb->m_occtxtsz) / MB >= 1)) { LOGDEB(("Db::add: checking file system usage\n")); int pc; m_rcldb->m_occFirstCheck = 0; if (fsocc(m_rcldb->m_basedir, &pc) && pc >= m_rcldb->m_maxFsOccupPc) { LOGERR(("Db::add: stop indexing: file system " "%d%% full > max %d%%\n", pc, m_rcldb->m_maxFsOccupPc)); return false; } m_rcldb->m_occtxtsz = m_rcldb->m_curtxtsz; } const char *fnc = udi.c_str(); string ermsg; // Add db entry or update existing entry: try { Xapian::docid did = xwdb.replace_document(uniterm, *newdocument_ptr); if (did < m_rcldb->updated.size()) { // This is necessary because only the file-level docs are tested // by needUpdate(), so the subdocs existence flags are only set // here. m_rcldb->updated[did] = true; LOGINFO(("Db::add: docid %d updated [%s]\n", did, fnc)); } else { LOGINFO(("Db::add: docid %d added [%s]\n", did, fnc)); } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db::add: replace_document failed: %s\n", ermsg.c_str())); ermsg.erase(); // FIXME: is this ever actually needed? try { xwdb.add_document(*newdocument_ptr); LOGDEB(("Db::add: %s added (failed re-seek for duplicate)\n", fnc)); } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db::add: add_document failed: %s\n", ermsg.c_str())); return false; } } // Test if we're over the flush threshold (limit memory usage): bool ret = m_rcldb->maybeflush(textlen); #ifdef IDX_THREADS m_totalworkns += chron.nanos(); #endif return ret; } bool Db::Native::purgeFileWrite(bool orphansOnly, const string& udi, const string& uniterm) { #if defined(IDX_THREADS) // We need a mutex even if we have a write queue (so we can only // be called by a single thread) to protect about multiple acces // to xrdb from subDocs() which is also called from needupdate() // (called from outside the write thread ! PTMutexLocker lock(m_mutex); #endif // IDX_THREADS string ermsg; try { Xapian::PostingIterator docid = xwdb.postlist_begin(uniterm); if (docid == xwdb.postlist_end(uniterm)) { return true; } if (m_rcldb->m_flushMb > 0) { Xapian::termcount trms = xwdb.get_doclength(*docid); m_rcldb->maybeflush(trms * 5); } string sig; if (orphansOnly) { Xapian::Document doc = xwdb.get_document(*docid); sig = doc.get_value(VALUE_SIG); if (sig.empty()) { LOGINFO(("purgeFileWrite: got empty sig\n")); return false; } } else { LOGDEB(("purgeFile: delete docid %d\n", *docid)); xwdb.delete_document(*docid); } vector<Xapian::docid> docids; subDocs(udi, 0, docids); LOGDEB(("purgeFile: subdocs cnt %d\n", docids.size())); for (vector<Xapian::docid>::iterator it = docids.begin(); it != docids.end(); it++) { if (m_rcldb->m_flushMb > 0) { Xapian::termcount trms = xwdb.get_doclength(*it); m_rcldb->maybeflush(trms * 5); } string subdocsig; if (orphansOnly) { Xapian::Document doc = xwdb.get_document(*it); subdocsig = doc.get_value(VALUE_SIG); if (subdocsig.empty()) { LOGINFO(("purgeFileWrite: got empty sig for subdoc??\n")); continue; } } if (!orphansOnly || sig != subdocsig) { LOGDEB(("Db::purgeFile: delete subdoc %d\n", *it)); xwdb.delete_document(*it); } } return true; } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db::purgeFileWrite: %s\n", ermsg.c_str())); } return false; } /* Rcl::Db methods ///////////////////////////////// */ bool Db::o_inPlaceReset; Db::Db(const RclConfig *cfp) : m_ndb(0), m_mode(Db::DbRO), m_curtxtsz(0), m_flushtxtsz(0), m_occtxtsz(0), m_occFirstCheck(1), m_idxMetaStoredLen(150), m_idxAbsTruncLen(250), m_synthAbsLen(250), m_synthAbsWordCtxLen(4), m_flushMb(-1), m_maxFsOccupPc(0) { m_config = new RclConfig(*cfp); if (start_of_field_term.empty()) { if (o_index_stripchars) { start_of_field_term = "XXST"; end_of_field_term = "XXND"; } else { start_of_field_term = "XXST/"; end_of_field_term = "XXND/"; } } m_ndb = new Native(this); if (m_config) { m_config->getConfParam("maxfsoccuppc", &m_maxFsOccupPc); m_config->getConfParam("idxflushmb", &m_flushMb); m_config->getConfParam("idxmetastoredlen", &m_idxMetaStoredLen); } } Db::~Db() { LOGDEB2(("Db::~Db\n")); if (m_ndb == 0) return; LOGDEB(("Db::~Db: isopen %d m_iswritable %d\n", m_ndb->m_isopen, m_ndb->m_iswritable)); i_close(true); delete m_config; } vector<string> Db::getStemmerNames() { vector<string> res; stringToStrings(Xapian::Stem::get_available_languages(), res); return res; } bool Db::open(OpenMode mode, OpenError *error) { if (error) *error = DbOpenMainDb; if (m_ndb == 0 || m_config == 0) { m_reason = "Null configuration or Xapian Db"; return false; } LOGDEB(("Db::open: m_isopen %d m_iswritable %d mode %d\n", m_ndb->m_isopen, m_ndb->m_iswritable, mode)); if (m_ndb->m_isopen) { // We used to return an error here but I see no reason to if (!close()) return false; } if (!m_config->getStopfile().empty()) m_stops.setFile(m_config->getStopfile()); string dir = m_config->getDbDir(); string ermsg; try { switch (mode) { case DbUpd: case DbTrunc: { int action = (mode == DbUpd) ? Xapian::DB_CREATE_OR_OPEN : Xapian::DB_CREATE_OR_OVERWRITE; m_ndb->xwdb = Xapian::WritableDatabase(dir, action); // If db is empty, write the data format version at once // to avoid stupid error messages: if (m_ndb->xwdb.get_doccount() == 0) m_ndb->xwdb.set_metadata(cstr_RCL_IDX_VERSION_KEY, cstr_RCL_IDX_VERSION); m_ndb->m_iswritable = true; #ifdef IDX_THREADS m_ndb->maybeStartThreads(); #endif // We used to open a readonly object in addition to // the r/w one because some operations were faster // when performed through a Database: no forced // flushes on allterms_begin(), used in // subDocs(). This issue has been gone for a long time // (now: Xapian 1.2) and the separate objects seem to // trigger other Xapian issues, so the query db is now // a clone of the update one. m_ndb->xrdb = m_ndb->xwdb; LOGDEB(("Db::open: lastdocid: %d\n", m_ndb->xwdb.get_lastdocid())); LOGDEB2(("Db::open: resetting updated\n")); updated.resize(m_ndb->xwdb.get_lastdocid() + 1); for (unsigned int i = 0; i < updated.size(); i++) updated[i] = false; } break; case DbRO: default: m_ndb->m_iswritable = false; m_ndb->xrdb = Xapian::Database(dir); for (vector<string>::iterator it = m_extraDbs.begin(); it != m_extraDbs.end(); it++) { if (error) *error = DbOpenExtraDb; LOGDEB(("Db::Open: adding query db [%s]\n", it->c_str())); // An error here used to be non-fatal (1.13 and older) // but I can't see why m_ndb->xrdb.add_database(Xapian::Database(*it)); } break; } if (error) *error = DbOpenMainDb; // Check index format version. Must not try to check a just created or // truncated db if (mode != DbTrunc && m_ndb->xrdb.get_doccount() > 0) { string version = m_ndb->xrdb.get_metadata(cstr_RCL_IDX_VERSION_KEY); if (version.compare(cstr_RCL_IDX_VERSION)) { m_ndb->m_noversionwrite = true; LOGERR(("Rcl::Db::open: file index [%s], software [%s]\n", version.c_str(), cstr_RCL_IDX_VERSION.c_str())); throw Xapian::DatabaseError("Recoll index version mismatch", "", ""); } } m_mode = mode; m_ndb->m_isopen = true; m_basedir = dir; if (error) *error = DbOpenNoError; return true; } XCATCHERROR(ermsg); m_reason = ermsg; LOGERR(("Db::open: exception while opening [%s]: %s\n", dir.c_str(), ermsg.c_str())); return false; } // Note: xapian has no close call, we delete and recreate the db bool Db::close() { LOGDEB1(("Db::close()\n")); return i_close(false); } bool Db::i_close(bool final) { if (m_ndb == 0) return false; LOGDEB(("Db::i_close(%d): m_isopen %d m_iswritable %d\n", final, m_ndb->m_isopen, m_ndb->m_iswritable)); if (m_ndb->m_isopen == false && !final) return true; string ermsg; try { bool w = m_ndb->m_iswritable; if (w) { #ifdef IDX_THREADS waitUpdIdle(); #endif if (!m_ndb->m_noversionwrite) m_ndb->xwdb.set_metadata(cstr_RCL_IDX_VERSION_KEY, cstr_RCL_IDX_VERSION); LOGDEB(("Rcl::Db:close: xapian will close. May take some time\n")); } deleteZ(m_ndb); if (w) LOGDEB(("Rcl::Db:close() xapian close done.\n")); if (final) { return true; } m_ndb = new Native(this); if (m_ndb) { return true; } LOGERR(("Rcl::Db::close(): cant recreate db object\n")); return false; } XCATCHERROR(ermsg); LOGERR(("Db:close: exception while deleting db: %s\n", ermsg.c_str())); return false; } // Reopen the db with a changed list of additional dbs bool Db::adjustdbs() { if (m_mode != DbRO) { LOGERR(("Db::adjustdbs: mode not RO\n")); return false; } if (m_ndb && m_ndb->m_isopen) { if (!close()) return false; if (!open(m_mode)) { return false; } } return true; } int Db::docCnt() { int res = -1; if (!m_ndb || !m_ndb->m_isopen) return -1; XAPTRY(res = m_ndb->xrdb.get_doccount(), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::docCnt: got error: %s\n", m_reason.c_str())); return -1; } return res; } int Db::termDocCnt(const string& _term) { int res = -1; if (!m_ndb || !m_ndb->m_isopen) return -1; string term = _term; if (o_index_stripchars) if (!unacmaybefold(_term, term, "UTF-8", UNACOP_UNACFOLD)) { LOGINFO(("Db::termDocCnt: unac failed for [%s]\n", _term.c_str())); return 0; } if (m_stops.isStop(term)) { LOGDEB1(("Db::termDocCnt [%s] in stop list\n", term.c_str())); return 0; } XAPTRY(res = m_ndb->xrdb.get_termfreq(term), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::termDocCnt: got error: %s\n", m_reason.c_str())); return -1; } return res; } bool Db::addQueryDb(const string &_dir) { string dir = _dir; LOGDEB0(("Db::addQueryDb: ndb %p iswritable %d db [%s]\n", m_ndb, (m_ndb)?m_ndb->m_iswritable:0, dir.c_str())); if (!m_ndb) return false; if (m_ndb->m_iswritable) return false; dir = path_canon(dir); if (find(m_extraDbs.begin(), m_extraDbs.end(), dir) == m_extraDbs.end()) { m_extraDbs.push_back(dir); } return adjustdbs(); } bool Db::rmQueryDb(const string &dir) { if (!m_ndb) return false; if (m_ndb->m_iswritable) return false; if (dir.empty()) { m_extraDbs.clear(); } else { vector<string>::iterator it = find(m_extraDbs.begin(), m_extraDbs.end(), dir); if (it != m_extraDbs.end()) { m_extraDbs.erase(it); } } return adjustdbs(); } // Determining what index a doc result comes from is based on the // modulo of the docid against the db count. Ref: // http://trac.xapian.org/wiki/FAQ/MultiDatabaseDocumentID size_t Db::whatDbIdx(const Doc& doc) { return m_ndb->whatDbIdx(doc.xdocid); } size_t Db::Native::whatDbIdx(Xapian::docid id) { LOGDEB1(("Db::whatDbIdx: xdocid %lu, %u extraDbs\n", (unsigned long)id, m_extraDbs.size())); if (id == 0) return (size_t)-1; if (m_rcldb->m_extraDbs.size() == 0) return 0; return (id - 1) % (m_rcldb->m_extraDbs.size() + 1); } bool Db::testDbDir(const string &dir, bool *stripped_p) { string aerr; bool mstripped = true; LOGDEB(("Db::testDbDir: [%s]\n", dir.c_str())); try { Xapian::Database db(dir); // If we have terms with a leading ':' it's an // unstripped index Xapian::TermIterator term = db.allterms_begin(":"); if (term == db.allterms_end()) mstripped = true; else mstripped = false; } XCATCHERROR(aerr); if (!aerr.empty()) { LOGERR(("Db::Open: error while trying to open database " "from [%s]: %s\n", dir.c_str(), aerr.c_str())); return false; } if (stripped_p) *stripped_p = mstripped; return true; } bool Db::isopen() { if (m_ndb == 0) return false; return m_ndb->m_isopen; } // Try to translate field specification into field prefix. bool Db::fieldToTraits(const string& fld, const FieldTraits **ftpp, bool isquery) { if (m_config && m_config->getFieldTraits(fld, ftpp, isquery)) return true; *ftpp = 0; return false; } // The splitter breaks text into words and adds postings to the Xapian // document. We use a single object to split all of the document // fields and position jumps to separate fields class TextSplitDb : public TextSplitP { public: Xapian::Document &doc; // Xapian document // Base for document section. Gets large increment when we change // sections, to avoid cross-section proximity matches. Xapian::termpos basepos; // Current relative position. This is the remembered value from // the splitter callback. The term position is reset for each call // to text_to_words(), so that the last value of curpos is the // section size (last relative term position), and this is what // gets added to basepos in addition to the inter-section increment // to compute the first position of the next section. Xapian::termpos curpos; TextSplitDb(Xapian::Document &d, TermProc *prc) : TextSplitP(prc), doc(d), basepos(1), curpos(0) {} // Reimplement text_to_words to insert the begin and end anchor terms. virtual bool text_to_words(const string &in) { bool ret = false; string ermsg; try { // Index the possibly prefixed start term. doc.add_posting(ft.pfx + start_of_field_term, basepos, ft.wdfinc); ++basepos; } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db: xapian add_posting error %s\n", ermsg.c_str())); goto out; } if (!TextSplitP::text_to_words(in)) { LOGDEB(("TextSplitDb: TextSplit::text_to_words failed\n")); goto out; } try { // Index the possibly prefixed end term. doc.add_posting(ft.pfx + end_of_field_term, basepos + curpos + 1, ft.wdfinc); ++basepos; } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db: xapian add_posting error %s\n", ermsg.c_str())); goto out; } ret = true; out: basepos += curpos + 100; return true; } void setTraits(const FieldTraits& ftp) { ft = ftp; if (!ft.pfx.empty()) ft.pfx = wrap_prefix(ft.pfx); } friend class TermProcIdx; private: FieldTraits ft; }; class TermProcIdx : public TermProc { public: TermProcIdx() : TermProc(0), m_ts(0), m_lastpagepos(0), m_pageincr(0) {} void setTSD(TextSplitDb *ts) {m_ts = ts;} bool takeword(const std::string &term, int pos, int, int) { // Compute absolute position (pos is relative to current segment), // and remember relative. m_ts->curpos = pos; pos += m_ts->basepos; // Don't try to add empty term Xapian doesnt like it... Safety check // this should not happen. if (term.empty()) return true; string ermsg; try { // Index without prefix, using the field-specific weighting LOGDEB1(("Emitting term at %d : [%s]\n", pos, term.c_str())); if (!m_ts->ft.pfxonly) m_ts->doc.add_posting(term, pos, m_ts->ft.wdfinc); #ifdef TESTING_XAPIAN_SPELL if (Db::isSpellingCandidate(term)) { m_ts->db.add_spelling(term); } #endif // Index the prefixed term. if (!m_ts->ft.pfx.empty()) { m_ts->doc.add_posting(m_ts->ft.pfx + term, pos, m_ts->ft.wdfinc); } return true; } XCATCHERROR(ermsg); LOGERR(("Db: xapian add_posting error %s\n", ermsg.c_str())); return false; } void newpage(int pos) { pos += m_ts->basepos; if (pos < int(baseTextPosition)) { LOGDEB(("newpage: not in body\n", pos)); return; } m_ts->doc.add_posting(m_ts->ft.pfx + page_break_term, pos); if (pos == m_lastpagepos) { m_pageincr++; LOGDEB2(("newpage: same pos, pageincr %d lastpagepos %d\n", m_pageincr, m_lastpagepos)); } else { LOGDEB2(("newpage: pos change, pageincr %d lastpagepos %d\n", m_pageincr, m_lastpagepos)); if (m_pageincr > 0) { // Remember the multiple page break at this position unsigned int relpos = m_lastpagepos - baseTextPosition; LOGDEB2(("Remembering multiple page break. Relpos %u cnt %d\n", relpos, m_pageincr)); m_pageincrvec.push_back(pair<int, int>(relpos, m_pageincr)); } m_pageincr = 0; } m_lastpagepos = pos; } virtual bool flush() { if (m_pageincr > 0) { unsigned int relpos = m_lastpagepos - baseTextPosition; LOGDEB2(("Remembering multiple page break. Position %u cnt %d\n", relpos, m_pageincr)); m_pageincrvec.push_back(pair<int, int>(relpos, m_pageincr)); m_pageincr = 0; } return TermProc::flush(); } TextSplitDb *m_ts; // Auxiliary page breaks data for positions with multiple page breaks. int m_lastpagepos; // increment of page breaks at same pos. Normally 0, 1.. when several // breaks at the same pos int m_pageincr; vector <pair<int, int> > m_pageincrvec; }; #ifdef TESTING_XAPIAN_SPELL string Db::getSpellingSuggestion(const string& word) { if (m_ndb == 0) return string(); string term = word; if (o_index_stripchars) if (!unacmaybefold(word, term, "UTF-8", UNACOP_UNACFOLD)) { LOGINFO(("Db::getSpelling: unac failed for [%s]\n", word.c_str())); return string(); } if (!isSpellingCandidate(term)) return string(); return m_ndb->xrdb.get_spelling_suggestion(term); } #endif // Let our user set the parameters for abstract processing void Db::setAbstractParams(int idxtrunc, int syntlen, int syntctxlen) { LOGDEB1(("Db::setAbstractParams: trunc %d syntlen %d ctxlen %d\n", idxtrunc, syntlen, syntctxlen)); if (idxtrunc > 0) m_idxAbsTruncLen = idxtrunc; if (syntlen > 0) m_synthAbsLen = syntlen; if (syntctxlen > 0) m_synthAbsWordCtxLen = syntctxlen; } static const string cstr_nc("\n\r\x0c\\"); #define RECORD_APPEND(R, NM, VAL) {R += NM + "=" + VAL + "\n";} // Add document in internal form to the database: index the terms in // the title abstract and body and add special terms for file name, // date, mime type etc. , create the document data record (more // metadata), and update database bool Db::addOrUpdate(const string &udi, const string &parent_udi, Doc &doc) { LOGDEB(("Db::add: udi [%s] parent [%s]\n", udi.c_str(), parent_udi.c_str())); if (m_ndb == 0) return false; // This document is potentially going to be passed to the index // update thread. The reference counters are not mt-safe, so we // need to do this through a pointer. The reference is just there // to avoid changing too much code (the previous version passed a copy). Xapian::Document *newdocument_ptr = new Xapian::Document; Xapian::Document &newdocument(*newdocument_ptr); // The term processing pipeline: TermProcIdx tpidx; TermProc *nxt = &tpidx; TermProcStop tpstop(nxt, m_stops);nxt = &tpstop; //TermProcCommongrams tpcommon(nxt, m_stops); nxt = &tpcommon; TermProcPrep tpprep(nxt); if (o_index_stripchars) nxt = &tpprep; TextSplitDb splitter(newdocument, nxt); tpidx.setTSD(&splitter); // Udi unique term: this is used for file existence/uptodate // checks, and unique id for the replace_document() call. string uniterm = make_uniterm(udi); if (doc.onlyxattr) { // Only updating an existing doc with new extended attributes // data. Need to read the old doc and its data record // first. This is so different from the normal processing that // it uses a fully separate code path (with some duplication // unfortunately) if (!m_ndb->docToXdocXattrOnly(&splitter, udi, doc, newdocument)) { delete newdocument_ptr; return false; } } else { // If the ipath is like a path, index the last element. This is // for compound documents like zip and chm for which the filter // uses the file path as ipath. if (!doc.ipath.empty() && doc.ipath.find_first_not_of("0123456789") != string::npos) { string utf8ipathlast; // There is no way in hell we could have an idea of the // charset here, so let's hope it's ascii or utf-8. We call // transcode to strip the bad chars and pray if (transcode(path_getsimple(doc.ipath), utf8ipathlast, "UTF-8", "UTF-8")) { splitter.text_to_words(utf8ipathlast); } } // Split and index the path from the url for path-based filtering { string path = url_gpath(doc.url); vector<string> vpath; stringToTokens(path, vpath, "/"); // If vpath is not /, the last elt is the file/dir name, not a // part of the path. if (vpath.size()) vpath.resize(vpath.size()-1); splitter.curpos = 0; newdocument.add_posting(wrap_prefix(pathelt_prefix), splitter.basepos + splitter.curpos++); for (vector<string>::iterator it = vpath.begin(); it != vpath.end(); it++){ if (it->length() > 230) { // Just truncate it. May still be useful because of wildcards *it = it->substr(0, 230); } newdocument.add_posting(wrap_prefix(pathelt_prefix) + *it, splitter.basepos + splitter.curpos++); } } // Index textual metadata. These are all indexed as text with // positions, as we may want to do phrase searches with them (this // makes no sense for keywords by the way). // // The order has no importance, and we set a position gap of 100 // between fields to avoid false proximity matches. map<string, string>::iterator meta_it; for (meta_it = doc.meta.begin(); meta_it != doc.meta.end(); meta_it++) { if (!meta_it->second.empty()) { const FieldTraits *ftp; // We don't test for an empty prefix here. Some fields are part // of the internal conf with an empty prefix (ie: abstract). if (!fieldToTraits(meta_it->first, &ftp)) { LOGDEB0(("Db::add: no prefix for field [%s], no indexing\n", meta_it->first.c_str())); continue; } LOGDEB0(("Db::add: field [%s] pfx [%s] inc %d: [%s]\n", meta_it->first.c_str(), ftp->pfx.c_str(), ftp->wdfinc, meta_it->second.c_str())); splitter.setTraits(*ftp); if (!splitter.text_to_words(meta_it->second)) LOGDEB(("Db::addOrUpdate: split failed for %s\n", meta_it->first.c_str())); } } // Reset to no prefix and default params splitter.setTraits(FieldTraits()); if (splitter.curpos < baseTextPosition) splitter.basepos = baseTextPosition; // Split and index body text LOGDEB2(("Db::add: split body: [%s]\n", doc.text.c_str())); #ifdef TEXTSPLIT_STATS splitter.resetStats(); #endif if (!splitter.text_to_words(doc.text)) LOGDEB(("Db::addOrUpdate: split failed for main text\n")); #ifdef TEXTSPLIT_STATS // Reject bad data. unrecognized base64 text is characterized by // high avg word length and high variation (because there are // word-splitters like +/ inside the data). TextSplit::Stats::Values v = splitter.getStats(); // v.avglen > 15 && v.sigma > 12 if (v.count > 200 && (v.avglen > 10 && v.sigma / v.avglen > 0.8)) { LOGINFO(("RclDb::addOrUpdate: rejecting doc for bad stats " "count %d avglen %.4f sigma %.4f url [%s] ipath [%s] text %s\n", v.count, v.avglen, v.sigma, doc.url.c_str(), doc.ipath.c_str(), doc.text.c_str())); delete newdocument_ptr; return true; } #endif ////// Special terms for other metadata. No positions for these. // Mime type newdocument.add_boolean_term(wrap_prefix(mimetype_prefix) + doc.mimetype); // Simple file name indexed unsplit for specific "file name" // searches. This is not the same as a filename: clause inside the // query language. // We also add a term for the filename extension if any. string utf8fn; if (doc.getmeta(Doc::keyfn, &utf8fn) && !utf8fn.empty()) { string fn; if (unacmaybefold(utf8fn, fn, "UTF-8", UNACOP_UNACFOLD)) { // We should truncate after extracting the extension, but this is // a pathological case anyway if (fn.size() > 230) utf8truncate(fn, 230); string::size_type pos = fn.rfind('.'); if (pos != string::npos && pos != fn.length() - 1) { newdocument.add_boolean_term(wrap_prefix(fileext_prefix) + fn.substr(pos + 1)); } newdocument.add_term(wrap_prefix(unsplitfilename_prefix) + fn, 0); } } newdocument.add_boolean_term(uniterm); // Parent term. This is used to find all descendents, mostly // to delete them when the parent goes away if (!parent_udi.empty()) { newdocument.add_boolean_term(make_parentterm(parent_udi)); } // Dates etc. time_t mtime = atoll(doc.dmtime.empty() ? doc.fmtime.c_str() : doc.dmtime.c_str()); struct tm tmb; localtime_r(&mtime, &tmb); char buf[9]; snprintf(buf, 9, "%04d%02d%02d", tmb.tm_year+1900, tmb.tm_mon + 1, tmb.tm_mday); // Date (YYYYMMDD) newdocument.add_boolean_term(wrap_prefix(xapday_prefix) + string(buf)); // Month (YYYYMM) buf[6] = '\0'; newdocument.add_boolean_term(wrap_prefix(xapmonth_prefix) + string(buf)); // Year (YYYY) buf[4] = '\0'; newdocument.add_boolean_term(wrap_prefix(xapyear_prefix) + string(buf)); ////////////////////////////////////////////////////////////////// // Document data record. omindex has the following nl separated fields: // - url // - sample // - caption (title limited to 100 chars) // - mime type // // The title, author, abstract and keywords fields are special, // they always get stored in the document data // record. Configurable other fields can be, too. // // We truncate stored fields abstract, title and keywords to // reasonable lengths and suppress newlines (so that the data // record can keep a simple syntax) string record; RECORD_APPEND(record, Doc::keyurl, doc.url); RECORD_APPEND(record, Doc::keytp, doc.mimetype); // We left-zero-pad the times so that they are lexico-sortable leftzeropad(doc.fmtime, 11); RECORD_APPEND(record, Doc::keyfmt, doc.fmtime); if (!doc.dmtime.empty()) { leftzeropad(doc.dmtime, 11); RECORD_APPEND(record, Doc::keydmt, doc.dmtime); } RECORD_APPEND(record, Doc::keyoc, doc.origcharset); if (doc.fbytes.empty()) doc.fbytes = doc.pcbytes; if (!doc.fbytes.empty()) { RECORD_APPEND(record, Doc::keyfs, doc.fbytes); leftzeropad(doc.fbytes, 12); newdocument.add_value(VALUE_SIZE, doc.fbytes); } if (doc.haschildren) { newdocument.add_boolean_term(has_children_term); } if (!doc.pcbytes.empty()) RECORD_APPEND(record, Doc::keypcs, doc.pcbytes); char sizebuf[30]; sprintf(sizebuf, "%u", (unsigned int)doc.text.length()); RECORD_APPEND(record, Doc::keyds, sizebuf); // Note that we add the signature both as a value and in the data record if (!doc.sig.empty()) { RECORD_APPEND(record, Doc::keysig, doc.sig); newdocument.add_value(VALUE_SIG, doc.sig); } if (!doc.ipath.empty()) RECORD_APPEND(record, Doc::keyipt, doc.ipath); // Fields from the Meta array. Handle title specially because it has a // different name inside the data record (history...) string& ttref = doc.meta[Doc::keytt]; ttref = neutchars(truncate_to_word(ttref, m_idxMetaStoredLen), cstr_nc); if (!ttref.empty()) { RECORD_APPEND(record, cstr_caption, ttref); ttref.clear(); } // If abstract is empty, we make up one with the beginning of the // document. This is then not indexed, but part of the doc data so // that we can return it to a query without having to decode the // original file. bool syntabs = false; // Note that the map accesses by operator[] create empty entries if they // don't exist yet. string& absref = doc.meta[Doc::keyabs]; trimstring(absref, " \t\r\n"); if (absref.empty()) { syntabs = true; if (!doc.text.empty()) absref = cstr_syntAbs + neutchars(truncate_to_word(doc.text, m_idxAbsTruncLen), cstr_nc); } else { absref = neutchars(truncate_to_word(absref, m_idxAbsTruncLen), cstr_nc); } // Do the append here to avoid the different truncation done // in the regular "stored" loop if (!absref.empty()) { RECORD_APPEND(record, Doc::keyabs, absref); absref.clear(); } // Append all regular "stored" meta fields const set<string>& stored = m_config->getStoredFields(); for (set<string>::const_iterator it = stored.begin(); it != stored.end(); it++) { string nm = m_config->fieldCanon(*it); if (!doc.meta[nm].empty()) { string value = neutchars(truncate_to_word(doc.meta[nm], m_idxMetaStoredLen), cstr_nc); RECORD_APPEND(record, nm, value); } } // At this point, if the document "filename" field was empty, // try to store the "container file name" value. This is done // after indexing because we don't want search matches on // this, but the filename is often useful for display // purposes. const string *fnp = 0; if (!doc.peekmeta(Rcl::Doc::keyfn, &fnp) || fnp->empty()) { if (doc.peekmeta(Rcl::Doc::keytcfn, &fnp) && !fnp->empty()) { string value = neutchars(truncate_to_word(*fnp, m_idxMetaStoredLen), cstr_nc); RECORD_APPEND(record, Rcl::Doc::keyfn, value); } } // If empty pages (multiple break at same pos) were recorded, save // them (this is because we have no way to record them in the // Xapian list if (!tpidx.m_pageincrvec.empty()) { ostringstream multibreaks; for (unsigned int i = 0; i < tpidx.m_pageincrvec.size(); i++) { if (i != 0) multibreaks << ","; multibreaks << tpidx.m_pageincrvec[i].first << "," << tpidx.m_pageincrvec[i].second; } RECORD_APPEND(record, string(cstr_mbreaks), multibreaks.str()); } // If the file's md5 was computed, add value and term. // The value is optionally used for query result duplicate elimination, // and the term to find the duplicates. // We don't do this for empty docs. const string *md5; if (doc.peekmeta(Doc::keymd5, &md5) && !md5->empty() && md5->compare(cstr_md5empty)) { string digest; MD5HexScan(*md5, digest); newdocument.add_value(VALUE_MD5, digest); newdocument.add_boolean_term(wrap_prefix("XM") + *md5); } LOGDEB0(("Rcl::Db::add: new doc record:\n%s\n", record.c_str())); newdocument.set_data(record); } #ifdef IDX_THREADS if (m_ndb->m_havewriteq) { DbUpdTask *tp = new DbUpdTask(DbUpdTask::AddOrUpdate, udi, uniterm, newdocument_ptr, doc.text.length()); if (!m_ndb->m_wqueue.put(tp)) { LOGERR(("Db::addOrUpdate:Cant queue task\n")); delete newdocument_ptr; return false; } else { return true; } } #endif return m_ndb->addOrUpdateWrite(udi, uniterm, newdocument_ptr, doc.text.length()); } bool Db::Native::docToXdocXattrOnly(TextSplitDb *splitter, const string &udi, Doc &doc, Xapian::Document& xdoc) { LOGDEB0(("Db::docToXdocXattrOnly\n")); #ifdef IDX_THREADS PTMutexLocker lock(m_mutex); #endif // Read existing document and its data record if (getDoc(udi, 0, xdoc) == 0) { LOGERR(("docToXdocXattrOnly: existing doc not found\n")); return false; } string data; XAPTRY(data = xdoc.get_data(), xrdb, m_rcldb->m_reason); if (!m_rcldb->m_reason.empty()) { LOGERR(("Db::xattrOnly: got error: %s\n", m_rcldb->m_reason.c_str())); return false; } // Clear the term lists for the incoming fields and index the new values map<string, string>::iterator meta_it; for (meta_it = doc.meta.begin(); meta_it != doc.meta.end(); meta_it++) { const FieldTraits *ftp; if (!m_rcldb->fieldToTraits(meta_it->first, &ftp) || ftp->pfx.empty()) { LOGDEB0(("Db::xattrOnly: no prefix for field [%s], skipped\n", meta_it->first.c_str())); continue; } // Clear the previous terms for the field clearField(xdoc, ftp->pfx, ftp->wdfinc); LOGDEB0(("Db::xattrOnly: field [%s] pfx [%s] inc %d: [%s]\n", meta_it->first.c_str(), ftp->pfx.c_str(), ftp->wdfinc, meta_it->second.c_str())); splitter->setTraits(*ftp); if (!splitter->text_to_words(meta_it->second)) LOGDEB(("Db::xattrOnly: split failed for %s\n", meta_it->first.c_str())); } xdoc.add_value(VALUE_SIG, doc.sig); // Parse current data record into a dict for ease of processing ConfSimple datadic(data); if (!datadic.ok()) { LOGERR(("db::docToXdocXattrOnly: failed turning data rec to dict\n")); return false; } // For each "stored" field, check if set in doc metadata and // update the value if it is const set<string>& stored = m_rcldb->m_config->getStoredFields(); for (set<string>::const_iterator it = stored.begin(); it != stored.end(); it++) { string nm = m_rcldb->m_config->fieldCanon(*it); if (doc.getmeta(nm, 0)) { string value = neutchars( truncate_to_word(doc.meta[nm], m_rcldb->m_idxMetaStoredLen), cstr_nc); datadic.set(nm, value, ""); } } // Recreate the record. We want to do this with the local RECORD_APPEND // method for consistency in format, instead of using ConfSimple print vector<string> names = datadic.getNames(""); data.clear(); for (vector<string>::const_iterator it = names.begin(); it != names.end(); it++) { string value; datadic.get(*it, value, ""); RECORD_APPEND(data, *it, value); } RECORD_APPEND(data, Doc::keysig, doc.sig); xdoc.set_data(data); return true; } #ifdef IDX_THREADS void Db::waitUpdIdle() { if (m_ndb->m_iswritable && m_ndb->m_havewriteq) { Chrono chron; m_ndb->m_wqueue.waitIdle(); // We flush here just for correct measurement of the thread work time string ermsg; try { m_ndb->xwdb.flush(); } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db::waitUpdIdle: flush() failed: %s\n", ermsg.c_str())); } m_ndb->m_totalworkns += chron.nanos(); LOGINFO(("Db::waitUpdIdle: total xapian work %lld mS\n", m_ndb->m_totalworkns/1000000)); } } #endif // Flush when idxflushmbs is reached bool Db::maybeflush(off_t moretext) { if (m_flushMb > 0) { m_curtxtsz += moretext; if ((m_curtxtsz - m_flushtxtsz) / MB >= m_flushMb) { LOGDEB(("Db::add/delete: txt size >= %d Mb, flushing\n", m_flushMb)); return doFlush(); } } return true; } bool Db::doFlush() { if (!m_ndb) { LOGERR(("Db::doFLush: no ndb??\n")); return false; } string ermsg; try { m_ndb->xwdb.flush(); } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db::doFlush: flush() failed: %s\n", ermsg.c_str())); return false; } m_flushtxtsz = m_curtxtsz; return true; } void Db::setExistingFlags(const string& udi, unsigned int docid) { if (m_mode == DbRO) return; if (docid == (unsigned int)-1) { LOGERR(("Db::setExistingFlags: called with bogus docid !!\n")); return; } #ifdef IDX_THREADS PTMutexLocker lock(m_ndb->m_mutex); #endif i_setExistingFlags(udi, docid); } void Db::i_setExistingFlags(const string& udi, unsigned int docid) { // Set the up to date flag for the document and its subdocs if (docid >= updated.size()) { LOGERR(("needUpdate: existing docid beyond " "updated.size(). Udi [%s], docid %u, " "updated.size() %u\n", udi.c_str(), unsigned(docid), (unsigned)updated.size())); return; } else { updated[docid] = true; } // Set the existence flag for all the subdocs (if any) vector<Xapian::docid> docids; if (!m_ndb->subDocs(udi, 0, docids)) { LOGERR(("Rcl::Db::needUpdate: can't get subdocs\n")); return; } for (vector<Xapian::docid>::iterator it = docids.begin(); it != docids.end(); it++) { if (*it < updated.size()) { LOGDEB2(("Db::needUpdate: docid %d set\n", *it)); updated[*it] = true; } } } // Test if doc given by udi has changed since last indexed (test sigs) bool Db::needUpdate(const string &udi, const string& sig, unsigned int *docidp, string *osigp) { if (m_ndb == 0) return false; if (osigp) osigp->clear(); if (docidp) *docidp = 0; // If we are doing an in place or full reset, no need to test. if (o_inPlaceReset || m_mode == DbTrunc) { // For in place reset, pretend the doc existed, to enable // subdoc purge. The value is only used as a boolean in this case. if (docidp && o_inPlaceReset) { *docidp = -1; } return true; } string uniterm = make_uniterm(udi); string ermsg; #ifdef IDX_THREADS // Need to protect against interaction with the doc update/insert // thread which also updates the existence map, and even multiple // accesses to the readonly Xapian::Database are not allowed // anyway PTMutexLocker lock(m_ndb->m_mutex); #endif // Try to find the document indexed by the uniterm. Xapian::PostingIterator docid; XAPTRY(docid = m_ndb->xrdb.postlist_begin(uniterm), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::needUpdate: xapian::postlist_begin failed: %s\n", m_reason.c_str())); return false; } if (docid == m_ndb->xrdb.postlist_end(uniterm)) { // No document exists with this path: we do need update LOGDEB(("Db::needUpdate:yes (new): [%s]\n", uniterm.c_str())); return true; } Xapian::Document xdoc; XAPTRY(xdoc = m_ndb->xrdb.get_document(*docid), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::needUpdate: get_document error: %s\n", m_reason.c_str())); return true; } if (docidp) { *docidp = *docid; } // Retrieve old file/doc signature from value string osig; XAPTRY(osig = xdoc.get_value(VALUE_SIG), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::needUpdate: get_value error: %s\n", m_reason.c_str())); return true; } LOGDEB2(("Db::needUpdate: oldsig [%s] new [%s]\n", osig.c_str(), sig.c_str())); if (osigp) { *osigp = osig; } // Compare new/old sig if (sig != osig) { LOGDEB(("Db::needUpdate:yes: olsig [%s] new [%s] [%s]\n", osig.c_str(), sig.c_str(), uniterm.c_str())); // Db is not up to date. Let's index the file return true; } // Up to date. Set the existance flags in the map for the doc and // its subdocs. LOGDEB(("Db::needUpdate:no: [%s]\n", uniterm.c_str())); i_setExistingFlags(udi, *docid); return false; } // Return existing stem db languages vector<string> Db::getStemLangs() { LOGDEB(("Db::getStemLang\n")); vector<string> langs; if (m_ndb == 0 || m_ndb->m_isopen == false) return langs; StemDb db(m_ndb->xrdb); db.getMembers(langs); return langs; } /** * Delete stem db for given language */ bool Db::deleteStemDb(const string& lang) { LOGDEB(("Db::deleteStemDb(%s)\n", lang.c_str())); if (m_ndb == 0 || m_ndb->m_isopen == false || !m_ndb->m_iswritable) return false; XapWritableSynFamily db(m_ndb->xwdb, synFamStem); return db.deleteMember(lang); } /** * Create database of stem to parents associations for a given language. * We walk the list of all terms, stem them, and create another Xapian db * with documents indexed by a single term (the stem), and with the list of * parent terms in the document data. */ bool Db::createStemDbs(const vector<string>& langs) { LOGDEB(("Db::createStemDbs\n")); if (m_ndb == 0 || m_ndb->m_isopen == false || !m_ndb->m_iswritable) { LOGERR(("createStemDb: db not open or not writable\n")); return false; } return createExpansionDbs(m_ndb->xwdb, langs); } /** * This is called at the end of an indexing session, to delete the * documents for files that are no longer there. This can ONLY be called * after a full file-system tree walk, else the file existence flags will * be wrong. */ bool Db::purge() { LOGDEB(("Db::purge\n")); if (m_ndb == 0) return false; LOGDEB(("Db::purge: m_isopen %d m_iswritable %d\n", m_ndb->m_isopen, m_ndb->m_iswritable)); if (m_ndb->m_isopen == false || m_ndb->m_iswritable == false) return false; #ifdef IDX_THREADS // If we manage our own write queue, make sure it's drained and closed if (m_ndb->m_havewriteq) m_ndb->m_wqueue.setTerminateAndWait(); // else we need to lock out other top level threads. This is just // a precaution as they should have been waited for by the top // level actor at this point PTMutexLocker lock(m_ndb->m_mutex, m_ndb->m_havewriteq); #endif // IDX_THREADS // For xapian versions up to 1.0.1, deleting a non-existant // document would trigger an exception that would discard any // pending update. This could lose both previous added documents // or deletions. Adding the flush before the delete pass ensured // that any added document would go to the index. Kept here // because it doesn't really hurt. try { m_ndb->xwdb.flush(); } catch (...) { LOGERR(("Db::purge: 1st flush failed\n")); } // Walk the document array and delete any xapian document whose // flag is not set (we did not see its source during indexing). int purgecount = 0; for (Xapian::docid docid = 1; docid < updated.size(); ++docid) { if (!updated[docid]) { if ((purgecount+1) % 100 == 0) { try { CancelCheck::instance().checkCancel(); } catch(CancelExcept) { LOGINFO(("Db::purge: partially cancelled\n")); break; } } try { if (m_flushMb > 0) { // We use an average term length of 5 for // estimating the doc sizes which is probably not // accurate but gives rough consistency with what // we do for add/update. I should fetch the doc // size from the data record, but this would be // bad for performance. Xapian::termcount trms = m_ndb->xwdb.get_doclength(docid); maybeflush(trms * 5); } m_ndb->xwdb.delete_document(docid); LOGDEB(("Db::purge: deleted document #%d\n", docid)); } catch (const Xapian::DocNotFoundError &) { LOGDEB0(("Db::purge: document #%d not found\n", docid)); } catch (const Xapian::Error &e) { LOGERR(("Db::purge: document #%d: %s\n", docid, e.get_msg().c_str())); } catch (...) { LOGERR(("Db::purge: document #%d: unknown error\n", docid)); } purgecount++; } } try { m_ndb->xwdb.flush(); } catch (...) { LOGERR(("Db::purge: 2nd flush failed\n")); } return true; } // Test for doc existence. bool Db::docExists(const string& uniterm) { #ifdef IDX_THREADS // Need to protect read db against multiaccess. PTMutexLocker lock(m_ndb->m_mutex); #endif string ermsg; try { Xapian::PostingIterator docid = m_ndb->xrdb.postlist_begin(uniterm); if (docid == m_ndb->xrdb.postlist_end(uniterm)) { return false; } else { return true; } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("Db::docExists(%s) %s\n", uniterm.c_str(), ermsg.c_str())); } return false; } /* Delete document(s) for given unique identifier (doc and descendents) */ bool Db::purgeFile(const string &udi, bool *existed) { LOGDEB(("Db:purgeFile: [%s]\n", udi.c_str())); if (m_ndb == 0 || !m_ndb->m_iswritable) return false; string uniterm = make_uniterm(udi); bool exists = docExists(uniterm); if (existed) *existed = exists; if (!exists) return true; #ifdef IDX_THREADS if (m_ndb->m_havewriteq) { DbUpdTask *tp = new DbUpdTask(DbUpdTask::Delete, udi, uniterm, 0, (size_t)-1); if (!m_ndb->m_wqueue.put(tp)) { LOGERR(("Db::purgeFile:Cant queue task\n")); return false; } else { return true; } } #endif /* We get there is IDX_THREADS is not defined or there is no queue */ return m_ndb->purgeFileWrite(false, udi, uniterm); } /* Delete subdocs with an out of date sig. We do this to purge obsolete subdocs during a partial update where no general purge will be done */ bool Db::purgeOrphans(const string &udi) { LOGDEB(("Db:purgeOrphans: [%s]\n", udi.c_str())); if (m_ndb == 0 || !m_ndb->m_iswritable) return false; string uniterm = make_uniterm(udi); #ifdef IDX_THREADS if (m_ndb->m_havewriteq) { DbUpdTask *tp = new DbUpdTask(DbUpdTask::PurgeOrphans, udi, uniterm, 0, (size_t)-1); if (!m_ndb->m_wqueue.put(tp)) { LOGERR(("Db::purgeFile:Cant queue task\n")); return false; } else { return true; } } #endif /* We get there is IDX_THREADS is not defined or there is no queue */ return m_ndb->purgeFileWrite(true, udi, uniterm); } bool Db::dbStats(DbStats& res) { if (!m_ndb || !m_ndb->m_isopen) return false; Xapian::Database xdb = m_ndb->xrdb; XAPTRY(res.dbdoccount = xdb.get_doccount(); res.dbavgdoclen = xdb.get_avlength(); res.mindoclen = xdb.get_doclength_lower_bound(); res.maxdoclen = xdb.get_doclength_upper_bound(); , xdb, m_reason); if (!m_reason.empty()) return false; return true; } // Retrieve document defined by Unique doc identifier. This is used // by the GUI history feature and by open parent/getenclosing // ! The return value is always true except for fatal errors. Document // existence should be tested by looking at doc.pc bool Db::getDoc(const string &udi, const Doc& idxdoc, Doc &doc) { LOGDEB(("Db:getDoc: [%s]\n", udi.c_str())); if (m_ndb == 0) return false; // Initialize what we can in any case. If this is history, caller // will make partial display in case of error doc.meta[Rcl::Doc::keyrr] = "100%"; doc.pc = 100; Xapian::Document xdoc; Xapian::docid docid; int idxi = idxdoc.idxi; if ((docid = m_ndb->getDoc(udi, idxi, xdoc))) { string data = xdoc.get_data(); doc.meta[Rcl::Doc::keyudi] = udi; return m_ndb->dbDataToRclDoc(docid, data, doc); } else { // Document found in history no longer in the // database. We return true (because their might be // other ok docs further) but indicate the error with // pc = -1 doc.pc = -1; LOGINFO(("Db:getDoc: no such doc in index: [%s]\n", udi.c_str())); return true; } } bool Db::hasSubDocs(const Doc &idoc) { if (m_ndb == 0) return false; string inudi; if (!idoc.getmeta(Doc::keyudi, &inudi) || inudi.empty()) { LOGERR(("Db::hasSubDocs: no input udi or empty\n")); return false; } LOGDEB1(("Db::hasSubDocs: idxi %d inudi [%s]\n", idoc.idxi, inudi.c_str())); // Not sure why we perform both the subDocs() call and the test on // has_children. The former will return docs if the input is a // file-level document, but the latter should be true both in this // case and if the input is already a subdoc, so the first test // should be redundant. Does not hurt much in any case, to be // checked one day. vector<Xapian::docid> docids; if (!m_ndb->subDocs(inudi, idoc.idxi, docids)) { LOGDEB(("Db::hasSubDocs: lower level subdocs failed\n")); return false; } if (!docids.empty()) return true; // Check if doc has an "has_children" term if (m_ndb->hasTerm(inudi, idoc.idxi, has_children_term)) return true; return false; } // Retrieve all subdocuments of a given one, which may not be a file-level // one (in which case, we have to retrieve this first, then filter the ipaths) bool Db::getSubDocs(const Doc &idoc, vector<Doc>& subdocs) { if (m_ndb == 0) return false; string inudi; if (!idoc.getmeta(Doc::keyudi, &inudi) || inudi.empty()) { LOGERR(("Db::getSubDocs: no input udi or empty\n")); return false; } string rootudi; string ipath = idoc.ipath; LOGDEB0(("Db::getSubDocs: idxi %d inudi [%s] ipath [%s]\n", idoc.idxi, inudi.c_str(), ipath.c_str())); if (ipath.empty()) { // File-level doc. Use it as root rootudi = inudi; } else { // See if we have a parent term Xapian::Document xdoc; if (!m_ndb->getDoc(inudi, idoc.idxi, xdoc)) { LOGERR(("Db::getSubDocs: can't get Xapian document\n")); return false; } Xapian::TermIterator xit; XAPTRY(xit = xdoc.termlist_begin(); xit.skip_to(wrap_prefix(parent_prefix)), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::getSubDocs: xapian error: %s\n", m_reason.c_str())); return false; } if (xit == xdoc.termlist_end()) { LOGERR(("Db::getSubDocs: parent term not found\n")); return false; } rootudi = strip_prefix(*xit); } LOGDEB(("Db::getSubDocs: root: [%s]\n", rootudi.c_str())); // Retrieve all subdoc xapian ids for the root vector<Xapian::docid> docids; if (!m_ndb->subDocs(rootudi, idoc.idxi, docids)) { LOGDEB(("Db::getSubDocs: lower level subdocs failed\n")); return false; } // Retrieve doc, filter, and build output list for (int tries = 0; tries < 2; tries++) { try { for (vector<Xapian::docid>::const_iterator it = docids.begin(); it != docids.end(); it++) { Xapian::Document xdoc = m_ndb->xrdb.get_document(*it); string data = xdoc.get_data(); string docudi; m_ndb->xdocToUdi(xdoc, docudi); Doc doc; doc.meta[Doc::keyudi] = docudi; doc.meta[Doc::keyrr] = "100%"; doc.pc = 100; if (!m_ndb->dbDataToRclDoc(*it, data, doc)) { LOGERR(("Db::getSubDocs: doc conversion error\n")); return false; } if (ipath.empty() || FileInterner::ipathContains(ipath, doc.ipath)) { subdocs.push_back(doc); } } return true; } catch (const Xapian::DatabaseModifiedError &e) { m_reason = e.get_msg(); m_ndb->xrdb.reopen(); continue; } XCATCHERROR(m_reason); break; } LOGERR(("Db::getSubDocs: Xapian error: %s\n", m_reason.c_str())); return false; } } // End namespace Rcl ���������������������������recoll-1.21.5/rcldb/termproc.h����������������������������������������������������������������������0000644�0001750�0001750�00000020214�12602163572�015457� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2011 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _TERMPROC_H_INCLUDED_ #define _TERMPROC_H_INCLUDED_ #include "textsplit.h" #include "stoplist.h" namespace Rcl { /** * Termproc objects take term tokens as input and do something * with them: transform to lowercase, filter out stop words, generate n-grams, * finally index or generate search clauses, etc. They are chained and can * be arranged to form different pipelines depending on the desired processing * steps: for example, optional stoplist or commongram processing. * * Shared processing steps are defined in this file. The first and last steps * are usually defined in the specific module. * - The front TermProc is typically chained from a TextSplit object * which generates the original terms, and calls takeword() from its * own takeword() method. * - The last TermProc does something with the finalized terms, e.g. adds * them to the index. */ /** * The base class takes care of chaining: all derived classes call its * takeword() and flush() methods to ensure that terms go through the pipe. */ class TermProc { public: TermProc(TermProc* next) : m_next(next) {} virtual ~TermProc() {} virtual bool takeword(const string &term, int pos, int bs, int be) { if (m_next) return m_next->takeword(term, pos, bs, be); else return true; } // newpage() is like takeword(), but for page breaks. virtual void newpage(int pos) { if (m_next) m_next->newpage(pos); } virtual bool flush() { if (m_next) return m_next->flush(); else return true; } private: TermProc *m_next; /* Copyconst and assignment private and forbidden */ TermProc(const TermProc &) {} TermProc& operator=(const TermProc &) { return *this; }; }; /** * Helper specialized TextSplit class, feeds the pipeline: * - The takeword() method calls a TermProc->takeword(). * - The text_to_words() method also takes care of flushing. * Both methods can be further specialized by the user (they should then call * the base methods when they've done the local processing). */ class TextSplitP : public TextSplit { public: TextSplitP(TermProc *prc, Flags flags = Flags(TXTS_NONE)) : TextSplit(flags), m_prc(prc) {} virtual bool text_to_words(const string &in) { bool ret = TextSplit::text_to_words(in); if (m_prc && !m_prc->flush()) return false; return ret; } virtual bool takeword(const string& term, int pos, int bs, int be) { if (m_prc) return m_prc->takeword(term, pos, bs, be); else return true; } virtual void newpage(int pos) { if (m_prc) return m_prc->newpage(pos); } private: TermProc *m_prc; }; /** Unaccent and lowercase term. If the index is * not case/diac-sensitive, this is usually the first step in the pipeline */ class TermProcPrep : public TermProc { public: TermProcPrep(TermProc *nxt) : TermProc(nxt), m_totalterms(0), m_unacerrors(0) { } virtual bool takeword(const string& itrm, int pos, int bs, int be) { m_totalterms++; string otrm; if (!unacmaybefold(itrm, otrm, "UTF-8", UNACOP_UNACFOLD)) { LOGDEB(("splitter::takeword: unac [%s] failed\n", itrm.c_str())); m_unacerrors++; // We don't generate a fatal error because of a bad term, // but one has to put the limit somewhere if (m_unacerrors > 500 && (double(m_totalterms) / double(m_unacerrors)) < 2.0) { // More than 1 error for every other term LOGERR(("splitter::takeword: too many unac errors %d/%d\n", m_unacerrors, m_totalterms)); return false; } return true; } // It may happen in some weird cases that the output from unac is // empty (if the word actually consisted entirely of diacritics ...) // The consequence is that a phrase search won't work without addional // slack. if (otrm.empty()) return true; else return TermProc::takeword(otrm, pos, bs, be); } virtual bool flush() { m_totalterms = m_unacerrors = 0; return TermProc::flush(); } private: int m_totalterms; int m_unacerrors; }; /** Compare to stop words list and discard if match found */ class TermProcStop : public TermProc { public: TermProcStop(TermProc *nxt, const Rcl::StopList& stops) : TermProc(nxt), m_stops(stops) { } virtual bool takeword(const string& term, int pos, int bs, int be) { if (m_stops.isStop(term)) { return true; } return TermProc::takeword(term, pos, bs, be); } private: const Rcl::StopList& m_stops; }; /** Handle common-gram generation: combine frequent terms with neighbours to * shorten the positions lists for phrase searches. * NOTE: This does not currently work because of bad interaction with the * spans (ie john@domain.com) generation in textsplit. Not used, kept for * testing only */ class TermProcCommongrams : public TermProc { public: TermProcCommongrams(TermProc *nxt, const Rcl::StopList& stops) : TermProc(nxt), m_stops(stops), m_onlygrams(false) { } virtual bool takeword(const string& term, int pos, int bs, int be) { LOGDEB1(("TermProcCom::takeword: pos %d %d %d [%s]\n", pos, bs, be, term.c_str())); bool isstop = m_stops.isStop(term); bool twogramemit = false; if (!m_prevterm.empty() && (m_prevstop || isstop)) { // create 2-gram. space unnecessary but improves // the readability of queries string twogram; twogram.swap(m_prevterm); twogram.append(1, ' '); twogram += term; // When emitting a complex term we set the bps to 0. This may // be used by our clients if (!TermProc::takeword(twogram, m_prevpos, 0, 0)) return false; twogramemit = true; #if 0 if (m_stops.isStop(twogram)) { firstword = twogram; isstop = false; } #endif } m_prevterm = term; m_prevstop = isstop; m_prevpos = pos; m_prevsent = false; m_prevbs = bs; m_prevbe = be; // If flags allow, emit the bare term at the current pos. if (!m_onlygrams || (!isstop && !twogramemit)) { if (!TermProc::takeword(term, pos, bs, be)) return false; m_prevsent = true; } return true; } virtual bool flush() { if (!m_prevsent && !m_prevterm.empty()) if (!TermProc::takeword(m_prevterm, m_prevpos, m_prevbs, m_prevbe)) return false; m_prevterm.clear(); m_prevsent = true; return TermProc::flush(); } void onlygrams(bool on) { m_onlygrams = on; } private: // The stoplist we're using const Rcl::StopList& m_stops; // Remembered data for the last processed term string m_prevterm; bool m_prevstop; int m_prevpos; int m_prevbs; int m_prevbe; bool m_prevsent; // If this is set, we only emit longest grams bool m_onlygrams; }; } // End namespace Rcl #endif /* _TERMPROC_H_INCLUDED_ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/synfamily.h���������������������������������������������������������������������0000644�0001750�0001750�00000015630�12602163572�015645� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SYNFAMILY_H_INCLUDED_ #define _SYNFAMILY_H_INCLUDED_ /** * The Xapian synonyms mechanism can be used for many things beyond actual * synonyms, anything that would turn a string into a group of equivalents. * Unfortunately, it has only one keyspace. * This class partitions the Xapian synonyms keyspace by using prefixes and * can provide different applications each with a family of keyspaces. * Two characters are reserved by the class and should not be used inside * either family or member names: ':' and ';' * A synonym key for family "stemdb", member "french", key "somestem" * looks like: * :stemdb:french:somestem -> somestem expansions * A special entry is used to list all the members for a family, e.g.: * :stemdb;members -> french, english ... */ #include <string> #include <vector> #include <xapian.h> #include "debuglog.h" #include "xmacros.h" #include "strmatcher.h" namespace Rcl { class XapSynFamily { public: /** * Construct from readable xapian database and family name (ie: Stm) */ XapSynFamily(Xapian::Database xdb, const std::string& familyname) : m_rdb(xdb) { m_prefix1 = std::string(":") + familyname; } /** Retrieve all members of this family (e.g: french english german...) */ virtual bool getMembers(std::vector<std::string>&); /** debug: list map for one member to stdout */ virtual bool listMap(const std::string& fam); /** Expand term to list of synonyms for given member */ bool synExpand(const std::string& membername, const std::string& term, std::vector<std::string>& result); // The prefix shared by all synonym entries inside a family member virtual std::string entryprefix(const std::string& member) { return m_prefix1 + ":" + member + ":"; } // The key for the "list of members" entry virtual std::string memberskey() { return m_prefix1 + ";" + "members"; } Xapian::Database& getdb() { return m_rdb; } protected: Xapian::Database m_rdb; std::string m_prefix1; }; /** Modify ops for a synonyms family * * A method to add a synonym entry inside a given member would make sense, * but would not be used presently as all these ops go through * ComputableSynFamMember objects */ class XapWritableSynFamily : public XapSynFamily { public: /** Construct with Xapian db open for r/w */ XapWritableSynFamily(Xapian::WritableDatabase db, const std::string& familyname) : XapSynFamily(db, familyname), m_wdb(db) { } /** Delete all entries for one member (e.g. french), and remove from list * of members */ virtual bool deleteMember(const std::string& membername); /** Add to list of members. Idempotent, does not affect actual expansions */ virtual bool createMember(const std::string& membername); Xapian::WritableDatabase getdb() {return m_wdb;} protected: Xapian::WritableDatabase m_wdb; }; /** A functor which transforms a string */ class SynTermTrans { public: virtual std::string operator()(const std::string&) = 0; }; /** A member (set of root-synonyms associations) of a SynFamily for * which the root is computable from the input term. * The objects use a functor member to compute the term root on input * (e.g. compute the term sterm or casefold it */ class XapComputableSynFamMember { public: XapComputableSynFamMember(Xapian::Database xdb, std::string familyname, std::string membername, SynTermTrans* trans) : m_family(xdb, familyname), m_membername(membername), m_trans(trans), m_prefix(m_family.entryprefix(m_membername)) { } /** Expand a term to its list of synonyms. If filtertrans is set we * keep only the results which transform to the same value as the input * This is used for example for filtering the result of case+diac * expansion when only either case or diac expansion is desired. */ bool synExpand(const std::string& term, std::vector<std::string>& result, SynTermTrans *filtertrans = 0); /** Same with also wildcard/regexp expansion of entry against the keys. * The input matcher will be modified to fit our key format. */ bool synKeyExpand(StrMatcher* in, std::vector<std::string>& result, SynTermTrans *filtertrans = 0); private: XapSynFamily m_family; std::string m_membername; SynTermTrans *m_trans; std::string m_prefix; }; /** Computable term root SynFamily member, modify ops */ class XapWritableComputableSynFamMember { public: XapWritableComputableSynFamMember( Xapian::WritableDatabase xdb, std::string familyname, std::string membername, SynTermTrans* trans) : m_family(xdb, familyname), m_membername(membername), m_trans(trans), m_prefix(m_family.entryprefix(m_membername)) { } virtual bool addSynonym(const std::string& term) { LOGDEB2(("addSynonym:me %p term [%s] m_trans %p\n", this, term.c_str(), m_trans)); std::string transformed = (*m_trans)(term); LOGDEB2(("addSynonym: transformed [%s]\n", transformed.c_str())); if (transformed == term) return true; std::string ermsg; try { m_family.getdb().add_synonym(m_prefix + transformed, term); } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("XapWritableComputableSynFamMember::addSynonym: " "xapian error %s\n", ermsg.c_str())); return false; } return true; } void clear() { m_family.deleteMember(m_membername); } void recreate() { clear(); m_family.createMember(m_membername); } private: XapWritableSynFamily m_family; std::string m_membername; SynTermTrans *m_trans; std::string m_prefix; }; // // Prefixes are centrally defined here to avoid collisions // // Lowercase accented stem to expansion. Family member name: language static const std::string synFamStem("Stm"); // Lowercase unaccented stem to expansion. Family member name: language static const std::string synFamStemUnac("StU"); // Lowercase unaccented term to case and accent variations. Only one // member, named "all". This set is used for separate case/diac // expansion by post-filtering the results of dual expansion. static const std::string synFamDiCa("DCa"); } // end namespace Rcl #endif /* _SYNFAMILY_H_INCLUDED_ */ ��������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/stoplist.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000005371�12602163540�016042� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_STOPLIST #include "debuglog.h" #include "readfile.h" #include "unacpp.h" #include "smallut.h" #include "stoplist.h" #ifndef NO_NAMESPACES namespace Rcl { #endif bool StopList::setFile(const string &filename) { m_stops.clear(); string stoptext, reason; if (!file_to_string(filename, stoptext, &reason)) { LOGDEB0(("StopList::StopList: file_to_string(%s) failed: %s\n", filename.c_str(), reason.c_str())); return false; } set<string> stops; stringToStrings(stoptext, stops); for (set<string>::iterator it = stops.begin(); it != stops.end(); it++) { string dterm; unacmaybefold(*it, dterm, "UTF-8", UNACOP_UNACFOLD); m_stops.insert(dterm); } return true; } // Most sites will have an empty stop list. We try to optimize the // empty set case as much as possible. empty() is probably sligtly faster than // find() in this case. bool StopList::isStop(const string &term) const { return m_stops.empty() ? false : m_stops.find(term) != m_stops.end(); } #ifndef NO_NAMESPACES } #endif #else // TEST_STOPLIST #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <string> #include <iostream> #include "stoplist.h" using namespace std; using namespace Rcl; static char *thisprog; static char usage [] = "trstoplist stopstermsfile\n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } const string tstwords[] = { "the", "is", "xweird", "autre", "autre double", "mot1", "mot double", }; const int tstsz = sizeof(tstwords) / sizeof(string); int main(int argc, char **argv) { int count = 10; thisprog = argv[0]; argc--; argv++; if (argc != 1) Usage(); string filename = argv[0]; argc--; StopList sl(filename); for (int i = 0; i < tstsz; i++) { const string &tst = tstwords[i]; cout << "[" << tst << "] " << (sl.isStop(tst) ? "in stop list" : "not in stop list") << endl; } exit(0); } #endif // TEST_STOPLIST �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/stemdb.cpp����������������������������������������������������������������������0000644�0001750�0001750�00000005445�12602163572�015446� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** * Management of the auxiliary databases listing stems and their expansion * terms */ #include "autoconfig.h" #include <unistd.h> #include <algorithm> #include <map> #include <iostream> using namespace std; #include <xapian.h> #include "stemdb.h" #include "debuglog.h" #include "smallut.h" #include "synfamily.h" #include "unacpp.h" #include "rclconfig.h" namespace Rcl { /** * Expand for one or several languages */ bool StemDb::stemExpand(const std::string& langs, const std::string& _term, vector<string>& result) { vector<string> llangs; stringToStrings(langs, llangs); // The stemdb keys may have kept their diacritics or not but they // are always lower-case. It would be more logical for the term // transformers to perform before doing the stemming, but this // would be inefficient when there are several stemming languages string term; unacmaybefold(_term, term, "UTF-8", UNACOP_FOLD); for (vector<string>::const_iterator it = llangs.begin(); it != llangs.end(); it++) { SynTermTransStem stemmer(*it); XapComputableSynFamMember expander(getdb(), synFamStem, *it, &stemmer); (void)expander.synExpand(term, result); } if (!o_index_stripchars) { string unac; unacmaybefold(term, unac, "UTF-8", UNACOP_UNAC); // Expand the unaccented stem, using the unaccented stem // db. Because it's a different db, We need to do it even if // the input has no accent (unac == term) for (vector<string>::const_iterator it = llangs.begin(); it != llangs.end(); it++) { SynTermTransStem stemmer(*it); XapComputableSynFamMember expander(getdb(), synFamStemUnac, *it, &stemmer); (void)expander.synExpand(unac, result); } } if (result.empty()) result.push_back(term); sort(result.begin(), result.end()); vector<string>::iterator uit = unique(result.begin(), result.end()); result.resize(uit - result.begin()); LOGDEB1(("stemExpand:%s: %s -> %s\n", langs.c_str(), term.c_str(), stringsToString(result).c_str())); return true; } } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rcldoc.cpp����������������������������������������������������������������������0000644�0001750�0001750�00000006243�12602163540�015426� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "rcldoc.h" #include "debuglog.h" namespace Rcl { const string Doc::keyabs("abstract"); const string Doc::keyapptg("rclaptg"); const string Doc::keyau("author"); const string Doc::keybcknd("rclbes"); const string Doc::keybght("beagleHitType"); const string Doc::keycc("collapsecount"); const string Doc::keychildurl("childurl"); const string Doc::keydmt("dmtime"); const string Doc::keyds("dbytes"); const string Doc::keyfmt("fmtime"); const string Doc::keyfn("filename"); const string Doc::keytcfn("containerfilename"); const string Doc::keyfs("fbytes"); const string Doc::keyipt("ipath"); const string Doc::keykw("keywords"); const string Doc::keymd5("md5"); const string Doc::keymt("mtime"); const string Doc::keyoc("origcharset"); const string Doc::keypcs("pcbytes"); const string Doc::keyrr("relevancyrating"); const string Doc::keysig("sig"); const string Doc::keysz("size"); const string Doc::keytp("mtype"); const string Doc::keytt("title"); const string Doc::keyudi("rcludi"); const string Doc::keyurl("url"); void Doc::dump(bool dotext) const { LOGDEB(("Rcl::Doc::dump: url: [%s]\n", url.c_str())); LOGDEB(("Rcl::Doc::dump: idxurl: [%s]\n", idxurl.c_str())); LOGDEB(("Rcl::Doc::dump: ipath: [%s]\n", ipath.c_str())); LOGDEB(("Rcl::Doc::dump: mimetype: [%s]\n", mimetype.c_str())); LOGDEB(("Rcl::Doc::dump: fmtime: [%s]\n", fmtime.c_str())); LOGDEB(("Rcl::Doc::dump: dmtime: [%s]\n", dmtime.c_str())); LOGDEB(("Rcl::Doc::dump: origcharset: [%s]\n", origcharset.c_str())); LOGDEB(("Rcl::Doc::dump: syntabs: [%d]\n", syntabs)); LOGDEB(("Rcl::Doc::dump: pcbytes: [%s]\n", pcbytes.c_str())); LOGDEB(("Rcl::Doc::dump: fbytes: [%s]\n", fbytes.c_str())); LOGDEB(("Rcl::Doc::dump: dbytes: [%s]\n", dbytes.c_str())); LOGDEB(("Rcl::Doc::dump: sig: [%s]\n", sig.c_str())); LOGDEB(("Rcl::Doc::dump: pc: [%d]\n", pc)); LOGDEB(("Rcl::Doc::dump: xdocid: [%lu]\n", (unsigned long)xdocid)); for (map<string, string>::const_iterator it = meta.begin(); it != meta.end(); it++) { LOGDEB(("Rcl::Doc::dump: meta[%s]: [%s]\n", (*it).first.c_str(), (*it).second.c_str())); } if (dotext) LOGDEB(("Rcl::Doc::dump: text: \n[%s]\n", text.c_str())); } } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rcldoc.h������������������������������������������������������������������������0000644�0001750�0001750�00000024715�12602163540�015077� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RCLDOC_H_INCLUDED_ #define _RCLDOC_H_INCLUDED_ #include <string> #include <map> using std::string; using std::map; #include "smallut.h" namespace Rcl { /** * Dumb holder for document attributes and data. * * This is used both for indexing, where fields are filled-up by the * indexer prior to adding to the index, and for querying, where * fields are filled from data stored in the index. Not all fields are * in use at both index and query times, and not all field data is * stored at index time (for example the "text" field is split and * indexed, but not stored as such) */ class Doc { public: //////////////////////////////////////////////////////////// // The following fields are stored into the document data record (so they // can be accessed after a query without fetching the actual document). // We indicate the routine that sets them up during indexing // Binary or url-encoded url. No transcoding: this is used to access files // Index: computed by Db::add caller. // Query: from doc data. string url; // When we do path translation for documents from external indexes, we // save the original path: string idxurl; // And the originating db. 0 is base, 1 first external etc. int idxi; // Internal path for multi-doc files. Ascii // Set by FsIndexer::processone string ipath; // Mime type. Set by FileInterner::internfile string mimetype; // File modification time as decimal ascii unix time // Set by FsIndexer::processone string fmtime; // Data reference date (same format). Ie: mail date // Possibly set by mimetype-specific handler // Filter::metaData["modificationdate"] string dmtime; // Charset we transcoded the 'text' field from (in case we want back) // Possibly set by handler string origcharset; // A map for textual metadata like, author, keywords, abstract, // title. The entries are possibly set by the mimetype-specific // handler. If a fieldname-to-prefix translation exists, the // terms in the value will be indexed with a prefix. // Only some predefined fields are stored in the data record: // "title", "keywords", "abstract", "author", but if a field name is // in the "stored" configuration list, it will be stored too. map<string, string> meta; // Attribute for the "abstract" entry. true if it is just the top // of doc, not a native document attribute. Not stored directly, but // as an indicative prefix at the beginning of the abstract (ugly hack) bool syntabs; // File size. This is the size of the compressed file or of the // external containing archive. // Index: Set by caller prior to Db::Add. // Query: Set from data record string pcbytes; // Document size, ie, size of the .odt or .xls. // Index: Set in internfile from the filter stack // Query: set from data record string fbytes; // Doc text size. // Index: from text.length(). // Query: set by rcldb from index data record string dbytes; // Doc signature. Used for up to date checks. // Index: set by Db::Add caller. Query: set from doc data. // This is opaque to rcldb, and could just as well be ctime, size, // ctime+size, md5, whatever. string sig; ///////////////////////////////////////////////// // The following fields don't go to the db record, so they can't // be retrieved at query time // Main document text. This is plaintext utf-8 text to be split // and indexed string text; ///////////////////////////////////////////////// // Misc stuff int pc; // relevancy percentage, used by sortseq, convenience unsigned long xdocid; // Opaque: rcldb doc identifier. // Page breaks were stored during indexing. bool haspages; // Has children, either as content of file-level container or // ipath descendants. bool haschildren; // During indexing: only fields from extended attributes were set, no // doc content. Allows for faster reindexing of existing doc bool onlyxattr; /////////////////////////////////////////////////////////////////// void erase() { url.erase(); idxurl.erase(); idxi = 0; ipath.erase(); mimetype.erase(); fmtime.erase(); dmtime.erase(); origcharset.erase(); meta.clear(); syntabs = false; pcbytes.erase(); fbytes.erase(); dbytes.erase(); sig.erase(); text.erase(); pc = 0; xdocid = 0; idxi = 0; haspages = false; haschildren = false; onlyxattr = false; } // Copy ensuring no shared string data, for threading issues. void copyto(Doc *d) const { d->url.assign(url.begin(), url.end()); d->idxurl.assign(idxurl.begin(), idxurl.end()); d->idxi = idxi; d->ipath.assign(ipath.begin(), ipath.end()); d->mimetype.assign(mimetype.begin(), mimetype.end()); d->fmtime.assign(fmtime.begin(), fmtime.end()); d->dmtime.assign(dmtime.begin(), dmtime.end()); d->origcharset.assign(origcharset.begin(), origcharset.end()); map_ss_cp_noshr(meta, &d->meta); d->syntabs = syntabs; d->pcbytes.assign(pcbytes.begin(), pcbytes.end()); d->fbytes.assign(fbytes.begin(), fbytes.end()); d->dbytes.assign(dbytes.begin(), dbytes.end()); d->sig.assign(sig.begin(), sig.end()); d->text.assign(text.begin(), text.end()); d->pc = pc; d->xdocid = xdocid; d->idxi = idxi; d->haspages = haspages; d->haschildren = haschildren; d->onlyxattr = onlyxattr; } Doc() : idxi(0), syntabs(false), pc(0), xdocid(0), haspages(false), haschildren(false), onlyxattr(false) { } /** Get value for named field. If value pointer is 0, just test existence */ bool getmeta(const string& nm, string *value = 0) const { map<string,string>::const_iterator it = meta.find(nm); if (it != meta.end()) { if (value) *value = it->second; return true; } else { return false; } } /** Nocopy getvalue. sets pointer to entry value if exists */ bool peekmeta(const string& nm, const string **value = 0) const { map<string,string>::const_iterator it = meta.find(nm); if (it != meta.end()) { if (value) *value = &(it->second); return true; } else { return false; } } // Create entry or append text to existing entry. bool addmeta(const string& nm, const string& value) { map<string,string>::iterator mit = meta.find(nm); if (mit == meta.end()) { meta[nm] = value; } else if (mit->second.empty()) { mit->second = value; } else { // It may happen that the same attr exists several times // in the internfile stack. Avoid duplicating values. if (mit->second != value) mit->second += string(" - ") + value; } return true; } /* Is this document stored as a regular filesystem file ? * (as opposed to e.g. a webcache file), not a subdoc, */ bool isFsFile() { string backend; getmeta(keybcknd, &backend); if (!backend.empty() && backend.compare("FS")) return false; return true; } void dump(bool dotext=false) const; // The official names for recoll native fields when used in a text // context (ie: the python interface duplicates some of the fixed // fields in the meta array, these are the names used). Defined in // rcldoc.cpp. Fields stored in the meta[] array (ie, title, // author), _must_ use these canonical values, not aliases. This is // enforced in internfile.cpp and misc other bits of metadata-gathering // code static const string keyurl; // url // childurl. This is set when working with the parent of the result, to hold // the child of interest url, typically to highlight a directory entry static const string keychildurl; // file name. This is set for filesystem-level containers or // documents, and not inherited by subdocuments (which can get a // keyfn anyway from, e.g, an attachment filename value). Subdocs // used to inherit the file name, but this was undesirable (you // usually don't want to see all subdocs when searching for the // file name). Instead the container file name is now set in the // document record but not indexed (see next entry). static const string keyfn; // Container file name. This is set for all subdocuments of a // given top level container. It is not indexed by default but // stored in the document record keyfn field if this is still // empty when we create it, for display purposes. static const string keytcfn; static const string keyipt; // ipath static const string keytp; // mime type static const string keyfmt; // file mtime static const string keydmt; // document mtime static const string keymt; // mtime dmtime if set else fmtime static const string keyoc; // original charset static const string keypcs; // document outer container size static const string keyfs; // document size static const string keyds; // document text size static const string keysz; // dbytes if set else fbytes else pcbytes static const string keysig; // sig static const string keyrr; // relevancy rating static const string keycc; // Collapse count static const string keyabs; // abstract static const string keyau; // author static const string keytt; // title static const string keykw; // keywords static const string keymd5; // file md5 checksum static const string keybcknd; // backend type for data not from the filesys // udi back from index. Only set by Rcl::Query::getdoc(). static const string keyudi; static const string keyapptg; // apptag. Set from localfields (fsindexer) static const string keybght; // beagle hit type ("beagleHitType") }; } #endif /* _RCLDOC_H_INCLUDED_ */ ���������������������������������������������������recoll-1.21.5/rcldb/synfamily.cpp�������������������������������������������������������������������0000644�0001750�0001750�00000026022�12602163572�016175� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_SYNFAMILY #include "autoconfig.h" #include <iostream> #include <algorithm> #include "debuglog.h" #include "cstr.h" #include "xmacros.h" #include "synfamily.h" #include "smallut.h" #include "refcntr.h" using namespace std; namespace Rcl { bool XapWritableSynFamily::createMember(const string& membername) { string ermsg; try { m_wdb.add_synonym(memberskey(), membername); } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("XapSynFamily::createMember: error: %s\n", ermsg.c_str())); return false; } return true; } bool XapWritableSynFamily::deleteMember(const string& membername) { string key = entryprefix(membername); for (Xapian::TermIterator xit = m_wdb.synonym_keys_begin(key); xit != m_wdb.synonym_keys_end(key); xit++) { m_wdb.clear_synonyms(*xit); } m_wdb.remove_synonym(memberskey(), membername); return true; } bool XapSynFamily::getMembers(vector<string>& members) { string key = memberskey(); string ermsg; try { for (Xapian::TermIterator xit = m_rdb.synonyms_begin(key); xit != m_rdb.synonyms_end(key); xit++) { members.push_back(*xit); } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("XapSynFamily::getMembers: xapian error %s\n", ermsg.c_str())); return false; } return true; } bool XapSynFamily::listMap(const string& membername) { string key = entryprefix(membername); string ermsg; try { for (Xapian::TermIterator kit = m_rdb.synonym_keys_begin(key); kit != m_rdb.synonym_keys_end(key); kit++) { cout << "[" << *kit << "] -> "; for (Xapian::TermIterator xit = m_rdb.synonyms_begin(*kit); xit != m_rdb.synonyms_end(*kit); xit++) { cout << *xit << " "; } cout << endl; } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("XapSynFamily::listMap: xapian error %s\n", ermsg.c_str())); return false; } vector<string>members; getMembers(members); cout << "All family members: "; for (vector<string>::const_iterator it = members.begin(); it != members.end(); it++) { cout << *it << " "; } cout << endl; return true; } bool XapSynFamily::synExpand(const string& member, const string& term, vector<string>& result) { LOGDEB(("XapSynFamily::synExpand:(%s) %s for %s\n", m_prefix1.c_str(), term.c_str(), member.c_str())); string key = entryprefix(member) + term; string ermsg; try { for (Xapian::TermIterator xit = m_rdb.synonyms_begin(key); xit != m_rdb.synonyms_end(key); xit++) { LOGDEB2((" Pushing %s\n", (*xit).c_str())); result.push_back(*xit); } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("synFamily::synExpand: error for member [%s] term [%s]\n", member.c_str(), term.c_str())); result.push_back(term); return false; } // If the input term is not in the list, add it if (find(result.begin(), result.end(), term) == result.end()) { result.push_back(term); } return true; } bool XapComputableSynFamMember::synExpand(const string& term, vector<string>& result, SynTermTrans *filtertrans) { string root = (*m_trans)(term); string filter_root; if (filtertrans) filter_root = (*filtertrans)(term); string key = m_prefix + root; LOGDEB(("XapCompSynFamMbr::synExpand([%s]): term [%s] root [%s] \n", m_prefix.c_str(), term.c_str(), root.c_str())); string ermsg; try { for (Xapian::TermIterator xit = m_family.getdb().synonyms_begin(key); xit != m_family.getdb().synonyms_end(key); xit++) { if (!filtertrans || (*filtertrans)(*xit) == filter_root) { LOGDEB2((" Pushing %s\n", (*xit).c_str())); result.push_back(*xit); } } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("XapSynDb::synExpand: error for term [%s] (key %s)\n", term.c_str(), key.c_str())); result.push_back(term); return false; } // If the input term and root are not in the list, add them if (find(result.begin(), result.end(), term) == result.end()) { LOGDEB2((" Pushing %s\n", term.c_str())); result.push_back(term); } if (root != term && find(result.begin(), result.end(), root) == result.end()) { if (!filtertrans || (*filtertrans)(root) == filter_root) { LOGDEB2((" Pushing %s\n", root.c_str())); result.push_back(root); } } LOGDEB(("XapCompSynFamMbr::synExpand([%s]): term [%s] -> [%s]\n", m_prefix.c_str(), term.c_str(), stringsToString(result).c_str())); return true; } bool XapComputableSynFamMember::synKeyExpand(StrMatcher* inexp, vector<string>& result, SynTermTrans *filtertrans) { LOGDEB(("XapCompSynFam::synKeyExpand: [%s]\n", inexp->exp().c_str())); // If set, compute filtering term (e.g.: only case-folded) RefCntr<StrMatcher> filter_exp; if (filtertrans) { filter_exp = RefCntr<StrMatcher>(inexp->clone()); filter_exp->setExp((*filtertrans)(inexp->exp())); } // Transform input into our key format (e.g.: case-folded + diac-stripped), // and prepend prefix inexp->setExp(m_prefix + (*m_trans)(inexp->exp())); // Find the initial section before any special chars for skipping the keys string::size_type es = inexp->baseprefixlen(); string is = inexp->exp().substr(0, es); string::size_type preflen = m_prefix.size(); LOGDEB2(("XapCompSynFam::synKeyExpand: init section: [%s]\n", is.c_str())); string ermsg; try { for (Xapian::TermIterator xit = m_family.getdb().synonym_keys_begin(is); xit != m_family.getdb().synonym_keys_end(is); xit++) { LOGDEB2((" Checking1 [%s] against [%s]\n", (*xit).c_str(), inexp->exp().c_str())); if (!inexp->match(*xit)) continue; // Push all the synonyms if they match the secondary filter for (Xapian::TermIterator xit1 = m_family.getdb().synonyms_begin(*xit); xit1 != m_family.getdb().synonyms_end(*xit); xit1++) { string term = *xit1; if (filter_exp.isNotNull()) { string term1 = (*filtertrans)(term); LOGDEB2((" Testing [%s] against [%s]\n", term1.c_str(), filter_exp->exp().c_str())); if (!filter_exp->match(term1)) { continue; } } LOGDEB2(("XapCompSynFam::keyWildExpand: [%s]\n", (*xit1).c_str())); result.push_back(*xit1); } // Same with key itself string term = (*xit).substr(preflen); if (filter_exp.isNotNull()) { string term1 = (*filtertrans)(term); LOGDEB2((" Testing [%s] against [%s]\n", term1.c_str(), filter_exp->exp().c_str())); if (!filter_exp->match(term1)) { continue; } } LOGDEB2(("XapCompSynFam::keyWildExpand: [%s]\n", term.c_str())); result.push_back(term); } } XCATCHERROR(ermsg); if (!ermsg.empty()) { LOGERR(("XapCompSynFam::synKeyExpand: xapian: [%s]\n", ermsg.c_str())); return false; } LOGDEB1(("XapCompSynFam::synKeyExpand: final: [%s]\n", stringsToString(result).c_str())); return true; } } // Namespace Rcl #else // TEST_SYNFAMILY #include "autoconfig.h" #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <strings.h> #include <iostream> #include <string> #include <vector> using namespace std; #include "xapian.h" #include "smallut.h" #include "pathut.h" #include "xmacros.h" #include "synfamily.h" static string thisprog; static int op_flags; #define OPT_D 0x1 #define OPT_L 0x2 #define OPT_a 0x4 #define OPT_u 0x8 #define OPT_d 0x10 #define OPT_l 0x20 #define OPT_s 0x40 #define OPT_e 0x80 static string usage = " -d <dbdir> {-s|-a|-u} database dir and synfamily: stem accents/case ustem\n" " -l : list members\n" " -L <member>: list entries for given member\n" " -e <member> <key> : list expansion for given member and key\n" " -D <member>: delete member\n" " \n\n" ; static void Usage(void) { cerr << thisprog << ": usage:\n" << usage; exit(1); } int main(int argc, char **argv) { string dbdir(path_tildexpand("~/.recoll/xapiandb")); string outencoding = "UTF-8"; string member; string key; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'a': op_flags |= OPT_a; break; case 'D': op_flags |= OPT_D; break; case 'd': op_flags |= OPT_d; if (argc < 2) Usage(); dbdir = *(++argv); argc--; goto b1; case 'e': op_flags |= OPT_e; if (argc < 3) Usage(); member = *(++argv);argc--; key = *(++argv); argc--; goto b1; case 'l': op_flags |= OPT_l; break; case 'L': op_flags |= OPT_L; if (argc < 2) Usage(); member = *(++argv); argc--; goto b1; case 's': op_flags |= OPT_s; break; case 'u': op_flags |= OPT_u; break; default: Usage(); break; } b1: argc--; argv++; } if (argc != 0) Usage(); string familyname; if (op_flags & OPT_a) { familyname = Rcl::synFamDiCa; } else if (op_flags & OPT_u) { familyname = Rcl::synFamStemUnac; } else { familyname = Rcl::synFamStem; } if ((op_flags & (OPT_l|OPT_L|OPT_D|OPT_e)) == 0) Usage(); string ermsg; try { if ((op_flags & (OPT_D)) == 0) { // Need write ? Xapian::Database db(dbdir); Rcl::XapSynFamily fam(db, familyname); if (op_flags & OPT_l) { vector<string> members; if (!fam.getMembers(members)) { cerr << "getMembers error" << endl; return 1; } string out; stringsToString(members, out); cout << "Family: " << familyname << " Members: " << out << endl; } else if (op_flags & OPT_L) { fam.listMap(member); } else if (op_flags & OPT_e) { vector<string> exp; if (!fam.synExpand(member, key, exp)) { cerr << "expand error" << endl; return 1; } string out; stringsToString(exp, out); cout << "Family: " << familyname << " Key: " << key << " Expansion: " << out << endl; } else { Usage(); } } else { Xapian::WritableDatabase db(dbdir, Xapian::DB_CREATE_OR_OPEN); Rcl::XapWritableSynFamily fam(db, familyname); if (op_flags & OPT_D) { } else { Usage(); } } } XCATCHERROR (ermsg); if (!ermsg.empty()) { cerr << "Xapian Exception: " << ermsg << endl; return 1; } return 0; } #endif // TEST_SYNFAMILY ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rcldups.cpp���������������������������������������������������������������������0000644�0001750�0001750�00000006136�12602163572�015642� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2013 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ //////////////////////////////////////////////////////////////////// #include "autoconfig.h" #include <string> using namespace std; #include <xapian.h> #include "debuglog.h" #include "rcldb.h" #include "rcldb_p.h" #include "xmacros.h" #include "md5ut.h" #include "searchdata.h" #include "rclquery.h" namespace Rcl { /** Retrieve the dups of a given document. The input has to be a query result * because we use the xdocid. We get the md5 from this, then the dups */ bool Db::docDups(const Doc& idoc, vector<Doc>& odocs) { if (m_ndb == 0) { LOGERR(("Db::docDups: no db\n")); return false; } if (idoc.xdocid == 0) { LOGERR(("Db::docDups: null xdocid in input doc\n")); return false; } // Get the xapian doc Xapian::Document xdoc; XAPTRY(xdoc = m_ndb->xrdb.get_document(Xapian::docid(idoc.xdocid)), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::docDups: xapian error: %s\n", m_reason.c_str())); return false; } // Get the md5 string digest; XAPTRY(digest = xdoc.get_value(VALUE_MD5), m_ndb->xrdb, m_reason); if (!m_reason.empty()) { LOGERR(("Db::docDups: xapian error: %s\n", m_reason.c_str())); return false; } if (digest.empty()) { LOGDEB(("Db::docDups: doc has no md5\n")); return false; } string md5; MD5HexPrint(digest, md5); SearchData *sdp = new SearchData(); RefCntr<SearchData> sd(sdp); SearchDataClauseSimple *sdc = new SearchDataClauseSimple(SCLT_AND, md5, "rclmd5"); sdc->addModifier(SearchDataClause::SDCM_CASESENS); sdc->addModifier(SearchDataClause::SDCM_DIACSENS); sd->addClause(sdc); Query query(this); query.setCollapseDuplicates(0); if (!query.setQuery(sd)) { LOGERR(("Db::docDups: setQuery failed\n")); return false; } int cnt = query.getResCnt(); for (int i = 0; i < cnt; i++) { Doc doc; if (!query.getDoc(i, doc)) { LOGERR(("Db::docDups: getDoc failed at %d (cnt %d)\n", i, cnt)); return false; } odocs.push_back(doc); } return true; } #if 0 { vector<Doc> dups; bool ret; LOGDEB(("DOCDUPS\n")); ret = m_db->docDups(doc, dups); if (!ret) { LOGDEB(("docDups failed\n")); } else if (dups.size() == 1) { LOGDEB(("No dups\n")); } else { for (unsigned int i = 0; i < dups.size(); i++) { LOGDEB(("Dup: %s\n", dups[i].url.c_str())); } } } #endif } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rclquery_p.h��������������������������������������������������������������������0000644�0001750�0001750�00000004152�12602163540�016007� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _rclquery_p_h_included_ #define _rclquery_p_h_included_ #include <map> #include <vector> using std::map; using std::vector; #include <xapian.h> #include "rclquery.h" namespace Rcl { class Query::Native { public: /** The query I belong to */ Query *m_q; /** query descriptor: terms and subqueries joined by operators * (or/and etc...) */ Xapian::Query xquery; Xapian::Enquire *xenquire; // Open query descriptor. Xapian::MSet xmset; // Partial result set // Term frequencies for current query. See makeAbstract, setQuery map<string, double> termfreqs; Native(Query *q) : m_q(q), xenquire(0) { } ~Native() { clear(); } void clear() { delete xenquire; xenquire = 0; termfreqs.clear(); } /** Return a list of terms which matched for a specific result document */ bool getMatchTerms(unsigned long xdocid, std::vector<std::string>& terms); int makeAbstract(Xapian::docid id, vector<Snippet>&, int maxoccs = -1, int ctxwords = -1); int getFirstMatchPage(Xapian::docid docid, std::string& term); void setDbWideQTermsFreqs(); double qualityTerms(Xapian::docid docid, const std::vector<std::string>& terms, std::multimap<double, std::vector<std::string> >& byQ); }; } #endif /* _rclquery_p_h_included_ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/searchdataxml.cpp���������������������������������������������������������������0000644�0001750�0001750�00000010354�12602163540�016776� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Handle translation from rcl's SearchData structures to XML. Used for // complex search history storage in the GUI #include "autoconfig.h" #include <stdio.h> #include <string> #include <vector> #include <sstream> using namespace std; #include "searchdata.h" #include "debuglog.h" #include "base64.h" namespace Rcl { static string tpToString(SClType tp) { switch (tp) { case SCLT_AND: return "AND"; case SCLT_OR: return "OR"; case SCLT_FILENAME: return "FN"; case SCLT_PHRASE: return "PH"; case SCLT_NEAR: return "NE"; case SCLT_SUB: return "SU"; // Unsupported actually default: return "UN"; } } string SearchData::asXML() { LOGDEB(("SearchData::asXML\n")); ostringstream os; // Searchdata os << "<SD>" << endl; // Clause list os << "<CL>" << endl; // List conjunction: default is AND, else print it. if (m_tp != SCLT_AND) os << "<CLT>" << tpToString(m_tp) << "</CLT>" << endl; for (unsigned int i = 0; i < m_query.size(); i++) { SearchDataClause *c = m_query[i]; if (c->getTp() == SCLT_SUB) { LOGERR(("SearchData::asXML: can't do subclauses !\n")); continue; } if (c->getTp() == SCLT_PATH) { // Keep these apart, for compat with the older history format. NEG // is ignored here, we have 2 different tags instead. SearchDataClausePath *cl = dynamic_cast<SearchDataClausePath*>(c); if (cl->getexclude()) { os << "<ND>" << base64_encode(cl->gettext()) << "</ND>" << endl; } else { os << "<YD>" << base64_encode(cl->gettext()) << "</YD>" << endl; } continue; } else { os << "<C>" << endl; if (c->getexclude()) os << "<NEG/>" << endl; if (c->getTp() != SCLT_AND) { os << "<CT>" << tpToString(c->getTp()) << "</CT>" << endl; } if (c->getTp() == SCLT_FILENAME) { SearchDataClauseFilename *cl = dynamic_cast<SearchDataClauseFilename*>(c); os << "<T>" << base64_encode(cl->gettext()) << "</T>" << endl; } else { SearchDataClauseSimple *cl = dynamic_cast<SearchDataClauseSimple*>(c); if (!cl->getfield().empty()) { os << "<F>" << base64_encode(cl->getfield()) << "</F>" << endl; } os << "<T>" << base64_encode(cl->gettext()) << "</T>" << endl; if (cl->getTp() == SCLT_NEAR || cl->getTp() == SCLT_PHRASE) { SearchDataClauseDist *cld = dynamic_cast<SearchDataClauseDist*>(cl); os << "<S>" << cld->getslack() << "</S>" << endl; } } os << "</C>" << endl; } } os << "</CL>" << endl; if (m_haveDates) { if (m_dates.y1 > 0) { os << "<DMI>" << "<D>" << m_dates.d1 << "</D>" << "<M>" << m_dates.m1 << "</M>" << "<Y>" << m_dates.y1 << "</Y>" << "</DMI>" << endl; } if (m_dates.y2 > 0) { os << "<DMA>" << "<D>" << m_dates.d2 << "</D>" << "<M>" << m_dates.m2 << "</M>" << "<Y>" << m_dates.y2 << "</Y>" << "</DMA>" << endl; } } if (m_minSize != size_t(-1)) { os << "<MIS>" << m_minSize << "</MIS>" << endl; } if (m_maxSize != size_t(-1)) { os << "<MAS>" << m_maxSize << "</MAS>" << endl; } if (!m_filetypes.empty()) { os << "<ST>"; for (vector<string>::iterator it = m_filetypes.begin(); it != m_filetypes.end(); it++) { os << *it << " "; } os << "</ST>" << endl; } if (!m_nfiletypes.empty()) { os << "<IT>"; for (vector<string>::iterator it = m_nfiletypes.begin(); it != m_nfiletypes.end(); it++) { os << *it << " "; } os << "</IT>" << endl; } os << "</SD>"; return os.str(); } } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/xmacros.h�����������������������������������������������������������������������0000644�0001750�0001750�00000004011�12602163540�015270� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _xmacros_h_included_ #define _xmacros_h_included_ // Generic Xapian exception catching code. We do this quite often, // and I have no idea how to do this except for a macro #define XCATCHERROR(MSG) \ catch (const Xapian::Error &e) { \ MSG = e.get_msg(); \ if (MSG.empty()) MSG = "Empty error message"; \ } catch (const std::string &s) { \ MSG = s; \ if (MSG.empty()) MSG = "Empty error message"; \ } catch (const char *s) { \ MSG = s; \ if (MSG.empty()) MSG = "Empty error message"; \ } catch (...) { \ MSG = "Caught unknown xapian exception"; \ } #define XAPTRY(STMTTOTRY, XAPDB, ERSTR) \ for (int tries = 0; tries < 2; tries++) { \ try { \ STMTTOTRY; \ ERSTR.erase(); \ break; \ } catch (const Xapian::DatabaseModifiedError &e) { \ ERSTR = e.get_msg(); \ XAPDB.reopen(); \ continue; \ } XCATCHERROR(ERSTR); \ break; \ } #endif �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/searchdata.h��������������������������������������������������������������������0000644�0001750�0001750�00000037137�12602165713�015736� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SEARCHDATA_H_INCLUDED_ #define _SEARCHDATA_H_INCLUDED_ /** * Structures to hold data coming almost directly from the gui * and handle its translation to Xapian queries. * This is not generic code, it reflects the choices made for the user * interface, and it also knows some specific of recoll's usage of Xapian * (ie: term prefixes) */ #include <string> #include <vector> #include <ostream> #include "rcldb.h" #include "refcntr.h" #include "smallut.h" #include "cstr.h" #include "hldata.h" class RclConfig; class AdvSearch; namespace Rcl { /** Search clause types */ enum SClType { SCLT_AND, SCLT_OR, SCLT_FILENAME, SCLT_PHRASE, SCLT_NEAR, SCLT_PATH, SCLT_SUB }; class SearchDataClause; class SearchDataClauseDist; /** A SearchData object represents a Recoll user query, for translation into a Xapian query tree. This could probably better called a 'question'. This is a list of SearchDataClause objects combined through either OR or AND. Clauses either reflect user entry in a query field: some text, a clause type (AND/OR/NEAR etc.), possibly a distance, or are the result of parsing query language input. A clause can also point to another SearchData representing a subquery. The content of each clause when added may not be fully parsed yet (may come directly from a gui field). It will be parsed and may be translated to several queries in the Xapian sense, for exemple several terms and phrases as would result from ["this is a phrase" term1 term2] . This is why the clauses also have an AND/OR/... type. They are an intermediate form between the primary user input and the final Xapian::Query tree. For example, a phrase clause could be added either explicitly or using double quotes: {SCLT_PHRASE, [this is a phrase]} or as {SCLT_XXX, ["this is a phrase"]} */ class SearchData { public: SearchData(SClType tp, const string& stemlang) : m_tp(tp), m_stemlang(stemlang) { if (m_tp != SCLT_OR && m_tp != SCLT_AND) m_tp = SCLT_OR; commoninit(); } SearchData() : m_tp(SCLT_AND) { commoninit(); } ~SearchData(); /** Is there anything but a file name search in here ? */ bool fileNameOnly(); /** Are we a simple query with one clause? */ bool singleSimple(); /** Do we have wildcards anywhere apart from filename searches ? */ bool haveWildCards() {return m_haveWildCards;} /** Translate to Xapian query. rcldb knows about the void* */ bool toNativeQuery(Rcl::Db &db, void *); /** We become the owner of cl and will delete it */ bool addClause(SearchDataClause* cl); /** If this is a simple query (one field only, no distance clauses), * add phrase made of query terms to query, so that docs containing the * user terms in order will have higher relevance. This must be called * before toNativeQuery(). * @param threshold: don't use terms more frequent than the value * (proportion of docs where they occur) */ bool maybeAddAutoPhrase(Rcl::Db &db, double threshold); const std::string& getStemLang() {return m_stemlang;} void setMinSize(size_t size) {m_minSize = size;} void setMaxSize(size_t size) {m_maxSize = size;} /** Set date span for filtering results */ void setDateSpan(DateInterval *dip) {m_dates = *dip; m_haveDates = true;} /** Add file type for filtering results */ void addFiletype(const std::string& ft) {m_filetypes.push_back(ft);} /** Add file type to not wanted list */ void remFiletype(const std::string& ft) {m_nfiletypes.push_back(ft);} /** Retrieve error description */ std::string getReason() {return m_reason;} /** Return term expansion data. Mostly used by caller for highlighting */ void getTerms(HighlightData& hldata) const; /** * Get/set the description field which is retrieved from xapian after * initializing the query. It is stored here for usage in the GUI. */ std::string getDescription() {return m_description;} void setDescription(const std::string& d) {m_description = d;} /** Return an XML version of the contents, for storage in search history by the GUI */ string asXML(); void setTp(SClType tp) { m_tp = tp; } SClType getTp() { return m_tp; } void setMaxExpand(int max) { m_softmaxexpand = max; } bool getAutoDiac() {return m_autodiacsens;} bool getAutoCase() {return m_autocasesens;} int getMaxExp() {return m_maxexp;} int getMaxCl() {return m_maxcl;} int getSoftMaxExp() {return m_softmaxexpand;} void dump(ostream& o) const; friend class ::AdvSearch; private: // Combine type. Only SCLT_AND or SCLT_OR here SClType m_tp; // The clauses std::vector<SearchDataClause*> m_query; // Restricted set of filetypes if not empty. std::vector<std::string> m_filetypes; // Excluded set of file types if not empty std::vector<std::string> m_nfiletypes; // Autophrase if set. Can't be part of the normal chain because // it uses OP_AND_MAYBE RefCntr<SearchDataClauseDist> m_autophrase; // Special stuff produced by input which looks like a clause but means // something else (date and size specs) bool m_haveDates; DateInterval m_dates; // Restrict to date interval size_t m_maxSize; size_t m_minSize; // Printable expanded version of the complete query, retrieved/set // from rcldb after the Xapian::setQuery() call std::string m_description; // Error diag std::string m_reason; bool m_haveWildCards; std::string m_stemlang; // Parameters set at the start of ToNativeQuery because they need // an rclconfig. Actually this does not make sense and it would be // simpler to just pass an rclconfig to the constructor; bool m_autodiacsens; bool m_autocasesens; int m_maxexp; int m_maxcl; // Parameters which are not part of the main query data but may influence // translation in special cases. // Maximum TermMatch (e.g. wildcard) expansion. This is normally set // from the configuration with a high default, but may be set to a lower // value during "find-as-you-type" operations from the GUI int m_softmaxexpand; // Collapse bogus subqueries generated by the query parser, mostly // so that we can check if this is an autophrase candidate (else // Xapian will do it anyway) void simplify(); bool expandFileTypes(Rcl::Db &db, std::vector<std::string>& exptps); bool clausesToQuery(Rcl::Db &db, SClType tp, std::vector<SearchDataClause*>& query, string& reason, void *d); void commoninit(); /* Copyconst and assignment private and forbidden */ SearchData(const SearchData &) {} SearchData& operator=(const SearchData&) {return *this;}; }; class SearchDataClause { public: enum Modifier {SDCM_NONE=0, SDCM_NOSTEMMING=1, SDCM_ANCHORSTART=2, SDCM_ANCHOREND=4, SDCM_CASESENS=8, SDCM_DIACSENS=16}; enum Relation {REL_CONTAINS, REL_EQUALS, REL_LT, REL_LTE, REL_GT, REL_GTE}; SearchDataClause(SClType tp) : m_tp(tp), m_parentSearch(0), m_haveWildCards(0), m_modifiers(SDCM_NONE), m_weight(1.0), m_exclude(false), m_rel(REL_CONTAINS) {} virtual ~SearchDataClause() {} virtual bool toNativeQuery(Rcl::Db &db, void *) = 0; bool isFileName() const {return m_tp == SCLT_FILENAME ? true: false;} virtual std::string getReason() const {return m_reason;} virtual void getTerms(HighlightData&) const {} SClType getTp() const { return m_tp; } void setTp(SClType tp) { m_tp = tp; } void setParent(SearchData *p) { m_parentSearch = p; } string getStemLang() { return (m_modifiers & SDCM_NOSTEMMING) || m_parentSearch == 0 ? cstr_null : m_parentSearch->getStemLang(); } bool getAutoDiac() { return m_parentSearch ? m_parentSearch->getAutoDiac() : false; } bool getAutoCase() { return m_parentSearch ? m_parentSearch->getAutoCase() : true; } int getMaxExp() { return m_parentSearch ? m_parentSearch->getMaxExp() : 10000; } int getMaxCl() { return m_parentSearch ? m_parentSearch->getMaxCl() : 100000; } int getSoftMaxExp() { return m_parentSearch ? m_parentSearch->getSoftMaxExp() : -1; } virtual void setModifiers(Modifier mod) { m_modifiers = mod; } virtual void addModifier(Modifier mod) { m_modifiers = Modifier(m_modifiers | mod); } virtual void setWeight(float w) { m_weight = w; } virtual bool getexclude() const { return m_exclude; } virtual void setexclude(bool onoff) { m_exclude = onoff; } virtual void setrel(Relation rel) { m_rel = rel; } virtual Relation getrel() { return m_rel; } virtual void dump(ostream& o) const; friend class SearchData; protected: std::string m_reason; SClType m_tp; SearchData *m_parentSearch; bool m_haveWildCards; Modifier m_modifiers; float m_weight; bool m_exclude; Relation m_rel; private: SearchDataClause(const SearchDataClause&) { } SearchDataClause& operator=(const SearchDataClause&) { return *this; } }; /** * "Simple" data clause with user-entered query text. This can include * multiple phrases and words, but no specified distance. */ class TermProcQ; class SearchDataClauseSimple : public SearchDataClause { public: SearchDataClauseSimple(SClType tp, const std::string& txt, const std::string& fld = std::string()) : SearchDataClause(tp), m_text(txt), m_field(fld), m_curcl(0) { m_haveWildCards = (txt.find_first_of(cstr_minwilds) != std::string::npos); } SearchDataClauseSimple(const std::string& txt, SClType tp) : SearchDataClause(tp), m_text(txt), m_curcl(0) { m_haveWildCards = (txt.find_first_of(cstr_minwilds) != std::string::npos); } virtual ~SearchDataClauseSimple() { } /** Translate to Xapian query */ virtual bool toNativeQuery(Rcl::Db &, void *); virtual void getTerms(HighlightData& hldata) const { hldata.append(m_hldata); } virtual const std::string& gettext() { return m_text; } virtual const std::string& getfield() { return m_field; } virtual void setfield(const string& field) { m_field = field; } virtual void dump(ostream& o) const; protected: std::string m_text; // Raw user entry text. std::string m_field; // Field specification if any HighlightData m_hldata; // Current count of Xapian clauses, to check against expansion limit int m_curcl; bool processUserString(Rcl::Db &db, const string &iq, std::string &ermsg, void* pq, int slack = 0, bool useNear = false); bool expandTerm(Rcl::Db &db, std::string& ermsg, int mods, const std::string& term, std::vector<std::string>& exp, std::string& sterm, const std::string& prefix); // After splitting entry on whitespace: process non-phrase element void processSimpleSpan(Rcl::Db &db, string& ermsg, const string& span, int mods, void *pq); // Process phrase/near element void processPhraseOrNear(Rcl::Db &db, string& ermsg, TermProcQ *splitData, int mods, void *pq, bool useNear, int slack); }; /** * Filename search clause. This is special because term expansion is only * performed against the unsplit file name terms. * * There is a big advantage in expanding only against the * field, especially for file names, because this makes searches for * "*xx" much faster (no need to scan the whole main index). */ class SearchDataClauseFilename : public SearchDataClauseSimple { public: SearchDataClauseFilename(const std::string& txt) : SearchDataClauseSimple(txt, SCLT_FILENAME) { // File name searches don't count when looking for wild cards. m_haveWildCards = false; } virtual ~SearchDataClauseFilename() { } virtual bool toNativeQuery(Rcl::Db &, void *); virtual void dump(ostream& o) const; }; /** * Pathname filtering clause. This is special because of history: * - Pathname filtering used to be performed as a post-processing step * done with the url fields of doc data records. * - Then it was done as special phrase searchs on path elements prefixed * with XP. * Up to this point dir filtering data was stored as part of the searchdata * object, not in the SearchDataClause tree. Only one, then a list, * of clauses where stored, and they were always ANDed together. * * In order to allow for OR searching, dir clauses are now stored in a * specific SearchDataClause, but this is still special because the field has * non-standard phrase-like processing, reflected in index storage by * an empty element representing / (as "XP"). * * A future version should use a standard phrase with an anchor to the * start if the path starts with /. As this implies an index format * change but is no important enough to warrant it, this has to wait for * the next format change. */ class SearchDataClausePath : public SearchDataClauseSimple { public: SearchDataClausePath(const std::string& txt, bool excl = false) : SearchDataClauseSimple(SCLT_PATH, txt, "dir") { m_exclude = excl; m_haveWildCards = false; } virtual ~SearchDataClausePath() { } virtual bool toNativeQuery(Rcl::Db &, void *); virtual void dump(ostream& o) const; }; /** * A clause coming from a NEAR or PHRASE entry field. There is only one * std::string group, and a specified distance, which applies to it. */ class SearchDataClauseDist : public SearchDataClauseSimple { public: SearchDataClauseDist(SClType tp, const std::string& txt, int slack, const std::string& fld = std::string()) : SearchDataClauseSimple(tp, txt, fld), m_slack(slack) { } virtual ~SearchDataClauseDist() { } virtual bool toNativeQuery(Rcl::Db &, void *); virtual int getslack() const { return m_slack; } virtual void setslack(int slack) { m_slack = slack; } virtual void dump(ostream& o) const; private: int m_slack; }; /** Subquery */ class SearchDataClauseSub : public SearchDataClause { public: SearchDataClauseSub(RefCntr<SearchData> sub) : SearchDataClause(SCLT_SUB), m_sub(sub) { } virtual bool toNativeQuery(Rcl::Db &db, void *p) { bool ret = m_sub->toNativeQuery(db, p); if (!ret) m_reason = m_sub->getReason(); return ret; } virtual void getTerms(HighlightData& hldata) const { m_sub.getconstptr()->getTerms(hldata); } virtual RefCntr<SearchData> getSub() { return m_sub; } virtual void dump(ostream& o) const; protected: RefCntr<SearchData> m_sub; }; } // Namespace Rcl #endif /* _SEARCHDATA_H_INCLUDED_ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/rcldb/rclabstract.cpp�����������������������������������������������������������������0000644�0001750�0001750�00000046623�12602163572�016477� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <math.h> #include <map> #include "unordered_defs.h" using namespace std; #include "debuglog.h" #include "rcldb.h" #include "rcldb_p.h" #include "rclquery.h" #include "rclquery_p.h" #include "textsplit.h" #include "searchdata.h" #include "utf8iter.h" #include "hldata.h" namespace Rcl { // This is used as a marker inside the abstract frag lists, but // normally doesn't remain in final output (which is built with a // custom sep. by our caller). static const string cstr_ellipsis("..."); // This is used to mark positions overlapped by a multi-word match term static const string occupiedmarker("?"); #undef DEBUGABSTRACT #ifdef DEBUGABSTRACT #define LOGABS LOGDEB static void listList(const string& what, const vector<string>&l) { string a; for (vector<string>::const_iterator it = l.begin(); it != l.end(); it++) { a = a + *it + " "; } LOGDEB(("%s: %s\n", what.c_str(), a.c_str())); } #else #define LOGABS LOGDEB2 static void listList(const string&, const vector<string>&) { } #endif // Unprefix terms. Actually it's not completely clear if we should // remove prefixes and keep all terms or prune the prefixed // ones. There is no good way to be sure what will provide the best // result in general. static const bool prune_prefixed_terms = true; static void noPrefixList(const vector<string>& in, vector<string>& out) { for (vector<string>::const_iterator qit = in.begin(); qit != in.end(); qit++) { if (prune_prefixed_terms) { if (has_prefix(*qit)) continue; } out.push_back(strip_prefix(*qit)); } sort(out.begin(), out.end()); vector<string>::iterator it = unique(out.begin(), out.end()); out.resize(it - out.begin()); } bool Query::Native::getMatchTerms(unsigned long xdocid, vector<string>& terms) { if (!xenquire) { LOGERR(("Query::getMatchTerms: no query opened\n")); return -1; } terms.clear(); Xapian::TermIterator it; Xapian::docid id = Xapian::docid(xdocid); vector<string> iterms; XAPTRY(iterms.insert(iterms.begin(), xenquire->get_matching_terms_begin(id), xenquire->get_matching_terms_end(id)), m_q->m_db->m_ndb->xrdb, m_q->m_reason); if (!m_q->m_reason.empty()) { LOGERR(("getMatchTerms: xapian error: %s\n", m_q->m_reason.c_str())); return false; } noPrefixList(iterms, terms); return true; } // Retrieve db-wide frequencies for the query terms and store them in // the query object. This is done at most once for a query, and the data is used // while computing abstracts for the different result documents. void Query::Native::setDbWideQTermsFreqs() { // Do it once only for a given query. if (!termfreqs.empty()) return; vector<string> qterms; { vector<string> iqterms; m_q->getQueryTerms(iqterms); noPrefixList(iqterms, qterms); } // listList("Query terms: ", qterms); Xapian::Database &xrdb = m_q->m_db->m_ndb->xrdb; double doccnt = xrdb.get_doccount(); if (doccnt == 0) doccnt = 1; for (vector<string>::const_iterator qit = qterms.begin(); qit != qterms.end(); qit++) { termfreqs[*qit] = xrdb.get_termfreq(*qit) / doccnt; LOGABS(("setDbWideQTermFreqs: [%s] db freq %.1e\n", qit->c_str(), termfreqs[*qit])); } } // Compute matched terms quality coefficients for a matched document by // retrieving the Within Document Frequencies and multiplying by // overal term frequency, then using log-based thresholds. // 2012: it's not too clear to me why exactly we do the log thresholds thing. // Preferring terms wich are rare either or both in the db and the document // seems reasonable though // To avoid setting a high quality for a low frequency expansion of a // common stem, which seems wrong, we group the terms by // root, compute a frequency for the group from the sum of member // occurrences, and let the frequency for each group member be the // aggregated frequency. double Query::Native::qualityTerms(Xapian::docid docid, const vector<string>& terms, multimap<double, vector<string> >& byQ) { LOGABS(("qualityTerms\n")); setDbWideQTermsFreqs(); map<string, double> termQcoefs; double totalweight = 0; Xapian::Database &xrdb = m_q->m_db->m_ndb->xrdb; double doclen = xrdb.get_doclength(docid); if (doclen == 0) doclen = 1; HighlightData hld; if (!m_q->m_sd.isNull()) { m_q->m_sd->getTerms(hld); } #ifdef DEBUGABSTRACT { string deb; hld.toString(deb); LOGABS(("qualityTerms: hld: %s\n", deb.c_str())); } #endif // Group the input terms by the user term they were possibly expanded from map<string, vector<string> > byRoot; for (vector<string>::const_iterator qit = terms.begin(); qit != terms.end(); qit++) { bool found = false; map<string, string>::const_iterator eit = hld.terms.find(*qit); if (eit != hld.terms.end()) { byRoot[eit->second].push_back(*qit); } else { LOGDEB0(("qualityTerms: [%s] not found in hld\n", (*qit).c_str())); byRoot[*qit].push_back(*qit); } } #ifdef DEBUGABSTRACT { string byRootstr; for (map<string, vector<string> >::const_iterator debit = byRoot.begin(); debit != byRoot.end(); debit++) { byRootstr.append("[").append(debit->first).append("]->"); for (vector<string>::const_iterator it = debit->second.begin(); it != debit->second.end(); it++) { byRootstr.append("[").append(*it).append("] "); } byRootstr.append("\n"); } LOGABS(("\nqualityTerms: uterms to terms: %s\n", byRootstr.c_str())); } #endif // Compute in-document and global frequencies for the groups. map<string, double> grpwdfs; map<string, double> grptfreqs; for (map<string, vector<string> >::const_iterator git = byRoot.begin(); git != byRoot.end(); git++) { for (vector<string>::const_iterator qit = git->second.begin(); qit != git->second.end(); qit++) { Xapian::TermIterator term = xrdb.termlist_begin(docid); term.skip_to(*qit); if (term != xrdb.termlist_end(docid) && *term == *qit) { if (grpwdfs.find(git->first) != grpwdfs.end()) { grpwdfs[git->first] = term.get_wdf() / doclen; grptfreqs[git->first] = termfreqs[*qit]; } else { grpwdfs[git->first] += term.get_wdf() / doclen; grptfreqs[git->first] += termfreqs[*qit]; } } } } // Build a sorted by quality container for the groups for (map<string, vector<string> >::const_iterator git = byRoot.begin(); git != byRoot.end(); git++) { double q = (grpwdfs[git->first]) * grptfreqs[git->first]; q = -log10(q); if (q < 3) { q = 0.05; } else if (q < 4) { q = 0.3; } else if (q < 5) { q = 0.7; } else if (q < 6) { q = 0.8; } else { q = 1; } totalweight += q; byQ.insert(pair<double, vector<string> >(q, git->second)); } #ifdef DEBUGABSTRACT for (multimap<double, vector<string> >::reverse_iterator mit= byQ.rbegin(); mit != byQ.rend(); mit++) { LOGABS(("qualityTerms: group\n")); for (vector<string>::const_iterator qit = mit->second.begin(); qit != mit->second.end(); qit++) { LOGABS(("%.1e->[%s]\n", mit->first, qit->c_str())); } } #endif return totalweight; } // Return page number for first match of "significant" term. int Query::Native::getFirstMatchPage(Xapian::docid docid, string& term) { if (!m_q|| !m_q->m_db || !m_q->m_db->m_ndb || !m_q->m_db->m_ndb->m_isopen) { LOGERR(("Query::getFirstMatchPage: no db\n")); return -1; } Rcl::Db::Native *ndb(m_q->m_db->m_ndb); Xapian::Database& xrdb(ndb->xrdb); vector<string> terms; getMatchTerms(docid, terms); if (terms.empty()) { LOGDEB(("getFirstMatchPage: empty match term list (field match?)\n")); return -1; } vector<int> pagepos; ndb->getPagePositions(docid, pagepos); if (pagepos.empty()) return -1; setDbWideQTermsFreqs(); // We try to use a page which matches the "best" term. Get a sorted list multimap<double, vector<string> > byQ; double totalweight = qualityTerms(docid, terms, byQ); for (multimap<double, vector<string> >::reverse_iterator mit = byQ.rbegin(); mit != byQ.rend(); mit++) { for (vector<string>::const_iterator qit = mit->second.begin(); qit != mit->second.end(); qit++) { string qterm = *qit; Xapian::PositionIterator pos; string emptys; try { for (pos = xrdb.positionlist_begin(docid, qterm); pos != xrdb.positionlist_end(docid, qterm); pos++) { int pagenum = ndb->getPageNumberForPosition(pagepos, *pos); if (pagenum > 0) { term = qterm; return pagenum; } } } catch (...) { // Term does not occur. No problem. } } } return -1; } // Build a document abstract by extracting text chunks around the query terms // This uses the db termlists, not the original document. // // DatabaseModified and other general exceptions are catched and // possibly retried by our caller int Query::Native::makeAbstract(Xapian::docid docid, vector<Snippet>& vabs, int imaxoccs, int ictxwords) { Chrono chron; LOGABS(("makeAbstract: docid %ld imaxoccs %d ictxwords %d\n", long(docid), imaxoccs, ictxwords)); // The (unprefixed) terms matched by this document vector<string> matchedTerms; getMatchTerms(docid, matchedTerms); if (matchedTerms.empty()) { LOGDEB(("makeAbstract::Empty term list\n")); return ABSRES_ERROR; } listList("Match terms: ", matchedTerms); // Retrieve the term frequencies for the query terms. This is // actually computed only once for a query, and for all terms in // the query (not only the matches for this doc) setDbWideQTermsFreqs(); // Build a sorted by quality container for the match terms We are // going to try and show text around the less common search terms. // Terms issued from an original one by stem expansion are // aggregated by the qualityTerms() routine. multimap<double, vector<string> > byQ; double totalweight = qualityTerms(docid, matchedTerms, byQ); LOGABS(("makeAbstract:%d: computed Qcoefs.\n", chron.ms())); // This can't happen, but would crash us if (totalweight == 0.0) { LOGERR(("makeAbstract: totalweight == 0.0 !\n")); return ABSRES_ERROR; } Rcl::Db::Native *ndb(m_q->m_db->m_ndb); Xapian::Database& xrdb(ndb->xrdb); /////////////////// // For each of the query terms, ask xapian for its positions list // in the document. For each position entry, insert it and its // neighbours in the set of 'interesting' positions // The terms 'array' that we partially populate with the document // terms, at their positions around the search terms positions: map<unsigned int, string> sparseDoc; // Also remember apart the search term positions so that we can list // them with their snippets. STD_UNORDERED_SET<unsigned int> searchTermPositions; // Remember max position. Used to stop walking positions lists while // populating the adjacent slots. unsigned int maxpos = 0; // Total number of occurences for all terms. We stop when we have too much unsigned int totaloccs = 0; // Total number of slots we populate. The 7 is taken as // average word size. It was a mistake to have the user max // abstract size parameter in characters, we basically only deal // with words. We used to limit the character size at the end, but // this damaged our careful selection of terms const unsigned int maxtotaloccs = imaxoccs > 0 ? imaxoccs : m_q->m_db->getAbsLen() /(7 * (m_q->m_db->getAbsCtxLen() + 1)); int ctxwords = ictxwords == -1 ? m_q->m_db->getAbsCtxLen() : ictxwords; LOGABS(("makeAbstract:%d: mxttloccs %d ctxwords %d\n", chron.ms(), maxtotaloccs, ctxwords)); int ret = ABSRES_OK; // Let's go populate for (multimap<double, vector<string> >::reverse_iterator mit = byQ.rbegin(); mit != byQ.rend(); mit++) { unsigned int maxgrpoccs; float q; if (byQ.size() == 1) { maxgrpoccs = maxtotaloccs; q = 1.0; } else { // We give more slots to the better term groups q = mit->first / totalweight; maxgrpoccs = int(ceil(maxtotaloccs * q)); } unsigned int grpoccs = 0; for (vector<string>::const_iterator qit = mit->second.begin(); qit != mit->second.end(); qit++) { // Group done ? if (grpoccs >= maxgrpoccs) break; string qterm = *qit; LOGABS(("makeAbstract: [%s] %d max grp occs (coef %.2f)\n", qterm.c_str(), maxgrpoccs, q)); // The match term may span several words int qtrmwrdcnt = TextSplit::countWords(qterm, TextSplit::TXTS_NOSPANS); Xapian::PositionIterator pos; // There may be query terms not in this doc. This raises an // exception when requesting the position list, we catch it ?? // Not clear how this can happen because we are walking the // match list returned by Xapian. Maybe something with the // fields? string emptys; try { for (pos = xrdb.positionlist_begin(docid, qterm); pos != xrdb.positionlist_end(docid, qterm); pos++) { int ipos = *pos; if (ipos < int(baseTextPosition)) // Not in text body continue; LOGABS(("makeAbstract: [%s] at pos %d grpoccs %d maxgrpoccs" " %d\n", qterm.c_str(), ipos, grpoccs, maxgrpoccs)); totaloccs++; grpoccs++; // Add adjacent slots to the set to populate at next // step by inserting empty strings. Special provisions // for adding ellipsis and for positions overlapped by // the match term. unsigned int sta = MAX(int(baseTextPosition), ipos - ctxwords); unsigned int sto = ipos + qtrmwrdcnt-1 + m_q->m_db->getAbsCtxLen(); for (unsigned int ii = sta; ii <= sto; ii++) { if (ii == (unsigned int)ipos) { sparseDoc[ii] = qterm; searchTermPositions.insert(ii); if (ii > maxpos) maxpos = ii; } else if (ii > (unsigned int)ipos && ii < (unsigned int)ipos + qtrmwrdcnt) { sparseDoc[ii] = occupiedmarker; } else if (!sparseDoc[ii].compare(cstr_ellipsis)) { // For an empty slot, the test has a side // effect of inserting an empty string which // is what we want. sparseDoc[ii] = emptys; } } // Add ellipsis at the end. This may be replaced later by // an overlapping extract. Take care not to replace an // empty string here, we really want an empty slot, // use find() if (sparseDoc.find(sto+1) == sparseDoc.end()) { sparseDoc[sto+1] = cstr_ellipsis; } // Group done ? if (grpoccs >= maxgrpoccs) { ret |= ABSRES_TRUNC; LOGABS(("Db::makeAbstract: max group occs cutoff\n")); break; } // Global done ? if (totaloccs >= maxtotaloccs) { ret |= ABSRES_TRUNC; LOGABS(("Db::makeAbstract: max occurrences cutoff\n")); break; } } } catch (...) { // Term does not occur. No problem. } if (totaloccs >= maxtotaloccs) { ret |= ABSRES_TRUNC; LOGABS(("Db::makeAbstract: max1 occurrences cutoff\n")); break; } } } maxpos += ctxwords + 1; LOGABS(("makeAbstract:%d:chosen number of positions %d\n", chron.millis(), totaloccs)); // This can happen if there are term occurences in the keywords // etc. but not elsewhere ? if (totaloccs == 0) { LOGDEB(("makeAbstract: no occurrences\n")); return ABSRES_OK; } // Walk all document's terms position lists and populate slots // around the query terms. We arbitrarily truncate the list to // avoid taking forever. If we do cutoff, the abstract may be // inconsistant (missing words, potentially altering meaning), // which is bad. { Xapian::TermIterator term; int cutoff = m_q->m_snipMaxPosWalk; for (term = xrdb.termlist_begin(docid); term != xrdb.termlist_end(docid); term++) { // Ignore prefixed terms if (has_prefix(*term)) continue; if (m_q->m_snipMaxPosWalk > 0 && cutoff-- < 0) { ret |= ABSRES_TERMMISS; LOGDEB0(("makeAbstract: max term count cutoff %d\n", m_q->m_snipMaxPosWalk)); break; } map<unsigned int, string>::iterator vit; Xapian::PositionIterator pos; for (pos = xrdb.positionlist_begin(docid, *term); pos != xrdb.positionlist_end(docid, *term); pos++) { if (m_q->m_snipMaxPosWalk > 0 && cutoff-- < 0) { ret |= ABSRES_TERMMISS; LOGDEB0(("makeAbstract: max term count cutoff %d\n", m_q->m_snipMaxPosWalk)); break; } // If we are beyond the max possible position, stop // for this term if (*pos > maxpos) { break; } if ((vit = sparseDoc.find(*pos)) != sparseDoc.end()) { // Don't replace a term: the terms list is in // alphabetic order, and we may have several terms // at the same position, we want to keep only the // first one (ie: dockes and dockes@wanadoo.fr) if (vit->second.empty()) { LOGDEB2(("makeAbstract: populating: [%s] at %d\n", (*term).c_str(), *pos)); sparseDoc[*pos] = *term; } } } } } #if 0 // Debug only: output the full term[position] vector bool epty = false; int ipos = 0; for (map<unsigned int, string>::iterator it = sparseDoc.begin(); it != sparseDoc.end(); it++, ipos++) { if (it->empty()) { if (!epty) LOGDEB(("makeAbstract:vec[%d]: [%s]\n", ipos, it->c_str())); epty=true; } else { epty = false; LOGDEB(("makeAbstract:vec[%d]: [%s]\n", ipos, it->c_str())); } } #endif vector<int> vpbreaks; ndb->getPagePositions(docid, vpbreaks); LOGABS(("makeAbstract:%d: extracting. Got %u pages\n", chron.millis(), vpbreaks.size())); // Finally build the abstract by walking the map (in order of position) vabs.clear(); string chunk; bool incjk = false; int page = 0; string term; for (map<unsigned int, string>::const_iterator it = sparseDoc.begin(); it != sparseDoc.end(); it++) { LOGDEB2(("Abtract:output %u -> [%s]\n", it->first, it->second.c_str())); if (!occupiedmarker.compare(it->second)) { LOGDEB(("Abstract: qtrm position not filled ??\n")); continue; } if (chunk.empty() && !vpbreaks.empty()) { page = ndb->getPageNumberForPosition(vpbreaks, it->first); if (page < 0) page = 0; term.clear(); } Utf8Iter uit(it->second); bool newcjk = false; if (TextSplit::isCJK(*uit)) newcjk = true; if (!incjk || (incjk && !newcjk)) chunk += " "; incjk = newcjk; if (searchTermPositions.find(it->first) != searchTermPositions.end()) term = it->second; if (it->second == cstr_ellipsis) { vabs.push_back(Snippet(page, chunk).setTerm(term)); chunk.clear(); } else { if (it->second.compare(end_of_field_term) && it->second.compare(start_of_field_term)) chunk += it->second; } } if (!chunk.empty()) vabs.push_back(Snippet(page, chunk).setTerm(term)); LOGDEB2(("makeAbtract: done in %d mS\n", chron.millis())); return ret; } } �������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/����������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12602163537�013156� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/00README.txt����������������������������������������������������������������������0000644�0001750�0001750�00000001360�12602163537�015014� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Recoll PHP extension: Author: Wenqiang Song (wsong.cn, google mail) This has minimum features for now. The php/sample/ subdirectory has a minimal script which demonstrates the interface. Building the extension needs the librcl.a library (recoll-xxx/lib/librcl.a) to have been built with PIC objects. Use "configure --enable-pic" in the top Recoll directory, then "make". There is no significant disadvantage in using PIC objects for everything so you need not bother having different builds for the extensions and the programs. The php/recoll/ subdirectory has the C++ code and the build script (make.sh). You'll need to "make install" after building. If you want to clean up the php/recoll/ directory, you can run phpize --clean in there. ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/sample/���������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12602163537�014437� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/sample/shell.php������������������������������������������������������������������0000644�0001750�0001750�00000000773�12602163537�016266� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?php $splitter=chr(7).chr(8).chr(1).chr(2); $query = recoll_connect(); $rescnt = $query->query("python",120,16); if( false == $rescnt ) { echo "error during query\n"; var_dump($rescnt); return; } print "total results ".$rescnt."\n"; for ($i = 0; $i < $rescnt; $i++) { $res = $query->get_doc($i); if( false == $res) { echo "error\n"; return; } $token=strtok($res,$splitter); while ($token != false) { echo "$token\n"; $token = strtok($splitter); } } ?> �����recoll-1.21.5/php/recoll/���������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12602163571�014434� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/recoll/config.m4������������������������������������������������������������������0000644�0001750�0001750�00000001231�12602163537�016142� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������PHP_ARG_ENABLE(recoll, [Whether to enable the "recoll" extension], [ --enable-recoll Enable "recoll" extension support]) if test $PHP_RECOLL != "no"; then PHP_REQUIRE_CXX() PHP_SUBST(RECOLL_SHARED_LIBADD) PHP_ADD_INCLUDE(../../utils) PHP_ADD_INCLUDE(../../common) PHP_ADD_INCLUDE(../../rcldb) PHP_ADD_INCLUDE(../../query) PHP_ADD_INCLUDE(../../unac) PHP_ADD_INCLUDE(../../internfile) PHP_ADD_LIBRARY_WITH_PATH(recoll, ../../lib, RECOLL_SHARED_LIBADD) PHP_ADD_LIBRARY(xapian, , RECOLL_SHARED_LIBADD) PHP_ADD_LIBRARY(stdc++, 1, RECOLL_SHARED_LIBADD) PHP_NEW_EXTENSION(recoll, recoll.cpp, $ext_shared) fi �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/recoll/recoll.cpp�����������������������������������������������������������������0000644�0001750�0001750�00000014172�12602163571�016425� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * First Draft 2010/01/22 * Wenqiang Song * wsong.cn@gmail.com */ #include "php_recoll.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/stat.h> #include <limits.h> #include <iostream> #include "rcldb.h" #include "rclquery.h" #include "rclconfig.h" #include "pathut.h" #include "rclinit.h" #include "debuglog.h" #include "wasatorcl.h" #include "internfile.h" #include "wipedir.h" #include "transcode.h" using namespace std; /* * Class Query Definition */ zend_object_handlers query_object_handlers; zend_class_entry *query_ce; struct query_object { zend_object std; Rcl::Query *pRclQuery; Rcl::Db *pRclDb; }; void query_free_storage(void *object TSRMLS_DC) { query_object *obj = (query_object *)object; delete obj->pRclQuery; delete obj->pRclDb; zend_hash_destroy(obj->std.properties); FREE_HASHTABLE(obj->std.properties); efree(obj); } zend_object_value query_create_handler(zend_class_entry *type TSRMLS_DC) { zval *tmp; zend_object_value retval; query_object *obj = (query_object *)emalloc(sizeof(query_object)); memset(obj, 0, sizeof(query_object)); obj->std.ce = type; ALLOC_HASHTABLE(obj->std.properties); zend_hash_init(obj->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0); zend_hash_copy(obj->std.properties, &type->default_properties, (copy_ctor_func_t)zval_add_ref, (void *)&tmp, sizeof(zval *)); retval.handle = zend_objects_store_put(obj, NULL, query_free_storage, NULL TSRMLS_CC); retval.handlers = &query_object_handlers; return retval; } PHP_METHOD(Query, query) { string reason; string a_config; char *qs_c; int qs_len; long maxchars; long ctxwords; if (zend_parse_parameters(3 TSRMLS_CC, "sll", &qs_c, &qs_len, &maxchars, &ctxwords) == FAILURE) { printf("failed to get parameters\n"); RETURN_BOOL(false); } string qs = qs_c; RclConfig *rclconfig = recollinit(0, 0, reason, &a_config); if (!rclconfig || !rclconfig->ok()) { fprintf(stderr, "Recoll init failed: %s\n", reason.c_str()); RETURN_BOOL(false); } Rcl::Db *pRclDb = new Rcl::Db(rclconfig); if (!pRclDb->open(Rcl::Db::DbRO)) { cerr << "Cant open database in " << rclconfig->getDbDir() << " reason: " << pRclDb->getReason() << endl; RETURN_BOOL(false); } pRclDb->setAbstractParams(-1, maxchars, ctxwords); Rcl::SearchData *sd = 0; // jf: the original implementation built an AND clause. It would // be nice to offer an option, but the next best thing is to // default to the query language sd = wasaStringToRcl(rclconfig, "english", qs, reason); if (!sd) { cerr << "Query string interpretation failed: " << reason << endl; RETURN_BOOL(false); } RefCntr<Rcl::SearchData> rq(sd); Rcl::Query *pRclQuery = new Rcl::Query(pRclDb); pRclQuery->setQuery(rq); query_object *obj = (query_object *)zend_object_store_get_object(getThis() TSRMLS_CC); obj->pRclQuery = pRclQuery; obj->pRclDb = pRclDb; int rescnt = pRclQuery->getResCnt(); RETURN_LONG(rescnt); /* -1 means no result */ } PHP_METHOD(Query, get_doc) { Rcl::Query *pRclQuery; query_object *obj = (query_object *)zend_object_store_get_object( getThis() TSRMLS_CC); pRclQuery = obj->pRclQuery; if(NULL == pRclQuery) { printf("error, NULL pointer pRclQuery\n"); RETURN_BOOL(false); } long index; if (zend_parse_parameters(1 TSRMLS_CC, "l", &index) == FAILURE) { RETURN_BOOL(false); } Rcl::Doc doc; if (!pRclQuery->getDoc(index, doc)) { RETURN_BOOL(false); } string abs; pRclQuery->makeDocAbstract(doc, abs); char splitter[] = {7,8,1,2,0}; char ret_string[1000]; snprintf(ret_string, 1000, "mime:%s%surl:%s%stitle:%s%sabs:%s", doc.mimetype.c_str(),splitter, doc.url.c_str(),splitter, doc.meta[Rcl::Doc::keytt].c_str(), splitter, abs.c_str()); RETURN_STRING(ret_string, 1); } function_entry query_methods[] = { PHP_ME(Query, query, NULL, ZEND_ACC_PUBLIC) PHP_ME(Query, get_doc, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; /* End of Class Query Definition */ PHP_FUNCTION(recoll_connect) { zval *object; ALLOC_INIT_ZVAL(object); object_init_ex(object, query_ce); query_object *obj = (query_object *)zend_object_store_get_object(object TSRMLS_CC); obj->pRclQuery = NULL; RETURN_ZVAL(object,NULL,NULL); } function_entry recoll_functions[] = { PHP_FE(recoll_connect, NULL) {NULL, NULL, NULL} }; PHP_MINIT_FUNCTION(recoll) { zend_class_entry ce; INIT_CLASS_ENTRY(ce, "Query", query_methods); query_ce = zend_register_internal_class(&ce TSRMLS_CC); query_ce->create_object = query_create_handler; memcpy(&query_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); query_object_handlers.clone_obj = NULL; return SUCCESS; } zend_module_entry recoll_module_entry = { #if ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, #endif PHP_RECOLL_EXTNAME, recoll_functions, /* Functions */ PHP_MINIT(recoll), /* MINIT */ NULL, /* MSHUTDOWN */ NULL, /* RINIT */ NULL, /* RSHUTDOWN */ NULL, /* MINFO */ #if ZEND_MODULE_API_NO >= 20010901 PHP_RECOLL_EXTVER, #endif STANDARD_MODULE_PROPERTIES }; #ifdef COMPILE_DL_RECOLL extern "C" { ZEND_GET_MODULE(recoll) } #endif ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/recoll/php_recoll.h���������������������������������������������������������������0000644�0001750�0001750�00000000477�12602163537�016746� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef PHP_RECOLL_H #define PHP_RECOLL_H #define PHP_RECOLL_EXTNAME "recoll" #define PHP_RECOLL_EXTVER "0.1" #ifdef HAVE_CONFIG_H #include "config.h" #endif extern "C" { #include "php.h" } extern zend_module_entry recoll_module_entry; #define phpext_recoll_ptr &recoll_module_entry; #endif /* PHP_RECOLL_H */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/php/recoll/make.sh��������������������������������������������������������������������0000755�0001750�0001750�00000000640�12602163537�015712� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh phpize --clean phpize # The version of libtool shipped with php at this time (2010-01-29) # is buggy (ECHO/echo typo...) # autoreconf -i should replace them with the system versions # Another approach would be to ship an autoconf'd version to avoid # needing autotools on the target compile system. What a mess. rm -f ltmain.sh libtool rm -f aclocal.m4 autoreconf -i ./configure --enable-recoll make -j3 ������������������������������������������������������������������������������������������������recoll-1.21.5/lib/����������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12652665251�013142� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/lib/mkMake.in�������������������������������������������������������������������������0000755�0001750�0001750�00000012373�12602163571�014701� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh mk=Makefile depth=${depth:-..} sys=`uname` SRC_CPP="\ ${depth}/aspell/rclaspell.cpp \ ${depth}/common/beaglequeuecache.cpp \ ${depth}/common/cstr.cpp \ ${depth}/common/rclconfig.cpp \ ${depth}/common/rclinit.cpp \ ${depth}/common/textsplit.cpp \ ${depth}/common/unacpp.cpp \ ${depth}/index/beaglequeue.cpp \ ${depth}/index/bglfetcher.cpp \ ${depth}/index/checkretryfailed.cpp \ ${depth}/index/fetcher.cpp \ ${depth}/index/fsfetcher.cpp \ ${depth}/index/fsindexer.cpp \ ${depth}/index/indexer.cpp \ ${depth}/index/mimetype.cpp \ ${depth}/index/subtreelist.cpp \ ${depth}/internfile/htmlparse.cpp \ ${depth}/internfile/internfile.cpp \ ${depth}/internfile/mh_exec.cpp \ ${depth}/internfile/mh_execm.cpp \ ${depth}/internfile/mh_html.cpp \ ${depth}/internfile/mh_mail.cpp \ ${depth}/internfile/mh_mbox.cpp \ ${depth}/internfile/mh_text.cpp \ ${depth}/internfile/mimehandler.cpp \ ${depth}/internfile/myhtmlparse.cpp \ ${depth}/internfile/extrameta.cpp \ ${depth}/internfile/txtdcode.cpp \ ${depth}/internfile/uncomp.cpp \ ${depth}/query/docseq.cpp \ ${depth}/query/docseqdb.cpp \ ${depth}/query/docseqhist.cpp \ ${depth}/query/filtseq.cpp \ ${depth}/query/dynconf.cpp \ ${depth}/query/plaintorich.cpp \ ${depth}/query/recollq.cpp \ ${depth}/query/reslistpager.cpp \ ${depth}/query/sortseq.cpp \ ${depth}/query/wasaparse.cpp \ ${depth}/query/wasaparse.tab.cpp \ ${depth}/rcldb/daterange.cpp \ ${depth}/rcldb/expansiondbs.cpp \ ${depth}/rcldb/rclabstract.cpp \ ${depth}/rcldb/rcldb.cpp \ ${depth}/rcldb/rcldoc.cpp \ ${depth}/rcldb/rcldups.cpp \ ${depth}/rcldb/rclquery.cpp \ ${depth}/rcldb/rclterms.cpp \ ${depth}/rcldb/searchdata.cpp \ ${depth}/rcldb/searchdatatox.cpp \ ${depth}/rcldb/searchdataxml.cpp \ ${depth}/rcldb/stemdb.cpp \ ${depth}/rcldb/stoplist.cpp \ ${depth}/rcldb/synfamily.cpp \ ${depth}/unac/unac.cpp \ ${depth}/utils/appformime.cpp \ ${depth}/utils/base64.cpp \ ${depth}/utils/circache.cpp \ ${depth}/utils/closefrom.cpp \ ${depth}/utils/conftree.cpp \ ${depth}/utils/copyfile.cpp \ ${depth}/utils/cpuconf.cpp \ ${depth}/utils/debuglog.cpp \ ${depth}/utils/ecrontab.cpp \ ${depth}/utils/execmd.cpp \ ${depth}/utils/fstreewalk.cpp \ ${depth}/utils/idfile.cpp \ ${depth}/utils/fileudi.cpp \ ${depth}/utils/md5.cpp \ ${depth}/utils/md5ut.cpp \ ${depth}/utils/mimeparse.cpp \ ${depth}/utils/netcon.cpp \ ${depth}/utils/pathut.cpp \ ${depth}/utils/pxattr.cpp \ ${depth}/utils/rclionice.cpp \ ${depth}/utils/readfile.cpp \ ${depth}/utils/smallut.cpp \ ${depth}/utils/strmatcher.cpp \ ${depth}/utils/transcode.cpp \ ${depth}/utils/wipedir.cpp \ ${depth}/utils/x11mon.cpp \ " SRC_CC="\ ${depth}/bincimapmime/mime-parsefull.cc \ ${depth}/bincimapmime/mime-parseonlyheader.cc \ ${depth}/bincimapmime/mime-printbody.cc \ ${depth}/bincimapmime/mime.cc \ ${depth}/bincimapmime/convert.cc \ ${depth}/bincimapmime/iodevice.cc \ ${depth}/bincimapmime/iofactory.cc \ " for c in $SRC_CPP;do o=`basename $c .cpp`.o OBJS="$OBJS $o" d=`basename $c .cpp`.dep cp /dev/null $d s=`basename $c .cpp`.dep.stamp DEPS="$DEPS $s" done for c in $SRC_CC;do o=`basename $c .cc`.o OBJS="$OBJS $o" d=`basename $c .cc`.dep cp /dev/null $d s=`basename $c .cc`.dep.stamp DEPS="$DEPS $s" done # The objects need to depend on the localdefs file in case it is # changed by a re-configure (it has the local compile flags) defs=\$\(depth\)/mk/localdefs test -f $mk && chmod +w $mk NODYNLIB=@NODYNLIB@ RCLLIBVERSION=@RCLLIBVERSION@ cat > $mk <<EOF # DONT EDIT BY HAND: created by script mkMake depth = ${depth} include \$(depth)/mk/sysconf LIBRECOLL=librecoll.so.${RCLLIBVERSION} LIBS = librecoll.a ${NODYNLIB}LIBS = librecoll.a \$(LIBRECOLL) all: \$(LIBS) OBJS = $OBJS DEPS = $DEPS librecoll.a : \$(DEPS) \$(OBJS) \$(AR) ru librecoll.a \$(OBJS) \$(RANLIB) librecoll.a # Note that we are using the Recoll release number in the soname. There is # no effort whatsoever to maintain any kind of ABI compat in this lib. Only # programs or modules from the same Recoll release can be compatible. \$(LIBRECOLL): \$(DEPS) \$(OBJS) \$(CXX) -shared -Wl,--no-undefined -Wl,--warn-unresolved-symbols \ \$(LDFLAGS) -Wl,-soname=\$(LIBRECOLL) -o \$(LIBRECOLL) \$(OBJS) \ \$(LIBXAPIAN) \$(LIBICONV) \$(X_LIBX11) \$(LIBSYS) rm -f librecoll.so ln -s \$(LIBRECOLL) librecoll.so EOF for c in $SRC_CPP;do o=`basename $c .cpp`.o echo "$o : $c $defs" >> $mk echo " \$(CXX) \$(ALL_CXXFLAGS) -c $c" >> $mk done for c in $SRC_CC;do o=`basename $c .cc`.o echo "$o : $c $defs" >> $mk echo " \$(CXX) \$(ALL_CXXFLAGS) -c $c" >> $mk done cat >> $mk <<EOF depend: \$(DEPS) clean: rm -f \$(OBJS) \$(LIBS) \$(DEPS) librecoll.so *.stamp for i in *.dep;do test -f \$\$i && cp /dev/null \$\$i;done distclean: clean rm -f *.dep EOF for c in $SRC_CPP;do d=`basename $c .cpp`.dep s=`basename $c .cpp`.dep.stamp echo "$s : $c $defs" >> $mk echo " \$(CXX) -M \$(ALL_CXXFLAGS) $c > $d" >> $mk echo " touch $s" >> $mk done for c in $SRC_CPP;do d=`basename $c .cpp`.dep echo "include $d" >> $mk done for c in $SRC_CC;do d=`basename $c .cc`.dep s=`basename $c .cc`.dep.stamp echo "$s : $c $defs" >> $mk echo " \$(CXX) -M \$(ALL_CXXFLAGS) $c > $d" >> $mk echo " touch $s" >> $mk done for c in $SRC_CC;do d=`basename $c .cc`.dep echo "include $d" >> $mk done ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/VERSION�������������������������������������������������������������������������������0000644�0001750�0001750�00000000007�12652665040�013435� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������1.21.5 �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/���������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12652665251�014533� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_execm.h�����������������������������������������������������������������0000644�0001750�0001750�00000012062�12602163571�016463� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MH_EXECM_H_INCLUDED_ #define _MH_EXECM_H_INCLUDED_ #include "mh_exec.h" #include "execmd.h" /** * Turn external document into internal one by executing an external filter. * * The command to execute, and its parameters, are stored in the "params" * which is built in mimehandler.cpp out of data from the mimeconf file. * * This version uses persistent filters which can handle multiple requests * without exiting (both multiple files and multiple documents per file), * with a simple question/response protocol. * * The data is exchanged in TLV fashion, in a way that should be * usable in most script languages. The basic unit of data has one line * with a data type and a count (both ASCII), followed by the data. A * 'message' is made of one or several units or tags and ends with one empty * line. * * Example from recollindex (the message begins before 'Filename' and has * 'Filename' and 'Ipath' tags): * Filename: 24 /my/home/mail/somefolderIpath: 2 22 <Message ends here: because of the empty line after '22' * * Example answer, with 'Mimetype' and 'Data' tags * Mimetype: 10 text/plainData: 10 0123456789 <Message ends here because of empty line * * This format is both extensible and reasonably easy to parse. * While it's more fitted for python or perl on the script side, it * should even be sort of usable from the shell (e.g.: use dd to read * the counted data). Most alternatives would need data encoding in * some cases. * * Higher level dialog: * The C++ program is the master and sends request messages to the script. * Both sides of the communication should be prepared to receive and discard * unknown tags. * The messages normally have the following tags: * - Filename: the file to process. This can be empty meaning that we * are requesting the next document in the current file. * - Ipath: this will be present only if we are requesting a specific * subdocument inside a container file (typically for preview, at query * time). Absent during indexing (ipaths are generated and sent back from * the script) * - Mimetype: this is the mime type for the (possibly container) file. * Can be useful to filters which handle multiple types, like rclaudio. * * The script answers with messages having the following fields: * - Document: translated document data. * - Ipath: ipath for the returned document. Can be used at query time to * extract a specific subdocument for preview. Not present or empty for * non-container files and for the "self" document of a container. * - Mimetype: mime type for the returned data. * This is optional. For multi-document filters, if mimetype is * not present in the answer, the ipath must be a file-name-like * string which will be used to divine the mime type (this is used * typically with archives like Zip or Tar). If this fails, * the document will be handled as unknown type and the contents won't * be indexed. When neither ipath nor mimetype are present the default * is to attempt to treat the document as HTML. * - Charset: for document types for which it makes sense, and if the filter * has the information. * - Eofnow: empty field: no document is returned and we're at eof. * - Eofnext: empty field: file ends after the doc returned by this message. * - SubdocError: no subdoc returned by this request, but file goes on. * - FileError: error, stop for this file. */ class MimeHandlerExecMultiple : public MimeHandlerExec { ///////// // Things not reset by "clear()", additionally to those in MimeHandlerExec ExecCmd m_cmd; /////// End un-cleared stuff. public: MimeHandlerExecMultiple(RclConfig *cnf, const string& id) : MimeHandlerExec(cnf, id) {} // No resources to clean up, the ExecCmd destructor does it. virtual ~MimeHandlerExecMultiple() {} virtual bool set_document_file(const string& mt, const string &file_path) { m_filefirst = true; return MimeHandlerExec::set_document_file(mt, file_path); } virtual bool next_document(); // skip_to and clear inherited from MimeHandlerExec private: bool startCmd(); bool readDataElement(string& name, string& data); bool m_filefirst; int m_maxmemberkb; }; #endif /* _MH_EXECM_H_INCLUDED_ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_unknown.h���������������������������������������������������������������0000644�0001750�0001750�00000003360�12602163537�017064� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MH_UNKNOWN_H_INCLUDED_ #define _MH_UNKNOWN_H_INCLUDED_ #include <string> #include "cstr.h" #include "mimehandler.h" /** * Handler for files with no content handler: does nothing. * */ class MimeHandlerUnknown : public RecollFilter { public: MimeHandlerUnknown(RclConfig *cnf, const string& id) : RecollFilter(cnf, id) { } virtual ~MimeHandlerUnknown() { } virtual bool set_document_file(const string& mt, const string& fn) { RecollFilter::set_document_file(mt, fn); return m_havedoc = true; } virtual bool set_document_string(const string& mt, const string& s) { RecollFilter::set_document_string(mt, s); return m_havedoc = true; } virtual bool next_document() { if (m_havedoc == false) return false; m_havedoc = false; m_metaData[cstr_dj_keycontent] = cstr_null; m_metaData[cstr_dj_keymt] = cstr_textplain; return true; } virtual bool is_unknown() {return true;} }; #endif /* _MH_UNKNOWN_H_INCLUDED_ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_symlink.h���������������������������������������������������������������0000644�0001750�0001750�00000004241�12602163571�017050� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MH_SYMLINK_H_INCLUDED_ #define _MH_SYMLINK_H_INCLUDED_ #include <string> #include <unistd.h> #include <errno.h> #include "cstr.h" #include "mimehandler.h" #include "transcode.h" #include "pathut.h" #include "debuglog.h" /** Index symlink target * * Not sure that this is such a good idea, so it's disabled by default in * the config. Add inode/symlink = internal to the index section of mimeconf * to enable. */ class MimeHandlerSymlink : public RecollFilter { public: MimeHandlerSymlink(RclConfig *cnf, const std::string& id) : RecollFilter(cnf, id) { } virtual ~MimeHandlerSymlink() { } virtual bool set_document_file(const string& mt, const string& fn) { RecollFilter::set_document_file(mt, fn); m_fn = fn; return m_havedoc = true; } virtual bool next_document() { if (m_havedoc == false) return false; m_havedoc = false; m_metaData[cstr_dj_keycontent] = cstr_null; char lc[1024]; ssize_t bytes = readlink(m_fn.c_str(), lc, 1024); if (bytes != (ssize_t)-1) { string slc(lc, bytes); transcode(path_getsimple(slc), m_metaData[cstr_dj_keycontent], m_config->getDefCharset(true), "UTF-8"); } else { LOGDEB(("Symlink: readlink [%s] failed, errno %d\n", m_fn.c_str(), errno)); } m_metaData[cstr_dj_keymt] = cstr_textplain; return true; } private: std::string m_fn; }; #endif /* _MH_SYMLINK_H_INCLUDED_ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_mbox.cpp����������������������������������������������������������������0000644�0001750�0001750�00000046714�12602163571�016675� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_MH_MBOX #include "autoconfig.h" #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <time.h> #include <regex.h> #include <sys/stat.h> #include <errno.h> #include <cstring> #include <map> #include "cstr.h" #include "mimehandler.h" #include "debuglog.h" #include "readfile.h" #include "mh_mbox.h" #include "smallut.h" #include "rclconfig.h" #include "md5ut.h" #include "conftree.h" #include "ptmutex.h" using namespace std; // Define maximum message size for safety. 100MB would seem reasonable static const unsigned int max_mbox_member_size = 100 * 1024 * 1024; class FpKeeper { public: FpKeeper(FILE **fpp) : m_fpp(fpp) {} ~FpKeeper() { if (m_fpp && *m_fpp) { fclose(*m_fpp); *m_fpp = 0; } } private: FILE **m_fpp; }; static PTMutexInit o_mcache_mutex; /** * Handles a cache for message numbers to offset translations. Permits direct * accesses inside big folders instead of having to scan up to the right place * * Message offsets are saved to files stored under cfg(mboxcachedir), default * confdir/mboxcache. Mbox files smaller than cfg(mboxcacheminmbs) are not * cached. * Cache files are named as the md5 of the file UDI, which is kept in * the first block for possible collision detection. The 64 bits * offsets for all message "From_" lines follow. The format is purely * binary, values are not even byte-swapped to be proc-idependant. */ class MboxCache { public: typedef MimeHandlerMbox::mbhoff_type mbhoff_type; MboxCache() : m_ok(false), m_minfsize(0) { // Can't access rclconfig here, we're a static object, would // have to make sure it's initialized. } ~MboxCache() {} mbhoff_type get_offset(RclConfig *config, const string& udi, int msgnum) { LOGDEB0(("MboxCache::get_offsets: udi [%s] msgnum %d\n", udi.c_str(), msgnum)); if (!ok(config)) { LOGDEB0(("MboxCache::get_offsets: init failed\n")); return -1; } PTMutexLocker locker(o_mcache_mutex); string fn = makefilename(udi); FILE *fp = 0; if ((fp = fopen(fn.c_str(), "r")) == 0) { LOGDEB(("MboxCache::get_offsets: open failed, errno %d\n", errno)); return -1; } FpKeeper keeper(&fp); char blk1[o_b1size]; if (fread(blk1, 1, o_b1size, fp) != o_b1size) { LOGDEB0(("MboxCache::get_offsets: read blk1 errno %d\n", errno)); return -1; } ConfSimple cf(string(blk1, o_b1size)); string fudi; if (!cf.get("udi", fudi) || fudi.compare(udi)) { LOGINFO(("MboxCache::get_offset:badudi fn %s udi [%s], fudi [%s]\n", fn.c_str(), udi.c_str(), fudi.c_str())); return -1; } if (fseeko(fp, cacheoffset(msgnum), SEEK_SET) != 0) { LOGDEB0(("MboxCache::get_offsets: seek %lld errno %d\n", cacheoffset(msgnum), errno)); return -1; } mbhoff_type offset = -1; int ret; if ((ret = fread(&offset, 1, sizeof(mbhoff_type), fp)) != sizeof(mbhoff_type)) { LOGDEB0(("MboxCache::get_offsets: read ret %d errno %d\n", ret, errno)); return -1; } LOGDEB0(("MboxCache::get_offsets: ret %lld\n", (long long)offset)); return offset; } // Save array of offsets for a given file, designated by Udi void put_offsets(RclConfig *config, const string& udi, mbhoff_type fsize, vector<mbhoff_type>& offs) { LOGDEB0(("MboxCache::put_offsets: %u offsets\n", offs.size())); if (!ok(config) || !maybemakedir()) return; if (fsize < m_minfsize) return; PTMutexLocker locker(o_mcache_mutex); string fn = makefilename(udi); FILE *fp; if ((fp = fopen(fn.c_str(), "w")) == 0) { LOGDEB(("MboxCache::put_offsets: fopen errno %d\n", errno)); return; } FpKeeper keeper(&fp); string blk1; blk1.append("udi="); blk1.append(udi); blk1.append(cstr_newline); blk1.resize(o_b1size, 0); if (fwrite(blk1.c_str(), 1, o_b1size, fp) != o_b1size) { LOGDEB(("MboxCache::put_offsets: fwrite errno %d\n", errno)); return; } for (vector<mbhoff_type>::const_iterator it = offs.begin(); it != offs.end(); it++) { mbhoff_type off = *it; if (fwrite((char*)&off, 1, sizeof(mbhoff_type), fp) != sizeof(mbhoff_type)) { return; } } } // Check state, possibly initialize bool ok(RclConfig *config) { PTMutexLocker locker(o_mcache_mutex); if (m_minfsize == -1) return false; if (!m_ok) { int minmbs = 5; config->getConfParam("mboxcacheminmbs", &minmbs); if (minmbs < 0) { // minmbs set to negative to disable cache m_minfsize = -1; return false; } m_minfsize = minmbs * 1000 * 1000; config->getConfParam("mboxcachedir", m_dir); if (m_dir.empty()) m_dir = "mboxcache"; m_dir = path_tildexpand(m_dir); // If not an absolute path, compute relative to config dir if (m_dir.at(0) != '/') m_dir = path_cat(config->getConfDir(), m_dir); m_ok = true; } return m_ok; } private: bool m_ok; // Place where we store things string m_dir; // Don't cache smaller files. If -1, don't do anything. mbhoff_type m_minfsize; static const size_t o_b1size; // Create the cache directory if it does not exist bool maybemakedir() { struct stat st; if (stat(m_dir.c_str(), &st) != 0 && mkdir(m_dir.c_str(), 0700) != 0) { return false; } return true; } // Compute file name from udi string makefilename(const string& udi) { string digest, xdigest; MD5String(udi, digest); MD5HexPrint(digest, xdigest); return path_cat(m_dir, xdigest); } // Compute offset in cache file for the mbox offset of msgnum mbhoff_type cacheoffset(int msgnum) {// Msgnums are from 1 return o_b1size + (msgnum-1) * sizeof(mbhoff_type); } }; const size_t MboxCache::o_b1size = 1024; static class MboxCache o_mcache; static const string cstr_keyquirks("mhmboxquirks"); MimeHandlerMbox::~MimeHandlerMbox() { clear(); } void MimeHandlerMbox::clear() { m_fn.erase(); if (m_vfp) { fclose((FILE *)m_vfp); m_vfp = 0; } m_msgnum = m_lineno = 0; m_ipath.erase(); m_offsets.clear(); RecollFilter::clear(); } bool MimeHandlerMbox::set_document_file(const string& mt, const string &fn) { LOGDEB(("MimeHandlerMbox::set_document_file(%s)\n", fn.c_str())); RecollFilter::set_document_file(mt, fn); m_fn = fn; if (m_vfp) { fclose((FILE *)m_vfp); m_vfp = 0; } m_vfp = fopen(fn.c_str(), "r"); if (m_vfp == 0) { LOGERR(("MimeHandlerMail::set_document_file: error opening %s\n", fn.c_str())); return false; } #if defined O_NOATIME && O_NOATIME != 0 if (fcntl(fileno((FILE *)m_vfp), F_SETFL, O_NOATIME) < 0) { // perror("fcntl"); } #endif fseek((FILE *)m_vfp, 0, SEEK_END); m_fsize = ftell((FILE*)m_vfp); fseek((FILE*)m_vfp, 0, SEEK_SET); m_havedoc = true; m_offsets.clear(); m_quirks = 0; // Check for location-based quirks: string quirks; if (m_config && m_config->getConfParam(cstr_keyquirks, quirks)) { if (quirks == "tbird") { LOGDEB(("MimeHandlerMbox: setting quirks TBIRD\n")); m_quirks |= MBOXQUIRK_TBIRD; } } // And double check for thunderbird string tbirdmsf = fn + ".msf"; if ((m_quirks&MBOXQUIRK_TBIRD) == 0 && access(tbirdmsf.c_str(), 0) == 0) { LOGDEB(("MimeHandlerMbox: detected unconfigured tbird mbox in %s\n", fn.c_str())); m_quirks |= MBOXQUIRK_TBIRD; } return true; } #define LL 1024 typedef char line_type[LL+10]; static inline void stripendnl(line_type& line, int& ll) { ll = strlen(line); while (ll > 0) { if (line[ll-1] == '\n' || line[ll-1] == '\r') { line[ll-1] = 0; ll--; } else break; } } // The mbox format uses lines beginning with 'From ' as separator. // Mailers are supposed to quote any other lines beginning with // 'From ', turning it into '>From '. This should make it easy to detect // message boundaries by matching a '^From ' regular expression // Unfortunately this quoting is quite often incorrect in the real world. // // The rest of the format for the line is somewhat variable, but there will // be a 4 digit year somewhere... // The canonic format is the following, with a 24 characters date: // From toto@tutu.com Sat Sep 30 16:44:06 2000 // This resulted into the pattern for versions up to 1.9.0: // "^From .* [1-2][0-9][0-9][0-9]$" // // Some mailers add a time zone to the date, this is non-"standard", // but happens, like in: // From toto@truc.com Sat Sep 30 16:44:06 2000 -0400 // // This is taken into account in the new regexp, which also matches more // of the date format, to catch a few actual issues like // From http://www.itu.int/newsroom/press/releases/1998/NP-2.html: // Note that this *should* have been quoted. // // http://www.qmail.org/man/man5/mbox.html seems to indicate that the // fact that From_ is normally preceded by a blank line should not be // used, but we do it anyway (for now). // The same source indicates that arbitrary data can follow the date field // // A variety of pathologic From_ lines: // Bad date format: // From uucp Wed May 22 11:28 GMT 1996 // Added timezone at the end (ok, part of the "any data" after the date) // From qian2@fas.harvard.edu Sat Sep 30 16:44:06 2000 -0400 // Emacs VM botch ? Adds tz between hour and year // From dockes Wed Feb 23 10:31:20 +0100 2005 // From dockes Fri Dec 1 20:36:39 +0100 2006 // The modified regexp gives the exact same results on the ietf mail archive // and my own's. // Update, 2008-08-29: some old? Thunderbird versions apparently use a date // in "Date: " header format, like: From - Mon, 8 May 2006 10:57:32 // This was added as an alternative format. By the way it also fools "mail" and // emacs-vm, Recoll is not alone // Update: 2009-11-27: word after From may be quoted string: From "john bull" static const char *frompat = "^From[ ]+([^ ]+|\"[^\"]+\")[ ]+" // 'From (toto@tutu|"john bull") ' "[[:alpha:]]{3}[ ]+[[:alpha:]]{3}[ ]+[0-3 ][0-9][ ]+" // Fri Oct 26 "[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?[ ]+" // Time, seconds optional "([^ ]+[ ]+)?" // Optional tz "[12][0-9][0-9][0-9]" // Year, unanchored, more data may follow "|" // Or standard mail Date: header format "^From[ ]+[^ ]+[ ]+" // From toto@tutu "[[:alpha:]]{3},[ ]+[0-3]?[0-9][ ]+[[:alpha:]]{3}[ ]+" // Mon, 8 May "[12][0-9][0-9][0-9][ ]+" // Year "[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?" // Time, secs optional ; // Extreme thunderbird brokiness. Will sometimes use From lines // exactly like: From ^M (From followed by space and eol). We only // test for this if QUIRKS_TBIRD is set static const char *miniTbirdFrom = "^From $"; static regex_t fromregex; static regex_t minifromregex; static bool regcompiled; static PTMutexInit o_regex_mutex; static void compileregexes() { PTMutexLocker locker(o_regex_mutex); // As the initial test of regcompiled is unprotected the value may // have changed while we were waiting for the lock. Test again now // that we are alone. if (regcompiled) return; regcomp(&fromregex, frompat, REG_NOSUB|REG_EXTENDED); regcomp(&minifromregex, miniTbirdFrom, REG_NOSUB|REG_EXTENDED); regcompiled = true; } bool MimeHandlerMbox::next_document() { if (m_vfp == 0) { LOGERR(("MimeHandlerMbox::next_document: not open\n")); return false; } if (!m_havedoc) { return false; } FILE *fp = (FILE *)m_vfp; int mtarg = 0; if (!m_ipath.empty()) { sscanf(m_ipath.c_str(), "%d", &mtarg); } else if (m_forPreview) { // Can't preview an mbox. LOGDEB(("MimeHandlerMbox::next_document: can't preview folders!\n")); return false; } LOGDEB0(("MimeHandlerMbox::next_document: fn %s, msgnum %d mtarg %d \n", m_fn.c_str(), m_msgnum, mtarg)); if (mtarg == 0) mtarg = -1; if (!regcompiled) { compileregexes(); } // If we are called to retrieve a specific message, seek to bof // (then scan up to the message). This is for the case where the // same object is reused to fetch several messages (else the fp is // just opened no need for a seek). We could also check if the // current message number is lower than the requested one and // avoid rereading the whole thing in this case. But I'm not sure // we're ever used in this way (multiple retrieves on same // object). So: bool storeoffsets = true; if (mtarg > 0) { mbhoff_type off; line_type line; LOGDEB0(("MimeHandlerMbox::next_doc: mtarg %d m_udi[%s]\n", mtarg, m_udi.c_str())); if (!m_udi.empty() && (off = o_mcache.get_offset(m_config, m_udi, mtarg)) >= 0 && fseeko(fp, (off_t)off, SEEK_SET) >= 0 && fgets(line, LL, fp) && (!regexec(&fromregex, line, 0, 0, 0) || ((m_quirks & MBOXQUIRK_TBIRD) && !regexec(&minifromregex, line, 0, 0, 0))) ) { LOGDEB0(("MimeHandlerMbox: Cache: From_ Ok\n")); fseeko(fp, (off_t)off, SEEK_SET); m_msgnum = mtarg -1; storeoffsets = false; } else { fseek(fp, 0, SEEK_SET); m_msgnum = 0; } } off_t message_end = 0; bool iseof = false; bool hademptyline = true; string& msgtxt = m_metaData[cstr_dj_keycontent]; msgtxt.erase(); line_type line; for (;;) { message_end = ftello(fp); if (!fgets(line, LL, fp)) { LOGDEB2(("MimeHandlerMbox:next: eof\n")); iseof = true; m_msgnum++; break; } m_lineno++; int ll; stripendnl(line, ll); LOGDEB2(("mhmbox:next: hadempty %d lineno %d ll %d Line: [%s]\n", hademptyline, m_lineno, ll, line)); if (hademptyline) { if (ll > 0) { // Non-empty line with empty line flag set, reset flag // and check regex. if (!(m_quirks & MBOXQUIRK_TBIRD)) { // Tbird sometimes omits the empty line, so avoid // resetting state (initially true) and hope for // the best hademptyline = false; } /* The 'F' compare is redundant but it improves performance A LOT */ if (line[0] == 'F' && ( !regexec(&fromregex, line, 0, 0, 0) || ((m_quirks & MBOXQUIRK_TBIRD) && !regexec(&minifromregex, line, 0, 0, 0))) ) { LOGDEB1(("MimeHandlerMbox: msgnum %d, " "From_ at line %d: [%s]\n", m_msgnum, m_lineno, line)); if (storeoffsets) m_offsets.push_back(message_end); m_msgnum++; if ((mtarg <= 0 && m_msgnum > 1) || (mtarg > 0 && m_msgnum > mtarg)) { // Got message, go do something with it break; } // From_ lines are not part of messages continue; } } } else if (ll <= 0) { hademptyline = true; } if (mtarg <= 0 || m_msgnum == mtarg) { // Accumulate message lines line[ll] = '\n'; line[ll+1] = 0; msgtxt += line; if (msgtxt.size() > max_mbox_member_size) { LOGERR(("mh_mbox: huge message (more than %u MB) inside %s," " giving up\n", max_mbox_member_size/(1024*1024), m_fn.c_str())); return false; } } } LOGDEB2(("Message text length %d\n", msgtxt.size())); LOGDEB2(("Message text: [%s]\n", msgtxt.c_str())); char buf[20]; // m_msgnum was incremented when hitting the next From_ or eof, so the data // is for m_msgnum - 1 sprintf(buf, "%d", m_msgnum - 1); m_metaData[cstr_dj_keyipath] = buf; m_metaData[cstr_dj_keymt] = "message/rfc822"; if (iseof) { LOGDEB2(("MimeHandlerMbox::next: eof hit\n")); m_havedoc = false; if (!m_udi.empty() && storeoffsets) { o_mcache.put_offsets(m_config, m_udi, m_fsize, m_offsets); } } return msgtxt.empty() ? false : true; } #else // Test driver -> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <iostream> #include <string> using namespace std; #include "rclconfig.h" #include "rclinit.h" #include "cstr.h" #include "mh_mbox.h" static char *thisprog; static char usage [] = "Test driver for mbox walking function\n" "mh_mbox [-m num] mboxfile\n" " \n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static RclConfig *config; static int op_flags; #define OPT_MOINS 0x1 #define OPT_m 0x2 //#define OPT_t 0x4 int main(int argc, char **argv) { string msgnum; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'm': op_flags |= OPT_m; if (argc < 2) Usage(); msgnum = *(++argv); argc--; goto b1; // case 't': op_flags |= OPT_t;break; default: Usage(); break; } b1: argc--; argv++; } if (argc != 1) Usage(); string filename = *argv++;argc--; string reason; config = recollinit(RclInitFlags(0), 0, 0, reason, 0); if (config == 0) { cerr << "init failed " << reason << endl; exit(1); } config->setKeyDir(path_getfather(filename)); MimeHandlerMbox mh(config, "some_id"); if (!mh.set_document_file("text/x-mail", filename)) { cerr << "set_document_file failed" << endl; exit(1); } if (!msgnum.empty()) { mh.skip_to_document(msgnum); if (!mh.next_document()) { cerr << "next_document failed after skipping to " << msgnum << endl; exit(1); } map<string, string>::const_iterator it = mh.get_meta_data().find(cstr_dj_keycontent); int size; if (it == mh.get_meta_data().end()) { size = -1; cerr << "No content!!" << endl; exit(1); } cout << "Doc " << msgnum << ":" << endl; cout << it->second << endl; exit(0); } int docnt = 0; while (mh.has_documents()) { if (!mh.next_document()) { cerr << "next_document failed" << endl; exit(1); } docnt++; map<string, string>::const_iterator it = mh.get_meta_data().find(cstr_dj_keycontent); int size; if (it == mh.get_meta_data().end()) { size = -1; } else { size = it->second.length(); } cout << "Doc " << docnt << " size " << size << endl; } cout << docnt << " documents found in " << filename << endl; exit(0); } #endif // TEST_MH_MBOX ����������������������������������������������������recoll-1.21.5/internfile/mh_html.h������������������������������������������������������������������0000644�0001750�0001750�00000003313�12602163537�016327� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _HTML_H_INCLUDED_ #define _HTML_H_INCLUDED_ #include <string> #include "mimehandler.h" /** * Convert html to utf-8 text and extract whatever metadata we can find. */ class MimeHandlerHtml : public RecollFilter { public: MimeHandlerHtml(RclConfig *cnf, const string& id) : RecollFilter(cnf, id) { } virtual ~MimeHandlerHtml() { } virtual bool set_document_file(const string& mt, const string &file_path); virtual bool set_document_string(const string& mt, const string &data); virtual bool is_data_input_ok(DataInput input) const { if (input == DOCUMENT_FILE_NAME || input == DOCUMENT_STRING) return true; return false; } virtual bool next_document(); const string& get_html() { return m_html; } virtual void clear() { m_filename.erase(); m_html.erase(); RecollFilter::clear(); } private: string m_filename; string m_html; }; #endif /* _HTML_H_INCLUDED_ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/internfile.h���������������������������������������������������������������0000644�0001750�0001750�00000027056�12616062474�017053� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _INTERNFILE_H_INCLUDED_ #define _INTERNFILE_H_INCLUDED_ #include "autoconfig.h" #include <string> #include <vector> #include <map> #include <set> using std::string; using std::vector; using std::map; using std::set; #include "mimehandler.h" #include "uncomp.h" #include "pathut.h" class RclConfig; namespace Rcl { class Doc; } struct stat; /** Storage for missing helper program info. We want to keep this out of the * FileInterner class, because the data will typically be accumulated by several * FileInterner objects. Can't use static member either (because there * may be several separate usages of the class which shouldn't mix * their data). */ class FIMissingStore { public: FIMissingStore() {} FIMissingStore(const string& in); virtual ~FIMissingStore() {} virtual void addMissing(const string& prog, const string& mt) { m_typesForMissing[prog].insert(mt); } // Get simple progs list string virtual void getMissingExternal(string& out); // Get progs + assoc mtypes description string virtual void getMissingDescription(string& out); // Missing external programs map<string, set<string> > m_typesForMissing; }; /** * Convert data from file-serialized form (either an actual File * System file or a memory image) into one or several documents in * internal representation (Rcl::Doc). This can be used for indexing, * or viewing at query time (GUI preview), or extracting an internal * document out of a compound file into a simple one. * * Things work a little differently when indexing or previewing: * - When indexing, all data has to come from the datastore, and it is * normally desired that all found subdocuments be returned (ie: * all messages and attachments out of a single file mail folder) * - When previewing, some data is taken from the index (ie: the mime type * is already known, and a single document usually needs to be processed, * so that the full doc identifier is passed in: high level url * (ie: file path) and internal identifier: ipath, ie: message and * attachment number. * * Internfile is the part of the code which knows about ipath structure. * * The class has a number of static helper method which could just as well not * be members and are in there just for namespace reasons. * */ class FileInterner { public: /** Operation modifier flags */ enum Flags {FIF_none, FIF_forPreview, FIF_doUseInputMimetype}; /** Return values for internfile() */ enum Status {FIError, FIDone, FIAgain}; /** Constructors take the initial step to preprocess the data object and * create the top filter */ /** * Identify and possibly decompress file, and create the top filter. * - The mtype parameter is not always set (it is when the object is * created for previewing a file). * - Filter output may be different for previewing and indexing. * * This constructor is now only used for indexing, the form with * an Rcl::Doc parameter to identify the data is always used * at query time. * * @param fn file name. * @param stp pointer to updated stat struct. * @param cnf Recoll configuration. * @param td temporary directory to use as working space if * decompression needed. Must be private and will be wiped clean. * @param mtype mime type if known. For a compressed file this is the * mime type for the uncompressed version. */ FileInterner(const string &fn, const struct stat *stp, RclConfig *cnf, int flags, const string *mtype = 0); /** * Alternate constructor for the case where the data is in memory. * This is mainly for data extracted from the web cache. The mime type * must be set, input must be already uncompressed. */ FileInterner(const string &data, RclConfig *cnf, int flags, const string& mtype); /** * Alternate constructor used at query time. We don't know where * the data was stored, this is determined from the Rcl::Doc data * * @param idoc Rcl::Doc object built from index data. The back-end * storage identifier (rclbes field) is used to build the * appropriate fetcher which uses the rest of the Doc fields (url, * ipath...) to retrieve the file or a file reference, which we * then process normally. */ FileInterner(const Rcl::Doc& idoc, RclConfig *cnf, int flags); ~FileInterner(); void setMissingStore(FIMissingStore *st) { m_missingdatap = st; } /** * Turn file or file part into Recoll document. * * For multidocument files (ie: mail folder), this must be called * multiple times to retrieve the subdocuments. * * @param doc output document * @param ipath internal path. If set by caller, the specified subdoc will * be returned. Else the next document according to current state will * be returned, and doc.ipath will be set on output. * @return FIError and FIDone are self-explanatory. If FIAgain is returned, * this is a multi-document file, with more subdocs, and internfile() * should be called again to get the following one(s). */ Status internfile(Rcl::Doc& doc, const string &ipath = ""); /** Extract subdoc defined by ipath in idoc to file. See params for idocToFile() */ bool interntofile(TempFile& otemp, const string& tofile, const string& ipath, const string& mimetype); /** Return the file's (top level object) mimetype (useful for * creating the pseudo-doc for container files) */ const string& getMimetype() {return m_mimetype;} /** We normally always return text/plain data. A caller can request * that we stop conversion at the native document type (ie: extracting * an email attachment in its native form for an external viewer) */ void setTargetMType(const string& tp) {m_targetMType = tp;} /** In case we see an html version while converting, it is set aside * and can be recovered */ const string& get_html() {return m_html;} /** If we happen to be processing an image file and need a temp file, we keep it around to save work for our caller, which can get it here */ TempFile get_imgtmp() {return m_imgtmp;} const string& getReason() const { return m_reason; } bool ok() const { return m_ok; } /** * Get UDI for immediate parent for document. * * This is not in general the same as the "parent" document used * with Rcl::Db::addOrUpdate(). The latter is the enclosing file, * this would be for exemple the email containing the attachment. * This is in internfile because of the ipath computation. */ static bool getEnclosingUDI(const Rcl::Doc &doc, string& udi); /** Return last element in ipath, like basename */ static std::string getLastIpathElt(const std::string& ipath); /** Check that 2nd param is child of first */ static bool ipathContains(const std::string& parent, const std::string& child); /** * Build sig for doc coming from rcldb. This is here because we know how * to query the right backend. Used to check up-to-dateness at query time */ static bool makesig(RclConfig *cnf, const Rcl::Doc& idoc, string& sig); /** Extract internal document into temporary file. * This is used mainly for starting an external viewer for a * subdocument (ie: mail attachment). This really would not need to be * a member. It creates a FileInterner object to do the actual work * @return true for success. * @param temp output reference-counted temp file object (goes * away magically). Only used if tofile.empty() * @param tofile output file if not empty. * @param cnf The recoll config * @param doc Doc data taken from the index. We use it to construct a * FileInterner object. */ static bool idocToFile(TempFile& temp, const string& tofile, RclConfig *cnf, const Rcl::Doc& doc); /** * Does file appear to be the compressed version of a document? */ static bool isCompressed(const string& fn, RclConfig *cnf); /** * Check input compressed, allocate temp file and uncompress if it is. * @return true if ok, false for error. Actual decompression is indicated * by the TempFile status (!isNull()) */ static bool maybeUncompressToTemp(TempFile& temp, const string& fn, RclConfig *cnf, const Rcl::Doc& doc); private: static const unsigned int MAXHANDLERS = 20; RclConfig *m_cfg; string m_fn; string m_mimetype; // Mime type for [uncompressed] file bool m_forPreview; string m_html; // Possibly set-aside html text for preview TempFile m_imgtmp; // Possible reference to an image temp file string m_targetMType; string m_reachedMType; // target or text/plain string m_tfile; bool m_ok; // Set after construction if ok // Fields found in file extended attributes. This is kept here, // not in the file-level handler because we are only interested in // the top-level file, not any temp file necessitated by // processing the internal doc hierarchy. map<string, string> m_XAttrsFields; // Fields gathered by executing configured external commands map<string, string> m_cmdFields; // Filter stack, path to the current document from which we're // fetching subdocs vector<RecollFilter*> m_handlers; // Temporary files used for decoding the current stack bool m_tmpflgs[MAXHANDLERS]; vector<TempFile> m_tempfiles; // Error data if any string m_reason; FIMissingStore *m_missingdatap; Uncomp m_uncomp; bool m_noxattrs; // disable xattrs usage // Pseudo-constructors void init(const string &fn, const struct stat *stp, RclConfig *cnf, int flags, const string *mtype = 0); void init(const string &data, RclConfig *cnf, int flags, const string& mtype); void initcommon(RclConfig *cnf, int flags); bool dijontorcl(Rcl::Doc&); void collectIpathAndMT(Rcl::Doc&) const; TempFile dataToTempFile(const string& data, const string& mt); void popHandler(); int addHandler(); void checkExternalMissing(const string& msg, const string& mt); void processNextDocError(Rcl::Doc &doc); static bool tempFileForMT(TempFile& otemp, RclConfig *cnf, const std::string& mimetype); static bool topdocToFile(TempFile& otemp, const std::string& tofile, RclConfig *cnf, const Rcl::Doc& idoc); }; #endif /* _INTERNFILE_H_INCLUDED_ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/htmlparse.cpp��������������������������������������������������������������0000644�0001750�0001750�00000024657�12602163537�017247� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* This file was copied/updated from xapian-omega-1.0.1 to 1.2.6 and modified */ /* htmlparse.cc: simple HTML parser for omega indexer * * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2001 Ananova Ltd * Copyright 2002,2006,2007,2008,2009,2010,2011 Olly Betts * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA */ #include <algorithm> using std::find; using std::find_if; #include "htmlparse.h" #include <stdio.h> #include <ctype.h> #include <cstring> inline void lowercase_string(string &str) { for (string::iterator i = str.begin(); i != str.end(); ++i) { *i = tolower(static_cast<unsigned char>(*i)); } } map<string, unsigned int> HtmlParser::named_ents; inline static bool p_notdigit(char c) { return !isdigit(static_cast<unsigned char>(c)); } inline static bool p_notxdigit(char c) { return !isxdigit(static_cast<unsigned char>(c)); } inline static bool p_notalnum(char c) { return !isalnum(static_cast<unsigned char>(c)); } inline static bool p_notwhitespace(char c) { return !isspace(static_cast<unsigned char>(c)); } inline static bool p_nottag(char c) { return !isalnum(static_cast<unsigned char>(c)) && c != '.' && c != '-' && c != ':'; // ':' for XML namespaces. } inline static bool p_whitespacegt(char c) { return isspace(static_cast<unsigned char>(c)) || c == '>'; } inline static bool p_whitespaceeqgt(char c) { return isspace(static_cast<unsigned char>(c)) || c == '=' || c == '>'; } bool HtmlParser::get_parameter(const string & param, string & value) const { map<string, string>::const_iterator i = parameters.find(param); if (i == parameters.end()) return false; value = i->second; return true; } HtmlParser::HtmlParser() { // RECOLL: no need to initialize these entities, we use those from // myhtmlparse #if 0 static const struct ent { const char *n; unsigned int v; } ents[] = { #include "namedentities.h" { NULL, 0 } }; if (named_ents.empty()) { const struct ent *i = ents; while (i->n) { named_ents[string(i->n)] = i->v; ++i; } } #endif } void HtmlParser::decode_entities(string &s) { // Not used for recoll. Kept here to minimize the amount of // diffs. Almost the same code in myhtmlparse except that the // entity table directly holds the utf-8 strings instead of the // unicode positions (one less conversion). #if 0 // We need a const_iterator version of s.end() - otherwise the // find() and find_if() templates don't work... string::const_iterator amp = s.begin(), s_end = s.end(); while ((amp = find(amp, s_end, '&')) != s_end) { unsigned int val = 0; string::const_iterator end, p = amp + 1; if (p != s_end && *p == '#') { p++; if (p != s_end && (*p == 'x' || *p == 'X')) { // hex p++; end = find_if(p, s_end, p_notxdigit); sscanf(s.substr(p - s.begin(), end - p).c_str(), "%x", &val); } else { // number end = find_if(p, s_end, p_notdigit); val = atoi(s.substr(p - s.begin(), end - p).c_str()); } } else { end = find_if(p, s_end, p_notalnum); string code = s.substr(p - s.begin(), end - p); map<string, unsigned int>::const_iterator i; i = named_ents.find(code); if (i != named_ents.end()) val = i->second; } if (end < s_end && *end == ';') end++; if (val) { string::size_type amp_pos = amp - s.begin(); if (val < 0x80) { s.replace(amp_pos, end - amp, 1u, char(val)); } else { // Convert unicode value val to UTF-8. char seq[4]; unsigned len = Xapian::Unicode::nonascii_to_utf8(val, seq); s.replace(amp_pos, end - amp, seq, len); } s_end = s.end(); // We've modified the string, so the iterators are no longer // valid... amp = s.begin() + amp_pos + 1; } else { amp = end; } } #endif } void HtmlParser::parse_html(const string &body) { in_script = false; parameters.clear(); string::const_iterator start = body.begin(); while (true) { // Skip through until we find an HTML tag, a comment, or the end of // document. Ignore isolated occurrences of `<' which don't start // a tag or comment. string::const_iterator p = start; while (true) { p = find(p, body.end(), '<'); if (p == body.end()) break; unsigned char ch = *(p + 1); // Tag, closing tag, or comment (or SGML declaration). if ((!in_script && isalpha(ch)) || ch == '/' || ch == '!') break; if (ch == '?') { // PHP code or XML declaration. // XML declaration is only valid at the start of the first line. // FIXME: need to deal with BOMs... if (p != body.begin() || body.size() < 20) break; // XML declaration looks something like this: // <?xml version="1.0" encoding="UTF-8"?> if (p[2] != 'x' || p[3] != 'm' || p[4] != 'l') break; if (strchr(" \t\r\n", p[5]) == NULL) break; string::const_iterator decl_end = find(p + 6, body.end(), '?'); if (decl_end == body.end()) break; // Default charset for XML is UTF-8. charset = "utf-8"; string decl(p + 6, decl_end); size_t enc = decl.find("encoding"); if (enc == string::npos) break; enc = decl.find_first_not_of(" \t\r\n", enc + 8); if (enc == string::npos || enc == decl.size()) break; if (decl[enc] != '=') break; enc = decl.find_first_not_of(" \t\r\n", enc + 1); if (enc == string::npos || enc == decl.size()) break; if (decl[enc] != '"' && decl[enc] != '\'') break; char quote = decl[enc++]; size_t enc_end = decl.find(quote, enc); if (enc != string::npos) charset = decl.substr(enc, enc_end - enc); break; } p++; } // Process text up to start of tag. if (p > start || p == body.end()) { string text = body.substr(start - body.begin(), p - start); decode_entities(text); process_text(text); } if (p == body.end()) { do_eof(); break; } start = p + 1; if (start == body.end()) break; if (*start == '!') { if (++start == body.end()) break; if (++start == body.end()) break; // comment or SGML declaration if (*(start - 1) == '-' && *start == '-') { ++start; string::const_iterator close = find(start, body.end(), '>'); // An unterminated comment swallows rest of document // (like Netscape, but unlike MSIE IIRC) if (close == body.end()) break; p = close; // look for --> while (p != body.end() && (*(p - 1) != '-' || *(p - 2) != '-')) p = find(p + 1, body.end(), '>'); if (p != body.end()) { // Check for htdig's "ignore this bit" comments. if (p - start == 15 && string(start, p - 2) == "htdig_noindex") { string::size_type i; i = body.find("<!--/htdig_noindex-->", p + 1 - body.begin()); if (i == string::npos) break; start = body.begin() + i + 21; continue; } // If we found --> skip to there. start = p; } else { // Otherwise skip to the first > we found (as Netscape does). start = close; } } else { // just an SGML declaration, perhaps giving the DTD - ignore it start = find(start - 1, body.end(), '>'); if (start == body.end()) break; } ++start; } else if (*start == '?') { if (++start == body.end()) break; // PHP - swallow until ?> or EOF start = find(start + 1, body.end(), '>'); // look for ?> while (start != body.end() && *(start - 1) != '?') start = find(start + 1, body.end(), '>'); // unterminated PHP swallows rest of document (rather arbitrarily // but it avoids polluting the database when things go wrong) if (start != body.end()) ++start; } else { // opening or closing tag int closing = 0; if (*start == '/') { closing = 1; start = find_if(start + 1, body.end(), p_notwhitespace); } p = start; start = find_if(start, body.end(), p_nottag); string tag = body.substr(p - body.begin(), start - p); // convert tagname to lowercase lowercase_string(tag); if (closing) { if (!closing_tag(tag)) return; if (in_script && tag == "script") in_script = false; /* ignore any bogus parameters on closing tags */ p = find(start, body.end(), '>'); if (p == body.end()) break; start = p + 1; } else { bool empty_element = false; // FIXME: parse parameters lazily. while (start < body.end() && *start != '>') { string name, value; p = find_if(start, body.end(), p_whitespaceeqgt); size_t name_len = p - start; if (name_len == 1) { if (*start == '/' && p < body.end() && *p == '>') { // E.g. <tag foo="bar" /> start = p; empty_element = true; break; } } name.assign(body, start - body.begin(), name_len); p = find_if(p, body.end(), p_notwhitespace); start = p; if (start != body.end() && *start == '=') { start = find_if(start + 1, body.end(), p_notwhitespace); p = body.end(); int quote = *start; if (quote == '"' || quote == '\'') { start++; p = find(start, body.end(), quote); } if (p == body.end()) { // unquoted or no closing quote p = find_if(start, body.end(), p_whitespacegt); } value.assign(body, start - body.begin(), p - start); start = find_if(p, body.end(), p_notwhitespace); if (!name.empty()) { // convert parameter name to lowercase lowercase_string(name); // in case of multiple entries, use the first // (as Netscape does) parameters.insert(make_pair(name, value)); } } } #if 0 cout << "<" << tag; map<string, string>::const_iterator x; for (x = parameters.begin(); x != parameters.end(); x++) { cout << " " << x->first << "=\"" << x->second << "\""; } cout << ">\n"; #endif if (!opening_tag(tag)) return; parameters.clear(); if (empty_element) { if (!closing_tag(tag)) return; } // In <script> tags we ignore opening tags to avoid problems // with "a<b". if (tag == "script") in_script = true; if (start != body.end() && *start == '>') ++start; } } } } ���������������������������������������������������������������������������������recoll-1.21.5/internfile/uncomp.h�������������������������������������������������������������������0000644�0001750�0001750�00000003333�12602163571�016200� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2013 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _UNCOMP_H_INCLUDED_ #define _UNCOMP_H_INCLUDED_ #include <vector> #include <string> #include "pathut.h" #include "ptmutex.h" /// Uncompression script interface. class Uncomp { public: Uncomp(bool docache = false) : m_dir(0), m_docache(docache) { } ~Uncomp(); /** Uncompress the input file into a temporary one, by executing the * script given as input. * Return the path to the uncompressed file (which is inside a * temporary directory). */ bool uncompressfile(const std::string& ifn, const std::vector<std::string>& cmdv, std::string& tfile); private: TempDir *m_dir; string m_tfile; string m_srcpath; bool m_docache; class UncompCache { public: UncompCache() : m_dir(0) { } ~UncompCache() { delete m_dir; } PTMutexInit m_lock; TempDir *m_dir; string m_tfile; string m_srcpath; }; static UncompCache o_cache; }; #endif /* _UNCOMP_H_INCLUDED_ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/Makefile�������������������������������������������������������������������0000644�0001750�0001750�00000001343�12602163571�016165� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������depth = .. include $(depth)/mk/sysconf # Only test executables get build in here PROGS = mh_mbox internfile all: librecoll $(PROGS) INTERNFILE_OBJS= trinternfile.o $(BIGLIB) internfile : $(INTERNFILE_OBJS) $(CXX) $(ALL_CXXFLAGS) -o internfile $(INTERNFILE_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trinternfile.o : internfile.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_INTERNFILE -c -o trinternfile.o \ internfile.cpp MH_MBOX_OBJS= trmh_mbox.o $(BIGLIB) mh_mbox : $(MH_MBOX_OBJS) $(CXX) $(ALL_CXXFLAGS) -o mh_mbox $(MH_MBOX_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trmh_mbox.o : mh_mbox.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_MH_MBOX -c -o trmh_mbox.o \ mh_mbox.cpp include $(depth)/mk/commontargets ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_mbox.h������������������������������������������������������������������0000644�0001750�0001750�00000003673�12602163537�016341� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MBOX_H_INCLUDED_ #define _MBOX_H_INCLUDED_ #include <string> #include <vector> using std::string; using std::vector; #include "mimehandler.h" /** * Translate a mail folder file into internal documents (also works * for maildir files). This has to keep state while parsing a mail folder * file. */ class MimeHandlerMbox : public RecollFilter { public: MimeHandlerMbox(RclConfig *cnf, const string& id) : RecollFilter(cnf, id), m_vfp(0), m_msgnum(0), m_lineno(0), m_fsize(0) {} virtual ~MimeHandlerMbox(); virtual bool set_document_file(const string& mt, const string &file_path); virtual bool next_document(); virtual bool skip_to_document(const string& ipath) { m_ipath = ipath; return true; } virtual void clear(); typedef long long mbhoff_type; private: string m_fn; // File name void *m_vfp; // File pointer for folder int m_msgnum; // Current message number in folder. Starts at 1 string m_ipath; int m_lineno; // debug mbhoff_type m_fsize; vector<mbhoff_type> m_offsets; enum Quirks {MBOXQUIRK_TBIRD=1}; int m_quirks; }; #endif /* _MBOX_H_INCLUDED_ */ ���������������������������������������������������������������������recoll-1.21.5/internfile/mimehandler.cpp������������������������������������������������������������0000644�0001750�0001750�00000030412�12602163571�017515� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Copyright 2004 J.F.Dockes * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <errno.h> #include <iostream> #include <string> #include <vector> #include <list> using namespace std; #include "cstr.h" #include "mimehandler.h" #include "debuglog.h" #include "rclconfig.h" #include "smallut.h" #include "md5ut.h" #include "mh_exec.h" #include "mh_execm.h" #include "mh_html.h" #include "mh_mail.h" #include "mh_mbox.h" #include "mh_text.h" #include "mh_symlink.h" #include "mh_unknown.h" #include "ptmutex.h" // Performance help: we use a pool of already known and created // handlers. There can be several instances for a given mime type // (think email attachment in email message: 2 rfc822 handlers are // needed simulteanously) static multimap<string, RecollFilter*> o_handlers; static list<multimap<string, RecollFilter*>::iterator> o_hlru; typedef list<multimap<string, RecollFilter*>::iterator>::iterator hlruit_tp; static PTMutexInit o_handlers_mutex; static const unsigned int max_handlers_cache_size = 100; /* Look for mime handler in pool */ static RecollFilter *getMimeHandlerFromCache(const string& key) { PTMutexLocker locker(o_handlers_mutex); string xdigest; MD5HexPrint(key, xdigest); LOGDEB(("getMimeHandlerFromCache: %s cache size %u\n", xdigest.c_str(), o_handlers.size())); multimap<string, RecollFilter *>::iterator it = o_handlers.find(key); if (it != o_handlers.end()) { RecollFilter *h = it->second; hlruit_tp it1 = find(o_hlru.begin(), o_hlru.end(), it); if (it1 != o_hlru.end()) { o_hlru.erase(it1); } else { LOGERR(("getMimeHandlerFromCache: lru position not found\n")); } o_handlers.erase(it); LOGDEB(("getMimeHandlerFromCache: %s found size %u\n", xdigest.c_str(), o_handlers.size())); return h; } LOGDEB(("getMimeHandlerFromCache: %s not found\n", xdigest.c_str())); return 0; } /* Return mime handler to pool */ void returnMimeHandler(RecollFilter *handler) { typedef multimap<string, RecollFilter*>::value_type value_type; if (handler == 0) { LOGERR(("returnMimeHandler: bad parameter\n")); return; } handler->clear(); PTMutexLocker locker(o_handlers_mutex); LOGDEB(("returnMimeHandler: returning filter for %s cache size %d\n", handler->get_mime_type().c_str(), o_handlers.size())); // Limit pool size. The pool can grow quite big because there are // many filter types, each of which can be used in several copies // at the same time either because it occurs several times in a // stack (ie mail attachment to mail), or because several threads // are processing the same mime type at the same time. multimap<string, RecollFilter *>::iterator it; if (o_handlers.size() >= max_handlers_cache_size) { static int once = 1; if (once) { once = 0; for (it = o_handlers.begin(); it != o_handlers.end(); it++) { LOGDEB1(("Cache full. key: %s\n", it->first.c_str())); } LOGDEB1(("Cache LRU size: %u\n", o_hlru.size())); } if (o_hlru.size() > 0) { it = o_hlru.back(); o_hlru.pop_back(); delete it->second; o_handlers.erase(it); } } it = o_handlers.insert(value_type(handler->get_id(), handler)); o_hlru.push_front(it); } void clearMimeHandlerCache() { LOGDEB(("clearMimeHandlerCache()\n")); typedef multimap<string, RecollFilter*>::value_type value_type; multimap<string, RecollFilter *>::iterator it; PTMutexLocker locker(o_handlers_mutex); for (it = o_handlers.begin(); it != o_handlers.end(); it++) { delete it->second; } o_handlers.clear(); } /** For mime types set as "internal" in mimeconf: * create appropriate handler object. */ static RecollFilter *mhFactory(RclConfig *config, const string &mime, bool nobuild, string& id) { LOGDEB2(("mhFactory(%s)\n", mime.c_str())); string lmime(mime); stringtolower(lmime); if (cstr_textplain == lmime) { LOGDEB2(("mhFactory(%s): returning MimeHandlerText\n", mime.c_str())); MD5String("MimeHandlerText", id); return nobuild ? 0 : new MimeHandlerText(config, id); } else if ("text/html" == lmime) { LOGDEB2(("mhFactory(%s): returning MimeHandlerHtml\n", mime.c_str())); MD5String("MimeHandlerHtml", id); return nobuild ? 0 : new MimeHandlerHtml(config, id); } else if ("text/x-mail" == lmime) { LOGDEB2(("mhFactory(%s): returning MimeHandlerMbox\n", mime.c_str())); MD5String("MimeHandlerMbox", id); return nobuild ? 0 : new MimeHandlerMbox(config, id); } else if ("message/rfc822" == lmime) { LOGDEB2(("mhFactory(%s): returning MimeHandlerMail\n", mime.c_str())); MD5String("MimeHandlerMail", id); return nobuild ? 0 : new MimeHandlerMail(config, id); } else if ("inode/symlink" == lmime) { LOGDEB2(("mhFactory(%s): ret MimeHandlerSymlink\n", mime.c_str())); MD5String("MimeHandlerSymlink", id); return nobuild ? 0 : new MimeHandlerSymlink(config, id); } else if (lmime.find("text/") == 0) { // Try to handle unknown text/xx as text/plain. This // only happen if the text/xx was defined as "internal" in // mimeconf, not at random. For programs, for example this // allows indexing and previewing as text/plain (no filter // exec) but still opening with a specific editor. LOGDEB2(("mhFactory(%s): returning MimeHandlerText(x)\n",mime.c_str())); MD5String("MimeHandlerText", id); return nobuild ? 0 : new MimeHandlerText(config, id); } else { // We should not get there. It means that "internal" was set // as a handler in mimeconf for a mime type we actually can't // handle. LOGERR(("mhFactory: mime type [%s] set as internal but unknown\n", lmime.c_str())); MD5String("MimeHandlerUnknown", id); return nobuild ? 0 : new MimeHandlerUnknown(config, id); } } static const string cstr_mh_charset("charset"); /** * Create a filter that executes an external program or script * A filter def can look like: * someprog -v -t " h i j";charset= xx; mimetype=yy * A semi-colon list of attr=value pairs may come after the exec spec. * This list is treated by replacing semi-colons with newlines and building * a confsimple. This is done quite brutally and we don't support having * a ';' inside a quoted string for now. Can't see a use for it. */ MimeHandlerExec *mhExecFactory(RclConfig *cfg, const string& mtype, string& hs, bool multiple, const string& id) { ConfSimple attrs; string cmdstr; if (!cfg->valueSplitAttributes(hs, cmdstr, attrs)) { LOGERR(("mhExecFactory: bad config line for [%s]: [%s]\n", mtype.c_str(), hs.c_str())); return 0; } // Split command name and args, and build exec object list<string> cmdtoks; stringToStrings(cmdstr, cmdtoks); if (cmdtoks.empty()) { LOGERR(("mhExecFactory: bad config line for [%s]: [%s]\n", mtype.c_str(), hs.c_str())); return 0; } MimeHandlerExec *h = multiple ? new MimeHandlerExecMultiple(cfg, id) : new MimeHandlerExec(cfg, id); list<string>::iterator it = cmdtoks.begin(); h->params.push_back(cfg->findFilter(*it++)); h->params.insert(h->params.end(), it, cmdtoks.end()); // Handle additional attributes. We substitute the semi-colons // with newlines and use a ConfSimple string value; if (attrs.get(cstr_mh_charset, value)) h->cfgFilterOutputCharset = stringtolower((const string&)value); if (attrs.get(cstr_dj_keymt, value)) h->cfgFilterOutputMtype = stringtolower((const string&)value); #if 0 string scmd; for (it = h->params.begin(); it != h->params.end(); it++) { scmd += string("[") + *it + "] "; } LOGDEB(("mhExecFactory:mt [%s] cfgmt [%s] cfgcs [%s] cmd: [%s]\n", mtype.c_str(), h->cfgFilterOutputMtype.c_str(), h->cfgFilterOutputCharset.c_str(), scmd.c_str())); #endif return h; } /* Get handler/filter object for given mime type: */ RecollFilter *getMimeHandler(const string &mtype, RclConfig *cfg, bool filtertypes) { LOGDEB(("getMimeHandler: mtype [%s] filtertypes %d\n", mtype.c_str(), filtertypes)); RecollFilter *h = 0; // Get handler definition for mime type. We do this even if an // appropriate handler object may be in the cache. // This is fast, and necessary to conform to the // configuration, (ie: text/html might be filtered out by // indexedmimetypes but an html handler could still be in the // cache because it was needed by some other interning stack). string hs; hs = cfg->getMimeHandlerDef(mtype, filtertypes); string id; if (!hs.empty()) { // Got a handler definition line // Break definition into type (internal/exec/execm) // and name/command string string::size_type b1 = hs.find_first_of(" \t"); string handlertype = hs.substr(0, b1); string cmdstr; if (b1 != string::npos) { cmdstr = hs.substr(b1); trimstring(cmdstr); } bool internal = !stringlowercmp("internal", handlertype); if (internal) { // For internal types let the factory compute the id mhFactory(cfg, cmdstr.empty() ? mtype : cmdstr, true, id); } else { // exec/execm: use the md5 of the def line MD5String(hs, id); } #if 0 { // string xdigest; LOGDEB2(("getMimeHandler: [%s] hs [%s] id [%s]\n", //mtype.c_str(), hs.c_str(), MD5HexPrint(id, xdigest).c_str())); } #endif // Do we already have a handler object in the cache ? h = getMimeHandlerFromCache(id); if (h != 0) goto out; LOGDEB2(("getMimeHandler: %s not in cache\n", mtype.c_str())); // Not in cache. if (internal) { // If there is a parameter after "internal" it's the mime // type to use. This is so that we can have bogus mime // types like text/x-purple-html-log (for ie: specific // icon) and still use the html filter on them. This is // partly redundant with the localfields/rclaptg, but // better and the latter will probably go away at some // point in the future. LOGDEB2(("handlertype internal, cmdstr [%s]\n", cmdstr.c_str())); h = mhFactory(cfg, cmdstr.empty() ? mtype : cmdstr, false, id); goto out; } else if (!stringlowercmp("dll", handlertype)) { } else { if (cmdstr.empty()) { LOGERR(("getMimeHandler: bad line for %s: %s\n", mtype.c_str(), hs.c_str())); goto out; } if (!stringlowercmp("exec", handlertype)) { h = mhExecFactory(cfg, mtype, cmdstr, false, id); goto out; } else if (!stringlowercmp("execm", handlertype)) { h = mhExecFactory(cfg, mtype, cmdstr, true, id); goto out; } else { LOGERR(("getMimeHandler: bad line for %s: %s\n", mtype.c_str(), hs.c_str())); goto out; } } } // We get here if there was no specific error, but there is no // identified mime type, or no handler associated. // Finally, unhandled files are either ignored or their name and // generic metadata is indexed, depending on configuration { bool indexunknown = false; cfg->getConfParam("indexallfilenames", &indexunknown); if (indexunknown) { MD5String("MimeHandlerUnknown", id); if ((h = getMimeHandlerFromCache(id)) == 0) h = new MimeHandlerUnknown(cfg, id); } goto out; } out: if (h) { h->set_property(RecollFilter::DEFAULT_CHARSET, cfg->getDefCharset()); // In multithread context, and in case this handler is out // from the cache, it may have a config pointer belonging to // another thread. Fix it. h->setConfig(cfg); } return h; } /// Can this mime type be interned (according to config) ? bool canIntern(const std::string mtype, RclConfig *cfg) { if (mtype.empty()) return false; string hs = cfg->getMimeHandlerDef(mtype); if (hs.empty()) return false; return true; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_mail.cpp����������������������������������������������������������������0000644�0001750�0001750�00000050357�12602163571�016650� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <time.h> #include <cstdlib> #include <map> #include <sstream> #include "cstr.h" #include "mimehandler.h" #include "readfile.h" #include "transcode.h" #include "mimeparse.h" #include "mh_mail.h" #include "debuglog.h" #include "smallut.h" #include "mh_html.h" #include "rclconfig.h" #include "mimetype.h" #include "md5ut.h" // binc imap mime definitions #include "mime.h" using namespace std; static const int maxdepth = 20; static const string cstr_mail_charset("charset"); MimeHandlerMail::MimeHandlerMail(RclConfig *cnf, const string &id) : RecollFilter(cnf, id), m_bincdoc(0), m_fd(-1), m_stream(0), m_idx(-1) { // Look for additional headers to be processed as per config: vector<string> hdrnames = m_config->getFieldSectNames("mail"); if (hdrnames.empty()) return; for (vector<string>::const_iterator it = hdrnames.begin(); it != hdrnames.end(); it++) { (void)m_config->getFieldConfParam(*it, "mail", m_addProcdHdrs[*it]); } } MimeHandlerMail::~MimeHandlerMail() { clear(); } void MimeHandlerMail::clear() { delete m_bincdoc; m_bincdoc = 0; if (m_fd >= 0) { close(m_fd); m_fd = -1; } delete m_stream; m_stream = 0; m_idx = -1; m_startoftext = 0; m_subject.erase(); for (vector<MHMailAttach*>::iterator it = m_attachments.begin(); it != m_attachments.end(); it++) { delete *it; } m_attachments.clear(); m_addProcdHdrs.clear(); RecollFilter::clear(); } bool MimeHandlerMail::set_document_file(const string& mt, const string &fn) { LOGDEB(("MimeHandlerMail::set_document_file(%s)\n", fn.c_str())); RecollFilter::set_document_file(mt, fn); if (m_fd >= 0) { close(m_fd); m_fd = -1; } if (!m_forPreview) { // Yes, we read the file twice. It would be possible in theory // to add the md5 computation to the mime analysis, but ... string md5, xmd5, reason; if (MD5File(fn, md5, &reason)) { m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } else { LOGERR(("MimeHandlerMail: cant md5 [%s]: %s\n", fn.c_str(), reason.c_str())); } } m_fd = open(fn.c_str(), 0); if (m_fd < 0) { LOGERR(("MimeHandlerMail::set_document_file: open(%s) errno %d\n", fn.c_str(), errno)); return false; } #if defined O_NOATIME && O_NOATIME != 0 if (fcntl(m_fd, F_SETFL, O_NOATIME) < 0) { // perror("fcntl"); } #endif delete m_bincdoc; m_bincdoc = new Binc::MimeDocument; m_bincdoc->parseFull(m_fd); if (!m_bincdoc->isHeaderParsed() && !m_bincdoc->isAllParsed()) { LOGERR(("MimeHandlerMail::mkDoc: mime parse error for %s\n", fn.c_str())); return false; } m_havedoc = true; return true; } bool MimeHandlerMail::set_document_string(const string& mt, const string &msgtxt) { LOGDEB1(("MimeHandlerMail::set_document_string\n")); LOGDEB2(("Message text: [%s]\n", msgtxt.c_str())); RecollFilter::set_document_string(mt, msgtxt); delete m_stream; if (!m_forPreview) { string md5, xmd5; MD5String(msgtxt, md5); m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } if ((m_stream = new stringstream(msgtxt)) == 0 || !m_stream->good()) { LOGERR(("MimeHandlerMail::set_document_string: stream create error." "msgtxt.size() %d\n", int(msgtxt.size()))); return false; } delete m_bincdoc; if ((m_bincdoc = new Binc::MimeDocument) == 0) { LOGERR(("MimeHandlerMail::set_doc._string: new Binc:Document failed." " Out of memory?")); return false; } m_bincdoc->parseFull(*m_stream); if (!m_bincdoc->isHeaderParsed() && !m_bincdoc->isAllParsed()) { LOGERR(("MimeHandlerMail::set_document_string: mime parse error\n")); return false; } m_havedoc = true; return true; } bool MimeHandlerMail::skip_to_document(const string& ipath) { LOGDEB(("MimeHandlerMail::skip_to_document(%s)\n", ipath.c_str())); if (m_idx == -1) { // No decoding done yet. If ipath is null need do nothing if (ipath.empty() || ipath == "-1") return true; // ipath points to attachment: need to decode message if (!next_document()) { LOGERR(("MimeHandlerMail::skip_to_doc: next_document failed\n")); return false; } } m_idx = atoi(ipath.c_str()); return true; } bool MimeHandlerMail::next_document() { LOGDEB(("MimeHandlerMail::next_document m_idx %d m_havedoc %d\n", m_idx, m_havedoc)); if (!m_havedoc) return false; bool res = false; if (m_idx == -1) { m_metaData[cstr_dj_keymt] = cstr_textplain; res = processMsg(m_bincdoc, 0); LOGDEB1(("MimeHandlerMail::next_document: mt %s, att cnt %d\n", m_metaData[cstr_dj_keymt].c_str(), m_attachments.size())); const string& txt = m_metaData[cstr_dj_keycontent]; if (m_startoftext < txt.size()) m_metaData[cstr_dj_keyabstract] = truncate_to_word(txt.substr(m_startoftext), 250); if (m_attachments.size() > 0) { m_metaData[cstr_dj_keyanc] = "t"; } } else { m_metaData[cstr_dj_keyabstract].clear(); res = processAttach(); } m_idx++; m_havedoc = m_idx < (int)m_attachments.size(); if (!m_havedoc) { m_reason = "Subdocument index too high"; } return res; } // Decode according to content transfer encoding. May actually do nothing, // which will be indicated by the *respp argument pointing to the original // text on exit static bool decodeBody(const string& cte, // Content transfer encoding const string& body, // Source text string& decoded, // Decoded text if actual decoding const string** respp // Decoding Indicator ) { // By default, there is no encoding (7bit,8bit,raw). Also in case of // decoding error *respp = &body; if (!stringlowercmp("quoted-printable", cte)) { if (!qp_decode(body, decoded)) { LOGERR(("decodeBody: quoted-printable decoding failed !\n")); LOGDEB((" Body: \n%s\n", body.c_str())); return false; } *respp = &decoded; } else if (!stringlowercmp("base64", cte)) { if (!base64_decode(body, decoded)) { // base64 encoding errors are actually relatively common LOGERR(("decodeBody: base64 decoding failed !\n")); LOGDEB((" Body: \n%s\n", body.c_str())); return false; } *respp = &decoded; } return true; } bool MimeHandlerMail::processAttach() { LOGDEB(("MimeHandlerMail::processAttach() m_idx %d\n", m_idx)); if (!m_havedoc) return false; if (m_idx >= (int)m_attachments.size()) { m_havedoc = false; return false; } MHMailAttach *att = m_attachments[m_idx]; m_metaData[cstr_dj_keymt] = att->m_contentType; m_metaData[cstr_dj_keyorigcharset] = att->m_charset; m_metaData[cstr_dj_keycharset] = att->m_charset; m_metaData[cstr_dj_keyfn] = att->m_filename; m_metaData[cstr_dj_keytitle] = att->m_filename + " (" + m_subject + ")"; LOGDEB1((" processAttach:ct [%s] cs [%s] fn [%s]\n", att->m_contentType.c_str(), att->m_charset.c_str(), att->m_filename.c_str())); // Erase current content and replace m_metaData[cstr_dj_keycontent] = string(); string& body = m_metaData[cstr_dj_keycontent]; att->m_part->getBody(body, 0, att->m_part->bodylength); { string decoded; const string *bdp; if (!decodeBody(att->m_contentTransferEncoding, body, decoded, &bdp)) { return false; } if (bdp != &body) body.swap(decoded); } // Special case for application/octet-stream: try to better // identify content, using file name if set if (m_metaData[cstr_dj_keymt] == "application/octet-stream" && !m_metaData[cstr_dj_keyfn].empty()) { string mt = mimetype(m_metaData[cstr_dj_keyfn], 0, m_config, false); if (!mt.empty()) m_metaData[cstr_dj_keymt] = mt; } // Special case for text/plain content. Internfile should deal // with this but it expects text/plain to be utf-8 already, so we // handle the transcoding if needed if (m_metaData[cstr_dj_keymt] == cstr_textplain) { if (!txtdcode("MimeHandlerMail::processAttach")) body.clear(); } // Ipath char nbuf[20]; sprintf(nbuf, "%d", m_idx); m_metaData[cstr_dj_keyipath] = nbuf; return true; } // Transform a single message into a document. The subject becomes the // title, and any simple body part with a content-type of text or html // and content-disposition inline gets concatenated as text. // // If depth is not zero, we're called recursively for an // message/rfc822 part and we must not touch the doc fields except the // text bool MimeHandlerMail::processMsg(Binc::MimePart *doc, int depth) { LOGDEB2(("MimeHandlerMail::processMsg: depth %d\n", depth)); if (depth++ >= maxdepth) { // Have to stop somewhere LOGINFO(("MimeHandlerMail::processMsg: maxdepth %d exceeded\n", maxdepth)); // Return true anyway, better to index partially than not at all return true; } // Handle some headers. string& text = m_metaData[cstr_dj_keycontent]; Binc::HeaderItem hi; string decoded; if (doc->h.getFirstHeader("From", hi)) { rfc2047_decode(hi.getValue(), decoded); if (preview()) text += string("From: "); text += decoded + cstr_newline; if (depth == 1) { m_metaData[cstr_dj_keyauthor] = decoded; } } if (doc->h.getFirstHeader("To", hi)) { rfc2047_decode(hi.getValue(), decoded); if (preview()) text += string("To: "); text += decoded + cstr_newline; if (depth == 1) { m_metaData[cstr_dj_keyrecipient] = decoded; } } if (doc->h.getFirstHeader("Cc", hi)) { rfc2047_decode(hi.getValue(), decoded); if (preview()) text += string("Cc: "); text += decoded + cstr_newline; if (depth == 1) { m_metaData[cstr_dj_keyrecipient] += " " + decoded; } } if (doc->h.getFirstHeader("Message-Id", hi)) { if (depth == 1) { m_metaData[cstr_dj_keymsgid] = hi.getValue(); trimstring(m_metaData[cstr_dj_keymsgid], "<>"); } } if (doc->h.getFirstHeader("Date", hi)) { rfc2047_decode(hi.getValue(), decoded); if (depth == 1) { time_t t = rfc2822DateToUxTime(decoded); if (t != (time_t)-1) { char ascuxtime[100]; sprintf(ascuxtime, "%ld", (long)t); m_metaData[cstr_dj_keymd] = ascuxtime; } else { // Leave mtime field alone, ftime will be used instead. LOGDEB(("rfc2822Date...: failed: [%s]\n", decoded.c_str())); } } if (preview()) text += string("Date: "); text += decoded + cstr_newline; } if (doc->h.getFirstHeader("Subject", hi)) { rfc2047_decode(hi.getValue(), decoded); if (depth == 1) { m_metaData[cstr_dj_keytitle] = decoded; m_subject = decoded; } if (preview()) text += string("Subject: "); text += decoded + cstr_newline; } // Check for the presence of configured additional headers and possibly // add them to the metadata (with appropriate field name). if (!m_addProcdHdrs.empty()) { for (map<string, string>::const_iterator it = m_addProcdHdrs.begin(); it != m_addProcdHdrs.end(); it++) { if (!it->second.empty()) { string hval; if (doc->h.getFirstHeader(it->first, hi)) { m_metaData[it->second] = hi.getValue(); } } } } text += '\n'; m_startoftext = text.size(); LOGDEB2(("MimeHandlerMail::processMsg:ismultipart %d mime subtype '%s'\n", doc->isMultipart(), doc->getSubType().c_str())); walkmime(doc, depth); LOGDEB2(("MimeHandlerMail::processMsg:text:[%s]\n", m_metaData[cstr_dj_keycontent].c_str())); return true; } // Recursively walk the message mime parts and concatenate all the // inline html or text that we find anywhere. // // RFC2046 reminder: // Top level media types: // Simple: text, image, audio, video, application, // Composite: multipart, message. // // multipart can be mixed, signed, alternative, parallel, digest. // message/rfc822 may also be of interest. void MimeHandlerMail::walkmime(Binc::MimePart* doc, int depth) { LOGDEB2(("MimeHandlerMail::walkmime: depth %d\n", depth)); if (depth++ >= maxdepth) { LOGINFO(("walkmime: max depth (%d) exceeded\n", maxdepth)); return; } string& out = m_metaData[cstr_dj_keycontent]; if (doc->isMultipart()) { LOGDEB2(("walkmime: ismultipart %d subtype '%s'\n", doc->isMultipart(), doc->getSubType().c_str())); // We only handle alternative, related and mixed (no digests). std::vector<Binc::MimePart>::iterator it; if (!stringicmp("mixed", doc->getSubType()) || !stringicmp("signed", doc->getSubType()) || !stringicmp("related", doc->getSubType())) { // Multipart mixed and related: process each part. for (it = doc->members.begin(); it != doc->members.end();it++) { walkmime(&(*it), depth); } } else if (!stringicmp("alternative", doc->getSubType())) { // Multipart/alternative: look for a text/plain part, then html. // Process if found std::vector<Binc::MimePart>::iterator ittxt, ithtml; ittxt = ithtml = doc->members.end(); int i = 1; for (it = doc->members.begin(); it != doc->members.end(); it++, i++) { // Get and parse content-type header Binc::HeaderItem hi; if (!it->h.getFirstHeader("Content-Type", hi)) { LOGDEB(("walkmime:no ctent-type header for part %d\n", i)); continue; } MimeHeaderValue content_type; parseMimeHeaderValue(hi.getValue(), content_type); LOGDEB2(("walkmime: C-type: %s\n",content_type.value.c_str())); if (!stringlowercmp(cstr_textplain, content_type.value)) ittxt = it; else if (!stringlowercmp("text/html", content_type.value)) ithtml = it; } if (ittxt != doc->members.end()) { LOGDEB2(("walkmime: alternative: chose text/plain part\n")) walkmime(&(*ittxt), depth); } else if (ithtml != doc->members.end()) { LOGDEB2(("walkmime: alternative: chose text/html part\n")) walkmime(&(*ithtml), depth); } } return; } // Part is not multipart: it must be either simple or message. Take // a look at interesting headers and a possible filename parameter // Get and parse content-type header. Binc::HeaderItem hi; string ctt = cstr_textplain; if (doc->h.getFirstHeader("Content-Type", hi)) { ctt = hi.getValue(); } LOGDEB2(("walkmime:content-type: %s\n", ctt.c_str())); MimeHeaderValue content_type; parseMimeHeaderValue(ctt, content_type); // Get and parse Content-Disposition header string ctd = "inline"; if (doc->h.getFirstHeader("Content-Disposition", hi)) { ctd = hi.getValue(); } MimeHeaderValue content_disposition; parseMimeHeaderValue(ctd, content_disposition); LOGDEB2(("Content_disposition:[%s]\n", content_disposition.value.c_str())); string dispindic; if (stringlowercmp("inline", content_disposition.value)) dispindic = "Attachment"; else dispindic = "Inline"; // See if we have a filename. string filename; map<string,string>::const_iterator it; it = content_disposition.params.find(string("filename")); if (it != content_disposition.params.end()) filename = it->second; if (filename.empty()) { it = content_type.params.find(string("name")); if (it != content_type.params.end()) filename = it->second; } if (doc->isMessageRFC822()) { LOGDEB2(("walkmime: message/RFC822 part\n")); // The first part is the already parsed message. Call // processMsg instead of walkmime so that mail headers get // printed. The depth will tell it what to do if (doc->members.empty()) { //?? return; } out += "\n"; if (m_forPreview) out += "[" + dispindic + " " + content_type.value + ": "; out += filename; if (m_forPreview) out += "]"; out += "\n\n"; processMsg(&doc->members[0], depth); return; } // "Simple" part. LOGDEB2(("walkmime: simple part\n")); // Normally the default charset is us-ascii. But it happens that 8 // bit chars exist in a message that is stated as us-ascii. Ie the // mailer used by yahoo support ('KANA') does this. We could // convert to iso-8859 only if the transfer-encoding is 8 bit, or // test for actual 8 bit chars, but what the heck, le'ts use // 8859-1 (actually CP1252 which is compatible, but with more // useful chars) as default. string charset; it = content_type.params.find(cstr_mail_charset); if (it != content_type.params.end()) charset = it->second; if (charset.empty() || !stringlowercmp("us-ascii", charset) || !stringlowercmp("default", charset) || !stringlowercmp("x-user-defined", charset) || !stringlowercmp("x-unknown", charset) || !stringlowercmp("unknown", charset) ) { if (!m_config->getConfParam("maildefcharset", charset)) charset = "CP1252"; } // Content transfer encoding string cte = "7bit"; if (doc->h.getFirstHeader("Content-Transfer-Encoding", hi)) { cte = hi.getValue(); } // If the Content-Disposition is not inline, we treat it as // attachment, as per rfc2183. // If it is inline but not text or html, same thing. // Some early MIME msgs have "text" instead of "text/plain" as type if (stringlowercmp("inline", content_disposition.value) || (stringlowercmp(cstr_textplain, content_type.value) && stringlowercmp("text", content_type.value) && stringlowercmp("text/html", content_type.value)) ) { if (!filename.empty()) { out += "\n"; if (m_forPreview) out += "[" + dispindic + " " + content_type.value + ": "; out += filename; if (m_forPreview) out += "]"; out += "\n\n"; } MHMailAttach *att = new MHMailAttach; if (att == 0) { LOGERR(("Out of memory\n")); return; } att->m_contentType = content_type.value; stringtolower(att->m_contentType); att->m_filename = filename; att->m_charset = charset; att->m_contentTransferEncoding = cte; att->m_part = doc; LOGDEB(("walkmime: attachmnt: ct [%s] cte [%s] cs [%s] fn [%s]\n", att->m_contentType.c_str(), att->m_contentTransferEncoding.c_str(), att->m_charset.c_str(), filename.c_str())); m_attachments.push_back(att); return; } // We are dealing with an inline part of text/plain or text/html // type. We can't just return a text or html subdoc and let the // filter stack work: this would create another subdocument, but // we want instead to decode a body part of this message document. LOGDEB2(("walkmime: final: body start offset %d, length %d\n", doc->getBodyStartOffset(), doc->getBodyLength())); string body; doc->getBody(body, 0, doc->bodylength); { string decoded; const string *bdp; if (!decodeBody(cte, body, decoded, &bdp)) { LOGERR(("MimeHandlerMail::walkmime: failed decoding body\n")); } if (bdp != &body) body.swap(decoded); } // Handle html stripping and transcoding to utf8 if (!stringlowercmp("text/html", content_type.value)) { MimeHandlerHtml mh(m_config, "1234"); mh.set_property(Dijon::Filter::OPERATING_MODE, m_forPreview ? "view" : "index"); mh.set_property(Dijon::Filter::DEFAULT_CHARSET, charset); mh.set_document_string("text/html", body); mh.next_document(); map<string, string>::const_iterator it = mh.get_meta_data().find(cstr_dj_keycontent); if (it != mh.get_meta_data().end()) out += it->second; } else { string utf8; // Transcode to utf-8 LOGDEB1(("walkmime: transcoding from %s to UTF-8\n", charset.c_str())); if (!transcode(body, utf8, charset, cstr_utf8)) { LOGERR(("walkmime: transcode failed from cs '%s' to UTF-8\n", charset.c_str())); out += body; } else { out += utf8; } } if (out.length() && out[out.length()-1] != '\n') out += '\n'; LOGDEB2(("walkmime: out now: [%s]\n", out.c_str())); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_html.cpp����������������������������������������������������������������0000644�0001750�0001750�00000013454�12602163537�016671� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "cstr.h" #include "mimehandler.h" #include "debuglog.h" #include "readfile.h" #include "transcode.h" #include "mimeparse.h" #include "myhtmlparse.h" #include "indextext.h" #include "mh_html.h" #include "smallut.h" #include "md5ut.h" #include <iostream> #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ bool MimeHandlerHtml::set_document_file(const string& mt, const string &fn) { LOGDEB0(("textHtmlToDoc: %s\n", fn.c_str())); RecollFilter::set_document_file(mt, fn); string otext; if (!file_to_string(fn, otext)) { LOGINFO(("textHtmlToDoc: cant read: %s\n", fn.c_str())); return false; } m_filename = fn; return set_document_string(mt, otext); } bool MimeHandlerHtml::set_document_string(const string& mt, const string& htext) { RecollFilter::set_document_string(mt, htext); m_html = htext; m_havedoc = true; if (!m_forPreview) { // We want to compute the md5 now because we may modify m_html later string md5, xmd5; MD5String(htext, md5); m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } return true; } bool MimeHandlerHtml::next_document() { if (m_havedoc == false) return false; m_havedoc = false; // If set_doc(fn), take note of file name. string fn = m_filename; m_filename.erase(); string charset = m_dfltInputCharset; LOGDEB(("MHHtml::next_doc.: default supposed input charset: [%s]\n", charset.c_str())); // Override default input charset if someone took care to set one: map<string,string>::const_iterator it = m_metaData.find(cstr_dj_keycharset); if (it != m_metaData.end() && !it->second.empty()) { charset = it->second; LOGDEB(("MHHtml: next_doc.: input charset from ext. metadata: [%s]\n", charset.c_str())); } // - We first try to convert from the supposed charset // (which may depend of the current directory) to utf-8. If this // fails, we keep the original text // - During parsing, if we find a charset parameter, and it differs from // what we started with, we abort and restart with the parameter value // instead of the configuration one. MyHtmlParser result; for (int pass = 0; pass < 2; pass++) { string transcoded; LOGDEB(("Html::mkDoc: pass %d\n", pass)); MyHtmlParser p; // Try transcoding. If it fails, use original text. int ecnt; if (!transcode(m_html, transcoded, charset, "UTF-8", &ecnt)) { LOGDEB(("textHtmlToDoc: transcode failed from cs '%s' to UTF-8 for" "[%s]", charset.c_str(), fn.empty()?"unknown":fn.c_str())); transcoded = m_html; // We don't know the charset, at all p.reset_charsets(); charset.clear(); } else { if (ecnt) { if (pass == 0) { LOGDEB(("textHtmlToDoc: init transcode had %d errors for " "[%s]\n", ecnt, fn.empty()?"unknown":fn.c_str())); } else { LOGERR(("textHtmlToDoc: final transcode had %d errors for " "[%s]\n", ecnt, fn.empty()?"unknown":fn.c_str())); } } // charset has the putative source charset, transcoded is now // in utf-8 p.set_charsets(charset, "utf-8"); } try { p.parse_html(transcoded); // No exception: ok? But throw true to use the same // code path as if an exception had been thrown by parse_html throw true; break; } catch (bool diag) { result = p; if (diag == true) { // Parser throws true at end of text. ok if (m_forPreview) { // Save the html text m_html = transcoded; // In many cases, we need to change the charset decl, // because the file was transcoded. It seems that just // inserting one is enough (only the 1st one seems to // be used by browsers/qtextedit). string::size_type idx = m_html.find("<head>"); if (idx == string::npos) idx = m_html.find("<HEAD>"); if (idx != string::npos) m_html.replace(idx+6, 0, "<meta http-equiv=\"content-type\" " "content=\"text/html; charset=utf-8\">"); } break; } LOGDEB(("textHtmlToDoc: charset [%s] doc charset [%s]\n", charset.c_str(), result.get_charset().c_str())); if (!result.get_charset().empty() && !samecharset(result.get_charset(), result.fromcharset)) { LOGDEB(("textHtmlToDoc: reparse for charsets\n")); // Set the origin charset as specified in document before // transcoding again charset = result.get_charset(); } else { LOGERR(("textHtmlToDoc:: error: non charset exception\n")); return false; } } } m_metaData[cstr_dj_keyorigcharset] = result.get_charset(); m_metaData[cstr_dj_keycontent] = result.dump; m_metaData[cstr_dj_keycharset] = cstr_utf8; // Avoid setting empty values which would crush ones possibly inherited // from parent (if we're an attachment) if (!result.dmtime.empty()) m_metaData[cstr_dj_keymd] = result.dmtime; m_metaData[cstr_dj_keymt] = cstr_textplain; for (map<string,string>::const_iterator it = result.meta.begin(); it != result.meta.end(); it++) { if (!it->second.empty()) m_metaData[it->first] = it->second; } return true; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_text.cpp����������������������������������������������������������������0000644�0001750�0001750�00000013252�12602163571�016703� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <errno.h> #include <iostream> #include <string> #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ #include "cstr.h" #include "mh_text.h" #include "debuglog.h" #include "readfile.h" #include "md5ut.h" #include "rclconfig.h" #include "pxattr.h" const int MB = 1024*1024; const int KB = 1024; // Process a plain text file bool MimeHandlerText::set_document_file(const string& mt, const string &fn) { LOGDEB(("MimeHandlerText::set_document_file: [%s]\n", fn.c_str())); RecollFilter::set_document_file(mt, fn); m_fn = fn; // file size for oversize check struct stat st; if (stat(m_fn.c_str(), &st) < 0) { LOGERR(("MimeHandlerText::set_document_file: stat(%s) errno %d\n", m_fn.c_str(), errno)); return false; } // Check for charset defined in extended attribute as per: // http://freedesktop.org/wiki/CommonExtendedAttributes pxattr::get(m_fn, "charset", &m_charsetfromxattr); // Max file size parameter: texts over this size are not indexed int maxmbs = 20; m_config->getConfParam("textfilemaxmbs", &maxmbs); if (maxmbs == -1 || st.st_size / MB <= maxmbs) { // Text file page size: if set, we split text files into // multiple documents int ps = 1000; m_config->getConfParam("textfilepagekbs", &ps); if (ps != -1) { ps *= KB; m_paging = true; } // Note: size_t is guaranteed unsigned, so max if ps is -1 m_pagesz = size_t(ps); if (!readnext()) return false; } if (!m_forPreview) { string md5, xmd5; MD5String(m_text, md5); m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } m_havedoc = true; return true; } bool MimeHandlerText::set_document_string(const string& mt, const string& otext) { RecollFilter::set_document_string(mt, otext); m_text = otext; if (!m_forPreview) { string md5, xmd5; MD5String(m_text, md5); m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } m_havedoc = true; return true; } bool MimeHandlerText::skip_to_document(const string& ipath) { long long t; if (sscanf(ipath.c_str(), "%lld", &t) != 1) { LOGERR(("MimeHandlerText::skip_to_document: bad ipath offs [%s]\n", ipath.c_str())); return false; } m_offs = (off_t)t; readnext(); return true; } bool MimeHandlerText::next_document() { LOGDEB(("MimeHandlerText::next_document: m_havedoc %d\n", int(m_havedoc))); if (m_havedoc == false) return false; if (m_charsetfromxattr.empty()) m_metaData[cstr_dj_keyorigcharset] = m_dfltInputCharset; else m_metaData[cstr_dj_keyorigcharset] = m_charsetfromxattr; m_metaData[cstr_dj_keymt] = cstr_textplain; size_t srclen = m_text.length(); m_metaData[cstr_dj_keycontent].swap(m_text); // We transcode even if defcharset is supposedly already utf-8: // this validates the encoding. // txtdcode() truncates the text if transcoding fails (void)txtdcode("mh_text"); // If the text length is 0 (the file is empty or oversize), or we are // not paging, we're done if (srclen == 0 || !m_paging) { m_havedoc = false; return true; } else { // Paging: set ipath then read next chunk. // Don't set ipath for the first chunk to avoid having 2 // records for small files (one for the file, one for the // first chunk). This is a hack. The right thing to do would // be to use a different mtype for files over the page size, // and keep text/plain only for smaller files. char buf[30]; sprintf(buf, "%lld", (long long)(m_offs - srclen)); if (m_offs - srclen != 0) m_metaData[cstr_dj_keyipath] = buf; readnext(); // This ensures that the first chunk (offs==srclen) of a // multi-chunk file does have an ipath. Else it stands for the // whole file, which used to be the case but does not seem // right if (m_havedoc) m_metaData[cstr_dj_keyipath] = buf; return true; } } bool MimeHandlerText::readnext() { string reason; m_text.clear(); if (!file_to_string(m_fn, m_text, m_offs, m_pagesz, &reason)) { LOGERR(("MimeHandlerText: can't read file: %s\n", reason.c_str())); m_havedoc = false; return false; } if (m_text.length() == 0) { // EOF m_havedoc = false; return true; } // If possible try to adjust the chunk to end right after a line // Don't do this for the last chunk. Last chunk of exactly the // page size might be unduly split, no big deal if (m_text.length() == m_pagesz) { string::size_type pos = m_text.find_last_of("\n\r"); if (pos != string::npos && pos != 0) { m_text.erase(pos); } } m_offs += m_text.length(); return true; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_exec.cpp����������������������������������������������������������������0000644�0001750�0001750�00000013676�12602163571�016655� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <sys/types.h> #include <sys/wait.h> #include <list> using namespace std; #include "cstr.h" #include "execmd.h" #include "mh_exec.h" #include "mh_html.h" #include "debuglog.h" #include "cancelcheck.h" #include "smallut.h" #include "md5ut.h" #include "rclconfig.h" // This is called periodically by ExeCmd when it is waiting for data, // or when it does receive some. We may choose to interrupt the // command. class MEAdv : public ExecCmdAdvise { public: MEAdv(int maxsecs) : m_filtermaxseconds(maxsecs) {m_start = time(0L);} void newData(int n) { LOGDEB1(("MHExec:newData(%d)\n", n)); if (m_filtermaxseconds > 0 && time(0L) - m_start > m_filtermaxseconds) { LOGERR(("MimeHandlerExec: filter timeout (%d S)\n", m_filtermaxseconds)); CancelCheck::instance().setCancel(); } // If a cancel request was set by the signal handler (or by us // just above), this will raise an exception. Another approach // would be to call ExeCmd::setCancel(). CancelCheck::instance().checkCancel(); } time_t m_start; int m_filtermaxseconds; }; bool MimeHandlerExec::skip_to_document(const string& ipath) { LOGDEB(("MimeHandlerExec:skip_to_document: [%s]\n", ipath.c_str())); m_ipath = ipath; return true; } // Execute an external program to translate a file from its native // format to text or html. bool MimeHandlerExec::next_document() { if (m_havedoc == false) return false; m_havedoc = false; if (missingHelper) { LOGDEB(("MimeHandlerExec::next_document(): helper known missing\n")); return false; } int filtermaxseconds = 900; m_config->getConfParam("filtermaxseconds", &filtermaxseconds); int filtermaxmbytes = 0; m_config->getConfParam("filtermaxmbytes", &filtermaxmbytes); if (params.empty()) { // Hu ho LOGERR(("MimeHandlerExec::mkDoc: empty params\n")); m_reason = "RECFILTERROR BADCONFIG"; return false; } // Command name string cmd = params.front(); // Build parameter vector: delete cmd name and add the file name vector<string>myparams(params.begin() + 1, params.end()); myparams.push_back(m_fn); if (!m_ipath.empty()) myparams.push_back(m_ipath); // Execute command, store the output string& output = m_metaData[cstr_dj_keycontent]; output.erase(); ExecCmd mexec; MEAdv adv(filtermaxseconds); mexec.setAdvise(&adv); mexec.putenv("RECOLL_CONFDIR", m_config->getConfDir()); mexec.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" : "RECOLL_FILTER_FORPREVIEW=no"); mexec.setrlimit_as(filtermaxmbytes); int status; try { status = mexec.doexec(cmd, myparams, 0, &output); } catch (CancelExcept) { LOGERR(("MimeHandlerExec: cancelled\n")); status = 0x110f; } if (status) { LOGERR(("MimeHandlerExec: command status 0x%x for %s\n", status, cmd.c_str())); if (WIFEXITED(status) && WEXITSTATUS(status) == 127) { // That's how execmd signals a failed exec (most probably // a missing command). Let'hope no filter uses the same value as // an exit status... Disable myself permanently and signal the // missing cmd. missingHelper = true; m_reason = string("RECFILTERROR HELPERNOTFOUND ") + cmd; } else if (output.find("RECFILTERROR") == 0) { // If the output string begins with RECFILTERROR, then it's // interpretable error information out from a recoll script m_reason = output; list<string> lerr; stringToStrings(output, lerr); if (lerr.size() > 2) { list<string>::iterator it = lerr.begin(); it++; if (*it == "HELPERNOTFOUND") { // No use trying again and again to execute this filter, // it won't work. missingHelper = true; } } } return false; } finaldetails(); return true; } void MimeHandlerExec::handle_cs(const string& mt, const string& icharset) { string charset(icharset); // cfgFilterOutputCharset comes from the mimeconf filter // definition line and defaults to UTF-8 if empty. If the value is // "default", we use the default input charset value defined in // recoll.conf (which may vary depending on directory) if (charset.empty()) { charset = cfgFilterOutputCharset.empty() ? cstr_utf8 : cfgFilterOutputCharset; if (!stringlowercmp("default", charset)) { charset = m_dfltInputCharset; } } m_metaData[cstr_dj_keyorigcharset] = charset; // If this is text/plain transcode_to/check utf-8 if (!mt.compare(cstr_textplain)) { (void)txtdcode("mh_exec/m"); } else { m_metaData[cstr_dj_keycharset] = charset; } } void MimeHandlerExec::finaldetails() { // The default output mime type is html, but it may be defined // otherwise in the filter definition. m_metaData[cstr_dj_keymt] = cfgFilterOutputMtype.empty() ? "text/html" : cfgFilterOutputMtype; if (!m_forPreview) { string md5, xmd5, reason; if (MD5File(m_fn, md5, &reason)) { m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } else { LOGERR(("MimeHandlerExec: cant compute md5 for [%s]: %s\n", m_fn.c_str(), reason.c_str())); } } handle_cs(m_metaData[cstr_dj_keymt]); } ������������������������������������������������������������������recoll-1.21.5/internfile/extrameta.h����������������������������������������������������������������0000644�0001750�0001750�00000003456�12602163537�016701� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _REAPXATTRS_H_INCLUDED_ #define _REAPXATTRS_H_INCLUDED_ #include "autoconfig.h" /** Extended attributes processing helper functions */ #include <map> #include <string> class RclConfig; namespace Rcl {class Doc;}; /** Read external attributes, possibly ignore some or change the names according to the fields configuration */ extern void reapXAttrs(const RclConfig* config, const std::string& path, std::map<std::string, std::string>& xfields); /** Turn the pre-processed extended file attributes into doc fields */ extern void docFieldsFromXattrs( RclConfig *cfg, const std::map<std::string, std::string>& xfields, Rcl::Doc& doc); /** Get metadata by executing commands */ extern void reapMetaCmds(RclConfig* config, const std::string& path, std::map<std::string, std::string>& xfields); /** Turn the pre-processed ext cmd metadata into doc fields */ extern void docFieldsFromMetaCmds( RclConfig *cfg, const std::map<std::string, std::string>& xfields, Rcl::Doc& doc); #endif /* _REAPXATTRS_H_INCLUDED_ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/uncomp.cpp�����������������������������������������������������������������0000644�0001750�0001750�00000007777�12602163571�016553� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2013 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <errno.h> #include <sys/stat.h> #include <string> #include <vector> #include <map> using std::map; using std::string; using std::vector; #include "uncomp.h" #include "debuglog.h" #include "smallut.h" #include "execmd.h" #include "pathut.h" Uncomp::UncompCache Uncomp::o_cache; bool Uncomp::uncompressfile(const string& ifn, const vector<string>& cmdv, string& tfile) { if (m_docache) { PTMutexLocker lock(o_cache.m_lock); if (!o_cache.m_srcpath.compare(ifn)) { m_dir = o_cache.m_dir; m_tfile = tfile = o_cache.m_tfile; m_srcpath = ifn; o_cache.m_dir = 0; o_cache.m_srcpath.clear(); return true; } } m_srcpath.clear(); m_tfile.clear(); if (m_dir == 0) { m_dir = new TempDir; } // Make sure tmp dir is empty. we guarantee this to filters if (!m_dir || !m_dir->ok() || !m_dir->wipe()) { LOGERR(("uncompressfile: can't clear temp dir %s\n", m_dir->dirname())); return false; } // Check that we have enough available space to have some hope of // decompressing the file. int pc; long long availmbs; if (!fsocc(m_dir->dirname(), &pc, &availmbs)) { LOGERR(("uncompressfile: can't retrieve avail space for %s\n", m_dir->dirname())); // Hope for the best } else { struct stat stb; if (stat(ifn.c_str(), &stb) < 0) { LOGERR(("uncompressfile: stat input file %s errno %d\n", ifn.c_str(), errno)); return false; } // We need at least twice the file size for the uncompressed // and compressed versions. Most compressors don't store the // uncompressed size, so we have no way to be sure that we // have enough space before trying. We take a little margin // use same Mb def as fsocc() long long filembs = stb.st_size / (1024 * 1024); if (availmbs < 2 * filembs + 1) { LOGERR(("uncompressfile. %lld MBs available in %s not enough " "to uncompress %s of size %lld mbs\n", availmbs, m_dir->dirname(), ifn.c_str(), filembs)); return false; } } string cmd = cmdv.front(); // Substitute file name and temp dir in command elements vector<string>::const_iterator it = cmdv.begin(); ++it; vector<string> args; map<char, string> subs; subs['f'] = ifn; subs['t'] = m_dir->dirname(); for (; it != cmdv.end(); it++) { string ns; pcSubst(*it, ns, subs); args.push_back(ns); } // Execute command and retrieve output file name, check that it exists ExecCmd ex; int status = ex.doexec(cmd, args, 0, &tfile); if (status || tfile.empty()) { LOGERR(("uncompressfile: doexec: failed for [%s] status 0x%x\n", ifn.c_str(), status)); if (!m_dir->wipe()) { LOGERR(("uncompressfile: wipedir failed\n")); } return false; } if (tfile[tfile.length() - 1] == '\n') tfile.erase(tfile.length() - 1, 1); m_tfile = tfile; m_srcpath = ifn; return true; } Uncomp::~Uncomp() { if (m_docache) { PTMutexLocker lock(o_cache.m_lock); delete o_cache.m_dir; o_cache.m_dir = m_dir; o_cache.m_tfile = m_tfile; o_cache.m_srcpath = m_srcpath; } else { delete m_dir; } } �recoll-1.21.5/internfile/txtdcode.cpp���������������������������������������������������������������0000644�0001750�0001750�00000004654�12602163571�017057� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include "cstr.h" #include "transcode.h" #include "mimehandler.h" #include "debuglog.h" #include "smallut.h" // Called after decoding from utf-8 failed. Handle the common case // where this is a good old 8bit-encoded text document left-over when // the locale was switched to utf-8. We try to guess a charset // according to the locale language and use it. This is a very rough // heuristic, but may be better than discarding the data. static bool alternate_decode(const string& in, string& out) { string lang = localelang(); string code = langtocode(lang); LOGDEB(("RecollFilter::txtdcode: trying alternate decode from %s\n", code.c_str())); return transcode(in, out, code, cstr_utf8); } bool RecollFilter::txtdcode(const string& who) { if (m_metaData[cstr_dj_keymt].compare(cstr_textplain)) { LOGERR(("%s::txtdcode: called on non txt/plain: %s\n", who.c_str(), m_metaData[cstr_dj_keymt].c_str())); return false; } string& ocs = m_metaData[cstr_dj_keyorigcharset]; string& itext = m_metaData[cstr_dj_keycontent]; LOGDEB1(("%s::txtdcode: %d bytes from [%s] to UTF-8\n", who.c_str(), itext.size(), ocs.c_str())); int ecnt; string otext; bool ret = transcode(itext, otext, ocs, cstr_utf8, &ecnt); if (!ret || ecnt > int(itext.size() / 100)) { LOGERR(("%s::txtdcode: transcode %d bytes to UTF-8 failed " "for input charset [%s] ret %d ecnt %d\n", who.c_str(), itext.size(), ocs.c_str(), ret, ecnt)); if (samecharset(ocs, cstr_utf8)) { ret = alternate_decode(itext, otext); } if (!ret) { itext.erase(); return false; } } itext.swap(otext); m_metaData[cstr_dj_keycharset] = cstr_utf8; return true; } ������������������������������������������������������������������������������������recoll-1.21.5/internfile/myhtmlparse.h��������������������������������������������������������������0000644�0001750�0001750�00000004605�12602163537�017251� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* This file was copied from omega-0.8.5 and modified */ /* myhtmlparse.h: subclass of HtmlParser for extracting text * * ----START-LICENCE---- * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2002,2003,2004 Olly Betts * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * -----END-LICENCE----- */ #include <map> using std::map; #include "htmlparse.h" // FIXME: Should we include \xa0 which is non-breaking space in iso-8859-1, but // not in all charsets and perhaps spans of all \xa0 should become a single // \xa0? #define WHITESPACE " \t\n\r" class MyHtmlParser : public HtmlParser { public: bool in_script_tag; bool in_style_tag; bool in_pre_tag; bool in_title_tag; bool pending_space; map<string,string> meta; string dump, dmtime, titledump; // This is the charset our caller thinks the doc used (initially // comes from the environment/configuration, used as source for // conversion to utf-8) string fromcharset; // This is the charset it was supposedly converted to (always // utf-8 in fact, except if conversion utterly failed) string tocharset; // charset is declared by HtmlParser. It is the charset from the // document: default, then from html or xml header. // string charset; bool indexing_allowed; void process_text(const string &text); bool opening_tag(const string &tag); bool closing_tag(const string &tag); void do_eof(); void decode_entities(string &s); void reset_charsets() {fromcharset = tocharset = "";} void set_charsets(const string& f, const string& t) { fromcharset = f; tocharset = t; } // Return charset as determined from html const string& get_charset() {return charset;} MyHtmlParser(); }; ���������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_execm.cpp���������������������������������������������������������������0000644�0001750�0001750�00000024412�12602163571�017020� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <stdio.h> #include <iostream> #include <sstream> using namespace std; #include "cstr.h" #include "mh_execm.h" #include "mh_html.h" #include "debuglog.h" #include "cancelcheck.h" #include "smallut.h" #include "md5ut.h" #include "rclconfig.h" #include "mimetype.h" #include "idfile.h" #include <sys/types.h> #include <sys/wait.h> bool MimeHandlerExecMultiple::startCmd() { LOGDEB(("MimeHandlerExecMultiple::startCmd\n")); if (params.empty()) { // Hu ho LOGERR(("MHExecMultiple::startCmd: empty params\n")); m_reason = "RECFILTERROR BADCONFIG"; return false; } // Command name string cmd = params.front(); int filtermaxmbytes = 0; m_config->getConfParam("filtermaxmbytes", &filtermaxmbytes); m_maxmemberkb = 50000; m_config->getConfParam("membermaxkbs", &m_maxmemberkb); ostringstream oss; oss << "RECOLL_FILTER_MAXMEMBERKB=" << m_maxmemberkb; m_cmd.putenv(oss.str()); m_cmd.putenv("RECOLL_CONFDIR", m_config->getConfDir()); m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" : "RECOLL_FILTER_FORPREVIEW=no"); m_cmd.setrlimit_as(filtermaxmbytes); // Build parameter list: delete cmd name vector<string>myparams(params.begin() + 1, params.end()); if (m_cmd.startExec(cmd, myparams, 1, 1) < 0) { m_reason = string("RECFILTERROR HELPERNOTFOUND ") + cmd; missingHelper = true; return false; } return true; } // Note: data is not used if this is the "document:" field: it goes // directly to m_metaData[cstr_dj_keycontent] to avoid an extra copy // // Messages are made of data elements. Each element is like: // name: len\ndata // An empty line signals the end of the message, so the whole thing // would look like: // Name1: Len1\nData1Name2: Len2\nData2\n bool MimeHandlerExecMultiple::readDataElement(string& name, string &data) { string ibuf; // Read name and length if (m_cmd.getline(ibuf) <= 0) { LOGERR(("MHExecMultiple: getline error\n")); return false; } // Empty line (end of message) ? if (!ibuf.compare("\n")) { LOGDEB(("MHExecMultiple: Got empty line\n")); name.clear(); return true; } // Filters will sometimes abort before entering the real protocol, ie if // a module can't be loaded. Check the special filter error first word: if (ibuf.find("RECFILTERROR ") == 0) { m_reason = ibuf; if (ibuf.find("HELPERNOTFOUND") != string::npos) missingHelper = true; return false; } // We're expecting something like Name: len\n vector<string> tokens; stringToTokens(ibuf, tokens); if (tokens.size() != 2) { LOGERR(("MHExecMultiple: bad line in filter output: [%s]\n", ibuf.c_str())); return false; } vector<string>::iterator it = tokens.begin(); name = *it++; string& slen = *it; int len; if (sscanf(slen.c_str(), "%d", &len) != 1) { LOGERR(("MHExecMultiple: bad line in filter output: [%s]\n", ibuf.c_str())); return false; } if (len / 1024 > m_maxmemberkb) { LOGERR(("MHExecMultiple: data len > maxmemberkb\n")); return false; } // Hack: check for 'Document:' and read directly the document data // to m_metaData[cstr_dj_keycontent] to avoid an extra copy of the bulky // piece string *datap = &data; if (!stringlowercmp("document:", name)) { datap = &m_metaData[cstr_dj_keycontent]; } else { datap = &data; } // Read element data datap->erase(); if (len > 0 && m_cmd.receive(*datap, len) != len) { LOGERR(("MHExecMultiple: expected %d bytes of data, got %d\n", len, datap->length())); return false; } LOGDEB1(("MHExecMe:rdDtElt got: name [%s] len %d value [%s]\n", name.c_str(), len, datap->size() > 100 ? (datap->substr(0, 100) + " ...").c_str() : datap->c_str())); return true; } bool MimeHandlerExecMultiple::next_document() { LOGDEB(("MimeHandlerExecMultiple::next_document(): [%s]\n", m_fn.c_str())); if (m_havedoc == false) return false; if (missingHelper) { LOGDEB(("MHExecMultiple::next_document(): helper known missing\n")); return false; } if (m_cmd.getChildPid() < 0 && !startCmd()) { return false; } // Send request to child process. This maybe the first/only // request for a given file, or a continuation request. We send an // empty file name in the latter case. ostringstream obuf; if (m_filefirst) { obuf << "FileName: " << m_fn.length() << "\n" << m_fn; // m_filefirst is set to true by set_document_file() m_filefirst = false; } else { obuf << "Filename: " << 0 << "\n"; } if (!m_ipath.empty()) { LOGDEB(("next_doc: sending len %d val [%s]\n", m_ipath.length(), m_ipath.c_str())); obuf << "Ipath: " << m_ipath.length() << "\n" << m_ipath; } if (!m_dfltInputCharset.empty()) { obuf << "DflInCS: " << m_dfltInputCharset.length() << "\n" << m_dfltInputCharset; } obuf << "Mimetype: " << m_mimeType.length() << "\n" << m_mimeType; obuf << "\n"; if (m_cmd.send(obuf.str()) < 0) { m_cmd.zapChild(); LOGERR(("MHExecMultiple: send error\n")); return false; } // Read answer (multiple elements) LOGDEB1(("MHExecMultiple: reading answer\n")); bool eofnext_received = false; bool eofnow_received = false; bool fileerror_received = false; bool subdocerror_received = false; string ipath; string mtype; string charset; for (int loop=0;;loop++) { string name, data; if (!readDataElement(name, data)) { m_cmd.zapChild(); return false; } if (name.empty()) break; if (!stringlowercmp("eofnext:", name)) { LOGDEB(("MHExecMultiple: got EOFNEXT\n")); eofnext_received = true; } else if (!stringlowercmp("eofnow:", name)) { LOGDEB(("MHExecMultiple: got EOFNOW\n")); eofnow_received = true; } else if (!stringlowercmp("fileerror:", name)) { LOGDEB(("MHExecMultiple: got FILEERROR\n")); fileerror_received = true; } else if (!stringlowercmp("subdocerror:", name)) { LOGDEB(("MHExecMultiple: got SUBDOCERROR\n")); subdocerror_received = true; } else if (!stringlowercmp("ipath:", name)) { ipath = data; LOGDEB(("MHExecMultiple: got ipath [%s]\n", data.c_str())); } else if (!stringlowercmp("charset:", name)) { charset = data; LOGDEB(("MHExecMultiple: got charset [%s]\n", data.c_str())); } else if (!stringlowercmp("mimetype:", name)) { mtype = data; LOGDEB(("MHExecMultiple: got mimetype [%s]\n", data.c_str())); } if (loop == 10) { // ?? LOGERR(("MHExecMultiple: filter sent too many parameters\n")); return false; } } if (eofnow_received || fileerror_received) { // No more docs m_havedoc = false; return false; } if (subdocerror_received) { return false; } // It used to be that eof could be signalled just by an empty document, but // this was wrong. Empty documents can be found ie in zip files and should // not be interpreted as eof. if (m_metaData[cstr_dj_keycontent].empty()) { LOGDEB0(("MHExecMultiple: got empty document inside [%s]: [%s]\n", m_fn.c_str(), ipath.c_str())); } if (!ipath.empty()) { // If this has an ipath, it is an internal doc from a // multi-document file. In this case, either the filter // supplies the mimetype, or the ipath MUST be a filename-like // string which we can use to compute a mime type m_metaData[cstr_dj_keyipath] = ipath; if (mtype.empty()) { LOGDEB0(("MHExecMultiple: no mime type from filter, " "using ipath for a guess\n")); mtype = mimetype(ipath, 0, m_config, false); if (mtype.empty()) { // mimetype() won't call idFile when there is no file. Do it mtype = idFileMem(m_metaData[cstr_dj_keycontent]); if (mtype.empty()) { // Note this happens for example for directory zip members // We could recognize them by the end /, but wouldn't know // what to do with them anyway. LOGINFO(("MHExecMultiple: cant guess mime type\n")); mtype = "application/octet-stream"; } } } m_metaData[cstr_dj_keymt] = mtype; if (!m_forPreview) { string md5, xmd5; MD5String(m_metaData[cstr_dj_keycontent], md5); m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } } else { // "Self" document. m_metaData[cstr_dj_keymt] = mtype.empty() ? "text/html" : mtype; m_metaData.erase(cstr_dj_keyipath); if (!m_forPreview) { string md5, xmd5, reason; if (MD5File(m_fn, md5, &reason)) { m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5); } else { LOGERR(("MimeHandlerExecM: cant compute md5 for [%s]: %s\n", m_fn.c_str(), reason.c_str())); } } } handle_cs(m_metaData[cstr_dj_keymt], charset); if (eofnext_received) m_havedoc = false; LOGDEB0(("MHExecMultiple: returning %d bytes of content," " mtype [%s] charset [%s]\n", m_metaData[cstr_dj_keycontent].size(), m_metaData[cstr_dj_keymt].c_str(), m_metaData[cstr_dj_keycharset].c_str())); return true; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/htmlparse.h����������������������������������������������������������������0000644�0001750�0001750�00000003175�12602163537�016704� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* This file was copied from xapian-omega-1.0.1 and modified */ /* htmlparse.h: simple HTML parser for omega indexer * * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2002,2006 Olly Betts * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA */ #ifndef INCLUDED_HTMLPARSE_H #define INCLUDED_HTMLPARSE_H #include <string> #include <map> using std::string; using std::map; class HtmlParser { map<string, string> parameters; protected: virtual void decode_entities(string &s); bool in_script; string charset; static map<string, unsigned int> named_ents; bool get_parameter(const string & param, string & value) const; public: virtual void process_text(const string &/*text*/) { } virtual bool opening_tag(const string &/*tag*/) { return true; } virtual bool closing_tag(const string &/*tag*/) { return true; } virtual void parse_html(const string &text); virtual void do_eof() {} HtmlParser(); virtual ~HtmlParser() { } }; #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/Filter.h�������������������������������������������������������������������0000644�0001750�0001750�00000016303�12602163571�016125� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DIJON_FILTER_H #define _DIJON_FILTER_H #include <string> #include <set> #include <map> class RclConfig; namespace Dijon { class Filter; /** Provides the list of MIME types supported by the filter(s). * The character string is allocated with new[]. * This function is exported by dynamically loaded filter libraries. */ typedef bool (get_filter_types_func)(std::set<std::string> &); /** Returns what data should be passed to the filter(s). * Output is cast from Filter::DataInput to int for convenience. * This function is exported by dynamically loaded filter libraries. * The aim is to let the client application know before-hand whether * it should load documents or not. */ typedef bool (check_filter_data_input_func)(int); /** Returns a Filter that handles the given MIME type. * The Filter object is allocated with new. * This function is exported by dynamically loaded filter libraries * and serves as a factory for Filter objects, so that the client * application doesn't have to know which Filter sub-types handle * which MIME types. */ typedef Filter *(get_filter_func)(const std::string &); /// Filter interface. class Filter { public: /// Destroys the filter. Filter() { } virtual ~Filter() {} virtual void setConfig(RclConfig *) = 0; // Enumerations. /** What data a filter supports as input. * It can be either the whole document data, its file name, or its URI. */ typedef enum { DOCUMENT_DATA=0, DOCUMENT_STRING, DOCUMENT_FILE_NAME, DOCUMENT_URI } DataInput; /** Input properties supported by the filter. * * - DEFAULT_CHARSET is the source encoding that should be used * for reading/transcoding the original data if there is no * other way to determine it (ie: for text/plain files) * - OPERATING_MODE can be set to either view or index. * - DJF_UDI Unique document identifier. This can be useful if the * filter wants to manage a persistent cache. */ typedef enum { DEFAULT_CHARSET=0, OPERATING_MODE, DJF_UDI } Properties; // Information. /// Returns the MIME type handled by the filter. std::string get_mime_type(void) const { return m_mimeType; } /// Returns what data the filter requires as input. virtual bool is_data_input_ok(DataInput input) const = 0; // Initialization. /** Sets a property, prior to calling set_document_XXX(). * Returns false if the property is not supported. */ virtual bool set_property(Properties prop_name, const std::string &prop_value) = 0; /** (Re)initializes the filter with the given data. * Caller should ensure the given pointer is valid until the * Filter object is destroyed, as some filters may not need to * do a deep copy of the data. * Call next_document() to position the filter onto the first document. * Returns false if this input is not supported or an error occured. */ virtual bool set_document_data(const std::string& mtype, const char *data_ptr, unsigned int data_length) = 0; /** (Re)initializes the filter with the given data. * Call next_document() to position the filter onto the first document. * Returns false if this input is not supported or an error occured. */ virtual bool set_document_string(const std::string& mtype, const std::string &data_str) = 0; /** (Re)initializes the filter with the given file. * Call next_document() to position the filter onto the first document. * Returns false if this input is not supported or an error occured. */ virtual bool set_document_file(const std::string& mtype, const std::string &file_path) = 0; /** (Re)initializes the filter with the given URI. * Call next_document() to position the filter onto the first document. * Returns false if this input is not supported or an error occured. */ virtual bool set_document_uri(const std::string& mtype, const std::string &uri) = 0; /** Set the document size meta_data element. This is the size of the immediate containing file (ie, a .doc, a .odt), not the size of, ie, a containing archive or .gz nor the size of the extracted text. This is set externally, because the surrounding code quite often has a better idea about it (having created a temp file, etc.), and this saves more stat() calls The value is stored inside metaData, docsize key */ virtual void set_docsize(size_t size) = 0; // Going from one nested document to the next. /** Returns true if there are nested documents left to extract. * Returns false if the end of the parent document was reached * or an error occured. */ virtual bool has_documents(void) const = 0; /** Moves to the next nested document. * Returns false if there are none left. */ virtual bool next_document(void) = 0; /** Skips to the nested document with the given ipath. * Returns false if no such document exists. */ virtual bool skip_to_document(const std::string &ipath) = 0; // Accessing documents' contents. /// Returns the message for the most recent error that has occured. virtual std::string get_error(void) const = 0; /** Returns a dictionary of metadata extracted from the current document. * Metadata fields may include one or more of the following : * content, title, ipath, mimetype, language, charset, author, creator, * publisher, modificationdate, creationdate, size * Special considerations apply : * - content may contain binary data, watch out ! * - ipath is an internal path to the nested document that can be * later passed to skip_to_document(). It may be empty if the parent * document's type doesn't allow embedding, in which case the filter * should only return one document. * - mimetype should be text/plain if the document could be handled * internally, empty if unknown. If any other value, it is expected * that the client application can pass the nested document's content * to another filter that supports this particular type. */ virtual const std::map<std::string, std::string> &get_meta_data(void) const { return m_metaData; } virtual void clear() {m_metaData.clear();} virtual bool is_unknown() {return false;} protected: /// The MIME type handled by the filter. std::string m_mimeType; /// Metadata dictionary. std::map<std::string, std::string> m_metaData; private: /// Filter objects cannot be copied. Filter(const Filter &other); /// Filter objects cannot be copied. Filter& operator=(const Filter& other); }; } #endif // _DIJON_FILTER_H �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/indextext.h����������������������������������������������������������������0000644�0001750�0001750�00000002403�12602163537�016712� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _INDEXTEXT_H_INCLUDED_ #define _INDEXTEXT_H_INCLUDED_ /* Note: this only exists to help with using myhtmlparse.cc */ // Minimize changes to myhtmlparse.cpp #include "debuglog.h" #include <string> // lets hope that the charset includes ascii values... static inline void lowercase_term(std::string &term) { std::string::iterator i = term.begin(); while (i != term.end()) { if (*i >= 'A' && *i <= 'Z') *i = *i + 'a' - 'A'; i++; } } #endif /* _INDEXTEXT_H_INCLUDED_ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/internfile.cpp�������������������������������������������������������������0000644�0001750�0001750�00000116562�12616062474�017407� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_INTERNFILE #include "autoconfig.h" #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <string> #include <iostream> #include <map> using namespace std; #include "cstr.h" #include "internfile.h" #include "rcldoc.h" #include "mimetype.h" #include "debuglog.h" #include "mimehandler.h" #include "execmd.h" #include "pathut.h" #include "rclconfig.h" #include "mh_html.h" #include "fileudi.h" #include "cancelcheck.h" #include "copyfile.h" #include "fetcher.h" #include "extrameta.h" // The internal path element separator. This can't be the same as the rcldb // file to ipath separator : "|" // We replace it with a control char if it comes out of a filter (ie: // rclzip or rclchm can do this). If you want the SOH control char // inside an ipath, you're out of luck (and a bit weird). static const string cstr_isep(":"); static const char cchar_colon_repl = '\x01'; static string colon_hide(const string& in) { string out; for (string::const_iterator it = in.begin(); it != in.end(); it++) { out += *it == ':' ? cchar_colon_repl : *it; } return out; } static string colon_restore(const string& in) { string out; for (string::const_iterator it = in.begin(); it != in.end(); it++) { out += *it == cchar_colon_repl ? ':' : *it; } return out; } // This is used when the user wants to retrieve a search result doc's parent // (ie message having a given attachment) bool FileInterner::getEnclosingUDI(const Rcl::Doc &doc, string& udi) { LOGDEB(("FileInterner::getEnclosingUDI(): url [%s] ipath [%s]\n", doc.url.c_str(), doc.ipath.c_str())); string eipath = doc.ipath; string::size_type colon; if (eipath.empty()) return false; if ((colon = eipath.find_last_of(cstr_isep)) != string::npos) { eipath.erase(colon); } else { eipath.erase(); } make_udi(url_gpath(doc.idxurl.empty() ? doc.url : doc.idxurl), eipath, udi); return true; } string FileInterner::getLastIpathElt(const string& ipath) { string::size_type sep; if ((sep = ipath.find_last_of(cstr_isep)) != string::npos) { return ipath.substr(sep + 1); } else { return ipath; } } bool FileInterner::ipathContains(const string& parent, const string& child) { return child.find(parent) == 0 && child.find(cstr_isep, parent.size()) == parent.size(); } // Constructor: identify the input file, possibly create an // uncompressed temporary copy, and create the top filter for the // uncompressed file type. // // Empty handler on return says that we're in error, this will be // processed by the first call to internfile(). // Split into "constructor calls init()" to allow use from other constructor FileInterner::FileInterner(const string &fn, const struct stat *stp, RclConfig *cnf, int flags, const string *imime) : m_ok(false), m_missingdatap(0), m_uncomp((flags & FIF_forPreview) != 0) { LOGDEB0(("FileInterner::FileInterner(fn=%s)\n", fn.c_str())); if (fn.empty()) { LOGERR(("FileInterner::FileInterner: empty file name!\n")); return; } initcommon(cnf, flags); init(fn, stp, cnf, flags, imime); } void FileInterner::init(const string &f, const struct stat *stp, RclConfig *cnf, int flags, const string *imime) { if (f.empty()) { LOGERR(("FileInterner::init: empty file name!\n")); return; } m_fn = f; // Compute udi for the input file. This is used by filters which // manage some kind of cache. Indexing by udi makes things easier // because they sometimes get a temp as actual input. string udi; make_udi(f, cstr_null, udi); cnf->setKeyDir(path_getfather(m_fn)); string l_mime; bool usfci = false; cnf->getConfParam("usesystemfilecommand", &usfci); // In general, even when the input mime type is set (when // previewing), we can't use it: it's the type for the actual // document, but this can be part of a compound document, and // we're dealing with the top level file here, or this could be a // compressed file. The flag tells us we really can use it // (e.g. the beagle indexer sets it). if (flags & FIF_doUseInputMimetype) { if (!imime) { LOGERR(("FileInterner:: told to use null imime\n")); return; } l_mime = *imime; } else { LOGDEB(("FileInterner::init fn [%s] mime [%s] preview %d\n", f.c_str(), imime?imime->c_str() : "(null)", m_forPreview)); // Run mime type identification in any case (see comment above). l_mime = mimetype(m_fn, stp, m_cfg, usfci); // If identification fails, try to use the input parameter. This // is then normally not a compressed type (it's the mime type from // the db), and is only set when previewing, not for indexing if (l_mime.empty() && imime) l_mime = *imime; } size_t docsize = stp->st_size; if (!l_mime.empty()) { // Has mime: check for a compressed file. If so, create a // temporary uncompressed file, and rerun the mime type // identification, then do the rest with the temp file. vector<string>ucmd; if (m_cfg->getUncompressor(l_mime, ucmd)) { // Check for compressed size limit int maxkbs = -1; if (!m_cfg->getConfParam("compressedfilemaxkbs", &maxkbs) || maxkbs < 0 || !stp || int(stp->st_size / 1024) < maxkbs) { if (!m_uncomp.uncompressfile(m_fn, ucmd, m_tfile)) { return; } LOGDEB1(("FileInterner:: after ucomp: tfile %s\n", m_tfile.c_str())); m_fn = m_tfile; // Stat the uncompressed file, mainly to get the size struct stat ucstat; if (stat(m_fn.c_str(), &ucstat) != 0) { LOGERR(("FileInterner: can't stat the uncompressed file" "[%s] errno %d\n", m_fn.c_str(), errno)); return; } else { docsize = ucstat.st_size; } l_mime = mimetype(m_fn, &ucstat, m_cfg, usfci); if (l_mime.empty() && imime) l_mime = *imime; } else { LOGINFO(("FileInterner:: %s over size limit %d kbs\n", m_fn.c_str(), maxkbs)); } } } if (l_mime.empty()) { // No mime type. We let it through as config may warrant that // we index all file names LOGDEB0(("FileInterner:: no mime: [%s]\n", m_fn.c_str())); } // Look for appropriate handler (might still return empty) m_mimetype = l_mime; RecollFilter *df = getMimeHandler(l_mime, m_cfg, !m_forPreview); if (!df or df->is_unknown()) { // No real handler for this type, for now :( LOGDEB(("FileInterner:: unprocessed mime: [%s] [%s]\n", l_mime.c_str(), f.c_str())); if (!df) return; } df->set_property(Dijon::Filter::OPERATING_MODE, m_forPreview ? "view" : "index"); df->set_property(Dijon::Filter::DJF_UDI, udi); // Get fields computed from extended attributes. We use the // original file, not the m_fn which may be the uncompressed temp // file if (!m_noxattrs) reapXAttrs(m_cfg, f, m_XAttrsFields); // Gather metadata from external commands as configured. reapMetaCmds(m_cfg, f, m_cmdFields); df->set_docsize(docsize); if (!df->set_document_file(l_mime, m_fn)) { delete df; LOGERR(("FileInterner:: error converting %s\n", m_fn.c_str())); return; } m_handlers.push_back(df); LOGDEB(("FileInterner:: init ok %s [%s]\n", l_mime.c_str(), m_fn.c_str())); m_ok = true; } // Setup from memory data (ie: out of the web cache). imime needs to be set. FileInterner::FileInterner(const string &data, RclConfig *cnf, int flags, const string& imime) : m_ok(false), m_missingdatap(0), m_uncomp((flags & FIF_forPreview) != 0) { LOGDEB0(("FileInterner::FileInterner(data)\n")); initcommon(cnf, flags); init(data, cnf, flags, imime); } void FileInterner::init(const string &data, RclConfig *cnf, int flags, const string& imime) { if (imime.empty()) { LOGERR(("FileInterner: inmemory constructor needs input mime type\n")); return; } m_mimetype = imime; // Look for appropriate handler (might still return empty) RecollFilter *df = getMimeHandler(m_mimetype, m_cfg, !m_forPreview); if (!df) { // No handler for this type, for now :( if indexallfilenames // is set in the config, this normally wont happen (we get mh_unknown) LOGDEB(("FileInterner:: unprocessed mime [%s]\n", m_mimetype.c_str())); return; } df->set_property(Dijon::Filter::OPERATING_MODE, m_forPreview ? "view" : "index"); bool result = false; df->set_docsize(data.length()); if (df->is_data_input_ok(Dijon::Filter::DOCUMENT_STRING)) { result = df->set_document_string(m_mimetype, data); } else if (df->is_data_input_ok(Dijon::Filter::DOCUMENT_DATA)) { result = df->set_document_data(m_mimetype, data.c_str(), data.length()); } else if (df->is_data_input_ok(Dijon::Filter::DOCUMENT_FILE_NAME)) { TempFile temp = dataToTempFile(data, m_mimetype); if (temp.isNotNull() && (result = df->set_document_file(m_mimetype, temp->filename()))) { m_tmpflgs[m_handlers.size()] = true; m_tempfiles.push_back(temp); } } if (!result) { LOGINFO(("FileInterner:: set_doc failed inside for mtype %s\n", m_mimetype.c_str())); delete df; return; } m_handlers.push_back(df); m_ok = true; } void FileInterner::initcommon(RclConfig *cnf, int flags) { m_cfg = cnf; m_forPreview = ((flags & FIF_forPreview) != 0); // Initialize handler stack. m_handlers.reserve(MAXHANDLERS); for (unsigned int i = 0; i < MAXHANDLERS; i++) m_tmpflgs[i] = false; m_targetMType = cstr_textplain; m_cfg->getConfParam("noxattrfields", &m_noxattrs); } FileInterner::FileInterner(const Rcl::Doc& idoc, RclConfig *cnf, int flags) : m_ok(false), m_missingdatap(0), m_uncomp(((flags & FIF_forPreview) != 0)) { LOGDEB0(("FileInterner::FileInterner(idoc)\n")); initcommon(cnf, flags); DocFetcher *fetcher = docFetcherMake(idoc); if (fetcher == 0) { LOGERR(("FileInterner:: no backend\n")); return; } DocFetcher::RawDoc rawdoc; if (!fetcher->fetch(cnf, idoc, rawdoc)) { LOGERR(("FileInterner:: fetcher failed\n")); return; } switch (rawdoc.kind) { case DocFetcher::RawDoc::RDK_FILENAME: init(rawdoc.data, &rawdoc.st, cnf, flags, &idoc.mimetype); break; case DocFetcher::RawDoc::RDK_DATA: init(rawdoc.data, cnf, flags, idoc.mimetype); break; default: LOGERR(("FileInterner::FileInterner(idoc): bad rawdoc kind ??\n")); } return; } bool FileInterner::makesig(RclConfig *cnf, const Rcl::Doc& idoc, string& sig) { DocFetcher *fetcher = docFetcherMake(idoc); if (fetcher == 0) { LOGERR(("FileInterner::makesig no backend for doc\n")); return false; } bool ret = fetcher->makesig(cnf, idoc, sig); delete fetcher; return ret; } FileInterner::~FileInterner() { for (vector<RecollFilter*>::iterator it = m_handlers.begin(); it != m_handlers.end(); it++) { returnMimeHandler(*it); } // m_tempfiles will take care of itself } // Create a temporary file for a block of data (ie: attachment) found // while walking the internal document tree, with a type for which the // handler needs an actual file (ie : external script). TempFile FileInterner::dataToTempFile(const string& dt, const string& mt) { // Create temp file with appropriate suffix for mime type TempFile temp(new TempFileInternal(m_cfg->getSuffixFromMimeType(mt))); if (!temp->ok()) { LOGERR(("FileInterner::dataToTempFile: cant create tempfile: %s\n", temp->getreason().c_str())); return TempFile(); } string reason; if (!stringtofile(dt, temp->filename(), reason)) { LOGERR(("FileInterner::dataToTempFile: stringtofile: %s\n", reason.c_str())); return TempFile(); } return temp; } // See if the error string is formatted as a missing helper message, // accumulate helper name if it is. The format of the message is: // RECFILTERROR HELPERNOTFOUND program1 [program2 ...] void FileInterner::checkExternalMissing(const string& msg, const string& mt) { LOGDEB2(("checkExternalMissing: [%s]\n", msg.c_str())); if (m_missingdatap && msg.find("RECFILTERROR") == 0) { vector<string> verr; stringToStrings(msg, verr); if (verr.size() > 2) { vector<string>::iterator it = verr.begin(); it++; if (*it == "HELPERNOTFOUND") { it++; for (; it != verr.end(); it++) { m_missingdatap->addMissing(*it, mt); } } } } } void FIMissingStore::getMissingExternal(string& out) { for (map<string, set<string> >::const_iterator it = m_typesForMissing.begin(); it != m_typesForMissing.end(); it++) { out += string(" ") + it->first; } trimstring(out); } void FIMissingStore::getMissingDescription(string& out) { out.erase(); for (map<string, set<string> >::const_iterator it = m_typesForMissing.begin(); it != m_typesForMissing.end(); it++) { out += it->first + " ("; set<string>::const_iterator it3; for (it3 = it->second.begin(); it3 != it->second.end(); it3++) { out += *it3 + " "; } trimstring(out); out += ")"; out += "\n"; } } FIMissingStore::FIMissingStore(const string& in) { // The "missing" file is text. Each line defines a missing filter // and the list of mime types actually encountered that needed it // (see method getMissingDescription()) vector<string> lines; stringToTokens(in, lines, "\n"); for (vector<string>::const_iterator it = lines.begin(); it != lines.end(); it++) { // Lines from the file are like: // // filter name string (mime1 mime2) // // We can't be too sure that there will never be a parenthesis // inside the filter string as this comes from the filter // itself. The list part is safer, so we start from the end. const string& line = *it; string::size_type lastopen = line.find_last_of("("); if (lastopen == string::npos) continue; string::size_type lastclose = line.find_last_of(")"); if (lastclose == string::npos || lastclose <= lastopen + 1) continue; string smtypes = line.substr(lastopen+1, lastclose - lastopen - 1); vector<string> mtypes; stringToTokens(smtypes, mtypes); string filter = line.substr(0, lastopen); trimstring(filter); if (filter.empty()) continue; for (vector<string>::const_iterator itt = mtypes.begin(); itt != mtypes.end(); itt++) { m_typesForMissing[filter].insert(*itt); } } } // Helper for extracting a value from a map. static inline bool getKeyValue(const map<string, string>& docdata, const string& key, string& value) { map<string,string>::const_iterator it; it = docdata.find(key); if (it != docdata.end()) { value = it->second; LOGDEB2(("getKeyValue: [%s]->[%s]\n", key.c_str(), value.c_str())); return true; } LOGDEB2(("getKeyValue: no value for [%s]\n", key.c_str())); return false; } bool FileInterner::dijontorcl(Rcl::Doc& doc) { RecollFilter *df = m_handlers.back(); if (df == 0) { //?? LOGERR(("FileInterner::dijontorcl: null top handler ??\n")); return false; } const map<string, string>& docdata = df->get_meta_data(); for (map<string,string>::const_iterator it = docdata.begin(); it != docdata.end(); it++) { if (it->first == cstr_dj_keycontent) { doc.text = it->second; if (doc.fbytes.empty()) { // It's normally set by walking the filter stack, in // collectIpathAndMt, which was called before us. It // can happen that the doc size is still empty at this // point if the last container filter is directly // returning text/plain content, so that there is no // ipath-less filter at the top char cbuf[30]; sprintf(cbuf, "%d", int(doc.text.length())); doc.fbytes = cbuf; } } else if (it->first == cstr_dj_keymd) { doc.dmtime = it->second; } else if (it->first == cstr_dj_keyanc) { doc.haschildren = true; } else if (it->first == cstr_dj_keyorigcharset) { doc.origcharset = it->second; } else if (it->first == cstr_dj_keyfn) { // Only if not set during the stack walk const string *fnp = 0; if (!doc.peekmeta(Rcl::Doc::keyfn, &fnp) || fnp->empty()) doc.meta[Rcl::Doc::keyfn] = it->second; } else if (it->first == cstr_dj_keymt || it->first == cstr_dj_keycharset) { // don't need/want these. } else { doc.addmeta(m_cfg->fieldCanon(it->first), it->second); } } if (doc.meta[Rcl::Doc::keyabs].empty() && !doc.meta[cstr_dj_keyds].empty()) { doc.meta[Rcl::Doc::keyabs] = doc.meta[cstr_dj_keyds]; doc.meta.erase(cstr_dj_keyds); } return true; } // Collect the ipath from the current path in the document tree. // While we're at it, we also set the mimetype and filename, // which are special properties: we want to get them from the topmost // doc with an ipath, not the last one which is usually text/plain We // also set the author and modification time from the last doc which // has them. // // The stack can contain objects with an ipath element (corresponding // to actual embedded documents), and, at the top, elements without an // ipath element, corresponding to format translations of the last doc. // // The docsize is fetched from the first element without an ipath // (first non container). If the last element directly returns // text/plain so that there is no ipath-less element, the value will // be set in dijontorcl(). // // The whole thing is a bit messy but it's not obvious how it should // be cleaned up as the "inheritance" rules inside the stack are // actually complicated. void FileInterner::collectIpathAndMT(Rcl::Doc& doc) const { LOGDEB2(("FileInterner::collectIpathAndMT\n")); bool hasipath = false; if (!m_noxattrs) { docFieldsFromXattrs(m_cfg, m_XAttrsFields, doc); } docFieldsFromMetaCmds(m_cfg, m_cmdFields, doc); // If there is no ipath stack, the mimetype is the one from the file doc.mimetype = m_mimetype; string ipathel; for (vector<RecollFilter*>::const_iterator hit = m_handlers.begin(); hit != m_handlers.end(); hit++) { const map<string, string>& docdata = (*hit)->get_meta_data(); if (getKeyValue(docdata, cstr_dj_keyipath, ipathel)) { if (!ipathel.empty()) { // Non-empty ipath. This stack element is for an // actual embedded document, not a format translation. hasipath = true; getKeyValue(docdata, cstr_dj_keymt, doc.mimetype); getKeyValue(docdata, cstr_dj_keyfn, doc.meta[Rcl::Doc::keyfn]); } else { if (doc.fbytes.empty()) getKeyValue(docdata, cstr_dj_keydocsize, doc.fbytes); } doc.ipath += colon_hide(ipathel) + cstr_isep; } else { if (doc.fbytes.empty()) getKeyValue(docdata, cstr_dj_keydocsize, doc.fbytes); doc.ipath += cstr_isep; } // We set the author field from the innermost doc which has // one: allows finding, e.g. an image attachment having no // metadata by a search on the sender name. Only do this for // actually embedded documents (avoid replacing values from // metacmds for the topmost one). For a topmost doc, author // will be merged by dijontorcl() later on. About same for // dmtime, but an external value will be replaced, not // augmented if dijontorcl() finds an internal value. if (hasipath) { getKeyValue(docdata, cstr_dj_keyauthor, doc.meta[Rcl::Doc::keyau]); getKeyValue(docdata, cstr_dj_keymd, doc.dmtime); } } // Trim empty tail elements in ipath. if (hasipath) { LOGDEB2(("IPATH [%s]\n", doc.ipath.c_str())); string::size_type sit = doc.ipath.find_last_not_of(cstr_isep); if (sit == string::npos) doc.ipath.erase(); else if (sit < doc.ipath.length() -1) doc.ipath.erase(sit+1); } else { doc.ipath.erase(); } } // Remove handler from stack. Clean up temp file if needed. void FileInterner::popHandler() { if (m_handlers.empty()) return; int i = m_handlers.size() - 1; if (m_tmpflgs[i]) { m_tempfiles.pop_back(); m_tmpflgs[i] = false; } returnMimeHandler(m_handlers.back()); m_handlers.pop_back(); } enum addResols {ADD_OK, ADD_CONTINUE, ADD_BREAK, ADD_ERROR}; // Just got document from current top handler. See what type it is, // and possibly add a filter/handler to the stack int FileInterner::addHandler() { const map<string, string>& docdata = m_handlers.back()->get_meta_data(); string charset, mimetype; getKeyValue(docdata, cstr_dj_keycharset, charset); getKeyValue(docdata, cstr_dj_keymt, mimetype); LOGDEB(("FileInterner::addHandler: next_doc is %s target [%s]\n", mimetype.c_str(), m_targetMType.c_str())); // If we find a document of the target type (text/plain in // general), we're done decoding. If we hit text/plain, we're done // in any case if (!stringicmp(mimetype, m_targetMType) || !stringicmp(mimetype, cstr_textplain)) { m_reachedMType = mimetype; LOGDEB1(("FileInterner::addHandler: target reached\n")); return ADD_BREAK; } // We need to stack another handler. Check stack size if (m_handlers.size() >= MAXHANDLERS) { // Stack too big. Skip this and go on to check if there is // something else in the current back() LOGERR(("FileInterner::addHandler: stack too high\n")); return ADD_CONTINUE; } RecollFilter *newflt = getMimeHandler(mimetype, m_cfg); if (!newflt) { // If we can't find a handler, this doc can't be handled // but there can be other ones so we go on LOGINFO(("FileInterner::addHandler: no filter for [%s]\n", mimetype.c_str())); return ADD_CONTINUE; } newflt->set_property(Dijon::Filter::OPERATING_MODE, m_forPreview ? "view" : "index"); if (!charset.empty()) newflt->set_property(Dijon::Filter::DEFAULT_CHARSET, charset); // Get current content: we don't use getkeyvalue() here to avoid // copying the text, which may be big. string ns; const string *txt = &ns; { map<string,string>::const_iterator it; it = docdata.find(cstr_dj_keycontent); if (it != docdata.end()) txt = &it->second; } bool setres = false; newflt->set_docsize(txt->length()); if (newflt->is_data_input_ok(Dijon::Filter::DOCUMENT_STRING)) { setres = newflt->set_document_string(mimetype, *txt); } else if (newflt->is_data_input_ok(Dijon::Filter::DOCUMENT_DATA)) { setres = newflt->set_document_data(mimetype,txt->c_str(),txt->length()); } else if (newflt->is_data_input_ok(Dijon::Filter::DOCUMENT_FILE_NAME)) { TempFile temp = dataToTempFile(*txt, mimetype); if (temp.isNotNull() && (setres = newflt->set_document_file(mimetype, temp->filename()))) { m_tmpflgs[m_handlers.size()] = true; m_tempfiles.push_back(temp); // Hack here, but really helps perfs: if we happen to // create a temp file for, ie, an image attachment, keep // it around for preview to use it through get_imgtmp() if (!mimetype.compare(0, 6, "image/")) { m_imgtmp = m_tempfiles.back(); } } } if (!setres) { LOGINFO(("FileInterner::addHandler: set_doc failed inside %s " " for mtype %s\n", m_fn.c_str(), mimetype.c_str())); delete newflt; if (m_forPreview) return ADD_ERROR; return ADD_CONTINUE; } // add handler and go on, maybe this one will give us text... m_handlers.push_back(newflt); LOGDEB1(("FileInterner::addHandler: added\n")); return ADD_OK; } // Information and debug after a next_document error void FileInterner::processNextDocError(Rcl::Doc &doc) { collectIpathAndMT(doc); m_reason = m_handlers.back()->get_error(); checkExternalMissing(m_reason, doc.mimetype); LOGERR(("FileInterner::internfile: next_document error " "[%s%s%s] %s %s\n", m_fn.c_str(), doc.ipath.empty() ? "" : "|", doc.ipath.c_str(), doc.mimetype.c_str(), m_reason.c_str())); } FileInterner::Status FileInterner::internfile(Rcl::Doc& doc, const string& ipath) { LOGDEB(("FileInterner::internfile. ipath [%s]\n", ipath.c_str())); // Get rid of possible image tempfile from older call m_imgtmp.release(); if (m_handlers.size() < 1) { // Just means the constructor failed LOGDEB(("FileInterner::internfile: no handler: constructor failed\n")); return FIError; } // Input Ipath vector when retrieving a given subdoc for previewing // Note that the vector is big enough for the maximum stack. All values // over the last significant one are "" // We set the ipath for the first handler here, others are set // when they're pushed on the stack vector<string> vipath; int vipathidx = 0; if (!ipath.empty()) { vector<string> lipath; stringToTokens(ipath, lipath, cstr_isep, true); for (vector<string>::iterator it = lipath.begin(); it != lipath.end(); it++) { *it = colon_restore(*it); } vipath.insert(vipath.begin(), lipath.begin(), lipath.end()); if (!m_handlers.back()->skip_to_document(vipath[m_handlers.size()-1])){ LOGERR(("FileInterner::internfile: can't skip\n")); return FIError; } } // Try to get doc from the topmost handler // Security counter: looping happens when we stack one other // handler or when walking the file document tree without finding // something to index (typical exemple: email with multiple image // attachments and no image filter installed). So we need to be // quite generous here, especially because there is another // security in the form of a maximum handler stack size. int loop = 0; while (!m_handlers.empty()) { CancelCheck::instance().checkCancel(); if (loop++ > 1000) { LOGERR(("FileInterner:: looping!\n")); return FIError; } // If there are no more docs at the current top level we pop and // see if there is something at the previous one if (!m_handlers.back()->has_documents()) { // If looking for a specific doc, this is an error. Happens if // the index is stale, and the ipath points to the wrong message // for exemple (one with less attachments) if (m_forPreview) { m_reason += "Requested document does not exist. "; m_reason += m_handlers.back()->get_error(); LOGERR(("FileInterner: requested document does not exist\n")); return FIError; } popHandler(); continue; } // While indexing, don't stop on next_document() error. There // might be ie an error while decoding an attachment, but we // still want to process the rest of the mbox! For preview: fatal. if (!m_handlers.back()->next_document()) { processNextDocError(doc); if (m_forPreview) { m_reason += "Requested document does not exist. "; m_reason += m_handlers.back()->get_error(); LOGERR(("FileInterner: requested document does not exist\n")); return FIError; } popHandler(); continue; } // Look at the type for the next document and possibly add // handler to stack. switch (addHandler()) { case ADD_OK: // Just go through: handler has been stacked, use it LOGDEB2(("addHandler returned OK\n")); break; case ADD_CONTINUE: // forget this doc and retrieve next from current handler // (ipath stays same) LOGDEB2(("addHandler returned CONTINUE\n")); continue; case ADD_BREAK: // Stop looping: doc type ok, need complete its processing // and return it LOGDEB2(("addHandler returned BREAK\n")); goto breakloop; // when you have to you have to case ADD_ERROR: LOGDEB2(("addHandler returned ERROR\n")); return FIError; } // If we have an ipath, meaning that we are seeking a specific // document (ie: previewing a search result), we may have to // seek to the correct entry of a compound doc (ie: archive or // mail). When we are out of ipath entries, we stop seeking, // the handlers stack may still grow for translation (ie: if // the target doc is msword, we'll still stack the // word-to-text translator). if (!ipath.empty()) { if (m_handlers.size() <= vipath.size() && !m_handlers.back()->skip_to_document(vipath[m_handlers.size()-1])) { LOGERR(("FileInterner::internfile: can't skip\n")); return FIError; } } } breakloop: if (m_handlers.empty()) { LOGDEB(("FileInterner::internfile: conversion ended with no doc\n")); return FIError; } // Compute ipath and significant mimetype. ipath is returned // through doc.ipath. We also retrieve some metadata fields from // the ancesters (like date or author). This is useful for email // attachments. The values will be replaced by those internal to // the document (by dijontorcl()) if any, so the order of calls is // important. We used to only do this when indexing, but the aux // fields like filename and author may be interesting when // previewing too collectIpathAndMT(doc); if (m_forPreview) { doc.mimetype = m_reachedMType; } // Keep this AFTER collectIpathAndMT dijontorcl(doc); // Possibly destack so that we can test for FIDone. While doing this // possibly set aside an ancestor html text (for the GUI preview) while (!m_handlers.empty() && !m_handlers.back()->has_documents()) { if (m_forPreview) { MimeHandlerHtml *hth = dynamic_cast<MimeHandlerHtml*>(m_handlers.back()); if (hth) { m_html = hth->get_html(); } } popHandler(); } if (m_handlers.empty()) return FIDone; else return FIAgain; } bool FileInterner::tempFileForMT(TempFile& otemp, RclConfig* cnf, const string& mimetype) { TempFile temp(new TempFileInternal( cnf->getSuffixFromMimeType(mimetype))); if (!temp->ok()) { LOGERR(("FileInterner::interntofile: can't create temp file\n")); return false; } otemp = temp; return true; } // Extract document (typically subdoc of multidoc) into temporary file. // We do the usual internfile stuff: create a temporary directory, // then create an interner and call internfile. The target mtype is set to // the input mtype, so that no data conversion is performed. // We then write the data out of the resulting document into the output file. // There are two temporary objects: // - The internfile temporary directory gets destroyed by its destructor // - The output temporary file which is held in a reference-counted // object and will be deleted when done with. // // If the ipath is null, maybe we're called because the file is not // stored in the regular file system. We use the docfetcher to get a // copy (in topdocToFile()) // // We currently don't handle the case of an internal doc of a non-fs document. bool FileInterner::idocToFile(TempFile& otemp, const string& tofile, RclConfig *cnf, const Rcl::Doc& idoc) { LOGDEB(("FileInterner::idocToFile\n")); if (idoc.ipath.empty()) { return topdocToFile(otemp, tofile, cnf, idoc); } // We set FIF_forPreview for consistency with the previous version // which determined this by looking at mtype!=null. Probably // doesn't change anything in this case. FileInterner interner(idoc, cnf, FIF_forPreview); interner.setTargetMType(idoc.mimetype); return interner.interntofile(otemp, tofile, idoc.ipath, idoc.mimetype); } bool FileInterner::topdocToFile(TempFile& otemp, const string& tofile, RclConfig *cnf, const Rcl::Doc& idoc) { DocFetcher *fetcher = docFetcherMake(idoc); if (fetcher == 0) { LOGERR(("FileInterner::idocToFile no backend\n")); return false; } DocFetcher::RawDoc rawdoc; if (!fetcher->fetch(cnf, idoc, rawdoc)) { LOGERR(("FileInterner::idocToFile fetcher failed\n")); return false; } const char *filename = ""; TempFile temp; if (tofile.empty()) { if (!tempFileForMT(temp, cnf, idoc.mimetype)) { return false; } filename = temp->filename(); } else { filename = tofile.c_str(); } string reason; switch (rawdoc.kind) { case DocFetcher::RawDoc::RDK_FILENAME: if (!copyfile(rawdoc.data.c_str(), filename, reason)) { LOGERR(("FileInterner::idocToFile: copyfile: %s\n", reason.c_str())); return false; } break; case DocFetcher::RawDoc::RDK_DATA: if (!stringtofile(rawdoc.data, filename, reason)) { LOGERR(("FileInterner::idocToFile: stringtofile: %s\n", reason.c_str())); return false; } break; default: LOGERR(("FileInterner::FileInterner(idoc): bad rawdoc kind ??\n")); } if (tofile.empty()) otemp = temp; return true; } bool FileInterner::interntofile(TempFile& otemp, const string& tofile, const string& ipath, const string& mimetype) { if (!ok()) { LOGERR(("FileInterner::interntofile: constructor failed\n")); return false; } Rcl::Doc doc; Status ret = internfile(doc, ipath); if (ret == FileInterner::FIError) { LOGERR(("FileInterner::interntofile: internfile() failed\n")); return false; } // Specialcase text/html. This is to work around a bug that will // get fixed some day: internfile initialisation does not check // targetmtype, so that at least one conversion is always // performed. A common case would be an "Open" on an html file // (we'd end up with text/plain content). As the html version is // saved in this case, use it. if (!stringlowercmp("text/html", mimetype) && !get_html().empty()) { doc.text = get_html(); doc.mimetype = "text/html"; } const char *filename; TempFile temp; if (tofile.empty()) { if (!tempFileForMT(temp, m_cfg, mimetype)) { return false; } filename = temp->filename(); } else { filename = tofile.c_str(); } string reason; if (!stringtofile(doc.text, filename, reason)) { LOGERR(("FileInterner::interntofile: stringtofile : %s\n", reason.c_str())); return false; } if (tofile.empty()) otemp = temp; return true; } bool FileInterner::isCompressed(const string& fn, RclConfig *cnf) { LOGDEB(("FileInterner::isCompressed: [%s]\n", fn.c_str())); struct stat st; if (stat(fn.c_str(), &st) < 0) { LOGERR(("FileInterner::isCompressed: can't stat [%s]\n", fn.c_str())); return false; } string l_mime = mimetype(fn, &st, cnf, true); if (l_mime.empty()) { LOGERR(("FileInterner::isUncompressed: can't get mime for [%s]\n", fn.c_str())); return false; } vector<string> ucmd; if (cnf->getUncompressor(l_mime, ucmd)) { return true; } return false; } // Static. bool FileInterner::maybeUncompressToTemp(TempFile& temp, const string& fn, RclConfig *cnf, const Rcl::Doc& doc) { LOGDEB(("FileInterner::maybeUncompressToTemp: [%s]\n", fn.c_str())); struct stat st; if (stat(fn.c_str(), &st) < 0) { LOGERR(("FileInterner::maybeUncompressToTemp: can't stat [%s]\n", fn.c_str())); return false; } string l_mime = mimetype(fn, &st, cnf, true); if (l_mime.empty()) { LOGERR(("FileInterner::maybeUncompress.: can't id. mime for [%s]\n", fn.c_str())); return false; } vector<string>ucmd; if (!cnf->getUncompressor(l_mime, ucmd)) { return true; } // Check for compressed size limit int maxkbs = -1; if (cnf->getConfParam("compressedfilemaxkbs", &maxkbs) && maxkbs >= 0 && int(st.st_size / 1024) > maxkbs) { LOGINFO(("FileInterner:: %s over size limit %d kbs\n", fn.c_str(), maxkbs)); return false; } temp = TempFile(new TempFileInternal(cnf->getSuffixFromMimeType(doc.mimetype))); if (!temp->ok()) { LOGERR(("FileInterner: cant create temporary file")); return false; } Uncomp uncomp; string uncomped; if (!uncomp.uncompressfile(fn, ucmd, uncomped)) { return false; } // uncompressfile choses the output file name, there is good // reason for this, but it's not nice here. Have to move, the // uncompressed file, hopefully staying on the same dev. string reason; if (!renameormove(uncomped.c_str(), temp->filename(), reason)) { LOGERR(("FileInterner::maybeUncompress: move [%s] -> [%s] " "failed: %s\n", uncomped.c_str(), temp->filename(), reason.c_str())); return false; } return true; } #else #include <stdio.h> #include <stdlib.h> #include <iostream> #include <string> #include <sys/stat.h> using namespace std; #include "debuglog.h" #include "rclinit.h" #include "internfile.h" #include "rclconfig.h" #include "rcldoc.h" static string thisprog; static string usage = " internfile <filename> [ipath]\n" " \n\n" ; static void Usage(void) { cerr << thisprog << ": usage:\n" << usage; exit(1); } static int op_flags; #define OPT_q 0x1 RclConfig *config; int main(int argc, char **argv) { thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { default: Usage(); break; } argc--; argv++; } DebugLog::getdbl()->setloglevel(DEBDEB1); DebugLog::setfilename("stderr"); if (argc < 1) Usage(); string fn(*argv++); argc--; string ipath; if (argc >= 1) { ipath.append(*argv++); argc--; } string reason; config = recollinit(0, 0, reason); if (config == 0 || !config->ok()) { string str = "Configuration problem: "; str += reason; fprintf(stderr, "%s\n", str.c_str()); exit(1); } struct stat st; if (stat(fn.c_str(), &st)) { perror("stat"); exit(1); } FileInterner interner(fn, &st, config, 0); Rcl::Doc doc; FileInterner::Status status = interner.internfile(doc, ipath); switch (status) { case FileInterner::FIDone: case FileInterner::FIAgain: break; case FileInterner::FIError: default: fprintf(stderr, "internfile failed\n"); exit(1); } cout << "doc.url [[[[" << doc.url << "]]]]\n-----------------------------------------------------\n" << "doc.ipath [[[[" << doc.ipath << "]]]]\n-----------------------------------------------------\n" << "doc.mimetype [[[[" << doc.mimetype << "]]]]\n-----------------------------------------------------\n" << "doc.fmtime [[[[" << doc.fmtime << "]]]]\n-----------------------------------------------------\n" << "doc.dmtime [[[[" << doc.dmtime << "]]]]\n-----------------------------------------------------\n" << "doc.origcharset [[[[" << doc.origcharset << "]]]]\n-----------------------------------------------------\n" << "doc.meta[title] [[[[" << doc.meta["title"] << "]]]]\n-----------------------------------------------------\n" << "doc.meta[keywords] [[[[" << doc.meta["keywords"] << "]]]]\n-----------------------------------------------------\n" << "doc.meta[abstract] [[[[" << doc.meta["abstract"] << "]]]]\n-----------------------------------------------------\n" << "doc.text [[[[" << doc.text << "]]]]\n"; } #endif // TEST_INTERNFILE ����������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_exec.h������������������������������������������������������������������0000644�0001750�0001750�00000006200�12602163537�016305� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MH_EXEC_H_INCLUDED_ #define _MH_EXEC_H_INCLUDED_ #include <string> #include <vector> using std::vector; using std::string; #include "mimehandler.h" /** * Turn external document into internal one by executing an external filter. * * The command to execute, and its parameters, are stored in the "params" * which is built in mimehandler.cpp out of data from the mimeconf file. * * As any RecollFilter, a MimeHandlerExec object can be reset * by calling clear(), and will stay initialised for the same mtype * (cmd, params etc.) */ class MimeHandlerExec : public RecollFilter { public: /////////////////////// // Members not reset by clear(). params, cfgFilterOutputMtype and // cfgFilterOutputCharset // define what I am. missingHelper is a permanent error // (no use to try and execute over and over something that's not // here). // Parameters: this has been built by our creator, from config file // data. We always add the file name at the end before actual execution vector<string> params; // Filter output type. The default for ext. filters is to output html, // but some don't, in which case the type is defined in the config. string cfgFilterOutputMtype; // Output character set if the above type is not text/html. For // those filters, the output charset has to be known: ie set by a command // line option. string cfgFilterOutputCharset; bool missingHelper; //////////////// MimeHandlerExec(RclConfig *cnf, const string& id) : RecollFilter(cnf, id), missingHelper(false) {} virtual bool set_document_file(const string& mt, const string &file_path) { RecollFilter::set_document_file(mt, file_path); m_fn = file_path; m_havedoc = true; return true; } virtual bool next_document(); virtual bool skip_to_document(const string& ipath); virtual void clear() { m_fn.erase(); m_ipath.erase(); RecollFilter::clear(); } protected: string m_fn; string m_ipath; // Set up the character set metadata fields and possibly transcode // text/plain output. // @param charset when called from mh_execm, a possible explicit // value from the filter (else the data will come from the config) virtual void handle_cs(const string& mt, const string& charset = string()); private: virtual void finaldetails(); }; #endif /* _MH_EXEC_H_INCLUDED_ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mimehandler.h��������������������������������������������������������������0000644�0001750�0001750�00000012117�12602163571�017164� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MIMEHANDLER_H_INCLUDED_ #define _MIMEHANDLER_H_INCLUDED_ #include "autoconfig.h" #include <stdio.h> #include <string> #include "Filter.h" #include "cstr.h" class RclConfig; class RecollFilter : public Dijon::Filter { public: RecollFilter(RclConfig *config, const std::string& id) : m_config(config), m_forPreview(false), m_havedoc(false), m_id(id) {} virtual ~RecollFilter() {} virtual void setConfig(RclConfig *config) { m_config = config; } virtual bool set_property(Properties p, const std::string &v) { switch (p) { case DJF_UDI: m_udi = v; break; case DEFAULT_CHARSET: m_dfltInputCharset = v; break; case OPERATING_MODE: if (!v.empty() && v[0] == 'v') m_forPreview = true; else m_forPreview = false; break; } return true; } // We don't use this for now virtual bool set_document_uri(const std::string& mtype, const std::string &) { m_mimeType = mtype; return false; } // This does nothing right now but should be called from the // subclass method in case we need some common processing one day // (was used for xattrs at some point). Yes this is the "call // super" anti-pattern, bad, but we have several layers of derived // classes, so that implementing the template method approach (by // having a pure virtual called from here and implemented in the // subclass) would have to be repeated in each derived class. It's // just simpler this way. virtual bool set_document_file(const std::string& mtype, const std::string & /*file_path*/) { m_mimeType = mtype; return true; } // Default implementations virtual bool set_document_string(const std::string& mtype, const std::string &) { m_mimeType = mtype; return false; } virtual bool set_document_data(const std::string& mtype, const char *cp, unsigned int sz) { return set_document_string(mtype, std::string(cp, sz)); } virtual void set_docsize(size_t size) { char csize[30]; sprintf(csize, "%lld", (long long)size); m_metaData[cstr_dj_keydocsize] = csize; } virtual bool has_documents() const {return m_havedoc;} // Most doc types are single-doc virtual bool skip_to_document(const std::string& s) { if (s.empty()) return true; return false; } virtual bool is_data_input_ok(DataInput input) const { if (input == DOCUMENT_FILE_NAME) return true; return false; } virtual std::string get_error() const { return m_reason; } virtual const std::string& get_id() const { return m_id; } // "Call super" anti-pattern again. Must be called from derived // classes which reimplement clear() virtual void clear() { Dijon::Filter::clear(); m_forPreview = m_havedoc = false; m_dfltInputCharset.clear(); m_reason.clear(); } // This only makes sense if the contents are currently txt/plain // It converts from keyorigcharset to UTF-8 and sets keycharset. bool txtdcode(const std::string& who); protected: bool preview() {return m_forPreview;} RclConfig *m_config; bool m_forPreview; std::string m_dfltInputCharset; std::string m_reason; bool m_havedoc; std::string m_udi; // May be set by creator as a hint // m_id is and md5 of the filter definition line (from mimeconf) and // is used when fetching/returning filters to / from the cache. std::string m_id; }; /** * Return indexing handler object for the given mime type. The returned * pointer should be passed to returnMimeHandler() for recycling, after use. * @param mtyp input mime type, ie text/plain * @param cfg the recoll config object to be used * @param filtertypes decide if we should restrict to types in * indexedmimetypes (if this is set at all). */ extern RecollFilter *getMimeHandler(const std::string &mtyp, RclConfig *cfg, bool filtertypes=false); /// Free up filter for reuse (you can also delete it) extern void returnMimeHandler(RecollFilter *); /// Clean up cache at the end of an indexing pass. For people who use /// the GUI to index: avoid all those filter processes forever hanging /// off recoll. extern void clearMimeHandlerCache(); /// Can this mime type be interned ? extern bool canIntern(const std::string mimetype, RclConfig *cfg); #endif /* _MIMEHANDLER_H_INCLUDED_ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_mail.h������������������������������������������������������������������0000644�0001750�0001750�00000005300�12602163537�016303� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MAIL_H_INCLUDED_ #define _MAIL_H_INCLUDED_ #include <sstream> #include <vector> #include <map> using std::vector; using std::map; #include "mimehandler.h" namespace Binc { class MimeDocument; class MimePart; } class MHMailAttach; /** * Translate a mail folder file into internal documents (also works * for maildir files). This has to keep state while parsing a mail folder * file. */ class MimeHandlerMail : public RecollFilter { public: MimeHandlerMail(RclConfig *cnf, const string &id); virtual ~MimeHandlerMail(); virtual bool set_document_file(const string& mt, const string& file_path); virtual bool set_document_string(const string& mt, const string& data); virtual bool is_data_input_ok(DataInput input) const { if (input == DOCUMENT_FILE_NAME || input == DOCUMENT_STRING) return true; return false; } virtual bool next_document(); virtual bool skip_to_document(const string& ipath); virtual void clear(); private: bool processMsg(Binc::MimePart *doc, int depth); void walkmime(Binc::MimePart* doc, int depth); bool processAttach(); Binc::MimeDocument *m_bincdoc; int m_fd; std::stringstream *m_stream; // Current index in parts. starts at -1 for self, then index into // attachments int m_idx; // Start of actual text (after the reprinted headers. This is for // generating a semi-meaningful "abstract") string::size_type m_startoftext; string m_subject; vector<MHMailAttach *> m_attachments; // Additional headers to be process as per config + field name translation map<string,string> m_addProcdHdrs; }; class MHMailAttach { public: string m_contentType; string m_filename; string m_charset; string m_contentTransferEncoding; Binc::MimePart *m_part; }; #endif /* _MAIL_H_INCLUDED_ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/internfile/myhtmlparse.cpp������������������������������������������������������������0000644�0001750�0001750�00000045767�12602163571�017620� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* This file was copied from omega-0.8.5->1.2.6 and modified */ /* myhtmlparse.cc: subclass of HtmlParser for extracting text * * ----START-LICENCE---- * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2002,2003,2004 Olly Betts * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * -----END-LICENCE----- */ #include <time.h> #include <stdio.h> #include <algorithm> #include <cstring> #include "cstr.h" #include "myhtmlparse.h" #include "indextext.h" // for lowercase_term() #include "mimeparse.h" #include "smallut.h" #include "cancelcheck.h" #include "debuglog.h" #include "transcode.h" static const string cstr_html_charset("charset"); static const string cstr_html_content("content"); inline static bool p_notdigit(char c) { return !isdigit(static_cast<unsigned char>(c)); } inline static bool p_notxdigit(char c) { return !isxdigit(static_cast<unsigned char>(c)); } inline static bool p_notalnum(char c) { return !isalnum(static_cast<unsigned char>(c)); } /* * The following array was taken from Estraier. Estraier was * written by Mikio Hirabayashi. * Copyright (C) 2003-2004 Mikio Hirabayashi * The version where this comes from * is covered by the GNU licence, as this file.*/ static const char *epairs[] = { /* basic symbols */ "amp", "&", "lt", "<", "gt", ">", "quot", "\"", "apos", "'", /* ISO-8859-1 */ "nbsp", "\xc2\xa0", "iexcl", "\xc2\xa1", "cent", "\xc2\xa2", "pound", "\xc2\xa3", "curren", "\xc2\xa4", "yen", "\xc2\xa5", "brvbar", "\xc2\xa6", "sect", "\xc2\xa7", "uml", "\xc2\xa8", "copy", "\xc2\xa9", "ordf", "\xc2\xaa", "laquo", "\xc2\xab", "not", "\xc2\xac", "shy", "\xc2\xad", "reg", "\xc2\xae", "macr", "\xc2\xaf", "deg", "\xc2\xb0", "plusmn", "\xc2\xb1", "sup2", "\xc2\xb2", "sup3", "\xc2\xb3", "acute", "\xc2\xb4", "micro", "\xc2\xb5", "para", "\xc2\xb6", "middot", "\xc2\xb7", "cedil", "\xc2\xb8", "sup1", "\xc2\xb9", "ordm", "\xc2\xba", "raquo", "\xc2\xbb", "frac14", "\xc2\xbc", "frac12", "\xc2\xbd", "frac34", "\xc2\xbe", "iquest", "\xc2\xbf", "Agrave", "\xc3\x80", "Aacute", "\xc3\x81", "Acirc", "\xc3\x82", "Atilde", "\xc3\x83", "Auml", "\xc3\x84", "Aring", "\xc3\x85", "AElig", "\xc3\x86", "Ccedil", "\xc3\x87", "Egrave", "\xc3\x88", "Eacute", "\xc3\x89", "Ecirc", "\xc3\x8a", "Euml", "\xc3\x8b", "Igrave", "\xc3\x8c", "Iacute", "\xc3\x8d", "Icirc", "\xc3\x8e", "Iuml", "\xc3\x8f", "ETH", "\xc3\x90", "Ntilde", "\xc3\x91", "Ograve", "\xc3\x92", "Oacute", "\xc3\x93", "Ocirc", "\xc3\x94", "Otilde", "\xc3\x95", "Ouml", "\xc3\x96", "times", "\xc3\x97", "Oslash", "\xc3\x98", "Ugrave", "\xc3\x99", "Uacute", "\xc3\x9a", "Ucirc", "\xc3\x9b", "Uuml", "\xc3\x9c", "Yacute", "\xc3\x9d", "THORN", "\xc3\x9e", "szlig", "\xc3\x9f", "agrave", "\xc3\xa0", "aacute", "\xc3\xa1", "acirc", "\xc3\xa2", "atilde", "\xc3\xa3", "auml", "\xc3\xa4", "aring", "\xc3\xa5", "aelig", "\xc3\xa6", "ccedil", "\xc3\xa7", "egrave", "\xc3\xa8", "eacute", "\xc3\xa9", "ecirc", "\xc3\xaa", "euml", "\xc3\xab", "igrave", "\xc3\xac", "iacute", "\xc3\xad", "icirc", "\xc3\xae", "iuml", "\xc3\xaf", "eth", "\xc3\xb0", "ntilde", "\xc3\xb1", "ograve", "\xc3\xb2", "oacute", "\xc3\xb3", "ocirc", "\xc3\xb4", "otilde", "\xc3\xb5", "ouml", "\xc3\xb6", "divide", "\xc3\xb7", "oslash", "\xc3\xb8", "ugrave", "\xc3\xb9", "uacute", "\xc3\xba", "ucirc", "\xc3\xbb", "uuml", "\xc3\xbc", "yacute", "\xc3\xbd", "thorn", "\xc3\xbe", "yuml", "\xc3\xbf", /* ISO-10646 */ "fnof", "\xc6\x92", "Alpha", "\xce\x91", "Beta", "\xce\x92", "Gamma", "\xce\x93", "Delta", "\xce\x94", "Epsilon", "\xce\x95", "Zeta", "\xce\x96", "Eta", "\xce\x97", "Theta", "\xce\x98", "Iota", "\xce\x99", "Kappa", "\xce\x9a", "Lambda", "\xce\x9b", "Mu", "\xce\x9c", "Nu", "\xce\x9d", "Xi", "\xce\x9e", "Omicron", "\xce\x9f", "Pi", "\xce\xa0", "Rho", "\xce\xa1", "Sigma", "\xce\xa3", "Tau", "\xce\xa4", "Upsilon", "\xce\xa5", "Phi", "\xce\xa6", "Chi", "\xce\xa7", "Psi", "\xce\xa8", "Omega", "\xce\xa9", "alpha", "\xce\xb1", "beta", "\xce\xb2", "gamma", "\xce\xb3", "delta", "\xce\xb4", "epsilon", "\xce\xb5", "zeta", "\xce\xb6", "eta", "\xce\xb7", "theta", "\xce\xb8", "iota", "\xce\xb9", "kappa", "\xce\xba", "lambda", "\xce\xbb", "mu", "\xce\xbc", "nu", "\xce\xbd", "xi", "\xce\xbe", "omicron", "\xce\xbf", "pi", "\xcf\x80", "rho", "\xcf\x81", "sigmaf", "\xcf\x82", "sigma", "\xcf\x83", "tau", "\xcf\x84", "upsilon", "\xcf\x85", "phi", "\xcf\x86", "chi", "\xcf\x87", "psi", "\xcf\x88", "omega", "\xcf\x89", "thetasym", "\xcf\x91", "upsih", "\xcf\x92", "piv", "\xcf\x96", "bull", "\xe2\x80\xa2", "hellip", "\xe2\x80\xa6", "prime", "\xe2\x80\xb2", "Prime", "\xe2\x80\xb3", "oline", "\xe2\x80\xbe", "frasl", "\xe2\x81\x84", "weierp", "\xe2\x84\x98", "image", "\xe2\x84\x91", "real", "\xe2\x84\x9c", "trade", "\xe2\x84\xa2", "alefsym", "\xe2\x84\xb5", "larr", "\xe2\x86\x90", "uarr", "\xe2\x86\x91", "rarr", "\xe2\x86\x92", "darr", "\xe2\x86\x93", "harr", "\xe2\x86\x94", "crarr", "\xe2\x86\xb5", "lArr", "\xe2\x87\x90", "uArr", "\xe2\x87\x91", "rArr", "\xe2\x87\x92", "dArr", "\xe2\x87\x93", "hArr", "\xe2\x87\x94", "forall", "\xe2\x88\x80", "part", "\xe2\x88\x82", "exist", "\xe2\x88\x83", "empty", "\xe2\x88\x85", "nabla", "\xe2\x88\x87", "isin", "\xe2\x88\x88", "notin", "\xe2\x88\x89", "ni", "\xe2\x88\x8b", "prod", "\xe2\x88\x8f", "sum", "\xe2\x88\x91", "minus", "\xe2\x88\x92", "lowast", "\xe2\x88\x97", "radic", "\xe2\x88\x9a", "prop", "\xe2\x88\x9d", "infin", "\xe2\x88\x9e", "ang", "\xe2\x88\xa0", "and", "\xe2\x88\xa7", "or", "\xe2\x88\xa8", "cap", "\xe2\x88\xa9", "cup", "\xe2\x88\xaa", "int", "\xe2\x88\xab", "there4", "\xe2\x88\xb4", "sim", "\xe2\x88\xbc", "cong", "\xe2\x89\x85", "asymp", "\xe2\x89\x88", "ne", "\xe2\x89\xa0", "equiv", "\xe2\x89\xa1", "le", "\xe2\x89\xa4", "ge", "\xe2\x89\xa5", "sub", "\xe2\x8a\x82", "sup", "\xe2\x8a\x83", "nsub", "\xe2\x8a\x84", "sube", "\xe2\x8a\x86", "supe", "\xe2\x8a\x87", "oplus", "\xe2\x8a\x95", "otimes", "\xe2\x8a\x97", "perp", "\xe2\x8a\xa5", "sdot", "\xe2\x8b\x85", "lceil", "\xe2\x8c\x88", "rceil", "\xe2\x8c\x89", "lfloor", "\xe2\x8c\x8a", "rfloor", "\xe2\x8c\x8b", "lang", "\xe2\x8c\xa9", "rang", "\xe2\x8c\xaa", "loz", "\xe2\x97\x8a", "spades", "\xe2\x99\xa0", "clubs", "\xe2\x99\xa3", "hearts", "\xe2\x99\xa5", "diams", "\xe2\x99\xa6", "OElig", "\xc5\x92", "oelig", "\xc5\x93", "Scaron", "\xc5\xa0", "scaron", "\xc5\xa1", "Yuml", "\xc5\xb8", "circ", "\xcb\x86", "tilde", "\xcb\x9c", "ensp", "\xe2\x80\x82", "emsp", "\xe2\x80\x83", "thinsp", "\xe2\x80\x89", "zwnj", "\xe2\x80\x8c", "zwj", "\xe2\x80\x8d", "lrm", "\xe2\x80\x8e", "rlm", "\xe2\x80\x8f", "ndash", "\xe2\x80\x93", "mdash", "\xe2\x80\x94", "lsquo", "\xe2\x80\x98", "rsquo", "\xe2\x80\x99", "sbquo", "\xe2\x80\x9a", "ldquo", "\xe2\x80\x9c", "rdquo", "\xe2\x80\x9d", "bdquo", "\xe2\x80\x9e", "dagger", "\xe2\x80\xa0", "Dagger", "\xe2\x80\xa1", "permil", "\xe2\x80\xb0", "lsaquo", "\xe2\x80\xb9", "rsaquo", "\xe2\x80\xba", "euro", "\xe2\x82\xac", NULL, NULL }; map<string, string> my_named_ents; class NamedEntsInitializer { public: NamedEntsInitializer() { for (int i = 0;;) { const char *ent; const char *val; ent = epairs[i++]; if (ent == 0) break; val = epairs[i++]; if (val == 0) break; my_named_ents[string(ent)] = val; } } }; static NamedEntsInitializer namedEntsInitializerInstance; MyHtmlParser::MyHtmlParser() : in_script_tag(false), in_style_tag(false), in_pre_tag(false), in_title_tag(false), pending_space(false), indexing_allowed(true) { // The default html document charset is iso-8859-1. We'll update // this value from the encoding tag if found. Actually use cp1252 which // is a superset charset = "CP1252"; } void MyHtmlParser::decode_entities(string &s) { LOGDEB2(("MyHtmlParser::decode_entities\n")); // This has no meaning whatsoever if the character encoding is unknown, // so don't do it. If charset known, caller has converted text to utf-8, // and this is also how we translate entities // if (tocharset != "utf-8") // return; // We need a const_iterator version of s.end() - otherwise the // find() and find_if() templates don't work... string::const_iterator amp = s.begin(), s_end = s.end(); while ((amp = find(amp, s_end, '&')) != s_end) { unsigned int val = 0; string::const_iterator end, p = amp + 1; string subs; if (p != s_end && *p == '#') { p++; if (p != s_end && (*p == 'x' || *p == 'X')) { // hex p++; end = find_if(p, s_end, p_notxdigit); sscanf(s.substr(p - s.begin(), end - p).c_str(), "%x", &val); } else { // number end = find_if(p, s_end, p_notdigit); val = atoi(s.substr(p - s.begin(), end - p).c_str()); } } else { end = find_if(p, s_end, p_notalnum); string code = s.substr(p - s.begin(), end - p); map<string, string>::const_iterator i; i = my_named_ents.find(code); if (i != my_named_ents.end()) subs = i->second; } if (end < s_end && *end == ';') end++; if (val) { // The code is the code position for a unicode char. We need // to translate it to an utf-8 string. string utf16be; utf16be += char(val / 256); utf16be += char(val % 256); transcode(utf16be, subs, "UTF-16BE", "UTF-8"); } if (subs.length() > 0) { string::size_type amp_pos = amp - s.begin(); s.replace(amp_pos, end - amp, subs); s_end = s.end(); // We've modified the string, so the iterators are no longer // valid... amp = s.begin() + amp_pos + subs.length(); } else { amp = end; } } } // Compress whitespace and suppress newlines // Note that we independantly add some newlines to the output text in the // tag processing code. Like this, the preview looks a bit more like what a // browser would display. // We keep whitespace inside <pre> tags void MyHtmlParser::process_text(const string &text) { LOGDEB2(("process_text: title %d script %d style %d pre %d " "pending_space %d txt [%s]\n", in_title_tag, in_script_tag, in_style_tag, in_pre_tag, pending_space, text.c_str())); CancelCheck::instance().checkCancel(); if (!in_script_tag && !in_style_tag) { if (in_title_tag) { titledump += text; } else if (!in_pre_tag) { string::size_type b = 0; bool only_space = true; while ((b = text.find_first_not_of(WHITESPACE, b)) != string::npos) { only_space = false; // If space specifically needed or chunk begins with // whitespace, add exactly one space if (pending_space || b != 0) { dump += ' '; } pending_space = true; string::size_type e = text.find_first_of(WHITESPACE, b); if (e == string::npos) { dump += text.substr(b); pending_space = false; break; } dump += text.substr(b, e - b); b = e + 1; } if (only_space) pending_space = true; } else { if (pending_space) dump += ' '; dump += text; } } } bool MyHtmlParser::opening_tag(const string &tag) { LOGDEB2(("opening_tag: [%s]\n", tag.c_str())); #if 0 cout << "TAG: " << tag << ": " << endl; map<string, string>::const_iterator x; for (x = p.begin(); x != p.end(); x++) { cout << " " << x->first << " -> '" << x->second << "'" << endl; } #endif if (tag.empty()) return true; switch (tag[0]) { case 'a': if (tag == "address") pending_space = true; break; case 'b': // body: some bad docs have several opening body tags and // even text before the body is displayed by Opera and // Firefox. We used to reset the dump each time we saw a // body tag, but I can't see any reason to do so. if (tag == "blockquote" || tag == "br") { dump += '\n'; pending_space = true; } break; case 'c': if (tag == "center") pending_space = true; break; case 'd': if (tag == "dd" || tag == "dir" || tag == "div" || tag == "dl" || tag == "dt") pending_space = true; if (tag == "dt") dump += '\n'; break; case 'e': if (tag == "embed") pending_space = true; break; case 'f': if (tag == "fieldset" || tag == "form") pending_space = true; break; case 'h': // hr, and h1, ..., h6 if (tag.length() == 2 && strchr("r123456", tag[1])) { dump += '\n'; pending_space = true; } break; case 'i': if (tag == "iframe" || tag == "img" || tag == "isindex" || tag == "input") pending_space = true; break; case 'k': if (tag == "keygen") pending_space = true; break; case 'l': if (tag == "legend" || tag == "li" || tag == "listing") { dump += '\n'; pending_space = true; } break; case 'm': if (tag == "meta") { string content; if (get_parameter(cstr_html_content, content)) { string name; if (get_parameter("name", name)) { lowercase_term(name); if (name == "date") { // Specific to Recoll filters. decode_entities(content); struct tm tm; memset(&tm, 0, sizeof(tm)); if (strptime(content.c_str(), " %Y-%m-%d %H:%M:%S ", &tm) || strptime(content.c_str(), "%Y-%m-%dT%H:%M:%S", &tm) ) { char ascuxtime[100]; sprintf(ascuxtime, "%ld", (long)mktime(&tm)); dmtime = ascuxtime; } } else if (name == "robots") { } else { string markup; bool ishtml = false; if (get_parameter("markup", markup)) { if (!stringlowercmp("html", markup)) { ishtml = true; } } if (!meta[name].empty()) meta[name] += ' '; decode_entities(content); meta[name] += content; if (ishtml && meta[name].compare(0, cstr_fldhtm.size(), cstr_fldhtm)) { meta[name].insert(0, cstr_fldhtm); } } } string hdr; if (get_parameter("http-equiv", hdr)) { lowercase_term(hdr); if (hdr == "content-type") { MimeHeaderValue p; parseMimeHeaderValue(content, p); map<string, string>::const_iterator k; if ((k = p.params.find(cstr_html_charset)) != p.params.end()) { charset = k->second; if (!charset.empty() && !samecharset(charset, fromcharset)) { LOGDEB1(("Doc http-equiv charset '%s' " "differs from dir deflt '%s'\n", charset.c_str(), fromcharset.c_str())); throw false; } } } } } string newcharset; if (get_parameter(cstr_html_charset, newcharset)) { // HTML5 added: <meta charset="..."> lowercase_term(newcharset); charset = newcharset; if (!charset.empty() && !samecharset(charset, fromcharset)) { LOGDEB1(("Doc html5 charset '%s' " "differs from dir deflt '%s'\n", charset.c_str(), fromcharset.c_str())); throw false; } } break; } else if (tag == "marquee" || tag == "menu" || tag == "multicol") pending_space = true; break; case 'o': if (tag == "ol" || tag == "option") pending_space = true; break; case 'p': if (tag == "p" || tag == "plaintext") { dump += '\n'; pending_space = true; } else if (tag == "pre") { in_pre_tag = true; dump += '\n'; pending_space = true; } break; case 'q': if (tag == "q") pending_space = true; break; case 's': if (tag == "style") { in_style_tag = true; break; } else if (tag == "script") { in_script_tag = true; break; } else if (tag == "select") pending_space = true; break; case 't': if (tag == "table" || tag == "td" || tag == "textarea" || tag == "th") { pending_space = true; } else if (tag == "title") { in_title_tag = true; } break; case 'u': if (tag == "ul") pending_space = true; break; case 'x': if (tag == "xmp") pending_space = true; break; } return true; } bool MyHtmlParser::closing_tag(const string &tag) { LOGDEB2(("closing_tag: [%s]\n", tag.c_str())); if (tag.empty()) return true; switch (tag[0]) { case 'a': if (tag == "address") pending_space = true; break; case 'b': // body: We used to signal and end of doc here by returning // false but the browsers just ignore body and html // closing tags if there is further text, so it seems right // to do the same if (tag == "blockquote" || tag == "br") pending_space = true; break; case 'c': if (tag == "center") pending_space = true; break; case 'd': if (tag == "dd" || tag == "dir" || tag == "div" || tag == "dl" || tag == "dt") pending_space = true; break; case 'f': if (tag == "fieldset" || tag == "form") pending_space = true; break; case 'h': // hr, and h1, ..., h6 if (tag.length() == 2 && strchr("r123456", tag[1])) pending_space = true; break; case 'i': if (tag == "iframe") pending_space = true; break; case 'l': if (tag == "legend" || tag == "li" || tag == "listing") pending_space = true; break; case 'm': if (tag == "marquee" || tag == "menu") pending_space = true; break; case 'o': if (tag == "ol" || tag == "option") pending_space = true; break; case 'p': if (tag == "p") { pending_space = true; } else if (tag == "pre") { pending_space = true; in_pre_tag = false; } break; case 'q': if (tag == "q") pending_space = true; break; case 's': if (tag == "style") { in_style_tag = false; break; } if (tag == "script") { in_script_tag = false; break; } if (tag == "select") pending_space = true; break; case 't': if (tag == "title") { in_title_tag = false; if (meta.find("title") == meta.end()|| meta["title"].empty()) { meta["title"] = titledump; titledump.clear(); } break; } if (tag == "table" || tag == "td" || tag == "textarea" || tag == "th") pending_space = true; break; case 'u': if (tag == "ul") pending_space = true; break; case 'x': if (tag == "xmp") pending_space = true; break; } return true; } // This gets called when hitting eof. // We used to do: // > If the <body> is open, do // > something with the text (that is, don't throw up). Else, things are // > too weird, throw an error. We don't get called if the parser finds // > a closing body tag (exception gets thrown by closing_tag()) // But we don't throw any more. Whatever text we've extracted up to now is // better than nothing. void MyHtmlParser::do_eof() { } ���������recoll-1.21.5/internfile/extrameta.cpp��������������������������������������������������������������0000644�0001750�0001750�00000010653�12602163571�017227� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <errno.h> #include "rclconfig.h" #include "pxattr.h" #include "debuglog.h" #include "cstr.h" #include "rcldoc.h" #include "execmd.h" using std::string; using std::map; static void docfieldfrommeta(RclConfig* cfg, const string& name, const string &value, Rcl::Doc& doc) { string fieldname = cfg->fieldCanon(name); LOGDEB0(("Internfile:: setting [%s] from cmd/xattr value [%s]\n", fieldname.c_str(), value.c_str())); if (fieldname == cstr_dj_keymd) { doc.dmtime = value; } else { doc.meta[fieldname] = value; } } void reapXAttrs(const RclConfig* cfg, const string& path, map<string, string>& xfields) { LOGDEB2(("reapXAttrs: [%s]\n", path.c_str())); // Retrieve xattrs names from files and mapping table from config vector<string> xnames; if (!pxattr::list(path, &xnames)) { LOGERR(("FileInterner::reapXattrs: pxattr::list: errno %d\n", errno)); return; } const map<string, string>& xtof = cfg->getXattrToField(); // Record the xattrs: names found in the config are either skipped // or mapped depending if the translation is empty. Other names // are recorded as-is for (vector<string>::const_iterator it = xnames.begin(); it != xnames.end(); it++) { string key = *it; map<string, string>::const_iterator mit = xtof.find(*it); if (mit != xtof.end()) { if (mit->second.empty()) { continue; } else { key = mit->second; } } string value; if (!pxattr::get(path, *it, &value, pxattr::PXATTR_NOFOLLOW)) { LOGERR(("FileInterner::reapXattrs: pxattr::get failed" "for %s, errno %d\n", (*it).c_str(), errno)); continue; } // Encode should we ? xfields[key] = value; LOGDEB2(("reapXAttrs: [%s] -> [%s]\n", key.c_str(), value.c_str())); } } void docFieldsFromXattrs(RclConfig *cfg, const map<string, string>& xfields, Rcl::Doc& doc) { for (map<string,string>::const_iterator it = xfields.begin(); it != xfields.end(); it++) { docfieldfrommeta(cfg, it->first, it->second, doc); } } void reapMetaCmds(RclConfig* cfg, const string& path, map<string, string>& cfields) { const vector<MDReaper>& reapers = cfg->getMDReapers(); if (reapers.empty()) return; map<char,string> smap = create_map<char, string>('f', path); for (vector<MDReaper>::const_iterator rp = reapers.begin(); rp != reapers.end(); rp++) { vector<string> cmd; for (vector<string>::const_iterator it = rp->cmdv.begin(); it != rp->cmdv.end(); it++) { string s; pcSubst(*it, s, smap); cmd.push_back(s); } string output; if (ExecCmd::backtick(cmd, output)) { cfields[rp->fieldname] = output; } } } // Set fields from external commands // These override those from xattrs and can be later augmented by // values from inside the file. // // This is a bit atrocious because some entry names are special: // "modificationdate" will set mtime instead of an ordinary field, // and the output from anything beginning with "rclmulti" will be // interpreted as multiple fields in configuration file format... void docFieldsFromMetaCmds(RclConfig *cfg, const map<string, string>& cfields, Rcl::Doc& doc) { for (map<string,string>::const_iterator it = cfields.begin(); it != cfields.end(); it++) { if (!it->first.compare(0, 8, "rclmulti")) { ConfSimple simple(it->second); if (simple.ok()) { vector<string> names = simple.getNames(""); for (vector<string>::const_iterator nm = names.begin(); nm != names.end(); nm++) { string value; if (simple.get(*nm, value)) { docfieldfrommeta(cfg, *nm, value, doc); } } } } else { docfieldfrommeta(cfg, it->first, it->second, doc); } } } �������������������������������������������������������������������������������������recoll-1.21.5/internfile/mh_text.h������������������������������������������������������������������0000644�0001750�0001750�00000004005�12602163571�016344� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MH_TEXT_H_INCLUDED_ #define _MH_TEXT_H_INCLUDED_ #include <sys/types.h> #include <string> using std::string; #include "mimehandler.h" /** * Handler for text/plain files. * * Maybe try to guess charset, or use default, then transcode to utf8 */ class MimeHandlerText : public RecollFilter { public: MimeHandlerText(RclConfig *cnf, const string& id) : RecollFilter(cnf, id), m_paging(false), m_offs(0) { } virtual ~MimeHandlerText() { } virtual bool set_document_file(const string& mt, const string &file_path); virtual bool set_document_string(const string&, const string&); virtual bool is_data_input_ok(DataInput input) const { if (input == DOCUMENT_FILE_NAME || input == DOCUMENT_STRING) return true; return false; } virtual bool next_document(); virtual bool skip_to_document(const string& s); virtual void clear() { m_paging = false; m_text.erase(); m_fn.erase(); m_offs = 0; RecollFilter::clear(); } private: bool m_paging; string m_text; string m_fn; off_t m_offs; // Offset of next read in file if we're paging size_t m_pagesz; string m_charsetfromxattr; bool readnext(); }; #endif /* _MH_TEXT_H_INCLUDED_ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/�������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12652665251�015026� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/00README.recoll����������������������������������������������������������0000644�0001750�0001750�00000000163�12602163536�017317� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Most of the code in this directory was taken from the Binc IMAP project (http://www.bincimap.org/), version 1.3.3 �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/AUTHORS������������������������������������������������������������������0000644�0001750�0001750�00000004447�12602163536�016101� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������The following parties have participated in writing code or otherwise contributed to the Binc IMAP project: Author: Andreas Aardal Hanssen <andreas-binc@bincimap.org> Several users have been very helpful with bug reports and suggestions, and the author is very grateful for their contributions. Some users have also gone to the extra effort of debugging the cause of a bug, or have found a way of implementing a feature, and have either provided a very good description of what is needed, or they have actually provided a patch that has been added to Binc IMAP. While adding extra value to the discussion around the discovery of a bug or the evaluation of a new feature, these contributors also take some load of the author's back, so they deserve extra thanks. In this list are also included people who have contributed with mirrors and translations of the web pages. Henry Baragar <Henry.Baragar (a) Instantiated.Ca> Jrgen Botz <jurgen (a) botz.org> Charlie Brady <charlieb (a) e-smith.com> Caskey Dickson <caskey (a) technocage.com> Ketil Froyn <ketil (a) froyn.name> Gary Gordon <gv-mail (a) mygirlfriday.info> Marek Gutkowski <marek (a) moveo.pl> Daniel James <daniel_james (a) eml.cc> Zak Johnson <zakj (a) nox.cx> Sergei Kolobov <sergei (a) kolobov.com> Rafal Kupka <kupson (a) kupson.fdns.net> Eivind Kvedalen <bincimap (a) eivind.kvedalen.name> HIROSHIMA Naoki <naokih (a) iron-horse.org> Greger Stolt Nilsen <greger (a) psychoproject.net> John Starks <jstarks (a) starksnet.net> Peter Stuge <stuge-binc (a) cdy.org> Gerrit Pape <pape (a) smarden.org> Jeremy Rossi <jeremy (a) jeremyrossi.com> Dale Woolridge <dale-contrib-bincimap (a) woolridge.org> If you have contributed to the Binc IMAP project but are not listed here (this happens quite often), please send a mail to andreas-binc@bincimap.org and I'll add you to the list. �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/iofactory.cc�������������������������������������������������������������0000644�0001750�0001750�00000005217�12602163571�017332� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/*-*-mode:c++-*-*/ /* -------------------------------------------------------------------- * Filename: * src/iofactory.cc * * Description: * Implementation of the IOFactory class. * -------------------------------------------------------------------- * Copyright 2002, 2003 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #include "iofactory.h" #include "iodevice.h" #ifndef NO_NAMESPACES using namespace ::Binc; using namespace ::std; #endif /* NO_NAMESPACES */ //------------------------------------------------------------------------ IOFactory::IOFactory(void) { } //------------------------------------------------------------------------ IOFactory::~IOFactory(void) { } //------------------------------------------------------------------------ IOFactory &IOFactory::getInstance(void) { static IOFactory ioFactory; return ioFactory; } //------------------------------------------------------------------------ void IOFactory::addDevice(IODevice *dev) { IODevice *ioDevice = IOFactory::getInstance().devices[dev->service()]; // FIXME: Delete correct object. Now, only IODevice's destructor is // called, and only IODevice's memory is freed. if (ioDevice) delete ioDevice; IOFactory::getInstance().devices[dev->service()] = dev; } //------------------------------------------------------------------------ IODevice &IOFactory::getClient(void) { static IODevice nulDevice; IOFactory &ioFactory = IOFactory::getInstance(); if (ioFactory.devices.find("client") != ioFactory.devices.end()) return *ioFactory.devices["client"]; return nulDevice; } //------------------------------------------------------------------------ IODevice &IOFactory::getLogger(void) { static IODevice nulDevice; IOFactory &ioFactory = IOFactory::getInstance(); if (ioFactory.devices.find("log") != ioFactory.devices.end()) return *ioFactory.devices["log"]; return nulDevice; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/iodevice.h���������������������������������������������������������������0000644�0001750�0001750�00000026066�12602163571�016771� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/*-*-mode:c++;c-basic-offset:2-*-*/ /* -------------------------------------------------------------------- * Filename: * src/iodevice.h * * Description: * Declaration of the IODevice class. * -------------------------------------------------------------------- * Copyright 2002, 2003 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifndef iodevice_h_included #define iodevice_h_included #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "convert.h" // BincStream #include <string> #include <unistd.h> // ::write namespace Binc { /*! \class IODevice \brief The IODevice class provides a framework for reading and writing to device. Implement new devices by inheriting this class and overloading all virtual methods. service() returns the service that the specific device is used for. Two values are "log" and "client". \sa IOFactory, MultilogDevice, SyslogDevice, StdIODevice, SSLDevice */ class IODevice { public: /*! Standard options for an IODevice. */ enum Flags { None = 0, FlushesOnEndl = 1 << 0, HasInputLimit = 1 << 1, HasOutputLimit = 1 << 2, IsEnabled = 1 << 3, HasTimeout = 1 << 4 }; /*! Errors from when an operation returned false. */ enum Error { Unknown, Timeout }; /*! Constructs an invalid IODevice. Instances of IODevice perform no operations, and all boolean functions always return false. This constructor is only useful if called from a subclass that reimplements all virtual methods. */ IODevice(int f = 0); /*! Destructs an IODevice; does nothing. */ virtual ~IODevice(void); /*! Clears all data in the input and output buffers. */ void clear(void); /*! Sets one or more flags. \param f A bitwise OR of flags from the Flags enum. */ void setFlags(unsigned int f); /*! Clears one or more flags. \param f A bitwise OR of flags from the Flags enum. */ void clearFlags(unsigned int f); /*! Sets the maximum allowed input buffer size. If this size is non-zero and exceeded, reading from the device will fail. This functionality is used to prevent clients from forcing this class to consume so much memory that the program crashes. Setting the max input buffer size to 0 disables the input size limit. \param max The maximum input buffer size in bytes. */ void setMaxInputBufferSize(unsigned int max); /*! Sets the maximum allowed output buffer size. If this size is non-zero and exceeded, flush() is called implicitly. Setting the max output buffer size to 0 disables the output size limit. This is generally discouraged. As a contrast to setMaxInputBufferSize(), this function is used to bundle up consequent write calls, allowing more efficient use of the underlying device as larger blocks of data are written at a time. \param max The maximum output buffer size in bytes. */ void setMaxOutputBufferSize(unsigned int max); /*! Sets the device's internal timeout in seconds. This timeout is used both when waiting for data to read and for waiting for the ability to write. If this timeout is exceeded, the read or write function that triggered the timeout will fail. Setting the timeout to 0 disables the timeout. \param t The timeout in seconds. \sa getTimeout() */ void setTimeout(unsigned int t); /*! Returns the timeout in seconds, or 0 if there is no timeout. \sa setTimeout() */ unsigned int getTimeout(void) const; enum LogLevel { ErrorLevel, InfoLevel, WarningLevel, DebugLevel }; /*! Sets the output level for the following write operations on this device. The output level is a number which gives the following write operations a priority. You can use setOutputLevelLimit() to filter the write operations valid for different operating modes. This enables you to have certain write operations ignored. For instance, if the output level is set to 0, then "Hello" is written, and the output level is set to 1, followed by writing "Daisy", the output level limit value will decive wether only "Hello" is written, or if also "Daisy" is written. A low value of the level gives higher priority, and a high level will give low priority. The default value is 0, and write operations that are done with output level 0 are never ignored. \param level The output level \sa getOutputLevel(), setOutputLevelLimit() */ void setOutputLevel(LogLevel level); /*! Returns the current output level. \sa setOutputLevel() */ LogLevel getOutputLevel(void) const; /*! Sets the current output level limit. Write operations with a level higher than the output level limit are ignored. \param level The output level limit \sa setOutputLevel() */ void setOutputLevelLimit(LogLevel level); /*! Returns the current output level limit. \sa setOutputLevelLimit() */ LogLevel getOutputLevelLimit(void) const; /*! Returns the number of bytes that have been read from this device since it was created. */ unsigned int getReadCount(void) const; /*! Returns the number of bytes that have been written to this device since it was created. */ unsigned int getWriteCount(void) const; /*! Calling this function enables the built-in protocol dumping feature in the device. All input and output to this device will be dumped to a file in /tmp. */ void enableProtocolDumping(void); /*! Writes data to the device. Depending on the value of the max output buffer size, the data may not be written immediately. \sa setMaxOutputBufferSize() */ template <class T> IODevice &operator <<(const T &source); /*! Writes data to the device. This function specializes on standard ostream derivates, such as std::endl. */ IODevice &operator <<(std::ostream &(*source)(std::ostream &)); /*! Returns true if data can be read from the device; otherwise returns false. */ virtual bool canRead(void) const; /*! Reads data from the device, and stores this in a string. Returns true on success; otherwise returns false. \param dest The incoming data is stored in this string. \param max No more than this number of bytes is read from the device. */ bool readStr(std::string *dest, unsigned int max = 0); /*! Reads exactly one byte from the device and stores this in a char. Returns true on success; otherwise returns false. \param dest The incoming byte is stored in this char. */ bool readChar(char *dest = 0); /*! FIXME: add docs */ void unreadChar(char c); /*! FIXME: add docs */ void unreadStr(const std::string &s); /*! Reads characters from the device, until and including one certain character is found. All read characters are discarded. This function can be used to skip to the beginning of a line, with the terminating character being '\n'. \param The certain character. */ bool skipTo(char c); /*! Flushes the output buffer. Writes all data in the output buffer to the device. */ bool flush(void); /*! Returns the type of error that most recently occurred. */ Error getLastError(void) const; /*! Returns a human readable description of the error that most recently occurred. If no known error has occurred, this method returns "Unknown error". */ std::string getLastErrorString(void) const; /*! Returns the type of service provided by this device. Two valid return values are "client" and "log". */ virtual std::string service(void) const; protected: /*! Waits until data can be written to the device. If the timeout is 0, this function waits indefinitely. Otherwise, it waits until the timeout has expired. If this function returns true, data can be written to the device; otherwise, getLastError() must be checked to determine whether a timeout occurred or whether an error with the device prevents further writing. */ virtual bool waitForWrite(void) const; /*! Waits until data can be read from the device. \sa waitForWrite() */ virtual bool waitForRead(void) const; /*! Types of results from a write. */ enum WriteResult { WriteWait = 0, WriteDone = 1 << 0, WriteError = 1 << 1 }; /*! Writes as much data as possible to the device. If some but not all data was written, returns WriteWait. If all data was written, returns WriteDone. If an error occurred, returns WriteError. */ virtual WriteResult write(void); /*! Reads data from the device, and stores it in the input buffer. Returns true on success; otherwise returns false. This method will fail if there is no more data available, if a timeout occurred or if an error with the device prevents more data from being read. The number of bytes read from the device is undefined. */ virtual bool fillInputBuffer(void); BincStream inputBuffer; BincStream outputBuffer; protected: unsigned int flags; unsigned int maxInputBufferSize; unsigned int maxOutputBufferSize; unsigned int timeout; unsigned int readCount; unsigned int writeCount; LogLevel outputLevel; LogLevel outputLevelLimit; mutable Error error; mutable std::string errorString; int dumpfd; }; //---------------------------------------------------------------------- template <class T> IODevice &IODevice::operator <<(const T &source) { if ((flags & IsEnabled) && outputLevel <= outputLevelLimit) { outputBuffer << source; if (dumpfd) { BincStream ss; ss << source; ::write(dumpfd, ss.str().c_str(), ss.getSize()); } if (flags & HasInputLimit) if (outputBuffer.getSize() > maxOutputBufferSize) flush(); } return *this; } } #endif ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/mime.h�������������������������������������������������������������������0000644�0001750�0001750�00000013365�12602163536�016130� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * src/parsers/mime/mime.h * * Description: * Declaration of main mime parser components * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #ifndef mime_h_included #define mime_h_included #include <string> #include <vector> #include <map> #include <stdio.h> namespace Binc { class MimeInputSource; //---------------------------------------------------------------------- class HeaderItem { private: mutable std::string key; mutable std::string value; public: inline const std::string &getKey(void) const { return key; } inline const std::string &getValue(void) const { return value; } //-- HeaderItem(void); HeaderItem(const std::string &key, const std::string &value); }; //---------------------------------------------------------------------- class Header { private: mutable std::vector<HeaderItem> content; public: bool getFirstHeader(const std::string &key, HeaderItem &dest) const; bool getAllHeaders(const std::string &key, std::vector<HeaderItem> &dest) const; void add(const std::string &name, const std::string &content); void clear(void); //-- Header(void); ~Header(void); }; //---------------------------------------------------------------------- class IODevice; class MimeDocument; class MimePart { protected: public: mutable bool multipart; mutable bool messagerfc822; mutable std::string subtype; mutable std::string boundary; mutable unsigned int headerstartoffsetcrlf; mutable unsigned int headerlength; mutable unsigned int bodystartoffsetcrlf; mutable unsigned int bodylength; mutable unsigned int nlines; mutable unsigned int nbodylines; mutable unsigned int size; public: enum FetchType { FetchBody, FetchHeader, FetchMime }; mutable Header h; mutable std::vector<MimePart> members; inline const std::string &getSubType(void) const { return subtype; } inline bool isMultipart(void) const { return multipart; } inline bool isMessageRFC822(void) const { return messagerfc822; } inline unsigned int getSize(void) const { return bodylength; } inline unsigned int getNofLines(void) const { return nlines; } inline unsigned int getNofBodyLines(void) const { return nbodylines; } inline unsigned int getBodyLength(void) const { return bodylength; } inline unsigned int getBodyStartOffset(void) const { return bodystartoffsetcrlf; } void printBody(Binc::IODevice &output, unsigned int startoffset, unsigned int length) const; void getBody(std::string& s, unsigned int startoffset, unsigned int length) const; virtual void clear(void); virtual int doParseOnlyHeader(MimeInputSource *ms, const std::string &toboundary); virtual int doParseFull(MimeInputSource *ms, const std::string &toboundary, int &boundarysize); MimePart(void); virtual ~MimePart(void); private: MimeInputSource *mimeSource; bool parseOneHeaderLine(Binc::Header *header, unsigned int *nlines); bool skipUntilBoundary(const std::string &delimiter, unsigned int *nlines, bool *eof); inline void postBoundaryProcessing(bool *eof, unsigned int *nlines, int *boundarysize, bool *foundendofpart); void parseMultipart(const std::string &boundary, const std::string &toboundary, bool *eof, unsigned int *nlines, int *boundarysize, bool *foundendofpart, unsigned int *bodylength, std::vector<Binc::MimePart> *members); void parseSinglePart(const std::string &toboundary, int *boundarysize, unsigned int *nbodylines, unsigned int *nlines, bool *eof, bool *foundendofpart, unsigned int *bodylength); void parseHeader(Binc::Header *header, unsigned int *nlines); void analyzeHeader(Binc::Header *header, bool *multipart, bool *messagerfc822, std::string *subtype, std::string *boundary); void parseMessageRFC822(std::vector<Binc::MimePart> *members, bool *foundendofpart, unsigned int *bodylength, unsigned int *nbodylines, const std::string &toboundary); }; //---------------------------------------------------------------------- class MimeDocument : public MimePart { public: MimeDocument(void); ~MimeDocument(void); void parseOnlyHeader(int fd); void parseFull(int fd); void parseOnlyHeader(std::istream& s); void parseFull(std::istream& s); void clear(void); bool isHeaderParsed(void) const { return headerIsParsed; } bool isAllParsed(void) const { return allIsParsed; } private: bool headerIsParsed; bool allIsParsed; MimeInputSource *doc_mimeSource; }; }; #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/mime-parseonlyheader.cc��������������������������������������������������0000644�0001750�0001750�00000010202�12602163571�021433� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * mime-parseonlyheader.cc * * Description: * Implementation of main mime parser components * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "mime.h" #include "mime-utils.h" #include "mime-inputsource.h" #include "convert.h" #include <string> #include <vector> #include <map> #include <exception> #include <iostream> #include <string.h> #include <ctype.h> #include <stdio.h> #include <errno.h> #ifndef NO_NAMESPACES using namespace ::std; #endif /* NO_NAMESPACES */ //------------------------------------------------------------------------ void Binc::MimeDocument::parseOnlyHeader(int fd) { if (allIsParsed || headerIsParsed) return; headerIsParsed = true; delete doc_mimeSource; doc_mimeSource = new MimeInputSource(fd); headerstartoffsetcrlf = 0; headerlength = 0; bodystartoffsetcrlf = 0; bodylength = 0; messagerfc822 = false; multipart = false; nlines = 0; nbodylines = 0; doParseOnlyHeader(doc_mimeSource, ""); } void Binc::MimeDocument::parseOnlyHeader(istream& s) { if (allIsParsed || headerIsParsed) return; headerIsParsed = true; delete doc_mimeSource; doc_mimeSource = new MimeInputSourceStream(s); headerstartoffsetcrlf = 0; headerlength = 0; bodystartoffsetcrlf = 0; bodylength = 0; messagerfc822 = false; multipart = false; nlines = 0; nbodylines = 0; doParseOnlyHeader(doc_mimeSource, ""); } //------------------------------------------------------------------------ int Binc::MimePart::doParseOnlyHeader(MimeInputSource *ms, const string &toboundary) { mimeSource = ms; string name; string content; char cqueue[4]; memset(cqueue, 0, sizeof(cqueue)); headerstartoffsetcrlf = mimeSource->getOffset(); bool quit = false; char c = '\0'; while (!quit) { // read name while (1) { if (!mimeSource->getChar(&c)) { quit = true; break; } if (c == '\n') ++nlines; if (c == ':') break; if (c == '\n') { for (int i = name.length() - 1; i >= 0; --i) mimeSource->ungetChar(); quit = true; name.clear(); break; } name += c; if (name.length() == 2 && name.substr(0, 2) == "\r\n") { name.clear(); quit = true; break; } } if (name.length() == 1 && name[0] == '\r') { name.clear(); break; } if (quit) break; while (!quit) { if (!mimeSource->getChar(&c)) { quit = true; break; } if (c == '\n') ++nlines; for (int i = 0; i < 3; ++i) cqueue[i] = cqueue[i + 1]; cqueue[3] = c; if (strncmp(cqueue, "\r\n\r\n", 4) == 0) { quit = true; break; } if (cqueue[2] == '\n') { // guess the mime rfc says what can not appear on the beginning // of a line. if (!isspace(cqueue[3])) { if (content.length() > 2) content.resize(content.length() - 2); trim(content); h.add(name, content); name = c; content.clear(); break; } } content += c; } } if (name != "") { if (content.length() > 2) content.resize(content.length() - 2); h.add(name, content); } headerlength = mimeSource->getOffset() - headerstartoffsetcrlf; return 1; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/Makefile�����������������������������������������������������������������0000644�0001750�0001750�00000001176�12602163571�016464� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# @(#$Id: Makefile,v 1.6 2006-01-19 12:01:42 dockes Exp $ (C) 2005 J.F.Dockes depth = .. include $(depth)/mk/sysconf LIBS = libmime.a PROGS = trbinc all: depend $(LIBS) SRCS = mime-parsefull.cc mime-parseonlyheader.cc \ mime-printbody.cc mime.cc \ convert.cc iodevice.cc iofactory.cc OBJS = mime-parsefull.o mime-parseonlyheader.o \ mime-printbody.o mime.o \ convert.o iodevice.o iofactory.o libmime.a : $(OBJS) $(AR) ru libmime.a $(OBJS) .cc.o: $(CXX) $(ALL_CXXFLAGS) -c $< TRBINCOBJS = trbinc.o trbinc: trbinc.o $(CXX) -o trbinc trbinc.o libmime.a include $(depth)/mk/commontargets include alldeps ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/COPYING������������������������������������������������������������������0000644�0001750�0001750�00000044601�12602163536�016060� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������This software is released under the GPL. Find a full copy of the GNU General Public License below. In addition, as a special exception, Andreas Aardal Hanssen, author of Binc IMAP, gives permission to link the code of this program with the OpenSSL library (or with modified versions of OpenSSL that use the same license as OpenSSL, listed in the included COPYING.OpenSSL file), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. --------------------------------------------------------------------- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. �������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/mime-printbody.cc��������������������������������������������������������0000644�0001750�0001750�00000004707�12602163571�020275� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * mime-printbody.cc * * Description: * Implementation of main mime parser components * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "mime.h" #include "mime-utils.h" #include "mime-inputsource.h" #include "convert.h" #include "iodevice.h" #include "iofactory.h" #include <string> #include <vector> #include <map> #include <exception> #include <iostream> #include <string.h> #include <ctype.h> #include <stdio.h> #include <errno.h> #ifndef NO_NAMESPACES using namespace ::std; #endif /* NO_NAMESPACES */ //------------------------------------------------------------------------ void Binc::MimePart::printBody(IODevice &output, unsigned int startoffset, unsigned int length) const { mimeSource->reset(); mimeSource->seek(bodystartoffsetcrlf + startoffset); if (startoffset + length > bodylength) length = bodylength - startoffset; char c = '\0'; for (unsigned int i = 0; i < length; ++i) { if (!mimeSource->getChar(&c)) break; output << (char)c; } } void Binc::MimePart::getBody(string &s, unsigned int startoffset, unsigned int length) const { mimeSource->reset(); mimeSource->seek(bodystartoffsetcrlf + startoffset); s.reserve(length); if (startoffset + length > bodylength) length = bodylength - startoffset; char c = '\0'; for (unsigned int i = 0; i < length; ++i) { if (!mimeSource->getChar(&c)) break; s += (char)c; } } ���������������������������������������������������������recoll-1.21.5/bincimapmime/config.h�����������������������������������������������������������������0000644�0001750�0001750�00000000000�12602163536�016424� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/convert.cc���������������������������������������������������������������0000644�0001750�0001750�00000006761�12602163571�017020� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * convert.cc * * Description: * Implementation of miscellaneous convertion functions. * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "convert.h" #include <string> #ifndef NO_NAMESPACES using namespace ::std; using namespace Binc; #endif /* NO_NAMESPACES */ //------------------------------------------------------------------------ BincStream::BincStream(void) { } //------------------------------------------------------------------------ BincStream::~BincStream(void) { clear(); } //------------------------------------------------------------------------ string BincStream::popString(unsigned int size) { if (size > nstr.length()) size = nstr.length(); string tmp = nstr.substr(0, size); nstr = nstr.substr(size); return tmp; } //------------------------------------------------------------------------ char BincStream::popChar(void) { if (nstr.length() == 0) return '\0'; char c = nstr[0]; nstr = nstr.substr(1); return c; } //------------------------------------------------------------------------ void BincStream::unpopChar(char c) { nstr = c + nstr; } //------------------------------------------------------------------------ void BincStream::unpopStr(const string &s) { nstr = s + nstr; } //------------------------------------------------------------------------ const string &BincStream::str(void) const { return nstr; } //------------------------------------------------------------------------ void BincStream::clear(void) { nstr.clear(); } //------------------------------------------------------------------------ unsigned int BincStream::getSize(void) const { return (unsigned int) nstr.length(); } //------------------------------------------------------------------------ BincStream &BincStream::operator << (std::ostream&(*)(std::ostream&)) { nstr += "\r\n"; return *this; } //------------------------------------------------------------------------ BincStream &BincStream::operator << (const string &t) { nstr += t; return *this; } //------------------------------------------------------------------------ BincStream &BincStream::operator << (int t) { nstr += toString(t); return *this; } //------------------------------------------------------------------------ BincStream &BincStream::operator << (unsigned int t) { nstr += toString(t); return *this; } //------------------------------------------------------------------------ BincStream &BincStream::operator << (char t) { nstr += t; return *this; } ���������������recoll-1.21.5/bincimapmime/convert.h����������������������������������������������������������������0000644�0001750�0001750�00000021477�12602163571�016663� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * src/util/convert.h * * Description: * Declaration of miscellaneous convertion functions. * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #ifndef convert_h_included #define convert_h_included #include <string> #include <vector> #include <iomanip> #include <iostream> #include <stdio.h> #include <sys/stat.h> #include <cstdlib> #include <cstring> namespace Binc { //---------------------------------------------------------------------- inline std::string toString(int i_in) { char intbuf[16]; snprintf(intbuf, sizeof(intbuf), "%d", i_in); return std::string(intbuf); } //---------------------------------------------------------------------- inline std::string toString(unsigned int i_in) { char intbuf[16]; snprintf(intbuf, sizeof(intbuf), "%u", i_in); return std::string(intbuf); } //---------------------------------------------------------------------- inline std::string toString(unsigned long i_in) { char longbuf[40]; snprintf(longbuf, sizeof(longbuf), "%lu", i_in); return std::string(longbuf); } //---------------------------------------------------------------------- inline std::string toString(const char *i_in) { return std::string(i_in); } //---------------------------------------------------------------------- inline int atoi(const std::string &s_in) { return ::atoi(s_in.c_str()); } //---------------------------------------------------------------------- inline std::string toHex(const std::string &s) { const char hexchars[] = "0123456789abcdef"; std::string tmp; for (std::string::const_iterator i = s.begin(); i != s.end(); ++i) { unsigned char c = (unsigned char)*i; tmp += hexchars[((c & 0xf0) >> 4)]; tmp += hexchars[c & 0x0f]; } return tmp; } //---------------------------------------------------------------------- inline std::string fromHex(const std::string &s) { const char hexchars[] = "0123456789abcdef"; std::string tmp; for (std::string::const_iterator i = s.begin(); i != s.end() && i + 1 != s.end(); i += 2) { int n; unsigned char c = *i; unsigned char d = *(i + 1); const char *t; if ((t = strchr(hexchars, c)) == 0) return "out of range"; n = (t - hexchars) << 4; if ((t = strchr(hexchars, d)) == 0) return "out of range"; n += (t - hexchars); if (n >= 0 && n <= 255) tmp += (char) n; else return "out of range"; } return tmp; } //---------------------------------------------------------------------- inline std::string toImapString(const std::string &s_in) { for (std::string::const_iterator i = s_in.begin(); i != s_in.end(); ++i) { unsigned char c = (unsigned char)*i; if (c <= 31 || c >= 127 || c == '\"' || c == '\\') return "{" + toString(s_in.length()) + "}\r\n" + s_in; } return "\"" + s_in + "\""; } //---------------------------------------------------------------------- inline void uppercase(std::string &input) { for (std::string::iterator i = input.begin(); i != input.end(); ++i) *i = toupper(*i); } //---------------------------------------------------------------------- inline void lowercase(std::string &input) { for (std::string::iterator i = input.begin(); i != input.end(); ++i) *i = tolower(*i); } //---------------------------------------------------------------------- inline void chomp(std::string &s_in, const std::string &chars = " \t\r\n") { int n = s_in.length(); while (n > 1 && chars.find(s_in[n - 1]) != std::string::npos) s_in.resize(n-- - 1); } //---------------------------------------------------------------------- inline void trim(std::string &s_in, const std::string &chars = " \t\r\n") { while (s_in != "" && chars.find(s_in[0]) != std::string::npos) s_in = s_in.substr(1); chomp(s_in, chars); } //---------------------------------------------------------------------- inline const std::string unfold(const std::string &a, bool removecomment = true) { std::string tmp; bool incomment = false; bool inquotes = false; for (std::string::const_iterator i = a.begin(); i != a.end(); ++i) { unsigned char c = (unsigned char)*i; if (!inquotes && removecomment) { if (c == '(') { incomment = true; tmp += " "; } else if (c == ')') { incomment = false; } else if (c != 0x0a && c != 0x0d) { tmp += *i; } } else if (c != 0x0a && c != 0x0d) { tmp += *i; } if (!incomment) { if (*i == '\"') inquotes = !inquotes; } } trim(tmp); return tmp; } //---------------------------------------------------------------------- inline void split(const std::string &s_in, const std::string &delim, std::vector<std::string> &dest, bool skipempty = true) { std::string token; for (std::string::const_iterator i = s_in.begin(); i != s_in.end(); ++i) { if (delim.find(*i) != std::string::npos) { if (!skipempty || token != "") dest.push_back(token); token.clear(); } else token += *i; } if (token != "") dest.push_back(token); } //---------------------------------------------------------------------- inline void splitAddr(const std::string &s_in, std::vector<std::string> &dest, bool skipempty = true) { static const std::string delim = ","; std::string token; bool inquote = false; for (std::string::const_iterator i = s_in.begin(); i != s_in.end(); ++i) { if (inquote && *i == '\"') inquote = false; else if (!inquote && *i == '\"') inquote = true; if (!inquote && delim.find(*i) != std::string::npos) { if (!skipempty || token != "") dest.push_back(token); token.clear(); } else token += *i; } if (token != "") dest.push_back(token); } //---------------------------------------------------------------------- inline std::string toCanonMailbox(const std::string &s_in) { if (s_in.find("..") != std::string::npos) return std::string(); if (s_in.length() >= 5) { std::string a = s_in.substr(0, 5); uppercase(a); return a == "INBOX" ? a + (s_in.length() > 5 ? s_in.substr(5) : std::string()) : s_in; } return s_in; } //------------------------------------------------------------------------ inline std::string toRegex(const std::string &s_in, char delimiter) { std::string regex = "^"; for (std::string::const_iterator i = s_in.begin(); i != s_in.end(); ++i) { if (*i == '.' || *i == '[' || *i == ']' || *i == '{' || *i == '}' || *i == '(' || *i == ')' || *i == '^' || *i == '$' || *i == '?' || *i == '+' || *i == '\\') { regex += "\\"; regex += *i; } else if (*i == '*') regex += ".*?"; else if (*i == '%') { regex += "(\\"; regex += delimiter; regex += "){0,1}"; regex += "[^\\"; regex += delimiter; regex += "]*?"; } else regex += *i; } if (regex[regex.length() - 1] == '?') regex[regex.length() - 1] = '$'; else regex += "$"; return regex; } //------------------------------------------------------------------------ class BincStream { private: std::string nstr; public: //-- BincStream &operator << (std::ostream&(*)(std::ostream&)); BincStream &operator << (const std::string &t); BincStream &operator << (unsigned int t); BincStream &operator << (int t); BincStream &operator << (char t); //-- std::string popString(unsigned int size); //-- char popChar(void); void unpopChar(char c); void unpopStr(const std::string &s); //-- const std::string &str(void) const; //-- unsigned int getSize(void) const; //-- void clear(void); //-- BincStream(void); ~BincStream(void); }; } #endif �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/mime.cc������������������������������������������������������������������0000644�0001750�0001750�00000010272�12602163536�016260� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * mime.cc * * Description: * Implementation of main mime parser components * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include <ctype.h> #include <stdio.h> #include <errno.h> #include <string> #include <vector> #include <map> #include <exception> #include <iostream> #ifndef NO_NAMESPACES using namespace ::std; #endif /* NO_NAMESPACES */ #include "mime.h" #include "convert.h" #include "mime-inputsource.h" //------------------------------------------------------------------------ Binc::MimeDocument::MimeDocument(void) { allIsParsed = false; headerIsParsed = false; doc_mimeSource = 0; } //------------------------------------------------------------------------ Binc::MimeDocument::~MimeDocument(void) { delete doc_mimeSource; doc_mimeSource = 0; } //------------------------------------------------------------------------ void Binc::MimeDocument::clear(void) { members.clear(); h.clear(); headerIsParsed = false; allIsParsed = false; delete doc_mimeSource; doc_mimeSource = 0; } //------------------------------------------------------------------------ void Binc::MimePart::clear(void) { members.clear(); h.clear(); mimeSource = 0; } //------------------------------------------------------------------------ Binc::MimePart::MimePart(void) { size = 0; messagerfc822 = false; multipart = false; nlines = 0; nbodylines = 0; mimeSource = 0; } //------------------------------------------------------------------------ Binc::MimePart::~MimePart(void) { } //------------------------------------------------------------------------ Binc::HeaderItem::HeaderItem(void) { } //------------------------------------------------------------------------ Binc::HeaderItem::HeaderItem(const string &key, const string &value) { this->key = key; this->value = value; } //------------------------------------------------------------------------ Binc::Header::Header(void) { } //------------------------------------------------------------------------ Binc::Header::~Header(void) { } //------------------------------------------------------------------------ bool Binc::Header::getFirstHeader(const string &key, HeaderItem &dest) const { string k = key; lowercase(k); for (vector<HeaderItem>::const_iterator i = content.begin(); i != content.end(); ++i) { string tmp = (*i).getKey(); lowercase(tmp); if (tmp == k) { dest = *i; return true; } } return false; } //------------------------------------------------------------------------ bool Binc::Header::getAllHeaders(const string &key, vector<HeaderItem> &dest) const { string k = key; lowercase(k); for (vector<HeaderItem>::const_iterator i = content.begin(); i != content.end(); ++i) { string tmp = (*i).getKey(); lowercase(tmp); if (tmp == k) dest.push_back(*i); } return (dest.size() != 0); } //------------------------------------------------------------------------ void Binc::Header::clear(void) { content.clear(); } //------------------------------------------------------------------------ void Binc::Header::add(const string &key, const string &value) { content.push_back(HeaderItem(key, value)); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/iodevice.cc��������������������������������������������������������������0000644�0001750�0001750�00000017772�12602163571�017133� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/*-*-mode:c++-*-*/ /* -------------------------------------------------------------------- * Filename: * src/iodevice.cc * * Description: * Implementation of the IODevice class. * -------------------------------------------------------------------- * Copyright 2002, 2003 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #include "iodevice.h" #include "convert.h" // BincStream //#include "session.h" // getEnv/hasEnv #include <stdlib.h> #include <unistd.h> #ifndef NO_NAMESPACES using namespace ::std; using namespace ::Binc; #endif /* NO_NAMESPACES */ //------------------------------------------------------------------------ IODevice::IODevice(int f) : flags(f | IsEnabled), maxInputBufferSize(0), maxOutputBufferSize(0), timeout(0), readCount(0), writeCount(0), outputLevel(ErrorLevel), outputLevelLimit(ErrorLevel), error(Unknown), errorString("Unknown error"), dumpfd(0) { } //------------------------------------------------------------------------ IODevice::~IODevice(void) { } //------------------------------------------------------------------------ IODevice &IODevice::operator <<(ostream &(*source)(ostream &)) { if (!(flags & IsEnabled) || outputLevel > outputLevelLimit) return *this; static std::ostream &(*endl_funcptr)(ostream &) = endl; if (source != endl_funcptr) return *this; outputBuffer << "\r\n"; if (dumpfd) ::write(dumpfd, "\r\n", 2); if (flags & FlushesOnEndl) flush(); else if (flags & HasOutputLimit) if (outputBuffer.getSize() > maxOutputBufferSize) flush(); return *this; } //------------------------------------------------------------------------ bool IODevice::canRead(void) const { return false; } //------------------------------------------------------------------------ void IODevice::clear() { if (!(flags & IsEnabled)) return; inputBuffer.clear(); outputBuffer.clear(); } //------------------------------------------------------------------------ bool IODevice::flush() { if (!(flags & IsEnabled)) return true; WriteResult writeResult = WriteWait; do { unsigned int s = outputBuffer.getSize(); if (s == 0) break; if (!waitForWrite()) return false; writeResult = write(); if (writeResult == WriteError) return false; writeCount += s - outputBuffer.getSize(); } while (outputBuffer.getSize() > 0 && writeResult == WriteWait); outputBuffer.clear(); return true; } //------------------------------------------------------------------------ void IODevice::setFlags(unsigned int f) { flags |= f; } //------------------------------------------------------------------------ void IODevice::clearFlags(unsigned int f) { flags &= ~f; } //------------------------------------------------------------------------ void IODevice::setMaxInputBufferSize(unsigned int max) { maxInputBufferSize = max; } //------------------------------------------------------------------------ void IODevice::setMaxOutputBufferSize(unsigned int max) { maxOutputBufferSize = max; } //------------------------------------------------------------------------ void IODevice::setTimeout(unsigned int t) { timeout = t; if (t) flags |= HasTimeout; else flags &= ~HasTimeout; } //------------------------------------------------------------------------ unsigned int IODevice::getTimeout(void) const { return timeout; } //------------------------------------------------------------------------ void IODevice::setOutputLevel(LogLevel level) { outputLevel = level; } //------------------------------------------------------------------------ IODevice::LogLevel IODevice::getOutputLevel(void) const { return outputLevel; } //------------------------------------------------------------------------ void IODevice::setOutputLevelLimit(LogLevel level) { outputLevelLimit = level; } //------------------------------------------------------------------------ IODevice::LogLevel IODevice::getOutputLevelLimit(void) const { return outputLevelLimit; } //------------------------------------------------------------------------ bool IODevice::readStr(string *dest, unsigned int max) { // If max is 0, fill the input buffer once only if it's empty. if (!max && inputBuffer.getSize() == 0 && !fillInputBuffer()) return false; // If max is != 0, wait until we have max. while (max && inputBuffer.getSize() < max) { if (!fillInputBuffer()) return false; } unsigned int bytesToRead = max ? max : inputBuffer.getSize(); *dest += inputBuffer.str().substr(0, bytesToRead); if (dumpfd) { ::write(dumpfd, inputBuffer.str().substr(0, bytesToRead).c_str(), bytesToRead); } inputBuffer.popString(bytesToRead); readCount += bytesToRead; return true; } //------------------------------------------------------------------------ bool IODevice::readChar(char *dest) { if (inputBuffer.getSize() == 0 && !fillInputBuffer()) return false; char c = inputBuffer.popChar(); if (dest) *dest = c; if (dumpfd) ::write(dumpfd, &c, 1); ++readCount; return true; } //------------------------------------------------------------------------ void IODevice::unreadChar(char c) { inputBuffer.unpopChar(c); } //------------------------------------------------------------------------ void IODevice::unreadStr(const string &s) { inputBuffer.unpopStr(s); } //------------------------------------------------------------------------ bool IODevice::skipTo(char c) { char dest = '\0'; do { if (!readChar(&dest)) return false; if (dumpfd) ::write(dumpfd, &dest, 1); } while (c != dest); return true; } //------------------------------------------------------------------------ string IODevice::service(void) const { return "nul"; } //------------------------------------------------------------------------ bool IODevice::waitForWrite(void) const { return false; } //------------------------------------------------------------------------ bool IODevice::waitForRead(void) const { return false; } //------------------------------------------------------------------------ IODevice::WriteResult IODevice::write(void) { return WriteError; } //------------------------------------------------------------------------ bool IODevice::fillInputBuffer(void) { return false; } //------------------------------------------------------------------------ IODevice::Error IODevice::getLastError(void) const { return error; } //------------------------------------------------------------------------ string IODevice::getLastErrorString(void) const { return errorString; } //------------------------------------------------------------------------ unsigned int IODevice::getReadCount(void) const { return readCount; } //------------------------------------------------------------------------ unsigned int IODevice::getWriteCount(void) const { return writeCount; } //------------------------------------------------------------------------ void IODevice::enableProtocolDumping(void) { #if 0 BincStream ss; ss << "/tmp/bincimap-dump-" << (int) time(0) << "-" << Session::getInstance().getIP() << "-XXXXXX"; char *safename = strdup(ss.str().c_str()); dumpfd = mkstemp(safename); if (dumpfd == -1) dumpfd = 0; delete safename; #endif } ������recoll-1.21.5/bincimapmime/mime-parsefull.cc��������������������������������������������������������0000644�0001750�0001750�00000041166�12602163571�020260� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� /* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * mime-parsefull.cc * * Description: * Implementation of main mime parser components * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include <ctype.h> #include <stdio.h> #include <errno.h> #include <string> #include <vector> #include <map> #include <exception> #include <iostream> #ifndef NO_NAMESPACES using namespace ::std; #endif /* NO_NAMESPACES */ #include "mime.h" #include "mime-utils.h" #include "mime-inputsource.h" #include "convert.h" // #define MPF #ifdef MPF #define MPFDEB(X) fprintf X #else #define MPFDEB(X) #endif //------------------------------------------------------------------------ void Binc::MimeDocument::parseFull(int fd) { if (allIsParsed) return; allIsParsed = true; delete doc_mimeSource; doc_mimeSource = new MimeInputSource(fd); headerstartoffsetcrlf = 0; headerlength = 0; bodystartoffsetcrlf = 0; bodylength = 0; size = 0; messagerfc822 = false; multipart = false; int bsize = 0; string bound; doParseFull(doc_mimeSource, bound, bsize); // eat any trailing junk to get the correct size char c; while (doc_mimeSource->getChar(&c)); size = doc_mimeSource->getOffset(); } void Binc::MimeDocument::parseFull(istream& s) { if (allIsParsed) return; allIsParsed = true; delete doc_mimeSource; doc_mimeSource = new MimeInputSourceStream(s); headerstartoffsetcrlf = 0; headerlength = 0; bodystartoffsetcrlf = 0; bodylength = 0; size = 0; messagerfc822 = false; multipart = false; int bsize = 0; string bound; doParseFull(doc_mimeSource, bound, bsize); // eat any trailing junk to get the correct size char c; while (doc_mimeSource->getChar(&c)); size = doc_mimeSource->getOffset(); } //------------------------------------------------------------------------ bool Binc::MimePart::parseOneHeaderLine(Binc::Header *header, unsigned int *nlines) { using namespace ::Binc; char c; bool eof = false; char cqueue[4]; string name; string content; while (mimeSource->getChar(&c)) { // If we encounter a \r before we got to the first ':', then // rewind back to the start of the line and assume we're at the // start of the body. if (c == '\r') { for (int i = 0; i < (int) name.length() + 1; ++i) mimeSource->ungetChar(); return false; } // A colon marks the end of the header name if (c == ':') break; // Otherwise add to the header name name += c; } cqueue[0] = '\0'; cqueue[1] = '\0'; cqueue[2] = '\0'; cqueue[3] = '\0'; // Read until the end of the header. bool endOfHeaders = false; while (!endOfHeaders) { if (!mimeSource->getChar(&c)) { eof = true; break; } if (c == '\n') ++*nlines; for (int i = 0; i < 3; ++i) cqueue[i] = cqueue[i + 1]; cqueue[3] = c; if (strncmp(cqueue, "\r\n\r\n", 4) == 0) { endOfHeaders = true; break; } // If the last character was a newline, and the first now is not // whitespace, then rewind one character and store the current // key,value pair. if (cqueue[2] == '\n' && c != ' ' && c != '\t') { if (content.length() > 2) content.resize(content.length() - 2); trim(content); header->add(name, content); if (c != '\r') { mimeSource->ungetChar(); if (c == '\n') --*nlines; return true; } mimeSource->getChar(&c); return false; } content += c; } if (name != "") { if (content.length() > 2) content.resize(content.length() - 2); header->add(name, content); } return !(eof || endOfHeaders); } //------------------------------------------------------------------------ void Binc::MimePart::parseHeader(Binc::Header *header, unsigned int *nlines) { while (parseOneHeaderLine(header, nlines)) { } } //------------------------------------------------------------------------ void Binc::MimePart::analyzeHeader(Binc::Header *header, bool *multipart, bool *messagerfc822, string *subtype, string *boundary) { using namespace ::Binc; // Do simple parsing of headers to determine the // type of message (multipart,messagerfc822 etc) HeaderItem ctype; if (header->getFirstHeader("content-type", ctype)) { vector<string> types; split(ctype.getValue(), ";", types); if (types.size() > 0) { // first element should describe content type string tmp = types[0]; trim(tmp); vector<string> v; split(tmp, "/", v); string key, value; key = (v.size() > 0) ? v[0] : "text"; value = (v.size() > 1) ? v[1] : "plain"; lowercase(key); if (key == "multipart") { *multipart = true; lowercase(value); *subtype = value; } else if (key == "message") { lowercase(value); if (value == "rfc822") *messagerfc822 = true; } } for (vector<string>::const_iterator i = types.begin(); i != types.end(); ++i) { string element = *i; trim(element); if (element.find("=") != string::npos) { string::size_type pos = element.find('='); string key = element.substr(0, pos); string value = element.substr(pos + 1); lowercase(key); trim(key); if (key == "boundary") { trim(value, " \""); *boundary = value; } } } } } void Binc::MimePart::parseMessageRFC822(vector<Binc::MimePart> *members, bool *foundendofpart, unsigned int *bodylength, unsigned int *nbodylines, const string &toboundary) { using namespace ::Binc; // message rfc822 means a completely enclosed mime document. we // call the parser recursively, and pass on the boundary string // that we got. when parse() finds this boundary, it returns 0. if // it finds the end boundary (boundary + "--"), it returns != 0. MimePart m; unsigned int bodystartoffsetcrlf = mimeSource->getOffset(); // parsefull returns the number of bytes that need to be removed // from the body because of the terminating boundary string. int bsize = 0; if (m.doParseFull(mimeSource, toboundary, bsize)) *foundendofpart = true; // make sure bodylength doesn't overflow *bodylength = mimeSource->getOffset(); if (*bodylength >= bodystartoffsetcrlf) { *bodylength -= bodystartoffsetcrlf; if (*bodylength >= (unsigned int) bsize) { *bodylength -= (unsigned int) bsize; } else { *bodylength = 0; } } else { *bodylength = 0; } *nbodylines += m.getNofLines(); members->push_back(m); } bool Binc::MimePart::skipUntilBoundary(const string &delimiter, unsigned int *nlines, bool *eof) { int endpos = delimiter.length(); char *delimiterqueue = 0; int delimiterpos = 0; const char *delimiterStr = delimiter.c_str(); if (delimiter != "") { delimiterqueue = new char[endpos]; memset(delimiterqueue, 0, endpos); } // first, skip to the first delimiter string. Anything between the // header and the first delimiter string is simply ignored (it's // usually a text message intended for non-mime clients) char c; bool foundBoundary = false; for (;;) { if (!mimeSource->getChar(&c)) { *eof = true; break; } if (c == '\n') ++*nlines; // if there is no delimiter, we just read until the end of the // file. if (!delimiterqueue) continue; delimiterqueue[delimiterpos++] = c; if (delimiterpos == endpos) delimiterpos = 0; if (compareStringToQueue(delimiterStr, delimiterqueue, delimiterpos, endpos)) { foundBoundary = true; break; } } delete [] delimiterqueue; delimiterqueue = 0; return foundBoundary; } // JFD: Things we do after finding a boundary (something like CRLF--somestring) // Need to see if this is a final one (with an additional -- at the end), // and need to check if it is immediately followed by another boundary // (in this case, we give up our final CRLF in its favour) inline void Binc::MimePart::postBoundaryProcessing(bool *eof, unsigned int *nlines, int *boundarysize, bool *foundendofpart) { // Read two more characters. This may be CRLF, it may be "--" and // it may be any other two characters. char a = '\0'; if (!mimeSource->getChar(&a)) *eof = true; if (a == '\n') ++*nlines; char b = '\0'; if (!mimeSource->getChar(&b)) *eof = true; if (b == '\n') ++*nlines; // If eof, we're done here if (*eof) return; // If we find two dashes after the boundary, then this is the end // of boundary marker, and we need to get 2 more chars if (a == '-' && b == '-') { *foundendofpart = true; *boundarysize += 2; if (!mimeSource->getChar(&a)) *eof = true; if (a == '\n') ++*nlines; if (!mimeSource->getChar(&b)) *eof = true; if (b == '\n') ++*nlines; } // If the boundary is followed by CRLF, we need to handle the // special case where another boundary line follows // immediately. In this case we consider the CRLF to be part of // the NEXT boundary. if (a == '\r' && b == '\n') { // Get 2 more if (!mimeSource->getChar(&a) || !mimeSource->getChar(&b)) { *eof = true; } else if (a == '-' && b == '-') { MPFDEB((stderr, "BINC: consecutive delimiters, giving up CRLF\n")); mimeSource->ungetChar(); mimeSource->ungetChar(); mimeSource->ungetChar(); mimeSource->ungetChar(); } else { // We unget the 2 chars, and keep our crlf (increasing our own size) MPFDEB((stderr, "BINC: keeping my CRLF\n")); mimeSource->ungetChar(); mimeSource->ungetChar(); *boundarysize += 2; } } else { // Boundary string not followed by CRLF, don't read more and let // others skip the rest. Note that this is allowed but quite uncommon mimeSource->ungetChar(); mimeSource->ungetChar(); } } void Binc::MimePart::parseMultipart(const string &boundary, const string &toboundary, bool *eof, unsigned int *nlines, int *boundarysize, bool *foundendofpart, unsigned int *bodylength, vector<Binc::MimePart> *members) { MPFDEB((stderr, "BINC: ParseMultipart: boundary [%s], toboundary[%s]\n", boundary.c_str(), toboundary.c_str())); using namespace ::Binc; unsigned int bodystartoffsetcrlf = mimeSource->getOffset(); // multipart parsing starts with skipping to the first // boundary. then we call parse() for all parts. the last parse() // command will return a code indicating that it found the last // boundary of this multipart. Note that the first boundary does // not have to start with CRLF. string delimiter = "--" + boundary; skipUntilBoundary(delimiter, nlines, eof); if (!eof) *boundarysize = delimiter.size(); postBoundaryProcessing(eof, nlines, boundarysize, foundendofpart); // read all mime parts. if (!*foundendofpart && !*eof) { bool quit = false; do { MimePart m; // If parseFull returns != 0, then it encountered the multipart's // final boundary. int bsize = 0; if (m.doParseFull(mimeSource, boundary, bsize)) { quit = true; *boundarysize = bsize; } members->push_back(m); } while (!quit); } if (!*foundendofpart && !*eof) { // multipart parsing starts with skipping to the first // boundary. then we call parse() for all parts. the last parse() // command will return a code indicating that it found the last // boundary of this multipart. Note that the first boundary does // not have to start with CRLF. string delimiter = "\r\n--" + toboundary; skipUntilBoundary(delimiter, nlines, eof); if (!*eof) *boundarysize = delimiter.size(); postBoundaryProcessing(eof, nlines, boundarysize, foundendofpart); } // make sure bodylength doesn't overflow *bodylength = mimeSource->getOffset(); if (*bodylength >= bodystartoffsetcrlf) { *bodylength -= bodystartoffsetcrlf; if (*bodylength >= (unsigned int) *boundarysize) { *bodylength -= (unsigned int) *boundarysize; } else { *bodylength = 0; } } else { *bodylength = 0; } MPFDEB((stderr, "BINC: ParseMultipart return\n")); } void Binc::MimePart::parseSinglePart(const string &toboundary, int *boundarysize, unsigned int *nbodylines, unsigned int *nlines, bool *eof, bool *foundendofpart, unsigned int *bodylength) { MPFDEB((stderr, "BINC: parseSinglePart, boundary [%s]\n", toboundary.c_str())); using namespace ::Binc; unsigned int bodystartoffsetcrlf = mimeSource->getOffset(); // If toboundary is empty, then we read until the end of the // file. Otherwise we will read until we encounter toboundary. string _toboundary; if (toboundary != "") { _toboundary = "\r\n--"; _toboundary += toboundary; } // if (skipUntilBoundary(_toboundary, nlines, eof)) // *boundarysize = _toboundary.length(); char *boundaryqueue = 0; int endpos = _toboundary.length(); if (toboundary != "") { boundaryqueue = new char[endpos]; memset(boundaryqueue, 0, endpos); } *boundarysize = 0; const char *_toboundaryStr = _toboundary.c_str(); string line; bool toboundaryIsEmpty = (toboundary == ""); char c; int boundarypos = 0; while (mimeSource->getChar(&c)) { if (c == '\n') { ++*nbodylines; ++*nlines; } if (toboundaryIsEmpty) continue; // find boundary boundaryqueue[boundarypos++] = c; if (boundarypos == endpos) boundarypos = 0; if (compareStringToQueue(_toboundaryStr, boundaryqueue, boundarypos, endpos)) { *boundarysize = _toboundary.length(); break; } } delete [] boundaryqueue; if (toboundary != "") { postBoundaryProcessing(eof, nlines, boundarysize, foundendofpart); } else { // Recoll: in the case of a multipart body with a null // boundary (probably illegal but wtf), eof was not set and // multipart went into a loop until bad alloc. *eof = true; } // make sure bodylength doesn't overflow *bodylength = mimeSource->getOffset(); if (*bodylength >= bodystartoffsetcrlf) { *bodylength -= bodystartoffsetcrlf; if (*bodylength >= (unsigned int) *boundarysize) { *bodylength -= (unsigned int) *boundarysize; } else { *bodylength = 0; } } else { *bodylength = 0; } MPFDEB((stderr, "BINC: parseSimple ret: bodylength %d, boundarysize %d\n", *bodylength, *boundarysize)); } //------------------------------------------------------------------------ int Binc::MimePart::doParseFull(MimeInputSource *ms, const string &toboundary, int &boundarysize) { MPFDEB((stderr, "BINC: doParsefull, toboundary[%s]\n", toboundary.c_str())); mimeSource = ms; headerstartoffsetcrlf = mimeSource->getOffset(); // Parse the header of this mime part. parseHeader(&h, &nlines); // Headerlength includes the seperating CRLF. Body starts after the // CRLF. headerlength = mimeSource->getOffset() - headerstartoffsetcrlf; bodystartoffsetcrlf = mimeSource->getOffset(); MPFDEB((stderr, "BINC: doParsefull, bodystartoffsetcrlf %d\n", bodystartoffsetcrlf)); bodylength = 0; // Determine the type of mime part by looking at fields in the // header. analyzeHeader(&h, &multipart, &messagerfc822, &subtype, &boundary); bool eof = false; bool foundendofpart = false; if (messagerfc822) { parseMessageRFC822(&members, &foundendofpart, &bodylength, &nbodylines, toboundary); } else if (multipart) { parseMultipart(boundary, toboundary, &eof, &nlines, &boundarysize, &foundendofpart, &bodylength, &members); } else { parseSinglePart(toboundary, &boundarysize, &nbodylines, &nlines, &eof, &foundendofpart, &bodylength); } MPFDEB((stderr, "BINC: doParsefull ret, toboundary[%s]\n", toboundary.c_str())); return (eof || foundendofpart) ? 1 : 0; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/mime-utils.h�������������������������������������������������������������0000644�0001750�0001750�00000003152�12602163536�017257� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * mime.cc * * Description: * Implementation of main mime parser components * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifndef mime_utils_h_included #define mime_utils_h_included #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include <ctype.h> #include <stdio.h> #include <errno.h> #ifndef NO_NAMESPACES using namespace ::std; #endif /* NO_NAMESPACES */ inline bool compareStringToQueue(const char *s_in, char *bqueue, int pos, int size) { for (int i = 0; i < size; ++i) { if (s_in[i] != bqueue[pos]) return false; if (++pos == size) pos = 0; } return true; } #endif ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/mime-inputsource.h�������������������������������������������������������0000644�0001750�0001750�00000011731�12602163571�020500� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- mode:c++;c-basic-offset:2 -*- */ /* -------------------------------------------------------------------- * Filename: * src/mime-inputsource.h * * Description: * The base class of the MIME input source * -------------------------------------------------------------------- * Copyright 2002-2005 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifndef mime_inputsource_h_included #define mime_inputsource_h_included #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include <unistd.h> #include <iostream> namespace Binc { class MimeInputSource { public: // Note that we do NOT take ownership of fd, won't close it on delete inline MimeInputSource(int fd, unsigned int start = 0); virtual inline ~MimeInputSource(void); virtual inline size_t fillRaw(char *raw, size_t nbytes); virtual inline void reset(void); virtual inline bool fillInputBuffer(void); inline void seek(unsigned int offset); inline bool getChar(char *c); inline void ungetChar(void); inline int getFileDescriptor(void) const; inline unsigned int getOffset(void) const; private: int fd; char data[16384]; unsigned int offset; unsigned int tail; unsigned int head; unsigned int start; char lastChar; }; inline MimeInputSource::MimeInputSource(int fd, unsigned int start) { this->fd = fd; this->start = start; offset = 0; tail = 0; head = 0; lastChar = '\0'; memset(data, '\0', sizeof(data)); seek(start); } inline MimeInputSource::~MimeInputSource(void) { } inline size_t MimeInputSource::fillRaw(char *raw, size_t nbytes) { return read(fd, raw, nbytes); } inline bool MimeInputSource::fillInputBuffer(void) { char raw[4096]; ssize_t nbytes = fillRaw(raw, 4096); if (nbytes <= 0) { // FIXME: If ferror(crlffile) we should log this. return false; } for (ssize_t i = 0; i < nbytes; ++i) { const char c = raw[i]; if (c == '\r') { if (lastChar == '\r') { data[tail++ & (0x4000-1)] = '\r'; data[tail++ & (0x4000-1)] = '\n'; } } else if (c == '\n') { data[tail++ & (0x4000-1)] = '\r'; data[tail++ & (0x4000-1)] = '\n'; } else { if (lastChar == '\r') { data[tail++ & (0x4000-1)] = '\r'; data[tail++ & (0x4000-1)] = '\n'; } data[tail++ & (0x4000-1)] = c; } lastChar = c; } return true; } inline void MimeInputSource::reset(void) { offset = head = tail = 0; lastChar = '\0'; if (fd != -1) lseek(fd, 0, SEEK_SET); } inline void MimeInputSource::seek(unsigned int seekToOffset) { if (offset > seekToOffset) reset(); char c; int n = 0; while (seekToOffset > offset) { if (!getChar(&c)) break; ++n; } } inline bool MimeInputSource::getChar(char *c) { if (head == tail && !fillInputBuffer()) return false; *c = data[head++ & (0x4000-1)]; ++offset; return true; } inline void MimeInputSource::ungetChar() { --head; --offset; } inline int MimeInputSource::getFileDescriptor(void) const { return fd; } inline unsigned int MimeInputSource::getOffset(void) const { return offset; } /////////////////////////////////// class MimeInputSourceStream : public MimeInputSource { public: inline MimeInputSourceStream(istream& s, unsigned int start = 0); virtual inline size_t fillRaw(char *raw, size_t nb); virtual inline void reset(void); private: istream& s; }; inline MimeInputSourceStream::MimeInputSourceStream(istream& si, unsigned int start) : MimeInputSource(-1, start), s(si) { } inline size_t MimeInputSourceStream::fillRaw(char *raw, size_t nb) { // Why can't streams tell how many characters were actually read // when hitting eof ? std::streampos st = s.tellg(); s.seekg(0, ios::end); std::streampos lst = s.tellg(); s.seekg(st); size_t nbytes = lst - st; if (nbytes > nb) { nbytes = nb; } if (nbytes <= 0) { return (size_t)-1; } s.read(raw, nbytes); return nbytes; } inline void MimeInputSourceStream::reset(void) { MimeInputSource::reset(); s.seekg(0); } } #endif ���������������������������������������recoll-1.21.5/bincimapmime/trbinc.cc����������������������������������������������������������������0000644�0001750�0001750�00000005566�12602163571�016623� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes */ * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <sstream> #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ #include "mime.h" static char *thisprog; static char usage [] = "trbinc <mboxfile> \n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_s 0x2 #define OPT_b 0x4 #define DEFCOUNT 10 const char *hnames[] = {"Subject", "Content-type"}; int nh = sizeof(hnames) / sizeof(char *); int main(int argc, char **argv) { int count = DEFCOUNT; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 's': op_flags |= OPT_s; break; case 'b': op_flags |= OPT_b; if (argc < 2) Usage(); if ((sscanf(*(++argv), "%d", &count)) != 1) Usage(); argc--; goto b1; default: Usage(); break; } b1: argc--; argv++; } if (argc != 1) Usage(); char *mfile = *argv++;argc--; int fd; if ((fd = open(mfile, 0)) < 0) { perror("Opening"); exit(1); } Binc::MimeDocument doc; #if 0 doc.parseFull(fd); #else char *cp; int size = lseek(fd, 0, SEEK_END); lseek(fd, 0, 0); fprintf(stderr, "Size: %d\n", size); cp = (char *)malloc(size); if (cp==0) { fprintf(stderr, "Malloc %d failed\n", size); exit(1); } int n; if ((n=read(fd, cp, size)) != size) { fprintf(stderr, "Read failed: requested %d, got %d\n", size, n); exit(1); } std::stringstream s(string(cp, size), ios::in); doc.parseFull(s); #endif if (!doc.isHeaderParsed() && !doc.isAllParsed()) { fprintf(stderr, "Parse error\n"); exit(1); } close(fd); Binc::HeaderItem hi; for (int i = 0; i < nh ; i++) { if (!doc.h.getFirstHeader(hnames[i], hi)) { fprintf(stderr, "No %s\n", hnames[i]); exit(1); } printf("%s: %s\n", hnames[i], hi.getValue().c_str()); } exit(0); } ������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/bincimapmime/iofactory.h��������������������������������������������������������������0000644�0001750�0001750�00000004204�12602163571�017167� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/*-*-mode:c++-*-*/ /* -------------------------------------------------------------------- * Filename: * src/iofactory.h * * Description: * Declaration of the IOFactory class. * -------------------------------------------------------------------- * Copyright 2002, 2003 Andreas Aardal Hanssen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * -------------------------------------------------------------------- */ #ifndef IOFACTORY_H_INCLUDED #define IOFACTORY_H_INCLUDED #include <map> #include <string> #include "iodevice.h" namespace Binc { class IOFactory { public: ~IOFactory(void); static void addDevice(IODevice *dev); static IOFactory &getInstance(void); static IODevice &getClient(void); static IODevice &getLogger(void); private: IOFactory(void); std::map<std::string, IODevice *> devices; }; } #define bincClient \ IOFactory::getClient() #if !defined (DEBUG) #define bincError if (false) std::cout #define bincWarning if (false) std::cout #define bincDebug if (false) std::cout #else #define bincError \ IOFactory::getLogger().setOutputLevel(IODevice::ErrorLevel);IOFactory::getLogger() #define bincWarning \ IOFactory::getLogger().setOutputLevel(IODevice::WarningLevel);IOFactory::getLogger() #define bincDebug \ IOFactory::getLogger().setOutputLevel(IODevice::DebugLevel);IOFactory::getLogger() #endif #define bincInfo \ IOFactory::getLogger().setOutputLevel(IODevice::InfoLevel);IOFactory::getLogger() #endif ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/��������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12652665251�013525� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/main.cpp������������������������������������������������������������������������0000644�0001750�0001750�00000027347�12602163572�015164� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <unistd.h> #include <cstdlib> #include <qapplication.h> #include <qtranslator.h> #include <qtextcodec.h> #include <qtimer.h> #include <qthread.h> #include <qmessagebox.h> #include <qcheckbox.h> #include <qcombobox.h> #include <QLocale> #include <QLibraryInfo> #include "rcldb.h" #include "rclconfig.h" #include "pathut.h" #include "recoll.h" #include "smallut.h" #include "rclinit.h" #include "debuglog.h" #include "rclmain_w.h" #include "ssearch_w.h" #include "guiutils.h" #ifdef RCL_USE_ASPELL #include "rclaspell.h" #endif #include "smallut.h" #include "readfile.h" #include "recollq.h" extern RclConfig *theconfig; PTMutexInit thetempfileslock; static vector<TempFile> o_tempfiles; /* Keep an array of temporary files for deletion at exit. It happens that we erase some of them before exiting (ie: when closing a preview tab), we don't reuse the array holes for now */ void rememberTempFile(TempFile temp) { PTMutexLocker locker(thetempfileslock); o_tempfiles.push_back(temp); } void forgetTempFile(string &fn) { if (fn.empty()) return; PTMutexLocker locker(thetempfileslock); for (vector<TempFile>::iterator it = o_tempfiles.begin(); it != o_tempfiles.end(); it++) { if ((*it).isNotNull() && !fn.compare((*it)->filename())) { it->release(); } } fn.erase(); } Rcl::Db *rcldb; #ifdef RCL_USE_ASPELL Aspell *aspell; #endif int recollNeedsExit; RclMain *mainWindow; void startManual(const string& helpindex) { if (mainWindow) mainWindow->startManual(helpindex); } bool maybeOpenDb(string &reason, bool force, bool *maindberror) { LOGDEB2(("maybeOpenDb: force %d\n", force)); if (!rcldb) { reason = "Internal error: db not created"; return false; } if (force) rcldb->close(); rcldb->rmQueryDb(""); for (list<string>::const_iterator it = prefs.activeExtraDbs.begin(); it != prefs.activeExtraDbs.end(); it++) { LOGDEB(("main: adding [%s]\n", it->c_str())); rcldb->addQueryDb(*it); } Rcl::Db::OpenError error; if (!rcldb->isopen() && !rcldb->open(Rcl::Db::DbRO, &error)) { reason = "Could not open database"; if (maindberror) { reason += " in " + theconfig->getDbDir() + " wait for indexing to complete?"; *maindberror = (error == Rcl::Db::DbOpenMainDb) ? true : false; } return false; } rcldb->setAbstractParams(-1, prefs.syntAbsLen, prefs.syntAbsCtx); return true; } // Retrieve the list currently active stemming languages. We try to // get this from the db, as some may have been added from recollindex // without changing the config. If this fails, use the config. This is // used for setting up choice menus, not updating the configuration. bool getStemLangs(vector<string>& vlangs) { // Try from db string reason; if (maybeOpenDb(reason)) { vlangs = rcldb->getStemLangs(); LOGDEB0(("getStemLangs: from index: %s\n", stringsToString(vlangs).c_str())); return true; } else { // Cant get the langs from the index. Maybe it just does not // exist yet. So get them from the config string slangs; if (theconfig->getConfParam("indexstemminglanguages", slangs)) { stringToStrings(slangs, vlangs); return true; } return false; } } static void recollCleanup() { LOGDEB2(("recollCleanup: closing database\n")); deleteZ(rcldb); deleteZ(theconfig); PTMutexLocker locker(thetempfileslock); o_tempfiles.clear(); #ifdef RCL_USE_ASPELL deleteZ(aspell); #endif LOGDEB2(("recollCleanup: done\n")); } static void sigcleanup(int) { // We used to not call exit from here, because of the idxthread, but // this is now gone, so... recollNeedsExit = 1; exit(1); } void applyStyleSheet(const QString& ssfname) { const char *cfname = (const char *)ssfname.toLocal8Bit(); LOGDEB0(("Applying style sheet: [%s]\n", cfname)); if (cfname && *cfname) { string stylesheet; file_to_string(cfname, stylesheet); qApp->setStyleSheet(QString::fromUtf8(stylesheet.c_str())); } else { qApp->setStyleSheet(QString()); } } extern void qInitImages_recoll(); static const char *thisprog; // ATTENTION A LA COMPATIBILITE AVEC LES OPTIONS DE recollq static int op_flags; #define OPT_h 0x4 #define OPT_c 0x20 #define OPT_q 0x40 #define OPT_o 0x80 #define OPT_l 0x100 #define OPT_f 0x200 #define OPT_a 0x400 #define OPT_t 0x800 #define OPT_v 0x1000 static const char usage [] = "\n" "recoll [-h] [-c <configdir>] [-q query]\n" " -h : Print help and exit\n" " -c <configdir> : specify config directory, overriding $RECOLL_CONFDIR\n" " [-o|l|f|a] [-t] -q 'query' : search query to be executed as if entered\n" " into simple search. The default is to interpret the argument as a \n" " query language string (but see modifier options)\n" " In most cases, the query string should be quoted with single-quotes to\n" " avoid shell interpretation\n" " -a : the query will be interpreted as an AND query.\n" " -o : the query will be interpreted as an OR query.\n" " -f : the query will be interpreted as a filename search\n" " -l : the query will be interpreted as a query language string (default)\n" " -t : terminal display: no gui. Results go to stdout. MUST be given\n" " explicitly as -t (not ie, -at), and -q <query> MUST\n" " be last on the command line if this is used.\n" " Use -t -h to see the additional non-gui options\n" "recoll -v : print version\n" "recoll <url>\n" " This is used to open a recoll url (including an ipath), and called\n" " typically from another search interface like the Unity Dash\n" ; static void Usage(void) { FILE *fp = (op_flags & OPT_h) ? stdout : stderr; fprintf(fp, "%s\n", Rcl::version_string().c_str()); fprintf(fp, "%s: Usage: %s", thisprog, usage); exit((op_flags & OPT_h)==0); } int main(int argc, char **argv) { // if we are named recollq or option "-t" is present at all, we // don't do the GUI thing and pass the whole to recollq for // command line / pipe usage. if (!strcmp(argv[0], "recollq")) exit(recollq(&theconfig, argc, argv)); for (int i = 0; i < argc; i++) { if (!strcmp(argv[i], "-t")) { exit(recollq(&theconfig, argc, argv)); } } QApplication app(argc, argv); QCoreApplication::setOrganizationName("Recoll.org"); QCoreApplication::setApplicationName("recoll"); string a_config; string question; string urltoview; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) Usage(); while (**argv) switch (*(*argv)++) { case 'a': op_flags |= OPT_a; break; case 'c': op_flags |= OPT_c; if (argc < 2) Usage(); a_config = *(++argv); argc--; goto b1; case 'f': op_flags |= OPT_f; break; case 'h': op_flags |= OPT_h; Usage();break; case 'l': op_flags |= OPT_l; break; case 'o': op_flags |= OPT_o; break; case 'q': op_flags |= OPT_q; if (argc < 2) Usage(); question = *(++argv); argc--; goto b1; case 'v': op_flags |= OPT_v; fprintf(stdout, "%s\n", Rcl::version_string().c_str()); return 0; case 't': op_flags |= OPT_t; break; default: Usage(); } b1: argc--; argv++; } // If -q was given, all remaining non-option args are concatenated // to the query. This is for the common case recoll -q x y z to // avoid needing quoting "x y z" if (op_flags & OPT_q) while (argc > 0) { question += " "; question += *argv++; argc--; } // Else the remaining argument should be an URL to be opened if (argc == 1) { urltoview = *argv++;argc--; if (urltoview.compare(0, 7, cstr_fileu)) { Usage(); } } else if (argc > 0) Usage(); string reason; theconfig = recollinit(recollCleanup, sigcleanup, reason, &a_config); if (!theconfig || !theconfig->ok()) { QString msg = "Configuration problem: "; msg += QString::fromUtf8(reason.c_str()); QMessageBox::critical(0, "Recoll", msg); exit(1); } // fprintf(stderr, "recollinit done\n"); // Translations for Qt standard widgets QString slang = QLocale::system().name().left(2); QTranslator qt_trans(0); qt_trans.load(QString("qt_%1").arg(slang), QLibraryInfo::location(QLibraryInfo::TranslationsPath)); app.installTranslator(&qt_trans); // Translations for Recoll string translatdir = path_cat(theconfig->getDatadir(), "translations"); QTranslator translator(0); translator.load( QString("recoll_") + slang, translatdir.c_str() ); app.installTranslator( &translator ); // fprintf(stderr, "Translations installed\n"); #ifdef RCL_USE_ASPELL aspell = new Aspell(theconfig); aspell->init(reason); if (!aspell || !aspell->ok()) { LOGDEB(("Aspell speller creation failed %s\n", reason.c_str())); aspell = 0; } #endif string historyfile = path_cat(theconfig->getConfDir(), "history"); g_dynconf = new RclDynConf(historyfile); if (!g_dynconf || !g_dynconf->ok()) { QString msg = app.translate("Main", "\"history\" file is damaged or un(read)writeable, please check or remove it: ") + QString::fromLocal8Bit(historyfile.c_str()); QMessageBox::critical(0, "Recoll", msg); exit(1); } g_advshistory = new AdvSearchHist; // fprintf(stderr, "History done\n"); rwSettings(false); // fprintf(stderr, "Settings done\n"); if (!prefs.qssFile.isEmpty()) { applyStyleSheet(prefs.qssFile); } QIcon icon; icon.addFile(QString::fromUtf8(":/images/recoll.png")); app.setWindowIcon(icon); // Create main window and set its size to previous session's RclMain w; mainWindow = &w; if (prefs.mainwidth > 100) { QSize s(prefs.mainwidth, prefs.mainheight); mainWindow->resize(s); } string dbdir = theconfig->getDbDir(); if (dbdir.empty()) { QMessageBox::critical(0, "Recoll", app.translate("Main", "No db directory in configuration")); exit(1); } rcldb = new Rcl::Db(theconfig); mainWindow->show(); QTimer::singleShot(0, mainWindow, SLOT(initDbOpen())); // Connect exit handlers etc.. Beware, apparently this must come // after mainWindow->show()? app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit())); app.connect(&app, SIGNAL(aboutToQuit()), mainWindow, SLOT(close())); mainWindow->sSearch->searchTypCMB->setCurrentIndex(prefs.ssearchTyp); mainWindow->sSearch->searchTypeChanged(prefs.ssearchTyp); if (op_flags & OPT_q) { SSearch::SSearchType stype; if (op_flags & OPT_o) { stype = SSearch::SST_ANY; } else if (op_flags & OPT_f) { stype = SSearch::SST_FNM; } else if (op_flags & OPT_a) { stype = SSearch::SST_ALL; } else { stype = SSearch::SST_LANG; } mainWindow->sSearch->searchTypCMB->setCurrentIndex(int(stype)); mainWindow-> sSearch->setSearchString(QString::fromLocal8Bit(question.c_str())); } else if (!urltoview.empty()) { LOGDEB(("MAIN: got urltoview [%s]\n", urltoview.c_str())); mainWindow->setUrlToView(QString::fromLocal8Bit(urltoview.c_str())); } return app.exec(); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/rclhelp.cpp���������������������������������������������������������������������0000644�0001750�0001750�00000004303�12602163537�015655� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <time.h> #include <qevent.h> #include <qwidget.h> #include "recoll.h" #include "rclhelp.h" #include "debuglog.h" map<string, string> HelpClient::helpmap; void HelpClient::installMap(string wname, string section) { helpmap[wname] = section; } HelpClient::HelpClient(QObject *parent, const char *) : QObject(parent) { parent->installEventFilter(this); } bool HelpClient::eventFilter(QObject *obj, QEvent *event) { static time_t last_start; if (event->type() == QEvent::KeyPress || event->type() == QEvent::ShortcutOverride) { // LOGDEB(("HelpClient::eventFilter: %d\n", (int)event->type())); QKeyEvent *ke = static_cast<QKeyEvent *>(event); if (ke->key() == Qt::Key_F1 || ke->key() == Qt::Key_Help) { if (obj->isWidgetType()) { QWidget *widget = static_cast<QWidget *>(obj)->focusWidget(); map<string, string>::iterator it = helpmap.end(); while (widget) { it = helpmap.find((const char *)widget->objectName().toUtf8()); if (it != helpmap.end()) break; widget = widget->parentWidget(); } if (time(0) - last_start > 5) { last_start = time(0); if (it != helpmap.end()) { LOGDEB(("HelpClient::eventFilter: %s->%s\n", it->first.c_str(), it->second.c_str())); startManual(it->second); } else { LOGDEB(("HelpClient::eventFilter: no help section\n")); startManual(""); } } } return true; } } return false; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/respopup.h����������������������������������������������������������������������0000644�0001750�0001750�00000002413�12602163572�015545� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RESPOPUP_H_INCLUDED_ #define _RESPOPUP_H_INCLUDED_ namespace ResultPopup { enum Options {showExpand = 0x1, showSubs = 0x2, isMain = 0x3, showSaveOne = 0x4, showSaveSel = 0x8}; extern QMenu *create(QWidget *me, int opts, RefCntr<DocSequence> source, Rcl::Doc& doc); extern Rcl::Doc getParent(RefCntr<DocSequence> source, Rcl::Doc& doc); extern void copyFN(const Rcl::Doc &doc); extern void copyURL(const Rcl::Doc &doc); }; #endif /* _RESPOPUP_H_INCLUDED_ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/snippets_w.h��������������������������������������������������������������������0000644�0001750�0001750�00000003170�12602163572�016064� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SNIPPETS_W_H_INCLUDED_ #define _SNIPPETS_W_H_INCLUDED_ #include <QString> #include "rcldoc.h" #include "refcntr.h" #include "docseq.h" #include "rclmain_w.h" #include "ui_snippets.h" class SnippetsW : public QWidget, public Ui::Snippets { Q_OBJECT public: SnippetsW(Rcl::Doc doc, RefCntr<DocSequence> source, QWidget* parent = 0) : QWidget(parent), m_doc(doc), m_source(source) { setupUi((QDialog*)this); init(); } protected slots: virtual void linkWasClicked(const QUrl &); virtual void slotEditFind(); virtual void slotEditFindNext(); virtual void slotEditFindPrevious(); virtual void slotSearchTextChanged(const QString&); signals: void startNativeViewer(Rcl::Doc, int pagenum, QString term); private: void init(); Rcl::Doc m_doc; RefCntr<DocSequence> m_source; }; #endif /* _SNIPPETS_W_H_INCLUDED_ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/crontool.ui���������������������������������������������������������������������0000644�0001750�0001750�00000015737�12602163537�015733� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>CronToolW</class> <widget class="QDialog" name="CronToolW"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>508</width> <height>416</height> </rect> </property> <property name="windowTitle"> <string>Cron Dialog</string> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>1</verstretch> </sizepolicy> </property> <property name="text"> <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html></string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label_4"> <property name="text"> <string>Days of week (* or 0-7, 0 or 7 is Sunday)</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item row="0" column="1"> <widget class="QLineEdit" name="daysLE"/> </item> <item row="1" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>Hours (* or 0-23)</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item row="1" column="1"> <widget class="QLineEdit" name="hoursLE"/> </item> <item row="2" column="0"> <widget class="QLabel" name="label_2"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Minutes (0-59)</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item row="2" column="1"> <widget class="QLineEdit" name="minsLE"/> </item> </layout> </item> <item> <widget class="QLabel" name="label_5"> <property name="text"> <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html></string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> </layout> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel</set> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>CronToolW</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>248</x> <y>254</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>CronToolW</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>316</x> <y>260</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui> ���������������������������������recoll-1.21.5/qtgui/preview_w.h���������������������������������������������������������������������0000644�0001750�0001750�00000012734�12602163572�015706� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PREVIEW_W_H_INCLUDED_ #define _PREVIEW_W_H_INCLUDED_ // Always use a qtextbrowser for now, there is no compelling reason to // switch to webkit here #if 1 || defined(RESLIST_TEXTBROWSER) #define PREVIEW_TEXTBROWSER #endif #include <stdio.h> #include <QComboBox> #include <qvariant.h> #include <qwidget.h> #ifdef PREVIEW_TEXTBROWSER #include <QTextBrowser> #define PREVIEW_PARENTCLASS QTextBrowser #else #include <QtWebKit/QWebView> #define PREVIEW_PARENTCLASS QWebView #endif #include <qimage.h> #include "rcldb.h" #include "refcntr.h" #include "plaintorich.h" #include "rclmain_w.h" class QTabWidget; class QLabel; class QPushButton; class QCheckBox; class Preview; class PlainToRichQtPreview; class PreviewTextEdit : public PREVIEW_PARENTCLASS { Q_OBJECT; public: PreviewTextEdit(QWidget* parent, const char* name, Preview *pv); virtual ~PreviewTextEdit(); void moveToAnchor(const QString& name); enum DspType {PTE_DSPTXT, PTE_DSPFLDS, PTE_DSPIMG}; public slots: virtual void displayFields(); virtual void displayText(); virtual void displayImage(); virtual void print(); virtual void createPopupMenu(const QPoint& pos); friend class Preview; protected: void mouseDoubleClickEvent(QMouseEvent *); private: Preview *m_preview; PlainToRichQtPreview *m_plaintorich; bool m_dspflds; string m_url; // filename for this tab string m_ipath; // Internal doc path inside file int m_docnum; // Index of doc in db search results. // doc out of internfile (previous fields come from the index) with // main text erased (for space). Rcl::Doc m_fdoc; // The input doc out of the index/query list Rcl::Doc m_dbdoc; // Saved rich (or plain actually) text: the textedit seems to // sometimes (but not always) return its text stripped of tags, so // this is needed (for printing for example) QString m_richtxt; Qt::TextFormat m_format; // Temporary file name (possibly, if displaying image). The // TempFile itself is kept inside main.cpp (because that's where // signal cleanup happens), but we use its name to ask for release // when the tab is closed. string m_tmpfilename; QImage m_image; DspType m_curdsp; }; class Preview : public QWidget { Q_OBJECT public: Preview(int sid, // Search Id const HighlightData& hdata) // Search terms etc. for highlighting : QWidget(0), m_searchId(sid), m_searchTextFromIndex(-1), m_hData(hdata) { init(); } virtual void closeEvent(QCloseEvent *e ); virtual bool eventFilter(QObject *target, QEvent *event ); /** * Arrange for the document to be displayed either by exposing the tab * if already loaded, or by creating a new tab and loading it. * @para docnum is used to link back to the result list (to highlight * paragraph when tab exposed etc. */ virtual bool makeDocCurrent(const Rcl::Doc& idoc, int docnum, bool sametab = false); void emitWordSelect(QString); friend class PreviewTextEdit; public slots: virtual void searchTextChanged(const QString& text); virtual void searchTextFromIndex(int); virtual void doSearch(const QString& str, bool next, bool reverse, bool wo = false); virtual void nextPressed(); virtual void prevPressed(); virtual void currentChanged(int); virtual void closeCurrentTab(); virtual void emitSaveDocToFile(); virtual void togglePlainPre(); signals: void previewClosed(Preview *); void wordSelect(QString); void showNext(Preview *w, int sid, int docnum); void showPrev(Preview *w, int sid, int docnum); void previewExposed(Preview *w, int sid, int docnum); void printCurrentPreviewRequest(); void saveDocToFile(Rcl::Doc); private: // Identifier of search in main window. This is used to check that // we make sense when requesting the next document when browsing // successive search results in a tab. int m_searchId; bool m_dynSearchActive; // Index value the search text comes from. -1 if text was edited int m_searchTextFromIndex; bool m_canBeep; bool m_loading; HighlightData m_hData; bool m_justCreated; // First tab create is different QTabWidget* pvTab; QLabel* searchLabel; QComboBox *searchTextCMB; QPushButton* nextButton; QPushButton* prevButton; QPushButton* clearPB; QCheckBox* matchCheck; void init(); virtual void setCurTabProps(const Rcl::Doc& doc, int docnum); virtual PreviewTextEdit *currentEditor(); virtual PreviewTextEdit *addEditorTab(); virtual bool loadDocInCurrentTab(const Rcl::Doc& idoc, int dnm); }; #endif /* _PREVIEW_W_H_INCLUDED_ */ ������������������������������������recoll-1.21.5/qtgui/uiprefs_w.h���������������������������������������������������������������������0000644�0001750�0001750�00000004652�12645207740�015705� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _UIPREFS_W_H_INCLUDED_ #define _UIPREFS_W_H_INCLUDED_ #include <qvariant.h> #include <qdialog.h> #include "ui_uiprefs.h" class QDialog; class ViewAction; class RclMain; class UIPrefsDialog : public QDialog, public Ui::uiPrefsDialogBase { Q_OBJECT public: UIPrefsDialog(RclMain* parent) : QDialog((QWidget*)parent), m_mainWindow(parent) { setupUi(this); init(); } ~UIPrefsDialog(){}; QString reslistFontFamily; int reslistFontSize; QString qssFile; QString snipCssFile; virtual void init(); void setFromPrefs(); public slots: virtual void showFontDialog(); virtual void resetReslistFont(); virtual void showStylesheetDialog(); virtual void showSnipCssDialog(); virtual void resetStylesheet(); virtual void resetSnipCss(); virtual void showViewAction(); virtual void showViewAction(const QString& mt); virtual void addExtraDbPB_clicked(); virtual void delExtraDbPB_clicked(); virtual void togExtraDbPB_clicked(); virtual void on_showTrayIconCB_clicked(); virtual void actAllExtraDbPB_clicked(); virtual void unacAllExtraDbPB_clicked(); virtual void setStemLang(const QString& lang); virtual void editParaFormat(); virtual void editHeaderText(); virtual void extradDbSelectChanged(); virtual void extraDbEditPtrans(); signals: void uiprefsDone(); protected slots: virtual void accept(); virtual void reject(); private: void setupReslistFontPB(); // Locally stored data (pending ok/cancel) QString paraFormat; QString headerText; ViewAction *m_viewAction; RclMain *m_mainWindow; }; #endif /* _UIPREFS_W_H_INCLUDED_ */ ��������������������������������������������������������������������������������������recoll-1.21.5/qtgui/specialindex.ui�����������������������������������������������������������������0000644�0001750�0001750�00000010037�12603155721�016525� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>SpecIdxW</class> <widget class="QDialog" name="SpecIdxW"> <property name="windowModality"> <enum>Qt::WindowModal</enum> </property> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>413</width> <height>191</height> </rect> </property> <property name="windowTitle"> <string>Special Indexing</string> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QCheckBox" name="noRetryFailedCB"> <property name="text"> <string>Do not retry previously failed files.</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="eraseBeforeCB"> <property name="toolTip"> <string>Else only modified or failed files will be processed.</string> </property> <property name="text"> <string>Erase selected files data before indexing.</string> </property> </widget> </item> <item> <layout class="QGridLayout"> <item row="1" column="0"> <widget class="QLineEdit" name="targLE"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>8</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>300</width> <height>0</height> </size> </property> <property name="toolTip"> <string>Directory to recursively index</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QPushButton" name="browsePB"> <property name="text"> <string>Browse</string> </property> <property name="autoDefault"> <bool>false</bool> </property> </widget> </item> <item row="0" column="0"> <widget class="QLabel" name="textLabel1"> <property name="text"> <string>Start directory (else use regular topdirs):</string> </property> <property name="wordWrap"> <bool>false</bool> </property> </widget> </item> </layout> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QLabel" name="patLBL"> <property name="toolTip"> <string>Leave empty to select all files. You can use multiple space-separated shell-type patterns.<br>Patterns with embedded spaces should be quoted with double quotes.<br>Can only be used if the start target is set.</string> </property> <property name="text"> <string>Selection patterns:</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="selPatsLE"/> </item> </layout> </item> </layout> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>SpecIdxW</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>248</x> <y>254</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>SpecIdxW</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>316</x> <y>260</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/ptrans.ui�����������������������������������������������������������������������0000644�0001750�0001750�00000007750�12602163537�015377� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>EditTransBase</class> <widget class="QDialog" name="EditTransBase"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>649</width> <height>362</height> </rect> </property> <property name="windowTitle"> <string>Path Translations</string> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="whatIdxLA"> <property name="text"> <string>Setting path translations for </string> </property> <property name="wordWrap"> <bool>false</bool> </property> </widget> </item> <item> <widget class="QTableWidget" name="transTW"> <property name="toolTip"> <string>Select one or several file types, then use the controls in the frame below to change how they are processed</string> </property> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Sunken</enum> </property> <property name="editTriggers"> <set>QAbstractItemView::NoEditTriggers</set> </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> <property name="selectionBehavior"> <enum>QAbstractItemView::SelectRows</enum> </property> <property name="showGrid"> <bool>true</bool> </property> <property name="sortingEnabled"> <bool>true</bool> </property> <property name="columnCount"> <number>2</number> </property> <property name="allColumnsShowFocus" stdset="0"> <bool>true</bool> </property> <property name="showSortIndicator" stdset="0"> <bool>false</bool> </property> <attribute name="horizontalHeaderDefaultSectionSize"> <number>300</number> </attribute> <attribute name="horizontalHeaderMinimumSectionSize"> <number>20</number> </attribute> <attribute name="horizontalHeaderShowSortIndicator" stdset="0"> <bool>false</bool> </attribute> <attribute name="horizontalHeaderStretchLastSection"> <bool>true</bool> </attribute> <attribute name="verticalHeaderVisible"> <bool>false</bool> </attribute> <column/> <column/> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QPushButton" name="addPB"> <property name="text"> <string>Add</string> </property> </widget> </item> <item> <widget class="QPushButton" name="delPB"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> <string>Delete</string> </property> </widget> </item> </layout> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="cancelPB"> <property name="text"> <string>Cancel</string> </property> </widget> </item> <item> <widget class="QPushButton" name="savePB"> <property name="text"> <string>Save</string> </property> </widget> </item> </layout> </item> </layout> </item> </layout> </widget> <layoutdefault spacing="6" margin="11"/> <resources/> <connections/> </ui> ������������������������recoll-1.21.5/qtgui/advshist.h����������������������������������������������������������������������0000644�0001750�0001750�00000003721�12602163571�015517� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _ADVSHIST_H_INCLUDED_ #define _ADVSHIST_H_INCLUDED_ #include <vector> #include "recoll.h" #include "refcntr.h" #include "searchdata.h" /** Advanced search history. * * We store previous searches using the "dynconf" mechanism, as string * entries under the "advSearchHist" key. The strings are generated by * translating the SearchData structure to XML, which is done by * calling SearchData::asXML(). * When reading, we use a QXmlSimpleReader and QXmlDefaultHandler to * turn the XML back into a SearchData object, which is then passed to * the advanced search object fromSearch() method to rebuild the * window state. * * XML generation is performed by ../rcldb/searchdataxml.cpp. * See xmltosd.h for a schema description */ class AdvSearchHist { public: AdvSearchHist(); ~AdvSearchHist(); // Add entry bool push(RefCntr<Rcl::SearchData>); // Get latest. does not change state RefCntr<Rcl::SearchData> getnewest(); // Cursor RefCntr<Rcl::SearchData> getolder(); RefCntr<Rcl::SearchData> getnewer(); void clear(); private: bool read(); int m_current; std::vector<RefCntr<Rcl::SearchData> > m_entries; }; #endif // _ADVSHIST_H_INCLUDED_ �����������������������������������������������recoll-1.21.5/qtgui/rclm_wins.cpp�������������������������������������������������������������������0000644�0001750�0001750�00000026251�12645207740�016231� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <QShortcut> #include <QMessageBox> #include "debuglog.h" #include "internfile.h" #include "listdialog.h" #include "confgui/confguiindex.h" #include "idxsched.h" #include "crontool.h" #include "rtitool.h" #include "snippets_w.h" #include "fragbuts.h" #include "specialindex.h" #include "rclmain_w.h" using namespace std; static const QKeySequence quitKeySeq("Ctrl+q"); static const QKeySequence closeKeySeq("Ctrl+w"); // Open advanced search dialog. void RclMain::showAdvSearchDialog() { if (asearchform == 0) { asearchform = new AdvSearch(0); if (asearchform == 0) { return; } connect(new QShortcut(quitKeySeq, asearchform), SIGNAL (activated()), this, SLOT (fileExit())); connect(asearchform, SIGNAL(startSearch(RefCntr<Rcl::SearchData>, bool)), this, SLOT(startSearch(RefCntr<Rcl::SearchData>, bool))); asearchform->show(); } else { // Close and reopen, in hope that makes us visible... asearchform->close(); asearchform->show(); } } void RclMain::showSpellDialog() { if (spellform == 0) { spellform = new SpellW(0); connect(new QShortcut(quitKeySeq, spellform), SIGNAL (activated()), this, SLOT (fileExit())); connect(spellform, SIGNAL(wordSelect(QString)), sSearch, SLOT(addTerm(QString))); spellform->show(); } else { // Close and reopen, in hope that makes us visible... spellform->close(); spellform->show(); } } void RclMain::showFragButs() { if (fragbuts && fragbuts->isStale(0)) { deleteZ(fragbuts); } if (fragbuts == 0) { fragbuts = new FragButs(0); if (fragbuts->ok()) { fragbuts->show(); connect(fragbuts, SIGNAL(fragmentsChanged()), this, SLOT(onFragmentsChanged())); } else { delete fragbuts; fragbuts = 0; } } else { // Close and reopen, in hope that makes us visible... fragbuts->close(); fragbuts->show(); } } void RclMain::showSpecIdx() { if (specidx == 0) { specidx = new SpecIdxW(0); connect(specidx, SIGNAL(accepted()), this, SLOT(specialIndex())); specidx->show(); } else { // Close and reopen, in hope that makes us visible... specidx->close(); specidx->show(); } } void RclMain::showIndexConfig() { showIndexConfig(false); } void RclMain::execIndexConfig() { showIndexConfig(true); } void RclMain::showIndexConfig(bool modal) { LOGDEB(("showIndexConfig()\n")); if (indexConfig == 0) { indexConfig = new ConfIndexW(0, theconfig); connect(new QShortcut(quitKeySeq, indexConfig), SIGNAL (activated()), this, SLOT (fileExit())); } else { // Close and reopen, in hope that makes us visible... indexConfig->close(); indexConfig->reloadPanels(); } if (modal) { indexConfig->exec(); indexConfig->setModal(false); } else { indexConfig->show(); } } void RclMain::showIndexSched() { showIndexSched(false); } void RclMain::execIndexSched() { showIndexSched(true); } void RclMain::showIndexSched(bool modal) { LOGDEB(("showIndexSched()\n")); if (indexSched == 0) { indexSched = new IdxSchedW(this); connect(new QShortcut(quitKeySeq, indexSched), SIGNAL (activated()), this, SLOT (fileExit())); connect(indexSched->cronCLB, SIGNAL(clicked()), this, SLOT(execCronTool())); if (theconfig && theconfig->isDefaultConfig()) { #ifdef RCL_MONITOR connect(indexSched->rtidxCLB, SIGNAL(clicked()), this, SLOT(execRTITool())); #else indexSched->rtidxCLB->setEnabled(false); indexSched->rtidxCLB->setToolTip(tr("Disabled because the real time indexer was not compiled in.")); #endif } else { indexSched->rtidxCLB->setEnabled(false); indexSched->rtidxCLB->setToolTip(tr("This configuration tool only works for the main index.")); } } else { // Close and reopen, in hope that makes us visible... indexSched->close(); } if (modal) { indexSched->exec(); indexSched->setModal(false); } else { indexSched->show(); } } void RclMain::showCronTool() { showCronTool(false); } void RclMain::execCronTool() { showCronTool(true); } void RclMain::showCronTool(bool modal) { LOGDEB(("showCronTool()\n")); if (cronTool == 0) { cronTool = new CronToolW(0); connect(new QShortcut(quitKeySeq, cronTool), SIGNAL (activated()), this, SLOT (fileExit())); } else { // Close and reopen, in hope that makes us visible... cronTool->close(); } if (modal) { cronTool->exec(); cronTool->setModal(false); } else { cronTool->show(); } } void RclMain::showRTITool() { showRTITool(false); } void RclMain::execRTITool() { showRTITool(true); } void RclMain::showRTITool(bool modal) { LOGDEB(("showRTITool()\n")); if (rtiTool == 0) { rtiTool = new RTIToolW(0); connect(new QShortcut(quitKeySeq, rtiTool), SIGNAL (activated()), this, SLOT (fileExit())); } else { // Close and reopen, in hope that makes us visible... rtiTool->close(); } if (modal) { rtiTool->exec(); rtiTool->setModal(false); } else { rtiTool->show(); } } void RclMain::showUIPrefs() { if (uiprefs == 0) { uiprefs = new UIPrefsDialog(this); connect(new QShortcut(quitKeySeq, uiprefs), SIGNAL (activated()), this, SLOT (fileExit())); connect(uiprefs, SIGNAL(uiprefsDone()), this, SLOT(setUIPrefs())); connect(this, SIGNAL(stemLangChanged(const QString&)), uiprefs, SLOT(setStemLang(const QString&))); } else { // Close and reopen, in hope that makes us visible... uiprefs->close(); rwSettings(false); uiprefs->setFromPrefs(); } uiprefs->show(); } void RclMain::showExtIdxDialog() { if (uiprefs == 0) { uiprefs = new UIPrefsDialog(this); connect(new QShortcut(quitKeySeq, uiprefs), SIGNAL (activated()), this, SLOT (fileExit())); connect(uiprefs, SIGNAL(uiprefsDone()), this, SLOT(setUIPrefs())); } else { // Close and reopen, in hope that makes us visible... uiprefs->close(); } uiprefs->tabWidget->setCurrentIndex(3); uiprefs->show(); } void RclMain::showAboutDialog() { string vstring = Rcl::version_string() + string("<br> http://www.recoll.org") + string("<br> http://www.xapian.org"); QMessageBox::information(this, tr("About Recoll"), vstring.c_str()); } void RclMain::showMissingHelpers() { string miss; if (!theconfig->getMissingHelperDesc(miss)) { QMessageBox::information(this, "", tr("Indexing did not run yet")); return; } QString msg = QString::fromUtf8("<p>") + tr("External applications/commands needed for your file types " "and not found, as stored by the last indexing pass in "); msg += "<i>"; msg += QString::fromLocal8Bit(theconfig->getConfDir().c_str()); msg += "/missing</i>:<pre>\n"; if (!miss.empty()) { msg += QString::fromUtf8(miss.c_str()); } else { msg += tr("No helpers found missing"); } msg += "</pre>"; QMessageBox::information(this, tr("Missing helper programs"), msg); } void RclMain::showActiveTypes() { if (rcldb == 0) { QMessageBox::warning(0, tr("Error"), tr("Index not open"), QMessageBox::Ok, QMessageBox::NoButton); return; } // All mime types in index. vector<string> vdbtypes; if (!rcldb->getAllDbMimeTypes(vdbtypes)) { QMessageBox::warning(0, tr("Error"), tr("Index query error"), QMessageBox::Ok, QMessageBox::NoButton); return; } set<string> mtypesfromdb; mtypesfromdb.insert(vdbtypes.begin(), vdbtypes.end()); // All types listed in mimeconf: vector<string> mtypesfromconfig = theconfig->getAllMimeTypes(); // Intersect file system types with config types (those not in the // config can be indexed by name, not by content) set<string> mtypesfromdbconf; for (vector<string>::const_iterator it = mtypesfromconfig.begin(); it != mtypesfromconfig.end(); it++) { if (mtypesfromdb.find(*it) != mtypesfromdb.end()) mtypesfromdbconf.insert(*it); } // Substract the types for missing helpers (the docs are indexed // by name only): string miss; if (theconfig->getMissingHelperDesc(miss) && !miss.empty()) { FIMissingStore st(miss); map<string, set<string> >::const_iterator it; for (it = st.m_typesForMissing.begin(); it != st.m_typesForMissing.end(); it++) { set<string>::const_iterator it1; for (it1 = it->second.begin(); it1 != it->second.end(); it1++) { set<string>::iterator it2 = mtypesfromdbconf.find(*it1); if (it2 != mtypesfromdbconf.end()) mtypesfromdbconf.erase(it2); } } } ListDialog dialog; dialog.setWindowTitle(tr("Indexed MIME Types")); // Turn the result into a string and display dialog.groupBox->setTitle(tr("Content has been indexed for these mime types:")); // We replace the list with an editor so that the user can copy/paste delete dialog.listWidget; QTextEdit *editor = new QTextEdit(dialog.groupBox); editor->setReadOnly(true); dialog.horizontalLayout->addWidget(editor); for (set<string>::const_iterator it = mtypesfromdbconf.begin(); it != mtypesfromdbconf.end(); it++) { editor->append(QString::fromUtf8(it->c_str())); } editor->moveCursor(QTextCursor::Start); editor->ensureCursorVisible(); dialog.exec(); } void RclMain::newDupsW(const Rcl::Doc, const vector<Rcl::Doc> dups) { ListDialog dialog; dialog.setWindowTitle(tr("Duplicate documents")); dialog.groupBox->setTitle(tr("These Urls ( | ipath) share the same" " content:")); // We replace the list with an editor so that the user can copy/paste delete dialog.listWidget; QTextEdit *editor = new QTextEdit(dialog.groupBox); editor->setReadOnly(true); dialog.horizontalLayout->addWidget(editor); for (vector<Rcl::Doc>::const_iterator it = dups.begin(); it != dups.end(); it++) { if (it->ipath.empty()) editor->append(QString::fromLocal8Bit(it->url.c_str())); else editor->append(QString::fromLocal8Bit(it->url.c_str()) + " | " + QString::fromUtf8(it->ipath.c_str())); } editor->moveCursor(QTextCursor::Start); editor->ensureCursorVisible(); dialog.exec(); } void RclMain::showSnippets(Rcl::Doc doc) { SnippetsW *sp = new SnippetsW(doc, m_source); connect(sp, SIGNAL(startNativeViewer(Rcl::Doc, int, QString)), this, SLOT(startNativeViewer(Rcl::Doc, int, QString))); connect(new QShortcut(quitKeySeq, sp), SIGNAL (activated()), this, SLOT (fileExit())); connect(new QShortcut(closeKeySeq, sp), SIGNAL (activated()), sp, SLOT (close())); sp->show(); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/restable.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000072203�12616064173�016032� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <stdlib.h> #include <time.h> #include <algorithm> #include <Qt> #include <QShortcut> #include <QAbstractTableModel> #include <QSettings> #include <QMenu> #include <QScrollBar> #include <QStyledItemDelegate> #include <QTextDocument> #include <QPainter> #include <QSplitter> #include <QFileDialog> #include <QMessageBox> #include "recoll.h" #include "refcntr.h" #include "docseq.h" #include "debuglog.h" #include "restable.h" #include "guiutils.h" #include "reslistpager.h" #include "reslist.h" #include "rclconfig.h" #include "plaintorich.h" #include "indexer.h" #include "respopup.h" #include "rclmain_w.h" #include "multisave.h" #include "appformime.h" static const QKeySequence quitKeySeq("Ctrl+q"); static const QKeySequence closeKeySeq("Ctrl+w"); // Compensate for the default and somewhat bizarre vertical placement // of text in cells static const int ROWHEIGHTPAD = 2; static const int TEXTINCELLVTRANS = -4; ////////////////////////////////////////////////////////////////////////////// // Restable hiliter: to highlight search term in the table. This is actually // the same as reslist's, could be shared. class PlainToRichQtReslist : public PlainToRich { public: virtual ~PlainToRichQtReslist() {} virtual string startMatch(unsigned int) { return string("<span style='color: ") + qs2utf8s(prefs.qtermcolor) + string("'>"); } virtual string endMatch() {return string("</span>");} }; static PlainToRichQtReslist g_hiliter; ////////////////////////////////////////////////////////////////////////// // Restable "pager". We use it to print details for a document in the // detail area /// class ResTablePager : public ResListPager { public: ResTablePager(ResTable *p) : ResListPager(1), m_parent(p) {} virtual bool append(const string& data, int idx, const Rcl::Doc& doc); virtual string trans(const string& in); virtual const string &parFormat(); virtual string absSep() {return (const char *)(prefs.abssep.toUtf8());} virtual string iconUrl(RclConfig *, Rcl::Doc& doc); private: ResTable *m_parent; }; bool ResTablePager::append(const string& data, int, const Rcl::Doc&) { m_parent->m_detail->moveCursor(QTextCursor::End, QTextCursor::MoveAnchor); m_parent->m_detail->textCursor().insertBlock(); m_parent->m_detail->insertHtml(QString::fromUtf8(data.c_str())); return true; } string ResTablePager::trans(const string& in) { return string((const char*)ResList::tr(in.c_str()).toUtf8()); } const string& ResTablePager::parFormat() { return prefs.creslistformat; } string ResTablePager::iconUrl(RclConfig *config, Rcl::Doc& doc) { if (doc.ipath.empty()) { vector<Rcl::Doc> docs; docs.push_back(doc); vector<string> paths; ConfIndexer::docsToPaths(docs, paths); if (!paths.empty()) { string path; if (thumbPathForUrl(cstr_fileu + paths[0], 128, path)) { return cstr_fileu + path; } } } return ResListPager::iconUrl(config, doc); } ///////////////////////////////////////////////////////////////////////////// /// Detail text area methods ResTableDetailArea::ResTableDetailArea(ResTable* parent) : QTextBrowser(parent), m_table(parent) { setContextMenuPolicy(Qt::CustomContextMenu); connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(createPopupMenu(const QPoint&))); } void ResTableDetailArea::createPopupMenu(const QPoint& pos) { if (m_table && m_table->m_model && m_table->m_detaildocnum >= 0) { int opts = m_table->m_ismainres ? ResultPopup::showExpand : 0; opts |= ResultPopup::showSaveOne; QMenu *popup = ResultPopup::create(m_table, opts, m_table->m_model->getDocSource(), m_table->m_detaildoc); popup->popup(mapToGlobal(pos)); } } ////////////////////////////////////////////////////////////////////////////// //// Data model methods //// // Routines used to extract named data from an Rcl::Doc. The basic one // just uses the meta map. Others (ie: the date ones) need to do a // little processing static string gengetter(const string& fld, const Rcl::Doc& doc) { map<string, string>::const_iterator it = doc.meta.find(fld); if (it == doc.meta.end()) { return string(); } return it->second; } static string sizegetter(const string& fld, const Rcl::Doc& doc) { map<string, string>::const_iterator it = doc.meta.find(fld); if (it == doc.meta.end()) { return string(); } off_t size = atoll(it->second.c_str()); return displayableBytes(size) + " (" + it->second + ")"; } static string dategetter(const string&, const Rcl::Doc& doc) { char datebuf[100]; datebuf[0] = 0; if (!doc.dmtime.empty() || !doc.fmtime.empty()) { time_t mtime = doc.dmtime.empty() ? atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str()); struct tm *tm = localtime(&mtime); strftime(datebuf, 99, "%Y-%m-%d", tm); } return datebuf; } static string datetimegetter(const string&, const Rcl::Doc& doc) { char datebuf[100]; datebuf[0] = 0; if (!doc.dmtime.empty() || !doc.fmtime.empty()) { time_t mtime = doc.dmtime.empty() ? atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str()); struct tm *tm = localtime(&mtime); strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S %z", tm); } return datebuf; } // Static map to translate from internal column names to displayable ones map<string, QString> RecollModel::o_displayableFields; FieldGetter *RecollModel::chooseGetter(const string& field) { if (!stringlowercmp("date", field)) return dategetter; else if (!stringlowercmp("datetime", field)) return datetimegetter; else if (!stringlowercmp("bytes", field.substr(1))) return sizegetter; else return gengetter; } string RecollModel::baseField(const string& field) { if (!stringlowercmp("date", field) || !stringlowercmp("datetime", field)) return "mtime"; else return field; } RecollModel::RecollModel(const QStringList fields, QObject *parent) : QAbstractTableModel(parent), m_ignoreSort(false) { // Initialize the translated map for column headers o_displayableFields["abstract"] = tr("Abstract"); o_displayableFields["author"] = tr("Author"); o_displayableFields["dbytes"] = tr("Document size"); o_displayableFields["dmtime"] = tr("Document date"); o_displayableFields["fbytes"] = tr("File size"); o_displayableFields["filename"] = tr("File name"); o_displayableFields["fmtime"] = tr("File date"); o_displayableFields["ipath"] = tr("Ipath"); o_displayableFields["keywords"] = tr("Keywords"); o_displayableFields["mtype"] = tr("MIME type"); o_displayableFields["origcharset"] = tr("Original character set"); o_displayableFields["relevancyrating"] = tr("Relevancy rating"); o_displayableFields["title"] = tr("Title"); o_displayableFields["url"] = tr("URL"); o_displayableFields["mtime"] = tr("Mtime"); o_displayableFields["date"] = tr("Date"); o_displayableFields["datetime"] = tr("Date and time"); // Add dynamic "stored" fields to the full column list. This // could be protected to be done only once, but it's no real // problem if (theconfig) { const set<string>& stored = theconfig->getStoredFields(); for (set<string>::const_iterator it = stored.begin(); it != stored.end(); it++) { if (o_displayableFields.find(*it) == o_displayableFields.end()) { o_displayableFields[*it] = QString::fromUtf8(it->c_str()); } } } // Construct the actual list of column names for (QStringList::const_iterator it = fields.begin(); it != fields.end(); it++) { m_fields.push_back((const char *)(it->toUtf8())); m_getters.push_back(chooseGetter(m_fields.back())); } g_hiliter.set_inputhtml(false); } int RecollModel::rowCount(const QModelIndex&) const { LOGDEB2(("RecollModel::rowCount\n")); if (m_source.isNull()) return 0; return m_source->getResCnt(); } int RecollModel::columnCount(const QModelIndex&) const { LOGDEB2(("RecollModel::columnCount\n")); return m_fields.size(); } void RecollModel::readDocSource() { LOGDEB(("RecollModel::readDocSource()\n")); beginResetModel(); endResetModel(); } void RecollModel::setDocSource(RefCntr<DocSequence> nsource) { LOGDEB(("RecollModel::setDocSource\n")); if (nsource.isNull()) { m_source = RefCntr<DocSequence>(); } else { m_source = RefCntr<DocSequence>(new DocSource(theconfig, nsource)); m_hdata.clear(); m_source->getTerms(m_hdata); } } void RecollModel::deleteColumn(int col) { if (col > 0 && col < int(m_fields.size())) { vector<string>::iterator it = m_fields.begin(); it += col; m_fields.erase(it); vector<FieldGetter*>::iterator it1 = m_getters.begin(); it1 += col; m_getters.erase(it1); readDocSource(); } } void RecollModel::addColumn(int col, const string& field) { LOGDEB(("AddColumn: col %d fld [%s]\n", col, field.c_str())); if (col >= 0 && col < int(m_fields.size())) { col++; vector<string>::iterator it = m_fields.begin(); vector<FieldGetter*>::iterator it1 = m_getters.begin(); if (col) { it += col; it1 += col; } m_fields.insert(it, field); m_getters.insert(it1, chooseGetter(field)); readDocSource(); } } QVariant RecollModel::headerData(int idx, Qt::Orientation orientation, int role) const { LOGDEB2(("RecollModel::headerData: idx %d orientation %s role %d\n", idx, orientation == Qt::Vertical ? "vertical":"horizontal", role)); if (orientation == Qt::Vertical && role == Qt::DisplayRole) { return idx; } if (orientation == Qt::Horizontal && role == Qt::DisplayRole && idx < int(m_fields.size())) { map<string, QString>::const_iterator it = o_displayableFields.find(m_fields[idx]); if (it == o_displayableFields.end()) return QString::fromUtf8(m_fields[idx].c_str()); else return it->second; } return QVariant(); } QVariant RecollModel::data(const QModelIndex& index, int role) const { LOGDEB2(("RecollModel::data: row %d col %d role %d\n", index.row(), index.column(), role)); if (m_source.isNull() || role != Qt::DisplayRole || !index.isValid() || index.column() >= int(m_fields.size())) { return QVariant(); } Rcl::Doc doc; if (!m_source->getDoc(index.row(), doc)) { return QVariant(); } string colname = m_fields[index.column()]; list<string> lr; g_hiliter.plaintorich(m_getters[index.column()](colname, doc), lr, m_hdata); return QString::fromUtf8(lr.front().c_str()); } void RecollModel::saveAsCSV(FILE *fp) { if (m_source.isNull()) return; int cols = columnCount(); int rows = rowCount(); vector<string> tokens; for (int col = 0; col < cols; col++) { QString qs = headerData(col, Qt::Horizontal,Qt::DisplayRole).toString(); tokens.push_back((const char *)qs.toUtf8()); } string csv; stringsToCSV(tokens, csv); fprintf(fp, "%s\n", csv.c_str()); tokens.clear(); for (int row = 0; row < rows; row++) { Rcl::Doc doc; if (!m_source->getDoc(row, doc)) { continue; } for (int col = 0; col < cols; col++) { tokens.push_back(m_getters[col](m_fields[col], doc)); } stringsToCSV(tokens, csv); fprintf(fp, "%s\n", csv.c_str()); tokens.clear(); } } // This gets called when the column headers are clicked void RecollModel::sort(int column, Qt::SortOrder order) { if (m_ignoreSort) return; LOGDEB(("RecollModel::sort(%d, %d)\n", column, int(order))); DocSeqSortSpec spec; if (column >= 0 && column < int(m_fields.size())) { spec.field = m_fields[column]; if (!stringlowercmp("date", spec.field) || !stringlowercmp("datetime", spec.field)) spec.field = "mtime"; spec.desc = order == Qt::AscendingOrder ? false : true; } emit sortDataChanged(spec); } /////////////////////////// // ResTable panel methods // We use a custom delegate to display the cells because the base // tableview's can't handle rich text to highlight the match terms class ResTableDelegate: public QStyledItemDelegate { public: ResTableDelegate(QObject *parent) : QStyledItemDelegate(parent) {} // We might want to optimize by passing the data to the base // method if the text does not contain any term matches. Would // need a modif to plaintorich to return the match count (easy), // and a way to pass an indicator from data(), a bit more // difficult. Anyway, the display seems fast enough as is. void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { QStyleOptionViewItemV4 opt = option; initStyleOption(&opt, index); QVariant value = index.data(Qt::DisplayRole); if (value.isValid() && !value.isNull()) { QString text = value.toString(); if (!text.isEmpty()) { QTextDocument document; painter->save(); if (opt.state & QStyle::State_Selected) { painter->fillRect(opt.rect, opt.palette.highlight()); // Set the foreground color. The pen approach does // not seem to work, probably it's reset by the // textdocument. Couldn't use // setdefaultstylesheet() either. the div thing is // an ugly hack. Works for now #if 0 QPen pen = painter->pen(); pen.setBrush(opt.palette.brush(QPalette::HighlightedText)); painter->setPen(pen); #else text = QString::fromUtf8("<div style='color: white'> ") + text + QString::fromUtf8("</div>"); #endif } painter->setClipRect(option.rect); QPoint where = option.rect.topLeft(); where.ry() += TEXTINCELLVTRANS; painter->translate(where); document.setHtml(text); document.drawContents(painter); painter->restore(); return; } } QStyledItemDelegate::paint(painter, option, index); } }; void ResTable::init() { if (!(m_model = new RecollModel(prefs.restableFields))) return; tableView->setModel(m_model); tableView->setMouseTracking(true); tableView->setSelectionBehavior(QAbstractItemView::SelectRows); tableView->setItemDelegate(new ResTableDelegate(this)); tableView->setContextMenuPolicy(Qt::CustomContextMenu); new QShortcut(QKeySequence("Ctrl+o"), this, SLOT(menuEdit())); new QShortcut(QKeySequence("Ctrl+Shift+o"), this, SLOT(menuEditAndQuit())); new QShortcut(QKeySequence("Ctrl+d"), this, SLOT(menuPreview())); connect(tableView, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(createPopupMenu(const QPoint&))); QHeaderView *header = tableView->horizontalHeader(); if (header) { if (int(prefs.restableColWidths.size()) == header->count()) { for (int i = 0; i < header->count(); i++) { header->resizeSection(i, prefs.restableColWidths[i]); } } header->setSortIndicatorShown(true); header->setSortIndicator(-1, Qt::AscendingOrder); header->setContextMenuPolicy(Qt::CustomContextMenu); header->setStretchLastSection(1); connect(header, SIGNAL(sectionResized(int,int,int)), this, SLOT(saveColState())); connect(header, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(createHeaderPopupMenu(const QPoint&))); } #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) header->setSectionsMovable(true); #else header->setMovable(true); #endif header = tableView->verticalHeader(); if (header) { header->setDefaultSectionSize(QApplication::fontMetrics().height() + ROWHEIGHTPAD); } QKeySequence seq("Esc"); QShortcut *sc = new QShortcut(seq, this); connect(sc, SIGNAL (activated()), tableView->selectionModel(), SLOT (clear())); connect(tableView->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex &)), this, SLOT(onTableView_currentChanged(const QModelIndex&))); connect(tableView, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(onDoubleClick(const QModelIndex&))); m_pager = new ResTablePager(this); QSettings settings; QVariant saved = settings.value("resTableSplitterSizes"); if (saved != QVariant()) { splitter->restoreState(saved.toByteArray()); } else { QList<int> sizes; sizes << 355 << 125; splitter->setSizes(sizes); } delete textBrowser; m_detail = new ResTableDetailArea(this); m_detail->setReadOnly(true); m_detail->setUndoRedoEnabled(false); m_detail->setOpenLinks(false); // signals and slots connections connect(m_detail, SIGNAL(anchorClicked(const QUrl &)), this, SLOT(linkWasClicked(const QUrl &))); splitter->addWidget(m_detail); splitter->setOrientation(Qt::Vertical); } void ResTable::setRclMain(RclMain *m, bool ismain) { m_rclmain = m; m_ismainres = ismain; // We allow single selection only in the main table because this // may have a mix of file-level docs and subdocs and multisave // only works for subdocs if (m_ismainres) tableView->setSelectionMode(QAbstractItemView::SingleSelection); else tableView->setSelectionMode(QAbstractItemView::ExtendedSelection); if (!m_ismainres) { connect(new QShortcut(closeKeySeq, this), SIGNAL (activated()), this, SLOT (close())); connect(new QShortcut(quitKeySeq, this), SIGNAL (activated()), m_rclmain, SLOT (fileExit())); connect(this, SIGNAL(previewRequested(Rcl::Doc)), m_rclmain, SLOT(startPreview(Rcl::Doc))); connect(this, SIGNAL(docSaveToFileClicked(Rcl::Doc)), m_rclmain, SLOT(saveDocToFile(Rcl::Doc))); connect(this, SIGNAL(editRequested(Rcl::Doc)), m_rclmain, SLOT(startNativeViewer(Rcl::Doc))); } } int ResTable::getDetailDocNumOrTopRow() { if (m_detaildocnum >= 0) return m_detaildocnum; QModelIndex modelIndex = tableView->indexAt(QPoint(0, 0)); return modelIndex.row(); } void ResTable::makeRowVisible(int row) { LOGDEB(("ResTable::showRow(%d)\n", row)); QModelIndex modelIndex = m_model->index(row, 0); tableView->scrollTo(modelIndex, QAbstractItemView::PositionAtTop); tableView->selectionModel()->clear(); m_detail->clear(); m_detaildocnum = -1; } // This is called by rclmain_w prior to exiting void ResTable::saveColState() { if (!m_ismainres) return; QSettings settings; settings.setValue("resTableSplitterSizes", splitter->saveState()); QHeaderView *header = tableView->horizontalHeader(); const vector<string>& vf = m_model->getFields(); if (!header) { LOGERR(("ResTable::saveColState: no table header ??\n")); return; } // Remember the current column order. Walk in visual order and // create new list QStringList newfields; vector<int> newwidths; for (int vi = 0; vi < header->count(); vi++) { int li = header->logicalIndex(vi); if (li < 0 || li >= int(vf.size())) { LOGERR(("saveColState: logical index beyond list size!\n")); continue; } newfields.push_back(QString::fromUtf8(vf[li].c_str())); newwidths.push_back(header->sectionSize(li)); } prefs.restableFields = newfields; prefs.restableColWidths = newwidths; } void ResTable::onTableView_currentChanged(const QModelIndex& index) { LOGDEB2(("ResTable::onTableView_currentChanged(%d, %d)\n", index.row(), index.column())); if (!m_model || m_model->getDocSource().isNull()) return; Rcl::Doc doc; if (m_model->getDocSource()->getDoc(index.row(), doc)) { m_detail->clear(); m_detaildocnum = index.row(); m_detaildoc = doc; m_pager->displayDoc(theconfig, index.row(), m_detaildoc, m_model->m_hdata); } else { m_detaildocnum = -1; } } void ResTable::on_tableView_entered(const QModelIndex& index) { LOGDEB2(("ResTable::on_tableView_entered(%d, %d)\n", index.row(), index.column())); if (!tableView->selectionModel()->hasSelection()) onTableView_currentChanged(index); } void ResTable::takeFocus() { // LOGDEB(("resTable: take focus\n")); tableView->setFocus(Qt::ShortcutFocusReason); } void ResTable::setDocSource(RefCntr<DocSequence> nsource) { LOGDEB(("ResTable::setDocSource\n")); if (m_model) m_model->setDocSource(nsource); if (m_pager) m_pager->setDocSource(nsource, 0); if (m_detail) m_detail->clear(); m_detaildocnum = -1; } void ResTable::resetSource() { LOGDEB(("ResTable::resetSource\n")); setDocSource(RefCntr<DocSequence>()); } void ResTable::saveAsCSV() { LOGDEB(("ResTable::saveAsCSV\n")); if (!m_model) return; QString s = QFileDialog::getSaveFileName(this, //parent tr("Save table to CSV file"), QString::fromLocal8Bit(path_home().c_str()) ); if (s.isEmpty()) return; const char *tofile = s.toLocal8Bit(); FILE *fp = fopen(tofile, "w"); if (fp == 0) { QMessageBox::warning(0, "Recoll", tr("Can't open/create file: ") + s); return; } m_model->saveAsCSV(fp); fclose(fp); } // This is called when the sort order is changed from another widget void ResTable::onSortDataChanged(DocSeqSortSpec spec) { LOGDEB(("ResTable::onSortDataChanged: [%s] desc %d\n", spec.field.c_str(), int(spec.desc))); QHeaderView *header = tableView->horizontalHeader(); if (!header || !m_model) return; // Check if the specified field actually matches one of columns // and set indicator m_model->setIgnoreSort(true); bool matched = false; const vector<string> fields = m_model->getFields(); for (unsigned int i = 0; i < fields.size(); i++) { if (!spec.field.compare(m_model->baseField(fields[i]))) { header->setSortIndicator(i, spec.desc ? Qt::DescendingOrder : Qt::AscendingOrder); matched = true; } } if (!matched) header->setSortIndicator(-1, Qt::AscendingOrder); m_model->setIgnoreSort(false); } void ResTable::resetSort() { LOGDEB(("ResTable::resetSort()\n")); QHeaderView *header = tableView->horizontalHeader(); if (header) header->setSortIndicator(-1, Qt::AscendingOrder); // the model's sort slot is not called by qt in this case (qt 4.7) if (m_model) m_model->sort(-1, Qt::AscendingOrder); } void ResTable::readDocSource(bool resetPos) { LOGDEB(("ResTable::readDocSource(%d)\n", int(resetPos))); if (resetPos) tableView->verticalScrollBar()->setSliderPosition(0); m_model->readDocSource(); m_detail->clear(); m_detaildocnum = -1; } void ResTable::linkWasClicked(const QUrl &url) { if (m_detaildocnum < 0) { return; } QString s = url.toString(); const char *ascurl = s.toUtf8(); LOGDEB(("ResTable::linkWasClicked: [%s]\n", ascurl)); int i = atoi(ascurl+1) -1; int what = ascurl[0]; switch (what) { // Open abstract/snippets window case 'A': if (m_detaildocnum >= 0) emit(showSnippets(m_detaildoc)); break; case 'D': { vector<Rcl::Doc> dups; if (m_detaildocnum >= 0 && m_rclmain && m_model->getDocSource()->docDups(m_detaildoc, dups)) { m_rclmain->newDupsW(m_detaildoc, dups); } } // Open parent folder case 'F': { emit editRequested(ResultPopup::getParent(RefCntr<DocSequence>(), m_detaildoc)); } break; case 'P': case 'E': { if (what == 'P') { if (m_ismainres) { emit docPreviewClicked(i, m_detaildoc, 0); } else { emit previewRequested(m_detaildoc); } } else { emit editRequested(m_detaildoc); } } break; // Run script. Link format Rnn|Script Name case 'R': { int bar = s.indexOf("|"); if (bar == -1 || bar >= s.size()-1) break; string cmdname = qs2utf8s(s.right(s.size() - (bar + 1))); DesktopDb ddb(path_cat(theconfig->getConfDir(), "scripts")); DesktopDb::AppDef app; if (ddb.appByName(cmdname, app)) { QAction act(QString::fromUtf8(app.name.c_str()), this); QVariant v(QString::fromUtf8(app.command.c_str())); act.setData(v); menuOpenWith(&act); } } break; default: LOGERR(("ResTable::linkWasClicked: bad link [%s]\n", ascurl)); break;// ?? } } void ResTable::onDoubleClick(const QModelIndex& index) { if (!m_model || m_model->getDocSource().isNull()) return; Rcl::Doc doc; if (m_model->getDocSource()->getDoc(index.row(), doc)) { m_detail->clear(); m_detaildocnum = index.row(); m_detaildoc = doc; if (m_detaildocnum >= 0) emit editRequested(m_detaildoc); } else { m_detaildocnum = -1; } } void ResTable::createPopupMenu(const QPoint& pos) { LOGDEB(("ResTable::createPopupMenu: m_detaildocnum %d\n", m_detaildocnum)); if (m_detaildocnum >= 0 && m_model) { int opts = m_ismainres? ResultPopup::isMain : 0; int selsz = tableView->selectionModel()->selectedRows().size(); if (selsz == 1) { opts |= ResultPopup::showSaveOne; } else if (selsz > 1 && !m_ismainres) { // We don't show save multiple for the main list because not all // docs are necessary subdocs and multisave only works with those. opts |= ResultPopup::showSaveSel; } QMenu *popup = ResultPopup::create(this, opts, m_model->getDocSource(), m_detaildoc); popup->popup(mapToGlobal(pos)); } } void ResTable::menuPreview() { if (m_detaildocnum >= 0) { if (m_ismainres) { emit docPreviewClicked(m_detaildocnum, m_detaildoc, 0); } else { emit previewRequested(m_detaildoc); } } } void ResTable::menuSaveToFile() { if (m_detaildocnum >= 0) emit docSaveToFileClicked(m_detaildoc); } void ResTable::menuSaveSelection() { if (m_model == 0 || m_model->getDocSource().isNull()) return; QModelIndexList indexl = tableView->selectionModel()->selectedRows(); vector<Rcl::Doc> v; for (int i = 0; i < indexl.size(); i++) { Rcl::Doc doc; if (m_model->getDocSource()->getDoc(indexl[i].row(), doc)) v.push_back(doc); } if (v.size() == 0) { return; } else if (v.size() == 1) { emit docSaveToFileClicked(v[0]); } else { multiSave(this, v); } } void ResTable::menuPreviewParent() { if (m_detaildocnum >= 0 && m_model && m_model->getDocSource().isNotNull()) { Rcl::Doc pdoc = ResultPopup::getParent(m_model->getDocSource(), m_detaildoc); if (pdoc.mimetype == "inode/directory") { emit editRequested(pdoc); } else { emit previewRequested(pdoc); } } } void ResTable::menuOpenParent() { if (m_detaildocnum >= 0 && m_model && m_model->getDocSource().isNotNull()) emit editRequested( ResultPopup::getParent(m_model->getDocSource(), m_detaildoc)); } void ResTable::menuEdit() { if (m_detaildocnum >= 0) emit editRequested(m_detaildoc); } void ResTable::menuEditAndQuit() { if (m_detaildocnum >= 0) { emit editRequested(m_detaildoc); m_rclmain->fileExit(); } } void ResTable::menuOpenWith(QAction *act) { if (act == 0) return; string cmd = qs2utf8s(act->data().toString()); if (m_detaildocnum >= 0) emit openWithRequested(m_detaildoc, cmd); } void ResTable::menuCopyFN() { if (m_detaildocnum >= 0) ResultPopup::copyFN(m_detaildoc); } void ResTable::menuCopyURL() { if (m_detaildocnum >= 0) ResultPopup::copyURL(m_detaildoc); } void ResTable::menuExpand() { if (m_detaildocnum >= 0) emit docExpand(m_detaildoc); } void ResTable::menuShowSnippets() { if (m_detaildocnum >= 0) emit showSnippets(m_detaildoc); } void ResTable::menuShowSubDocs() { if (m_detaildocnum >= 0) emit showSubDocs(m_detaildoc); } void ResTable::createHeaderPopupMenu(const QPoint& pos) { LOGDEB(("ResTable::createHeaderPopupMenu(%d, %d)\n", pos.x(), pos.y())); QHeaderView *header = tableView->horizontalHeader(); if (!header || !m_model) return; m_popcolumn = header->logicalIndexAt(pos); if (m_popcolumn < 0) return; const map<string, QString>& allfields = m_model->getAllFields(); const vector<string>& fields = m_model->getFields(); QMenu *popup = new QMenu(this); popup->addAction(tr("&Reset sort"), this, SLOT(resetSort())); popup->addSeparator(); popup->addAction(tr("&Save as CSV"), this, SLOT(saveAsCSV())); popup->addSeparator(); popup->addAction(tr("&Delete column"), this, SLOT(deleteColumn())); popup->addSeparator(); QAction *act; for (map<string, QString>::const_iterator it = allfields.begin(); it != allfields.end(); it++) { if (std::find(fields.begin(), fields.end(), it->first) != fields.end()) continue; act = new QAction(tr("Add \"%1\" column").arg(it->second), popup); act->setData(QString::fromUtf8(it->first.c_str())); connect(act, SIGNAL(triggered(bool)), this , SLOT(addColumn())); popup->addAction(act); } popup->popup(mapToGlobal(pos)); } void ResTable::deleteColumn() { if (m_model) m_model->deleteColumn(m_popcolumn); } void ResTable::addColumn() { if (!m_model) return; QAction *action = (QAction *)sender(); LOGDEB(("addColumn: text %s, data %s\n", qs2utf8s(action->text()).c_str(), qs2utf8s(action->data().toString()).c_str())); m_model->addColumn(m_popcolumn, qs2utf8s(action->data().toString())); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/specialindex.h������������������������������������������������������������������0000644�0001750�0001750�00000003032�12603155721�016334� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SPECIDX_W_H_INCLUDED_ #define _SPECIDX_W_H_INCLUDED_ #include <vector> #include <string> #include "ui_specialindex.h" class QPushButton; class SpecIdxW : public QDialog, public Ui::SpecIdxW { Q_OBJECT public: SpecIdxW(QWidget * parent = 0) : QDialog(parent) { setupUi(this); selPatsLE->setEnabled(false); connect(browsePB, SIGNAL(clicked()), this, SLOT(onBrowsePB_clicked())); connect(targLE, SIGNAL(textChanged(const QString&)), this, SLOT(onTargLE_textChanged(const QString&))); } bool noRetryFailed(); bool eraseFirst(); std::vector<std::string> selpatterns(); std::string toptarg(); public slots: void onTargLE_textChanged(const QString&); void onBrowsePB_clicked(); }; #endif /* _SPECIDX_W_H_INCLUDED_ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/spell_w.h�����������������������������������������������������������������������0000644�0001750�0001750�00000003227�12602163537�015342� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _ASPELL_W_H_INCLUDED_ #define _ASPELL_W_H_INCLUDED_ #include <vector> #include <qvariant.h> #include <qwidget.h> #include "ui_spell.h" class SpellW : public QWidget, public Ui::SpellBase { Q_OBJECT public: SpellW(QWidget* parent = 0) : QWidget(parent) { setupUi(this); init(); } virtual bool eventFilter(QObject *target, QEvent *event ); public slots: virtual void doExpand(); virtual void wordChanged(const QString&); virtual void textDoubleClicked(); virtual void textDoubleClicked(int, int); virtual void modeSet(int); signals: void wordSelect(QString); private: enum comboboxchoice {TYPECMB_WILD, TYPECMB_REG, TYPECMB_STEM, TYPECMB_ASPELL, TYPECMB_STATS}; // combobox index to expansion type std::vector<comboboxchoice> m_c2t; void init(); void copy(); void showStats(); }; #endif /* _ASPELL_W_H_INCLUDED_ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/recoll.pro.in�������������������������������������������������������������������0000644�0001750�0001750�00000006714�12645210463�016135� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������TEMPLATE = app LANGUAGE = C++ @QMAKE_ENABLE_WEBKIT@QT += webkit @QMAKE_DISABLE_WEBKIT@QMAKE_CXXFLAGS += -DRESLIST_TEXTBROWSER -DSNIPPETS_TEXTBROWSER @QMAKE_ENABLE_ZEITGEIST@QT += dbus @QMAKE_ENABLE_ZEITGEIST@QMAKE_CXXFLAGS += -DUSE_ZEITGEIST QT += xml greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webkitwidgets printsupport CONFIG += qt warn_on thread release HEADERS += \ advsearch_w.h \ advshist.h \ confgui/confgui.h \ confgui/confguiindex.h \ crontool.h \ firstidx.h \ fragbuts.h \ idxsched.h \ listdialog.h \ preview_w.h \ ptrans_w.h \ rclhelp.h \ rclmain_w.h \ reslist.h \ restable.h \ rtitool.h \ searchclause_w.h \ snippets_w.h \ specialindex.h \ spell_w.h \ ssearch_w.h \ systray.h \ uiprefs_w.h \ viewaction_w.h \ widgets/editdialog.h \ widgets/listdialog.h \ widgets/qxtconfirmationmessage.h SOURCES += \ advsearch_w.cpp \ advshist.cpp \ confgui/confgui.cpp \ confgui/confguiindex.cpp \ crontool.cpp \ fragbuts.cpp \ guiutils.cpp \ main.cpp \ multisave.cpp \ preview_w.cpp \ ptrans_w.cpp \ rclhelp.cpp \ rclm_idx.cpp \ rclm_preview.cpp \ rclm_saveload.cpp \ rclm_view.cpp \ rclm_wins.cpp \ rclmain_w.cpp \ rclzg.cpp \ reslist.cpp \ respopup.cpp \ restable.cpp \ rtitool.cpp \ searchclause_w.cpp \ snippets_w.cpp \ spell_w.cpp \ ssearch_w.cpp \ systray.cpp \ uiprefs_w.cpp \ viewaction_w.cpp \ widgets/qxtconfirmationmessage.cpp \ xmltosd.cpp FORMS = \ advsearch.ui \ crontool.ui \ widgets/editdialog.ui \ firstidx.ui \ idxsched.ui \ widgets/listdialog.ui \ ptrans.ui \ rclmain.ui \ restable.ui \ rtitool.ui \ specialindex.ui \ spell.ui \ snippets.ui \ ssearchb.ui \ uiprefs.ui \ viewaction.ui \ RESOURCES = recoll.qrc unix { UI_DIR = .ui MOC_DIR = .moc OBJECTS_DIR = .obj # Note: libdir may be substituted with sthing like $(exec_prefix)/lib # at this point and will go as such in the Makefile. Expansion will be # completed at make time. LIBS += $(BSTATIC) -L../lib -lrecoll !macx { LIBS += -Wl,-rpath=@libdir@/recoll } LIBS += @LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \ @LIBICONV@ $(BDYNAMIC) @LIBQZEITGEIST@ -lz INCLUDEPATH += ../common ../index ../internfile ../query ../unac \ ../utils ../aspell ../rcldb ../qtgui \ confgui widgets DEPENDPATH += $$INCLUDEPATH POST_TARGETDEPS = ../lib/librecoll.a } UNAME = $$system(uname -s) contains( UNAME, [lL]inux ) { LIBS += -ldl -lX11 } contains( UNAME, SunOS ) { LIBS += -ldl } macx { ICON = images/recoll.icns } TRANSLATIONS = \ i18n/recoll_cs.ts \ i18n/recoll_da.ts \ i18n/recoll_de.ts \ i18n/recoll_el.ts \ i18n/recoll_es.ts \ i18n/recoll_fr.ts \ i18n/recoll_it.ts \ i18n/recoll_lt.ts \ i18n/recoll_ru.ts \ i18n/recoll_tr.ts \ i18n/recoll_uk.ts \ i18n/recoll_xx.ts \ i18n/recoll_zh_CN.ts \ i18n/recoll_zh.ts \ ����������������������������������������������������recoll-1.21.5/qtgui/ptrans_w.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000007535�12602163537�016073� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <stdio.h> #include <vector> #include <utility> #include <string> using namespace std; #include <qpushbutton.h> #include <qtimer.h> #include <qlistwidget.h> #include <qmessagebox.h> #include <qinputdialog.h> #include <qlayout.h> #include "recoll.h" #include "debuglog.h" #include "guiutils.h" #include "conftree.h" #include "ptrans_w.h" void EditTrans::init(const string& dbdir) { m_dbdir = path_canon(dbdir); connect(transTW, SIGNAL(itemDoubleClicked(QTableWidgetItem *)), this, SLOT(onItemDoubleClicked(QTableWidgetItem *))); connect(cancelPB, SIGNAL(clicked()), this, SLOT(close())); QString lab = whatIdxLA->text(); lab.append(QString::fromLocal8Bit(m_dbdir.c_str())); whatIdxLA->setText(lab); QStringList labels(tr("Source path")); labels.push_back(tr("Local path")); transTW->setHorizontalHeaderLabels(labels); ConfSimple *conftrans = theconfig->getPTrans(); if (!conftrans) return; int row = 0; vector<string> opaths = conftrans->getNames(m_dbdir); for (vector<string>::const_iterator it = opaths.begin(); it != opaths.end(); it++) { transTW->setRowCount(row+1); transTW->setItem(row, 0, new QTableWidgetItem( QString::fromLocal8Bit(it->c_str()))); string npath; conftrans->get(*it, npath, m_dbdir); transTW->setItem(row, 1, new QTableWidgetItem( QString::fromLocal8Bit(npath.c_str()))); row++; } resize(QSize(640, 300).expandedTo(minimumSizeHint())); } void EditTrans::onItemDoubleClicked(QTableWidgetItem *item) { transTW->editItem(item); } void EditTrans::on_savePB_clicked() { ConfSimple *conftrans = theconfig->getPTrans(); if (!conftrans) { QMessageBox::warning(0, "Recoll", tr("Config error")); return; } conftrans->holdWrites(true); conftrans->eraseKey(m_dbdir); for (int row = 0; row < transTW->rowCount(); row++) { QTableWidgetItem *item0 = transTW->item(row, 0); string from = path_canon((const char *)item0->text().toLocal8Bit()); QTableWidgetItem *item1 = transTW->item(row, 1); string to = path_canon((const char*)item1->text().toLocal8Bit()); conftrans->set(from, to, m_dbdir); } conftrans->holdWrites(false); close(); } void EditTrans::on_addPB_clicked() { transTW->setRowCount(transTW->rowCount()+1); int row = transTW->rowCount()-1; transTW->setItem(row, 0, new QTableWidgetItem(tr("Original path"))); transTW->setItem(row, 1, new QTableWidgetItem(tr("Local path"))); transTW->editItem(transTW->item(row, 0)); } void EditTrans::on_delPB_clicked() { QModelIndexList indexes = transTW->selectionModel()->selectedIndexes(); vector<int> rows; for (int i = 0; i < indexes.size(); i++) { rows.push_back(indexes.at(i).row()); } sort(rows.begin(), rows.end()); rows.resize(unique(rows.begin(), rows.end()) - rows.begin()); for (int i = rows.size()-1; i >= 0; i--) { transTW->removeRow(rows[i]); } } void EditTrans::on_transTW_itemSelectionChanged() { QModelIndexList indexes = transTW->selectionModel()->selectedIndexes(); if(indexes.size() < 1) delPB->setEnabled(0); else delPB->setEnabled(1); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/advshist.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000004530�12602163571�016051� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include "advshist.h" #include "guiutils.h" #include "debuglog.h" #include "xmltosd.h" using namespace std; using namespace Rcl; AdvSearchHist::AdvSearchHist() { read(); m_current = -1; } AdvSearchHist::~AdvSearchHist() { for (vector<RefCntr<SearchData> >::iterator it = m_entries.begin(); it != m_entries.end(); it++) { it->release(); } } RefCntr<Rcl::SearchData> AdvSearchHist::getnewest() { if (m_entries.empty()) return RefCntr<Rcl::SearchData>(); return m_entries[0]; } RefCntr<Rcl::SearchData> AdvSearchHist::getolder() { m_current++; if (m_current >= int(m_entries.size())) { m_current--; return RefCntr<Rcl::SearchData>(); } return m_entries[m_current]; } RefCntr<Rcl::SearchData> AdvSearchHist::getnewer() { if (m_current == -1 || m_current == 0 || m_entries.empty()) return RefCntr<Rcl::SearchData>(); return m_entries[--m_current]; } bool AdvSearchHist::push(RefCntr<SearchData> sd) { m_entries.insert(m_entries.begin(), sd); if (m_current != -1) m_current++; string xml = sd->asXML(); g_dynconf->enterString(advSearchHistSk, xml, 100); return true; } bool AdvSearchHist::read() { if (!g_dynconf) return false; list<string> lxml = g_dynconf->getStringList(advSearchHistSk); for (list<string>::const_iterator it = lxml.begin(); it != lxml.end(); it++) { RefCntr<SearchData> sd = xmlToSearchData(*it); if (sd) m_entries.push_back(sd); } return true; } void AdvSearchHist::clear() { g_dynconf->eraseAll(advSearchHistSk); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/widgets/������������������������������������������������������������������������0000755�0001750�0001750�00000000000�12645207740�015170� 5����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/widgets/qxtconfirmationmessage.h������������������������������������������������0000644�0001750�0001750�00000010523�12645207740�022134� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef QXTCONFIRMATIONMESSAGE_H /**************************************************************************** ** Copyright (c) 2006 - 2011, the LibQxt project. ** See the Qxt AUTHORS file for a list of authors and copyright holders. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in the ** documentation and/or other materials provided with the distribution. ** * Neither the name of the LibQxt project nor the ** names of its contributors may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY ** DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** <http://libqxt.org> <foundation@libqxt.org> *****************************************************************************/ #define QXTCONFIRMATIONMESSAGE_H #include <QSettings> #include <QMessageBox> #include "qxtglobal.h" class QxtConfirmationMessagePrivate; class QXT_GUI_EXPORT QxtConfirmationMessage : public QMessageBox { Q_OBJECT QXT_DECLARE_PRIVATE(QxtConfirmationMessage) Q_PROPERTY(QString confirmationText READ confirmationText WRITE setConfirmationText) Q_PROPERTY(QString overrideSettingsApplication READ overrideSettingsApplication WRITE setOverrideSettingsApplication) Q_PROPERTY(QString overrideSettingsKey READ overrideSettingsKey WRITE setOverrideSettingsKey) Q_PROPERTY(QString overrideSettingsOrganization READ overrideSettingsOrganization WRITE setOverrideSettingsOrganization) Q_PROPERTY(bool rememberOnReject READ rememberOnReject WRITE setRememberOnReject) public: explicit QxtConfirmationMessage(QWidget* parent = 0); virtual ~QxtConfirmationMessage(); QxtConfirmationMessage(QMessageBox::Icon icon, const QString& title, const QString& text, const QString& confirmation = QString(), QMessageBox::StandardButtons buttons = QMessageBox::NoButton, QWidget* parent = 0, Qt::WindowFlags flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint); static QMessageBox::StandardButton confirm(QWidget* parent, const QString& title, const QString& text, const QString& confirmation = QString(), QMessageBox::StandardButtons buttons = QMessageBox::Yes | QMessageBox::No, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); QString confirmationText() const; void setConfirmationText(const QString& confirmation); QString overrideSettingsApplication() const; void setOverrideSettingsApplication(const QString& application); QString overrideSettingsKey() const; void setOverrideSettingsKey(const QString& key); QString overrideSettingsOrganization() const; void setOverrideSettingsOrganization(const QString& organization); bool rememberOnReject() const; void setRememberOnReject(bool remember); static QSettings::Format settingsFormat(); static void setSettingsFormat(QSettings::Format format); static QSettings::Scope settingsScope(); static void setSettingsScope(QSettings::Scope scope); static QString settingsPath(); static void setSettingsPath(const QString& path); public Q_SLOTS: int exec(); void reset(); virtual void done(int result); }; #endif // QXTCONFIRMATIONMESSAGE_H �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/widgets/qxtconfirmationmessage.cpp����������������������������������������������0000644�0001750�0001750�00000034041�12645207740�022470� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include "qxtconfirmationmessage.h" /**************************************************************************** ** Copyright (c) 2006 - 2011, the LibQxt project. ** See the Qxt AUTHORS file for a list of authors and copyright holders. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in the ** documentation and/or other materials provided with the distribution. ** * Neither the name of the LibQxt project nor the ** names of its contributors may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY ** DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** <http://libqxt.org> <foundation@libqxt.org> *****************************************************************************/ #include <QCoreApplication> #include <QDialogButtonBox> #include <QPushButton> #include <QGridLayout> #include <QCheckBox> static const QLatin1String DEFAULT_ORGANIZATION("QxtWidgets"); static const QLatin1String DEFAULT_APPLICATION("QxtConfirmationMessage"); class QxtConfirmationMessagePrivate : public QxtPrivate<QxtConfirmationMessage> { public: QXT_DECLARE_PUBLIC(QxtConfirmationMessage) void init(const QString& message = QString()); QString key() const; QString applicationName() const; QString organizationName() const; int showAgain(); void doNotShowAgain(int result); void reset(); bool remember; QCheckBox* confirm; QString overrideApp; QString overrideKey; QString overrideOrg; static QString path; static QSettings::Scope scope; static QSettings::Format format; }; QString QxtConfirmationMessagePrivate::path; QSettings::Scope QxtConfirmationMessagePrivate::scope = QSettings::UserScope; QSettings::Format QxtConfirmationMessagePrivate::format = QSettings::NativeFormat; void QxtConfirmationMessagePrivate::init(const QString& message) { remember = false; confirm = new QCheckBox(&qxt_p()); if (!message.isNull()) confirm->setText(message); else confirm->setText(QxtConfirmationMessage::tr("Do not show again.")); QGridLayout* grid = qobject_cast<QGridLayout*>(qxt_p().layout()); QDialogButtonBox* buttons = qxt_p().findChild<QDialogButtonBox*>(); if (grid && buttons) { const int idx = grid->indexOf(buttons); int row, column, rowSpan, columnSpan = 0; grid->getItemPosition(idx, &row, &column, &rowSpan, &columnSpan); QLayoutItem* buttonsItem = grid->takeAt(idx); grid->addWidget(confirm, row, column, rowSpan, columnSpan, Qt::AlignLeft | Qt::AlignTop); grid->addItem(buttonsItem, ++row, column, rowSpan, columnSpan); } } QString QxtConfirmationMessagePrivate::key() const { QString value = overrideKey; if (value.isEmpty()) { const QString all = qxt_p().windowTitle() + qxt_p().text() + qxt_p().informativeText(); const QByteArray data = all.toLocal8Bit(); value = QString::number(qChecksum(data.constData(), data.length())); } return value; } QString QxtConfirmationMessagePrivate::applicationName() const { QString name = overrideApp; if (name.isEmpty()) name = QCoreApplication::applicationName(); if (name.isEmpty()) name = DEFAULT_APPLICATION; return name; } QString QxtConfirmationMessagePrivate::organizationName() const { QString name = overrideOrg; if (name.isEmpty()) name = QCoreApplication::organizationName(); if (name.isEmpty()) name = DEFAULT_ORGANIZATION; return name; } int QxtConfirmationMessagePrivate::showAgain() { QSettings settings(format, scope, organizationName(), applicationName()); if (!path.isEmpty()) settings.beginGroup(path); return settings.value(key(), -1).toInt(); } void QxtConfirmationMessagePrivate::doNotShowAgain(int result) { QSettings settings(format, scope, organizationName(), applicationName()); if (!path.isEmpty()) settings.beginGroup(path); settings.setValue(key(), result); } void QxtConfirmationMessagePrivate::reset() { QSettings settings(format, scope, organizationName(), applicationName()); if (!path.isEmpty()) settings.beginGroup(path); settings.remove(key()); } /*! \class QxtConfirmationMessage \inmodule QxtWidgets \brief The QxtConfirmationMessage class provides a confirmation message. QxtConfirmationMessage is a confirmation message with checkable \bold {"Do not show again."} option. A checked and accepted confirmation message is no more shown until reseted. Example usage: \code void MainWindow::closeEvent(QCloseEvent* event) { static const QString text(tr("Are you sure you want to quit?")); if (QxtConfirmationMessage::confirm(this, tr("Confirm"), text) == QMessageBox::No) event->ignore(); } \endcode \image qxtconfirmationmessage.png "QxtConfirmationMessage in action." \bold {Note:} QCoreApplication::organizationName and QCoreApplication::applicationName are used for storing settings. In case these properties are empty, \bold "QxtWidgets" and \bold "QxtConfirmationMessage" are used, respectively. */ /*! Constructs a new QxtConfirmationMessage with \a parent. */ QxtConfirmationMessage::QxtConfirmationMessage(QWidget* parent) : QMessageBox(parent) { QXT_INIT_PRIVATE(QxtConfirmationMessage); qxt_d().init(); } /*! Constructs a new QxtConfirmationMessage with \a icon, \a title, \a text, \a confirmation, \a buttons, \a parent and \a flags. */ QxtConfirmationMessage::QxtConfirmationMessage(QMessageBox::Icon icon, const QString& title, const QString& text, const QString& confirmation, QMessageBox::StandardButtons buttons, QWidget* parent, Qt::WindowFlags flags) : QMessageBox(icon, title, text, buttons, parent, flags) { QXT_INIT_PRIVATE(QxtConfirmationMessage); qxt_d().init(confirmation); } /*! Destructs the confirmation message. */ QxtConfirmationMessage::~QxtConfirmationMessage() { } /*! Opens an confirmation message box with the specified \a title, \a text and \a confirmation. The standard \a buttons are added to the message box. \a defaultButton specifies the button used when Enter is pressed. \a defaultButton must refer to a button that was given in \a buttons. If \a defaultButton is QMessageBox::NoButton, QMessageBox chooses a suitable default automatically. Returns the identity of the standard button that was clicked. If Esc was pressed instead, the escape button is returned. If \a parent is \c 0, the message box is an application modal dialog box. If \a parent is a widget, the message box is window modal relative to \a parent. */ QMessageBox::StandardButton QxtConfirmationMessage::confirm(QWidget* parent, const QString& title, const QString& text, const QString& confirmation, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) { QxtConfirmationMessage msgBox(QMessageBox::NoIcon, title, text, confirmation, QMessageBox::NoButton, parent); QDialogButtonBox* buttonBox = msgBox.findChild<QDialogButtonBox*>(); Q_ASSERT(buttonBox != 0); uint mask = QMessageBox::FirstButton; while (mask <= QMessageBox::LastButton) { uint sb = buttons & mask; mask <<= 1; if (!sb) continue; QPushButton* button = msgBox.addButton((QMessageBox::StandardButton)sb); // Choose the first accept role as the default if (msgBox.defaultButton()) continue; if ((defaultButton == QMessageBox::NoButton && buttonBox->buttonRole(button) == QDialogButtonBox::AcceptRole) || (defaultButton != QMessageBox::NoButton && sb == uint(defaultButton))) msgBox.setDefaultButton(button); } if (msgBox.exec() == -1) return QMessageBox::Cancel; return msgBox.standardButton(msgBox.clickedButton()); } /*! \property QxtConfirmationMessage::confirmationText \brief the confirmation text The default value is \bold {"Do not show again."} */ QString QxtConfirmationMessage::confirmationText() const { return qxt_d().confirm->text(); } void QxtConfirmationMessage::setConfirmationText(const QString& confirmation) { qxt_d().confirm->setText(confirmation); } /*! \property QxtConfirmationMessage::overrideSettingsApplication \brief the override application name used for settings QCoreApplication::applicationName is used when no \bold overrideSettingsApplication has been set. The application name falls back to \bold "QxtConfirmationMessage" when no QCoreApplication::applicationName has been set. The default value is an empty string. */ QString QxtConfirmationMessage::overrideSettingsApplication() const { return qxt_d().overrideApp; } void QxtConfirmationMessage::setOverrideSettingsApplication(const QString& application) { qxt_d().overrideApp = application; } /*! \property QxtConfirmationMessage::overrideSettingsKey \brief the override key used for settings When no \bold overrideSettingsKey has been set, the key is calculated with qChecksum() based on title, text and confirmation message. The default value is an empty string. */ QString QxtConfirmationMessage::overrideSettingsKey() const { return qxt_d().overrideKey; } void QxtConfirmationMessage::setOverrideSettingsKey(const QString& key) { qxt_d().overrideKey = key; } /*! \property QxtConfirmationMessage::overrideSettingsOrganization \brief the override organization name used for settings QCoreApplication::organizationName is used when no \bold overrideSettingsOrganization has been set. The organization name falls back to \bold "QxtWidgets" when no QCoreApplication::organizationName has been set. The default value is an empty string. */ QString QxtConfirmationMessage::overrideSettingsOrganization() const { return qxt_d().overrideOrg; } void QxtConfirmationMessage::setOverrideSettingsOrganization(const QString& organization) { qxt_d().overrideOrg = organization; } /*! \property QxtConfirmationMessage::rememberOnReject \brief whether \bold {"Do not show again."} option is stored even if the message box is rejected (eg. user presses Cancel). The default value is \c false. */ bool QxtConfirmationMessage::rememberOnReject() const { return qxt_d().remember; } void QxtConfirmationMessage::setRememberOnReject(bool remember) { qxt_d().remember = remember; } /*! Returns The format used for storing settings. The default value is QSettings::NativeFormat. */ QSettings::Format QxtConfirmationMessage::settingsFormat() { return QxtConfirmationMessagePrivate::format; } /*! Sets the \a format used for storing settings. */ void QxtConfirmationMessage::setSettingsFormat(QSettings::Format format) { QxtConfirmationMessagePrivate::format = format; } /*! Returns The scope used for storing settings. The default value is QSettings::UserScope. */ QSettings::Scope QxtConfirmationMessage::settingsScope() { return QxtConfirmationMessagePrivate::scope; } /*! Sets the \a scope used for storing settings. */ void QxtConfirmationMessage::setSettingsScope(QSettings::Scope scope) { QxtConfirmationMessagePrivate::scope = scope; } /*! Returns the path used for storing settings. The default value is an empty string. */ QString QxtConfirmationMessage::settingsPath() { return QxtConfirmationMessagePrivate::path; } /*! Sets the \a path used for storing settings. */ void QxtConfirmationMessage::setSettingsPath(const QString& path) { QxtConfirmationMessagePrivate::path = path; } /*! Shows the confirmation message if necessary. The confirmation message is not shown in case \bold {"Do not show again."} has been checked while the same confirmation message was earlierly accepted. A confirmation message is identified by the combination of title, QMessageBox::text and optional QMessageBox::informativeText. A clicked button with role QDialogButtonBox::AcceptRole or QDialogButtonBox::YesRole is considered as "accepted". \warning This function does not reimplement but shadows QMessageBox::exec(). \sa QWidget::windowTitle, QMessageBox::text, QMessageBox::informativeText */ int QxtConfirmationMessage::exec() { int res = qxt_d().showAgain(); if (res == -1) res = QMessageBox::exec(); return res; } /*! \reimp */ void QxtConfirmationMessage::done(int result) { QDialogButtonBox* buttons = this->findChild<QDialogButtonBox*>(); Q_ASSERT(buttons != 0); int role = buttons->buttonRole(clickedButton()); if (qxt_d().confirm->isChecked() && (qxt_d().remember || role != QDialogButtonBox::RejectRole)) { qxt_d().doNotShowAgain(result); } QMessageBox::done(result); } /*! Resets this instance of QxtConfirmationMessage. A reseted confirmation message is shown again until user checks \bold {"Do not show again."} and accepts the confirmation message. */ void QxtConfirmationMessage::reset() { qxt_d().reset(); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/widgets/listdialog.h������������������������������������������������������������0000644�0001750�0001750�00000001770�12645207740�017501� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef LISTDIALOG_H #define LISTDIALOG_H #include "ui_listdialog.h" class ListDialog : public QDialog, public Ui::ListDialog { Q_OBJECT public: ListDialog(QWidget * parent = 0) : QDialog(parent) { setupUi(this); } }; #endif // LISTDIALOG_H ��������recoll-1.21.5/qtgui/widgets/editdialog.h������������������������������������������������������������0000644�0001750�0001750�00000002015�12645207740�017444� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef EDITDIALOG_H #define EDITDIALOG_H #include <QDialog> #include "ui_editdialog.h" class EditDialog : public QDialog, public Ui::EditDialog { Q_OBJECT public: EditDialog(QWidget * parent = 0) : QDialog(parent) { setupUi(this); } }; #endif // EDITDIALOG_H �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/widgets/listdialog.ui�����������������������������������������������������������0000644�0001750�0001750�00000003372�12645207740�017667� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>ListDialog</class> <widget class="QDialog" name="ListDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>400</width> <height>300</height> </rect> </property> <property name="windowTitle"> <string>Dialog</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>GroupBox</string> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QListWidget" name="listWidget"/> </item> </layout> </widget> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Ok</set> </property> <property name="centerButtons"> <bool>true</bool> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>ListDialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>248</x> <y>254</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>ListDialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>316</x> <y>260</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui> ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/widgets/qxtglobal.h�������������������������������������������������������������0000644�0001750�0001750�00000015617�12645207740�017350� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� /**************************************************************************** ** Copyright (c) 2006 - 2011, the LibQxt project. ** See the Qxt AUTHORS file for a list of authors and copyright holders. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in the ** documentation and/or other materials provided with the distribution. ** * Neither the name of the LibQxt project nor the ** names of its contributors may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY ** DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** <http://libqxt.org> <foundation@libqxt.org> *****************************************************************************/ #ifndef QXTGLOBAL_H #define QXTGLOBAL_H #include <QtGlobal> #define QXT_VERSION 0x000700 #define QXT_VERSION_STR "0.7.0" //--------------------------global macros------------------------------ #ifndef QXT_NO_MACROS #ifndef _countof #define _countof(x) (sizeof(x)/sizeof(*x)) #endif #endif // QXT_NO_MACROS //--------------------------export macros------------------------------ #define QXT_DLLEXPORT DO_NOT_USE_THIS_ANYMORE #if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN) # if defined(BUILD_QXT_CORE) # define QXT_CORE_EXPORT Q_DECL_EXPORT # else # define QXT_CORE_EXPORT Q_DECL_IMPORT # endif #else # define QXT_CORE_EXPORT #endif // BUILD_QXT_CORE #if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN) # if defined(BUILD_QXT_GUI) # define QXT_GUI_EXPORT Q_DECL_EXPORT # else # define QXT_GUI_EXPORT Q_DECL_IMPORT # endif #else # define QXT_GUI_EXPORT #endif // BUILD_QXT_GUI #if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN) # if defined(BUILD_QXT_NETWORK) # define QXT_NETWORK_EXPORT Q_DECL_EXPORT # else # define QXT_NETWORK_EXPORT Q_DECL_IMPORT # endif #else # define QXT_NETWORK_EXPORT #endif // BUILD_QXT_NETWORK #if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN) # if defined(BUILD_QXT_SQL) # define QXT_SQL_EXPORT Q_DECL_EXPORT # else # define QXT_SQL_EXPORT Q_DECL_IMPORT # endif #else # define QXT_SQL_EXPORT #endif // BUILD_QXT_SQL #if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN) # if defined(BUILD_QXT_WEB) # define QXT_WEB_EXPORT Q_DECL_EXPORT # else # define QXT_WEB_EXPORT Q_DECL_IMPORT # endif #else # define QXT_WEB_EXPORT #endif // BUILD_QXT_WEB #if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN) # if defined(BUILD_QXT_BERKELEY) # define QXT_BERKELEY_EXPORT Q_DECL_EXPORT # else # define QXT_BERKELEY_EXPORT Q_DECL_IMPORT # endif #else # define QXT_BERKELEY_EXPORT #endif // BUILD_QXT_BERKELEY #if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN) # if defined(BUILD_QXT_ZEROCONF) # define QXT_ZEROCONF_EXPORT Q_DECL_EXPORT # else # define QXT_ZEROCONF_EXPORT Q_DECL_IMPORT # endif #else # define QXT_ZEROCONF_EXPORT #endif // QXT_ZEROCONF_EXPORT #if defined(BUILD_QXT_CORE) || defined(BUILD_QXT_GUI) || defined(BUILD_QXT_SQL) || defined(BUILD_QXT_NETWORK) || defined(BUILD_QXT_WEB) || defined(BUILD_QXT_BERKELEY) || defined(BUILD_QXT_ZEROCONF) # define BUILD_QXT #endif QXT_CORE_EXPORT const char* qxtVersion(); #ifndef QT_BEGIN_NAMESPACE #define QT_BEGIN_NAMESPACE #endif #ifndef QT_END_NAMESPACE #define QT_END_NAMESPACE #endif #ifndef QT_FORWARD_DECLARE_CLASS #define QT_FORWARD_DECLARE_CLASS(Class) class Class; #endif /**************************************************************************** ** This file is derived from code bearing the following notice: ** The sole author of this file, Adam Higerd, has explicitly disclaimed all ** copyright interest and protection for the content within. This file has ** been placed in the public domain according to United States copyright ** statute and case law. In jurisdictions where this public domain dedication ** is not legally recognized, anyone who receives a copy of this file is ** permitted to use, modify, duplicate, and redistribute this file, in whole ** or in part, with no restrictions or conditions. In these jurisdictions, ** this file shall be copyright (C) 2006-2008 by Adam Higerd. ****************************************************************************/ #define QXT_DECLARE_PRIVATE(PUB) friend class PUB##Private; QxtPrivateInterface<PUB, PUB##Private> qxt_d; #define QXT_DECLARE_PUBLIC(PUB) friend class PUB; #define QXT_INIT_PRIVATE(PUB) qxt_d.setPublic(this); #define QXT_D(PUB) PUB##Private& d = qxt_d() #define QXT_P(PUB) PUB& p = qxt_p() template <typename PUB> class QxtPrivate { public: virtual ~QxtPrivate() {} inline void QXT_setPublic(PUB* pub) { qxt_p_ptr = pub; } protected: inline PUB& qxt_p() { return *qxt_p_ptr; } inline const PUB& qxt_p() const { return *qxt_p_ptr; } inline PUB* qxt_ptr() { return qxt_p_ptr; } inline const PUB* qxt_ptr() const { return qxt_p_ptr; } private: PUB* qxt_p_ptr; }; template <typename PUB, typename PVT> class QxtPrivateInterface { friend class QxtPrivate<PUB>; public: QxtPrivateInterface() { pvt = new PVT; } ~QxtPrivateInterface() { delete pvt; } inline void setPublic(PUB* pub) { pvt->QXT_setPublic(pub); } inline PVT& operator()() { return *static_cast<PVT*>(pvt); } inline const PVT& operator()() const { return *static_cast<PVT*>(pvt); } inline PVT * operator->() { return static_cast<PVT*>(pvt); } inline const PVT * operator->() const { return static_cast<PVT*>(pvt); } private: QxtPrivateInterface(const QxtPrivateInterface&) { } QxtPrivateInterface& operator=(const QxtPrivateInterface&) { } QxtPrivate<PUB>* pvt; }; #endif // QXT_GLOBAL �����������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/widgets/editdialog.ui�����������������������������������������������������������0000644�0001750�0001750�00000002715�12645207740�017641� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>EditDialog</class> <widget class="QDialog" name="Dialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>614</width> <height>509</height> </rect> </property> <property name="windowTitle"> <string>Dialog</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QPlainTextEdit" name="plainTextEdit"/> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>Dialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>248</x> <y>254</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>Dialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>316</x> <y>260</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui> ���������������������������������������������������recoll-1.21.5/qtgui/viewaction.ui�������������������������������������������������������������������0000644�0001750�0001750�00000013567�12602163537�016243� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>ViewActionBase</class> <widget class="QDialog" name="ViewActionBase"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>635</width> <height>726</height> </rect> </property> <property name="windowTitle"> <string>Native Viewers</string> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <widget class="QLabel" name="textLabel1"> <property name="text"> <string>Select one or several mime types then use the controls in the bottom frame to change how they are processed.</string> </property> <property name="wordWrap"> <bool>false</bool> </property> </widget> </item> <item> <widget class="QCheckBox" name="useDesktopCB"> <property name="text"> <string>Use Desktop preferences by default</string> </property> </widget> </item> <item> <widget class="QTableWidget" name="actionsLV"> <property name="toolTip"> <string>Select one or several file types, then use the controls in the frame below to change how they are processed</string> </property> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Sunken</enum> </property> <property name="editTriggers"> <set>QAbstractItemView::NoEditTriggers</set> </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> <property name="selectionBehavior"> <enum>QAbstractItemView::SelectRows</enum> </property> <property name="showGrid"> <bool>true</bool> </property> <property name="sortingEnabled"> <bool>true</bool> </property> <property name="columnCount"> <number>2</number> </property> <property name="allColumnsShowFocus" stdset="0"> <bool>true</bool> </property> <property name="showSortIndicator" stdset="0"> <bool>true</bool> </property> <attribute name="horizontalHeaderDefaultSectionSize"> <number>150</number> </attribute> <attribute name="horizontalHeaderShowSortIndicator" stdset="0"> <bool>true</bool> </attribute> <attribute name="horizontalHeaderStretchLastSection"> <bool>true</bool> </attribute> <attribute name="verticalHeaderVisible"> <bool>false</bool> </attribute> <column/> <column/> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> <widget class="QLabel" name="label_2"> <property name="text"> <string>Recoll action:</string> </property> </widget> </item> <item> <widget class="QLabel" name="currentLBL"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="frameShape"> <enum>QFrame::Box</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> <property name="text"> <string>current value</string> </property> <property name="textFormat"> <enum>Qt::PlainText</enum> </property> <property name="textInteractionFlags"> <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set> </property> </widget> </item> <item> <widget class="QPushButton" name="selSamePB"> <property name="text"> <string>Select same</string> </property> </widget> </item> </layout> </item> <item> <widget class="QFrame" name="frame"> <property name="frameShape"> <enum>QFrame::Box</enum> </property> <property name="frameShadow"> <enum>QFrame::Plain</enum> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label_new"> <property name="text"> <string><b>New Values:</b></string> </property> </widget> </item> <item> <widget class="QCheckBox" name="setExceptCB"> <property name="text"> <string>Exception to Desktop preferences</string> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QLabel" name="label"> <property name="text"> <string>Action (empty -> recoll default)</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="newActionLE"/> </item> </layout> </item> <item> <widget class="QPushButton" name="chgActPB"> <property name="text"> <string>Apply to current selection</string> </property> </widget> </item> </layout> </item> </layout> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="closePB"> <property name="text"> <string>Close</string> </property> </widget> </item> </layout> </item> </layout> </widget> <layoutdefault spacing="6" margin="11"/> <resources/> <connections/> </ui> �����������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/rclmain_w.cpp�������������������������������������������������������������������0000644�0001750�0001750�00000103535�12603155721�016203� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <fcntl.h> #include <utility> #include <qapplication.h> #include <qmessagebox.h> #include <qfiledialog.h> #include <qshortcut.h> #include <qtabwidget.h> #include <qtimer.h> #include <qstatusbar.h> #include <qwindowdefs.h> #include <qcheckbox.h> #include <qfontdialog.h> #include <qspinbox.h> #include <qcombobox.h> #include <qaction.h> #include <qpushbutton.h> #include <qimage.h> #include <qcursor.h> #include <qevent.h> #include <QFileSystemWatcher> #include <QThread> #include <QProgressDialog> #include <QToolBar> #include "recoll.h" #include "debuglog.h" #include "mimehandler.h" #include "pathut.h" #include "smallut.h" #include "advsearch_w.h" #include "sortseq.h" #include "uiprefs_w.h" #include "guiutils.h" #include "reslist.h" #include "refcntr.h" #include "ssearch_w.h" #include "internfile.h" #include "docseqdb.h" #include "docseqhist.h" #include "docseqdocs.h" #include "restable.h" #include "firstidx.h" #include "indexer.h" #include "rclzg.h" #include "snippets_w.h" #include "fragbuts.h" #include "systray.h" #include "rclmain_w.h" #include "rclhelp.h" #include "moc_rclmain_w.cpp" using std::pair; QString g_stringAllStem, g_stringNoStem; static Qt::ToolBarArea int2area(int in) { switch (in) { case Qt::LeftToolBarArea: return Qt::LeftToolBarArea; case Qt::RightToolBarArea: return Qt::RightToolBarArea; case Qt::BottomToolBarArea: return Qt::BottomToolBarArea; case Qt::TopToolBarArea: default: return Qt::TopToolBarArea; } } static QString configToTitle() { string confdir = path_getsimple(theconfig->getConfDir()); // Lower-case version. This only works with the ascii part, but // that's ok even if there are non-ascii chars in there, because // we further operate only on ascii substrings. string lconfdir = stringtolower((const string&)confdir); if (!lconfdir.empty() && lconfdir[0] == '.') { lconfdir = lconfdir.substr(1); confdir = confdir.substr(1); } string::size_type pos = lconfdir.find("recoll"); if (pos != string::npos) { lconfdir = lconfdir.substr(0, pos) + lconfdir.substr(pos+6); confdir = confdir.substr(0, pos) + confdir.substr(pos+6); } if (!confdir.empty()) { switch (confdir[0]) { case '.': case '-': case '_': confdir = confdir.substr(1); break; default: break; } } if (confdir.empty()) { confdir = "Recoll"; } else { confdir = string("Recoll - ") + confdir; } return QString::fromUtf8(confdir.c_str()); } void RclMain::init() { // This is just to get the common catg strings into the message file static const char* catg_strings[] = { QT_TR_NOOP("All"), QT_TR_NOOP("media"), QT_TR_NOOP("message"), QT_TR_NOOP("other"), QT_TR_NOOP("presentation"), QT_TR_NOOP("spreadsheet"), QT_TR_NOOP("text"), QT_TR_NOOP("sorted"), QT_TR_NOOP("filtered") }; setWindowTitle(configToTitle()); DocSequence::set_translations((const char *)tr("sorted").toUtf8(), (const char *)tr("filtered").toUtf8()); periodictimer = new QTimer(this); // idxstatus file. Make sure it exists before trying to watch it // (case where we're started on an older index, or if the status // file was deleted since indexing ::close(::open(theconfig->getIdxStatusFile().c_str(), O_CREAT, 0600)); m_watcher.addPath(QString::fromLocal8Bit( theconfig->getIdxStatusFile().c_str())); // At least some versions of qt4 don't display the status bar if // it's not created here. (void)statusBar(); (void)new HelpClient(this); HelpClient::installMap((const char *)this->objectName().toUtf8(), "RCL.SEARCH.SIMPLE"); // Set the focus to the search terms entry: sSearch->queryText->setFocus(); // Stemming language menu g_stringNoStem = tr("(no stemming)"); g_stringAllStem = tr("(all languages)"); m_idNoStem = preferencesMenu->addAction(g_stringNoStem); m_idNoStem->setCheckable(true); m_stemLangToId[g_stringNoStem] = m_idNoStem; m_idAllStem = preferencesMenu->addAction(g_stringAllStem); m_idAllStem->setCheckable(true); m_stemLangToId[g_stringAllStem] = m_idAllStem; // Can't get the stemming languages from the db at this stage as // db not open yet (the case where it does not even exist makes // things complicated). So get the languages from the config // instead vector<string> langs; if (!getStemLangs(langs)) { QMessageBox::warning(0, "Recoll", tr("error retrieving stemming languages")); } QAction *curid = prefs.queryStemLang == "ALL" ? m_idAllStem : m_idNoStem; QAction *id; for (vector<string>::const_iterator it = langs.begin(); it != langs.end(); it++) { QString qlang = QString::fromUtf8(it->c_str(), it->length()); id = preferencesMenu->addAction(qlang); id->setCheckable(true); m_stemLangToId[qlang] = id; if (prefs.queryStemLang == qlang) { curid = id; } } curid->setChecked(true); m_toolsTB = new QToolBar(this); m_toolsTB->setObjectName(QString::fromUtf8("m_toolsTB")); m_toolsTB->addAction(toolsAdvanced_SearchAction); m_toolsTB->addAction(toolsDoc_HistoryAction); m_toolsTB->addAction(toolsSpellAction); m_toolsTB->addAction(actionQuery_Fragments); this->addToolBar(int2area(prefs.toolArea), m_toolsTB); m_resTB = new QToolBar(this); m_resTB->setObjectName(QString::fromUtf8("m_resTB")); this->addToolBar(int2area(prefs.resArea), m_resTB); // Document filter buttons and combobox // Combobox version of the document filter control m_filtCMB = new QComboBox(m_resTB); m_filtCMB->setEditable(false); m_filtCMB->addItem(tr("All")); m_filtCMB->setToolTip(tr("Document filter")); // Buttons version of the document filter control m_filtFRM = new QFrame(this); m_filtFRM->setObjectName(QString::fromUtf8("m_filtFRM")); QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Maximum); sizePolicy2.setHorizontalStretch(0); sizePolicy2.setVerticalStretch(0); sizePolicy2.setHeightForWidth(m_filtFRM->sizePolicy().hasHeightForWidth()); m_filtFRM->setSizePolicy(sizePolicy2); QHBoxLayout *bgrphbox = new QHBoxLayout(m_filtFRM); m_filtBGRP = new QButtonGroup(m_filtFRM); QRadioButton *allRDB = new QRadioButton(m_filtFRM); verticalLayout->insertWidget(1, m_filtFRM); allRDB->setObjectName(QString::fromUtf8("allRDB")); allRDB->setGeometry(QRect(0, 0, 45, 20)); allRDB->setText(tr("All")); bgrphbox->addWidget(allRDB); int bgrpid = 0; m_filtBGRP->addButton(allRDB, bgrpid++); allRDB->setChecked(true); // Menu version of the document filter control m_filtMN = new QMenu(MenuBar); m_filtMN->setObjectName(QString::fromUtf8("m_filtMN")); MenuBar->insertMenu(helpMenu->menuAction(), m_filtMN); m_filtMN->setTitle("F&ilter"); QActionGroup *fltag = new QActionGroup(this); fltag->setExclusive(true); QAction *act = fltag->addAction(tr("All")); m_filtMN->addAction(act); act->setCheckable(true); act->setData((int)0); // Go through the filter list and setup buttons and combobox vector<string> cats; theconfig->getGuiFilterNames(cats); m_catgbutvec.push_back(catg_strings[0]); for (vector<string>::const_iterator it = cats.begin(); it != cats.end(); it++) { QRadioButton *but = new QRadioButton(m_filtFRM); QString catgnm = QString::fromUtf8(it->c_str(), it->length()); m_catgbutvec.push_back(*it); // We strip text before the first colon before setting the button name. // This is so that the user can decide the order of buttons by naming // the filter,ie, a:media b:messages etc. QString but_txt = catgnm; int colon = catgnm.indexOf(':'); if (colon != -1) { but_txt = catgnm.right(catgnm.size()-(colon+1)); } but->setText(tr(but_txt.toUtf8())); m_filtCMB->addItem(tr(but_txt.toUtf8())); bgrphbox->addWidget(but); m_filtBGRP->addButton(but, bgrpid++); QAction *act = fltag->addAction(tr(but_txt.toUtf8())); m_filtMN->addAction(act); act->setCheckable(true); act->setData((int)(m_catgbutvec.size()-1)); m_filtMN->connect(m_filtMN, SIGNAL(triggered(QAction *)), this, SLOT(catgFilter(QAction *))); } m_filtFRM->setLayout(bgrphbox); connect(m_filtBGRP, SIGNAL(buttonClicked(int)),this, SLOT(catgFilter(int))); connect(m_filtCMB, SIGNAL(activated(int)), this, SLOT(catgFilter(int))); restable = new ResTable(this); verticalLayout->insertWidget(2, restable); actionShowResultsAsTable->setChecked(prefs.showResultsAsTable); on_actionShowResultsAsTable_toggled(prefs.showResultsAsTable); // Must not do this when restable is a child of rclmain // sc = new QShortcut(quitKeySeq, restable); // connect(sc, SIGNAL (activated()), this, SLOT (fileExit())); // A shortcut to get the focus back to the search entry. QKeySequence seq("Ctrl+Shift+s"); QShortcut *sc = new QShortcut(seq, this); connect(sc, SIGNAL (activated()), sSearch, SLOT (takeFocus())); QKeySequence seql("Ctrl+l"); sc = new QShortcut(seql, this); connect(sc, SIGNAL (activated()), sSearch, SLOT (takeFocus())); connect(&m_watcher, SIGNAL(fileChanged(QString)), this, SLOT(idxStatus())); connect(sSearch, SIGNAL(startSearch(RefCntr<Rcl::SearchData>, bool)), this, SLOT(startSearch(RefCntr<Rcl::SearchData>, bool))); connect(sSearch, SIGNAL(clearSearch()), this, SLOT(resetSearch())); connect(preferencesMenu, SIGNAL(triggered(QAction*)), this, SLOT(setStemLang(QAction*))); connect(preferencesMenu, SIGNAL(aboutToShow()), this, SLOT(adjustPrefsMenu())); connect(fileExitAction, SIGNAL(triggered() ), this, SLOT(fileExit() ) ); connect(fileToggleIndexingAction, SIGNAL(triggered()), this, SLOT(toggleIndexing())); connect(fileRebuildIndexAction, SIGNAL(triggered()), this, SLOT(rebuildIndex())); connect(fileEraseDocHistoryAction, SIGNAL(triggered()), this, SLOT(eraseDocHistory())); connect(fileEraseSearchHistoryAction, SIGNAL(triggered()), this, SLOT(eraseSearchHistory())); connect(actionSave_last_query, SIGNAL(triggered()), this, SLOT(saveLastQuery())); connect(actionLoad_saved_query, SIGNAL(triggered()), this, SLOT(loadSavedQuery())); connect(helpAbout_RecollAction, SIGNAL(triggered()), this, SLOT(showAboutDialog())); connect(showMissingHelpers_Action, SIGNAL(triggered()), this, SLOT(showMissingHelpers())); connect(showActiveTypes_Action, SIGNAL(triggered()), this, SLOT(showActiveTypes())); connect(userManualAction, SIGNAL(triggered()), this, SLOT(startManual())); connect(toolsDoc_HistoryAction, SIGNAL(triggered()), this, SLOT(showDocHistory())); connect(toolsAdvanced_SearchAction, SIGNAL(triggered()), this, SLOT(showAdvSearchDialog())); connect(toolsSpellAction, SIGNAL(triggered()), this, SLOT(showSpellDialog())); connect(actionQuery_Fragments, SIGNAL(triggered()), this, SLOT(showFragButs())); connect(actionSpecial_Indexing, SIGNAL(triggered()), this, SLOT(showSpecIdx())); connect(indexConfigAction, SIGNAL(triggered()), this, SLOT(showIndexConfig())); connect(indexScheduleAction, SIGNAL(triggered()), this, SLOT(showIndexSched())); connect(queryPrefsAction, SIGNAL(triggered()), this, SLOT(showUIPrefs())); connect(extIdxAction, SIGNAL(triggered()), this, SLOT(showExtIdxDialog())); connect(toggleFullScreenAction, SIGNAL(triggered()), this, SLOT(toggleFullScreen())); connect(actionShowQueryDetails, SIGNAL(triggered()), reslist, SLOT(showQueryDetails())); connect(periodictimer, SIGNAL(timeout()), this, SLOT(periodic100())); restable->setRclMain(this, true); connect(actionSaveResultsAsCSV, SIGNAL(triggered()), restable, SLOT(saveAsCSV())); connect(this, SIGNAL(docSourceChanged(RefCntr<DocSequence>)), restable, SLOT(setDocSource(RefCntr<DocSequence>))); connect(this, SIGNAL(searchReset()), restable, SLOT(resetSource())); connect(this, SIGNAL(resultsReady()), restable, SLOT(readDocSource())); connect(this, SIGNAL(sortDataChanged(DocSeqSortSpec)), restable, SLOT(onSortDataChanged(DocSeqSortSpec))); connect(restable->getModel(), SIGNAL(sortDataChanged(DocSeqSortSpec)), this, SLOT(onSortDataChanged(DocSeqSortSpec))); connect(restable, SIGNAL(docPreviewClicked(int, Rcl::Doc, int)), this, SLOT(startPreview(int, Rcl::Doc, int))); connect(restable, SIGNAL(docExpand(Rcl::Doc)), this, SLOT(docExpand(Rcl::Doc))); connect(restable, SIGNAL(showSubDocs(Rcl::Doc)), this, SLOT(showSubDocs(Rcl::Doc))); connect(restable, SIGNAL(previewRequested(Rcl::Doc)), this, SLOT(startPreview(Rcl::Doc))); connect(restable, SIGNAL(editRequested(Rcl::Doc)), this, SLOT(startNativeViewer(Rcl::Doc))); connect(restable, SIGNAL(openWithRequested(Rcl::Doc, string)), this, SLOT(openWith(Rcl::Doc, string))); connect(restable, SIGNAL(docSaveToFileClicked(Rcl::Doc)), this, SLOT(saveDocToFile(Rcl::Doc))); connect(restable, SIGNAL(showSnippets(Rcl::Doc)), this, SLOT(showSnippets(Rcl::Doc))); reslist->setRclMain(this, true); connect(this, SIGNAL(docSourceChanged(RefCntr<DocSequence>)), reslist, SLOT(setDocSource(RefCntr<DocSequence>))); connect(firstPageAction, SIGNAL(triggered()), reslist, SLOT(resultPageFirst())); connect(prevPageAction, SIGNAL(triggered()), reslist, SLOT(resPageUpOrBack())); connect(nextPageAction, SIGNAL(triggered()), reslist, SLOT(resPageDownOrNext())); connect(this, SIGNAL(searchReset()), reslist, SLOT(resetList())); connect(this, SIGNAL(resultsReady()), reslist, SLOT(readDocSource())); connect(reslist, SIGNAL(hasResults(int)), this, SLOT(resultCount(int))); connect(reslist, SIGNAL(wordSelect(QString)), sSearch, SLOT(addTerm(QString))); connect(reslist, SIGNAL(wordReplace(const QString&, const QString&)), sSearch, SLOT(onWordReplace(const QString&, const QString&))); connect(reslist, SIGNAL(nextPageAvailable(bool)), this, SLOT(enableNextPage(bool))); connect(reslist, SIGNAL(prevPageAvailable(bool)), this, SLOT(enablePrevPage(bool))); connect(reslist, SIGNAL(docExpand(Rcl::Doc)), this, SLOT(docExpand(Rcl::Doc))); connect(reslist, SIGNAL(showSnippets(Rcl::Doc)), this, SLOT(showSnippets(Rcl::Doc))); connect(reslist, SIGNAL(showSubDocs(Rcl::Doc)), this, SLOT(showSubDocs(Rcl::Doc))); connect(reslist, SIGNAL(docSaveToFileClicked(Rcl::Doc)), this, SLOT(saveDocToFile(Rcl::Doc))); connect(reslist, SIGNAL(editRequested(Rcl::Doc)), this, SLOT(startNativeViewer(Rcl::Doc))); connect(reslist, SIGNAL(openWithRequested(Rcl::Doc, string)), this, SLOT(openWith(Rcl::Doc, string))); connect(reslist, SIGNAL(docPreviewClicked(int, Rcl::Doc, int)), this, SLOT(startPreview(int, Rcl::Doc, int))); connect(reslist, SIGNAL(previewRequested(Rcl::Doc)), this, SLOT(startPreview(Rcl::Doc))); setFilterCtlStyle(prefs.filterCtlStyle); if (prefs.keepSort && prefs.sortActive) { m_sortspec.field = (const char *)prefs.sortField.toUtf8(); m_sortspec.desc = prefs.sortDesc; onSortDataChanged(m_sortspec); emit sortDataChanged(m_sortspec); } if (prefs.showTrayIcon && QSystemTrayIcon::isSystemTrayAvailable()) { m_trayicon = new RclTrayIcon(this, QIcon(QString(":/images/recoll.png"))); m_trayicon->show(); } else { m_trayicon = 0; } fileRebuildIndexAction->setEnabled(false); fileToggleIndexingAction->setEnabled(false); fileRetryFailedAction->setEnabled(false); // Start timer on a slow period (used for checking ^C). Will be // speeded up during indexing periodictimer->start(1000); } void RclMain::resultCount(int n) { actionSortByDateAsc->setEnabled(n>0); actionSortByDateDesc->setEnabled(n>0); } void RclMain::setFilterCtlStyle(int stl) { switch (stl) { case PrefsPack::FCS_MN: setupResTB(false); m_filtFRM->setVisible(false); m_filtMN->menuAction()->setVisible(true); break; case PrefsPack::FCS_CMB: setupResTB(true); m_filtFRM->setVisible(false); m_filtMN->menuAction()->setVisible(false); break; case PrefsPack::FCS_BT: default: setupResTB(false); m_filtFRM->setVisible(true); m_filtMN->menuAction()->setVisible(false); } } // Set up the "results" toolbox, adding the filter combobox or not depending // on config option void RclMain::setupResTB(bool combo) { m_resTB->clear(); m_resTB->addAction(firstPageAction); m_resTB->addAction(prevPageAction); m_resTB->addAction(nextPageAction); m_resTB->addSeparator(); m_resTB->addAction(actionSortByDateAsc); m_resTB->addAction(actionSortByDateDesc); if (combo) { m_resTB->addSeparator(); m_filtCMB->show(); m_resTB->addWidget(m_filtCMB); } else { m_filtCMB->hide(); } m_resTB->addSeparator(); m_resTB->addAction(actionShowResultsAsTable); } // This is called by a timer right after we come up. Try to open // the database and talk to the user if we can't void RclMain::initDbOpen() { bool nodb = false; string reason; bool maindberror; if (!maybeOpenDb(reason, true, &maindberror)) { nodb = true; if (maindberror) { FirstIdxDialog fidia(this); connect(fidia.idxconfCLB, SIGNAL(clicked()), this, SLOT(execIndexConfig())); connect(fidia.idxschedCLB, SIGNAL(clicked()), this, SLOT(execIndexSched())); connect(fidia.runidxPB, SIGNAL(clicked()), this, SLOT(toggleIndexing())); fidia.exec(); // Don't open adv search or run cmd line search in this case. return; } else { QMessageBox::warning(0, "Recoll", tr("Could not open external index. Db not open. Check external indexes list.")); } } if (prefs.startWithAdvSearchOpen) showAdvSearchDialog(); // If we have something in the search entry, it comes from a // command line argument if (!nodb && sSearch->hasSearchString()) QTimer::singleShot(0, sSearch, SLOT(startSimpleSearch())); if (!m_urltoview.isEmpty()) viewUrl(); } void RclMain::setStemLang(QAction *id) { LOGDEB(("RclMain::setStemLang(%p)\n", id)); // Check that the menu entry is for a stemming language change // (might also be "show prefs" etc. bool isLangId = false; for (map<QString, QAction*>::const_iterator it = m_stemLangToId.begin(); it != m_stemLangToId.end(); it++) { if (id == it->second) isLangId = true; } if (!isLangId) return; // Set the "checked" item state for lang entries for (map<QString, QAction*>::const_iterator it = m_stemLangToId.begin(); it != m_stemLangToId.end(); it++) { (it->second)->setChecked(false); } id->setChecked(true); // Retrieve language value (also handle special cases), set prefs, // notify that we changed QString lang; if (id == m_idNoStem) { lang = ""; } else if (id == m_idAllStem) { lang = "ALL"; } else { lang = id->text(); } prefs.queryStemLang = lang; LOGDEB(("RclMain::setStemLang(%d): lang [%s]\n", id, (const char *)prefs.queryStemLang.toUtf8())); rwSettings(true); emit stemLangChanged(lang); } // Set the checked stemming language item before showing the prefs menu void RclMain::setStemLang(const QString& lang) { LOGDEB(("RclMain::setStemLang(%s)\n", (const char *)lang.toUtf8())); QAction *id; if (lang == "") { id = m_idNoStem; } else if (lang == "ALL") { id = m_idAllStem; } else { map<QString, QAction*>::iterator it = m_stemLangToId.find(lang); if (it == m_stemLangToId.end()) return; id = it->second; } for (map<QString, QAction*>::const_iterator it = m_stemLangToId.begin(); it != m_stemLangToId.end(); it++) { (it->second)->setChecked(false); } id->setChecked(true); } // Prefs menu about to show void RclMain::adjustPrefsMenu() { setStemLang(prefs.queryStemLang); } void RclMain::showTrayMessage(const QString& text) { if (m_trayicon) m_trayicon->showMessage("Recoll", text, QSystemTrayIcon::Information, 1000); } void RclMain::closeEvent(QCloseEvent *ev) { LOGDEB(("RclMain::closeEvent\n")); if (prefs.closeToTray && m_trayicon && m_trayicon->isVisible()) { hide(); ev->ignore(); } else { fileExit(); } } void RclMain::fileExit() { LOGDEB(("RclMain: fileExit\n")); // Don't save geometry if we're currently fullscreened if (!isFullScreen()) { prefs.mainwidth = width(); prefs.mainheight = height(); } prefs.toolArea = toolBarArea(m_toolsTB); prefs.resArea = toolBarArea(m_resTB); restable->saveColState(); if (prefs.ssearchTypSav) { prefs.ssearchTyp = sSearch->searchTypCMB->currentIndex(); } if (asearchform) delete asearchform; rwSettings(true); // Let the exit handler clean up the rest (internal recoll stuff). exit(0); } // Start a db query and set the reslist docsource void RclMain::startSearch(RefCntr<Rcl::SearchData> sdata, bool issimple) { LOGDEB(("RclMain::startSearch. Indexing %s Active %d\n", m_idxproc?"on":"off", m_queryActive)); if (m_queryActive) { LOGDEB(("startSearch: already active\n")); return; } m_queryActive = true; restable->setEnabled(false); m_source = RefCntr<DocSequence>(); m_searchIsSimple = issimple; // The db may have been closed at the end of indexing string reason; // If indexing is being performed, we reopen the db at each query. if (!maybeOpenDb(reason, m_idxproc != 0)) { QMessageBox::critical(0, "Recoll", QString(reason.c_str())); m_queryActive = false; restable->setEnabled(true); return; } Rcl::Query *query = new Rcl::Query(rcldb); query->setCollapseDuplicates(prefs.collapseDuplicates); curPreview = 0; DocSequenceDb *src = new DocSequenceDb(RefCntr<Rcl::Query>(query), string(tr("Query results").toUtf8()), sdata); src->setAbstractParams(prefs.queryBuildAbstract, prefs.queryReplaceAbstract); m_source = RefCntr<DocSequence>(src); m_source->setSortSpec(m_sortspec); m_source->setFiltSpec(m_filtspec); emit docSourceChanged(m_source); emit sortDataChanged(m_sortspec); initiateQuery(); } class QueryThread : public QThread { int loglevel; RefCntr<DocSequence> m_source; public: QueryThread(RefCntr<DocSequence> source) : m_source(source) { loglevel = DebugLog::getdbl()->getlevel(); } ~QueryThread() { } virtual void run() { DebugLog::getdbl()->setloglevel(loglevel); cnt = m_source->getResCnt(); } int cnt; }; void RclMain::initiateQuery() { if (m_source.isNull()) return; QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); QueryThread qthr(m_source); qthr.start(); QProgressDialog progress(this); progress.setLabelText(tr("Query in progress.<br>" "Due to limitations of the indexing library,<br>" "cancelling will exit the program")); progress.setWindowModality(Qt::WindowModal); progress.setRange(0,0); // For some reason setMinimumDuration() does not seem to work with // a busy dialog (range 0,0) Have to call progress.show() inside // the loop. // progress.setMinimumDuration(2000); // Also the multiple processEvents() seem to improve the responsiveness?? for (int i = 0;;i++) { qApp->processEvents(); if (qthr.wait(100)) { break; } if (i == 20) progress.show(); qApp->processEvents(); if (progress.wasCanceled()) { // Just get out of there asap. _exit(1); } qApp->processEvents(); } int cnt = qthr.cnt; QString msg; if (cnt > 0) { QString str; msg = tr("Result count (est.)") + ": " + str.setNum(cnt); } else { msg = tr("No results found"); } statusBar()->showMessage(msg, 0); QApplication::restoreOverrideCursor(); m_queryActive = false; restable->setEnabled(true); emit(resultsReady()); } void RclMain::resetSearch() { emit searchReset(); } void RclMain::onSortCtlChanged() { if (m_sortspecnochange) return; LOGDEB(("RclMain::onSortCtlChanged()\n")); m_sortspec.reset(); if (actionSortByDateAsc->isChecked()) { m_sortspec.field = "mtime"; m_sortspec.desc = false; prefs.sortActive = true; prefs.sortDesc = false; prefs.sortField = "mtime"; } else if (actionSortByDateDesc->isChecked()) { m_sortspec.field = "mtime"; m_sortspec.desc = true; prefs.sortActive = true; prefs.sortDesc = true; prefs.sortField = "mtime"; } else { prefs.sortActive = prefs.sortDesc = false; prefs.sortField = ""; } if (m_source.isNotNull()) m_source->setSortSpec(m_sortspec); emit sortDataChanged(m_sortspec); initiateQuery(); } void RclMain::onSortDataChanged(DocSeqSortSpec spec) { LOGDEB(("RclMain::onSortDataChanged\n")); m_sortspecnochange = true; if (spec.field.compare("mtime")) { actionSortByDateDesc->setChecked(false); actionSortByDateAsc->setChecked(false); } else { actionSortByDateDesc->setChecked(spec.desc); actionSortByDateAsc->setChecked(!spec.desc); } m_sortspecnochange = false; if (m_source.isNotNull()) m_source->setSortSpec(spec); m_sortspec = spec; prefs.sortField = QString::fromUtf8(spec.field.c_str()); prefs.sortDesc = spec.desc; prefs.sortActive = !spec.field.empty(); initiateQuery(); } void RclMain::on_actionShowResultsAsTable_toggled(bool on) { LOGDEB(("RclMain::on_actionShowResultsAsTable_toggled(%d)\n", int(on))); prefs.showResultsAsTable = on; displayingTable = on; restable->setVisible(on); reslist->setVisible(!on); actionSaveResultsAsCSV->setEnabled(on); static QShortcut tablefocseq(QKeySequence("Ctrl+r"), this); if (!on) { int docnum = restable->getDetailDocNumOrTopRow(); if (docnum >= 0) reslist->resultPageFor(docnum); disconnect(&tablefocseq, SIGNAL(activated()), restable, SLOT(takeFocus())); sSearch->takeFocus(); } else { int docnum = reslist->pageFirstDocNum(); if (docnum >= 0) { restable->makeRowVisible(docnum); } nextPageAction->setEnabled(false); prevPageAction->setEnabled(false); firstPageAction->setEnabled(false); connect(&tablefocseq, SIGNAL(activated()), restable, SLOT(takeFocus())); } } void RclMain::on_actionSortByDateAsc_toggled(bool on) { LOGDEB(("RclMain::on_actionSortByDateAsc_toggled(%d)\n", int(on))); if (on) { if (actionSortByDateDesc->isChecked()) { actionSortByDateDesc->setChecked(false); // Let our buddy work. return; } } onSortCtlChanged(); } void RclMain::on_actionSortByDateDesc_toggled(bool on) { LOGDEB(("RclMain::on_actionSortByDateDesc_toggled(%d)\n", int(on))); if (on) { if (actionSortByDateAsc->isChecked()) { actionSortByDateAsc->setChecked(false); // Let our buddy work. return; } } onSortCtlChanged(); } void RclMain::saveDocToFile(Rcl::Doc doc) { QString s = QFileDialog::getSaveFileName(this, //parent tr("Save file"), QString::fromLocal8Bit(path_home().c_str()) ); string tofile((const char *)s.toLocal8Bit()); TempFile temp; // not used because tofile is set. if (!FileInterner::idocToFile(temp, tofile, theconfig, doc)) { QMessageBox::warning(0, "Recoll", tr("Cannot extract document or create " "temporary file")); return; } } void RclMain::showSubDocs(Rcl::Doc doc) { LOGDEB(("RclMain::showSubDocs\n")); string reason; if (!maybeOpenDb(reason)) { QMessageBox::critical(0, "Recoll", QString(reason.c_str())); return; } vector<Rcl::Doc> docs; if (!rcldb->getSubDocs(doc, docs)) { QMessageBox::warning(0, "Recoll", QString("Can't get subdocs")); return; } DocSequenceDocs *src = new DocSequenceDocs(rcldb, docs, qs2utf8s(tr("Sub-documents and attachments"))); src->setDescription(qs2utf8s(tr("Sub-documents and attachments"))); RefCntr<DocSequence> source(new DocSource(theconfig, RefCntr<DocSequence>(src))); ResTable *res = new ResTable(); res->setRclMain(this, false); res->setDocSource(source); res->readDocSource(); res->show(); } // Search for document 'like' the selected one. We ask rcldb/xapian to find // significant terms, and add them to the simple search entry. void RclMain::docExpand(Rcl::Doc doc) { LOGDEB(("RclMain::docExpand()\n")); if (!rcldb) return; list<string> terms; terms = m_source->expand(doc); if (terms.empty()) { LOGDEB(("RclMain::docExpand: no terms\n")); return; } // Do we keep the original query. I think we'd better not. // rcldb->expand is set to keep the original query terms instead. QString text;// = sSearch->queryText->currentText(); for (list<string>::iterator it = terms.begin(); it != terms.end(); it++) { text += QString::fromLatin1(" \"") + QString::fromUtf8((*it).c_str()) + QString::fromLatin1("\""); } // We need to insert item here, its not auto-done like when the user types // CR sSearch->queryText->setEditText(text); sSearch->setAnyTermMode(); sSearch->startSimpleSearch(); } void RclMain::showDocHistory() { LOGDEB(("RclMain::showDocHistory\n")); emit searchReset(); m_source = RefCntr<DocSequence>(); curPreview = 0; string reason; if (!maybeOpenDb(reason)) { QMessageBox::critical(0, "Recoll", QString(reason.c_str())); return; } // Construct a bogus SearchData structure RefCntr<Rcl::SearchData>searchdata = RefCntr<Rcl::SearchData>(new Rcl::SearchData(Rcl::SCLT_AND, cstr_null)); searchdata->setDescription((const char *)tr("History data").toUtf8()); // If you change the title, also change it in eraseDocHistory() DocSequenceHistory *src = new DocSequenceHistory(rcldb, g_dynconf, string(tr("Document history").toUtf8())); src->setDescription((const char *)tr("History data").toUtf8()); DocSource *source = new DocSource(theconfig, RefCntr<DocSequence>(src)); m_source = RefCntr<DocSequence>(source); m_source->setSortSpec(m_sortspec); m_source->setFiltSpec(m_filtspec); emit docSourceChanged(m_source); emit sortDataChanged(m_sortspec); initiateQuery(); } // Erase all memory of documents viewed void RclMain::eraseDocHistory() { // Clear file storage if (g_dynconf) g_dynconf->eraseAll(docHistSubKey); // Clear possibly displayed history if (reslist->displayingHistory()) { showDocHistory(); } } void RclMain::eraseSearchHistory() { prefs.ssearchHistory.clear(); if (sSearch) sSearch->queryText->clear(); if (g_advshistory) g_advshistory->clear(); } // Called when the uiprefs dialog is ok'd void RclMain::setUIPrefs() { if (!uiprefs) return; LOGDEB(("Recollmain::setUIPrefs\n")); reslist->setFont(); sSearch->setPrefs(); } void RclMain::enableNextPage(bool yesno) { if (!displayingTable) nextPageAction->setEnabled(yesno); } void RclMain::enablePrevPage(bool yesno) { if (!displayingTable) { prevPageAction->setEnabled(yesno); firstPageAction->setEnabled(yesno); } } QString RclMain::getQueryDescription() { if (m_source.isNull()) return ""; return QString::fromUtf8(m_source->getDescription().c_str()); } // Set filter, action style void RclMain::catgFilter(QAction *act) { int id = act->data().toInt(); catgFilter(id); } // User pressed a filter button: set filter params in reslist void RclMain::catgFilter(int id) { LOGDEB(("RclMain::catgFilter: id %d\n", id)); if (id < 0 || id >= int(m_catgbutvec.size())) return; switch (prefs.filterCtlStyle) { case PrefsPack::FCS_MN: m_filtCMB->setCurrentIndex(id); m_filtBGRP->buttons()[id]->setChecked(true); break; case PrefsPack::FCS_CMB: m_filtBGRP->buttons()[id]->setChecked(true); m_filtMN->actions()[id]->setChecked(true); break; case PrefsPack::FCS_BT: default: m_filtCMB->setCurrentIndex(id); m_filtMN->actions()[id]->setChecked(true); } m_catgbutvecidx = id; setFiltSpec(); } void RclMain::setFiltSpec() { m_filtspec.reset(); // "Category" buttons if (m_catgbutvecidx != 0) { string catg = m_catgbutvec[m_catgbutvecidx]; string frag; theconfig->getGuiFilter(catg, frag); m_filtspec.orCrit(DocSeqFiltSpec::DSFS_QLANG, frag); } // Fragments from the fragbuts buttonbox tool if (fragbuts) { vector<string> frags; fragbuts->getfrags(frags); for (vector<string>::const_iterator it = frags.begin(); it != frags.end(); it++) { m_filtspec.orCrit(DocSeqFiltSpec::DSFS_QLANG, *it); } } if (m_source.isNotNull()) m_source->setFiltSpec(m_filtspec); initiateQuery(); } void RclMain::onFragmentsChanged() { setFiltSpec(); } void RclMain::toggleFullScreen() { if (isFullScreen()) showNormal(); else showFullScreen(); } void RclMain::showEvent(QShowEvent *ev) { sSearch->queryText->setFocus(); QMainWindow::showEvent(ev); } void RclMain::applyStyleSheet() { ::applyStyleSheet(prefs.qssFile); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/spell_w.cpp���������������������������������������������������������������������0000644�0001750�0001750�00000032456�12602163572�015702� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <stdio.h> #include <unistd.h> #include <algorithm> #include <list> #include <map> #include <string> using std::list; using std::multimap; using std::string; #include <qmessagebox.h> #include <qpushbutton.h> #include <qlabel.h> #include <qlineedit.h> #include <qlayout.h> #include <qtooltip.h> #include <qcombobox.h> #include <QTableWidget> #include <QHeaderView> #include <QClipboard> #include <QKeyEvent> #include "debuglog.h" #include "recoll.h" #include "spell_w.h" #include "guiutils.h" #include "rcldb.h" #include "searchdata.h" #include "rclquery.h" #include "rclhelp.h" #include "wasatorcl.h" #include "execmd.h" #ifdef RCL_USE_ASPELL #include "rclaspell.h" #endif void SpellW::init() { m_c2t.clear(); expTypeCMB->addItem(tr("Wildcards")); m_c2t.push_back(TYPECMB_WILD); expTypeCMB->addItem(tr("Regexp")); m_c2t.push_back(TYPECMB_REG); expTypeCMB->addItem(tr("Stem expansion")); m_c2t.push_back(TYPECMB_STEM); #ifdef RCL_USE_ASPELL bool noaspell = false; theconfig->getConfParam("noaspell", &noaspell); if (!noaspell) { expTypeCMB->addItem(tr("Spelling/Phonetic")); m_c2t.push_back(TYPECMB_ASPELL); } #endif expTypeCMB->addItem(tr("Show index statistics")); m_c2t.push_back(TYPECMB_STATS); int typ = prefs.termMatchType; vector<comboboxchoice>::const_iterator it = std::find(m_c2t.begin(), m_c2t.end(), typ); if (it == m_c2t.end()) it = m_c2t.begin(); int cmbidx = it - m_c2t.begin(); expTypeCMB->setCurrentIndex(cmbidx); // Stemming language combobox stemLangCMB->clear(); vector<string> langs; if (!getStemLangs(langs)) { QMessageBox::warning(0, "Recoll", tr("error retrieving stemming languages")); } for (vector<string>::const_iterator it = langs.begin(); it != langs.end(); it++) { stemLangCMB-> addItem(QString::fromUtf8(it->c_str(), it->length())); } (void)new HelpClient(this); HelpClient::installMap((const char *)this->objectName().toUtf8(), "RCL.SEARCH.TERMEXPLORER"); // signals and slots connections connect(baseWordLE, SIGNAL(textChanged(const QString&)), this, SLOT(wordChanged(const QString&))); connect(baseWordLE, SIGNAL(returnPressed()), this, SLOT(doExpand())); connect(expandPB, SIGNAL(clicked()), this, SLOT(doExpand())); connect(dismissPB, SIGNAL(clicked()), this, SLOT(close())); connect(expTypeCMB, SIGNAL(activated(int)), this, SLOT(modeSet(int))); resTW->setShowGrid(0); #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) resTW->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch); #else resTW->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch); #endif resTW->verticalHeader()->setDefaultSectionSize(20); connect(resTW, SIGNAL(cellDoubleClicked(int, int)), this, SLOT(textDoubleClicked(int, int))); resTW->setColumnWidth(0, 200); resTW->setColumnWidth(1, 150); resTW->installEventFilter(this); if (o_index_stripchars) { caseSensCB->setEnabled(false); caseSensCB->setEnabled(false); } modeSet(cmbidx); } static const int maxexpand = 10000; /* Expand term according to current mode */ void SpellW::doExpand() { int idx = expTypeCMB->currentIndex(); if (idx < 0 || idx >= int(m_c2t.size())) idx = 0; comboboxchoice mode = m_c2t[idx]; // Can't clear qt4 table widget: resets column headers too resTW->setRowCount(0); if (baseWordLE->text().isEmpty() && mode != TYPECMB_STATS) return; string reason; if (!maybeOpenDb(reason)) { QMessageBox::critical(0, "Recoll", QString(reason.c_str())); LOGDEB(("SpellW::doExpand: db error: %s\n", reason.c_str())); return; } int mt; switch(mode) { case TYPECMB_WILD: mt = Rcl::Db::ET_WILD; break; case TYPECMB_REG: mt = Rcl::Db::ET_REGEXP; break; case TYPECMB_STEM: mt = Rcl::Db::ET_STEM; break; default: mt = Rcl::Db::ET_WILD; } if (caseSensCB->isChecked()) { mt |= Rcl::Db::ET_CASESENS; } if (diacSensCB->isChecked()) { mt |= Rcl::Db::ET_DIACSENS; } Rcl::TermMatchResult res; string expr = string((const char *)baseWordLE->text().toUtf8()); Rcl::DbStats dbs; rcldb->dbStats(dbs); switch (mode) { case TYPECMB_WILD: default: case TYPECMB_REG: case TYPECMB_STEM: { string l_stemlang = qs2utf8s(stemLangCMB->currentText()); if (!rcldb->termMatch(mt, l_stemlang, expr, res, maxexpand)) { LOGERR(("SpellW::doExpand:rcldb::termMatch failed\n")); return; } statsLBL->setText(tr("Index: %1 documents, average length %2 terms." "%3 results") .arg(dbs.dbdoccount).arg(dbs.dbavgdoclen, 0, 'f', 1) .arg(res.entries.size())); } break; #ifdef RCL_USE_ASPELL case TYPECMB_ASPELL: { LOGDEB(("SpellW::doExpand: aspelling\n")); if (!aspell) { QMessageBox::warning(0, "Recoll", tr("Aspell init failed. " "Aspell not installed?")); LOGDEB(("SpellW::doExpand: aspell init error\n")); return; } list<string> suggs; if (!aspell->suggest(*rcldb, expr, suggs, reason)) { QMessageBox::warning(0, "Recoll", tr("Aspell expansion error. ")); LOGERR(("SpellW::doExpand:suggest failed: %s\n", reason.c_str())); } for (list<string>::const_iterator it = suggs.begin(); it != suggs.end(); it++) res.entries.push_back(Rcl::TermMatchEntry(*it)); #ifdef TESTING_XAPIAN_SPELL string rclsugg = rcldb->getSpellingSuggestion(expr); if (!rclsugg.empty()) { res.entries.push_back(Rcl::TermMatchEntry("Xapian spelling:")); res.entries.push_back(Rcl::TermMatchEntry(rclsugg)); } #endif // TESTING_XAPIAN_SPELL statsLBL->setText(tr("%1 results").arg(res.entries.size())); } break; #endif // RCL_USE_ASPELL case TYPECMB_STATS: { showStats(); return; } break; } if (res.entries.empty()) { resTW->setItem(0, 0, new QTableWidgetItem(tr("No expansion found"))); } else { int row = 0; if (maxexpand > 0 && int(res.entries.size()) >= maxexpand) { resTW->setRowCount(row + 1); resTW->setSpan(row, 0, 1, 2); resTW->setItem(row++, 0, new QTableWidgetItem( tr("List was truncated alphabetically, " "some frequent "))); resTW->setRowCount(row + 1); resTW->setSpan(row, 0, 1, 2); resTW->setItem(row++, 0, new QTableWidgetItem( tr("terms may be missing. " "Try using a longer root."))); resTW->setRowCount(row + 1); resTW->setItem(row++, 0, new QTableWidgetItem("")); } for (vector<Rcl::TermMatchEntry>::iterator it = res.entries.begin(); it != res.entries.end(); it++) { LOGDEB2(("SpellW::expand: %6d [%s]\n", it->wcf, it->term.c_str())); char num[30]; if (it->wcf) sprintf(num, "%d / %d", it->docs, it->wcf); else num[0] = 0; resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem(QString::fromUtf8(it->term.c_str()))); resTW->setItem(row++, 1, new QTableWidgetItem(QString::fromUtf8(num))); } } } void SpellW::showStats() { statsLBL->setText(""); int row = 0; Rcl::DbStats res; if (!rcldb->dbStats(res)) { LOGERR(("SpellW::doExpand:rcldb::dbStats failed\n")); return; } resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem(tr("Number of documents"))); resTW->setItem(row++, 1, new QTableWidgetItem( QString::number(res.dbdoccount))); resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem(tr("Average terms per document"))); resTW->setItem(row++, 1, new QTableWidgetItem( QString::number(res.dbavgdoclen))); resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem(tr("Smallest document length"))); resTW->setItem(row++, 1, new QTableWidgetItem( QString::number(res.mindoclen))); resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem(tr("Longest document length"))); resTW->setItem(row++, 1, new QTableWidgetItem( QString::number(res.maxdoclen))); if (!theconfig) return; ExecCmd cmd; vector<string> args; int status; args.push_back("-sk"); args.push_back(theconfig->getDbDir()); string output; status = cmd.doexec("du", args, 0, &output); int dbkbytes = 0; if (!status) { dbkbytes = atoi(output.c_str()); } resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem(tr("Database directory size"))); resTW->setItem(row++, 1, new QTableWidgetItem( QString::fromUtf8( displayableBytes(dbkbytes*1024).c_str()))); vector<string> allmimetypes = theconfig->getAllMimeTypes(); multimap<int, string> mtbycnt; for (vector<string>::const_iterator it = allmimetypes.begin(); it != allmimetypes.end(); it++) { string reason; string q = string("mime:") + *it; Rcl::SearchData *sd = wasaStringToRcl(theconfig, "", q, reason); RefCntr<Rcl::SearchData> rq(sd); Rcl::Query query(rcldb); if (!query.setQuery(rq)) { LOGERR(("Query setup failed: %s",query.getReason().c_str())); return; } int cnt = query.getResCnt(); mtbycnt.insert(pair<int,string>(cnt,*it)); } resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem(tr("MIME types:"))); resTW->setItem(row++, 1, new QTableWidgetItem("")); for (multimap<int, string>::const_reverse_iterator it = mtbycnt.rbegin(); it != mtbycnt.rend(); it++) { resTW->setRowCount(row+1); resTW->setItem(row, 0, new QTableWidgetItem( QString::fromUtf8(it->second.c_str()))); resTW->setItem(row++, 1, new QTableWidgetItem( QString::number(it->first))); } } void SpellW::wordChanged(const QString &text) { if (text.isEmpty()) { expandPB->setEnabled(false); resTW->setRowCount(0); } else { expandPB->setEnabled(true); } } void SpellW::textDoubleClicked() {} void SpellW::textDoubleClicked(int row, int) { QTableWidgetItem *item = resTW->item(row, 0); if (item) emit(wordSelect(item->text())); } void SpellW::modeSet(int idx) { if (idx < 0 || idx > int(m_c2t.size())) return; comboboxchoice mode = m_c2t[idx]; resTW->setRowCount(0); if (mode == TYPECMB_STEM) { stemLangCMB->setEnabled(true); diacSensCB->setChecked(false); diacSensCB->setEnabled(false); caseSensCB->setChecked(false); caseSensCB->setEnabled(false); } else { stemLangCMB->setEnabled(false); diacSensCB->setEnabled(true); caseSensCB->setEnabled(true); } if (mode == TYPECMB_STATS) baseWordLE->setEnabled(false); else baseWordLE->setEnabled(true); if (mode == TYPECMB_STATS) { QStringList labels(tr("Item")); labels.push_back(tr("Value")); resTW->setHorizontalHeaderLabels(labels); doExpand(); } else { QStringList labels(tr("Term")); labels.push_back(tr("Doc. / Tot.")); resTW->setHorizontalHeaderLabels(labels); prefs.termMatchType = mode; } } void SpellW::copy() { QItemSelectionModel * selection = resTW->selectionModel(); QModelIndexList indexes = selection->selectedIndexes(); if(indexes.size() < 1) return; // QModelIndex::operator < sorts first by row, then by column. // this is what we need std::sort(indexes.begin(), indexes.end()); // You need a pair of indexes to find the row changes QModelIndex previous = indexes.first(); indexes.removeFirst(); QString selected_text; QModelIndex current; Q_FOREACH(current, indexes) { QVariant data = resTW->model()->data(previous); QString text = data.toString(); // At this point `text` contains the text in one cell selected_text.append(text); // If you are at the start of the row the row number of the previous index // isn't the same. Text is followed by a row separator, which is a newline. if (current.row() != previous.row()) { selected_text.append(QLatin1Char('\n')); } // Otherwise it's the same row, so append a column separator, which is a tab. else { selected_text.append(QLatin1Char('\t')); } previous = current; } // add last element selected_text.append(resTW->model()->data(current).toString()); selected_text.append(QLatin1Char('\n')); qApp->clipboard()->setText(selected_text, QClipboard::Selection); qApp->clipboard()->setText(selected_text, QClipboard::Clipboard); } bool SpellW::eventFilter(QObject *target, QEvent *event) { if (event->type() != QEvent::KeyPress || (target != resTW && target != resTW->viewport())) return false; QKeyEvent *keyEvent = (QKeyEvent *)event; if(keyEvent->matches(QKeySequence::Copy) ) { copy(); return true; } return false; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/rclmain_w.h���������������������������������������������������������������������0000644�0001750�0001750�00000017531�12645207740�015655� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef RCLMAIN_W_H #define RCLMAIN_W_H #include <qvariant.h> #include <qmainwindow.h> #include <QFileSystemWatcher> #include "sortseq.h" #include "preview_w.h" #include "recoll.h" #include "advsearch_w.h" #include "uiprefs_w.h" #include "rcldb.h" #include "searchdata.h" #include "spell_w.h" #include "refcntr.h" #include "pathut.h" #include "guiutils.h" class IdxSchedW; class ExecCmd; class Preview; class ResTable; class CronToolW; class RTIToolW; class FragButs; class SpecIdxW; #include "ui_rclmain.h" namespace confgui { class ConfIndexW; } using confgui::ConfIndexW; class RclTrayIcon; class RclMain : public QMainWindow, public Ui::RclMainBase { Q_OBJECT public: enum IndexerState {IXST_UNKNOWN, IXST_NOTRUNNING, IXST_RUNNINGMINE, IXST_RUNNINGNOTMINE}; RclMain(QWidget * parent = 0) : QMainWindow(parent), curPreview(0), asearchform(0), uiprefs(0), indexConfig(0), indexSched(0), cronTool(0), rtiTool(0), spellform(0), fragbuts(0), specidx(0), periodictimer(0), restable(0), displayingTable(0), m_idNoStem(0), m_idAllStem(0), m_toolsTB(0), m_resTB(0), m_filtFRM(0), m_filtCMB(0), m_filtBGRP(0), m_filtMN(0), m_idxproc(0), m_idxkilled(false), m_catgbutvecidx(0), m_sortspecnochange(false), m_indexerState(IXST_UNKNOWN), m_queryActive(false), m_firstIndexing(false), m_searchIsSimple(false) { setupUi(this); init(); } ~RclMain() {} QString getQueryDescription(); /** This is only called from main() to set an URL to be displayed (using recoll as a doc extracter for embedded docs */ virtual void setUrlToView(const QString& u) {m_urltoview = u;} /** Same usage: actually display the current urltoview */ virtual void viewUrl(); bool lastSearchSimple() { return m_searchIsSimple; } // Takes copies of the args instead of refs. Lazy and safe. void newDupsW(const Rcl::Doc doc, const std::vector<Rcl::Doc> dups); protected: virtual void showEvent(QShowEvent *); public slots: virtual void fileExit(); virtual void idxStatus(); virtual void periodic100(); virtual void toggleIndexing(); virtual void rebuildIndex(); virtual void specialIndex(); virtual void startSearch(RefCntr<Rcl::SearchData> sdata, bool issimple); virtual void previewClosed(Preview *w); virtual void showAdvSearchDialog(); virtual void showSpellDialog(); virtual void showFragButs(); virtual void showSpecIdx(); virtual void showAboutDialog(); virtual void showMissingHelpers(); virtual void showActiveTypes(); virtual void startManual(); virtual void startManual(const string&); virtual void showDocHistory(); virtual void showExtIdxDialog(); virtual void showUIPrefs(); virtual void showIndexConfig(); virtual void execIndexConfig(); virtual void showCronTool(); virtual void execCronTool(); virtual void showRTITool(); virtual void execRTITool(); virtual void showIndexSched(); virtual void execIndexSched(); virtual void setUIPrefs(); virtual void enableNextPage(bool); virtual void enablePrevPage(bool); virtual void docExpand(Rcl::Doc); virtual void showSubDocs(Rcl::Doc); virtual void showSnippets(Rcl::Doc); virtual void startPreview(int docnum, Rcl::Doc doc, int keymods); virtual void startPreview(Rcl::Doc); virtual void startNativeViewer(Rcl::Doc, int pagenum = -1, QString term=QString()); virtual void openWith(Rcl::Doc, string); virtual void saveDocToFile(Rcl::Doc); virtual void previewNextInTab(Preview *, int sid, int docnum); virtual void previewPrevInTab(Preview *, int sid, int docnum); virtual void previewExposed(Preview *, int sid, int docnum); virtual void resetSearch(); virtual void eraseDocHistory(); virtual void eraseSearchHistory(); virtual void saveLastQuery(); virtual void loadSavedQuery(); virtual void setStemLang(QAction *id); virtual void adjustPrefsMenu(); virtual void catgFilter(int); virtual void catgFilter(QAction *); virtual void onFragmentsChanged(); virtual void initDbOpen(); virtual void toggleFullScreen(); virtual void on_actionSortByDateAsc_toggled(bool on); virtual void on_actionSortByDateDesc_toggled(bool on); virtual void on_actionShowResultsAsTable_toggled(bool on); virtual void onSortDataChanged(DocSeqSortSpec); virtual void resultCount(int); virtual void applyStyleSheet(); virtual void setFilterCtlStyle(int stl); virtual void showTrayMessage(const QString& text); signals: void docSourceChanged(RefCntr<DocSequence>); void stemLangChanged(const QString& lang); void sortDataChanged(DocSeqSortSpec); void resultsReady(); void searchReset(); protected: virtual void closeEvent( QCloseEvent * ); private: Preview *curPreview; AdvSearch *asearchform; UIPrefsDialog *uiprefs; ConfIndexW *indexConfig; IdxSchedW *indexSched; CronToolW *cronTool; RTIToolW *rtiTool; SpellW *spellform; FragButs *fragbuts; SpecIdxW *specidx; QTimer *periodictimer; ResTable *restable; bool displayingTable; QAction *m_idNoStem; QAction *m_idAllStem; QToolBar *m_toolsTB; QToolBar *m_resTB; QFrame *m_filtFRM; QComboBox *m_filtCMB; QButtonGroup *m_filtBGRP; QMenu *m_filtMN; QFileSystemWatcher m_watcher; vector<ExecCmd*> m_viewers; ExecCmd *m_idxproc; // Indexing process bool m_idxkilled; // Killed my process map<QString, QAction*> m_stemLangToId; vector<string> m_catgbutvec; int m_catgbutvecidx; DocSeqFiltSpec m_filtspec; bool m_sortspecnochange; DocSeqSortSpec m_sortspec; RefCntr<DocSequence> m_source; IndexerState m_indexerState; bool m_queryActive; bool m_firstIndexing; bool m_searchIsSimple; // Last search was started from simple // If set on init, will be displayed either through ext app, or // preview (if no ext app set) QString m_urltoview; RclTrayIcon *m_trayicon; virtual void init(); virtual void setupResTB(bool combo); virtual void previewPrevOrNextInTab(Preview *, int sid, int docnum, bool next); virtual void execViewer(const map<string, string>& subs, bool enterHistory, const string& execpath, const vector<string>& lcmd, const string& cmd, Rcl::Doc doc); virtual void setStemLang(const QString& lang); virtual void onSortCtlChanged(); virtual void showIndexConfig(bool modal); virtual void showIndexSched(bool modal); virtual void showCronTool(bool modal); virtual void showRTITool(bool modal); virtual void updateIdxForDocs(vector<Rcl::Doc>&); virtual void initiateQuery(); virtual bool containerUpToDate(Rcl::Doc& doc); virtual void setFiltSpec(); }; #endif // RCLMAIN_W_H �����������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/reslist.cpp���������������������������������������������������������������������0000644�0001750�0001750�00000073100�12602163572�015711� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <time.h> #include <stdlib.h> #include <qapplication.h> #include <qvariant.h> #include <qevent.h> #include <qmenu.h> #include <qpushbutton.h> #include <qlayout.h> #include <qtooltip.h> #include <qwhatsthis.h> #include <qtimer.h> #include <qmessagebox.h> #include <qimage.h> #include <qscrollbar.h> #include <QTextBlock> #include <QShortcut> #ifndef __APPLE__ //#include <qx11info_x11.h> #endif #include "debuglog.h" #include "smallut.h" #include "recoll.h" #include "guiutils.h" #include "pathut.h" #include "docseq.h" #include "pathut.h" #include "mimehandler.h" #include "plaintorich.h" #include "refcntr.h" #include "internfile.h" #include "indexer.h" #include "snippets_w.h" #include "listdialog.h" #include "reslist.h" #include "moc_reslist.cpp" #include "rclhelp.h" #ifdef RCL_USE_ASPELL #include "rclaspell.h" #endif #include "appformime.h" #include "respopup.h" static const QKeySequence quitKeySeq("Ctrl+q"); static const QKeySequence closeKeySeq("Ctrl+w"); #ifndef RESLIST_TEXTBROWSER #include <QWebFrame> #include <QWebElement> #include <QWebSettings> #endif // Decide if we set font family and style with a css section in the // html <head> or with qwebsettings setfont... calls. We currently do // it with websettings because this gives an instant redisplay, and // the css has a tendancy to not find some system fonts. Otoh, // SetFontSize() needs a strange offset of 3, not needed with css. #undef SETFONT_WITH_HEADSTYLE class QtGuiResListPager : public ResListPager { public: QtGuiResListPager(ResList *p, int ps) : ResListPager(ps), m_reslist(p) {} virtual bool append(const string& data); virtual bool append(const string& data, int idx, const Rcl::Doc& doc); virtual string trans(const string& in); virtual string detailsLink(); virtual const string &parFormat(); virtual const string &dateFormat(); virtual string nextUrl(); virtual string prevUrl(); virtual string headerContent(); virtual void suggest(const vector<string>uterms, map<string, vector<string> >& sugg); virtual string absSep() {return (const char *)(prefs.abssep.toUtf8());} virtual string iconUrl(RclConfig *, Rcl::Doc& doc); private: ResList *m_reslist; }; #if 0 FILE *fp; void logdata(const char *data) { if (fp == 0) fp = fopen("/tmp/recolltoto.html", "a"); if (fp) fprintf(fp, "%s", data); } #else #define logdata(X) #endif ////////////////////////////// // /// QtGuiResListPager methods: bool QtGuiResListPager::append(const string& data) { LOGDEB2(("QtGuiReslistPager::appendString : %s\n", data.c_str())); logdata(data.c_str()); m_reslist->append(QString::fromUtf8(data.c_str())); return true; } bool QtGuiResListPager::append(const string& data, int docnum, const Rcl::Doc&) { LOGDEB2(("QtGuiReslistPager::appendDoc: blockCount %d, %s\n", m_reslist->document()->blockCount(), data.c_str())); logdata(data.c_str()); #ifdef RESLIST_TEXTBROWSER int blkcnt0 = m_reslist->document()->blockCount(); m_reslist->moveCursor(QTextCursor::End, QTextCursor::MoveAnchor); m_reslist->textCursor().insertBlock(); m_reslist->insertHtml(QString::fromUtf8(data.c_str())); m_reslist->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor); m_reslist->ensureCursorVisible(); int blkcnt1 = m_reslist->document()->blockCount(); for (int block = blkcnt0; block < blkcnt1; block++) { m_reslist->m_pageParaToReldocnums[block] = docnum; } #else QString sdoc = QString("<div class=\"rclresult\" rcldocnum=\"%1\">").arg(docnum); m_reslist->append(sdoc); m_reslist->append(QString::fromUtf8(data.c_str())); m_reslist->append("</div>"); #endif return true; } string QtGuiResListPager::trans(const string& in) { return string((const char*)ResList::tr(in.c_str()).toUtf8()); } string QtGuiResListPager::detailsLink() { string chunk = "<a href=\"H-1\">"; chunk += trans("(show query)"); chunk += "</a>"; return chunk; } const string& QtGuiResListPager::parFormat() { return prefs.creslistformat; } const string& QtGuiResListPager::dateFormat() { return prefs.creslistdateformat; } string QtGuiResListPager::nextUrl() { return "n-1"; } string QtGuiResListPager::prevUrl() { return "p-1"; } string QtGuiResListPager::headerContent() { string out; out = "<style type=\"text/css\">\nbody,table,select,input {\n"; #ifdef SETFONT_WITH_HEADSTYLE char ftsz[30]; sprintf(ftsz, "%d", prefs.reslistfontsize); out += string("font-family: \"") + qs2utf8s(prefs.reslistfontfamily) + "\";\n"; out += string("font-size: ") + ftsz + "pt;\n"; #endif out += string("color: ") + qs2utf8s(prefs.fontcolor) + ";\n"; out += string("}\n</style>\n"); out += qs2utf8s(prefs.reslistheadertext); return out; } void QtGuiResListPager::suggest(const vector<string>uterms, map<string, vector<string> >& sugg) { sugg.clear(); #ifdef RCL_USE_ASPELL bool noaspell = false; theconfig->getConfParam("noaspell", &noaspell); if (noaspell) return; if (!aspell) { LOGERR(("QtGuiResListPager:: aspell not initialized\n")); return; } bool issimple = m_reslist && m_reslist->m_rclmain && m_reslist->m_rclmain->lastSearchSimple(); for (vector<string>::const_iterator uit = uterms.begin(); uit != uterms.end(); uit++) { list<string> asuggs; string reason; // If the term is in the dictionary, Aspell::suggest won't // list alternatives. In fact we may want to check the // frequencies and propose something anyway if a possible // variation is much more common (as google does) ? if (!aspell->suggest(*rcldb, *uit, asuggs, reason)) { LOGERR(("QtGuiResListPager::suggest: aspell failed: %s\n", reason.c_str())); continue; } // We should check that the term stems differently from the // base word (else it's not useful to expand the search). Or // is it ? This should depend if stemming is turned on or not if (!asuggs.empty()) { sugg[*uit] = vector<string>(asuggs.begin(), asuggs.end()); if (sugg[*uit].size() > 5) sugg[*uit].resize(5); // Set up the links as a <href="Sold|new">. for (vector<string>::iterator it = sugg[*uit].begin(); it != sugg[*uit].end(); it++) { if (issimple) { *it = string("<a href=\"S") + *uit + "|" + *it + "\">" + *it + "</a>"; } } } } #endif } string QtGuiResListPager::iconUrl(RclConfig *config, Rcl::Doc& doc) { if (doc.ipath.empty()) { vector<Rcl::Doc> docs; docs.push_back(doc); vector<string> paths; ConfIndexer::docsToPaths(docs, paths); if (!paths.empty()) { string path; LOGDEB0(("ResList::iconUrl: source path [%s]\n", paths[0].c_str())); if (thumbPathForUrl(cstr_fileu + paths[0], 128, path)) { LOGDEB0(("ResList::iconUrl: icon path [%s]\n", path.c_str())); return cstr_fileu + path; } else { LOGDEB0(("ResList::iconUrl: no icon: path [%s]\n", path.c_str())); } } else { LOGDEB(("ResList::iconUrl: docsToPaths failed\n")); } } return ResListPager::iconUrl(config, doc); } /////// /////// End reslistpager methods class PlainToRichQtReslist : public PlainToRich { public: virtual string startMatch(unsigned int idx) { if (m_hdata) { string s1, s2; stringsToString<vector<string> >(m_hdata->groups[idx], s1); stringsToString<vector<string> >(m_hdata->ugroups[m_hdata->grpsugidx[idx]], s2); LOGDEB(("Reslist startmatch: group %s user group %s\n", s1.c_str(), s2.c_str())); } return string("<span class='rclmatch' style='color: ") + qs2utf8s(prefs.qtermcolor) + string("'>"); } virtual string endMatch() { return string("</span>"); } }; static PlainToRichQtReslist g_hiliter; ///////////////////////////////////// ResList::ResList(QWidget* parent, const char* name) : RESLIST_PARENTCLASS(parent), m_curPvDoc(-1), m_lstClckMod(0), m_listId(0), m_rclmain(0), m_ismainres(true) { if (!name) setObjectName("resList"); else setObjectName(name); #ifdef RESLIST_TEXTBROWSER LOGDEB(("Reslist: using QTextBrowser\n")); setReadOnly(TRUE); setUndoRedoEnabled(FALSE); setOpenLinks(FALSE); setTabChangesFocus(true); // signals and slots connections connect(this, SIGNAL(anchorClicked(const QUrl &)), this, SLOT(linkWasClicked(const QUrl &))); #else LOGDEB(("Reslist: using QWebView\n")); // signals and slots connections connect(this, SIGNAL(linkClicked(const QUrl &)), this, SLOT(linkWasClicked(const QUrl &))); page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); settings()->setAttribute(QWebSettings::JavascriptEnabled, true); #endif setFont(); languageChange(); (void)new HelpClient(this); HelpClient::installMap(qs2utf8s(this->objectName()), "RCL.SEARCH.RESLIST"); #if 0 // See comments in "highlighted connect(this, SIGNAL(highlighted(const QString &)), this, SLOT(highlighted(const QString &))); #endif setContextMenuPolicy(Qt::CustomContextMenu); connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(createPopupMenu(const QPoint&))); m_pager = new QtGuiResListPager(this, prefs.respagesize); m_pager->setHighLighter(&g_hiliter); } ResList::~ResList() { // These have to exist somewhere for translations to work #ifdef __GNUC__ __attribute__((unused)) #endif static const char* strings[] = { QT_TR_NOOP("<p><b>No results found</b><br>"), QT_TR_NOOP("Documents"), QT_TR_NOOP("out of at least"), QT_TR_NOOP("for"), QT_TR_NOOP("Previous"), QT_TR_NOOP("Next"), QT_TR_NOOP("Unavailable document"), QT_TR_NOOP("Preview"), QT_TR_NOOP("Open"), QT_TR_NOOP("Snippets"), QT_TR_NOOP("(show query)"), QT_TR_NOOP("<p><i>Alternate spellings (accents suppressed): </i>"), QT_TR_NOOP("<p><i>Alternate spellings: </i>"), }; } void ResList::setRclMain(RclMain *m, bool ismain) { m_rclmain = m; m_ismainres = ismain; if (!m_ismainres) { connect(new QShortcut(closeKeySeq, this), SIGNAL (activated()), this, SLOT (close())); connect(new QShortcut(quitKeySeq, this), SIGNAL (activated()), m_rclmain, SLOT (fileExit())); connect(this, SIGNAL(previewRequested(Rcl::Doc)), m_rclmain, SLOT(startPreview(Rcl::Doc))); connect(this, SIGNAL(docSaveToFileClicked(Rcl::Doc)), m_rclmain, SLOT(saveDocToFile(Rcl::Doc))); connect(this, SIGNAL(editRequested(Rcl::Doc)), m_rclmain, SLOT(startNativeViewer(Rcl::Doc))); } } void ResList::setFont() { #ifdef RESLIST_TEXTBROWSER if (prefs.reslistfontfamily.length()) { QFont nfont(prefs.reslistfontfamily, prefs.reslistfontsize); QTextBrowser::setFont(nfont); } else { QTextBrowser::setFont(QFont()); } #else #ifndef SETFONT_WITH_HEADSTYLE QWebSettings *websettings = settings(); if (prefs.reslistfontfamily.length()) { // For some reason there is (12-2014) an offset of 3 between what // we request from webkit and what we get. websettings->setFontSize(QWebSettings::DefaultFontSize, prefs.reslistfontsize + 3); websettings->setFontFamily(QWebSettings::StandardFont, prefs.reslistfontfamily); } else { websettings->resetFontSize(QWebSettings::DefaultFontSize); websettings->resetFontFamily(QWebSettings::StandardFont); } #endif #endif } int ResList::newListId() { static int id; return ++id; } extern "C" int XFlush(void *); void ResList::setDocSource(RefCntr<DocSequence> nsource) { LOGDEB(("ResList::setDocSource()\n")); m_source = RefCntr<DocSequence>(new DocSource(theconfig, nsource)); } // A query was executed, or the filtering/sorting parameters changed, // re-read the results. void ResList::readDocSource() { LOGDEB(("ResList::readDocSource()\n")); resetView(); if (m_source.isNull()) return; m_listId = newListId(); // Reset the page size in case the preference was changed m_pager->setPageSize(prefs.respagesize); m_pager->setDocSource(m_source); resultPageNext(); emit hasResults(m_source->getResCnt()); } void ResList::resetList() { LOGDEB(("ResList::resetList()\n")); setDocSource(RefCntr<DocSequence>()); resetView(); } void ResList::resetView() { m_curPvDoc = -1; // There should be a progress bar for long searches but there isn't // We really want the old result list to go away, otherwise, for a // slow search, the user will wonder if anything happened. The // following helps making sure that the textedit is really // blank. Else, there are often icons or text left around #ifdef RESLIST_TEXTBROWSER m_pageParaToReldocnums.clear(); clear(); QTextBrowser::append("."); clear(); #ifndef __APPLE__ // XFlush(QX11Info::display()); #endif #else m_text = ""; setHtml("<html><body></body></html>"); #endif } bool ResList::displayingHistory() { // We want to reset the displayed history if it is currently // shown. Using the title value is an ugly hack string htstring = string((const char *)tr("Document history").toUtf8()); if (m_source.isNull() || m_source->title().empty()) return false; return m_source->title().find(htstring) == 0; } void ResList::languageChange() { setWindowTitle(tr("Result list")); } #ifdef RESLIST_TEXTBROWSER // Get document number from text block number int ResList::docnumfromparnum(int block) { if (m_pager->pageNumber() < 0) return -1; // Try to find the first number < input and actually in the map // (result blocks can be made of several text blocks) std::map<int,int>::iterator it; do { it = m_pageParaToReldocnums.find(block); if (it != m_pageParaToReldocnums.end()) return pageFirstDocNum() + it->second; } while (--block >= 0); return -1; } // Get range of paragraph numbers which make up the result for document number pair<int,int> ResList::parnumfromdocnum(int docnum) { LOGDEB(("parnumfromdocnum: docnum %d\n", docnum)); if (m_pager->pageNumber() < 0) { LOGDEB(("parnumfromdocnum: no page return -1,-1\n")); return pair<int,int>(-1,-1); } int winfirst = pageFirstDocNum(); if (docnum - winfirst < 0) { LOGDEB(("parnumfromdocnum: docnum %d < winfirst %d return -1,-1\n", docnum, winfirst)); return pair<int,int>(-1,-1); } docnum -= winfirst; for (std::map<int,int>::iterator it = m_pageParaToReldocnums.begin(); it != m_pageParaToReldocnums.end(); it++) { if (docnum == it->second) { int first = it->first; int last = first+1; std::map<int,int>::iterator it1; while ((it1 = m_pageParaToReldocnums.find(last)) != m_pageParaToReldocnums.end() && it1->second == docnum) { last++; } LOGDEB(("parnumfromdocnum: return %d,%d\n", first, last)); return pair<int,int>(first, last); } } LOGDEB(("parnumfromdocnum: not found return -1,-1\n")); return pair<int,int>(-1,-1); } #endif // TEXTBROWSER // Return doc from current or adjacent result pages. We can get called // for a document not in the current page if the user browses through // results inside a result window (with shift-arrow). This can only // result in a one-page change. bool ResList::getDoc(int docnum, Rcl::Doc &doc) { LOGDEB(("ResList::getDoc: docnum %d winfirst %d\n", docnum, pageFirstDocNum())); int winfirst = pageFirstDocNum(); int winlast = m_pager->pageLastDocNum(); if (docnum < 0 || winfirst < 0 || winlast < 0) return false; // Is docnum in current page ? Then all Ok if (docnum >= winfirst && docnum <= winlast) { return m_pager->getDoc(docnum, doc); } // Else we accept to page down or up but not further if (docnum < winfirst && docnum >= winfirst - prefs.respagesize) { resultPageBack(); } else if (docnum < winlast + 1 + prefs.respagesize) { resultPageNext(); } winfirst = pageFirstDocNum(); winlast = m_pager->pageLastDocNum(); if (docnum >= winfirst && docnum <= winlast) { return m_pager->getDoc(docnum, doc); } return false; } void ResList::keyPressEvent(QKeyEvent * e) { if ((e->modifiers() & Qt::ShiftModifier)) { if (e->key() == Qt::Key_PageUp) { // Shift-PageUp -> first page of results resultPageFirst(); return; } } else { if (e->key() == Qt::Key_PageUp || e->key() == Qt::Key_Backspace) { resPageUpOrBack(); return; } else if (e->key() == Qt::Key_PageDown || e->key() == Qt::Key_Space) { resPageDownOrNext(); return; } } RESLIST_PARENTCLASS::keyPressEvent(e); } void ResList::mouseReleaseEvent(QMouseEvent *e) { m_lstClckMod = 0; if (e->modifiers() & Qt::ControlModifier) { m_lstClckMod |= Qt::ControlModifier; } if (e->modifiers() & Qt::ShiftModifier) { m_lstClckMod |= Qt::ShiftModifier; } RESLIST_PARENTCLASS::mouseReleaseEvent(e); } void ResList::highlighted(const QString& ) { // This is supposedly called when a link is preactivated (hover or tab // traversal, but is not actually called for tabs. We would have liked to // give some kind of visual feedback for tab traversal } // Page Up/Down: we don't try to check if current paragraph is last or // first. We just page up/down and check if viewport moved. If it did, // fair enough, else we go to next/previous result page. void ResList::resPageUpOrBack() { #ifdef RESLIST_TEXTBROWSER int vpos = verticalScrollBar()->value(); verticalScrollBar()->triggerAction(QAbstractSlider::SliderPageStepSub); if (vpos == verticalScrollBar()->value()) resultPageBack(); #else if (scrollIsAtTop()) { resultPageBack(); } else { QWebFrame *frame = page()->mainFrame(); frame->scroll(0, -int(0.9*geometry().height())); } setupArrows(); #endif } void ResList::resPageDownOrNext() { #ifdef RESLIST_TEXTBROWSER int vpos = verticalScrollBar()->value(); verticalScrollBar()->triggerAction(QAbstractSlider::SliderPageStepAdd); LOGDEB(("ResList::resPageDownOrNext: vpos before %d, after %d\n", vpos, verticalScrollBar()->value())); if (vpos == verticalScrollBar()->value()) resultPageNext(); #else if (scrollIsAtBottom()) { resultPageNext(); } else { QWebFrame *frame = page()->mainFrame(); frame->scroll(0, int(0.9*geometry().height())); } setupArrows(); #endif } void ResList::setupArrows() { emit prevPageAvailable(m_pager->hasPrev() || !scrollIsAtTop()); emit nextPageAvailable(m_pager->hasNext() || !scrollIsAtBottom()); } bool ResList::scrollIsAtBottom() { #ifdef RESLIST_TEXTBROWSER return false; #else QWebFrame *frame = page()->mainFrame(); bool ret; if (!frame || frame->scrollBarGeometry(Qt::Vertical).isEmpty()) { ret = true; } else { int max = frame->scrollBarMaximum(Qt::Vertical); int cur = frame->scrollBarValue(Qt::Vertical); ret = (max != 0) && (cur == max); LOGDEB2(("Scrollatbottom: cur %d max %d\n", cur, max)); } LOGDEB2(("scrollIsAtBottom: returning %d\n", ret)); return ret; #endif } bool ResList::scrollIsAtTop() { #ifdef RESLIST_TEXTBROWSER return false; #else QWebFrame *frame = page()->mainFrame(); bool ret; if (!frame || frame->scrollBarGeometry(Qt::Vertical).isEmpty()) { ret = true; } else { int cur = frame->scrollBarValue(Qt::Vertical); int min = frame->scrollBarMinimum(Qt::Vertical); LOGDEB(("Scrollattop: cur %d min %d\n", cur, min)); ret = (cur == min); } LOGDEB2(("scrollIsAtTop: returning %d\n", ret)); return ret; #endif } // Show previous page of results. We just set the current number back // 2 pages and show next page. void ResList::resultPageBack() { if (m_pager->hasPrev()) { m_pager->resultPageBack(); displayPage(); } } // Go to the first page void ResList::resultPageFirst() { // In case the preference was changed m_pager->setPageSize(prefs.respagesize); m_pager->resultPageFirst(); displayPage(); } // Fill up result list window with next screen of hits void ResList::resultPageNext() { if (m_pager->hasNext()) { m_pager->resultPageNext(); displayPage(); } } void ResList::resultPageFor(int docnum) { m_pager->resultPageFor(docnum); displayPage(); } void ResList::append(const QString &text) { LOGDEB2(("QtGuiReslistPager::appendQString : %s\n", (const char*)text.toUtf8())); #ifdef RESLIST_TEXTBROWSER QTextBrowser::append(text); #else m_text += text; #endif } void ResList::displayPage() { resetView(); m_pager->displayPage(theconfig); #ifndef RESLIST_TEXTBROWSER setHtml(m_text); #endif LOGDEB0(("ResList::displayPg: hasNext %d atBot %d hasPrev %d at Top %d \n", m_pager->hasPrev(), scrollIsAtBottom(), m_pager->hasNext(), scrollIsAtTop())); setupArrows(); // Possibly color paragraph of current preview if any previewExposed(m_curPvDoc); } // Color paragraph (if any) of currently visible preview void ResList::previewExposed(int docnum) { LOGDEB(("ResList::previewExposed: doc %d\n", docnum)); // Possibly erase old one to white if (m_curPvDoc != -1) { #ifdef RESLIST_TEXTBROWSER pair<int,int> blockrange = parnumfromdocnum(m_curPvDoc); if (blockrange.first != -1) { for (int blockn = blockrange.first; blockn < blockrange.second; blockn++) { QTextBlock block = document()->findBlockByNumber(blockn); QTextCursor cursor(block); QTextBlockFormat format = cursor.blockFormat(); format.clearBackground(); cursor.setBlockFormat(format); } } #else QString sel = QString("div[rcldocnum=\"%1\"]").arg(m_curPvDoc - pageFirstDocNum()); LOGDEB2(("Searching for element, selector: [%s]\n", qs2utf8s(sel).c_str())); QWebElement elt = page()->mainFrame()->findFirstElement(sel); if (!elt.isNull()) { LOGDEB2(("Found\n")); elt.removeAttribute("style"); } else { LOGDEB2(("Not Found\n")); } #endif m_curPvDoc = -1; } // Set background for active preview's doc entry m_curPvDoc = docnum; #ifdef RESLIST_TEXTBROWSER pair<int,int> blockrange = parnumfromdocnum(docnum); // Maybe docnum is -1 or not in this window, if (blockrange.first < 0) return; // Color the new active paragraph QColor color("LightBlue"); for (int blockn = blockrange.first+1; blockn < blockrange.second; blockn++) { QTextBlock block = document()->findBlockByNumber(blockn); QTextCursor cursor(block); QTextBlockFormat format; format.setBackground(QBrush(color)); cursor.mergeBlockFormat(format); setTextCursor(cursor); ensureCursorVisible(); } #else QString sel = QString("div[rcldocnum=\"%1\"]").arg(docnum - pageFirstDocNum()); LOGDEB2(("Searching for element, selector: [%s]\n", qs2utf8s(sel).c_str())); QWebElement elt = page()->mainFrame()->findFirstElement(sel); if (!elt.isNull()) { LOGDEB2(("Found\n")); elt.setAttribute("style", "background: LightBlue;}"); } else { LOGDEB2(("Not Found\n")); } #endif } // Double click in res list: add selection to simple search void ResList::mouseDoubleClickEvent(QMouseEvent *event) { RESLIST_PARENTCLASS::mouseDoubleClickEvent(event); #ifdef RESLIST_TEXTBROWSER if (textCursor().hasSelection()) emit(wordSelect(textCursor().selectedText())); #else emit(wordSelect(selectedText())); #endif } void ResList::showQueryDetails() { if (m_source.isNull()) return; string oq = breakIntoLines(m_source->getDescription(), 100, 50); QString str; QString desc = tr("Result count (est.)") + ": " + str.setNum(m_source->getResCnt()) + "<br>"; desc += tr("Query details") + ": " + QString::fromUtf8(oq.c_str()); QMessageBox::information(this, tr("Query details"), desc); } void ResList::linkWasClicked(const QUrl &url) { string ascurl = qs2utf8s(url.toString()); LOGDEB(("ResList::linkWasClicked: [%s]\n", ascurl.c_str())); int what = ascurl[0]; switch (what) { // Open abstract/snippets window case 'A': { if (m_source.isNull()) return; int i = atoi(ascurl.c_str()+1) - 1; Rcl::Doc doc; if (!getDoc(i, doc)) { LOGERR(("ResList::linkWasClicked: can't get doc for %d\n", i)); return; } emit(showSnippets(doc)); } break; // Show duplicates case 'D': { if (m_source.isNull()) return; int i = atoi(ascurl.c_str()+1) - 1; Rcl::Doc doc; if (!getDoc(i, doc)) { LOGERR(("ResList::linkWasClicked: can't get doc for %d\n", i)); return; } vector<Rcl::Doc> dups; if (m_source->docDups(doc, dups) && m_rclmain) { m_rclmain->newDupsW(doc, dups); } } break; // Open parent folder case 'F': { int i = atoi(ascurl.c_str()+1) - 1; Rcl::Doc doc; if (!getDoc(i, doc)) { LOGERR(("ResList::linkWasClicked: can't get doc for %d\n", i)); return; } emit editRequested(ResultPopup::getParent(RefCntr<DocSequence>(), doc)); } break; // Show query details case 'H': { showQueryDetails(); break; } // Preview and edit case 'P': case 'E': { int i = atoi(ascurl.c_str()+1) - 1; Rcl::Doc doc; if (!getDoc(i, doc)) { LOGERR(("ResList::linkWasClicked: can't get doc for %d\n", i)); return; } if (what == 'P') { if (m_ismainres) { emit docPreviewClicked(i, doc, m_lstClckMod); } else { emit previewRequested(doc); } } else { emit editRequested(doc); } } break; // Next/prev page case 'n': resultPageNext(); break; case 'p': resultPageBack(); break; // Run script. Link format Rnn|Script Name case 'R': { int i = atoi(ascurl.c_str() + 1) - 1; QString s = url.toString(); int bar = s.indexOf("|"); if (bar == -1 || bar >= s.size()-1) break; string cmdname = qs2utf8s(s.right(s.size() - (bar + 1))); DesktopDb ddb(path_cat(theconfig->getConfDir(), "scripts")); DesktopDb::AppDef app; if (ddb.appByName(cmdname, app)) { QAction act(QString::fromUtf8(app.name.c_str()), this); QVariant v(QString::fromUtf8(app.command.c_str())); act.setData(v); m_popDoc = i; menuOpenWith(&act); } } break; // Spelling: replacement suggestion clicked case 'S': { QString s = url.toString(); if (!s.isEmpty()) s = s.right(s.size()-1); int bar = s.indexOf("|"); if (bar != -1 && bar < s.size()-1) { QString o = s.left(bar); QString n = s.right(s.size() - (bar+1)); emit wordReplace(o, n); } } break; default: LOGERR(("ResList::linkWasClicked: bad link [%s]\n", ascurl.c_str())); break;// ?? } } void ResList::createPopupMenu(const QPoint& pos) { LOGDEB(("ResList::createPopupMenu(%d, %d)\n", pos.x(), pos.y())); #ifdef RESLIST_TEXTBROWSER QTextCursor cursor = cursorForPosition(pos); int blocknum = cursor.blockNumber(); LOGDEB(("ResList::createPopupMenu(): block %d\n", blocknum)); m_popDoc = docnumfromparnum(blocknum); #else QWebHitTestResult htr = page()->mainFrame()->hitTestContent(pos); if (htr.isNull()) return; QWebElement el = htr.enclosingBlockElement(); while (!el.isNull() && !el.hasAttribute("rcldocnum")) el = el.parent(); if (el.isNull()) return; QString snum = el.attribute("rcldocnum"); m_popDoc = pageFirstDocNum() + snum.toInt(); #endif if (m_popDoc < 0) return; Rcl::Doc doc; if (!getDoc(m_popDoc, doc)) return; int options = ResultPopup::showSaveOne; if (m_ismainres) options |= ResultPopup::isMain; QMenu *popup = ResultPopup::create(this, options, m_source, doc); popup->popup(mapToGlobal(pos)); } void ResList::menuPreview() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) { if (m_ismainres) { emit docPreviewClicked(m_popDoc, doc, 0); } else { emit previewRequested(doc); } } } void ResList::menuSaveToFile() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) emit docSaveToFileClicked(doc); } void ResList::menuPreviewParent() { Rcl::Doc doc; if (getDoc(m_popDoc, doc) && !m_source.isNull()) { Rcl::Doc pdoc = ResultPopup::getParent(m_source, doc); if (pdoc.mimetype == "inode/directory") { emit editRequested(pdoc); } else { emit previewRequested(pdoc); } } } void ResList::menuOpenParent() { Rcl::Doc doc; if (getDoc(m_popDoc, doc) && m_source.isNotNull()) emit editRequested(ResultPopup::getParent(m_source, doc)); } void ResList::menuShowSnippets() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) emit showSnippets(doc); } void ResList::menuShowSubDocs() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) emit showSubDocs(doc); } void ResList::menuEdit() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) emit editRequested(doc); } void ResList::menuOpenWith(QAction *act) { if (act == 0) return; string cmd = qs2utf8s(act->data().toString()); Rcl::Doc doc; if (getDoc(m_popDoc, doc)) emit openWithRequested(doc, cmd); } void ResList::menuCopyFN() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) ResultPopup::copyFN(doc); } void ResList::menuCopyURL() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) ResultPopup::copyURL(doc); } void ResList::menuExpand() { Rcl::Doc doc; if (getDoc(m_popDoc, doc)) emit docExpand(doc); } int ResList::pageFirstDocNum() { return m_pager->pageFirstDocNum(); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/crontool.h����������������������������������������������������������������������0000644�0001750�0001750�00000002435�12602163537�015534� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CRONTOOL_W_H_INCLUDED_ #define _CRONTOOL_W_H_INCLUDED_ #include "ui_crontool.h" class QPushButton; class CronToolW : public QDialog, public Ui::CronToolW { Q_OBJECT public: CronToolW(QWidget * parent = 0) : QDialog(parent), enableButton(0), disableButton(0) { setupUi(this); init(); } QPushButton *enableButton; QPushButton *disableButton; private slots: void enableCron(); void disableCron(); private: void init(); void changeCron(bool enable); }; #endif /* _CRONTOOL_W_H_INCLUDED_ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/fragbuts.cpp��������������������������������������������������������������������0000644�0001750�0001750�00000014465�12602163571�016051� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include <sys/stat.h> #include <string> #include <vector> #include <QHBoxLayout> #include <QVBoxLayout> #include <QCheckBox> #include <QRadioButton> #include <QButtonGroup> #include <QMessageBox> #include <QXmlDefaultHandler> #include "fragbuts.h" #include "pathut.h" #include "smallut.h" #include "recoll.h" #include "debuglog.h" #include "readfile.h" #include "copyfile.h" using namespace std; class FragButsParser : public QXmlDefaultHandler { public: FragButsParser(FragButs *_parent, vector<FragButs::ButFrag>& _buttons) : parent(_parent), vlw(new QVBoxLayout(parent)), vl(new QVBoxLayout()), buttons(_buttons), hl(0), bg(0), radio(false) { } bool startElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName, const QXmlAttributes &attributes); bool endElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName); bool characters(const QString &str) { currentText += str; return true; } bool error(const QXmlParseException& exception) { fatalError(exception); return false; } bool fatalError(const QXmlParseException& x) { errorMessage = QString("%2 at line %3 column %4") .arg(x.message()) .arg(x.lineNumber()) .arg(x.columnNumber()); return false; } QString errorMessage; private: QWidget *parent; QVBoxLayout *vlw; QVBoxLayout *vl; vector<FragButs::ButFrag>& buttons; // Temporary data while parsing. QHBoxLayout *hl; QButtonGroup *bg; QString currentText; QString label; string frag; bool radio; }; bool FragButsParser::startElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName, const QXmlAttributes &/*attributes*/) { currentText = ""; if (qName == "buttons") { radio = false; hl = new QHBoxLayout(); } else if (qName == "radiobuttons") { radio = true; bg = new QButtonGroup(parent); hl = new QHBoxLayout(); } return true; } bool FragButsParser::endElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName) { if (qName == "label") { label = currentText; } else if (qName == "frag") { frag = qs2utf8s(currentText); } else if (qName == "fragbut") { string slab = qs2utf8s(label); trimstring(slab, " \t\n\t"); label = QString::fromUtf8(slab.c_str()); QAbstractButton *abut; if (radio) { QRadioButton *but = new QRadioButton(label, parent); bg->addButton(but); if (bg->buttons().length() == 1) but->setChecked(true); abut = but; } else { QCheckBox *but = new QCheckBox(label, parent); abut = but; } abut->setToolTip(currentText); buttons.push_back(FragButs::ButFrag(abut, frag)); hl->addWidget(abut); } else if (qName == "buttons" || qName == "radiobuttons") { vl->addLayout(hl); hl = 0; } else if (qName == "fragbuts") { vlw->addLayout(vl); } return true; } FragButs::FragButs(QWidget* parent) : QWidget(parent), m_reftime(0), m_ok(false) { m_fn = path_cat(theconfig->getConfDir(), "fragbuts.xml"); string data, reason; if (access(m_fn.c_str(), 0) != 0) { // config does not exist: try to create it from sample string src = path_cat(theconfig->getDatadir(), "examples"); src = path_cat(src, "fragbuts.xml"); copyfile(src.c_str(), m_fn.c_str(), reason); } if (!file_to_string(m_fn, data, &reason)) { QMessageBox::warning(0, "Recoll", tr("%1 not found.").arg( QString::fromLocal8Bit(m_fn.c_str()))); LOGERR(("Fragbuts:: can't read [%s]\n", m_fn.c_str())); return; } FragButsParser parser(this, m_buttons); QXmlSimpleReader reader; reader.setContentHandler(&parser); reader.setErrorHandler(&parser); QXmlInputSource xmlInputSource; xmlInputSource.setData(QString::fromUtf8(data.c_str())); if (!reader.parse(xmlInputSource)) { QMessageBox::warning(0, "Recoll", tr("%1:\n %2") .arg(QString::fromLocal8Bit(m_fn.c_str())) .arg(parser.errorMessage)); return; } for (vector<ButFrag>::iterator it = m_buttons.begin(); it != m_buttons.end(); it++) { connect(it->button, SIGNAL(clicked(bool)), this, SLOT(onButtonClicked(bool))); } setWindowTitle(tr("Query Fragments")); isStale(&m_reftime); m_ok = true; } FragButs::~FragButs() { } bool FragButs::isStale(time_t *reftime) { struct stat st; stat(m_fn.c_str(), &st); bool ret = st.st_mtime != m_reftime; if (reftime) *reftime = st.st_mtime; return ret; } void FragButs::onButtonClicked(bool on) { LOGDEB(("FragButs::onButtonClicked: [%d]\n", int(on))); emit fragmentsChanged(); } void FragButs::getfrags(std::vector<std::string>& frags) { for (vector<ButFrag>::iterator it = m_buttons.begin(); it != m_buttons.end(); it++) { if (it->button->isChecked() && !it->fragment.empty()) { LOGDEB(("FragButs: fragment [%s]\n", it->fragment.c_str())); frags.push_back(it->fragment); } } } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/restable.h����������������������������������������������������������������������0000644�0001750�0001750�00000013070�12602163572�015472� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RESTABLE_H_INCLUDED_ #define _RESTABLE_H_INCLUDED_ #include <Qt> #include <string> #include <map> #include <vector> #include "ui_restable.h" #include "refcntr.h" #include "docseq.h" #include "plaintorich.h" class ResTable; typedef std::string (FieldGetter)(const std::string& fldname, const Rcl::Doc& doc); class RecollModel : public QAbstractTableModel { Q_OBJECT public: RecollModel(const QStringList fields, QObject *parent = 0); // Reimplemented methods virtual int rowCount (const QModelIndex& = QModelIndex()) const; virtual int columnCount(const QModelIndex& = QModelIndex()) const; virtual QVariant headerData (int col, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole ) const; virtual void saveAsCSV(FILE *fp); virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); // Specific methods virtual void readDocSource(); virtual void setDocSource(RefCntr<DocSequence> nsource); virtual RefCntr<DocSequence> getDocSource() {return m_source;} virtual void deleteColumn(int); virtual const std::vector<std::string>& getFields() {return m_fields;} virtual const std::map<std::string, QString>& getAllFields() { return o_displayableFields; } virtual void addColumn(int, const std::string&); // Some column name are aliases/translator for base document field // (ie: date, datetime->mtime). Help deal with this: virtual std::string baseField(const std::string&); // Ignore sort() call because virtual void setIgnoreSort(bool onoff) {m_ignoreSort = onoff;} friend class ResTable; signals: void sortDataChanged(DocSeqSortSpec); private: mutable RefCntr<DocSequence> m_source; std::vector<std::string> m_fields; std::vector<FieldGetter*> m_getters; static std::map<std::string, QString> o_displayableFields; bool m_ignoreSort; FieldGetter* chooseGetter(const std::string&); HighlightData m_hdata; }; class ResTable; // Modified textBrowser for the detail area class ResTableDetailArea : public QTextBrowser { Q_OBJECT; public: ResTableDetailArea(ResTable* parent = 0); public slots: virtual void createPopupMenu(const QPoint& pos); private: ResTable *m_table; }; class ResTablePager; class QUrl; class RclMain; class ResTable : public QWidget, public Ui::ResTable { Q_OBJECT public: ResTable(QWidget* parent = 0) : QWidget(parent), m_model(0), m_pager(0), m_detail(0), m_detaildocnum(-1), m_rclmain(0), m_ismainres(true) { setupUi(this); init(); } virtual ~ResTable() {} virtual RecollModel *getModel() {return m_model;} virtual ResTableDetailArea* getDetailArea() {return m_detail;} virtual int getDetailDocNumOrTopRow(); void setRclMain(RclMain *m, bool ismain); public slots: virtual void onTableView_currentChanged(const QModelIndex&); virtual void on_tableView_entered(const QModelIndex& index); virtual void setDocSource(RefCntr<DocSequence> nsource); virtual void saveColState(); virtual void resetSource(); virtual void readDocSource(bool resetPos = true); virtual void onSortDataChanged(DocSeqSortSpec); virtual void createPopupMenu(const QPoint& pos); virtual void onDoubleClick(const QModelIndex&); virtual void menuPreview(); virtual void menuSaveToFile(); virtual void menuSaveSelection(); virtual void menuEdit(); virtual void menuEditAndQuit(); virtual void menuOpenWith(QAction *); virtual void menuCopyFN(); virtual void menuCopyURL(); virtual void menuExpand(); virtual void menuPreviewParent(); virtual void menuOpenParent(); virtual void menuShowSnippets(); virtual void menuShowSubDocs(); virtual void createHeaderPopupMenu(const QPoint&); virtual void deleteColumn(); virtual void addColumn(); virtual void resetSort(); // Revert to natural (relevance) order virtual void saveAsCSV(); virtual void linkWasClicked(const QUrl&); virtual void makeRowVisible(int row); virtual void takeFocus(); signals: void docPreviewClicked(int, Rcl::Doc, int); void docSaveToFileClicked(Rcl::Doc); void previewRequested(Rcl::Doc); void editRequested(Rcl::Doc); void openWithRequested(Rcl::Doc, string cmd); void headerClicked(); void docExpand(Rcl::Doc); void showSubDocs(Rcl::Doc); void showSnippets(Rcl::Doc); friend class ResTablePager; friend class ResTableDetailArea; private: void init(); RecollModel *m_model; ResTablePager *m_pager; ResTableDetailArea *m_detail; int m_detaildocnum; Rcl::Doc m_detaildoc; int m_popcolumn; RclMain *m_rclmain; bool m_ismainres; }; #endif /* _RESTABLE_H_INCLUDED_ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/multisave.h���������������������������������������������������������������������0000644�0001750�0001750�00000001653�12602163537�015707� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MULTISAVE_W_H_INCLUDED_ #define _MULTISAVE_W_H_INCLUDED_ #include <QWidget> extern void multiSave(QWidget *parent, vector<Rcl::Doc>& docs); #endif /* _MULTISAVE_W_H_INCLUDED_ */ �������������������������������������������������������������������������������������recoll-1.21.5/qtgui/rtitool.ui����������������������������������������������������������������������0000644�0001750�0001750�00000007545�12602163537�015566� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>RTIToolW</class> <widget class="QDialog" name="RTIToolW"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>423</width> <height>207</height> </rect> </property> <property name="windowTitle"> <string>Real time indexing automatic start</string> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label"> <property name="text"> <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html></string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QCheckBox" name="sesCB"> <property name="text"> <string>Start indexing daemon with my desktop session.</string> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>28</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QCheckBox" name="nowCB"> <property name="enabled"> <bool>false</bool> </property> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Also start indexing daemon right now.</string> </property> </widget> </item> </layout> </item> </layout> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>RTIToolW</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>204</x> <y>159</y> </hint> <hint type="destinationlabel"> <x>204</x> <y>90</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>RTIToolW</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>204</x> <y>159</y> </hint> <hint type="destinationlabel"> <x>204</x> <y>90</y> </hint> </hints> </connection> </connections> </ui> �����������������������������������������������������������������������������������������������������������������������������������������������������������recoll-1.21.5/qtgui/preview_w.cpp�������������������������������������������������������������������0000644�0001750�0001750�00000110654�12602163572�016241� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <unistd.h> #include <stdlib.h> #include <time.h> #include <sys/stat.h> #include <list> #include <utility> #ifndef NO_NAMESPACES using std::pair; #endif /* NO_NAMESPACES */ #include <qmessagebox.h> #include <qthread.h> #include <qvariant.h> #include <qpushbutton.h> #include <qtabwidget.h> #include <qprinter.h> #include <qprintdialog.h> #include <qscrollbar.h> #include <qmenu.h> #include <qtextedit.h> #include <qtextbrowser.h> #include <qprogressdialog.h> #include <qevent.h> #include <qlabel.h> #include <qlineedit.h> #include <qcheckbox.h> #include <qlayout.h> #include <qtooltip.h> #include <qwhatsthis.h> #include <qapplication.h> #include <qclipboard.h> #include <qimage.h> #include <qurl.h> #include "debuglog.h" #include "pathut.h" #include "internfile.h" #include "recoll.h" #include "plaintorich.h" #include "smallut.h" #include "wipedir.h" #include "cancelcheck.h" #include "preview_w.h" #include "guiutils.h" #include "docseqhist.h" #include "rclhelp.h" // Subclass plainToRich to add <termtag>s and anchors to the preview text class PlainToRichQtPreview : public PlainToRich { public: PlainToRichQtPreview() : m_curanchor(1), m_lastanchor(0) { } void clear() { m_curanchor = 1; m_lastanchor = 0; m_groupanchors.clear(); m_groupcuranchors.clear(); } bool haveAnchors() { return m_lastanchor != 0; } virtual string header() { if (!m_inputhtml) { switch (prefs.previewPlainPre) { case PrefsPack::PP_BR: m_eolbr = true; return "<qt><head><title>"; case PrefsPack::PP_PRE: m_eolbr = false; return "
";
	    case PrefsPack::PP_PREWRAP:
		m_eolbr = false;
		return ""
		    "
";
	    }
	}
	return cstr_null;
    }

    virtual string startMatch(unsigned int grpidx)
    {
	LOGDEB2(("startMatch, grpidx %u\n", grpidx));
	grpidx = m_hdata->grpsugidx[grpidx];
	LOGDEB2(("startMatch, ugrpidx %u\n", grpidx));
	m_groupanchors[grpidx].push_back(++m_lastanchor);
	m_groupcuranchors[grpidx] = 0; 
	return string("").
	    append("");
    }

    virtual string endMatch() 
    {
	return string("");
    }

    virtual string termAnchorName(int i) const
    {
	static const char *termAnchorNameBase = "TRM";
	char acname[sizeof(termAnchorNameBase) + 20];
	sprintf(acname, "%s%d", termAnchorNameBase, i);
	return string(acname);
    }

    virtual string startChunk() 
    { 
	return "
";
    }

    int nextAnchorNum(int grpidx)
    {
	LOGDEB2(("nextAnchorNum: group %d\n", grpidx));
	map::iterator curit = 
	    m_groupcuranchors.find(grpidx);
	map >::iterator vecit = 
	    m_groupanchors.find(grpidx);
	if (grpidx == -1 || curit == m_groupcuranchors.end() ||
	    vecit == m_groupanchors.end()) {
	    if (m_curanchor >= m_lastanchor)
		m_curanchor = 1;
	    else
		m_curanchor++;
	} else {
	    if (curit->second >= vecit->second.size() -1)
		m_groupcuranchors[grpidx] = 0;
	    else 
		m_groupcuranchors[grpidx]++;
	    m_curanchor = vecit->second[m_groupcuranchors[grpidx]];
	    LOGDEB2(("nextAnchorNum: curanchor now %d\n", m_curanchor));
	}
	return m_curanchor;
    }

    int prevAnchorNum(int grpidx)
    {
	map::iterator curit = 
	    m_groupcuranchors.find(grpidx);
	map >::iterator vecit = 
	    m_groupanchors.find(grpidx);
	if (grpidx == -1 || curit == m_groupcuranchors.end() ||
	    vecit == m_groupanchors.end()) {
	    if (m_curanchor <= 1)
		m_curanchor = m_lastanchor;
	    else
		m_curanchor--;
	} else {
	    if (curit->second <= 0)
		m_groupcuranchors[grpidx] = vecit->second.size() -1;
	    else 
		m_groupcuranchors[grpidx]--;
	    m_curanchor = vecit->second[m_groupcuranchors[grpidx]];
	}
	return m_curanchor;
    }

    QString curAnchorName() const
    {
	return QString::fromUtf8(termAnchorName(m_curanchor).c_str());
    }

private:
    int m_curanchor;
    int m_lastanchor;
    // Lists of anchor numbers (match locations) for the term (groups)
    // in the query (the map key is and index into HighlightData.groups).
    map > m_groupanchors;
    map m_groupcuranchors;
};

void Preview::init()
{
    setObjectName("Preview");
    QVBoxLayout* previewLayout = new QVBoxLayout(this);

    pvTab = new QTabWidget(this);

    // Create the first tab. Should be possible to use addEditorTab
    // but this causes a pb with the sizeing
    QWidget *unnamed = new QWidget(pvTab);
    QVBoxLayout *unnamedLayout = new QVBoxLayout(unnamed);
    PreviewTextEdit *pvEdit = new PreviewTextEdit(unnamed, "pvEdit", this);
    pvEdit->setReadOnly(true);
    pvEdit->setUndoRedoEnabled(false);
    unnamedLayout->addWidget(pvEdit);
    pvTab->addTab(unnamed, "");

    previewLayout->addWidget(pvTab);

    // Create the buttons and entry field
    QHBoxLayout *layout3 = new QHBoxLayout(0); 
    searchLabel = new QLabel(this);
    layout3->addWidget(searchLabel);

    searchTextCMB = new QComboBox(this);
    searchTextCMB->setEditable(true);
    searchTextCMB->setInsertPolicy(QComboBox::NoInsert);
    searchTextCMB->setDuplicatesEnabled(false);
    for (unsigned int i = 0; i < m_hData.ugroups.size(); i++) {
	QString s;
	for (unsigned int j = 0; j < m_hData.ugroups[i].size(); j++) {
	    s.append(QString::fromUtf8(m_hData.ugroups[i][j].c_str()));
	    if (j != m_hData.ugroups[i].size()-1)
		s.append(" ");
	}
	searchTextCMB->addItem(s);
    }
    searchTextCMB->setEditText("");
    searchTextCMB->setCompleter(0);

    layout3->addWidget(searchTextCMB);

    nextButton = new QPushButton(this);
    nextButton->setEnabled(true);
    layout3->addWidget(nextButton);
    prevButton = new QPushButton(this);
    prevButton->setEnabled(true);
    layout3->addWidget(prevButton);
    clearPB = new QPushButton(this);
    clearPB->setEnabled(false);
    layout3->addWidget(clearPB);
    matchCheck = new QCheckBox(this);
    layout3->addWidget(matchCheck);

    previewLayout->addLayout(layout3);

    resize(QSize(640, 480).expandedTo(minimumSizeHint()));

    // buddies
    searchLabel->setBuddy(searchTextCMB);

    searchLabel->setText(tr("&Search for:"));
    nextButton->setText(tr("&Next"));
    prevButton->setText(tr("&Previous"));
    clearPB->setText(tr("Clear"));
    matchCheck->setText(tr("Match &Case"));

    QPushButton * bt = new QPushButton(tr("Close Tab"), this);
    pvTab->setCornerWidget(bt);

    (void)new HelpClient(this);
    HelpClient::installMap((const char *)objectName().toUtf8(), 
			   "RCL.SEARCH.PREVIEW");

    // signals and slots connections
    connect(searchTextCMB, SIGNAL(activated(int)), 
	    this, SLOT(searchTextFromIndex(int)));
    connect(searchTextCMB, SIGNAL(editTextChanged(const QString&)), 
	    this, SLOT(searchTextChanged(const QString&)));
    connect(nextButton, SIGNAL(clicked()), this, SLOT(nextPressed()));
    connect(prevButton, SIGNAL(clicked()), this, SLOT(prevPressed()));
    connect(clearPB, SIGNAL(clicked()), searchTextCMB, SLOT(clearEditText()));
    connect(pvTab, SIGNAL(currentChanged(int)), 
	    this, SLOT(currentChanged(int)));
    connect(bt, SIGNAL(clicked()), this, SLOT(closeCurrentTab()));

    m_dynSearchActive = false;
    m_canBeep = true;
    if (prefs.pvwidth > 100) {
	resize(prefs.pvwidth, prefs.pvheight);
    }
    m_loading = false;
    currentChanged(pvTab->currentIndex());
    m_justCreated = true;
}

void Preview::closeEvent(QCloseEvent *e)
{
    LOGDEB(("Preview::closeEvent. m_loading %d\n", m_loading));
    if (m_loading) {
	CancelCheck::instance().setCancel();
	e->ignore();
	return;
    }
    prefs.pvwidth = width();
    prefs.pvheight = height();

    /* Release all temporary files (but maybe none is actually set) */
    for (int i = 0; i < pvTab->count(); i++) {
        QWidget *tw = pvTab->widget(i);
        if (tw) {
	    PreviewTextEdit *edit = 
		tw->findChild("pvEdit");
            if (edit) {
		forgetTempFile(edit->m_tmpfilename);
            }
        }
    }
    emit previewExposed(this, m_searchId, -1);
    emit previewClosed(this);
    QWidget::closeEvent(e);
}

extern const char *eventTypeToStr(int tp);

bool Preview::eventFilter(QObject *target, QEvent *event)
{
    if (event->type() != QEvent::KeyPress) {
#if 0
    LOGDEB(("Preview::eventFilter(): %s\n", eventTypeToStr(event->type())));
	if (event->type() == QEvent::MouseButtonRelease) {
	    QMouseEvent *mev = (QMouseEvent *)event;
	    LOGDEB(("Mouse: GlobalY %d y %d\n", mev->globalY(),
		    mev->y()));
	}
#endif
	return false;
    }
    
    LOGDEB2(("Preview::eventFilter: keyEvent\n"));

    PreviewTextEdit *edit = currentEditor();
    QKeyEvent *keyEvent = (QKeyEvent *)event;
    if (keyEvent->key() == Qt::Key_Escape) {
	close();
	return true;
    } else if (keyEvent->key() == Qt::Key_Down &&
	       (keyEvent->modifiers() & Qt::ShiftModifier)) {
	LOGDEB2(("Preview::eventFilter: got Shift-Up\n"));
	if (edit) 
	    emit(showNext(this, m_searchId, edit->m_docnum));
	return true;
    } else if (keyEvent->key() == Qt::Key_Up &&
	       (keyEvent->modifiers() & Qt::ShiftModifier)) {
	LOGDEB2(("Preview::eventFilter: got Shift-Down\n"));
	if (edit) 
	    emit(showPrev(this, m_searchId, edit->m_docnum));
	return true;
    } else if (keyEvent->key() == Qt::Key_W &&
	       (keyEvent->modifiers() & Qt::ControlModifier)) {
	LOGDEB2(("Preview::eventFilter: got ^W\n"));
	closeCurrentTab();
	return true;
    } else if (keyEvent->key() == Qt::Key_P &&
	       (keyEvent->modifiers() & Qt::ControlModifier)) {
	LOGDEB2(("Preview::eventFilter: got ^P\n"));
	emit(printCurrentPreviewRequest());
	return true;
    } else if (m_dynSearchActive) {
	if (keyEvent->key() == Qt::Key_F3) {
	    LOGDEB2(("Preview::eventFilter: got F3\n"));
	    doSearch(searchTextCMB->currentText(), true, false);
	    return true;
	}
	if (target != searchTextCMB)
	    return QApplication::sendEvent(searchTextCMB, event);
    } else {
	if (edit && 
	    (target == edit || target == edit->viewport())) {
	    if (keyEvent->key() == Qt::Key_Slash ||
		(keyEvent->key() == Qt::Key_F &&
		 (keyEvent->modifiers() & Qt::ControlModifier))) {
		LOGDEB2(("Preview::eventFilter: got / or C-F\n"));
		searchTextCMB->setFocus();
		m_dynSearchActive = true;
		return true;
	    } else if (keyEvent->key() == Qt::Key_Space) {
		LOGDEB2(("Preview::eventFilter: got Space\n"));
		int value = edit->verticalScrollBar()->value();
		value += edit->verticalScrollBar()->pageStep();
		edit->verticalScrollBar()->setValue(value);
		return true;
	    } else if (keyEvent->key() == Qt::Key_Backspace) {
		LOGDEB2(("Preview::eventFilter: got Backspace\n"));
		int value = edit->verticalScrollBar()->value();
		value -= edit->verticalScrollBar()->pageStep();
		edit->verticalScrollBar()->setValue(value);
		return true;
	    }
	}
    }

    return false;
}

void Preview::searchTextChanged(const QString & text)
{
    LOGDEB1(("Search line text changed. text: '%s'\n", 
	     (const char *)text.toUtf8()));
    m_searchTextFromIndex = -1;
    if (text.isEmpty()) {
	m_dynSearchActive = false;
	clearPB->setEnabled(false);
    } else {
	m_dynSearchActive = true;
	clearPB->setEnabled(true);
	doSearch(text, false, false);
    }
}

void Preview::searchTextFromIndex(int idx)
{
    LOGDEB1(("search line from index %d\n", idx));
    m_searchTextFromIndex = idx;
}

PreviewTextEdit *Preview::currentEditor()
{
    LOGDEB2(("Preview::currentEditor()\n"));
    QWidget *tw = pvTab->currentWidget();
    PreviewTextEdit *edit = 0;
    if (tw) {
	edit = tw->findChild("pvEdit");
    }
    return edit;
}

// Save current document to file
void Preview::emitSaveDocToFile()
{
    PreviewTextEdit *ce = currentEditor();
    if (ce && !ce->m_dbdoc.url.empty()) {
	emit saveDocToFile(ce->m_dbdoc);
    }
}

// Perform text search. If next is true, we look for the next match of the
// current search, trying to advance and possibly wrapping around. If next is
// false, the search string has been modified, we search for the new string, 
// starting from the current position
void Preview::doSearch(const QString &_text, bool next, bool reverse, 
		       bool wordOnly)
{
    LOGDEB(("Preview::doSearch: text [%s] idx %d next %d rev %d word %d\n", 
	    (const char *)_text.toUtf8(), m_searchTextFromIndex, int(next), 
	    int(reverse), int(wordOnly)));
    QString text = _text;

    bool matchCase = matchCheck->isChecked();
    PreviewTextEdit *edit = currentEditor();
    if (edit == 0) {
	// ??
	return;
    }

    if (text.isEmpty() || m_searchTextFromIndex != -1) {
	if (!edit->m_plaintorich->haveAnchors()) {
	    LOGDEB(("NO ANCHORS\n"));
	    return;
	}
	// The combobox indices are equal to the search ugroup indices
	// in hldata, that's how we built the list.
	if (reverse) {
	    edit->m_plaintorich->prevAnchorNum(m_searchTextFromIndex);
	} else {
	    edit->m_plaintorich->nextAnchorNum(m_searchTextFromIndex);
	}
	QString aname = edit->m_plaintorich->curAnchorName();
	LOGDEB(("Calling scrollToAnchor(%s)\n", (const char *)aname.toUtf8()));
	edit->scrollToAnchor(aname);
	// Position the cursor approximately at the anchor (top of
	// viewport) so that searches start from here
	QTextCursor cursor = edit->cursorForPosition(QPoint(0, 0));
	edit->setTextCursor(cursor);
	return;
    }

    // If next is false, the user added characters to the current
    // search string.  We need to reset the cursor position to the
    // start of the previous match, else incremental search is going
    // to look for the next occurrence instead of trying to lenghten
    // the current match
    if (!next) {
	QTextCursor cursor = edit->textCursor();
	cursor.setPosition(cursor.anchor(), QTextCursor::KeepAnchor);
	edit->setTextCursor(cursor);
    }
    Chrono chron;
    LOGDEB(("Preview::doSearch: first find call\n"));
    QTextDocument::FindFlags flags = 0;
    if (reverse)
	flags |= QTextDocument::FindBackward;
    if (wordOnly)
	flags |= QTextDocument::FindWholeWords;
    if (matchCase)
	flags |= QTextDocument::FindCaseSensitively;
    bool found = edit->find(text, flags);
    LOGDEB(("Preview::doSearch: first find call return: found %d %.2f S\n", 
            found, chron.secs()));
    // If not found, try to wrap around. 
    if (!found) { 
	LOGDEB(("Preview::doSearch: wrapping around\n"));
	if (reverse) {
	    edit->moveCursor (QTextCursor::End);
	} else {
	    edit->moveCursor (QTextCursor::Start);
	}
	LOGDEB(("Preview::doSearch: 2nd find call\n"));
        chron.restart();
	found = edit->find(text, flags);
	LOGDEB(("Preview::doSearch: 2nd find call return found %d %.2f S\n",
                found, chron.secs()));
    }

    if (found) {
	m_canBeep = true;
    } else {
	if (m_canBeep)
	    QApplication::beep();
	m_canBeep = false;
    }
    LOGDEB(("Preview::doSearch: return\n"));
}

void Preview::nextPressed()
{
    LOGDEB2(("Preview::nextPressed\n"));
    doSearch(searchTextCMB->currentText(), true, false);
}

void Preview::prevPressed()
{
    LOGDEB2(("Preview::prevPressed\n"));
    doSearch(searchTextCMB->currentText(), true, true);
}

// Called when user clicks on tab
void Preview::currentChanged(int index)
{
    LOGDEB2(("PreviewTextEdit::currentChanged\n"));
    QWidget *tw = pvTab->widget(index);
    PreviewTextEdit *edit = 
	tw->findChild("pvEdit");
    LOGDEB1(("Preview::currentChanged(). Editor: %p\n", edit));
    
    if (edit == 0) {
	LOGERR(("Editor child not found\n"));
	return;
    }
    edit->setFocus();
    // Disconnect the print signal and reconnect it to the current editor
    LOGDEB(("Disconnecting reconnecting print signal\n"));
    disconnect(this, SIGNAL(printCurrentPreviewRequest()), 0, 0);
    connect(this, SIGNAL(printCurrentPreviewRequest()), edit, SLOT(print()));
    edit->installEventFilter(this);
    edit->viewport()->installEventFilter(this);
    searchTextCMB->installEventFilter(this);
    emit(previewExposed(this, m_searchId, edit->m_docnum));
}

void Preview::closeCurrentTab()
{
    LOGDEB1(("Preview::closeCurrentTab: m_loading %d\n", m_loading));
    if (m_loading) {
	CancelCheck::instance().setCancel();
	return;
    }
    PreviewTextEdit *e = currentEditor();
    if (e)
	forgetTempFile(e->m_tmpfilename);
    if (pvTab->count() > 1) {
	pvTab->removeTab(pvTab->currentIndex());
    } else {
	close();
    }
}

PreviewTextEdit *Preview::addEditorTab()
{
    LOGDEB1(("PreviewTextEdit::addEditorTab()\n"));
    QWidget *anon = new QWidget((QWidget *)pvTab);
    QVBoxLayout *anonLayout = new QVBoxLayout(anon); 
    PreviewTextEdit *editor = new PreviewTextEdit(anon, "pvEdit", this);
    editor->setReadOnly(true);
    editor->setUndoRedoEnabled(false );
    anonLayout->addWidget(editor);
    pvTab->addTab(anon, "Tab");
    pvTab->setCurrentIndex(pvTab->count() -1);
    return editor;
}

void Preview::setCurTabProps(const Rcl::Doc &doc, int docnum)
{
    LOGDEB1(("Preview::setCurTabProps\n"));
    QString title;
    string ctitle;
    if (doc.getmeta(Rcl::Doc::keytt, &ctitle) && !ctitle.empty()) {
	title = QString::fromUtf8(ctitle.c_str(), ctitle.length());
    } else {
        title = QString::fromLocal8Bit(path_getsimple(doc.url).c_str());
    }
    if (title.length() > 20) {
	title = title.left(10) + "..." + title.right(10);
    }
    int curidx = pvTab->currentIndex();
    pvTab->setTabText(curidx, title);

    char datebuf[100];
    datebuf[0] = 0;
    if (!doc.fmtime.empty() || !doc.dmtime.empty()) {
	time_t mtime = doc.dmtime.empty() ? 
	    atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str());
	struct tm *tm = localtime(&mtime);
	strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S", tm);
    }
    LOGDEB(("Doc.url: [%s]\n", doc.url.c_str()));
    string url;
    printableUrl(theconfig->getDefCharset(), doc.url, url);
    string tiptxt = url + string("\n");
    tiptxt += doc.mimetype + " " + string(datebuf) + "\n";
    if (!ctitle.empty())
	tiptxt += ctitle + "\n";
    pvTab->setTabToolTip(curidx,
			 QString::fromUtf8(tiptxt.c_str(), tiptxt.length()));

    PreviewTextEdit *e = currentEditor();
    if (e) {
	e->m_url = doc.url;
	e->m_ipath = doc.ipath;
	e->m_docnum = docnum;
    }
}

bool Preview::makeDocCurrent(const Rcl::Doc& doc, int docnum, bool sametab)
{
    LOGDEB(("Preview::makeDocCurrent: %s\n", doc.url.c_str()));

    if (m_loading) {
	LOGERR(("Already loading\n"));
	return false;
    }

    /* Check if we already have this page */
    for (int i = 0; i < pvTab->count(); i++) {
        QWidget *tw = pvTab->widget(i);
        if (tw) {
	    PreviewTextEdit *edit = 
		tw->findChild("pvEdit");
            if (edit && !edit->m_url.compare(doc.url) && 
                !edit->m_ipath.compare(doc.ipath)) {
                pvTab->setCurrentIndex(i);
                return true;
            }
        }
    }

    // if just created the first tab was created during init
    if (!sametab && !m_justCreated && !addEditorTab()) {
	return false;
    }
    m_justCreated = false;
    if (!loadDocInCurrentTab(doc, docnum)) {
	closeCurrentTab();
	return false;
    }
    raise();
    return true;
}
void Preview::togglePlainPre()
{
    switch (prefs.previewPlainPre) {
    case PrefsPack::PP_BR:
	prefs.previewPlainPre = PrefsPack::PP_PRE;
	break;
    case PrefsPack::PP_PRE:
	prefs.previewPlainPre = PrefsPack::PP_BR;
	break;
    case PrefsPack::PP_PREWRAP:
    default:
	prefs.previewPlainPre = PrefsPack::PP_PRE;
	break;
    }
    
    PreviewTextEdit *editor = currentEditor();
    if (editor)
	loadDocInCurrentTab(editor->m_dbdoc, editor->m_docnum);
}

void Preview::emitWordSelect(QString word)
{
    emit(wordSelect(word));
}

/*
  Code for loading a file into an editor window. The operations that
  we call have no provision to indicate progression, and it would be
  complicated or impossible to modify them to do so (Ie: for external 
  format converters).

  We implement a complicated and ugly mechanism based on threads to indicate 
  to the user that the app is doing things: lengthy operations are done in 
  threads and we update a progress indicator while they proceed (but we have 
  no estimate of their total duration).
  
  It might be possible, but complicated (need modifications in
  handler) to implement a kind of bucket brigade, to have the
  beginning of the text displayed faster
*/

/* A thread to to the file reading / format conversion */
class LoadThread : public QThread {
    int *statusp;
    Rcl::Doc& out;
    const Rcl::Doc& idoc;
    int loglevel;
 public: 
    string missing;
    TempFile imgtmp;

    LoadThread(int *stp, Rcl::Doc& odoc, const Rcl::Doc& idc) 
	: statusp(stp), out(odoc), idoc(idc)
	{
	    loglevel = DebugLog::getdbl()->getlevel();
	}
    ~LoadThread() {
    }
    virtual void run() {
	DebugLog::getdbl()->setloglevel(loglevel);

	FileInterner interner(idoc, theconfig, FileInterner::FIF_forPreview);
	FIMissingStore mst;
	interner.setMissingStore(&mst);
	// Even when previewHtml is set, we don't set the interner's
	// target mtype to html because we do want the html filter to
	// do its work: we won't use the text/plain, but we want the
	// text/html to be converted to utf-8 (for highlight processing)
	try {
            string ipath = idoc.ipath;
	    FileInterner::Status ret = interner.internfile(out, ipath);
	    if (ret == FileInterner::FIDone || ret == FileInterner::FIAgain) {
		// FIAgain is actually not nice here. It means that the record
		// for the *file* of a multidoc was selected. Actually this
		// shouldn't have had a preview link at all, but we don't know
		// how to handle it now. Better to show the first doc than
		// a mysterious error. Happens when the file name matches a
		// a search term.
		*statusp = 0;
		// If we prefer html and it is available, replace the
		// text/plain document text
		if (prefs.previewHtml && !interner.get_html().empty()) {
		    out.text = interner.get_html();
		    out.mimetype = "text/html";
		}
		imgtmp = interner.get_imgtmp();
	    } else {
		out.mimetype = interner.getMimetype();
		mst.getMissingExternal(missing);
		*statusp = -1;
	    }
	} catch (CancelExcept) {
	    *statusp = -1;
	}
    }
};


// Insert into editor by chunks so that the top becomes visible
// earlier for big texts. This provokes some artifacts (adds empty line),
// so we can't set it too low.
#define CHUNKL 500*1000

/* A thread to convert to rich text (mark search terms) */
class ToRichThread : public QThread {
    string ∈
    const HighlightData &hdata;
    list &out;
    int loglevel;
    PlainToRichQtPreview *ptr;
 public:
    ToRichThread(string &i, const HighlightData& hd, list &o, 
		 PlainToRichQtPreview *_ptr)
	: in(i), hdata(hd), out(o), ptr(_ptr)
    {
	    loglevel = DebugLog::getdbl()->getlevel();
    }
    virtual void run()
    {
	DebugLog::getdbl()->setloglevel(loglevel);
	try {
	    ptr->plaintorich(in, out, hdata, CHUNKL);
	} catch (CancelExcept) {
	}
    }
};

class LoadGuard {
    bool *m_bp;
public:
    LoadGuard(bool *bp) {m_bp = bp ; *m_bp = true;}
    ~LoadGuard() {*m_bp = false; CancelCheck::instance().setCancel(false);}
};

bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
{
    LOGDEB1(("Preview::loadDocInCurrentTab()\n"));

    LoadGuard guard(&m_loading);
    CancelCheck::instance().setCancel(false);

    setCurTabProps(idoc, docnum);

    QString msg = QString("Loading: %1 (size %2 bytes)")
	.arg(QString::fromLocal8Bit(idoc.url.c_str()))
	.arg(QString::fromUtf8(idoc.fbytes.c_str()));

    // Create progress dialog and aux objects
    const int nsteps = 20;
    QProgressDialog progress(msg, tr("Cancel"), 0, nsteps, this);
    progress.setMinimumDuration(2000);

    ////////////////////////////////////////////////////////////////////////
    // Load and convert document
    // idoc came out of the index data (main text and some fields missing). 
    // fdoc is the complete one what we are going to extract from storage.
    Rcl::Doc fdoc;
    int status = 1;
    LoadThread lthr(&status, fdoc, idoc);
    lthr.start();
    int prog;
    for (prog = 1;;prog++) {
	if (lthr.wait(100))
	    break;
	progress.setValue(prog);
	qApp->processEvents();
	if (progress.wasCanceled()) {
	    CancelCheck::instance().setCancel();
	}
	if (prog >= 5)
	    sleep(1);
    }

    LOGDEB(("loadDocInCurrentTab: after file load: cancel %d status %d"
	    " text length %d\n", 
	    CancelCheck::instance().cancelState(), status, fdoc.text.length()));

    if (CancelCheck::instance().cancelState())
	return false;
    if (status != 0) {
        QString explain;
	if (!lthr.missing.empty()) {
            explain = QString::fromUtf8("
") + tr("Missing helper program: ") + QString::fromLocal8Bit(lthr.missing.c_str()); QMessageBox::warning(0, "Recoll", tr("Can't turn doc into internal " "representation for ") + fdoc.mimetype.c_str() + explain); } else { QMessageBox::warning(0, "Recoll", tr("Error while loading file")); } return false; } // Reset config just in case. theconfig->setKeyDir(""); //////////////////////////////////////////////////////////////////////// // Create preview text: highlight search terms // We don't do the highlighting for very big texts: too long. We // should at least do special char escaping, in case a '&' or '<' // somehow slipped through previous processing. bool highlightTerms = fdoc.text.length() < (unsigned long)prefs.maxhltextmbs * 1024 * 1024; // Final text is produced in chunks so that we can display the top // while still inserting at bottom list qrichlst; PreviewTextEdit *editor = currentEditor(); editor->m_plaintorich->clear(); // For an actual html file, if we want to have the images and // style loaded in the preview, we need to set the search // path. Not too sure this is a good idea as I find them rather // distracting when looking for text, esp. with qtextedit // relatively limited html support (text sometimes get hidden by // images). #if 0 string path = fileurltolocalpath(idoc.url); if (!path.empty()) { path = path_getfather(path); QStringList paths(QString::fromLocal8Bit(path.c_str())); editor->setSearchPaths(paths); } #endif editor->setHtml(""); editor->m_format = Qt::RichText; bool inputishtml = !fdoc.mimetype.compare("text/html"); #if 0 // For testing qtextedit bugs... highlightTerms = true; const char *textlist[] = { "Du plain text avec un\n termtag fin de ligne:", "texte apres le tag\n", }; const int listl = sizeof(textlist) / sizeof(char*); for (int i = 0 ; i < listl ; i++) qrichlst.push_back(QString::fromUtf8(textlist[i])); #else if (highlightTerms) { progress.setLabelText(tr("Creating preview text")); qApp->processEvents(); if (inputishtml) { LOGDEB1(("Preview: got html %s\n", fdoc.text.c_str())); editor->m_plaintorich->set_inputhtml(true); } else { LOGDEB1(("Preview: got plain %s\n", fdoc.text.c_str())); editor->m_plaintorich->set_inputhtml(false); } list richlst; ToRichThread rthr(fdoc.text, m_hData, richlst, editor->m_plaintorich); rthr.start(); for (;;prog++) { if (rthr.wait(100)) break; progress.setValue(nsteps); qApp->processEvents(); if (progress.wasCanceled()) { CancelCheck::instance().setCancel(); } if (prog >= 5) sleep(1); } // Conversion to rich text done if (CancelCheck::instance().cancelState()) { if (richlst.size() == 0 || richlst.front().length() == 0) { // We can't call closeCurrentTab here as it might delete // the object which would be a nasty surprise to our // caller. return false; } else { richlst.back() += "Cancelled !"; } } // Convert C++ string list to QString list for (list::iterator it = richlst.begin(); it != richlst.end(); it++) { qrichlst.push_back(QString::fromUtf8(it->c_str(), it->length())); } } else { LOGDEB(("Preview: no hilighting\n")); // No plaintorich() call. In this case, either the text is // html and the html quoting is hopefully correct, or it's // plain-text and there is no need to escape special // characters. We'd still want to split in chunks (so that the // top is displayed faster), but we must not cut tags, and // it's too difficult on html. For text we do the splitting on // a QString to avoid utf8 issues. QString qr = QString::fromUtf8(fdoc.text.c_str(), fdoc.text.length()); int l = 0; if (inputishtml) { qrichlst.push_back(qr); } else { editor->setPlainText(""); editor->m_format = Qt::PlainText; for (int pos = 0; pos < (int)qr.length(); pos += l) { l = MIN(CHUNKL, qr.length() - pos); qrichlst.push_back(qr.mid(pos, l)); } } } #endif /////////////////////////////////////////////////////////// // Load text into editor window. prog = 2 * nsteps / 3; progress.setLabelText(tr("Loading preview text into editor")); qApp->processEvents(); int instep = 0; for (list::iterator it = qrichlst.begin(); it != qrichlst.end(); it++, prog++, instep++) { progress.setValue(prog); qApp->processEvents(); editor->append(*it); // We need to save the rich text for printing, the editor does // not do it consistently for us. editor->m_richtxt.append(*it); if (progress.wasCanceled()) { editor->append("Cancelled !"); LOGDEB(("loadDocInCurrentTab: cancelled in editor load\n")); break; } } progress.close(); editor->m_curdsp = PreviewTextEdit::PTE_DSPTXT; //////////////////////////////////////////////////////////////////////// // Finishing steps // Maybe the text was actually empty ? Switch to fields then. Else free-up // the text memory in the loaded document. We still have a copy of the text // in editor->m_richtxt bool textempty = fdoc.text.empty(); if (!textempty) fdoc.text.clear(); editor->m_fdoc = fdoc; editor->m_dbdoc = idoc; if (textempty) editor->displayFields(); // If this is an image, display it instead of the text. if (!idoc.mimetype.compare(0, 6, "image/")) { string fn = fileurltolocalpath(idoc.url); // If the command wants a file but this is not a file url, or // there is an ipath that it won't understand, we need a temp file: theconfig->setKeyDir(path_getfather(fn)); if (fn.empty() || !idoc.ipath.empty()) { TempFile temp = lthr.imgtmp; if (temp.isNotNull()) { LOGDEB1(("Preview: load: got temp file from internfile\n")); } else if (!FileInterner::idocToFile(temp, string(), theconfig, idoc)) { temp.release(); // just in case. } if (temp.isNotNull()) { rememberTempFile(temp); fn = temp->filename(); editor->m_tmpfilename = fn; } else { editor->m_tmpfilename.erase(); fn.erase(); } } if (!fn.empty()) { editor->m_image = QImage(fn.c_str()); if (!editor->m_image.isNull()) editor->displayImage(); } } // Position the editor so that the first search term is visible if (searchTextCMB->currentText().length() != 0) { // If there is a current search string, perform the search m_canBeep = true; doSearch(searchTextCMB->currentText(), true, false); } else { // Position to the first query term if (editor->m_plaintorich->haveAnchors()) { QString aname = editor->m_plaintorich->curAnchorName(); LOGDEB2(("Call movetoanchor(%s)\n", (const char *)aname.toUtf8())); editor->scrollToAnchor(aname); // Position the cursor approximately at the anchor (top of // viewport) so that searches start from here QTextCursor cursor = editor->cursorForPosition(QPoint(0, 0)); editor->setTextCursor(cursor); } } // Enter document in document history string udi; if (idoc.getmeta(Rcl::Doc::keyudi, &udi)) { historyEnterDoc(g_dynconf, udi); } editor->setFocus(); emit(previewExposed(this, m_searchId, docnum)); LOGDEB(("loadDocInCurrentTab: returning true\n")); return true; } PreviewTextEdit::PreviewTextEdit(QWidget* parent, const char* nm, Preview *pv) : QTextBrowser(parent), m_preview(pv), m_plaintorich(new PlainToRichQtPreview()), m_dspflds(false), m_docnum(-1) { setContextMenuPolicy(Qt::CustomContextMenu); setObjectName(nm); connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(createPopupMenu(const QPoint&))); setOpenExternalLinks(false); setOpenLinks(false); } PreviewTextEdit::~PreviewTextEdit() { delete m_plaintorich; } void PreviewTextEdit::createPopupMenu(const QPoint& pos) { LOGDEB1(("PreviewTextEdit::createPopupMenu()\n")); QMenu *popup = new QMenu(this); switch (m_curdsp) { case PTE_DSPTXT: popup->addAction(tr("Show fields"), this, SLOT(displayFields())); if (!m_image.isNull()) popup->addAction(tr("Show image"), this, SLOT(displayImage())); break; case PTE_DSPFLDS: popup->addAction(tr("Show main text"), this, SLOT(displayText())); if (!m_image.isNull()) popup->addAction(tr("Show image"), this, SLOT(displayImage())); break; case PTE_DSPIMG: default: popup->addAction(tr("Show fields"), this, SLOT(displayFields())); popup->addAction(tr("Show main text"), this, SLOT(displayText())); break; } popup->addAction(tr("Select All"), this, SLOT(selectAll())); popup->addAction(tr("Copy"), this, SLOT(copy())); popup->addAction(tr("Print"), this, SLOT(print())); if (prefs.previewPlainPre) { popup->addAction(tr("Fold lines"), m_preview, SLOT(togglePlainPre())); } else { popup->addAction(tr("Preserve indentation"), m_preview, SLOT(togglePlainPre())); } // Need to check ipath until we fix the internfile bug that always // has it convert to html for top level docs if (!m_dbdoc.url.empty() && !m_dbdoc.ipath.empty()) popup->addAction(tr("Save document to file"), m_preview, SLOT(emitSaveDocToFile())); popup->popup(mapToGlobal(pos)); } // Display main text void PreviewTextEdit::displayText() { LOGDEB1(("PreviewTextEdit::displayText()\n")); if (m_format == Qt::PlainText) setPlainText(m_richtxt); else setHtml(m_richtxt); m_curdsp = PTE_DSPTXT; } // Display field values void PreviewTextEdit::displayFields() { LOGDEB1(("PreviewTextEdit::displayFields()\n")); QString txt = "\n"; txt += "" + QString::fromLocal8Bit(m_url.c_str()); if (!m_ipath.empty()) txt += "|" + QString::fromUtf8(m_ipath.c_str()); txt += "

"; txt += "
\n"; for (map::const_iterator it = m_fdoc.meta.begin(); it != m_fdoc.meta.end(); it++) { if (!it->second.empty()) txt += "
" + QString::fromUtf8(it->first.c_str()) + "
" + "
" + QString::fromUtf8(escapeHtml(it->second).c_str()) + "
\n"; } txt += "
"; setHtml(txt); m_curdsp = PTE_DSPFLDS; } void PreviewTextEdit::displayImage() { LOGDEB1(("PreviewTextEdit::displayImage()\n")); if (m_image.isNull()) displayText(); setPlainText(""); if (m_image.width() > width() || m_image.height() > height()) { m_image = m_image.scaled(width(), height(), Qt::KeepAspectRatio); } document()->addResource(QTextDocument::ImageResource, QUrl("image"), m_image); QTextCursor cursor = textCursor(); cursor.insertImage("image"); m_curdsp = PTE_DSPIMG; } void PreviewTextEdit::mouseDoubleClickEvent(QMouseEvent *event) { LOGDEB2(("PreviewTextEdit::mouseDoubleClickEvent\n")); QTextEdit::mouseDoubleClickEvent(event); if (textCursor().hasSelection() && m_preview) m_preview->emitWordSelect(textCursor().selectedText()); } void PreviewTextEdit::print() { LOGDEB(("PreviewTextEdit::print\n")); if (!m_preview) return; #ifndef QT_NO_PRINTER QPrinter printer; QPrintDialog *dialog = new QPrintDialog(&printer, this); dialog->setWindowTitle(tr("Print Current Preview")); if (dialog->exec() != QDialog::Accepted) return; QTextEdit::print(&printer); #endif } recoll-1.21.5/qtgui/searchclause_w.cpp0000644000175000017500000001346412602163537017224 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include "recoll.h" #include "debuglog.h" #include "searchclause_w.h" #include #include #include #include #include #include #include using namespace Rcl; /* * Constructs a SearchClauseW as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ SearchClauseW::SearchClauseW(QWidget* parent) : QWidget(parent) { QHBoxLayout* hLayout = new QHBoxLayout(this); sTpCMB = new QComboBox(this); sTpCMB->setEditable(false); hLayout->addWidget(sTpCMB); fldCMB = new QComboBox(this); fldCMB->setEditable(false); hLayout->addWidget(fldCMB); proxSlackSB = new QSpinBox(this); hLayout->addWidget(proxSlackSB); wordsLE = new QLineEdit(this); wordsLE->setMinimumSize(QSize(190, 0)); hLayout->addWidget(wordsLE); languageChange(); resize(QSize(0, 0).expandedTo(minimumSizeHint())); connect(sTpCMB, SIGNAL(activated(int)), this, SLOT(tpChange(int))); } /* * Destroys the object and frees any allocated resources */ SearchClauseW::~SearchClauseW() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void SearchClauseW::languageChange() { sTpCMB->clear(); sTpCMB->addItem(tr("Any")); // 0 sTpCMB->addItem(tr("All")); //1 sTpCMB->addItem(tr("None"));//2 sTpCMB->addItem(tr("Phrase"));//3 sTpCMB->addItem(tr("Proximity"));//4 sTpCMB->addItem(tr("File name"));//5 // sTpCMB->insertItem(tr("Complex clause"));//6 fldCMB->addItem(tr("No field")); if (theconfig) { set fields = theconfig->getIndexedFields(); for (set::const_iterator it = fields.begin(); it != fields.end(); it++) { // Some fields don't make sense here if (it->compare("filename")) { fldCMB->addItem(QString::fromUtf8(it->c_str())); } } } // Ensure that the spinbox will be enabled/disabled depending on // combobox state tpChange(0); sTpCMB->setToolTip(tr("Select the type of query that will be performed with the words")); proxSlackSB->setToolTip(tr("Number of additional words that may be interspersed with the chosen ones")); } // Translate my window state into an Rcl search clause SearchDataClause *SearchClauseW::getClause() { if (wordsLE->text().isEmpty()) return 0; string field; if (fldCMB->currentIndex() != 0) { field = (const char *)fldCMB->currentText().toUtf8(); } string text = (const char *)wordsLE->text().toUtf8(); switch (sTpCMB->currentIndex()) { case 0: return new SearchDataClauseSimple(SCLT_OR, text, field); case 1: return new SearchDataClauseSimple(SCLT_AND, text, field); case 2: { SearchDataClauseSimple *cl = new SearchDataClauseSimple(SCLT_OR, text, field); cl->setexclude(true); return cl; } case 3: return new SearchDataClauseDist(SCLT_PHRASE, text, proxSlackSB->value(), field); case 4: return new SearchDataClauseDist(SCLT_NEAR, text, proxSlackSB->value(), field); case 5: return new SearchDataClauseFilename(text); case 6: default: return 0; } } void SearchClauseW::setFromClause(SearchDataClauseSimple *cl) { LOGDEB(("SearchClauseW::setFromClause\n")); switch(cl->getTp()) { case SCLT_OR: if (cl->getexclude()) tpChange(2); else tpChange(0); break; case SCLT_AND: tpChange(1); break; case SCLT_PHRASE: tpChange(3); break; case SCLT_NEAR: tpChange(4); break; case SCLT_FILENAME: tpChange(5); break; default: return; } LOGDEB(("SearchClauseW::setFromClause: calling erase\n")); clear(); QString text = QString::fromUtf8(cl->gettext().c_str()); QString field = QString::fromUtf8(cl->getfield().c_str()); switch(cl->getTp()) { case SCLT_OR: case SCLT_AND: case SCLT_PHRASE: case SCLT_NEAR: if (!field.isEmpty()) { int idx = fldCMB->findText(field); if (field >= 0) { fldCMB->setCurrentIndex(idx); } else { fldCMB->setEditText(field); } } /* FALLTHROUGH */ case SCLT_FILENAME: wordsLE->setText(text); break; default: break; } switch(cl->getTp()) { case SCLT_PHRASE: case SCLT_NEAR: { SearchDataClauseDist *cls = dynamic_cast(cl); proxSlackSB->setValue(cls->getslack()); } break; default: break; } } void SearchClauseW::clear() { wordsLE->setText(""); fldCMB->setCurrentIndex(0); proxSlackSB->setValue(0); } // Handle combobox change: may need to enable/disable the distance // spinbox and field spec void SearchClauseW::tpChange(int index) { if (index < 0 || index > 5) return; if (sTpCMB->currentIndex() != index) sTpCMB->setCurrentIndex(index); switch (index) { case 3: case 4: proxSlackSB->show(); proxSlackSB->setEnabled(true); if (index == 4) proxSlackSB->setValue(10); else proxSlackSB->setValue(0); break; default: proxSlackSB->close(); } if (index == 5) { fldCMB->close(); } else { fldCMB->show(); } } recoll-1.21.5/qtgui/snippets_w.cpp0000644000175000017500000001756312602163572016432 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include using namespace std; #ifdef SNIPPETS_TEXTBROWSER #include #else #include #include #include #endif #include #include "debuglog.h" #include "recoll.h" #include "snippets_w.h" #include "guiutils.h" #include "rcldb.h" #include "rclhelp.h" #include "plaintorich.h" // Note: the internal search currently does not work with QTextBrowser. To be // fixed by looking at the preview code if someone asks for it... #ifdef SNIPPETS_TEXTBROWSER #define browser ((QTextBrowser*)browserw) #else #define browser ((QWebView*)browserw) #endif class PlainToRichQtSnippets : public PlainToRich { public: virtual string startMatch(unsigned int) { return string(""); } virtual string endMatch() { return string(""); } }; static PlainToRichQtSnippets g_hiliter; void SnippetsW::init() { if (m_source.isNull()) return; QPushButton *searchButton = new QPushButton(tr("Search")); searchButton->setAutoDefault(false); buttonBox->addButton(searchButton, QDialogButtonBox::ActionRole); searchFM->hide(); new QShortcut(QKeySequence::Find, this, SLOT(slotEditFind())); new QShortcut(QKeySequence(Qt::Key_Slash), this, SLOT(slotEditFind())); new QShortcut(QKeySequence(Qt::Key_Escape), searchFM, SLOT(hide())); new QShortcut(QKeySequence::FindNext, this, SLOT(slotEditFindNext())); new QShortcut(QKeySequence(Qt::Key_F3), this, SLOT(slotEditFindNext())); new QShortcut(QKeySequence::FindPrevious, this, SLOT(slotEditFindPrevious())); new QShortcut(QKeySequence(Qt::SHIFT + Qt::Key_F3), this, SLOT(slotEditFindPrevious())); QPushButton *closeButton = buttonBox->button(QDialogButtonBox::Close); if (closeButton) connect(closeButton, SIGNAL(clicked()), this, SLOT(close())); connect(searchButton, SIGNAL(clicked()), this, SLOT(slotEditFind())); connect(searchLE, SIGNAL(textChanged(const QString&)), this, SLOT(slotSearchTextChanged(const QString&))); connect(nextPB, SIGNAL(clicked()), this, SLOT(slotEditFindNext())); connect(prevPB, SIGNAL(clicked()), this, SLOT(slotEditFindPrevious())); #ifdef SNIPPETS_TEXTBROWSER browserw = new QTextBrowser(this); verticalLayout->insertWidget(0, browserw); connect(browser, SIGNAL(anchorClicked(const QUrl &)), this, SLOT(linkWasClicked(const QUrl &))); browser->setReadOnly(TRUE); browser->setUndoRedoEnabled(FALSE); browser->setOpenLinks(FALSE); browser->setTabChangesFocus(true); if (prefs.reslistfontfamily.length()) { QFont nfont(prefs.reslistfontfamily, prefs.reslistfontsize); browser->setFont(nfont); } else { browser->setFont(QFont()); } #else browserw = new QWebView(this); verticalLayout->insertWidget(0, browserw); browser->setUrl(QUrl(QString::fromUtf8("about:blank"))); connect(browser, SIGNAL(linkClicked(const QUrl &)), this, SLOT(linkWasClicked(const QUrl &))); browser->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); browser->page()->currentFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff); QWebSettings *ws = browser->page()->settings(); if (prefs.reslistfontfamily != "") { ws->setFontFamily(QWebSettings::StandardFont, prefs.reslistfontfamily); ws->setFontSize(QWebSettings::DefaultFontSize, prefs.reslistfontsize); } if (!prefs.snipCssFile.isEmpty()) ws->setUserStyleSheetUrl(QUrl::fromLocalFile(prefs.snipCssFile)); #endif // Make title out of file name if none yet string titleOrFilename; string utf8fn; m_doc.getmeta(Rcl::Doc::keytt, &titleOrFilename); m_doc.getmeta(Rcl::Doc::keyfn, &utf8fn); if (titleOrFilename.empty()) { titleOrFilename = utf8fn; } setWindowTitle(QString::fromUtf8(titleOrFilename.c_str())); vector vpabs; m_source->getAbstract(m_doc, vpabs); HighlightData hdata; m_source->getTerms(hdata); ostringstream oss; oss << "" ""; oss << "\n"; oss << qs2utf8s(prefs.reslistheadertext); oss << "" "" "" ; g_hiliter.set_inputhtml(false); bool nomatch = true; for (vector::const_iterator it = vpabs.begin(); it != vpabs.end(); it++) { if (it->page == -1) { oss << "" << endl; continue; } list lr; if (!g_hiliter.plaintorich(it->snippet, lr, hdata)) { LOGDEB1(("No match for [%s]\n", it->snippet.c_str())); continue; } nomatch = false; oss << "" << endl; } oss << "
" << it->snippet << "
"; if (it->page > 0) { oss << "page << "T" << it->term << "\">" << "P. " << it->page << ""; } oss << "" << lr.front().c_str() << "
" << endl; if (nomatch) { oss.str("\n"); oss << qs2utf8s(tr("

Sorry, no exact match was found within limits. " "Probably the document is very big and the snippets " "generator got lost in a maze...

")); } oss << "\n"; #ifdef SNIPPETS_TEXTBROWSER browser->insertHtml(QString::fromUtf8(oss.str().c_str())); #else browser->setHtml(QString::fromUtf8(oss.str().c_str())); #endif } void SnippetsW::slotEditFind() { searchFM->show(); searchLE->selectAll(); searchLE->setFocus(); } void SnippetsW::slotEditFindNext() { if (!searchFM->isVisible()) slotEditFind(); #ifdef SNIPPETS_TEXTBROWSER browser->find(searchLE->text(), 0); #else browser->findText(searchLE->text()); #endif } void SnippetsW::slotEditFindPrevious() { if (!searchFM->isVisible()) slotEditFind(); #ifdef SNIPPETS_TEXTBROWSER browser->find(searchLE->text(), QTextDocument::FindBackward); #else browser->findText(searchLE->text(), QWebPage::FindBackward); #endif } void SnippetsW::slotSearchTextChanged(const QString& txt) { #ifdef SNIPPETS_TEXTBROWSER browser->find(txt, 0); #else browser->findText(txt); #endif } void SnippetsW::linkWasClicked(const QUrl &url) { string ascurl = (const char *)url.toString().toUtf8(); LOGDEB(("Snippets::linkWasClicked: [%s]\n", ascurl.c_str())); if (ascurl.size() > 3) { int what = ascurl[0]; switch (what) { case 'P': { string::size_type numpos = ascurl.find_first_of("0123456789"); if (numpos == string::npos) return; int page = atoi(ascurl.c_str() + numpos); string::size_type termpos = ascurl.find_first_of("T"); string term; if (termpos != string::npos) term = ascurl.substr(termpos+1); emit startNativeViewer(m_doc, page, QString::fromUtf8(term.c_str())); return; } } } LOGERR(("Snippets::linkWasClicked: bad link [%s]\n", ascurl.c_str())); } recoll-1.21.5/qtgui/idxsched.ui0000644000175000017500000001044612602163537015657 0ustar dockesdockes IdxSchedW 0 0 504 403 Index scheduling setup 0 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> Qt::AutoText true Cron scheduling false The tool will let you decide at what time indexing should run and will install a crontab entry. Real time indexing start up false Decide if real time indexing will be started when you log in (only for the default index). Qt::Horizontal QDialogButtonBox::Close buttonBox accepted() IdxSchedW accept() 248 254 157 274 buttonBox rejected() IdxSchedW reject() 316 260 286 274 recoll-1.21.5/qtgui/guiutils.h0000644000175000017500000001260212645207740015541 0ustar dockesdockes/* Copyright (C) 2005 Jean-Francois Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _GUIUTILS_H_INCLUDED_ #define _GUIUTILS_H_INCLUDED_ #include #include #include #include #include #include "dynconf.h" extern RclDynConf *g_dynconf; #include "advshist.h" extern AdvSearchHist *g_advshistory; #ifndef NO_NAMESPACES using std::string; using std::list; using std::vector; #endif /** Holder for preferences (gets saved to user Qt prefs) */ class PrefsPack { public: // Simple search entry behaviour bool ssearchOnWS; bool ssearchNoComplete; bool ssearchAsYouType; // Decide if we display the doc category filter control as a // toolbar+combobox or as a button group under simple search enum FilterCtlStyle {FCS_BT, FCS_CMB, FCS_MN}; int filterCtlStyle; int respagesize; int maxhltextmbs; QString reslistfontfamily; // Not saved in prefs for now. Computed from qt defaults and used to // set main character color for webkit/textbrowser reslist and // snippets window. QString fontcolor; QString qtermcolor; // Color for query terms in reslist and preview int reslistfontsize; // Result list format string QString reslistformat; string creslistformat; QString reslistheadertext; // Abstract snippet separator QString abssep; // Date strftime format QString reslistdateformat; string creslistdateformat; QString qssFile; QString snipCssFile; QString queryStemLang; int mainwidth; int mainheight; int pvwidth; // Preview window geom int pvheight; int toolArea; // Area for "tools" toolbar int resArea; // Area for "results" toolbar bool ssearchTypSav; // Remember last search mode (else always // start with same) int ssearchTyp; // Use single app (default: xdg-open), instead of per-mime settings bool useDesktopOpen; // Remember sort state between invocations ? bool keepSort; QString sortField; bool sortActive; bool sortDesc; // Abstract preferences. Building abstracts can slow result display bool queryBuildAbstract; bool queryReplaceAbstract; bool startWithAdvSearchOpen; // Try to display html if it exists in the internfile stack. bool previewHtml; // Use
 tag to display highlighted text/plain inside html (else
    // we use 
at end of lines, which lets textedit wrap lines). enum PlainPre {PP_BR, PP_PRE, PP_PREWRAP}; int previewPlainPre; bool collapseDuplicates; bool showResultsAsTable; // Extra query indexes. This are stored in the history file, not qt prefs list allExtraDbs; list activeExtraDbs; // Advanced search subdir restriction: we don't activate the last value // but just remember previously entered values QStringList asearchSubdirHist; // Textual history of simple searches (this is just the combobox list) QStringList ssearchHistory; // Make phrase out of search terms and add to search in simple search bool ssearchAutoPhrase; double ssearchAutoPhraseThreshPC; // Ignored file types in adv search (startup default) QStringList asearchIgnFilTyps; bool fileTypesByCats; // Words that are automatically turned to ext:xx specs in the query // language entry. QString autoSuffs; bool autoSuffsEnable; QStringList restableFields; vector restableColWidths; // Synthetized abstract length and word context size int syntAbsLen; int syntAbsCtx; // Remembered term match mode int termMatchType; // Program version that wrote this. Not used for now, in prevision // of the case where we might need an incompatible change int rclVersion; bool showTrayIcon; bool closeToTray; int showTempFileWarning; // Advanced search window clause list state vector advSearchClauses; // Default paragraph format for result list static const char *dfltResListFormat; std::string stemlang(); PrefsPack() : respagesize(8), reslistfontsize(10), ssearchTyp(0), queryBuildAbstract(true), queryReplaceAbstract(false), startWithAdvSearchOpen(false), termMatchType(0), rclVersion(1505), showTrayIcon(false), closeToTray(false) {} }; /** Global preferences record */ extern PrefsPack prefs; /** Read write settings from disk file */ extern void rwSettings(bool dowrite); extern QString g_stringAllStem, g_stringNoStem; /** Specialized version of the qt file dialog. Can't use getOpenFile() etc. cause they hide dot files... */ extern QString myGetFileName(bool isdir, QString caption = QString(), bool filenosave = false); #endif /* _GUIUTILS_H_INCLUDED_ */ recoll-1.21.5/qtgui/ssearch_w.h0000644000175000017500000000556512602163572015661 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SSEARCH_W_H_INCLUDED_ #define _SSEARCH_W_H_INCLUDED_ #include #include #include class QTimer; #include "recoll.h" #include "searchdata.h" #include "refcntr.h" #include "ui_ssearchb.h" struct SSearchDef; class SSearch : public QWidget, public Ui::SSearchBase { Q_OBJECT public: // The values MUST NOT change, there are assumptions about them in // different parts of the code enum SSearchType {SST_ANY = 0, SST_ALL = 1, SST_FNM = 2, SST_LANG = 3}; SSearch(QWidget* parent = 0, const char * = 0) : QWidget(parent) { setupUi(this); init(); } virtual void init(); virtual void setAnyTermMode(); virtual void completion(); virtual bool eventFilter(QObject *target, QEvent *event); virtual bool hasSearchString(); virtual void setPrefs(); // Return last performed search as XML text. virtual std::string asXML(); // Restore ssearch UI from saved search virtual bool fromXML(const SSearchDef& fxml); public slots: virtual void searchTextChanged(const QString & text); virtual void searchTypeChanged(int); virtual void setSearchString(const QString& text); virtual void startSimpleSearch(); virtual void addTerm(QString); virtual void onWordReplace(const QString&, const QString&); virtual void completionTermChosen(const QString& text); virtual void wrapupCompletion(); virtual void timerDone(); virtual void takeFocus(); signals: void startSearch(RefCntr, bool); void clearSearch(); private: bool m_escape; bool m_displayingCompletions; QString m_chosenCompletion; QString m_savedEditText; unsigned int m_completedWordStart; bool m_disableAutosearch; QTimer *m_stroketimeout; bool m_keystroke; QString m_tstartqs; QAbstractItemModel *m_savedModel; std::string m_xml; /* Saved xml version of the search, as we start it */ int partialWord(string& s); int completionList(string s, QStringList& lst, int max = 100); bool startSimpleSearch(const string& q, int maxexp = -1); }; #endif /* _SSEARCH_W_H_INCLUDED_ */ recoll-1.21.5/qtgui/advsearch.ui0000644000175000017500000004654212602163537016032 0ustar dockesdockes AdvSearchBase 0 0 544 441 Advanced search true 0 Find 2 0 0 All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. QFrame::NoFrame QFrame::Plain Search for <br>documents<br>satisfying: false 4 8 0 All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. Qt::Vertical QSizePolicy::Expanding 0 0 0 0 Delete clause false 0 0 Add clause false QFrame::StyledPanel QFrame::Plain 1 0 QFrame::HLine QFrame::Plain Filter 1 0 Check this to enable filtering on dates Filter dates From false To false QFrame::HLine QFrame::Sunken 1 0 Check this to enable filtering on sizes Filter sizes Minimum size. You can use k/K,m/M,g/G as multipliers Min. Size false Maximum size. You can use k/K,m/M,g/G as multipliers Max. Size false QFrame::HLine QFrame::Sunken 1 0 Check this to enable filtering on file types Restrict file types false 1 0 Check this to use file categories instead of raw mime types By categories false Save as default false 0 Searched file types false false 200 20 QAbstractItemView::ExtendedSelection 0 false All ----> false false Sel -----> false false <----- Sel false false <----- All false 0 Ignored file types false false 200 20 QAbstractItemView::ExtendedSelection QFrame::HLine QFrame::Sunken 8 0 300 0 Enter top directory for search true 20 QComboBox::NoInsert false Browse false Restrict results to files in subtree: false Invert Start Search Close false recoll-1.21.5/qtgui/rclm_saveload.cpp0000644000175000017500000000763312602163572017047 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" /** Saving and restoring named queries */ #include #include #include #include #include #include #include "rclmain_w.h" #include "debuglog.h" #include "readfile.h" #include "xmltosd.h" #include "searchdata.h" #include "copyfile.h" using namespace std; using namespace Rcl; static QString prevDir() { QSettings settings; QString prevdir = settings.value("/Recoll/prefs/lastQuerySaveDir").toString(); string defpath = path_cat(theconfig->getConfDir(), "saved_queries"); if (prevdir.isEmpty()) { if (access(defpath.c_str(), 0) != 0) { mkdir(defpath.c_str(), 0700); } return QString::fromLocal8Bit(defpath.c_str()); } else { return prevdir; } } void RclMain::saveLastQuery() { string xml; if (lastSearchSimple()) { xml = sSearch->asXML(); } else { if (g_advshistory) { RefCntr sd; sd = g_advshistory->getnewest(); if (sd) { xml = sd->asXML(); } } } if (xml.empty()) { QMessageBox::information(this, tr("No search"), tr("No preserved previous search")); return; } xml = string("\n") + "\n" + xml + "\n\n"; QFileDialog fileDialog(this, tr("Choose file to save")); fileDialog.setNameFilter(tr("Saved Queries (*.rclq)")); fileDialog.setDefaultSuffix("rclq"); fileDialog.setAcceptMode(QFileDialog::AcceptSave); fileDialog.setDirectory(prevDir()); if (!fileDialog.exec()) return; QString s = fileDialog.selectedFiles().first(); if (s.isEmpty()) { return; } string tofile((const char *)s.toLocal8Bit()); LOGDEB(("RclMain::saveLastQuery: XML: [%s]\n", xml.c_str())); string reason; if (!stringtofile(xml, tofile.c_str(), reason)) { QMessageBox::warning(this, tr("Write failed"), tr("Could not write to file")); } return; } void RclMain::loadSavedQuery() { QString s = QFileDialog::getOpenFileName(this, "Open saved query", prevDir(), tr("Saved Queries (*.rclq)")); if (s.isEmpty()) return; string fromfile((const char *)s.toLocal8Bit()); string xml, reason; if (!file_to_string(fromfile, xml, &reason)) { QMessageBox::warning(this, tr("Read failed"), tr("Could not open file: ") + QString::fromUtf8(reason.c_str())); return; } // Try to parse as SearchData RefCntr sd = xmlToSearchData(xml); if (sd) { showAdvSearchDialog(); asearchform->fromSearch(sd); return; } // Try to parse as Simple Search SSearchDef sdef; if (xmlToSSearch(xml, sdef)) { if (sSearch->fromXML(sdef)) return; } QMessageBox::warning(this, tr("Load error"), tr("Could not load saved query")); } recoll-1.21.5/qtgui/crontool.cpp0000644000175000017500000000601512602163537016065 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include "recoll.h" #include "crontool.h" #include "ecrontab.h" #include "smallut.h" static string marker; static string idstring(const string& confdir) { // Quote conf dir, there may be spaces and whatelse in there return string("RECOLL_CONFDIR=") + escapeShell(confdir); } void CronToolW::init() { marker = "RCLCRON_RCLINDEX="; enableButton = new QPushButton(tr("Enable")); disableButton = new QPushButton(tr("Disable")); buttonBox->addButton(enableButton, QDialogButtonBox::ActionRole); buttonBox->addButton(disableButton, QDialogButtonBox::ActionRole); connect(enableButton, SIGNAL(clicked()), this, SLOT(enableCron())); connect(disableButton, SIGNAL(clicked()), this, SLOT(disableCron())); // Try to read the current values if (!theconfig) return; if (checkCrontabUnmanaged(marker, "recollindex")) { QMessageBox::warning(0, "Recoll", tr("It seems that manually edited entries exist for recollindex, cannot edit crontab")); QTimer::singleShot(0, this, SLOT(close())); } string id = idstring(theconfig->getConfDir()); vector sched; if (getCrontabSched(marker, id, sched)) { minsLE->setText(QString::fromUtf8(sched[0].c_str())); hoursLE->setText(QString::fromUtf8(sched[1].c_str())); daysLE->setText(QString::fromUtf8(sched[4].c_str())); } } void CronToolW::enableCron() { changeCron(true); } void CronToolW::disableCron() { changeCron(false); } void CronToolW::changeCron(bool enable) { if (!theconfig) return; string id = idstring(theconfig->getConfDir()); string cmd("recollindex"); string reason; if (!enable) { editCrontab(marker, id, "", "", reason); accept(); } else { string mins(qs2utf8s(minsLE->text().remove(QChar(' ')))); string hours(qs2utf8s(hoursLE->text().remove(QChar(' ')))); string days(qs2utf8s(daysLE->text().remove(QChar(' ')))); string sched = mins + " " + hours + " * * " + days; if (editCrontab(marker, id, sched, cmd, reason)) { accept(); } else { QMessageBox::warning(0, "Recoll", tr("Error installing cron entry. Bad syntax in fields ?")); } } } recoll-1.21.5/qtgui/rtitool.cpp0000644000175000017500000001143012602163572015716 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include #include using std::string; #include #include #include "recoll.h" #include "rtitool.h" #include "smallut.h" #include "pathut.h" #include "copyfile.h" #include "readfile.h" #include "execmd.h" static const char *rautostartfile = ".config/autostart/recollindex.desktop"; // Just in case we don't find the file in the shared dir, have a // default text ready static const char *desktopfiletext = "[Desktop Entry]\n" "Name=Recoll real time indexer\n" "Comment=Runs in background to extract and index text from modified " "documents\n" "Icon=system-run\n" "Exec=recollindex -w 60 -m\n" "Terminal=false\n" "TerminalOptions=\n" "Type=Application\n" "Categories=Utility;Filesystem;Database;\n" "NoDisplay=true\n" "X-GNOME-Autostart-enabled=true\n" "X-KDE-autostart-after=panel\n" "X-KDE-UniqueApplet=true\n" ; void RTIToolW::init() { connect(this->sesCB, SIGNAL(clicked(bool)), this, SLOT(sesclicked(bool))); string autostartfile = path_cat(path_home(), rautostartfile); if (access(autostartfile.c_str(), 0) == 0) { sesCB->setChecked(true); } } void RTIToolW::sesclicked(bool on) { nowCB->setEnabled(on); if (!on) nowCB->setChecked(false); } void RTIToolW::accept() { bool exitdial = false; string autostartfile = path_cat(path_home(), rautostartfile); if (sesCB->isChecked()) { // Setting up daemon indexing autostart if (::access(autostartfile.c_str(), 0) == 0) { QString msg = tr("Replacing: ") + QString::fromLocal8Bit(autostartfile.c_str()); QMessageBox::Button rep = QMessageBox::question(this, tr("Replacing file"), msg, QMessageBox::Ok | QMessageBox::Cancel); if (rep != QMessageBox::Ok) { goto out; } } string text; if (theconfig) { string sourcefile = path_cat(theconfig->getDatadir(), "examples"); sourcefile = path_cat(sourcefile, "recollindex.desktop"); if (::access(sourcefile.c_str(), 0) == 0) { file_to_string(sourcefile, text); } } if (text.empty()) text = desktopfiletext; // Try to create .config and autostart anyway. If they exists this will // do nothing. An error will be detected when we try to create the file string dir = path_cat(path_home(), ".config"); mkdir(dir.c_str(), 0700); dir = path_cat(dir, "autostart"); mkdir(dir.c_str(), 0700); string reason; if (!stringtofile(text, autostartfile.c_str(), reason)) { QString msg = tr("Can't create: ") + QString::fromLocal8Bit(autostartfile.c_str()); QMessageBox::warning(0, tr("Warning"), msg, QMessageBox::Ok); return; } if (nowCB->isChecked()) { ExecCmd cmd; vector args; int status; args.push_back("-m"); args.push_back("-w"); args.push_back("0"); status = cmd.doexec("recollindex", args, 0, 0); if (status) { QMessageBox::warning(0, tr("Warning"), tr("Could not execute recollindex"), QMessageBox::Ok); goto out; } } exitdial = true; } else { // Turning autostart off if (::access(autostartfile.c_str(), 0) == 0) { QString msg = tr("Deleting: ") + QString::fromLocal8Bit(autostartfile.c_str()); QMessageBox::Button rep = QMessageBox::question(this, tr("Deleting file"), msg, QMessageBox::Ok | QMessageBox::Cancel); if (rep == QMessageBox::Ok) { exitdial = true; unlink(autostartfile.c_str()); if (theconfig) { Pidfile pidfile(theconfig->getPidfile()); pid_t pid; if ((pid = pidfile.open()) != 0) { QMessageBox::Button rep = QMessageBox::question(this, tr("Removing autostart"), tr("Autostart file deleted. Kill current process too ?"), QMessageBox::Yes | QMessageBox::No); if (rep == QMessageBox::Yes) { kill(pid, SIGTERM); } } } } } else { exitdial = true; } } out: if (exitdial) QDialog::accept(); } recoll-1.21.5/qtgui/viewaction_w.h0000644000175000017500000000310512602163537016366 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _VIEWACTION_W_H_INCLUDED_ #define _VIEWACTION_W_H_INCLUDED_ #include #include #include "ui_viewaction.h" class QDialog; class QMouseEvent; class QTableWidget; class ViewAction : public QDialog, public Ui::ViewActionBase { Q_OBJECT public: ViewAction(QWidget* parent = 0) : QDialog(parent) { setupUi(this); init(); } ~ViewAction() {} void selectMT(const QString& mt); public slots: virtual void editActions(); virtual void onItemClicked(QTableWidgetItem *); virtual void onItemDoubleClicked(QTableWidgetItem *); virtual void onUseDesktopCBToggled(int); virtual void onSetExceptCBToggled(int); virtual void onSelSameClicked(); private: virtual void init(); virtual void fillLists(); }; #endif /* _VIEWACTION_W_H_INCLUDED_ */ recoll-1.21.5/qtgui/viewaction_w.cpp0000644000175000017500000001553112602163537016727 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include using namespace std; #include #include #include #include #include #include #include "recoll.h" #include "debuglog.h" #include "guiutils.h" #include "viewaction_w.h" void ViewAction::init() { selSamePB->setEnabled(false); connect(closePB, SIGNAL(clicked()), this, SLOT(close())); connect(chgActPB, SIGNAL(clicked()), this, SLOT(editActions())); connect(actionsLV,SIGNAL(itemDoubleClicked(QTableWidgetItem *)), this, SLOT(onItemDoubleClicked(QTableWidgetItem *))); connect(actionsLV,SIGNAL(itemClicked(QTableWidgetItem *)), this, SLOT(onItemClicked(QTableWidgetItem *))); useDesktopCB->setChecked(prefs.useDesktopOpen); onUseDesktopCBToggled(prefs.useDesktopOpen); connect(useDesktopCB, SIGNAL(stateChanged(int)), this, SLOT(onUseDesktopCBToggled(int))); connect(setExceptCB, SIGNAL(stateChanged(int)), this, SLOT(onSetExceptCBToggled(int))); connect(selSamePB, SIGNAL(clicked()), this, SLOT(onSelSameClicked())); resize(QSize(640, 480).expandedTo(minimumSizeHint())); } void ViewAction::onUseDesktopCBToggled(int onoff) { prefs.useDesktopOpen = onoff != 0; fillLists(); setExceptCB->setEnabled(prefs.useDesktopOpen); } void ViewAction::onSetExceptCBToggled(int onoff) { newActionLE->setEnabled(onoff != 0); } void ViewAction::fillLists() { currentLBL->clear(); actionsLV->clear(); actionsLV->verticalHeader()->setDefaultSectionSize(20); vector > defs; theconfig->getMimeViewerDefs(defs); actionsLV->setRowCount(defs.size()); int row = 0; set viewerXs; if (prefs.useDesktopOpen) { string s = theconfig->getMimeViewerAllEx(); stringToStrings(s, viewerXs); } for (vector >::const_iterator it = defs.begin(); it != defs.end(); it++) { actionsLV->setItem(row, 0, new QTableWidgetItem(QString::fromUtf8(it->first.c_str()))); if (!prefs.useDesktopOpen || viewerXs.find(it->first) != viewerXs.end()) { actionsLV->setItem( row, 1, new QTableWidgetItem(QString::fromUtf8(it->second.c_str()))); } else { actionsLV->setItem( row, 1, new QTableWidgetItem(tr("Desktop Default"))); } row++; } QStringList labels(tr("MIME type")); labels.push_back(tr("Command")); actionsLV->setHorizontalHeaderLabels(labels); } void ViewAction::selectMT(const QString& mt) { actionsLV->clearSelection(); QListitems = actionsLV->findItems(mt, Qt::MatchFixedString|Qt::MatchCaseSensitive); for (QList::iterator it = items.begin(); it != items.end(); it++) { (*it)->setSelected(true); actionsLV->setCurrentItem(*it, QItemSelectionModel::Columns); } } void ViewAction::onSelSameClicked() { actionsLV->clearSelection(); QString value = currentLBL->text(); if (value.isEmpty()) return; string action = qs2utf8s(value); fprintf(stderr, "value: %s\n", action.c_str()); vector > defs; theconfig->getMimeViewerDefs(defs); for (unsigned int i = 0; i < defs.size(); i++) { if (defs[i].second == action) { QListitems = actionsLV->findItems(QString::fromUtf8(defs[i].first.c_str()), Qt::MatchFixedString|Qt::MatchCaseSensitive); for (QList::iterator it = items.begin(); it != items.end(); it++) { (*it)->setSelected(true); QTableWidgetItem *item1 = actionsLV->item((*it)->row(), 1); item1->setSelected(true); } } } } // Fill the input fields with the row's values when the user clicks void ViewAction::onItemClicked(QTableWidgetItem * item) { QTableWidgetItem *item0 = actionsLV->item(item->row(), 0); string mtype = (const char *)item0->text().toLocal8Bit(); vector > defs; theconfig->getMimeViewerDefs(defs); for (unsigned int i = 0; i < defs.size(); i++) { if (defs[i].first == mtype) { currentLBL->setText(QString::fromUtf8(defs[i].second.c_str())); selSamePB->setEnabled(true); return; } } currentLBL->clear(); selSamePB->setEnabled(false); } void ViewAction::onItemDoubleClicked(QTableWidgetItem * item) { actionsLV->clearSelection(); item->setSelected(true); QTableWidgetItem *item0 = actionsLV->item(item->row(), 0); item0->setSelected(true); editActions(); } void ViewAction::editActions() { QString action0; int except0 = -1; set viewerXs; string s = theconfig->getMimeViewerAllEx(); stringToStrings(s, viewerXs); list mtypes; bool dowarnmultiple = true; for (int row = 0; row < actionsLV->rowCount(); row++) { QTableWidgetItem *item0 = actionsLV->item(row, 0); if (!item0->isSelected()) continue; string mtype = (const char *)item0->text().toLocal8Bit(); mtypes.push_back(mtype); QTableWidgetItem *item1 = actionsLV->item(row, 1); QString action = item1->text(); int except = viewerXs.find(mtype) != viewerXs.end(); if (action0.isEmpty()) { action0 = action; except0 = except; } else { if ((action != action0 || except != except0) && dowarnmultiple) { switch (QMessageBox::warning(0, "Recoll", tr("Changing entries with " "different current values"), "Continue", "Cancel", 0, 0, 1)) { case 0: dowarnmultiple = false;break; case 1: return; } } } } if (action0.isEmpty()) return; string sact = (const char *)newActionLE->text().toLocal8Bit(); trimstring(sact); for (list::const_iterator mit = mtypes.begin(); mit != mtypes.end(); mit++) { set::iterator xit = viewerXs.find(*mit); if (setExceptCB->isChecked()) { if (xit == viewerXs.end()) { viewerXs.insert(*mit); } } else { if (xit != viewerXs.end()) { viewerXs.erase(xit); } } // An empty action will restore the default (erase from // topmost conftree) theconfig->setMimeViewerDef(*mit, sact); } s = stringsToString(viewerXs); theconfig->setMimeViewerAllEx(s); fillLists(); } recoll-1.21.5/qtgui/firstidx.ui0000644000175000017500000001253712602163537015723 0ustar dockesdockes FirstIdxDialog 0 0 502 503 First indexing setup 0 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> Qt::RichText true Indexing configuration false false This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. Indexing schedule false This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). Start indexing now Qt::Horizontal QDialogButtonBox::Close buttonBox accepted() FirstIdxDialog accept() 248 254 157 274 buttonBox rejected() FirstIdxDialog reject() 316 260 286 274 runidxPB clicked() FirstIdxDialog accept() 215 400 215 228 recoll-1.21.5/qtgui/rclm_idx.cpp0000644000175000017500000003032712603155721016027 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include "execmd.h" #include "debuglog.h" #include "transcode.h" #include "indexer.h" #include "rclmain_w.h" #include "specialindex.h" using namespace std; void RclMain::idxStatus() { ConfSimple cs(theconfig->getIdxStatusFile().c_str(), 1); QString msg = tr("Indexing in progress: "); DbIxStatus status; string val; cs.get("phase", val); status.phase = DbIxStatus::Phase(atoi(val.c_str())); cs.get("fn", status.fn); cs.get("docsdone", val); status.docsdone = atoi(val.c_str()); cs.get("filesdone", val); status.filesdone = atoi(val.c_str()); cs.get("dbtotdocs", val); status.dbtotdocs = atoi(val.c_str()); QString phs; switch (status.phase) { case DbIxStatus::DBIXS_NONE:phs=tr("None");break; case DbIxStatus::DBIXS_FILES: phs=tr("Updating");break; case DbIxStatus::DBIXS_PURGE: phs=tr("Purge");break; case DbIxStatus::DBIXS_STEMDB: phs=tr("Stemdb");break; case DbIxStatus::DBIXS_CLOSING:phs=tr("Closing");break; case DbIxStatus::DBIXS_DONE:phs=tr("Done");break; case DbIxStatus::DBIXS_MONITOR:phs=tr("Monitor");break; default: phs=tr("Unknown");break; } msg += phs + " "; if (status.phase == DbIxStatus::DBIXS_FILES) { char cnts[100]; if (status.dbtotdocs > 0) sprintf(cnts,"(%d/%d/%d) ", status.docsdone, status.filesdone, status.dbtotdocs); else sprintf(cnts, "(%d/%d) ", status.docsdone, status.filesdone); msg += QString::fromUtf8(cnts) + " "; } string mf;int ecnt = 0; string fcharset = theconfig->getDefCharset(true); if (!transcode(status.fn, mf, fcharset, "UTF-8", &ecnt) || ecnt) { mf = url_encode(status.fn, 0); } msg += QString::fromUtf8(mf.c_str()); statusBar()->showMessage(msg, 4000); } // This is called by a periodic timer to check the status of // indexing, a possible need to exit, and cleanup exited viewers void RclMain::periodic100() { LOGDEB2(("Periodic100\n")); if (m_idxproc) { // An indexing process was launched. If its' done, see status. int status; bool exited = m_idxproc->maybereap(&status); if (exited) { deleteZ(m_idxproc); if (status) { if (m_idxkilled) { QMessageBox::warning(0, "Recoll", tr("Indexing interrupted")); m_idxkilled = false; } else { QMessageBox::warning(0, "Recoll", tr("Indexing failed")); } } else { // On the first run, show missing helpers. We only do this once if (m_firstIndexing) showMissingHelpers(); } string reason; maybeOpenDb(reason, 1); } else { // update/show status even if the status file did not // change (else the status line goes blank during // lengthy operations). idxStatus(); } } // Update the "start/stop indexing" menu entry, can't be done from // the "start/stop indexing" slot itself IndexerState prevstate = m_indexerState; if (m_idxproc) { m_indexerState = IXST_RUNNINGMINE; fileToggleIndexingAction->setText(tr("Stop &Indexing")); fileToggleIndexingAction->setEnabled(true); fileRebuildIndexAction->setEnabled(false); actionSpecial_Indexing->setEnabled(false); periodictimer->setInterval(200); } else { Pidfile pidfile(theconfig->getPidfile()); if (pidfile.open() == 0) { m_indexerState = IXST_NOTRUNNING; fileToggleIndexingAction->setText(tr("Update &Index")); fileToggleIndexingAction->setEnabled(true); fileRebuildIndexAction->setEnabled(true); actionSpecial_Indexing->setEnabled(true); periodictimer->setInterval(1000); } else { // Real time or externally started batch indexer running m_indexerState = IXST_RUNNINGNOTMINE; fileToggleIndexingAction->setText(tr("Stop &Indexing")); fileToggleIndexingAction->setEnabled(true); fileRebuildIndexAction->setEnabled(false); actionSpecial_Indexing->setEnabled(false); periodictimer->setInterval(200); } } if ((prevstate == IXST_RUNNINGMINE || prevstate == IXST_RUNNINGNOTMINE) && m_indexerState == IXST_NOTRUNNING) { showTrayMessage("Indexing done"); } // Possibly cleanup the dead viewers for (vector::iterator it = m_viewers.begin(); it != m_viewers.end(); it++) { int status; if ((*it)->maybereap(&status)) { deleteZ(*it); } } vector v; for (vector::iterator it = m_viewers.begin(); it != m_viewers.end(); it++) { if (*it) v.push_back(*it); } m_viewers = v; if (recollNeedsExit) fileExit(); } // This gets called when the "update index" action is activated. It executes // the requested action, and disables the menu entry. This will be // re-enabled by the indexing status check void RclMain::toggleIndexing() { switch (m_indexerState) { case IXST_RUNNINGMINE: if (m_idxproc) { // Indexing was in progress, request stop. Let the periodic // routine check for the results. int pid = m_idxproc->getChildPid(); if (pid > 0) { kill(pid, SIGTERM); m_idxkilled = true; } } break; case IXST_RUNNINGNOTMINE: { int rep = QMessageBox::information(0, tr("Warning"), tr("The current indexing process " "was not started from this " "interface. Click Ok to kill it " "anyway, or Cancel to leave it alone"), QMessageBox::Ok, QMessageBox::Cancel, QMessageBox::NoButton); if (rep == QMessageBox::Ok) { Pidfile pidfile(theconfig->getPidfile()); pid_t pid = pidfile.open(); if (pid > 0) kill(pid, SIGTERM); } } break; case IXST_NOTRUNNING: { // Could also mean that no helpers are missing, but then we // won't try to show a message anyway (which is what // firstIndexing is used for) string mhd; m_firstIndexing = !theconfig->getMissingHelperDesc(mhd); vector args; string badpaths; args.push_back("recollindex"); args.push_back("-E"); ExecCmd::backtick(args, badpaths); if (!badpaths.empty()) { int rep = QMessageBox::warning(0, tr("Bad paths"), tr("Bad paths in configuration file:\n") + QString::fromLocal8Bit(badpaths.c_str()), QMessageBox::Ok, QMessageBox::Cancel, QMessageBox::NoButton); if (rep == QMessageBox::Cancel) return; } args.clear(); args.push_back("-c"); args.push_back(theconfig->getConfDir()); m_idxproc = new ExecCmd; m_idxproc->startExec("recollindex", args, false, false); } break; case IXST_UNKNOWN: return; } } void RclMain::rebuildIndex() { switch (m_indexerState) { case IXST_UNKNOWN: case IXST_RUNNINGMINE: case IXST_RUNNINGNOTMINE: return; //?? Should not have been called case IXST_NOTRUNNING: { if (m_idxproc) { LOGERR(("RclMain::rebuildIndex: current indexer exec not null\n")); return; } int rep = QMessageBox::warning(0, tr("Erasing index"), tr("Reset the index and start " "from scratch ?"), QMessageBox::Ok, QMessageBox::Cancel, QMessageBox::NoButton); if (rep == QMessageBox::Ok) { // Could also mean that no helpers are missing, but then we // won't try to show a message anyway (which is what // firstIndexing is used for) string mhd; m_firstIndexing = !theconfig->getMissingHelperDesc(mhd); vector args; args.push_back("-c"); args.push_back(theconfig->getConfDir()); args.push_back("-z"); m_idxproc = new ExecCmd; m_idxproc->startExec("recollindex", args, false, false); } } break; } } void SpecIdxW::onBrowsePB_clicked() { QString dir = myGetFileName(true, tr("Top indexed entity"), true); targLE->setText(dir); } bool SpecIdxW::noRetryFailed() { return noRetryFailedCB->isChecked(); } bool SpecIdxW::eraseFirst() { return eraseBeforeCB->isChecked(); } std::vector SpecIdxW::selpatterns() { vector pats; string text = qs2utf8s(selPatsLE->text()); if (!text.empty()) { stringToStrings(text, pats); } return pats; } std::string SpecIdxW::toptarg() { return qs2utf8s(targLE->text()); } void SpecIdxW::onTargLE_textChanged(const QString& text) { if (text.isEmpty()) selPatsLE->setEnabled(false); else selPatsLE->setEnabled(true); } static string execToString(const string& cmd, const vector& args) { string command = cmd + " "; for (vector::const_iterator it = args.begin(); it != args.end(); it++) { command += "{" + *it + "} "; } return command; } void RclMain::specialIndex() { LOGDEB(("RclMain::specialIndex\n")); switch (m_indexerState) { case IXST_UNKNOWN: case IXST_RUNNINGMINE: case IXST_RUNNINGNOTMINE: return; //?? Should not have been called case IXST_NOTRUNNING: default: break; } if (m_idxproc) { LOGERR(("RclMain::rebuildIndex: current indexer exec not null\n")); return; } if (!specidx) // ?? return; vector args; args.push_back("-c"); args.push_back(theconfig->getConfDir()); string top = specidx->toptarg(); if (!top.empty()) { args.push_back("-r"); } if (specidx->eraseFirst()) { if (top.empty()) { args.push_back("-Z"); } else { args.push_back("-e"); } } // The default for retrying differ depending if -r is set if (top.empty()) { if (!specidx->noRetryFailed()) { args.push_back("-k"); } } else { if (specidx->noRetryFailed()) { args.push_back("-K"); } } vector selpats = specidx->selpatterns(); if (!selpats.empty() && top.empty()) { QMessageBox::warning(0, tr("Selection patterns need topdir"), tr("Selection patterns can only be used with a " "start directory"), QMessageBox::Ok, QMessageBox::NoButton); return; } for (vector::const_iterator it = selpats.begin(); it != selpats.end(); it++) { args.push_back("-p"); args.push_back(*it); } if (!top.empty()) { args.push_back(top); } m_idxproc = new ExecCmd; LOGINFO(("specialIndex: exec: %s\n", execToString("recollindex", args).c_str())); m_idxproc->startExec("recollindex", args, false, false); } void RclMain::updateIdxForDocs(vector& docs) { if (m_idxproc) { QMessageBox::warning(0, tr("Warning"), tr("Can't update index: indexer running"), QMessageBox::Ok, QMessageBox::NoButton); return; } vector paths; if (ConfIndexer::docsToPaths(docs, paths)) { vector args; args.push_back("-c"); args.push_back(theconfig->getConfDir()); args.push_back("-e"); args.push_back("-i"); args.insert(args.end(), paths.begin(), paths.end()); m_idxproc = new ExecCmd; m_idxproc->startExec("recollindex", args, false, false); fileToggleIndexingAction->setText(tr("Stop &Indexing")); } fileToggleIndexingAction->setEnabled(false); actionSpecial_Indexing->setEnabled(false); } recoll-1.21.5/qtgui/rclzg.cpp0000644000175000017500000000515112602163537015347 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef USE_ZEITGEIST #include "rclzg.h" #include "debuglog.h" #include "pathut.h" #include #include #include #include #include #include #include // Can't see no reason why our logger couldn' static QtZeitgeist::Log zglogger; void zg_send_event(ZgSendType, const Rcl::Doc& doc) { static int needinit = 1; if (needinit) { QtZeitgeist::init(); needinit = 0; } // The subject is about the document QtZeitgeist::DataModel::Subject subject; subject.setUri(QString::fromLocal8Bit(doc.url.c_str())); // TODO: refine these subject.setInterpretation(QtZeitgeist::Interpretation::Subject::NFODocument); if (doc.ipath.empty()) subject.setManifestation(QtZeitgeist::Manifestation::Subject::NFOFileDataObject); else subject.setManifestation(QtZeitgeist::Manifestation::Subject::NFOEmbeddedFileDataObject); subject.setOrigin(QString::fromLocal8Bit(path_getfather(doc.url).c_str())); subject.setMimeType(doc.mimetype.c_str()); string titleOrFilename; doc.getmeta(Rcl::Doc::keytt, &titleOrFilename); if (titleOrFilename.empty()) { doc.getmeta(Rcl::Doc::keyfn, &titleOrFilename); } subject.setText(QString::fromUtf8(titleOrFilename.c_str())); QtZeitgeist::DataModel::Event event; event.setTimestamp(QDateTime::currentDateTime()); event.addSubject(subject); event.setInterpretation(QtZeitgeist::Interpretation::Event::ZGAccessEvent); event.setManifestation(QtZeitgeist::Manifestation::Event::ZGUserActivity); event.setActor("app://recoll.desktop"); QtZeitgeist::DataModel::EventList events; events.push_back(event); LOGDEB(("zg_send_event, sending for %s %s\n", doc.mimetype.c_str(), doc.url.c_str())); zglogger.insertEvents(events); } #endif recoll-1.21.5/qtgui/i18n/0000755000175000017500000000000012602163537014277 5ustar dockesdockesrecoll-1.21.5/qtgui/i18n/recoll_xx.ts0000644000175000017500000025343312602163537016660 0ustar dockesdockes AdvSearch All clauses Any clause media other Bad multiplier suffix in size filter text spreadsheet presentation message AdvSearchBase Advanced search Search for <br>documents<br>satisfying: Delete clause Add clause Restrict file types Check this to enable filtering on file types By categories Check this to use file categories instead of raw mime types Save as default Searched file types All ----> Sel -----> <----- Sel <----- All Ignored file types Enter top directory for search Browse Restrict results to files in subtree: Start Search Close All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. Invert Minimum size. You can use k/K,m/M,g/G as multipliers Min. Size Maximum size. You can use k/K,m/M,g/G as multipliers Max. Size Filter From To Check this to enable filtering on dates Filter dates Find Check this to enable filtering on sizes Filter sizes CronToolW Cron Dialog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html> Days of week (* or 0-7, 0 or 7 is Sunday) Hours (* or 0-23) Minutes (0-59) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html> Enable Disable It seems that manually edited entries exist for recollindex, cannot edit crontab Error installing cron entry. Bad syntax in fields ? EditDialog Dialog EditTrans Source path Local path Config error Original path EditTransBase Path Translations Setting path translations for Select one or several file types, then use the controls in the frame below to change how they are processed Add Delete Cancel Save FirstIdxDialog First indexing setup <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> Indexing configuration This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. Indexing schedule This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). Start indexing now FragButs %1 not found. %1: %2 Query Fragments IdxSchedW Index scheduling setup <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> Cron scheduling The tool will let you decide at what time indexing should run and will install a crontab entry. Real time indexing start up Decide if real time indexing will be started when you log in (only for the default index). ListDialog Dialog GroupBox Main No db directory in configuration "history" file is damaged or un(read)writeable, please check or remove it: Preview Close Tab Cancel Missing helper program: Can't turn doc into internal representation for Creating preview text Loading preview text into editor &Search for: &Next &Previous Clear Match &Case Error while loading file PreviewTextEdit Show fields Show main text Print Print Current Preview Show image Select All Copy Save document to file Fold lines Preserve indentation QObject Global parameters Local parameters <b>Customised subtrees The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty. <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons. Skipped names These are patterns for file or directory names which should not be indexed. Follow symbolic links Follow symbolic links while indexing. The default is no, to avoid duplicate indexing Index all file names Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true Search parameters Web history Default<br>character set Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Ignored endings These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing). QWidget Create or choose save directory Choose exactly one directory Could not read directory: Unexpected file name collision, cancelling. Cannot extract document: &Preview &Open Open With Run Script Copy &File Name Copy &URL &Write to File Save selection to files Preview P&arent document/folder &Open Parent document/folder Find &similar documents Open &Snippets window Show subdocuments / attachments RTIToolW Real time indexing automatic start <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> Start indexing daemon with my desktop session. Also start indexing daemon right now. Replacing: Replacing file Can't create: Warning Could not execute recollindex Deleting: Deleting file Removing autostart Autostart file deleted. Kill current process too ? RclMain (no stemming) (all languages) error retrieving stemming languages Indexing in progress: Purge Stemdb Closing Unknown Query results Cannot retrieve document info from database Warning Can't create preview window This search is not active any more Cannot extract document or create temporary file Executing: [ About Recoll History data Document history Update &Index Stop &Indexing All media message other presentation spreadsheet text sorted filtered No helpers found missing Missing helper programs No external viewer configured for mime type [ The viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ? Can't access file: Can't uncompress file: Save file Result count (est.) Could not open external index. Db not open. Check external indexes list. No results found None Updating Done Monitor Indexing failed The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone Erasing index Reset the index and start from scratch ? Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program Error Index not open Index query error Content has been indexed for these mime types: Can't update index: indexer running Indexed MIME Types Bad viewer command line for %1: [%2] Please check the mimeview file Viewer command line for %1 specifies both file and parent file value: unsupported Cannot find parent document Indexing did not run yet External applications/commands needed for your file types and not found, as stored by the last indexing pass in Sub-documents and attachments Document filter Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. The indexer is running so things should improve when it's done. The document belongs to an external indexwhich I can't update. Click Cancel to return to the list. Click Ignore to show the preview anyway. Duplicate documents These Urls ( | ipath) share the same content: Bad desktop app spec for %1: [%2] Please check the desktop file Indexing interrupted RclMainBase Recoll &File &Tools &Preferences &Help E&xit Ctrl+Q Update &index &Erase document history &About Recoll &User manual Document &History Document History &Advanced Search Advanced/complex Search &Sort parameters Sort parameters Term &explorer Term explorer tool Next page Next page of results First page Go to first page of results Previous page Previous page of results External index dialog &Show missing helpers PgDown PgUp &Full Screen F11 Full Screen &Erase search history Sort by dates from oldest to newest Sort by dates from newest to oldest Show Query Details &Rebuild index &Show indexed types Shift+PgUp &Indexing schedule E&xternal index dialog &Index configuration &GUI configuration &Results Sort by date, oldest first Sort by date, newest first Show as table Show results in a spreadsheet-like table Save as CSV (spreadsheet) file Saves the result into a file which you can load in a spreadsheet Next Page Previous Page First Page Query Fragments With failed files retrying Next update will retry previously failed files RclTrayIcon Restore Quit RecollModel Abstract Author Document size Document date File size File name File date Keywords Original character set Relevancy rating Title URL Mtime Date Date and time Ipath MIME type ResList Result list (show query) Document history <p><b>No results found</b><br> Previous Next Unavailable document Preview Open <p><i>Alternate spellings (accents suppressed): </i> Documents out of at least for <p><i>Alternate spellings: </i> Result count (est.) Query details Snippets ResTable &Reset sort &Delete column Save table to CSV file Can't open/create file: &Save as CSV Add "%1" column SSearch Any term All terms File name Query language Bad query string Out of memory Enter file name wildcard expression. Enter search terms here. Type ESC SPC for completions of current term. Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. SSearchBase SSearchBase Clear Ctrl+S Erase search entry Search Start query Enter search terms here. Type ESC SPC for completions of current term. Choose search type. SearchClauseW Select the type of query that will be performed with the words Number of additional words that may be interspersed with the chosen ones No field Any All None Phrase Proximity File name Snippets Snippets Find: Next Prev SnippetsW Search <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p> SpellBase Term Explorer &Expand Alt+E &Close Alt+C No db info. Match Case Accents SpellW Wildcards Regexp Stem expansion Spelling/Phonetic error retrieving stemming languages Aspell init failed. Aspell not installed? Aspell expansion error. No expansion found Term Doc. / Tot. Index: %1 documents, average length %2 terms.%3 results %1 results List was truncated alphabetically, some frequent terms may be missing. Try using a longer root. Show index statistics Number of documents Average terms per document Smallest document length Longest document length Database directory size MIME types: Item Value UIPrefsDialog error retrieving stemming languages The selected directory does not appear to be a Xapian index This is the main/local index! The selected directory is already in the index list Choose Result list paragraph format (erase all to reset to default) Result list header (default is empty) Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) The selected directory looks like a Recoll configuration directory but the configuration could not be read At most one index should be selected Cant add index with different case/diacritics stripping option Default QtWebkit font ViewAction Command MIME type Desktop Default Changing entries with different current values ViewActionBase Native Viewers Close Select one or several mime types then use the controls in the bottom frame to change how they are processed. Use Desktop preferences by default Select one or several file types, then use the controls in the frame below to change how they are processed Exception to Desktop preferences Action (empty -> recoll default) Apply to current selection Recoll action: current value Select same <b>New Values:</b> confgui::ConfBeaglePanelW Entries will be recycled once the size is reached Web page store directory name The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory. Max. size for the web store (MB) Process the WEB history queue Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin) confgui::ConfIndexW Can't write configuration file confgui::ConfParamFNW Choose confgui::ConfParamSLW + - confgui::ConfSearchPanelW Automatic diacritics sensitivity <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity. Automatic character case sensitivity <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity. Maximum term expansion count <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. Maximum Xapian clauses count <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. confgui::ConfSubPanelW Global Max. compressed file size (KB) This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever. Max. text file size (MB) This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index. Text file page size (KB) If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files). Max. filter exec. time (S) External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. Only mime types An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive Exclude mime types Mime types not to be indexed confgui::ConfTopPanelW Top directories The list of directories where recursive indexing starts. Default: your home. Skipped paths These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*') Stemming languages The languages for which stemming expansion<br>dictionaries will be built. Log file name The file where the messages will be written.<br>Use 'stderr' for terminal output Log verbosity level This value adjusts the amount of messages,<br>from only errors to a lot of debugging data. Index flush megabytes interval This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB Max disk occupation (%) This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default). No aspell usage Aspell language Database directory name Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Unac exceptions <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation. uiPrefsDialogBase User preferences User interface Number of entries in a result page If checked, results with the same content under different names will only be shown once. Hide duplicate results. Highlight color for query terms Result list font Opens a dialog to select the result list font Helvetica-10 Resets the result list font to the system default Reset Texts over this size will not be highlighted in preview (too slow). Maximum text size highlighted for preview (megabytes) Choose editor applications Auto-start simple search on whitespace entry. Start with advanced search dialog open. Remember sort activation state. Prefer Html to plain text for preview. Search parameters Stemming language A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. Automatically add phrase to simple searches Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Dynamically build abstracts Do we synthetize an abstract even if the document seemed to have one? Replace abstracts from documents Synthetic abstract size (characters) Synthetic abstract context words The words in the list will be automatically turned to ext:xxx clauses in the query language entry. Query language magic file name suffixes. Enable External Indexes Toggle selected Activate All Deactivate All Remove from list. This has no effect on the disk index. Remove selected Add index Apply changes &OK Discard changes &Cancel Abstract snippet separator Style sheet Opens a dialog to select the style sheet file Choose Resets the style sheet to default Result List Edit result paragraph format string Edit result page html header insert Date format (strftime(3)) Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). Autophrase term frequency threshold percentage Plain text to HTML line style Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. <BR> <PRE> <PRE> + wrap Disable Qt autocompletion in search entry. Search as you type. Paths translations Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. Snippets window CSS file Opens a dialog to select the Snippets window CSS style sheet file Resets the Snippets window style Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Document filter choice style: Buttons Panel Toolbar Combobox Menu Show system tray icon. Close to tray instead of exiting. recoll-1.21.5/qtgui/i18n/recoll_ru.qm0000644000175000017500000025524712602163537016643 0ustar dockesdockes.cpZDo2NXM9X2`^h5lt nk;ww1~Hv'pczxCkrͺr LSI ؅| pp#vrvow 5w 5w 5wU .ֳ&6̫Bf3wͼu:gghf׸~a;U4UgeX Jy!DC6&0.Nsw7=dC?dG$JUYJUYYӉ[ui_nGCu2ʷ*3jʗHʗ <^6aL,7xHJg1A;'%בAB `<.Őxd;[ <L NBiX4e 2hvh<(Pb8"3 XZ gI5Ienߤffff*,6W4ZWbHy%1y%2M΄: Q#2X|W0̔ igiD -Zz[-A)TBB9 BSkoqr?) r>|ukw,A,<"E&{ASâ ¾R^gu$Ǣw\I^~CAi>aFA`M8$" !:UKDp h'xu9Mv2hT#jBfK %9n|7#^[[XnD!w)ʣ C(!v#+F7I^<~FW#wFN.H:"vV_guKYapRf 6L|NwvϗnW( wlÓtÓtȍɆtJ]84 1#%O3b,ym:u>3GDlJnQn}}nx;EF0AcǮ@έdt:"c 䴥:? J H -(5j 9ZyV ;3 D Kk ]#: cCy kj lMby H x qD h . 9~ ü>? 3 l )r *Nh :^) c *R3 +< 6 G.~J `P; ` aE cE d8 yg I"  VT Cw h   ԅ  ye1 TH d ,x"x =!O Kje T|c hd t9| "   jV Σ\ rx[  ٷ9 ۷ *T ?8a Vd 'И4 +bCyQ / 9ɝ} L* P֙ RV T#s* Vm \iCA$ ] `F hU v {l> !Y{ !Y W  ^ i  Մ '. ~7= N mY 'RK - 8$+ F3 OEJs ]6 ]k mC6 u0 y/ y~ 3 ȩ,A uN P P 5d< 0 7^o * Ւ4 H Q5< £4 qA6%nz-/.^8b9s<G8Q~@ W"uY~sX[s\1e3g3&p~^ -!&c$mc+|r|D'O lAMLiK A5 ?>;O All clauses AdvSearchN1>5 ?>;5 Any clause AdvSearchX525@=K9 ACDD8:A <=>68B5;O 2 D8;LB@5 @07<5@0$Bad multiplier suffix in size filter AdvSearch<C;LB8<5480media AdvSearchA>>1I5=8Omessage AdvSearch8=>5other AdvSearch?@575=B0F88 presentation AdvSearchB01;8FK spreadsheet AdvSearch B5:ABtext AdvSearch<----- A5 <----- All AdvSearchBase<----- -B8 <----- Sel AdvSearchBase>1028BL ?>;5 Add clause AdvSearchBase!;>6=K9 ?>8A:Advanced search AdvSearchBaseA5 ----> All ----> AdvSearchBaseA5 =5?CABK5 ?>;O A?@020 1C4CB >1J548=5=K ;>38G5A:8<  ("2A5 A;>20") 8;8  (";N1>5 A;>2>"). <br>>;O B8?0 ";N1K5", "2A5" 8;8 "157 MB8E" ?@8=8<0NB =01>@ ?@>ABKE A;>2 8 D@07K, 70:;NGQ==K5 2 42>9=K5 :02KG:8.<br>CABK5 ?>;O 83=>@8@CNBAO.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions.
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBase@>A<>B@Browse AdvSearchBase> :0B53>@8O< By categories AdvSearchBase::;NG8BL D8;LB@>20=85 ?> 40B5'Check this to enable filtering on dates AdvSearchBase6$8;LB@>20BL ?> B8?0< D09;>2,Check this to enable filtering on file types AdvSearchBase@:;NG8BL D8;LB@>20=85 ?> @07<5@C'Check this to enable filtering on sizes AdvSearchBaseLA?>;L7>20BL :0B53>@88, 0 =5 B8?K MIME;Check this to use file categories instead of raw mime types AdvSearchBase0:@KBLClose AdvSearchBase#1@0BL ?>;5 Delete clause AdvSearchBase:2548B5 :0B0;>3 =0G0;0 ?>8A:0Enter top directory for search AdvSearchBase $8;LB@Filter AdvSearchBase($8;LB@>20=85 ?> 40B5 Filter dates AdvSearchBase.$8;LB@>20=85 ?> @07<5@C Filter sizes AdvSearchBase 09B8Find AdvSearchBaseBFrom AdvSearchBase3=>@8@C5<K5Ignored file types AdvSearchBase1@0B8BLInvert AdvSearchBase0:A. @07<5@ Max. Size AdvSearchBasex0:A. @07<5@. >6=> 8A?>;L7>20BL k/K, m/M, g/G :0: <=>68B5;84Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase8=. @07<5@ Min. Size AdvSearchBase8=8<0;L=K9 @07<5@. >6=> 8A?>;L7>20BL k/K, m/M, g/G :0: <=>68B5;84Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase,3@0=8G8BL B8?K D09;>2Restrict file types AdvSearchBase2A:0BL B>;L:> 2 :0B0;>35:%Restrict results to files in subtree: AdvSearchBase.!>E@0=8BL :0: C<>;G0=85Save as default AdvSearchBaseRA:0BL <br>4>:C<5=BK,<br>C4>2;5B2>@ONI85:'Search for
documents
satisfying: AdvSearchBaseA:><K5Searched file types AdvSearchBase-B8 ----> Sel -----> AdvSearchBase0G0BL ?>8A: Start Search AdvSearchBase>To AdvSearchBase<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> 0A?8A0=85 ?0:5B=>3> 8=45:A8@>20=8O <span style=" font-weight:600;">Recoll</span> (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">064>5 ?>;5 <>65B A>45@60BL H01;>= (*), >4=> G8A;5==>5 7=0G5=85, A?8A>: G5@57 70?OBCN (1,3,5) 8;8 480?07>= (1-7). -B8 ?>;O 1C4CB 8A?>;L7>20=K <span style=" font-style:italic;">:0: 5ABL</span> 2 D09;5 crontab, 4;O >7=0:><;5=8O A ?>;=K< A8=B0:A8A>< :>B>@>3> A<. crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />0?@8<5@, 22>4 <span style=" font-family:'Courier New,courier';">*</span> 4;O <span style=" font-style:italic;">=8</span>, <span style=" font-family:'Courier New,courier';">12,19</span> 4;O <span style=" font-style:italic;">'0AK</span> 8 <span style=" font-family:'Courier New,courier';">15</span> 4;O <span style=" font-style:italic;">8=CBK</span> 70?CAB8B recollindex 5654=52=> 2 12:15 8 19:15.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> 0A?8A0=85 A >G5=L G0ABK<8 70?CA:0<8 <>65B >:070BLAO <5=55 MDD5:B82=K<, G5< 8=45:A8@>20=85 2 @50;L=>< 2@5<5=8.</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolWx<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">06<8B5 <span style=" font-style:italic;">K:;NG8BL</span> 4;O ?@5:@0I5=8O 02B><0B8G5A:>9 D>=>2>9 8=45:A0F88, <span style=" font-style:italic;">:;NG8BL</span> 4;O 5Q 70?CA:0, <span style=" font-style:italic;">B<5=0</span>, GB>1K >AB028BL 2AQ :0: 5ABL.</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolW80;>3 Cron Cron Dialog CronToolWZ=8 =545;8 (* 8;8 0-7, 0 8;8 7 - 2>A:@5A5=L5))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWK:;NG8BLDisable CronToolW:;NG8BLEnable CronToolWnH81:0 CAB0=>2:8 70?8A8 cron. 525@=K9 A8=B0:A8A ?>;59?3Error installing cron entry. Bad syntax in fields ? CronToolW"'0AK (* 8;8 0-23)Hours (* or 0-23) CronToolW>E>65, GB> 4;O recollindex 5ABL 2@CG=CN ?@02;5=K5 70?8A8, =5 1C45< B@>30BL crontabPIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolW8=CBK (0-59)Minutes (0-59) CronToolW 80;>3Dialog EditDialog&H81:0 :>=D83C@0F88 Config error EditTrans>:0;L=K9 ?CBL Local path EditTrans 7=0G0;L=K9 ?CBL Original path EditTransAE>4=K9 ?CBL Source path EditTrans>1028BLAdd EditTransBase B<5=0Cancel EditTransBase#40;8BLDelete EditTransBase&>@@5:B8@>2:0 ?CB59Path Translations EditTransBase!>E@0=8BLSave EditTransBaseK15@8B5 B8?K D09;>2 8 8A?>;L7C9B5 :=>?:8 =865, GB>1K 87<5=8BL B>, :0: >=8 >1@010BK20NBAOkSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBase0040BL :>@@5:B8@>2:C 4;OSetting path translations for  EditTransBase <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">>E>65, GB> 8=45:A 4;O MB>9 :>=D83C@0F88 =5 ACI5AB2C5B.</span><br /><br />A;8 =04> ?@>8=45:A8@>20BL 4><0H=89 :0B0;>3 A =01>@>< @07C<=KE C<>;G0=89, =06<8B5 :=>?:C <span style=" font-style:italic;">0?CAB8BL 8=45:A8@>20=85</span>. >4@>1=>AB8 <>6=> 1C45B CB>G=8BL ?>765. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A;8 B@51C5BAO 1>;LH5 :>=B@>;O, 2>A?>;L7C9B5AL AAK;:0<8 4;O CB>G=5=8O :>=D83C@0F88 8 @0A?8A0=8O 8=45:A8@>20=8O.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">-B>B 8=AB@C<5=B0@89 4>ABC?5= 2 ;N1>5 2@5<O ?>A@54AB2>< <5=N <span style=" font-style:italic;">0AB@>9:8</span>.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialog@0AB@>9:0 ?5@2>3> 8=45:A8@>20=8OFirst indexing setupFirstIdxDialog6>=D83C@0F8O 8=45:A8@>20=8OIndexing configurationFirstIdxDialog2 0A?8A0=85 8=45:A8@>20=8OIndexing scheduleFirstIdxDialog00?CAB8BL 8=45:A8@>20=85Start indexing nowFirstIdxDialog45AL <>6=> CB>G=8BL, :0:85 :0B0;>38 B@51C5BAO 8=45:A8@>20BL, :0:85 ?CB8 8;8 8<5=0 =5 B@51C5BAO, A :0:8<8 :>48@>2:0<8 8 B.?.This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialog.45AL <>6=> 2K1@0BL @568< 8=45:A8@>20=85O: ?0:5B=K9 8;8 @50;L=>3> 2@5<5=8, 0 B0:65 =0AB@>8BL @0A?8A0=85 02B><0B8G5A:>3> 8=45:A8@>20=8O ?@8 ?><>I8 cron.This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">=45:A8@>20=85 <span style=" font-weight:600;">Recoll</span> <>65B @01>B0BL ?>AB>O==>, 8=45:A8@CO 87<5=ONI85AO D09;K, 8;8 70?CA:0BLAO G5@57 ?@><56CB:8 2@5<5=8. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">@>G8B09B5 ?>4A:07:C, GB>1K @5H8BL, :0:>9 ?>4E>4 1C45B C4>1=59 (=06<8B5 F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">45AL <>6=> =0AB@>8BL @0A?8A0=85 02B><0B8G5A:8E 70?CA:>2 ?0:5B=>3> 8=45:A8@>20=8O 8;8 65 AB0@B0 8=45:A8@>20=8O 2 @50;L=>< 2@5<5=8 ?@8 2E>45 2 A8AB5<C (8;8 2AQ 8 A@07C, GB> @54:> 8<55B A<KA;). </p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedW 0A?8A0=85 cronCron scheduling IdxSchedW 5H8B5, =C6=> ;8 =0G8=0BL 8=45:A8@>20=85 2 @50;L=>< 2@5<5=8 ?@8 2E>45 2 A8AB5<C (B>;L:> 4;O 8=45:A0 ?> C<>;G0=8N).ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedWF0AB@>9:0 @0A?8A0=8O 8=45:A8@>20=8OIndex scheduling setup IdxSchedWP0?CA: 8=45:A8@>20=8O 2 @50;L=>< 2@5<5=8Real time indexing start up IdxSchedW45AL <>6=> 2K1@0BL, 2 :0:>5 2@5<O 70?CA:0BL 8=45:A8@>20=85, 8 CAB0=>28BL 70?8AL crontab._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedW 80;>3Dialog ListDialogGroupBoxGroupBox ListDialog$09; 8AB>@88 ("history") ?>2@564Q= 8;8 =5 G8B05BAO/=5 70?8AK205BAO, ?@>25@LB5 8;8 C40;8B5 53>:K"history" file is damaged or un(read)writeable, please check or remove it: Main<5B :0B0;>30  2 :>=D83C@0F88 No db directory in configurationMain&0;LH5&NextPreview&@54K4CI55 &PreviousPreview&A:0BL: &Search for:Preview52>7<>6=> A:>=25@B8@>20BL 4>:C<5=B 2> 2=CB@5==55 ?@54AB02;5=85 0Can't turn doc into internal representation for Preview B<5=0CancelPreviewG8AB8BLClearPreview0:@KBL 2:;04:C Close TabPreview4!>740N B5:AB 4;O ?@>A<>B@0Creating preview textPreview*H81:0 703@C7:8 D09;0Error while loading filePreview203@C60N B5:AB 2 @540:B>@ Loading preview text into editorPreview$&!>1;N40BL @538AB@ Match &CasePreviewNBACBAB2C5B 2A?><>30B5;L=0O ?@>3@0<<0: Missing helper program: Preview>?8@>20BLCopyPreviewTextEdit"5@5=>A8BL AB@>:8 Fold linesPreviewTextEdit"!>E@0=OBL >BABC?KPreserve indentationPreviewTextEdit 5G0BLPrintPreviewTextEditD5G0BL B5:CI53> >:=0 ?@54?@>A<>B@0Print Current PreviewPreviewTextEdit2!>E@0=8BL 4>:C<5=B 2 D09;Save document to filePreviewTextEditK45;8BL 2AQ Select AllPreviewTextEdit>:070BL ?>;O Show fieldsPreviewTextEdit(>:070BL 87>1@065=85 Show imagePreviewTextEdit.>:070BL >A=>2=>9 B5:ABShow main textPreviewTextEdit6<b>0B0;>38 A >A>15==>ABO<8Customised subtreesQObjectv<i>!;54CNI85 ?0@0<5B@K CAB0=02;820NBAO =0 25@E=5< C@>2=5, 5A;8 2K1@0BL<br>=8G53> 8;8 ?CABCN AB@>:C, 8;8 4;O 2K1@0==>3> ?>4:0B0;>30.<br>K <>65B5 4>102;OBL 8 C40;OBL :0B0;>38 :=>?:0<8 +/-.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject> 0A:@K20BL A8<2>;8G5A:85 AAK;:8Follow symbolic linksQObject%>48BL ?> A8<2>;8G5A:8< AAK;:0< ?@8 8=45:A8@>20=88. 1KG=> =5 45;05BAO 4;O 871560=8O 4C1;59TFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject1I85 ?0@0<5B@KGlobal parametersQObject<=45:A8@>20BL 2A5 8<5=0 D09;>2Index all file namesQObject0=45:A8@>20BL 8 B5 8<5=0 D09;>2, 4;O :>B>@KE =5 ?>;CG05BAO >?@545;8BL 8;8 >1@01>B0BL A>45@68<>5 (=58725AB=K9 8;8 =5?>445@68205<K9 B8? MIME). 1KG=> B0:}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject"'0AB=K5 ?0@0<5B@KLocal parametersQObject 0@0<5B@K ?>8A:0Search parametersQObject$@>?CA:05<K5 8<5=0 Skipped namesQObject!?8A>: ?>4:0B0;>3>2 2 8=45:A8@C5<>9 85@0@E88,<br>345 =5:>B>@K5 ?0@0<5B@K =C640NBAO 2 :>@@5:F88. 1KG=> ?CAB.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObject(01;>=K 8<Q= D09;>2 8;8 :0B0;>3>2, :>B>@K5 =5 A;54C5B 8=45:A8@>20BL.LThese are patterns for file or directory names which should not be indexed.QObject.>A5IQ==K5 web-AB@0=8FK Web historyQObject&B:@KBL&OpenQWidgetL&B:@KBL @>48B5;LA:89 4>:C<5=B/:0B0;>3&Open Parent document/folderQWidget&@>A<>B@&PreviewQWidget"&!>E@0=8BL 2 D09;&Write to FileQWidget,!:>?8@>20BL &8<O D09;0Copy &File NameQWidget>?8@>20BL &URL Copy &URLQWidget209B8 &?>4>1=K5 4>:C<5=BKFind &similar documentsQWidget.B:@KBL >:=> &$@03<5=BKOpen &Snippets windowQWidget\&@54?@>A<>B@ @>48B5;LA:>3> 4>:C<5=B0/:0B0;>30Preview P&arent document/folderQWidget6!>E@0=8BL 2K45;5=85 2 D09;KSave selection to filesQWidget8>:070BL 2;>65==K5 4>:C<5=BKShow subdocuments / attachmentsQWidget<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">=45:A8@>20=85 <span style=" font-weight:600;">Recoll</span> <>65B 1KBL =0AB@>5=> :0: A5@28A, >1=>2;ONI89 8=45:A ?@8 87<5=5=88 D09;>2 2 @50;L=>< 2@5<5=8. @8 MB>< 8=45:A 2A5340 A25689, => F5=>9 ?>AB>O==> 8A?>;L7C5<KE A8AB5<=KE @5AC@A>2.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>.

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWf"0:65 70?CAB8BL A;C61C 8=45:A8@>20=8O ?@O<> A59G0A.%Also start indexing daemon right now.RTIToolWh$09; 02B>70?CA:0 C40;Q=. AB0=>28BL B5:CI89 ?@>F5AA?2Autostart file deleted. Kill current process too ?RTIToolW"5 <>3C A>740BL: Can't create: RTIToolW@52>7<>6=> 70?CAB8BL recollindexCould not execute recollindexRTIToolW#40;ON D09; Deleting fileRTIToolW#40;ON:  Deleting: RTIToolWn2B><0B8G5A:89 70?CA: 8=45:A8@>20=8O 2 @50;L=>< 2@5<5=8"Real time indexing automatic startRTIToolW"#18@0N 02B>70?CA:Removing autostartRTIToolW0<5=ON D09;Replacing fileRTIToolW0<5=ON:  Replacing: RTIToolWl0?CA:0BL A;C61C 8=45:A8@>20=8O 2<5AB5 A <>59 A5AA859..Start indexing daemon with my desktop session.RTIToolWAB>@>6=>WarningRTIToolW(2A5 O7K:8)(all languages)RclMain(157 A;>2>D>@<) (no stemming)RclMain ?@>3@0<<5 About RecollRclMain2A5AllRclMain525@=0O :><0=4=0O AB@>:0 ?@>3@0<<K ?@>A<>B@0 %1: [%2] @>25@LB5 D09; mimeviewCBad viewer command line for %1: [%2] Please check the mimeview fileRclMain*5B 4>ABC?0 : D09;C: Can't access file: RclMainJ52>7<>6=> A>740BL >:=> ?@54?@>A<>B@0Can't create preview windowRclMain:52>7<>6=> @0A?0:>20BL D09;: Can't uncompress file: RclMain`5 <>3C >1=>28BL 8=45:A: 8=45:A0B>@ C65 B@C48BAO#Can't update index: indexer runningRclMainl52>7<>6=> 872;5GL 4>:C<5=B 8;8 A>740BL 2@5<5==K9 D09;0Cannot extract document or create temporary fileRclMainL52>7<>6=> =09B8 @>48B5;LA:89 4>:C<5=BCannot find parent documentRclMainZ52>7<>6=> 872;5GL 8=D>@<0F8N 4>:C<5=B0 87 +Cannot retrieve document info from databaseRclMain0:@K20NClosingRclMainb@>8=45:A8@>20=> A>45@60=85 A;54CNI8E MIME-B8?>2:.Content has been indexed for these mime types:RclMain5 C40;>AL >B:@KBL 2=5H=89 8=45:A.  =5 >B:@KB0. @>25@LB5 A?8A>: 2=5H=8E 8=45:A>2.HCould not open external index. Db not open. Check external indexes list.RclMain$AB>@8O 4>:C<5=B>2Document historyRclMain >B>2>DoneRclMain.C1;8@>20==K5 4>:C<5=BKDuplicate documentsRclMain!B8@0N 8=45:A Erasing indexRclMain H81:0ErrorRclMainK?>;=ON: [ Executing: [RclMain"@51C5<K5 2=5H=85 ?@>3@0<<K 4;O 20H8E B8?>2 D09;>2 =5 =0945=K: A<. D09; pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMain0==K5 8AB>@88 History dataRclMain =45:A =5 >B:@KBIndex not openRclMainH81:0 70?@>A0Index query errorRclMain.=45:A8@C5<K5 MIME-B8?KIndexed MIME TypesRclMainD=45:A8@>20=85 ?>:0 =5 2K?>;=O;>ALIndexing did not run yetRclMain2=45:A8@>20=85 =5 C40;>ALIndexing failedRclMain =45:A8@>20=85: Indexing in progress: RclMain.=45:A8@>20=85 ?@5@20=>Indexing interruptedRclMainJ54>AB0NI85 2A?><>30B5;L=K5 ?@>3@0<<KMissing helper programsRclMain>=8B>@MonitorRclMainX5 C:070=0 2=5H=OO ?@>3@0<<0 ?@>A<>B@0 4;O [-No external viewer configured for mime type [RclMainLA5 2A?><>30B5;L=K5 ?@>3@0<<K 4>ABC?=KNo helpers found missingRclMain0>8A: =5 40; @57C;LB0B>2No results foundRclMainBACBAB2C5BNoneRclMainG8AB8BLPurgeRclMain0?@>A >1@010BK205BAO.<br>7-70 >3@0=8G5=89 181;8>B5:8<br>>AB0=>2 ?@5@2QB 2AN ?@>3@0<<CeQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMain" 57C;LB0BK ?>8A:0 Query resultsRclMain@1=C;8BL 8=45:A 8 =0G0BL 70=>2>?(Reset the index and start from scratch ?RclMain, 57C;LB0B>2 (?@8<5@=>)Result count (est.)RclMain!>E@0=8BL D09; Save fileRclMain070 :>@=59StemdbRclMain0&@5@20BL 8=45:A8@>20=85Stop &IndexingRclMain&;>65==K5 4>:C<5=BKSub-documents and attachmentsRclMain"5:CI89 ?@>F5AA 8=45:A8@>20=8O =5 1K; 70?CI5= 87 MB>3> 8=B5@D59A0. 06<8B5 OK 4;O >AB0=>20 8;8 B<5=8BL, GB>1 @01>B0; A515yThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMain@>3@0<<0 ?@>A<>B@0, C:070==0O 2 mimeview 4;O %1: %2, =5 =0945=0. B:@KBL 480;>3 =0AB@>5:?hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainz0==K5 URL ( | 8=45:A=K5 ?CB8) 8<5NB >4=> 8 B> 65 A>45@68<>5:-These Urls ( | ipath) share the same content:RclMain2-B>B ?>8A: C65 =5 0:B825="This search is not active any moreRclMain58725AB=>UnknownRclMain 1=>28BL &8=45:A Update &IndexRclMain1=>2;ONUpdatingRclMain><0=4=0O AB@>:0 ?@>3@0<<K ?@>A<>B@0 4;O %1 A>45@68B :0: A0< D09;, B0: 8 @>48B5;O: B0:>5 =5 ?>445@68205BAOQViewer command line for %1 specifies both file and parent file value: unsupportedRclMainAB>@>6=>WarningRclMain<>H81:0 ?>;CG5=8O A?8A:0 O7K:>2#error retrieving stemming languagesRclMainD8;LB@>20==>5filteredRclMain <5480mediaRclMainA>>1I5=8OmessageRclMain8=>5otherRclMain?@575=B0F88 presentationRclMainA>@B8@>20==>5sortedRclMainB01;8FK spreadsheetRclMain B5:ABtextRclMain& ?@>3@0<<5 &About Recoll RclMainBase&!;>6=K9 ?>8A:&Advanced Search RclMainBase8&G8AB8BL 8AB>@8N 4>:C<5=B>2&Erase document history RclMainBase0G8AB8BL 8AB>@8N &?>8A:0&Erase search history RclMainBase &$09;&File RclMainBase> 25AL &M:@0= &Full Screen RclMainBase0>=D83C@0F8O 8&=B5@D59A0&GUI configuration RclMainBase&>4A:07:0&Help RclMainBase8>=D83C@0F8O &8=45:A8@>20=8O&Index configuration RclMainBase4& 0A?8A0=85 8=45:A8@>20=8O&Indexing schedule RclMainBase&0AB@>9:8 &Preferences RclMainBase$5@5&8=45:A8@>20BL&Rebuild index RclMainBase&!?8A>: &@57C;LB0B>2&Results RclMainBase8>:070BL 8=45:A8@C5<K5 &B8?K&Show indexed types RclMainBaseN&>:070BL =54>AB0NI85 2=5H=85 ?@>3@0<<K&Show missing helpers RclMainBase*&0@0<5B@K A>@B8@>2:8&Sort parameters RclMainBase&=AB@C<5=BK&Tools RclMainBase& C:>2>4AB2> &User manual RclMainBase!;>6=K9 ?>8A:Advanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase$AB>@8O 4>:C<5=B>2Document History RclMainBase&&AB>@8O 4>:C<5=B>2Document &History RclMainBase &KE>4E&xit RclMainBase080;>3 &2=5H=53> 8=45:A0E&xternal index dialog RclMainBase.80;>3 2=5H=53> 8=45:A0External index dialog RclMainBaseF11F11 RclMainBase5@20O AB@0=8F0 First Page RclMainBase5@20O AB@0=8F0 First page RclMainBase> 25AL M:@0= Full Screen RclMainBaseJ5@59B8 : ?5@2>9 AB@0=8F5 @57C;LB0B>2Go to first page of results RclMainBase!;54. AB@0=8F0 Next Page RclMainBase!;54. AB@0=8F0 Next page RclMainBase<!;54CNI0O AB@0=8F0 @57C;LB0B>2Next page of results RclMainBase PgDownPgDown RclMainBasePgUpPgUp RclMainBase@54. AB@0=8F0 Previous Page RclMainBase@54. AB@0=8F0 Previous page RclMainBase>@54K4CI0O AB@0=8F0 @57C;LB0B>2Previous page of results RclMainBase RecollRecoll RclMainBase(!>E@0=8BL 2 CSV-D09;Save as CSV (spreadsheet) file RclMainBase!>E@0=8BL @57C;LB0BK 2 B5:AB>2K9 D09; A @0745;8B5;O<8, >B:@K205<K9 :0: B01;8F0 2 Office@Saves the result into a file which you can load in a spreadsheet RclMainBaseShift-PgUp Shift+PgUp RclMainBase.>:070BL 45B0;8 70?@>A0Show Query Details RclMainBase.>:070BL 2 2845 B01;8FK Show as table RclMainBaseD>:070BL @57C;LB0BK 2 2845 B01;8FK(Show results in a spreadsheet-like table RclMainBaseL!>@B8@>20BL ?> 40B0< >B =>2KE : AB0@K<Sort by date, newest first RclMainBaseL!>@B8@>20BL ?> 40B0< >B AB0@KE : =>2K<Sort by date, oldest first RclMainBaseL!>@B8@>20BL ?> 40B0< >B =>2KE : AB0@K<#Sort by dates from newest to oldest RclMainBaseL!>@B8@>20BL ?> 40B0< >B AB0@KE : =>2K<#Sort by dates from oldest to newest RclMainBase(0@0<5B@K A>@B8@>2:8Sort parameters RclMainBase&02830B>@ &B5@<8=>2Term &explorer RclMainBase@=AB@C<5=B 8AA;54>20=8O B5@<8=>2Term explorer tool RclMainBase 1=>28BL &8=45:A Update &index RclMainBaseK45@6:0Abstract RecollModel 2B>@Author RecollModel0B0Date RecollModel0B0 8 2@5<O Date and time RecollModel0B0 4>:C<5=B0 Document date RecollModel  07<5@ 4>:C<5=B0 Document size RecollModel0B0 D09;0 File date RecollModel<O D09;0 File name RecollModel 07<5@ D09;0 File size RecollModel I-?CBLIpath RecollModel;NG52K5 A;>20Keywords RecollModel"8? MIME MIME type RecollModel7<5=5=>Mtime RecollModel$AE>4=0O :>48@>2:0Original character set RecollModel 5;520=B=>ABLRelevancy rating RecollModel0720=85Title RecollModelURLURL RecollModel"(?>:070BL 70?@>A) (show query)ResList0<p><b>5 =0945=></b><br>

No results found
ResList<p><i>;LB5@=0B82=0O >@D>3@0D8O (157 480:@8B8G5A:8E 7=0:>2): </i>4

Alternate spellings (accents suppressed): ResListJ<p><i>;LB5@=0B82=0O >@D>3@0D8O: </i>

Alternate spellings: ResList$AB>@8O 4>:C<5=B>2Document historyResList>:C<5=BK DocumentsResList!;54CNI0ONextResListB:@KBLOpenResList@54?@>A<>B@PreviewResList@54K4CI0OPreviousResList&>4@>1=>AB8 70?@>A0 Query detailsResList, 57C;LB0B>2 (?@8<5@=>)Result count (est.)ResList$!?8A>: @57C;LB0B>2 Result listResList$@03<5=BKSnippetsResList&>:C<5=B =54>ABC?5=Unavailable documentResList?>forResList87 <8=8<C<out of at leastResList &#40;8BL AB>;15F&Delete columnResTable<&!1@>A8BL ?0@0<5B@K A>@B8@>2:8 &Reset sortResTable$&!>E@0=8BL :0: CSV &Save as CSVResTable*>1028BL :>;>=:C "%1"Add "%1" columnResTable@5 C40;>AL >B:@KBL/A>740BL D09;:Can't open/create file: ResTable8!>E@0=8BL B01;8FC 2 CSV-D09;Save table to CSV fileResTableA5 A;>20 All termsSSearchN1>5 A;>2>Any termSSearch.525@=0O AB@>:0 70?@>A0Bad query stringSSearch42548B5 <0A:C 8<5=8 D09;0.$Enter file name wildcard expression.SSearch2548B5 ?>8A:>2K5 A;>20. >6=> =060BL Esc-?@>15; 4;O 4>?>;=5=8O B5:CI53> A;>20.FEnter search terms here. Type ESC SPC for completions of current term.SSearch<O D09;0 File nameSSearch&54>AB0B>G=> ?0<OB8 Out of memorySSearch/7K: 70?@>A0Query languageSSearch&K15@8B5 B8? ?>8A:0Choose search type. SSearchBaseG8AB8BLClear SSearchBase Ctrl+SCtrl+S SSearchBase2548B5 ?>8A:>2K5 A;>20. >6=> =060BL Esc-?@>15; 4;O 4>?>;=5=8O B5:CI53> A;>20.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase&G8AB8BL ?>;5 22>40Erase search entry SSearchBaseSSearchBase SSearchBase SSearchBase A:0BLSearch SSearchBase&@8ABC?8BL : ?>8A:C Start query SSearchBase2A5All SearchClauseW ;N1>5Any SearchClauseW8<O D09;0 File name SearchClauseW5 8A?. ?>;ONo field SearchClauseW157None SearchClauseW>;8G5AB2> 4>?>;=8B5;L=KE A;>2, :>B>@K5 <>3CB >:070BLAO <564C 2K1@0==K<8HNumber of additional words that may be interspersed with the chosen ones SearchClauseW D@070Phrase SearchClauseW1;87>ABL Proximity SearchClauseWpK15@8B5 B8? 70?@>A0, :>B>@K9 1C45B ?@>87254Q= ?> A;>20<>Select the type of query that will be performed with the words SearchClauseW 09B8:Find:Snippets!;54CNI0ONextSnippets@54K4CI0OPrevSnippets$@03<5=BKSnippetsSnippets A:0BLSearch SnippetsW&0:@KBL&Close SpellBase& 0A:@KBL &Expand  SpellBaseC40@5=8OAccents SpellBase Alt+CAlt+C SpellBase Alt-EAlt+E SpellBase@538AB@Case SpellBase#G8BK20BLMatch SpellBase(5B 8=D>@<0F88 > . No db info. SpellBase$02830B>@ B5@<8=>2 Term Explorer SpellBase %1 @57C;LB0B(>2) %1 resultsSpellW6H81:0 @0A:@K20=8O aspell. Aspell expansion error. SpellWl5 ?>;CG8;>AL 8=8F80;878@>20BL Aspell. = CAB0=>2;5=?)Aspell init failed. Aspell not installed?SpellW<!@54=55 G8A;> A;>2 2 4>:C<5=B5Average terms per documentSpellW6 07<5@ :0B0;>30 107K 40==KEDatabase directory sizeSpellW>:. / A53> Doc. / Tot.SpellW=45:A: %1 4>:C<5=B(>2), A@54=OO 4;8=0 %2 A;>2(>). %3 @57C;LB0B(>2)7Index: %1 documents, average length %2 terms.%3 resultsSpellW-;5<5=BItemSpellWr!?8A>: 1K; >1@570= 2 0;D028B=>< ?>@O4:5, =5:>B>@K5 G0ABK51List was truncated alphabetically, some frequent SpellW80:A8<0;L=0O 4;8=0 4>:C<5=B0Longest document lengthSpellWMIME-B8?K: MIME types:SpellW( 0A:@KB85 =5 =0945=>No expansion foundSpellW '8A;> 4>:C<5=B>2Number of documentsSpellW 532K@065=85RegexpSpellW6>:070BL AB0B8AB8:C 8=45:A0Show index statisticsSpellW68=8<0;L=0O 4;8=0 4>:C<5=B0Smallest document lengthSpellW$0?8A0=85/D>=5B8:0Spelling/PhoneticSpellW  0A:@KB85 >A=>2KStem expansionSpellW !;>2>TermSpellW=0G5=85ValueSpellW(01;>=K WildcardsSpellW<>H81:0 ?>;CG5=8O A?8A:0 O7K:>2#error retrieving stemming languagesSpellWvA;>20 <>3CB >BACBAB2>20BL. >?@>1C9B5 1>;55 4;8==K9 :>@5=L..terms may be missing. Try using a longer root.SpellWR!;54C5B 2K18@0BL =5 1>;LH5 >4=>3> 8=45:A0$At most one index should be selected UIPrefsDialog52>7<>6=> 4>1028BL 8=45:A A 4@C38<8 =0AB@>9:0<8 @538AB@0 8 480:@8B8:8>Cant add index with different case/diacritics stripping option UIPrefsDialogK15@8B5Choose UIPrefsDialog`03>;>2>: A?8A:0 @57C;LB0B>2 (?> C<>;G0=8N ?CAB)%Result list header (default is empty) UIPrefsDialog$>@<0B 0170F0 2 A?8A:5 @57C;LB0B>2 (>G8AB8B5, GB>1K 25@=CBLAO : 20@80=BC ?> C<>;G0=8N)3 :>=D83C@0F88 Recoll 8;8 8=45:A0 Xapian (=0?@8<5@, /home/O/.recoll 8;8 /home/?@8OB5;L/.recoll/xapiandb)nSelect recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) UIPrefsDialogVK1@0==K9 :0B0;>3 =5 ?>E>6 =0 8=45:A Xapian;The selected directory does not appear to be a Xapian index UIPrefsDialogD-B>B :0B0;>3 C65 2 A?8A:5 8=45:A>23The selected directory is already in the index list UIPrefsDialogK1@0==K9 :0B0;>3 2K3;O48B :0: :0B0;>3 :>=D83C@0F88 Recoll, => =0AB@>9:8 =5 <>3CB 1KBL ?@>G8B0=KjThe selected directory looks like a Recoll configuration directory but the configuration could not be read UIPrefsDialog&-B> 3;02=K9 8=45:A!This is the main/local index! UIPrefsDialog<>H81:0 ?>;CG5=8O A?8A:0 O7K:>2#error retrieving stemming languages UIPrefsDialogd7<5=5=85 70?8A59 A @07;8G=K<8 B5:CI8<8 7=0G5=8O<8.Changing entries with different current values ViewAction><0=40Command ViewAction$7OBL 87 >:@C65=8ODesktop Default ViewAction"8? MIME MIME type ViewActionP59AB285 (?CAB> -> 20@80=B ?> C<>;G0=8N) Action (empty -> recoll default)ViewActionBase*@8<5=8BL : 2K45;5=8NApply to current selectionViewActionBase0:@KBLCloseViewActionBaseD5@5>?@545;8BL =0AB@>9:8 >:@C65=8O Exception to Desktop preferencesViewActionBase >4=K5 2LN5@KNative ViewersViewActionBaseK15@8B5 B8?K D09;>2 8 8A?>;L7C9B5 :=>?:8 =865, GB>1K 87<5=8BL B>, :0: >=8 >1@010BK20NBAOkSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseK15@8B5 MIME-B8?K 8 8A?>;L7C9B5 :=>?:8 =865, GB>1K 87<5=8BL B>, :0: >=8 >1@010BK20NBAOlSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBase@A?>;L7>20BL =0AB@>9:8 >:@C65=8O"Use Desktop preferences by defaultViewActionBase:;NG05B 8=45:A8@>20=85 AB@0=8F, >B:@K202H8EAO 2 Firefox.<br>(=C6=> 4>?>;=5=85 Recoll 4;O Firefox)\Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelW@8 4>AB865=88 C:070==>3> @07<5@0 :MH0 AB0@K5 70?8A8 1C4CB C40;OBLAO1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWL0:A8<0;L=K9 @07<5@ web-E@0=8;8I0 () Max. size for the web store (MB)confgui::ConfBeaglePanelWH1@010BK20BL ?>A5IQ==K5 web-AB@0=8FKProcess the WEB history queueconfgui::ConfBeaglePanelW <O :0B0;>30 4;O E@0=5=8O :>?89 ?>A5IQ==KE web-AB@0=8F.<br>CBL, =5 O2;ONI89AO 01A>;NB=K<, 15@QBAO >B=>A8B5;L=> :0B0;>30 :>=D83C@0F88.The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWL<O :0B0;>30 4;O E@0=8;8I0 web-AB@0=8FWeb page store directory nameconfgui::ConfBeaglePanelWJ52>7<>6=> 70?8A0BL D09; :>=D83C@0F88Can't write configuration fileconfgui::ConfIndexW@>A<>B@Chooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW<p>2B><0B8G5A:8 2:;NG05B GC2AB28B5;L=>ABL 4;O @538AB@0 A8<2>;>2, 5A;8 AB@>:0 ?>8A:0 A>45@68B 703;02=K5 1C:2K (:@><5 ?5@2>9 1C:2K).  ?@>B82=>< A;CG05 8A?>;L7C9B5 O7K: 70?@>A>2 (<>48D8:0B>@ <i>C</i> 4;O C:070=8O GC2AB28B5;L=>AB8).

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW<p>2B><0B8G5A:8 2:;NG05B GC2AB28B5;L=>ABL 4;O 480:@8B8:8, 5A;8 AB@>:0 ?>8A:0 A>45@68B 480:@8B8G5A:85 7=0:8 (=5 2 Unac-8A:;NG5=8OE).  ?@>B82=>< A;CG05 8A?>;L7C9B5 O7K: 70?@>A>2 (<>48D8:0B>@ <i>D</i> 4;O C:070=8O GC2AB28B5;L=>AB8).

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelWb<p>0:A8<0;L=>5 G8A;> @0A:@KB89 4;O >4=>3> A;>20 (=0?@. ?@8 8A?>;L7>20=88 <0A>:). =0G5=85 ?> C<>;G0=8N (10 000) O2;O5BAO @07C<=K< 8 ?><>65B 871560BL A;8H:>< 70B@0B=KE 70?@>A>2.

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelW:<p>0:A8<0;L=>5 G8A;> M;5<5=B0@=KE ?@54;>65=89, 4>102;O5<KE 2 70?@>A : Xapian.  =5:>B>@KE A;CG0OE @57C;LB0B>< @0A:@KB8O A;>2 <>65B AB0BL G@57<5@=>5 ?>B@51;5=85 ?0<OB8. =0G5=85 ?> C<>;G0=8N (100 000) 4>AB0B>G=> 2 1>;LH8=AB25 A;CG052 8 ?>4E>48B 4;O A>2@5<5==KE 0??0@0B=KE :>=D83C@0F89.5

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWX2B><0B8G5A:0O GC2AB28B5;L=>ABL 4;O @538AB@0$Automatic character case sensitivityconfgui::ConfSearchPanelW\2B><0B8G5A:0O GC2AB28B5;L=>ABL 4;O 480:@8B8:8 Automatic diacritics sensitivityconfgui::ConfSearchPanelWJ0:A8<0;L=>5 G8A;> Xapian-?@54;>65=89Maximum Xapian clauses countconfgui::ConfSearchPanelWB0:A8<0;L=>5 G8A;> @0A:@KB89 A;>2Maximum term expansion countconfgui::ConfSearchPanelW:=5H=85 D8;LB@K, 2K?>;=ONI85AO 4>;LH5 C:070==>3> ?@545;L=>3> 2@5<5=8 @01>BK, ?@8=C48B5;L=> 7025@H0NBAO. -B> <>65B ?><>GL 2 B5E @54:8E A;CG0OE, :>340 D8;LB@ (=0?@8<5@, postscript) 70F8:;8205BAO ?@8 >1@01>B:5 =5:>B>@>3> 4>:C<5=B0. =0G5=85, @02=>5 -1, 2K:;NG05B ?@>25@:C 2@5<5=8 @01>BK. External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelW 1I55Globalconfgui::ConfSubPanelWA;8 MB> 7=0G5=85 CAB0=>2;5=> (B.5. =5 @02=> -1), B> ?@8 8=45:A8@>20=88 B5:AB>2K5 D09;K @071820NBAO =0 D@03<5=BK A>>B25BAB2CNI53> @07<5@0. 0==0O >?F8O <>65B ?><>GL ?@8 2K?>;=5=88 ?>8A:0 2 >G5=L 1>;LH8E B5:AB>2KE D09;0E (=0?@8<5@, D09;0E 6C@=0;>2).If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWB@545; @07<5@0 A60B>3> D09;0 (KB)Max. compressed file size (KB)confgui::ConfSubPanelWJ@545;L=>5 2@5<O @01>BK D8;LB@0 (A5:)Max. filter exec. time (S)confgui::ConfSubPanelWH@545; @07<5@0 B5:AB>2>3> D09;0 (MB)Max. text file size (MB)confgui::ConfSubPanelWJ 07<5@ AB@0=8FK B5:AB>2>3> D09;0 (KB)Text file page size (KB)confgui::ConfSubPanelW-B> 7=0G5=85 CAB0=02;8205B ?>@>3 @07<5@0 A60BKE D09;>2, :>B>@K5 1C4CB >1@010BK20BLAO. -1 >B:;NG05B ?>@>3, 0 >B:;NG05B 45:><?@5AA8N.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelW-B> 7=0G5=85 CAB0=02;8205B ?>@>3 @07<5@0 B5:AB>2KE D09;>2, :>B>@K5 1C4CB >1@010BK20BLAO. -1 >B:;NG05B ?>@>3. 0==0O =0AB@>9:0 <>65B 1KBL ?>;57=0 4;O ?@54>B2@0I5=8O 8=45:A8@>20=8O 1>;LH8E D09;>2: 6C@=0;>2 A>>1I5=89 8 B.?.This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelWL<p>-B> 8A:;NG5=8O 4;O <5E0=87<0 Unac, :>B>@K9 C40;O5B 2AN 480:@8B8:C 8 2K?>;=O5B :0=>=8G5A:CN 45:><?>78F8N. >6=> ?5@5>?@545;8BL <5E0=87< C40;5=8O 4;O 20H53> O7K:0 8;8 4>1028BL 45:><?>78F88 (=0?@., 4;O ;830BC@). 0640O 70?8AL >B45;O5BAO ?@>15;0<8 8 A>AB>8B 87 8AE>4=>3> A8<2>;0 8 8=B5@?@5B0F88.l

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelW/7K: aspellAspell languageconfgui::ConfTopPanelW&0B0;>3 107K 40==KEDatabase directory nameconfgui::ConfTopPanelWB:;NG05B 8A?>;L7>20=85 aspell 4;O 35=5@0F88 ?@81;865=89 =0?8A0=8O 2 =02830B>@5 B5@<8=>2.<br> >;57=>, 5A;8 aspell >BACBAB2C5B 8;8 A;><0=. Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelW8=B5@20; 70?8A8 8=45:A0 (1)Index flush megabytes intervalconfgui::ConfTopPanelW$09; 6C@=0;0 Log file nameconfgui::ConfTopPanelW&>4@>1=>ABL 6C@=0;0Log verbosity levelconfgui::ConfTopPanelWH0:A8<0;L=>5 8A?>;L7>20=85 48A:0 (%)Max disk occupation (%)confgui::ConfTopPanelW,5 8A?>;L7>20BL aspellNo aspell usageconfgui::ConfTopPanelW@>?CA:0BL Skipped pathsconfgui::ConfTopPanelW*/7K:8 A> A;>2>D>@<0<8Stemming languagesconfgui::ConfTopPanelW$09;, :C40 1C4CB 70?8AK20BLAO A>>1I5=8O.<br>'stderr' 4;O 2K2>40 =0 B5@<8=0;PThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelW,/7K: A;>20@O aspell. 1KG=> 2@>45 'en' 8;8 'ru'...<br>A;8 7=0G5=85 =5 C:070=>, 1C45B 8A?>;L7>20=> >:@C65=85 (;>:0;L), GB> >1KG=> @01>B05B. 'B>1K ?>A<>B@5BL, :0:85 20@80=BK 4>ABC?=K 2 A8AB5<5, =015@8B5 'aspell config' 8 ?@>25@LB5, :0:85 .dat-D09;K 5ABL 2 :0B0;>35 'data-dir'. 3The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelW/7K:8, 4;O :>B>@KE 1C4CB ?>AB@>5=K<br>A;>20@8 @0A:@KB8O A;>2>D>@<.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelW!?8A>: :0B0;>3>2, 345 =0G8=05BAO @5:C@A82=>5 8=45:A8@>20=85. 1KG=> 4><0H=89 :0B0;>3.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelW<O :0B0;>30, 2 :>B>@>< E@0=8BAO 8=45:A<br>B=>A8B5;L=K9 ?CBL 15@QBAO >B :0B0;>30 :>=D83C@0F88. 1KG=> 'xapiandb'.The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelWH<5=0 :0B0;>3>2, :>B>@K5 8=45:A8@>20=85 >1>94QB.<br>>65B A>45@60BL H01;>=K. 1O70=> ?>4E>48BL : ?CBO<, :>B>@K5 2848B 8=45:A0B>@ (=0?@8<5@, 5A;8 topdirs 2:;NG05B '/home/me' 8 '/home' O2;O5BAO AAK;:>9 =0 '/usr/home', B> ?@028;L=0O 70?8AL 4>;6=0 1KBL '/home/me/tmp*', 0 =5 '/usr/home/me/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelW"@>F5=B 70=OB>AB8 48A:0, ?@8 :>B>@>< 8=45:A8@>20=85 1C45B ?@5@20=> (2> 871560=85 70?>;=5=8O 4>ABC?=>3> <5AB0).<br>1KG=>: 0 (>B:;NG05B ?@>25@:C).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelWD-B> 7=0G5=85 >?@545;O5B :>;8G5AB2> ?@>8=45:A8@>20==KE 40==KE <564C A1@>A0<8 =0 48A:.<br>><>305B :>=B@>;8@>20BL 8A?>;L7>20=85 ?0<OB8 ?@8 8=45:A0F88. 1KG=> 10Mb This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelW-B> 7=0G5=85 >?@545;O5B ?>4@>1=>ABL A>>1I5=89,<br>>B >H81>: 4> >B;04>G=KE 40==KE.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW&=45:A8@C5<K5 ?0?:8Top directoriesconfgui::ConfTopPanelWUnac-8A:;NG5=8OUnac exceptionsconfgui::ConfTopPanelW&B<5=0&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBase*<BR> (?5@52>4 AB@>:8)
uiPrefsDialogBase"<PRE> (?@5D>@<0B)

uiPrefsDialogBase<PRE> + ?5@5=>A
 + wrapuiPrefsDialogBase>8A: [rolling stones] (420 A;>20) 1C45B 87<5=Q= =0 [rolling 8;8 stones 8;8 (rolling phrase 2 stones)].
-B> <>65B ?>4=OBL @57C;LB0BK, 4;O :>B>@KE A;>20 A;54CNB 8<5==> 2 B>< ?>@O4:5, :0: 22545=K.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBaseH 0745;8B5;L D@03<5=B>2 2 @57C;LB0B0EAbstract snippet separatoruiPrefsDialogBase:;NG8BL 2A5Activate AlluiPrefsDialogBase>1028BL 8=45:A	Add indexuiPrefsDialogBase&@8<5=8BL 87<5=5=8O
Apply changesuiPrefsDialogBaseP0G8=0BL ?@>AB>9 ?>8A: ?> 22>4C ?@>15;0.-Auto-start simple search on whitespace entry.uiPrefsDialogBase`2B><0B8G5A:8 4>102;OBL D@07C ?@8 ?@>AB>< ?>8A:5+Automatically add phrase to simple searchesuiPrefsDialogBaseT>@>3 G0AB>BK B5@<>2 02B>D@07K 2 ?@>F5=B0E.Autophrase term frequency threshold percentageuiPrefsDialogBaseK1@0BLChooseuiPrefsDialogBase K1>@ @540:B>@>2Choose editor applicationsuiPrefsDialogBase)Q;:=8B5, GB>1K 4>1028BL 4@C3>9 :0B0;>3 8=45:A0 2 A?8A>:. >6=> 2K1@0BL :0B0;>3 :>=D83C@0F88 Recoll 8;8 8=45:A Xapian.{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBase4$>@<0B 40BK ?> strftime(3)Date format (strftime(3))uiPrefsDialogBaseK:;NG8BL 2A5Deactivate AlluiPrefsDialogBasehB:;NG8BL Qt-02B>7025@H5=85 ?@8 22>45 AB@>:8 ?>8A:0.*Disable Qt autocompletion in search entry.uiPrefsDialogBase$B<5=8BL 87<5=5=8ODiscard changesuiPrefsDialogBasef!>74020BL ;8 :>=A?5:B, 5A;8 4>:C<5=B C65 8<55B 53>?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBase !;54C5B ;8 ?KB0BLAO ?>AB@>8BL :>=A?5:B 87 =0945==KE 4>:C<5=B>2, >?8@0OAL =0 :>=B5:AB :;NG52KE A;>2?
>65B 1KBL <54;5==K< 4;O 1>;LH8E 4>:C<5=B>2.zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBase@8=0<8G5A:>5 2K45;5=85 :>=A?5:B0Dynamically build abstractsuiPrefsDialogBaseD@028BL HTML-703>;>2>: @57C;LB0B>2#Edit result page html header insertuiPrefsDialogBaseR@028BL AB@>:C D>@<0B8@>20=8O @57C;LB0B>2#Edit result paragraph format stringuiPrefsDialogBase:;NG8BLEnableuiPrefsDialogBase=5H=85 8=45:AKExternal IndexesuiPrefsDialogBase>@>3 G0AB>BK 2 ?@>F5=B0E, ?>A;5 :>B>@>3> <K =5 8A?>;L7C5< B5@<K 2 02B>D@075. 
'0ABK5 B5@<K O2;ONBAO ACI5AB25==>9 ?@>1;5<>9 ?@>872>48B5;L=>AB8 =0 D@070E. 
@>?CI5==K5 B5@<K 4>?>;=ONB ?@>A04:C D@07K 8 C<5=LH0NB MDD5:B82=>ABL $. 
=0G5=85 ?> C<>;G0=8N - 2 (?@>F5=B0). Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10Helvetica-10uiPrefsDialogBase"@OB0BL 4C1;8:0BKHide duplicate results.uiPrefsDialogBase8&25B 2K45;5=8O :;NG52KE A;>2Highlight color for query termsuiPrefsDialogBase>:07K20BL @57C;LB0BK A B5< 65 A>45@60=85< ?>4 @07=K<8 8<5=0<8 =5 1>;55 >4=>3> @070XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBase!B@>:8 2 PRE-B5:AB5 =5 ?5@5=>AOBAO. BR B5@O5B G0ABL >BABC?>2. PRE + ?5@5=>A <>65B 1KBL E>@>H8< 2K1>@><.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBaser0:A8<0;L=K9 >1JQ< B5:AB0 A 2K45;5=85< ?@8 ?@>A<>B@5 (1)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseT>;8G5AB2> 70?8A59 =0 AB@0=8FC @57C;LB0B>2"Number of entries in a result pageuiPrefsDialogBasezB:@K205B 480;>3 2K1>@0 B01;8FK AB8;59 CSS 4;O >:=0 $@03<5=BKAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBasebB:@K205B 480;>3 2K1>@0 H@8DB0 A?8A:0 @57C;LB0B>2-Opens a dialog to select the result list fontuiPrefsDialogBaseDB:@KBL 480;>3 2K1>@0 D09;0 AB8;59-Opens a dialog to select the style sheet fileuiPrefsDialogBase&>@@5:B8@>2:0 ?CB59Paths translationsuiPrefsDialogBase>!B8;L >B>1@065=8O B5:AB0 2 HTMLPlain text to HTML line styleuiPrefsDialogBaseT@54?>G8B0BL HTML B5:ABC 4;O ?@54?@>A<>B@0&Prefer Html to plain text for preview.uiPrefsDialogBaseh038G5A:85 @0AH8@5=8O 8<5=8 D09;0 4;O O7K:0 70?@>A>2(Query language magic file name suffixes.uiPrefsDialogBase>0?><=8BL A>AB>O=85 A>@B8@>2:8.Remember sort activation state.uiPrefsDialogBaseb#40;8BL 87 A?8A:0. =45:A =0 48A:5 157 87<5=5=89.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase$#40;8BL 2K45;5==K5Remove selecteduiPrefsDialogBaseX0<5I0BL :>=A?5:B, A>45@60I89AO 2 4>:C<5=B0E Replace abstracts from documentsuiPrefsDialogBase5@=CBLResetuiPrefsDialogBase>!1@0AK205B AB8;L >:=0 $@03<5=BK Resets the Snippets window styleuiPrefsDialogBase`#AB0=02;8205B H@8DB A?8A:0 @57C;LB0B>2 2 >1KG=K91Resets the result list font to the system defaultuiPrefsDialogBase45@=CBL AB8;8 ?> C<>;G0=8N!Resets the style sheet to defaultuiPrefsDialogBase$!?8A>: @57C;LB0B>2Result ListuiPrefsDialogBase0(@8DB A?8A:0 @57C;LB0B>2Result list fontuiPrefsDialogBase*A:0BL ?> <5@5 22>40.Search as you type.uiPrefsDialogBase 0@0<5B@K ?>8A:0Search parametersuiPrefsDialogBase6CSS-D09; 4;O >:=0 $@03<5=BKSnippets window CSS fileuiPrefsDialogBaseZB:@K20BL 480;>3 A;>6=>3> ?>8A:0 ?@8 70?CA:5.'Start with advanced search dialog open.uiPrefsDialogBase/7K: A;>2>D>@<Stemming languageuiPrefsDialogBase01>@ AB8;59Style sheetuiPrefsDialogBase >=B5:AB=KE A;>2 Synthetic abstract context wordsuiPrefsDialogBaseT 07<5@ A>740205<>3> :>=A?5:B0 (2 A8<2>;0E)$Synthetic abstract size (characters)uiPrefsDialogBase"5:ABK 1>;LH53> @07<5@0 =5 1C4CB ?>4A25G820BLAO ?@8 ?@5420@8B5;L=>< ?@>A<>B@5 (<54;5==>).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBase!;>20 2 A?8A:5 1C4CB 02B><0B8G5A:8 ?@5>1@07>20=K : 284C ext:xxx 2 70?@>A5.bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase,5@5:;NG8BL 2K45;5==K5Toggle selecteduiPrefsDialogBase=B5@D59AUser interfaceuiPrefsDialogBase@54?>GB5=8OUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_fr.qm0000644000175000017500000031651712602163537016622 0ustar  dockesdockes.c|Do2NXMvX7`^3h9lt	nsEww~H©v^|Q4cxCsͺ-
L1SI@؅
}aKkp#7vvw5"w5>w5wgU@z.lֳ6f3&vͼuwgg$nV׸~%;U8Uoe!Dy&lS.N7TS=d*?dݒG$JUYJUY`Y[uq_nlunʷ#ΐ3ʗʗzN^rLexC-JgmAxt%EA;B g<.R6Ud;[<ߎLNB5X4e2vh)wT(Pbժ"3ZI:pIm/nߤfffb:,:W8Wiy%5y%n"Šzl5΄s:#n\X|0W4=8̔MiiR
-Z`za-^)T-ԠB9A\BSk/o{r?)هr|kz,d<Z"_,tASân
rRguêǢI^ɓ~C>hC`#M=
$"	:vUKp
h^u9Sv2p[T#rBmKK	%MnD/,7ZÒP^[XnD!%w)WC`&!v
m#+S7I^e<~xFW#uFNjH:"_guPap+f:piT5G|NNMw<ϗan_Id
l(Ót6Ót>-ȍdɆt]89q G#3j*snd,y:u|GJ¢UJn"Qz}}zx;E0M ch@ʶ;ĤkܤY9c
䴥:?^E	N	H	-(9	9Zy>	;3I	D)	K	]#_	cC	kr	lMi		o	qD%	t	8	h	`	93j	ÛC-	ü>}~	3A	t1	`	i
	,'
*Np
:^
c

*R7j
+<F[
6c
>V
G.~P
`Pj
`
aE
cEO
d8
yoX
IY
0
sw0
VT+
CN

ȑ
 ǁԅ^`	ye5THl,xY=!VKjT|cIXV0Xyhl_t9POB4r:Σr9ٷ̍۷bt?t4	Vd4Xs'ИƔ+bC6/"9ɝ~L**P֙RVT#VE\iC3]U`Fhv{l|!Y!Y/WЩ|IJҬai*o^G~sN
m
'RQ[
-
8[
F&
OEP
];{
]
mCs
u0Ϟ
y	
y~
3	%
ȩe
u
P_
P
5dy

5
7e
i5
c(
Ւ9-
H
Q5
£qr\%n/.68b9<=Q~~
W"^Y~s[sӧ\6.e3Yg3ʜp~e Vg!]cm9c	|R|BfI'
lLiN$Toutes les clausesAll clauses	AdvSearchUne des clauses
Any clause	AdvSearchSuffixe multiplicateur incorrect dans un filtre de taille (k/m/g/t)$Bad multiplier suffix in size filter	AdvSearchmultimdiamedia	AdvSearchmessagemessage	AdvSearchautresother	AdvSearchprsentationpresentation	AdvSearch"feuille de calculspreadsheet	AdvSearch
textetext	AdvSearch<----- Tout
<----- All
AdvSearchBase<----- Sel
<----- Sel
AdvSearchBase$Ajouter une clause
Add clause
AdvSearchBase"Recherche avanceAdvanced search
AdvSearchBaseTout ---->	All ---->
AdvSearchBaseTous les champs de droite non vides seront combins par une conjonction ET (choix "Toutes les clauses") ou OU (choix "Une des clauses"). <br> Les champs de type  "Un de ces mots", "Tous ces mots" et "Aucun de ces mots" acceptent un mlange de mots et de phrases contenues dans des apostrophes "une phrase".<br>Les champs non renseigns sont ignors.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. 
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBaseParcourirBrowse AdvSearchBasePar catgories By categories AdvSearchBaseZCocher pour activer le filtrage sur les dates'Check this to enable filtering on dates AdvSearchBasenCocher pour permettre le filtrage des types de fichiers,Check this to enable filtering on file types AdvSearchBasebCocher pour activer le fitrage sur taille fichier'Check this to enable filtering on sizes AdvSearchBaseCocher pour utiliser les catgories de fichiers au lieu des types mimes;Check this to use file categories instead of raw mime types AdvSearchBase FermerClose AdvSearchBase$Enlever une clause Delete clause AdvSearchBaseXEntrer le rpertoire o dmarre la rechercheEnter top directory for search AdvSearchBaseFiltrerFilter AdvSearchBase*Filtrer sur les dates Filter dates AdvSearchBase&Filtrer les tailles Filter sizes AdvSearchBaseTrouverFind AdvSearchBase partir deFrom AdvSearchBase2Types de fichiers ignorsIgnored file types AdvSearchBaseInverserInvert AdvSearchBaseTaille Max. Max. Size AdvSearchBaseTaille Maximum. Vous pouvez utiliser un suffixe multiplicateur: k/K, m/M, g/G.4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBaseTaille Min. Min. Size AdvSearchBaseTaille minimum. Vous pouvez utiliser un suffixe multiplicateur: k/K, m/M, g/G.4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase@Restreindre les types de fichierRestrict file types AdvSearchBaserRestreindre les rsultats aux fichiers de l'arborescence:%Restrict results to files in subtree: AdvSearchBase8Sauver comme valeur initialeSave as default AdvSearchBaseTRechercher les <br>documents<br>vrifiant:'Search for
documents
satisfying: AdvSearchBase6Types de fichier recherchsSearched file types AdvSearchBaseSel -----> Sel -----> AdvSearchBase&Lancer la recherche Start Search AdvSearchBaseJusqu'To AdvSearchBaser<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span>: planification de l'indexation priodique (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Chaque champ peut contenir un joker (*), une simple valeur numrique , des listes ponctues par des virgules (1,3,5) et des intervalles (1-7). Plus gnralement, les champs seront utiliss <span style=" font-style:italic;">tels quels</span> dans le fichier crontab, et la syntaxe gnrale crontab peut tre utilise, voir la page de manuel crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Par exemple, en entrant <span style=" font-family:'Courier New,courier';">*</span> dans <span style=" font-style:italic;">Jours, </span><span style=" font-family:'Courier New,courier';">12,19</span> dans <span style=" font-style:italic;">Heures</span> et <span style=" font-family:'Courier New,courier';">15</span> dans <span style=" font-style:italic;">Minutes</span>, recollindex dmarrerait chaque jour 12:15 et 19:15</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Un planning avec des activations trs frquentes est probablement moins efficace que l'indexation au fil de l'eau.</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolWl<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Cliquer <span style=" font-style:italic;">Dsactiver</span> pour arrter l'indexation automatique priodique, <span style=" font-style:italic;">Activer</span> pour la dmarrer, <span style=" font-style:italic;">Annuler</span> pour ne rien changer.</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolWDialogue Cron Cron Dialog CronToolWpJours de la semaine (* ou 0-7, 0 ou 7 signifie Dimanche))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWDsactiverDisable CronToolWActiverEnable CronToolWErreur durant l'installation de l'entre cron. Mauvaise syntaxe des champs ?3Error installing cron entry. Bad syntax in fields ? CronToolW$Heures (* ou 0-23)Hours (* or 0-23) CronToolWIl semble que des entres cres manuellement existent pour recollindex. Impossible dditer le fichier CronPIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWMinutes (0-59)Minutes (0-59) CronToolWDialogueDialog EditDialogErreur config Config error EditTransChemin local Local path EditTransChemin Originel Original path EditTransChemin source Source path EditTransAjouterAdd EditTransBaseAnnulerCancel EditTransBaseSupprimerDelete EditTransBase,Traductions de cheminsPath Translations EditTransBaseSauvegarderSave EditTransBaseSlectionner un ou plusieurs types de fichiers, puis utiliser les contrles dans le cadre ci-dessous pour changer leur traitementkSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBaseTAjustement des traductions de chemins pourSetting path translations for  EditTransBase X<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Il semble que l'index pour cette configuration n'existe pas encore.</span><br /><br />Si vous voulez simplement indexer votre rpertoire avec un jeu raisonnable de valeurs par dfaut, cliquer le bouton <span style=" font-style:italic;">Dmarrer l'indexation maintenant</span>. Vous pourrez ajuster les dtails plus tard. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Si vous voulez plus de contrle, utilisez les liens qui suivent pour ajuster la configuration et le planning d'indexation.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ces outils peuvent tre accds plus tard partir du menu <span style=" font-style:italic;">Preferences</span>.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialogJParamtrage de la premire indexationFirst indexing setupFirstIdxDialog:Configuration de l'indexationIndexing configurationFirstIdxDialog0Planning de l'indexationIndexing scheduleFirstIdxDialog@Dmarrer l'indexation maintenantStart indexing nowFirstIdxDialogjVous pourrez ajuster les rpertoires que vous voulez indexer, et d'autres paramtres comme les schmas de noms ou chemins de fichiers exclus, les jeux de caractres par dfaut, etc.This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialog*Vous pourrez choisir entre l'indexation intervalles fixes ou au fil de l'eau, et dfinir un planning pour la premire (bas sur l'utilitaire cron).This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog%1 non trouv %1 not found.FragButs%1: %2%1: %2FragButs,Fragments de rechercheQuery FragmentsFragButs J<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">L'indexation <span style=" font-weight:600;">Recoll</span> peut fonctionner en permanence, traitant les fichiers ds qu'ils sont modifis, ou tre excute des moments prdtermins. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Une lecture du manuel peut vous aider choisir entre ces approches (presser F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Cet outil peut vous aider planifier l'indexation priodique, ou configurer un dmarrage automatique de l'indexation au fil de l'eau quand vous vous connectez (ou les deux, ce qui est rarement pertinent). </p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedWPlanning CronCron scheduling IdxSchedWDterminer si l'indexation au fil de l'eau dmarre quand vous vous connectez (pour l'index par dfaut).ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedWHParamtrage du planning d'indexationIndex scheduling setup IdxSchedWRDmarrage de l'indexation au fil de l'eauReal time indexing start up IdxSchedWLe dialogue vous permettra de dterminer quelle heure l'indexation devra dmarrer et installera une entre crontab._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedWDialogueDialog ListDialogGroupBoxGroupBox ListDialogLe fichier d'historique est illisible, le verifier ou l'effacer:K"history" file is damaged or un(read)writeable, please check or remove it: MainRpertoire de la base de donnes non dfini dans la configuration No db directory in configurationMain&Suivant&NextPreview&Prcdent &PreviousPreview&Rechercher: &Search for:PreviewImpossible de traduire le document en reprsentation interne pour 0Can't turn doc into internal representation for PreviewAnnulerCancelPreviewEffacerClearPreviewFermer l'onglet Close TabPreviewTCration du texte pour la prvisualisationCreating preview textPreview>Erreur de chargement du fichierError while loading filePreviewTChargement du texte de la prvisualisation Loading preview text into editorPreview&Respecter la &casse Match &CasePreviewNProgrammes filtres externes manquants: Missing helper program: Preview CopierCopyPreviewTextEdit$Replier les lignes Fold linesPreviewTextEdit.Prserver l'indentationPreserve indentationPreviewTextEditImprimerPrintPreviewTextEditNImprimer la fentre de prvisualisationPrint Current PreviewPreviewTextEdit.Sauvegarder le documentSave document to filePreviewTextEdit"Tout slectionner Select AllPreviewTextEdit>Afficher les valeurs des champs Show fieldsPreviewTextEdit Afficher l'image Show imagePreviewTextEdit4Afficher le corps du texteShow main textPreviewTextEditT<b>Rpertoires avec paramtres spcifiquesCustomised subtreesQObject<i>Les paramtres qui suivent sont dfinis soit globalement, si la slection dans la liste ci-dessus<br>est vide ou rduite la ligne vide, soit pour le rpertoire slectionn.<br>Vous pouvez ajouter et enlever des rpertoires en cliquant les boutons +/-.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObjectJeu de caractres utilis pour lire les fichiers qui n'identifient pas de manire interne leur encodage, par exemple les fichiers texte purs.<br>La valeur par dfaut est vide, et la valeur obtenue partir de l'environnement est utilise dans ce cas.Character set used for reading files which do not identify the character set internally, for example pure text files.
The default value is empty, and the value from the NLS environnement is used.QObject>Jeu de caractres<br>par dfautDefault
character setQObject8Suivre les liens symboliquesFollow symbolic linksQObjectIndexer les fichiers et rpertoires points par les liens symboliques. Pas fait par dfaut pour viter les indexations multiplesTFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject$Paramtres globauxGlobal parametersQObject"Suffixes ignor'esIgnored endingsQObjectBIndexer tous les noms de fichiersIndex all file namesQObject Indexer les noms des fichiers dont le contenu n'est pas identifi ou trait (pas de type mime, ou type non support). Vrai par dfaut}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject"Paramtres locauxLocal parametersQObject8Paramtres pour la rechercheSearch parametersQObjectNoms ignors Skipped namesQObjectLa liste des sous-rpertoires de la zone indexe<br>o certains paramtres sont redfinis. Dfaut: vide.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectLSuffixes slectionnant des fichiers qui seront indexs uniquement sur leur nom (pas d'identification de type MIME, pas de dcompression, pas d'indexation du contenu).These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing).QObjectCanevas dfinissant les fichiers ou rpertoires qui ne doivent pas etre indexs.LThese are patterns for file or directory names which should not be indexed.QObjectHistorique Web Web historyQObject&Ouvrir&OpenQWidget4&Ouvrir le document parent&Open Parent document/folderQWidget&Voir contenu&PreviewQWidget&Sauver sous&Write to FileQWidgetDImpossible d'extraire le document:Cannot extract document: QWidget@Choisir exactement un rpertoireChoose exactly one directoryQWidget2Copier le nom de &FichierCopy &File NameQWidgetCopier l'&Url Copy &URLQWidgetBImpossible de lire le rpertoire:Could not read directory: QWidgetRCrer ou choisir un rpertoire d'critureCreate or choose save directoryQWidgetDChercher des documents &similairesFind &similar documentsQWidget>Ouvrir la fentre des e&xtraitsOpen &Snippets windowQWidgetOuvrir Avec Open WithQWidgetBPrvisualiser le document p&arentPreview P&arent document/folderQWidget$Excuter le Script Run ScriptQWidgetfSauvegarder la slection courante dans des fichiersSave selection to filesQWidgetVAfficher les sous-documents et attachementsShow subdocuments / attachmentsQWidgetLCollision de noms inattendue, abandon.+Unexpected file name collision, cancelling.QWidget<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">L'indexation <span style=" font-weight:600;">Recoll</span> peut tre configurer pour s'excuter en arrire plan, mettant jour l'index au fur et mesure que des documents sont modifis. Vous y gagnez un index toujours jour, mais des ressources systme (mmoire et processeur) sont consommes en permanence.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>.

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWNgalement dmarrer le dmon maintenant.%Also start indexing daemon right now.RTIToolWpFichier autostart dtruit. Arrter le process en cours ?2Autostart file deleted. Kill current process too ?RTIToolW(Impossible de crer:Can't create: RTIToolWBImpossible d'excuter recollindexCould not execute recollindexRTIToolW*Effacement du fichier Deleting fileRTIToolWEffacement: Deleting: RTIToolWjDmarrage automatique de l'indexation au fil de l'eau"Real time indexing automatic startRTIToolW2Enlvement de l'autostartRemoving autostartRTIToolW.Remplacement du fichierReplacing fileRTIToolW Remplacement de: Replacing: RTIToolWhDmarrer le dmon d'indexation quand je me connecte..Start indexing daemon with my desktop session.RTIToolWAttentionWarningRTIToolW&(tous les langages)(all languages)RclMain"(pas d'expansion) (no stemming)RclMain$ propos de Recoll About RecollRclMainToutAllRclMainMauvaise spcification d'application pour %1: [%2] Merci de vrifier le fichier desktop ?Bad desktop app spec for %1: [%2] Please check the desktop fileRclMainLigne de commande incorrecte pour %1:[%2]. Vrifier le fichier mimeview.CBad viewer command line for %1: [%2] Please check the mimeview fileRclMainBImpossible d'accder au fichier: Can't access file: RclMain^Impossible de crer la fentre de visualisationCan't create preview windowRclMainLImpossible de dcomprimer le fichier: Can't uncompress file: RclMain~Impossible de mettre jour l'index: un indexeur est dj actif#Can't update index: indexer runningRclMainImpossible d'extraire le document ou de crer le fichier temporaire0Cannot extract document or create temporary fileRclMainPImpossible de trouver le document parentCannot find parent documentRclMainZImpossible d'accder au document dans la base+Cannot retrieve document info from databaseRclMainCliquer Annuler pour retourner la liste. Cliquer Ignorer pour afficher tout de mme.MClick Cancel to return to the list. Click Ignore to show the preview anyway. RclMainCliquer Ok pour mettre jour l'index pour ce fichier, puis attendez la fin de l'indexation pour relancer la recherche.jClick Ok to update the index for this file, then you will need to re-run the query when indexing is done. RclMainFermetureClosingRclMainXDu contenu a t index pour ces types MIME:.Content has been indexed for these mime types:RclMainImpossible d'ouvrir un index externe. Base non ouverte. Verifier la liste des index externes.HCould not open external index. Db not open. Check external indexes list.RclMain&Filtre de documentsDocument filterRclMainDHistorique des documents consultsDocument historyRclMainFiniDoneRclMain(Documents identiquesDuplicate documentsRclMain*Effacement de l'index Erasing indexRclMain ErreurErrorRclMainExcution de: [ Executing: [RclMain<Applications et commandes externes ncessaires pour vos types de documents, et non trouves, telles qu'enregistres par la dernire squence d'indexation danspExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMain(Donnes d'historique History dataRclMain Index pas ouvertIndex not openRclMainIndex pas jour pour ce fichier. Je ne veux pas risquer d'afficher la mauvaise entre.NIndex not up to date for this file. Refusing to risk showing the wrong entry. RclMainDErreur de la recherche sur l'indexIndex query errorRclMain$Types MIME indexsIndexed MIME TypesRclMainFL'indexation n'a pas encore eu lieuIndexing did not run yetRclMain*L'indexation a chouIndexing failedRclMain*Indexation en cours: Indexing in progress: RclMain,Indexation interrompueIndexing interruptedRclMain.Applications manquantesMissing helper programsRclMainMoniteurMonitorRclMain`Pas de visualiseur configur pour le type MIME [-No external viewer configured for mime type [RclMain:Pas d'applications manquantesNo helpers found missingRclMain*Aucun rsultat trouvNo results foundRclMainRienNoneRclMainNettoyagePurgeRclMainRequte en cours.<br>En raison de restrictions internes, <br>annuler terminera l'excution du programmeeQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMain2Rsultats de la recherche Query resultsRclMainNEffacer l'index et redmarrer de zro ?(Reset the index and start from scratch ?RclMain4Nombre de rsultats (est.)Result count (est.)RclMain,Sauvegarder le fichier Save fileRclMainBase radicauxStemdbRclMain*Arrter l'&IndexationStop &IndexingRclMain<Sous-documents et attachementsSub-documents and attachmentsRclMain0Le processus d'indexation en cours n'a pas t dmarr depuis cette interface. Cliquer Ok pour le tuer quand mme, ou Annuler pour le laisser tranquilleyThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainLe document appartient un index externe que je ne peux pas mettre jour.?The document belongs to an external indexwhich I can't update. RclMainL'indexeur est actif, les choses devraient aller mieux quand il aura fini.@The indexer is running so things should improve when it's done. RclMainLe visualiseur spcifi dans mimeview pour %1: %2 est introuvable. Voulez vous dmarrer le dialogue de prfrences ?hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainVCes URLs(| ipath) partagent le mme contenu-These Urls ( | ipath) share the same content:RclMainBCette recherche n'est plus active"This search is not active any moreRclMainInconnueUnknownRclMain,Mettre jour l'&Index Update &IndexRclMainMise jourUpdatingRclMainLa ligne de commande pour %1 spcifie la fois le fichier et son parent: non supportQViewer command line for %1 specifies both file and parent file value: unsupportedRclMainAttentionWarningRclMainnimpossible de trouver la liste des langages d'expansion#error retrieving stemming languagesRclMain filtrfilteredRclMainmultimdiamediaRclMainmessagemessageRclMain autresotherRclMainprsentation presentationRclMaintrisortedRclMain"feuille de calcul spreadsheetRclMain textetextRclMainPAvec re-traitement des fichiers en chec With failed files retrying RclMainBase&&A propos de Recoll &About Recoll RclMainBase$Recherche &Avance&Advanced Search RclMainBaseF&Effacer l'historique des documents&Erase document history RclMainBaseH&Effacer l'historique des recherches&Erase search history RclMainBase&Fichier&File RclMainBase&Plein cran &Full Screen RclMainBase:Confi&guration de l'interface&GUI configuration RclMainBase &Aide&Help RclMainBase2Configuration de l'&Index&Index configuration RclMainBase,&Planning d'indexation&Indexing schedule RclMainBase&Prfrences &Preferences RclMainBase*&Reconstruire l'index&Rebuild index RclMainBase&Rsultats&Results RclMainBase6&Afficher les types indexs&Show indexed types RclMainBaseJAfficher les application&s manquantes&Show missing helpers RclMainBase.Paramtres pour le &tri&Sort parameters RclMainBase&Outils&Tools RclMainBase&Manuel &User manual RclMainBase"Recherche AvanceAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase0Historique des documentsDocument History RclMainBase2&Historique des documentsDocument &History RclMainBase&QuitterE&xit RclMainBaseBConfiguration des index e&xternesE&xternal index dialog RclMainBaseIndex externesExternal index dialog RclMainBaseF11F11 RclMainBasePremire page First Page RclMainBasePremire page First page RclMainBasePlein cran Full Screen RclMainBaseJAller la premire page de rsultatsGo to first page of results RclMainBasePage suivante Next Page RclMainBasePage suivante Next page RclMainBasePage suivanteNext page of results RclMainBaseLa prochaine mise jour de l'index essaiera de traiter les fichiers actuellement en chec.Next update will retry previously failed files RclMainBase PgDownPgDown RclMainBasePgUpPgUp RclMainBasePage prcdente Previous Page RclMainBasePage prcdente Previous page RclMainBasePage prcdentePrevious page of results RclMainBase,Fragments de rechercheQuery Fragments RclMainBase RecollRecoll RclMainBaseLSauver en format CSV (fichier tableur)Save as CSV (spreadsheet) file RclMainBaseSauvegarde les rsultats dans un fichier qu'il sera possible de charger dans un tableur@Saves the result into a file which you can load in a spreadsheet RclMainBaseShift+PgUp Shift+PgUp RclMainBase<Afficher la requte en dtailsShow Query Details RclMainBase2Afficher comme un tableau Show as table RclMainBaseLMontrer les rsultats dans un tableau (Show results in a spreadsheet-like table RclMainBaseRTrier par date, le plus rcent en premierSort by date, newest first RclMainBaseRTrier par date, le plus ancien en premierSort by date, oldest first RclMainBasefTrier par date des plus rcentes aux plus anciennes#Sort by dates from newest to oldest RclMainBasefTrier par date des plus anciennes aux plus rcentes#Sort by dates from oldest to newest RclMainBase,Paramtres pour le triSort parameters RclMainBase.&Exploration de l'indexTerm &explorer RclMainBase<Outil d'exploration de l'indexTerm explorer tool RclMainBase&Indexer Update &index RclMainBaseQuitterQuit RclTrayIconRestaurerRestore RclTrayIconExtraitAbstract RecollModel AuteurAuthor RecollModelDateDate RecollModelDate et heure Date and time RecollModelDate document Document date RecollModelTaille document Document size RecollModelDate fichier File date RecollModelNom de fichier File name RecollModelTaille fichier File size RecollModel IpathIpath RecollModelMots clefKeywords RecollModelType MIME MIME type RecollModel MtimeMtime RecollModel6Jeu de caractres d'origineOriginal character set RecollModelPertinenceRelevancy rating RecollModel TitreTitle RecollModelURLURL RecollModel(requte) (show query)ResList8<p><b>Aucun rsultat</b><br>

No results found
ResList`<p><i>Orthographes proposs (sans accents): </i>4

Alternate spellings (accents suppressed): ResListB<p><i>Orthographes proposs: </i>

Alternate spellings: ResListDHistorique des documents consultsDocument historyResListDocuments DocumentsResListSuivantNextResList OuvrirOpenResList PrvisualisationPreviewResListPrcdentPreviousResList,Dtail de la recherche Query detailsResList4Nombre de rsultats (est.)Result count (est.)ResList$Liste de rsultats Result listResListExtraitsSnippetsResList*Document inaccessibleUnavailable documentResListpourforResListparmi au moinsout of at leastResList&&Enlever la colonne&Delete columnResTable<&Revenir au tri par pertinence &Reset sortResTable&&Sauvegarder en CSV &Save as CSVResTable0Ajouter une colonne "%1"Add "%1" columnResTablePImpossible d'ouvrir ou crer le fichier:Can't open/create file: ResTable>Sauvegarder dans un fichier CSVSave table to CSV fileResTableTous les termes All termsSSearchCertains termesAny termSSearch(Requte non reconnueBad query stringSSearchlEntrer un nom de fichier (caractres jokers possibles)$Enter file name wildcard expression.SSearch<Entrer une expression du langage de recherche. Indications:<br> <i>term1 term2</i> : 'term1' et 'term2' dans un champ quelconque.<br> <i>field:term1</i> : 'term1' dans le champ 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. Enter query language expression. Cheat sheet:
term1 term2 : 'term1' and 'term2' in any field.
field:term1 : 'term1' in field 'field'.
Standard field names/synonyms:
title/subject/caption, author/from, recipient/to, filename, ext.
Pseudo-fields: dir, mime/format, type/rclcat, date, size.
Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.
term1 term2 OR term3 : term1 AND (term2 OR term3).
You can use parentheses to make things clearer.
"term1 term2" : phrase (must occur exactly). Possible modifiers:
"term1 term2"p : unordered proximity search with default distance.
Use Show Query link when in doubt about result and see manual (<F1>) for more detail. SSearchEntrer les termes recherchs ici. Taper ESC SPC pour afficher les mots commenant par l'entre en cours.FEnter search terms here. Type ESC SPC for completions of current term.SSearchNom de fichier File nameSSearch4Plus de mmoire disponible Out of memorySSearch0Language d'interrogationQuery languageSSearch:Choisir le type de recherche.Choose search type. SSearchBaseEffacerClear SSearchBase Ctrl+SCtrl+S SSearchBaseEntrer les termes recherchs ici. Taper ESC SPC pour afficher les mots commenant par l'entre en cours.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase Effacer l'entreErase search entry SSearchBaseSSearchBase SSearchBase SSearchBaseRechercherSearch SSearchBase*Dmarrer la recherche Start query SSearchBaseToutAll SearchClauseWCertainsAny SearchClauseWNom de fichier File name SearchClauseWSans champNo field SearchClauseWRienNone SearchClauseWNombre de mots additionnels qui peuvent se trouver entre les termes recherchsHNumber of additional words that may be interspersed with the chosen ones SearchClauseW PhrasePhrase SearchClauseWProximit Proximity SearchClauseWrSlectionner le type de requte effectuer avec les mots>Select the type of query that will be performed with the words SearchClauseWTrouver:Find:SnippetsSuivantNextSnippetsPrcdentPrevSnippetsExtraitsSnippetsSnippets2<p>Dsol, aucun rsultat trouv dans les limites de recherche. Peut-tre que le document est trs gros et que le gnrateur d'extraits s'est perdu...<p>

Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...

 SnippetsWRechercherSearch SnippetsW&Fermer&Close SpellBase&Drivs&Expand  SpellBaseAccentsAccents SpellBase Alt+FAlt+C SpellBase Alt+DAlt+E SpellBase*Majuscules/MinusculesCase SpellBase$Faire correspondreMatch SpellBase<Pas d'information sur la base. No db info. SpellBase&Explorateur d'index Term Explorer SpellBase%1 rsultats %1 resultsSpellWErreur aspell.Aspell expansion error. SpellWErreur d'initialisation aspell. Il n'est peut-tre pas install?)Aspell init failed. Aspell not installed?SpellWFNombre moyen de termes par documentAverage terms per documentSpellW4Taille occupee par l'indexDatabase directory sizeSpellWDoc. / Tot. Doc. / Tot.SpellWzIndex: %1 documents, longueur moyenne %2 termes. %3 rsultats7Index: %1 documents, average length %2 terms.%3 resultsSpellWElementItemSpellWLa liste a t tronque par ordre alphabtique. Certains termes frquents1List was truncated alphabetically, some frequent SpellW>Longueur du plus grand documentLongest document lengthSpellWTypes MIME MIME types:SpellW Pas de rsultatsNo expansion foundSpellW&Nombre de documentsNumber of documentsSpellW(Expression rgulireRegexpSpellWHAfficher les statistiques de l'indexShow index statisticsSpellW>Longueur du plus petit documentSmallest document lengthSpellW,Orthographe/PhontiqueSpelling/PhoneticSpellW,Expansion grammaticaleStem expansionSpellW TermeTermSpellW ValeurValueSpellWWildcards WildcardsSpellWlImpossible de former la liste des langages d'expansion#error retrieving stemming languagesSpellWpourraient tre absents. Essayer d'utiliser une racine plus longue.terms may be missing. Try using a longer root.SpellW:Selectionner au plus un index$At most one index should be selected UIPrefsDialogImpossible d'ajouter un index avec une option differente de sensibilite a la casse et aux accents>Cant add index with different case/diacritics stripping option UIPrefsDialogChoisirChoose UIPrefsDialog8Fonte par dfaut de QtWebkitDefault QtWebkit font UIPrefsDialogXEn-tte HTML (la valeur par dfaut est vide)%Result list header (default is empty) UIPrefsDialogFormat de paragraphe de la liste de rsultats (tout effacer pour revenir la valeur par dfaut)Nouveaux param&egrave;tres</b>New Values:ViewActionBaseTAction (vide -> utiliser le defaut recoll) Action (empty -> recoll default)ViewActionBaseBAppliquer la slection couranteApply to current selectionViewActionBase FermerCloseViewActionBaseFException aux prfrences du bureau Exception to Desktop preferencesViewActionBase:Applications de visualisationNative ViewersViewActionBaseAction Recoll action:ViewActionBaseSlectionner un ou plusieurs types de fichiers, puis utiliser les contrles dans le cadre du bas pour changer leur traitementkSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseSlectionner un ou plusieurs types MIME, puis utiliser les contrles dans le cadre du bas pour changer leur traitementlSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBase<S&eacute;lectionner par valeur Select sameViewActionBaseDUtiliser les prfrences du bureau"Use Desktop preferences by defaultViewActionBasevaleur actuelle current valueViewActionBasePermet d'indexer les pages Web visites avec Firefox <br>(il vous faut galement installer l'extension Recoll pour Firefox)\Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelWLes pages seront crases quand la taille spcifie est atteinte1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWDTaille max. pour le cache Web (MB) Max. size for the web store (MB)confgui::ConfBeaglePanelW:Traiter la file des pages WEBProcess the WEB history queueconfgui::ConfBeaglePanelWLe nom d'un rpertoire o stocker les copies des pages visites.<br>Un chemin relatif se rfre au rpertoire de configuration.The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWWeb page store directory nameconfgui::ConfBeaglePanelW^Impossible d'ecrire le fichier de configurationCan't write configuration fileconfgui::ConfIndexWChoisirChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW <p>Activer automatiquement la sensibilit aux majuscules si le terme de recherche contient des majuscules (sauf en premire lettre). Sans cette option, vous devez utiliser le langage de recherche et le drapeau <i>C</i> pour activer la sensibilit aux majuscules.

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW<p>Activer automatiquement la sensibilit aux accents si le terme recherch contient des accents (saufs pour ceux de unac_except_trans). Sans cette option, il vous faut utiliser le langage de recherche et le drapeau <i>D</i> pour activer la sensibilit aux accents.

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelW$<p>Nombre maximum de termes de recherche rsultant d'un terme entr (par exemple expansion par caractres jokers). La valeur par dfaut de 10000 est raisonnable et vitera les requtes qui paraissent bloques pendant que le moteur parcourt l'ensemble de la liste des termes.

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelWr<p>Nombre maximum de clauses Xapian lmentaires gnres pour une requte. Dans certains cas, le rsultat de l'expansion des termes peut ere multiplicatif, et utiliserait trop de mmoire. La valeur par dfaut de 100000 devrait tre la fois suffisante et compatible avec les configurations matrielles typiques.5

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWLSensibilit automatique aux majuscules$Automatic character case sensitivityconfgui::ConfSearchPanelWFSensibilit automatique aux accents Automatic diacritics sensitivityconfgui::ConfSearchPanelW@Compte maximum de clauses XapianMaximum Xapian clauses countconfgui::ConfSearchPanelWPTaille maximum de l'expansion d'un termeMaximum term expansion countconfgui::ConfSearchPanelWUne liste exclusive des types MIME indexer.<br>Rien d'autre ne sera index. Normalement vide et inactifeAn exclusive list of indexed mime types.
Nothing else will be indexed. Normally empty and inactiveconfgui::ConfSubPanelWTypes exclusExclude mime typesconfgui::ConfSubPanelWUn filtre externe qui prend plus de temps sera arrt. Traite le cas rare (possible avec postscript par exemple) o un document pourrait amener un filtre boucler sans fin. Mettre -1 pour compltement supprimer la limite (dconseill).External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelW GlobalGlobalconfgui::ConfSubPanelWSi cette valeur est spcifie et positive, les fichiers de texte pur seront dcoups en tranches de cette taille pour l'indexation. Ceci diminue les ressources consommes par l'indexation et aide le chargement pour prvisualisation.If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWfTaill maximale pour les fichiers dcomprimer (Ko)Max. compressed file size (KB)confgui::ConfSubPanelWXTemps d'excution maximum pour un filtre (S)Max. filter exec. time (S)confgui::ConfSubPanelWNTaille maximale d'un fichier texte (MB)Max. text file size (MB)confgui::ConfSubPanelW6Types MIME ne pas indexerMime types not to be indexedconfgui::ConfSubPanelW&Seulement ces typesOnly mime typesconfgui::ConfSubPanelWdTaille de page pour les fichiers de texte pur (KB)Text file page size (KB)confgui::ConfSubPanelW^Cette valeur dfinit un seuil au del duquel les fichiers comprims ne seront pas traits. Utiliser -1 pour dsactiver la limitation, 0 pour ne traiter aucun fichier comprim.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelWjCette valeur est un seuil au del duquel les fichiers de texte pur ne seront pas indexs. Spcifier -1 pour supprimer la limite. Utilis pour viter d'indexer des fichiers monstres.This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelW<p>Ce sont les exceptions au mcanisme de suppression des accents, qui, par dfaut et en fonction de la configuration de l'index, supprime tous les accents et effectue une dcomposition canonique Unicode. Vous pouvez inhiber la suppression des accents pour certains caractres, en fonction de votre langue, et prciser d'autres dcompositions, par exemple pour des ligatures. Dans la liste spare par des espaces, le premier caractres d'un lment est la source, le reste est la traduction.l

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelW$Langue pour aspellAspell languageconfgui::ConfTopPanelWBRpertoire de stockage de l'indexDatabase directory nameconfgui::ConfTopPanelW Dsactiver l'utilisation d'aspell pour gnrer les approximations orthographiques.<br> Utile si aspell n'est pas install ou ne fonctionne pas. Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelW\Intervalle d'criture de l'index en mgaoctetsIndex flush megabytes intervalconfgui::ConfTopPanelW,Nom du fichier journal Log file nameconfgui::ConfTopPanelW&Niveau de verbositLog verbosity levelconfgui::ConfTopPanelW:Occupation disque maximum (%)Max disk occupation (%)confgui::ConfTopPanelW4Pas d'utilisation d'aspellNo aspell usageconfgui::ConfTopPanelWChemins ignors Skipped pathsconfgui::ConfTopPanelWDLangue pour l'expansion des termesStemming languagesconfgui::ConfTopPanelWLe nom du fichier ou les messages seront ecrits.<br>Utiliser 'stderr' pour le terminalPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWLangue pour le dictionnaire aspell. La valeur devrait ressembler 'en' ou 'fr'... <br>Si cette valeur n'est pas positionne, l'environnement national sera utilis pour la calculer, ce qui marche bien habituellement. Pour avoir une liste des valeurs possibles sur votre systme, entrer 'aspell config' sur une ligne de commande et regarder les fichiers '.dat' dans le rpertoire 'data-dir'. 3The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelWLes langages pour lesquels les dictionnaires d'expansion<br>des termes seront construits.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWLa liste des rpertoires o l'indexation rcursive dmarre. Dfault: votre rpertoire par dfaut.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWBLe nom d'un rpertoire pour stocker l'index<br>Un chemin relatif sera interprt par rapport au rpertoire de configuration. La valeur par dfaut est 'xapiandb'.The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelWCe sont des noms de rpertoires o l'indexation n'entrera pas.<br>Ils peuvent contenir des caractres jokers. Les chemins doivent correspondre ceux vus par l'indexeur (par exemple: si un des rpertoires de dpart est '/home/me' et que '/home' est un lien sur '/usr/home', une entre correcte ici serait '/home/me/tmp*' , pas '/usr/home/me/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWNiveau d'occupation du disque ou l'indexation s'arrete (pour eviter un remplissage excessif).<br>0 signifie pas de limite (defaut).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelWAjuste la quantit de donnes lues entre les critures sur disque.<br>Contrle l'utilisation de la mmoire. Dfaut 10 Mo This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWCette valeur ajuste la quantite de messages emis,<br>depuis uniquement les erreurs jusqu'a beaucoup de donnees de debug.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW*Rpertoires de dpartTop directoriesconfgui::ConfTopPanelWExceptions UnacUnac exceptionsconfgui::ConfTopPanelW&Annuler&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBase<BR>
uiPrefsDialogBase <PRE>

uiPrefsDialogBase$<PRE> + repliement
 + wrapuiPrefsDialogBaseUne recherche pour [vin rouge] (2 mots) sera complte comme [vin OU rouge OU (vin PHRASE 2 rouge)].<br>
Ceci devrait donner une meilleure pertinence aux rsultats o les termes recherchs apparaissent exactement et dans l'ordre.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBase(Sparateur d'extraitAbstract snippet separatoruiPrefsDialogBaseTout activerActivate AlluiPrefsDialogBase Ajouter un index	Add indexuiPrefsDialogBase6Appliquer les modifications
Apply changesuiPrefsDialogBaseDmarrer automatiquement une recherche simple sur entre d'un espace.-Auto-start simple search on whitespace entry.uiPrefsDialogBaserAjouter automatiquement une phrase aux recherches simples+Automatically add phrase to simple searchesuiPrefsDialogBaseSeuil de frquence de terme (pourcentage) pour la gnration automatique de phrases.Autophrase term frequency threshold percentageuiPrefsDialogBase$Panneau de boutons
Buttons PaneluiPrefsDialogBaseChoisirChooseuiPrefsDialogBasetChoisir les diteurs pour les diffrents types de fichiersChoose editor applicationsuiPrefsDialogBaseCliquer pour ajouter un autre index a la liste. Vous pouvez slectionner soit un rpertoire de configuration Recoll soit un index Xapian{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBase`Rduire dans la barre d'tat au lieu de quitter.!Close to tray instead of exiting.uiPrefsDialogBase8Format de date (strftime(3))Date format (strftime(3))uiPrefsDialogBaseTout dsactiverDeactivate AlluiPrefsDialogBaseDcide si les filtres de documents sont affichs comme des radio-boutons, un combobox dans la barre d'outils, ou un menu.QDecide if document filters are shown as radio buttons, toolbar combobox, or menu.uiPrefsDialogBaserDesactiver l'autocompletion Qt dans l'entree de recherche*Disable Qt autocompletion in search entry.uiPrefsDialogBase8Abandonner les modificationsDiscard changesuiPrefsDialogBaseEst-ce qu'un rsum doit etre synthtis meme dans le cas ou le document original en avait un?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseDcide si des rsums seront construits  partir du contexte des termes de recherche. 
Peut ralentir l'affichage si les documents sont gros.zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBasePStyle de choix des filtres de documents:Document filter choice style:uiPrefsDialogBaseHConstruire dynamiquement les rsumsDynamically build abstractsuiPrefsDialogBase`Editer le fragment  insrer dans l'en-tte HTML#Edit result page html header insertuiPrefsDialogBaseTEditer le format du paragraphe de rsultat#Edit result paragraph format stringuiPrefsDialogBaseActiverEnableuiPrefsDialogBaseIndex externesExternal IndexesuiPrefsDialogBaseSeuil de frquence (pourcentage) au del duquel les termes ne seront pas utiliss.
Les phrases contenant des termes trop frquents posent des problmes de performance.
Les termes ignors augmentent la distance de phrase, et rduisent l'efficacit de la fonction de recherche de phrase automatique.
La valeur par dfaut est 2%Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10Helvetica-10uiPrefsDialogBase(Cacher les doublons.Hide duplicate results.uiPrefsDialogBase^Couleur de mise en relief des termes recherchsHighlight color for query termsuiPrefsDialogBaseN'afficher qu'une entre pour les rsultats de contenu identique.XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBaseLes lignes dans une balise PRE ne sont pas replies. Utiliser BR conduit  perdre une partie des tabulations. Le style PRE + WRAP peut tre le meilleurs compromis mais son bon fonctionnement dpend des versions Qt.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBase~Taille maximum des textes surligns avant prvisualisation (MO)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseMenuMenuuiPrefsDialogBase8Nombre de rsultats par page"Number of entries in a result pageuiPrefsDialogBaseOuvre un dialogue permettant de slectionner la feuille de style CSS pour le popup des fragmentsAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBase`Ouvre une fentre permettant de changer la fonte-Opens a dialog to select the result list fontuiPrefsDialogBasetOuvre un dialogue pour choisir un fichier feuille de style-Opens a dialog to select the style sheet fileuiPrefsDialogBase,Traductions de cheminsPaths translationsuiPrefsDialogBaseZStyle de traduction texte ordinaire vers HTMLPlain text to HTML line styleuiPrefsDialogBasebUtiliser le format Html pour la previsualisation.&Prefer Html to plain text for preview.uiPrefsDialogBaselSuffixes automatiques pour le langage d'interrogation.(Query language magic file name suffixes.uiPrefsDialogBaseJMemoriser l'etat d'activation du tri.Remember sort activation state.uiPrefsDialogBaselOter de la liste. Sans effet sur les donnes stockes.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase(Effacer la slectionRemove selecteduiPrefsDialogBasebRemplacer les rsums existant dans les documents Replace abstracts from documentsuiPrefsDialogBaseRinitialiserResetuiPrefsDialogBasebRinitialise le style de la fentre des fragments Resets the Snippets window styleuiPrefsDialogBaseZRinitialiser la fonte  la valeur par dfaut1Resets the result list font to the system defaultuiPrefsDialogBasejRestore la valeur par dfaut pour la feuille de style!Resets the style sheet to defaultuiPrefsDialogBase$Liste de rsultatsResult ListuiPrefsDialogBase@Fonte pour la liste de rsultatsResult list fontuiPrefsDialogBaseXLancer la recherche a chaque caractere entreSearch as you type.uiPrefsDialogBase8Paramtres pour la rechercheSearch parametersuiPrefsDialogBase\Afficher l'icone dans la barre d'tat systme.Show system tray icon.uiPrefsDialogBase^Feuille de style CSS pour le popup de fragmentsSnippets window CSS fileuiPrefsDialogBasebPanneau de recherche avance ouvert au dmarrage.'Start with advanced search dialog open.uiPrefsDialogBaseDLangue pour l'expansion des termesStemming languageuiPrefsDialogBase Feuille de styleStyle sheetuiPrefsDialogBaseNombre de mots de contexte par occurrence de terme dans le rsum Synthetic abstract context wordsuiPrefsDialogBaseRTaille du rsum synthtique (caractres)$Synthetic abstract size (characters)uiPrefsDialogBaseLes textes plus gros ne seront pas surligns dans la prvisualisation (trop lent).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBaseLes mots de la liste seront automatiquement changs en clauses ext:xxx dans les requtes en langage d'interrogation.bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBaseZChanger l'tat pour les entres slectionnesToggle selecteduiPrefsDialogBaseBCombobox dans le panneau d'outilsToolbar ComboboxuiPrefsDialogBase*Interface utilisateurUser interfaceuiPrefsDialogBase.Prfrences utilisateurUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_cs.ts0000644000175000017500000042551312602163537016626 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        Všechny výrazy
    
    
        Any clause
        Některý z výrazů
    
    
        texts
        Texty
    
    
        spreadsheets
        Tabulky
    
    
        presentations
        Představení
    
    
        media
        Multimedia
    
    
        messages
        Zprávy
    
    
        other
        Jiné
    
    
        Bad multiplier suffix in size filter
        Špatná přípona násobitele ve filtru velikosti
    
    
        text
        Text
    
    
        spreadsheet
        Tabulky
    
    
        presentation
        Představení
    
    
        message
        Zpráva
    


    AdvSearchBase
    
        Advanced search
        Pokročilé hledání
    
    
        Restrict file types
        Omezit souborových typů
    
    
        Save as default
        Uložit jako výchozí
    
    
        Searched file types
        Hledané souborové typy
    
    
        All ---->
        Vše ---->
    
    
        Sel ----->
        Výběr ----->
    
    
        <----- Sel
        <----- Výběr
    
    
        <----- All
        <----- Vše
    
    
        Ignored file types
        Přehlížené souborové typy
    
    
        Enter top directory for search
        Zadejte základní adresář pro hledání
    
    
        Browse
        Procházet
    
    
        Restrict results to files in subtree:
        Omezit výsledky na soubory v následujícím podadresáři:
    
    
        Start Search
        Spustit hledání
    
    
        Search for <br>documents<br>satisfying:
        Hledat <br>dokumenty<br>, které splňují následující hlediska:
    
    
        Delete clause
        Smazat poslední výraz
    
    
        Add clause
        Přidat nový výraz
    
    
        Check this to enable filtering on file types
        Zaškrtněte pro zapnutí filtrování podle souborových typů
    
    
        By categories
        Podle skupin
    
    
        Check this to use file categories instead of raw mime types
        Zaškrtněte pro používání skupin souborů místo MIME typů
    
    
        Close
        Zavřít
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.
        Všechna pole napravo, která nejsou prázdná, budou spojována spojeními AND (volba "Všechny výrazy") nebo OR (volba "Některý z výrazů"). <br>Typy polí "Jakékoli" "Vše" a "Žádné" mohou přijmout směs jednoduchých slov, a věty uzavřené dvojitými uvozovkami.<br>Pole bez dat jsou přehlížena.
    
    
        Invert
        Obrátit
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        Nejmenší velikost: Můžete použít k/K,m/M,g/G jako násobitele
    
    
        Min. Size
        Nejmenší velikost
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        Největší velikost: Můžete použít k/K,m/M,g/G jako násobitele
    
    
        Max. Size
        Největší velikost
    
    
        Select
        Vybrat
    
    
        Filter
        Filtrovat
    
    
        From
        Od
    
    
        To
        Do
    
    
        Check this to enable filtering on dates
        Zaškrtněte pro zapnutí filtrování podle dat
    
    
        Filter dates
        Filtrovat data
    
    
        Find
        Najít
    
    
        Check this to enable filtering on sizes
        Zaškrtněte pro zapnutí filtrování podle velikostí
    
    
        Filter sizes
        Filtrovat velikosti
    


    CronToolW
    
        Cron Dialog
        Dialog Cron
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> dávkový rejstříkovací rozvrh (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Každé pole může obsahovat zástupný symbol (*), jednoduchou číselnou hodnotu, čárkou oddělené seznamy (1,3,5) a rozsahy (1-7). Obecněji, pole se budou používat <span style=" font-style:italic;">jak je</span> uvnitř souboru crontab, a lze použít úplnou stavbu crontab, podívejte se na crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Například, zadání <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Dny, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> a <span style=" font-family:'Courier New,courier';">15</span> v <span style=" font-style:italic;">Minuty</span> spustí rejstříkování (recollindex) každý den v 12:15 dopoledne a 7:15 odpoledne</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Rozvrh s velmi častým spuštěním je pravděpodobně méně účinný než je rejstříkování ve skutečném čase.</p></body></html>
    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        Dny v týdnu (* nebo 0-7, 0 nebo 7 je neděle)
    
    
        Hours (* or 0-23)
        Hodiny (* nebo 0-23)
    
    
        Minutes (0-59)
        Minuty (0-59)
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Klepněte na <span style=" font-style:italic;">Zakázat</span> pro zastavení automatického dávkového rejstříkování, <span style=" font-style:italic;">Povolit</span> pro jeho zapnutí, <span style=" font-style:italic;">Zrušit</span>, aby vše zůstalo beze změny.</p></body></html>
    
    
        Enable
        Povolit
    
    
        Disable
        Zakázat
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        Zdá se, že pro recollindex existují ručně upravené záznamy, nelze upravit crontab
    
    
        Error installing cron entry. Bad syntax in fields ?
        Chyba při instalaci záznamu cron. Špatná skladba v polích?
    


    EditDialog
    
        Dialog
        Dialog
    


    EditTrans
    
        Source path
        Cesta ke zdroji
    
    
        Local path
        Místní cesta
    
    
        Config error
        Chyba v nastavení
    
    
        Original path
        Původní cesta
    


    EditTransBase
    
        Path Translations
        Překlady cest
    
    
        Setting path translations for 
        Nastavení překladů cest pro 
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Vyberte jeden nebo více datových typů a použijte ovládací prvky v rámečku níže pro změnu způsobu, jakým jsou zpracovány
    
    
        Add
        Přidat
    
    
        Delete
        Smazat
    
    
        Cancel
        Zrušit
    
    
        Save
        Uložit
    


    FirstIdxDialog
    
        First indexing setup
        První nastavení rejstříkování
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Zdá se, že rejstřík pro toto nastavení neexistuje.</span><br /><br />Pokud chcete pouze zrejstříkovat svůj domovský adresář sadou rozumných výchozích nastavení, stiskněte tlačítko <span style=" font-style:italic;">Spustit rejstříkování nyní</span>. Podrobnosti budete moci upravit později. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Pokud chcete mít větší dohled, použijte následující odkazy pro upravení nastavení rejstříkování a rozvrhu.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">K těmto nástrojům lze přistupovat později v nabídce <span style=" font-style:italic;">Nastavení</span>.</p></body></html>
    
    
        Indexing configuration
        Nastavení rejstříkování
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        Toto vám umožní nastavit adresáře, které chcete rejstříkovat, a další parametry, jako jsou cesty pro vyloučené soubory, výchozí znakové sady atd.
    
    
        Indexing schedule
        Rozvrh rejstříkování
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        Toto vám umožní zvolit mezi dávkovým rejstříkováním a rejstříkováním ve skutečném čase, a nastavit automatický rozvrh pro dávkové rejstříkování (za použití cronu).
    
    
        Start indexing now
        Spustit rejstříkování nyní
    


    FragButs
    
        %1 not found.
        
    
    
        %1:
 %2
        
    
    
        Query Fragments
        
    


    IdxSchedW
    
        Index scheduling setup
        Nastavení rozvrhu rejstříkování
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> rejstříkování může běžet nepřetržitě, soubory se rejstříkují při jejich změně, nebo běžet v samostatných intervalech. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Četba příručky vám může pomoci při rozhodování se mezi těmito přístupy (stiskněte F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Tento nástroj vám může pomoci s nastavením rozvrhu pro automatizaci běhů dávkového rejstříkování, nebo spustit rejstříkování ve skutečném čase, když se přihlásíte (nebo obojí, což zřídkakdy dává smysl). </p></body></html>
    
    
        Cron scheduling
        Rozvrh cron
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        Nástroj vám umožní rozhodnout se, kdy má rejstříkování běžet, a nainstaluje záznam crontab.
    
    
        Real time indexing start up
        Spuštění rejstříkování ve skutečném čase
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        Rozhodněte, zda se rejstříkování ve skutečném čase spustí, když se přihlásíte (pouze pro výchozí rejstřík).
    


    ListDialog
    
        Dialog
        Dialog
    
    
        GroupBox
        Seskupovací okénko
    


    Main
    
        No db directory in configuration
        Nenastaven žádný databázový adresář
    
    
        Could not open database in 
        Nepodařilo se otevřít databázi v
    
    
        .
Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed.
        .
Klepněte na tlačítko Zrušit pro úpravu souboru s nastavením, předtím než se začne s rejstříkováním nebo na OK pro započetí s rejstříkováním.
    
    
        Configuration problem (dynconf
        Konfigurationsproblem (dynconf)
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        Soubor "history" je poškozen nebo nezapisovatelný/nečitelný. Prověřte jej, prosím, anebo jej odstraňte: 
    


    Preview
    
        &Search for:
        &Hledat:
    
    
        &Next
        &Další
    
    
        &Previous
        &Předchozí
    
    
        Match &Case
        Dbát na &psaní velkých a malých písmen
    
    
        Clear
        Vyprázdnit
    
    
        Creating preview text
        Vytváří se náhledový text
    
    
        Loading preview text into editor
        Náhledový text se nahrává do editoru
    
    
        Cannot create temporary directory
        Nelze vytvořit dočasný adresář
    
    
        Cancel
        Zrušit
    
    
        Close Tab
        Zavřít kartu
    
    
        Missing helper program: 
        Chybí program s nápovědou:
    
    
        Can't turn doc into internal representation for 
        Chyba při rejstříkování dokumentu 
    
    
        Cannot create temporary directory: 
        Nelze vytvořit dočasný adresář: 
    
    
        Error while loading file
        Chyba při nahrávání souboru
    


    PreviewTextEdit
    
        Show fields
        Ukázat pole
    
    
        Show main text
        Ukázat hlavní text
    
    
        Print
        Tisk
    
    
        Print Current Preview
        Vytisknout nynější náhled
    
    
        Show image
        Ukázat obrázek
    
    
        Select All
        Vybrat vše
    
    
        Copy
        Kopírovat
    
    
        Save document to file
        Uložit dokument do souboru
    
    
        Fold lines
        Zalomit řádky
    
    
        Preserve indentation
        Zachovat odsazení
    


    QObject
    
        Global parameters
        Celkové parametry
    
    
        Local parameters
        Místní parametry
    
    
        <b>Customised subtrees
        <b>Vlastní podstromy
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.
        Seznam podadresářů v rejstříkované hierarchii <br>kde některé parametry je potřeba nově vymezit. Výchozí: prázdný.
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.
        <i>Parametry, které následují, jsou nastaveny buď na nejvyšší úrovni, pokud nic<br>, nebo pokud je v seznamu výše vybrán prázdný řádek, nebo pro vybraný podadresář.<br>Adresáře můžete přidat anebo odebrat klepnutím na tlačítka +/-.
    
    
        Skipped names
        Přeskočené názvy
    
    
        These are patterns for file or directory  names which should not be indexed.
        Toto jsou vzory pro názvy souborů nebo adresářů, které se nemají rejstříkovat.
    
    
        Default character set
        Výchozí znaková sada
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        Toto je znaková sada, která se používá pro čtení souborů, které svou znakovou sadu vnitřně neurčují, např.. soubory s textem.<br>Výchozí hodnota je prázdná a používá se hodnota prostředí NLS.
    
    
        Follow symbolic links
        Sledovat symbolické odkazy
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        Během rejstříkování sledovat symbolické odkazy. Výchozí nastavení je ne kvůli vyvarovaní se dvojitého rejstříkování
    
    
        Index all file names
        Rejstříkovat všechny souborové názvy
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        Rejstříkovat všechny názvy souborů, jejichž obsah nelze určit nebo zpracovat (žádný nebo nepodporovaný MIME typ). Výchozí hodnota je ano
    
    
        Beagle web history
        Internetová historie Beagle
    
    
        Search parameters
        Parametry hledání
    
    
        Web history
        Historie webu
    
    
        Default<br>character set
        
    
    
        Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        
    
    
        Ignored endings
        
    
    
        These are file name endings for files which will be indexed by name only 
(no MIME type identification attempt, no decompression, no content indexing).
        
    


    QWidget
    
        Create or choose save directory
        
    
    
        Choose exactly one directory
        
    
    
        Could not read directory: 
        
    
    
        Unexpected file name collision, cancelling.
        
    
    
        Cannot extract document: 
        
    
    
        &Preview
        &Náhled
    
    
        &Open
        &Otevřít
    
    
        Open With
        
    
    
        Run Script
        
    
    
        Copy &File Name
        Kopírovat název &souboru
    
    
        Copy &URL
        Kopírovat adresu (&URL)
    
    
        &Write to File
        &Zapsat do souboru
    
    
        Save selection to files
        Uložit výběr do souborů
    
    
        Preview P&arent document/folder
        Náhled na &rodičovský dokument/složku
    
    
        &Open Parent document/folder
        &Otevřít rodičovský dokument/složku
    
    
        Find &similar documents
        Najít &podobné dokumenty
    
    
        Open &Snippets window
        Otevřít okno s úr&yvky
    
    
        Show subdocuments / attachments
        Ukázat podřízené dokumenty/přílohy
    


    RTIToolW
    
        Real time indexing automatic start
        Automatické spuštění rejstříkování ve skutečném čase
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> rejstříkování může být nastaveno tak, aby běželo jako démon. Soubory jsou aktualizovány při jejich změně, ve skutečném čase. Získáte tak vždy nejnovější rejstřík, ale prostředky systému se při tom používají nepřetržitě.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
    
    
        Start indexing daemon with my desktop session.
        Spustit rejstříkovacího démona s mým sezením pracovní plochy.
    
    
        Also start indexing daemon right now.
        Spustit rejstříkovacího démona ihned.
    
    
        Replacing: 
        Nahrazení:
    
    
        Replacing file
        Nahrazení souboru
    
    
        Can't create: 
        Nelze vytvořit: 
    
    
        Warning
        Varování
    
    
        Could not execute recollindex
        Nepodařilo se spustit recollindex
    
    
        Deleting: 
        Mazání:
    
    
        Deleting file
        Smazání souboru
    
    
        Removing autostart
        Odstranění automatického spuštění
    
    
        Autostart file deleted. Kill current process too ?
        Soubor automatického spuštění smazán. Zabít i současný proces?
    


    RclMain
    
        About Recoll
        O programu Recoll
    
    
        Executing: [
        Provádí se: [
    
    
        Cannot retrieve document info from database
        Žádné informace o dokumentu v databázi
    
    
        Warning
        Varování
    
    
        Can't create preview window
        Nelze vytvořit náhledové okno
    
    
        Query results
        Výsledky
    
    
        Document history
        Historie dokumentu
    
    
        History data
        Historická data
    
    
        Indexing in progress: 
        Rejstříkuje se: 
    
    
        Files
        Soubory
    
    
        Purge
        Vyčistit
    
    
        Stemdb
        Kmeny slov
    
    
        Closing
        Zavření
    
    
        Unknown
        Neznámý
    
    
        This search is not active any more
        Toto hledání už není činné
    
    
        Can't start query: 
        Nelze spustit hledání:
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeconf file
        Chybový příkaz pro prohlížeč pro %1: [%2]
Prověřte soubor mimeconf
    
    
        Cannot extract document or create temporary file
        Nelze vytáhnout dokument nebo vytvořit dočasný soubor
    
    
        (no stemming)
        Źádné rozšíření kmene slova
    
    
        (all languages)
        Všechny jazyky
    
    
        error retrieving stemming languages
        Chyba při vyhledání jazyka kmene slova
    
    
        Update &Index
        Obnovit &rejstřík
    
    
        Indexing interrupted
        Rejstříkování přerušeno
    
    
        Stop &Indexing
        Zastavit &rejstříkování
    
    
        All
        Vše
    
    
        media
        Multimedia
    
    
        message
        Zpráva
    
    
        other
        Jiné
    
    
        presentation
        Představení
    
    
        spreadsheet
        Tabulky
    
    
        text
        Text
    
    
        sorted
        Tříděno
    
    
        filtered
        Filtrováno
    
    
        External applications/commands needed and not found for indexing your file types:


        Pro rejstříkování vašich MIME typů jsou potřeba vnější programy/příkazy, které ale nebyly nalezeny:


    
    
        No helpers found missing
        Nenalezeny žádné pomocné programy
    
    
        Missing helper programs
        Chybí pomocné programy
    
    
        Document category filter
        Filtr pro skupinu dokumentu
    
    
        No external viewer configured for mime type [
        Žádný vnější prohlížeč nebyl nastaven pro MIME typ [
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        Prohlížeč stanovený v MIME zobrazení pro %1: %2 nenalezen.
Chcete spustit dialog s nastavením?
    
    
        Can't access file: 
        Nelze přistoupit k souboru: 
    
    
        Can't uncompress file: 
        Nelze rozbalit soubor: 
    
    
        Save file
        Uložit soubor
    
    
        Result count (est.)
        Počet výsledků (odhad)
    
    
        Query details
        Podrobnosti o hledání
    
    
        Could not open external index. Db not open. Check external indexes list.
        Nepodařilo se otevřít vnější rejstřík. Databáze neotevřena. Prověřte seznam vnějších rejstříků.
    
    
        No results found
        Nenalezeny žádné výsledky
    
    
        None
        Žádný
    
    
        Updating
        Obnova
    
    
        Done
        Hotovo
    
    
        Monitor
        Dohled
    
    
        Indexing failed
        Rejstříkování se nezdařilo
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        Nynější rejstříkovací proces nebyl spuštěn z tohoto rozhraní. Klepněte na OK pro jeho zabití, nebo na Zrušit, aby byl ponechán sám
    
    
        Erasing index
        Smazání rejstříku
    
    
        Reset the index and start from scratch ?
        Nastavit rejstřík znovu a začít od nuly?
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program
        Hledání běží.<br>Kvůli omezením rejstříkovací knihovny<br>zrušení ukončí program
    
    
        Error
        Chyba
    
    
        Index not open
        Rejstřík neotevřen
    
    
        Index query error
        Chyba při dotazu na rejstřík
    
    
        Indexed Mime Types
        Rejstříkované mime typy
    
    
        Content has been indexed for these mime types:
        Obsah byl rejstříkován pro tyto MIME typy:
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        Rejstřík není pro tento soubor nejnovější. Odmítá se riziko, že by byl ukázán špatný záznam. Klepněte na OK pro obnovení rejstříku pro tento soubor, pak, až bude rejstříkování hotovo, spusťte dotaz znovu. Jinak klepněte na Zrušit.
    
    
        Can't update index: indexer running
        Nelze obnovit rejstřík: běží rejstříkovač
    
    
        Indexed MIME Types
        Rejstříkované MIME typy
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        Chybový příkaz pro prohlížeč pro %1: [%2]
Prověřte soubor mimeconf
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        Příkaz pro prohlížeč pro %1 stanovuje jak hodnotu souboru tak hodnotu rodičovského souboru: nepodporováno
    
    
        Cannot find parent document
        Nelze najít rodičovský dokument
    
    
        Indexing did not run yet
        Rejstříkování ještě neběželo
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        Pro vaše souborové typy jsou potřeba vnější programy/příkazy, které ale nebyly nalezeny, jak byly uloženy při posledním rejstříkování v 
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry.
        Rejstřík není pro tento soubor nejnovější. Ukázání nesprávného záznamu bylo zamítnuto.
    
    
        Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        Klepněte na tlačítko pro aktualizaci rejstříku pro tento soubor, potom dotaz, až bude rejstříkování hotovo, spusťte znovu. Jinak klepněte na Zrušit.
    
    
        Indexer running so things should improve when it's done
        Rejstříkovač běží, takže věci by se po dokončení rejstříkování měly zlepšit
    
    
        Sub-documents and attachments
        Podřízené dokumenty a přílohy
    
    
        Document filter
        
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. 
        
    
    
        Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. 
        
    
    
        The indexer is running so things should improve when it's done. 
        
    
    
        The document belongs to an external indexwhich I can't update. 
        
    
    
        Click Cancel to return to the list. Click Ignore to show the preview anyway. 
        
    
    
        Duplicate documents
        Zdvojené dokumenty
    
    
        These Urls ( | ipath) share the same content:
        Tyto adresy ( | ipath) sdílejí totožný obsah:
    
    
        Bad desktop app spec for %1: [%2]
Please check the desktop file
        
    


    RclMainBase
    
        Previous page
        Předchozí strana
    
    
        Next page
        Další strana
    
    
        &File
        &Soubor
    
    
        E&xit
        &Ukončit
    
    
        &Tools
        &Nástroje
    
    
        &Help
        &Nápověda
    
    
        &Preferences
        &Nastavení
    
    
        Search tools
        Nástroje pro hledání
    
    
        Result list
        Seznam s výsledky
    
    
        &About Recoll
        &O programu Recoll
    
    
        Document &History
        &Historie dokumentu
    
    
        Document  History
        Historie dokumentu
    
    
        &Advanced Search
        &Pokročilé hledání
    
    
        Advanced/complex  Search
        Pokročilé/Složené hledání
    
    
        &Sort parameters
        Parametry &třídění
    
    
        Sort parameters
        Parametry třídění
    
    
        Next page of results
        Další strana s výsledky
    
    
        Previous page of results
        Předchozí strana s výsledky
    
    
        &Query configuration
        Nastavení &hledání
    
    
        &User manual
        &Uživatelská příručka
    
    
        Recoll
        Recoll
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        Update &index
        Obnovit &rejstřík
    
    
        Term &explorer
        Průzkumník &výrazů
    
    
        Term explorer tool
        Nástroj průzkumníka výrazů
    
    
        External index dialog
        Dialog pro vnější rejstříkování
    
    
        &Erase document history
        &Vymazat historii dokumentu
    
    
        First page
        První strana
    
    
        Go to first page of results
        Jít na první stranu s výsledky
    
    
        &Indexing configuration
        Nastavení &rejstříkování
    
    
        All
        Vše
    
    
        &Show missing helpers
        &Ukázat chybějící pomocné programy
    
    
        PgDown
        O stranu dolů (PgDown)
    
    
        PgUp
        O stranu nahoru (PgUp)
    
    
        &Full Screen
        &Celá obrazovka
    
    
        F11
        F11
    
    
        Shift+Home
        Shift+Home
    
    
        Full Screen
        Na celou obrazovku
    
    
        &Erase search history
        &Vymazat historii hledání
    
    
        sortByDateAsc
        Třídit podle data vzestupně
    
    
        Sort by dates from oldest to newest
        Roztřídit podle data od nejstaršího po nejnovější
    
    
        sortByDateDesc
        Třídit podle data sestupně
    
    
        Sort by dates from newest to oldest
        Roztřídit podle data od nejnovějšího po nejstarší
    
    
        Show Query Details
        Ukázat podrobnosti hledání
    
    
        Show results as table
        Ukázat výsledky jako tabulku
    
    
        &Rebuild index
        &Sestavit rejstřík znovu
    
    
        &Show indexed types
        &Ukázat rejstříkované typy
    
    
        Shift+PgUp
        Shift+PgUp
    
    
        &Indexing schedule
        Rozvrh &rejstříkování
    
    
        E&xternal index dialog
        Dialog pro &vnější rejstříkování
    
    
        &Index configuration
        Nastavení &rejstříku
    
    
        &GUI configuration
        Nastavení uživatelského roz&hraní
    
    
        &Results
        &Výsledky
    
    
        Sort by date, oldest first
        Roztřídit podle data, nejprve nejstarší
    
    
        Sort by date, newest first
        Roztřídit podle data, nejprve nejnovější
    
    
        Show as table
        Ukázat jako tabulku
    
    
        Show results in a spreadsheet-like table
        Ukázat výsledky v tabulce na způsob sešitu s listy v tabulkovém kalkulátoru
    
    
        Save as CSV (spreadsheet) file
        Uložit jako soubor CSV (tabulkový dokument)
    
    
        Saves the result into a file which you can load in a spreadsheet
        Uložit výsledek do souboru, jejž můžete nahrát jako sešit s listy v tabulkovém kalkulátoru
    
    
        Next Page
        Další strana
    
    
        Previous Page
        Předchozí strana
    
    
        First Page
        První strana
    
    
        Query Fragments
        
    
    
            With failed files retrying
        
    
    
        Next update will retry previously failed files
        
    


    RclTrayIcon
    
        Restore
        
    
    
        Quit
        
    


    RecollModel
    
        File name
        Název souboru
    
    
        Mime type
        Mime typ
    
    
        Date
        Datum
    
    
        Abstract
        Výtah
    
    
        Author
        Autor
    
    
        Document size
        Velikost dokumentu
    
    
        Document date
        Datum dokumentu
    
    
        File size
        Velikost souboru
    
    
        File date
        Datum souboru
    
    
         Ipath
        Ipath
    
    
        Keywords
        Klíčová slova
    
    
        Original character set
        Původní znaková sada
    
    
        Relevancy rating
        Hodnocení závažnosti
    
    
        Title
        Název
    
    
        URL
        Adresa (URL)
    
    
        Mtime
        Mtime
    
    
        Date and time
        Datum a čas
    
    
        Ipath
        Ipath
    
    
        MIME type
        Typ MIME
    


    ResList
    
        Result list
        Výsledky
    
    
        Unavailable document
        Nedostupný dokument
    
    
        Previous
        Předchozí
    
    
        Next
        Další
    
    
        <p><b>No results found</b><br>
        <p><b>Nebyly nalezeny žádné výsledky</b><br>
    
    
        &Preview
        &Náhled
    
    
        Copy &URL
        Kopírovat adresu (&URL)
    
    
        Find &similar documents
        Najít &podobné dokumenty
    
    
        Query details
        Podrobnosti o hledání
    
    
        (show query)
        (ukázat hledání)
    
    
        Copy &File Name
        Kopírovat název &souboru
    
    
        Document history
        Historie dokumentu
    
    
        Preview
        Náhled
    
    
        Open
        Otevřít
    
    
        <p><i>Alternate spellings (accents suppressed): </i>
        <p><i>Náhradní pravopis (přízvuky potlačeny): </i>
    
    
        &Write to File
        &Zapsat do souboru
    
    
        Preview P&arent document/folder
        Náhled na &rodičovský dokument/složku
    
    
        &Open Parent document/folder
        &Otevřít rodičovský dokument/složku
    
    
        &Open
        &Otevřít
    
    
        Documents
        Dokumenty
    
    
        out of at least
        mimo alespoň
    
    
        for
        pro
    
    
        <p><i>Alternate spellings: </i>
        <p><i>Náhradní pravopis: </i>
    
    
        Open &Snippets window
        Otevřít okno s úr&yvky
    
    
        Duplicate documents
        Zdvojené dokumenty
    
    
        These Urls ( | ipath) share the same content:
        Tyto adresy ( | ipath) sdílejí totožný obsah:
    
    
        Result count (est.)
        Počet výsledků (odhad)
    
    
        Snippets
        Úryvky
    


    ResTable
    
        &Reset sort
        Nastavit třídění &znovu
    
    
        &Delete column
        &Smazat sloupec
    
    
        Add "
        Přidat "
    
    
        " column
        " sloupec
    
    
        Save table to CSV file
        Uložit tabulku jako soubor CSV
    
    
        Can't open/create file: 
        Nelze otevřít/vytvořit soubor: 
    
    
        &Preview
        &Náhled
    
    
        &Open
        &Otevřít
    
    
        Copy &File Name
        Kopírovat název &souboru
    
    
        Copy &URL
        Kopírovat adresu (&URL)
    
    
        &Write to File
        &Zapsat do souboru
    
    
        Find &similar documents
        Najít &podobné dokumenty
    
    
        Preview P&arent document/folder
        Náhled na &rodičovský dokument/složku
    
    
        &Open Parent document/folder
        &Otevřít rodičovský dokument/složku
    
    
        &Save as CSV
        &Uložit jako CSV
    
    
        Add "%1" column
        Přidat sloupec "%1"
    


    ResTableDetailArea
    
        &Preview
        &Náhled
    
    
        &Open
        &Otevřít
    
    
        Copy &File Name
        Kopírovat název &souboru
    
    
        Copy &URL
        Kopírovat adresu (&URL)
    
    
        &Write to File
        &Zapsat do souboru
    
    
        Find &similar documents
        Najít &podobné dokumenty
    
    
        Preview P&arent document/folder
        Náhled na &rodičovský dokument/složku
    
    
        &Open Parent document/folder
        &Otevřít rodičovský dokument/složku
    


    ResultPopup
    
        &Preview
        &Náhled
    
    
        &Open
        &Otevřít
    
    
        Copy &File Name
        Kopírovat název &souboru
    
    
        Copy &URL
        Kopírovat adresu (&URL)
    
    
        &Write to File
        &Zapsat do souboru
    
    
        Save selection to files
        Uložit výběr do souborů
    
    
        Preview P&arent document/folder
        Náhled na &rodičovský dokument/složku
    
    
        &Open Parent document/folder
        &Otevřít rodičovský dokument/složku
    
    
        Find &similar documents
        Najít &podobné dokumenty
    
    
        Open &Snippets window
        Otevřít okno s úr&yvky
    
    
        Show subdocuments / attachments
        Ukázat podřízené dokumenty/přílohy
    


    SSearch
    
        Any term
        Jakýkoli výraz
    
    
        All terms
        Všechny výrazy
    
    
        File name
        Název souboru
    
    
        Completions
        Doplnění
    
    
        Select an item:
        Vyberte položku:
    
    
        Too many completions
        Příliš mnoho doplnění
    
    
        Query language
        Jazyk hledání
    
    
        Bad query string
        Špatný řetězec hledání
    
    
        Out of memory
        Není dostupná žádná další paměť
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  No actual parentheses allowed.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        Zadejte výraz jazyka hledání. Seznam:<br>
<i>term1 term2</i> : 'term1' a 'term2' do kteréhokoli pole.<br>
<i>field:term1</i> : 'term1' do pole 'field'.<br>
 Obvyklé názvy polí/synonyma:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudopole: dir, mime/format, type/rclcat, date.<br>
 Příklady intervalů dvou dat: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  Nepovoleny žádné závorky.<br>
<i>"term1 term2"</i> : větný úsek (musí se objevit přesně). Možné modifikátory:<br>
<i>"term1 term2"p</i> : neuspořádané hledání podle blízkosti s výchozí vzdáleností.<br>
Použijte odkaz <b>Ukázat hledání</b>, když máte o výsledku pochybnost, a podívejte se do příručky (&lt;F1>) na další podrobnosti.

    
    
        Enter file name wildcard expression.
        Zadejte žolíkový výraz (zástupný symbol) pro název souboru.
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Zde zadejte hledané výrazy. Stiskněte ESC SPC pro doplnění současného výrazu.
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        
    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        Smazat
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        Smazat hledaný záznam
    
    
        Search
        Hledat
    
    
        Start query
        Spustit hledání
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Zde zadejte hledané výrazy. Stiskněte ESC SPC pro doplnění současného výrazu.
    
    
        Choose search type.
        Vyberte typ hledání.
    


    SearchClauseW
    
        SearchClauseW
        SearchClauseW
    
    
        Any of these
        jakýkoli z těchto
    
    
        All of these
        Všechny tyto
    
    
        None of these
        Žádný z těchto
    
    
        This phrase
        Tato slova
    
    
        Terms in proximity
        Podobné výrazy
    
    
        File name matching
        Odpovídající názvy souborů
    
    
        Select the type of query that will be performed with the words
        Vyberte druh hledání, se kterým se slova budou hledat
    
    
        Number of additional words that may be interspersed with the chosen ones
        Počet slov, která se smějí nacházet mezi hledanými
    
    
        No field
        Žádné pole
    
    
        Any
        Jakýkoliv
    
    
        All
        Vše
    
    
        None
        Žádný
    
    
        Phrase
        Tato slova
    
    
        Proximity
        Podobné výrazy
    
    
        File name
        Název souboru
    


    Snippets
    
        Snippets
        Úryvky
    
    
        about:blank
        about:blank
    
    
        Find:
        Hledat:
    
    
        Next
        Další
    
    
        Prev
        Předchozí
    
    
        X
        X
    


    SnippetsW
    
        Search
        Hledat
    
    
        <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p>
        
    


    SortForm
    
        Date
        Datum
    
    
        Mime type
        Mime Type
    


    SortFormBase
    
        Sort Criteria
        Sortierkriterium
    
    
        Sort the
        Zeige die
    
    
        most relevant results by:
        relevantesten Ergebnisse sortiert nach:
    
    
        Descending
        Absteigend
    
    
        Close
        Schließen
    
    
        Apply
        Übernehmen
    


    SpellBase
    
        Term Explorer
        Průzkumník výrazů
    
    
        &Expand 
        &Rozbalit 
    
    
        Alt+E
        Alt+E
    
    
        &Close
        &Zavřít
    
    
        Alt+C
        Alt+C
    
    
        Term
        Ausdruck
    
    
        No db info.
        Žádné informace o databázi.
    
    
        Match
        Shoda
    
    
        Case
        Rozlišování velkých a malých písmen
    
    
        Accents
        Přízvuky
    


    SpellW
    
        Wildcards
        Zástupné symboly
    
    
        Regexp
        Regulární výraz
    
    
        Spelling/Phonetic
        Pravopis/Hláskosloví
    
    
        Aspell init failed. Aspell not installed?
        Chyba při spuštění Aspellu. Aspell není nainstalován?
    
    
        Aspell expansion error. 
        Chyba rozšíření Aspell. 
    
    
        Stem expansion
        Rozšíření kmene slova
    
    
        error retrieving stemming languages
        Chyba při vyhledání jazyka kmene slova
    
    
        No expansion found
        Nenalezeno žádné rozšíření
    
    
        Term
        Výraz
    
    
        Doc. / Tot.
        Dok. / Tot.
    
    
        Index: %1 documents, average length %2 terms
        Rejstřík: %1 dokumentů, průměrná délka %2 výrazy(ů)
    
    
        Index: %1 documents, average length %2 terms.%3 results
        Rejstřík: %1 dokumentů, průměrná délka %2 výrazy(ů). %3 výsledky(ů)
    
    
        %1 results
        %1 výsledky(ů)
    
    
        List was truncated alphabetically, some frequent 
        Seznam byl zkrácen abecedně, některé četné 
    
    
        terms may be missing. Try using a longer root.
        pojmy mohou chybět. Zkuste použít delší kořen.
    
    
        Show index statistics
        Ukázat statistiku rejstříku
    
    
        Number of documents
        Počet dokumentů
    
    
        Average terms per document
        Průměrný počet výrazů na dokument
    
    
        Smallest document length
        Délka nejmenšího dokumentu
    
    
        Longest document length
        Délka nejdelšího dokumentu
    
    
        Database directory size
        Velikost adresáře s databází
    
    
        MIME types:
        Typy MIME:
    
    
        Item
        Položka
    
    
        Value
        Hodnota
    


    UIPrefsDialog
    
        The selected directory does not appear to be a Xapian index
        Zdá se, že vybraný adresář není rejstříkem Xapian Index
    
    
        This is the main/local index!
        Toto je hlavní/místní rejstřík!
    
    
        The selected directory is already in the index list
        Vybraný adresář je již částí rejstříkového seznamu
    
    
        Select xapian index directory (ie: /home/buddy/.recoll/xapiandb)
        Vyberte adresář s rejstříkem Xapian Indexverzeichnis (např.: /home/benutzer/.recoll/xapiandb)
    
    
        error retrieving stemming languages
        Chyba při vyhledání jazyka kmene slova
    
    
        Choose
        Vybrat
    
    
        Result list paragraph format (erase all to reset to default)
        Formát odstavce seznamu s výsledky (vymazat všechny pro znovunastavení na výchozí)
    
    
        Result list header (default is empty)
        Záhlaví seznamu s výsledky (výchozí je prázdné)
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        Vyberte adresář s nastavením pro Recoll nebo rejstříkový adresář Xapianu (např.: /home/me/.recoll or /home/me/.recoll/xapiandb)
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        Vybraný adresář vypadá jako adresář s nastavením pro Recoll, ale nastavení se nepodařilo přečíst
    
    
        At most one index should be selected
        Je potřeba vybrat alespoň jeden rejstřík
    
    
        Cant add index with different case/diacritics stripping option
        Nelze přidat rejstřík s odlišnou volbou pro velikost písma/diakritiku
    
    
        Default QtWebkit font
        
    


    UIPrefsDialogBase
    
        User interface
        Benutzeroberfläche
    
    
        Number of entries in a result page
        Anzahl der Ergebnisse pro Seite
    
    
        Result list font
        Schriftart für Ergebnisliste
    
    
        Helvetica-10
        Helvetica-10
    
    
        Opens a dialog to select the result list font
        Öffnet einen Dialog zur Auswahl der Schriftart für die Ergebnisliste
    
    
        Reset
        Reset
    
    
        Resets the result list font to the system default
        Setzt die Schriftart für die Ergebnisliste zurück auf den Standardwert
    
    
        Auto-start simple search on whitespace entry.
        Automatisch eine einfache Suche starten, wenn ein Worttrenner im Sucheingabefeld eingegeben wird.
    
    
        Start with advanced search dialog open.
        Nach dem Start automatisch den Dialog für die erweiterte Suche öffnen.
    
    
        Start with sort dialog open.
        Nach dem Start automatisch den Sortierdialog öffnen.
    
    
        Search parameters
        Suchparameter
    
    
        Stemming language
        Stemming Sprache
    
    
        Dynamically build abstracts
        Zusammenfassungen dynamisch erzeugen
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Festlegung ob Zusammenfassungen für Ergebnisse im Kontext der Suchparameter erzeugt werden (kann bei großen Dokumenten langsam sein).
    
    
        Replace abstracts from documents
        Ersetzen der Zusammenfassungen in den Dokumenten
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Festlegung ob eine Zusammenfassung auch dann erzeugt wird, wenn das Dokument schon eine Zusammenfassung enthält
    
    
        Synthetic abstract size (characters)
        Länge der erzeugten Zusammenfassung (Zeichen)
    
    
        Synthetic abstract context words
        Anzahl der Kontextworte in der Zusammenfassung
    
    
        External Indexes
        externe Indizes
    
    
        Add index
        Index hinzufügen
    
    
        Select the xapiandb directory for the index you want to add, then click Add Index
        Wählen Sie das xapiandb-Verzeichnis des zuzufügenden Indizes und klicken Sie auf Index hinzufügen
    
    
        Browse
        Auswahl
    
    
        &OK
        &OK
    
    
        Apply changes
        Änderungen übernehmen
    
    
        &Cancel
        &Abbrechen
    
    
        Discard changes
        Änderungen verwerfen
    
    
        Result paragraph<br>format string
        Formatstring 
für Ergebnisse
    
    
        Automatically add phrase to simple searches
        Automatisches Zufügen von Sätzen zu einfachen Suchen
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Eine Suche nach [Jürgen Klinsmann] wird geändert nach [Jürgen OR Klinsmann OR (Jürgen PHRASE 2 Klinsmann)].
Dadurch sollten Ergebnisse, die exakte Übereinstimmungen der Suchworte enthalten, stärker gewichtet werden.
    
    
        User preferences
        Benutzereinstellungen
    
    
        Use desktop preferences to choose document editor.
        Die Einstellung des Dokumenteneditors erfolgt in den Desktopvoreinstellungen.
    
    
        External indexes
        Externe Indizes
    
    
        Toggle selected
        Auswahl umkehren
    
    
        Activate All
        Alle Auswählen
    
    
        Deactivate All
        Alle Abwählen
    
    
        Remove selected
        Ausgewählte entfernen
    
    
        Remove from list. This has no effect on the disk index.
        Aus der Liste entfernen. Dies hat keinen Einfluss auf den gespeicherten Index.
    
    
        Remember sort activation state.
        Speichern, ob Sortieren aktiviert ist.
    


    ViewAction
    
        Changing actions with different current values
        Mění se činnosti s odlišnými nynějšími hodnotami
    
    
        Mime type
        Mime typ
    
    
        Command
        Příkaz
    
    
        MIME type
        Typ MIME
    
    
        Desktop Default
        Výchozí plocha
    
    
        Changing entries with different current values
        Mění se záznamy s odlišnými nynějšími hodnotami
    


    ViewActionBase
    
        File type
        Dateityp
    
    
        Action
        Aktion
    
    
        Select one or several file types, then click Change Action to modify the program used to open them
        Vyberte jeden nebo více datových typů a klepněte na "Změnit činnost" pro změnu programu přiřazeného k jejich otevření
    
    
        Change Action
        Změnit činnost
    
    
        Close
        Zavřít
    
    
        Native Viewers
        Prohlížeče
    
    
        Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults.
        Vyberte jeden nebo několik MIME typů a potom klepněte na "Změnit činnost"<br>Taktéž můžete tento dialog zavřít a zaškrtnout "Použít nastavení pracovní plochy"<br>v hlavním panelu, aby se tento seznam přehlížel a pracovní plocha se použila jako výchozí.
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        Vyberte jeden nebo více MIME typů a použijte ovládací prvky v rámečku s tlačítky pro změnu způsobu, jakým jsou zpracovány.
    
    
        Use Desktop preferences by default
        Použít nastavení pracovní plochy jako výchozí
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Vyberte jeden nebo více datových typů a použijte ovládací prvky v rámečku níže pro změnu způsobu, jakým jsou zpracovány
    
    
        Exception to Desktop preferences
        Výjimka pro nastavení pracovní plochy
    
    
        Action (empty -> recoll default)
        Činnost (prázdné -> výchozí pro Recoll)
    
    
        Apply to current selection
        Použít na nynější výběr
    
    
        Recoll action:
        Aktion
    
    
        current value
        current value
    
    
        Select same
        Vybrat  stejný
    
    
        <b>New Values:</b>
        <b>Nové hodnoty:</b>
    


    confgui::ConfBeaglePanelW
    
        Steal Beagle indexing queue
        Ukrást rejstříkovací řadu Beagle
    
    
        Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin)
        Beagle NESMǏ běžet. Povolí zpracování řady Beagle pro rejstříkování internetové historie Firefoxu.<br>(také byste měl nainstalovat přídavný modul Beagle pro Firefox)
    
    
        Entries will be recycled once the size is reached
        Záznamy budou opětně použity, jakmile bude velikost dosažena
    
    
        Web page store directory name
        Název adresáře pro ukládání internetové stránky
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        Název pro adresář, kam se mají ukládat kopie navštívených internetových stránek.<br>Neabsolutní cesta je vzata relativně k adresáři s nastavením.
    
    
        Max. size for the web store (MB)
        Největší velikost pro ukládání internetových stránek (MB)
    
    
        Process the WEB history queue
        Zpracovat řadu historie WEBu
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)
        Povolí rejstříkování Firefoxem navštívených stránek.<br>(také je potřeba, abyste nainstalovali přídavný modul Recollu pro Firefox)
    


    confgui::ConfIndexW
    
        Can't write configuration file
        Nelze zapsat soubor s nastavením
    


    confgui::ConfParamFNW
    
        Choose
        Vybrat
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        Automaticky rozlišovat diakritická znaménka
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.
        <p>Zapnout automaticky rozlišování diakritických znamének, když hledaný pojem obsahuje znaky a akcenty (ne v unac_except_trans). Jinak pro  musíte použít jazyk dotazu a modifikátor <i>D</i>.
    
    
        Automatic character case sensitivity
        Automaticky rozlišovat velká a malá písmena
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.
        <p>Zapnout automaticky rozlišování velkých a malých písmen, když záznam obsahuje velká písmena (mimo na prvním místě). Jinak pro  musíte použít jazyk dotazu a modifikátor <i>C</i>.
    
    
        Maximum term expansion count
        Největší počet rozšíření výrazu
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.
        <p>Největší počet rozšíření pro jeden výraz (např. při použití žolíků). Standardní výchozí hodnota 10 000 je rozumná a zabrání tomu, aby se hledaný pojem jevil jako zamrzlý, zatímco je procházen seznam pojmů.
    
    
        Maximum Xapian clauses count
        Největší počet výrazů Xapian
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.
        <p>Největší počet základních výrazů, které přidáme do jednoho dotazu Xapian. V některých případech se mohou výsledky rozšíření výrazu vynásobit, a my se chceme vyvarovat nadbytečné spotřebě paměti. Standardní výchozí hodnota 100 000 by měla ve většině případů naprosto postačovat a hodit se k typickému současnému sestavení zařízení (hardware).
    


    confgui::ConfSubPanelW
    
        Global
        Celkové
    
    
        Max. compressed file size (KB)
        Největší velikost zabaleného souboru (KB)
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        Tato hodnota nastavuje práh, za kterým nebudou zabalené soubory zpracovávány. Nastavte na -1 pro žádné omezení, na 0 pro vůbec žádné rozbalování.
    
    
        Max. text file size (MB)
        Největší velikost textového souboru (KB)
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        Tato hodnota nastavuje práh, za kterým nebudou textové soubory zpracovávány. Nastavte na -1 pro žádné omezení.
Je to kvůli vyloučení obřích souborů se zápisem z rejstříkování.
    
    
        Text file page size (KB)
        Velikost stránky textového souboru (KB)
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        Pokud je nastavena tato hodnota (nerovná se -1), textové soubory budou pro rejstříkování rozděleny na kousky o této velikosti.
To pomůže při prohledávání velmi velkých textových souborů (např. souborů se zápisem).
    
    
        Max. filter exec. time (S)
        Největší čas na provedení filtru (s)
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit.

        Vnější filtry pracující déle než po tak dlouho budou přerušeny. Je to pro ten zřídkavý případ (např. postscript), kdy by dokument mohl zapříčinit filtr loopSet na -1 pro žádné omezení.

    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        Vnější filtry pracující déle než po tak dlouhou dobu budou přerušeny. Je to pro ten zřídkavý případ (např. postscript), kdy by dokument mohl zapříčinit vejití filtru do smyčky. Nastavte na -1 pro žádné omezení.

    
    
        Only mime types
        
    
    
        An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive
        
    
    
        Exclude mime types
        
    
    
        Mime types not to be indexed
        
    


    confgui::ConfTopPanelW
    
        Top directories
        Počáteční adresáře
    
    
        The list of directories where recursive indexing starts. Default: your home.
        Seznam adresářů, ve kterých začíná rejstříkování včetně podsložek. Výchozí: adresář Home.
    
    
        Skipped paths
        Přeskočené cesty
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
        Názvy adresářů, které se nebudou rejstříkovat.<br>Může obsahovat zástupné symboly (žolíky). Musí odpovídat cestám, které rejstříkovač vidí (např. pokud v pačátečních adresářích stojí '/home/me' a '/home' je ve skutečnosti odkazem na '/usr/home', potom by byl správným zápisem skippedPath '/home/me/tmp*' a ne '/usr/home/me/tmp*')
    
    
        Stemming languages
        Jazyky rozšíření kmenů slov
    
    
        The languages for which stemming expansion<br>dictionaries will be built.
        Jazyky, pro které se vytvoří <br>adresáře rozšíření kmenů slov.
    
    
        Log file name
        Název pro soubor se zápisem
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output
        Soubor, do kterého se zapíše výstupní zpráva.<br>Pro výstupy na terminál použijte 'stderr'
    
    
        Log verbosity level
        Úroveň podrobnosti zápisu
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.
        Tato hodnota upravuje množství zpráv,<br>od pouze chyb až po velké množství dat zajímavých pro ladění.
    
    
        Index flush megabytes interval
        Interval v megabytech pro vymazání rejstříku
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 
        Tato hodnota upravuje množství dat, která jsou rejstříkována mezi spláchnutími na disk.<br>Pomáhá to řídit použití paměti rejstříkovače. Výchozí je 10 MB 
    
    
        Max disk occupation (%)
        Největší obsazení disku (%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).
        Jde o procentní podíl využívání disku, kdy rejstříkování selže a zastaví se (kvůli vyhnutí se zaplnění vašeho disku).<br>0 znamená žádné omezení (tato hodnota je nastavena jako výchozí).
    
    
        No aspell usage
        Nepoužívat aspell
    
    
        Aspell language
        Jazyk aspellu
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Jazyk pro adresář aspellu. Mělo by to vypadat jako 'en' nebo 'fr' nebo 'cs'...<br>Pokud není tato hodnota nastavena, použije se pro její vypočítání prostředí NLS, což obvykle pracuje. Pro získání představy o tom, co je ve vašem systému nainstalováno, napište 'aspell config' a hledejte soubory .dat v adresáři 'data-dir'. 
    
    
        Database directory name
        Název adresáře s databází
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the  configuration directory. The default is 'xapiandb'.
        Název pro adresář, v němž se má ukládat rejstřík.<br>Neabsolutní cesta je vzata relativně k adresáři s nastavením. Výchozí je 'xapiandb'.
    
    
        Use system's 'file' command
        Použít příkaz 'file'
    
    
        Use the system's 'file' command if internal<br>mime type identification fails.
        Použít příkaz 'file', když vnitřní<br>rozpoznání MIME typu selže.
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 
        Zakáže používání aspellu pro vytvoření přibližné podoby pravopisu v nástroji průzkumníka výrazů.<br> Užitečné, pokud aspell není přítomen anebo nepracuje. 
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Jazyk pro adresář aspellu. Mělo by to vypadat jako 'en' nebo 'fr' nebo 'cs'...<br>Pokud není tato hodnota nastavena, použije se pro její vypočítání prostředí NLS, což obvykle pracuje. Pro získání představy o tom, co je ve vašem systému nainstalováno, napište 'aspell config' a hledejte soubory .dat v adresáři 'data-dir'. 
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
        Název pro adresář, v němž se má ukládat rejstřík.<br>Neabsolutní cesta je vzata relativně k adresáři s nastavením. Výchozí je 'xapiandb'.
    
    
        Unac exceptions
        Výjimky unac
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.
        <p>Toto jsou výjimky pro mechanismus unac, který ve výchozím nastavení odstraňuje všechny diakritické znaky a nahrazuje je kanonickými obdobami. Toto odstraňování akcentů můžete (v závislosti na vaší řeči) pro některé znaky potlačit a zadat dodatečná nahrazení, např. pro ligatury. V každém mezerou odděleném záznamu je první znak zdrojovým (výchozím) a zbytek je nahrazení.
    


    uiPrefsDialogBase
    
        User preferences
        Uživatelská nastavení
    
    
        User interface
        Uživatelské rozhraní
    
    
        Number of entries in a result page
        Počet výsledků na stranu
    
    
        If checked, results with the same content under different names will only be shown once.
        Je-li zaškrtnuto, budou výsledky se stejným obsahem pod jinými názvy ukázány jen jednou.
    
    
        Hide duplicate results.
        Skrýt zdvojené výsledky
    
    
        Highlight color for query terms
        Zvýraznit barvu výrazů hledání
    
    
        Result list font
        Písmo pro seznam s výsledky
    
    
        Opens a dialog to select the result list font
        Otevře dialog pro výběr písma seznamu výsledků
    
    
        Helvetica-10
        Helvetica-10
    
    
        Resets the result list font to the system default
        Nastaví písmo pro seznam s výsledky znovu na výchozí hodnotu
    
    
        Reset
        Nastavit znovu
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Stanovuje formát pro každý odstavec seznamu s výsledky. Použijte qt nahrazení formátu html a printf:<br>%A přehled<br> %D datum<br> %I název obrázku ikony<br> %K klíčová slova (jsou-li)<br> %L odkazy na náhled a úpravy<br> %M mime typ<br> %N počet výsledků<br> %R procento významnosti<br> %S informace o velikosti<br> %T název<br> %U adresa (URL)<br>
    
    
        Result paragraph<br>format string
        Řetězec formátu<br>pro výsledky
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Texty nad tuto velikost nebudou v náhledu zvýrazňovány (příliš pomalé).
    
    
        Maximum text size highlighted for preview (megabytes)
        Největší velikost textu zvýrazněného pro náhled (megabyty)
    
    
        Use desktop preferences to choose document editor.
        Použít nastavení pracovní plochy pro výběr editoru pro dokumenty.
    
    
        Choose editor applications
        Vybrat programy editorů
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Zobrazit skupinový filtr jako nástrojový pruh místo tlačítkového panelu (potřebuje spustit program znovu).
    
    
        Auto-start simple search on whitespace entry.
        Automaticky spustit jednoduché hledání, když je do zadávacího pole pro hledání zadáno prázdné místo (mezera).
    
    
        Start with advanced search dialog open.
        Po spuštění automaticky otevřít dialog pro rozšířené hledání
    
    
        Start with sort dialog open.
        Nach dem Start automatisch den Sortierdialog öffnen.
    
    
        Remember sort activation state.
        Zapamatovat si stav zapnutí hledání
    
    
        Prefer Html to plain text for preview.
        Upřednostňovat pro náhled HTML před prostým textem
    
    
        Search parameters
        Parametry hledání
    
    
        Stemming language
        Jazyk kmene slova
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Hledání [Ježíš Kristus] se změní na [Ježíš OR Kristus OR (Ježíš PHRASE 2 Kristus)].
Tímto by měly být silněji zváženy výsledky, které obsahují přesné shody s hledaným slovem.
    
    
        Automatically add phrase to simple searches
        Automatické přidání vět do jednoduchého hledání
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Stanovení, zda se má vytvořit přehled pro výsledky v souvislosti s parametrem hledání.
U velkých dokumentů může být pomalé.
    
    
        Dynamically build abstracts
        Vytvářet přehledy dynamicky
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Stanovení, zda se má vytvořit přehled i tehdy, když dokument již nějaký přehled obsahuje.
    
    
        Replace abstracts from documents
        Nahradit přehledy v dokumentech
    
    
        Synthetic abstract size (characters)
        Délka vytvořeného přehledu (počet znaků)
    
    
        Synthetic abstract context words
        Počet souvisejících slov v přehledu
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        Slova v seznamu budou v záznamu jazyka hledání automaticky obrácena na věty ext:xxx.
    
    
        Query language magic file name suffixes.
        Kouzelné přípony souborového názvu jazyka hledání
    
    
        Enable
        Povolit
    
    
        External Indexes
        Vnější rejstříky
    
    
        Toggle selected
        Přepnout vybrané
    
    
        Activate All
        Zapnout vše
    
    
        Deactivate All
        Vypnout vše
    
    
        Remove from list. This has no effect on the disk index.
        Odstranit ze seznamu. Nemá to žádný účinek na uložený rejstřík.
    
    
        Remove selected
        Odstranit vybrané
    
    
        Click to add another index directory to the list
        Klepnout pro přidání dalšího rejstříkového adresáře do seznamu
    
    
        Add index
        Přidat rejstřík
    
    
        Apply changes
        Použít změny
    
    
        &OK
        &OK
    
    
        Discard changes
        Zahodit změny
    
    
        &Cancel
        Z&rušit
    
    
        Abstract snippet separator
        Oddělovač kousku přehledu
    
    
        Use <PRE> tags instead of <BR>to display plain text as html.
        Použít značky <PRE> namísto <BR> pro zobrazení prostého textu jako HTML.
    
    
        Lines in PRE text are not folded. Using BR loses indentation.
        Řádky v textu PRE nejsou složeny. Použití BR povede ke ztrátě odsazení.
    
    
        Style sheet
        Stylový list
    
    
        Opens a dialog to select the style sheet file
        Otevře dialog pro výběr souboru se stylovým listem
    
    
        Choose
        Vybrat
    
    
        Resets the style sheet to default
        Nastaví stylový list znovu na výchozí
    
    
        Lines in PRE text are not folded. Using BR loses some indentation.
        Řádky v textu PRE nejsou složeny. Použití BR povede ke ztrátě odsazení.
    
    
        Use <PRE> tags instead of <BR>to display plain text as html in preview.
        Použít značky <PRE> namísto <BR> pro zobrazení prostého textu formátovaného v náhledu jako HTML.
    
    
        Result List
        Seznam s výsledky
    
    
        Edit result paragraph format string
        Upravit řetězec formátu pro výsledky
    
    
        Edit result page html header insert
        Upravit záhlaví html na straně s výsledky
    
    
        Date format (strftime(3))
        Formát data (strftime(3))
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        Práh četnosti (procento), od kterého se výrazy nepoužívají.
Slovní obraty obsahující příliš četné výrazy způsobují výkonnostní potíže.
Přeskočené výrazy zvětšují vzdálenost slovního obratu a zmenšují účinnost funkce automatického hledání slovního obratu.
Výchozí hodnota je 2 (procenta).
    
    
        Autophrase term frequency threshold percentage
        Četnost výskytu výrazu (procento) pro automatické tvoření slovních obratů
    
    
        Plain text to HTML line style
        Prostý text do stylu řádku HTML
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        Řádky v PRE textu nejsou zalomeny. Při použití BR dojde ke ztrátě některých zalomení. Možná je to, co chcete styl PRE + zalomení.
    
    
        <BR>
        <BR>
    
    
        <PRE>
        <PRE>
    
    
        <PRE> + wrap
        <PRE> + zalomení
    
    
        Exceptions
        Výjimky
    
    
        Mime types that should not be passed to xdg-open even when "Use desktop preferences" is set.<br> Useful to pass page number and search string options to, e.g. evince.
        MIME typy, jež nemají být předány xdg-open, dokonce i když je nastaveno "Použít nastavení plochy".<br>Užitečné pro předání čísla strany a hledaného řetězce, např. Evince.
    
    
        Disable Qt autocompletion in search entry.
        Zakázat automatické doplňování Qt při zadávání v poli pro hledání.
    
    
        Search as you type.
        Hledat při psaní.
    
    
        Paths translations
        Překlady cest
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        Klepnout pro přidání dalšího rejstříkového adresáře do seznamu. Můžete vybrat buď adresář s nastavením pro Recoll nebo rejstřík Xapian.
    
    
        Snippets window CSS file
        Soubor CSS okna s úryvky
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        Otevře dialog pro výběr souboru CSS se stylovým listem okna s úryvky
    
    
        Resets the Snippets window style
        Nastaví znovu styl okna s úryvky
    
    
        Decide if document filters are shown as radio buttons, toolbar combobox, or menu.
        
    
    
        Document filter choice style:
        
    
    
        Buttons Panel
        
    
    
        Toolbar Combobox
        
    
    
        Menu
        
    
    
        Show system tray icon.
        
    
    
        Close to tray instead of exiting.
        
    


recoll-1.21.5/qtgui/i18n/recoll_xx.qm0000644000175000017500000000002012602163537016625 0ustar  dockesdockes4WL6L@f6D`+QEz"$—9N'H8p*%,*0,+L
o1^:d)GwXG/H6AH6AJ+J+;J6gJ6HWTW%XxKegss*v8&vv*ql0ẂG)RDGnO[E(%0,V>.cXMs<`^5nvj(.NUc4xCz4
LSI:S
p#v7~w54w5:w5>USkֳD6Af3-ͼut
gg*;U Ue}&o.N"7`?d7JUY"sJUY6.YCQ{ʗʗ*:^pLlB<xVA3(;LHUX4# :IInYfEUfIfk.<,#pNX|J
-Z
@zB-3)TxB9TABS?r?)4rk+,2C<.6>@ASâ&Q
8RAǢs~C	z`2+"	>C:HUKy_p
hiT#B KZ	%CQ78[$`X
dCkLFW#>FNn7H:"Wwϗ7n5j*Ót^Ót+Ɇt}U:uu2Q}}y{0[=
7Fec	X~	H+	9Zy=n	K1d	]#%=	r	QY	mV	9M5	ü>u	
c
+<Y
6"@
`P#K
`
cE0T
y\
If
J
C
6~
///gTH
T|c--ht9\MΣ0!y۷1l!'И./#P֙KRV(T#VXy\iCw`F&Di~rAI
8g*
F"
mCqu
yFl
y~+
3
u;J
P
P)
5dt
H
£Cp/.<|F=,G7J"RTb,zc83.93.<^EP4Wu(q6YN˓Y!;IoQ~vY~s-[s2g31 b||y'&
l+Li~tVisos slygosAll clauses	AdvSearchBet kuri slyga
Any clause	AdvSearch
mediamedia	AdvSearchpraneaimasmessage	AdvSearchkitaother	AdvSearchprezentacijospresentation	AdvSearchskai
iuoklsspreadsheet	AdvSearchtekstastext	AdvSearch<----- Visi
<----- All
AdvSearchBase<----- Pas
<----- Sel
AdvSearchBasePridti slyg
Add clause
AdvSearchBase"Iasamesn paieakaAdvanced search
AdvSearchBaseVisi ---->	All ---->
AdvSearchBaseVisi kairje esantys netuati laukai bus sujungiami AND (visi) arba OR (bet kuris) pagalba. <br> "Bet kuris" "Visi" ir "Nei vienas" lauks tipai gali priimti paprasts ~od~is miain/ ir frazes pa~ymtas dvigubomis kabutmis. <br> Tuati laukeliai ignoruojami.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. 
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBaseNaraytiBrowse AdvSearchBase"Pagal kategorijas By categories AdvSearchBase^Pa~ymti, jei norite filtruoti pagal byls tipus,Check this to enable filtering on file types AdvSearchBase~Pa~ymti, jei norite naudoti byls kategorijas vietoje mime tips;Check this to use file categories instead of raw mime types AdvSearchBaseU~darytiClose AdvSearchBaseIatrinti slyg Delete clause AdvSearchBase^.raaykite virautinio lygio direktorij paieakaiEnter top directory for search AdvSearchBase(Ignoruoti byls tipaiIgnored file types AdvSearchBase&Apriboti byls tipusRestrict file types AdvSearchBaseJPateikti rezultatus byloms submedyje:%Restrict results to files in subtree: AdvSearchBase2Iasaugoti kaip numatytj/Save as default AdvSearchBaseJIeakoti <br>dokuments<br>tenkinan is:'Search for
documents
satisfying: AdvSearchBase"Ieakota byls tipsSearched file types AdvSearchBasePas -----> Sel -----> AdvSearchBasePradti paieak Start Search AdvSearchBaseAtaauktiCancel EditTransBaseTNustatymuose nerandama duomens bazs bylos No db directory in configurationMain&Sekantis&NextPreview&Ankstesnis &PreviousPreview&Ieakoti: &Search for:PreviewZNepavyksta pervesti dokumento / vidin busen0Can't turn doc into internal representation for PreviewAtaauktiCancelPreviewIavalytiClearPreview"U~darykite ausel Close TabPreview6Kuriamas per~valgos tekstasCreating preview textPreviewR.keliamas / redaktoris per~valgos tekstas Loading preview text into editorPreview&Atitaikyti &Atvej/  Match &CasePreview:Trkksta pagalbins programos:Missing helper program: PreviewSpausdintiPrintPreviewTextEditBSpausdinti kaip matoma per~ikrojePrint Current PreviewPreviewTextEditRodyti laukus Show fieldsPreviewTextEdit0Rodyti pagrindin/ tekstShow main textPreviewTextEditP<b>Pritaikyti direktorijs<br> submed~iaiCustomised subtreesQObject~<i>Nurodyti parametrai taikomi arba visoms direktorijoms, arba subdirektorijoms,<br> jei kuri js priea tai pa~ymimos. Pridti ir iatrinti direktorijs vardus galite<br> spausdami +/- mygtukus.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject2Sekti simbolines nuorodasFollow symbolic linksQObjectIndeksavimo metu sekti simbolines nuorodas. Numatytasis elgesys yra nesekti, bandant iavengti dvigubo indeksavimoTFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject&Globalks parametraiGlobal parametersQObject6Indeksuoti viss byls vardusIndex all file namesQObjectIndeksuoti byls, kuris turinio nepavyksta perskaityti, vardus. Numatytoji reikam: teisyb}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject$Lokalks parametraiLocal parametersQObject&Paieakos parametraiSearch parametersQObject"Ne/traukti vardai Skipped namesQObjectSubdirektorijs, kuriose dal/ parametrs reikia pakeisti, sraaas.<br> Numatytoji reikam: tua ia.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObject~Byls arba direktorijs, kuris nedera indeksuoti, vards aablonai.LThese are patterns for file or directory names which should not be indexed.QObjectfAtidaryti &Aukatesnio lygio dokumentus/direktorijas&Open Parent document/folderQWidget&Per~ikra&PreviewQWidget&.raayti / byl&Write to FileQWidget,Kopijuoti &Bylos vardCopy &File NameQWidgetKopijuoti &URL Copy &URLQWidget4Rasti &panaaius dokumentusFind &similar documentsQWidgethPer~ikrti &Aukatesnio lygio dokumentus/direktorijasPreview P&arent document/folderQWidget.spjimasWarningRTIToolW(visos kalbos)(all languages)RclMain(no stemming) (no stemming)RclMainApie Recoll About RecollRclMainVisiAllRclMainDNepavyksta sukurti per~ikros langoCan't create preview windowRclMainxNepavyksta perskaityti dokumento arba sukurti laikinos bylos0Cannot extract document or create temporary fileRclMainNepavyksta iagauti ia duomens bazs informacijos apie dokument +Cannot retrieve document info from databaseRclMainU~daromaClosingRclMain$Dokuments istorijaDocument historyRclMainVykdoma: [ Executing: [RclMain$Istorijos duomenys History dataRclMainIndeksuojama:Indexing in progress: RclMain0indeksavimas pertrauktasIndexing interruptedRclMain6Trkksta pagalbinis programsMissing helper programsRclMainNustatymuose nenumatyta jokia iaorin per~ikros programa aiam mime tipui [-No external viewer configured for mime type [RclMain^Randamos visos reikalingos pagalbins programosNo helpers found missingRclMainIavalytiPurgeRclMain(U~klausos rezultatai Query resultsRclMain StemdbStemdbRclMain.Sustabdyti &IndeksavimStop &IndexingRclMainNurodyta per~ikros programa aiam mime tipui %1: %2 nerandama. Ar nortumete iaaaukti nustatyms lang?hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMain8`i paieaka daugiau nevykdoma"This search is not active any moreRclMainNe~inomaUnknownRclMain&Atnaujinti &Indeks Update &IndexRclMain.spjimasWarningRclMainFerror retrieving stemming languages#error retrieving stemming languagesRclMainfiltruotasfilteredRclMain mediamediaRclMainpraneaimasmessageRclMainkitaotherRclMainprezentacijos presentationRclMainsurkaiuotasortedRclMainskai iuokls spreadsheetRclMaintekstastextRclMain&Apie Recoll &About Recoll RclMainBase$&Iasamesn Paieaka&Advanced Search RclMainBase8&Iatrinti dokuments istorij&Erase document history RclMainBase &Byla&File RclMainBase&Pagalba&Help RclMainBase&Nustatymai &Preferences RclMainBase@&Trkkstamos pagalbins programos&Show missing helpers RclMainBase,&Surkaiuoti parametrai&Sort parameters RclMainBase&.rankiai&Tools RclMainBase$&Vartotojo vadovas &User manual RclMainBase"Iasamesn PaieakaAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase$Dokuments IstorijaDocument History RclMainBase&Dokuments &IstorijaDocument &History RclMainBaseI&aeitiE&xit RclMainBase.Iaorinis indekss langasExternal index dialog RclMainBasePirmas puslapis First page RclMainBaseBPereiti / pirm rezultats puslap/Go to first page of results RclMainBase"Sekantis puslapis Next page RclMainBase6Sekantis rezultats puslapisNext page of results RclMainBase0Priea tai buvs puslapis Previous page RclMainBase:Ankstesnis rezultats puslapisPrevious page of results RclMainBase RecollRecoll RclMainBase*Surkaiuoti parametrusSort parameters RclMainBase8Raktinis ~od~is &tyrintojasTerm &explorer RclMainBaseDRaktinis ~od~is tyrinjimo /rankisTerm explorer tool RclMainBase&Atnaujinti &Indeks Update &index RclMainBaseDataDate RecollModelBylos vardas File name RecollModel"(rodyti u~klaus) (show query)ResList><p><b>Nerasta rezultats</b><br>

No results found
ResListX<p><i>Kiti galimi tarimai (be akcents): </i>4

Alternate spellings (accents suppressed): ResList$Dokuments istorijaDocument historyResListDokumentai DocumentsResList KitasNextResListAtidarytiOpenResListPer~ikraPreviewResListAnkstesnisPreviousResList"U~klausos detals Query detailsResList"Rezultats sraaas Result listResList.Neprieinamas dokumentasUnavailable documentResListia bentout of at leastResList,Visi raktiniai ~od~iai All termsSSearch0Bet kuris raktinis ~odisAny termSSearch8Netinkamai pateikta u~klausaBad query stringSSearch ia /veskite paieakos raktinius ~od~ius. .raaykite ESC SPC raaomo termino u~baigimui.FEnter search terms here. Type ESC SPC for completions of current term.SSearchBylos vardas File nameSSearch&Nepakanka atminties Out of memorySSearchU~klauss kalbaQuery languageSSearch4Pasirinkite paieakos tip.Choose search type. SSearchBaseIavalytiClear SSearchBase Ctrl+SCtrl+S SSearchBase ia /veskite paieakos raktinius ~od~ius. .raaykite ESC SPC raaomo termino u~baigimui.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase.Iatrinti paieakos /raaErase search entry SSearchBaseSSearchBase SSearchBase SSearchBaseIeakotiSearch SSearchBase Pradti u~klaus Start query SSearchBaseVisiAll SearchClauseWBylos vardas File name SearchClauseWPapildoms ~od~is skai ius kurie gali interspersed with the chosen onesHNumber of additional words that may be interspersed with the chosen ones SearchClauseW`Pasirinkite u~klausos tip atliekam su ~od~iais>Select the type of query that will be performed with the words SearchClauseW KitasNextSnippetsIeakotiSearch SnippetsW&U~daryti&Close SpellBase&Iaplsti&Expand  SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBase6Raktinis ~od~is tyrinjimas Term Explorer SpellBase2Aspell prapltims klaida.Aspell expansion error. SpellWlAspell iaaaukimas nepavyko. Aspell programa ne/diegta?)Aspell init failed. Aspell not installed?SpellW$Nerasta prapltimsNo expansion foundSpellW RegexpRegexpSpellW Tarimas/FonetikaSpelling/PhoneticSpellWStem expansionStem expansionSpellWRaktinis ~odisTermSpellWWildcards WildcardsSpellWFerror retrieving stemming languages#error retrieving stemming languagesSpellWNaraytiChoose UIPrefsDialogAtrodo, jog pasirinkta direktorija nra Xapian indekso direktorija;The selected directory does not appear to be a Xapian index UIPrefsDialogZPasirinkta direktorija jau yra indekso sraae3The selected directory is already in the index list UIPrefsDialog8Pagrindinis/localus indekas!This is the main/local index! UIPrefsDialogFerror retrieving stemming languages#error retrieving stemming languages UIPrefsDialogU~darytiCloseViewActionBase8Sistemos per~ikros programosNative ViewersViewActionBaseR.raaai bus trinami pasiekus nurodyt dyd/1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWDNepavyksta /raayti nustatyms bylosCan't write configuration fileconfgui::ConfIndexWNaraytiChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLWGlobalusGlobalconfgui::ConfSubPanelWJei vert nurodyta (nelgyi -1) tekstins bylos bus suskaidytos / nurodyto dyd~io bylas, kurios bus atskirai indeksuojamos. Naudinga atliekant paieak labai dideliose tekstinse bylose (pav. log bylose).If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWJDid~iausias suspausts byls dydis (KB)Max. compressed file size (KB)confgui::ConfSubPanelWHIlgiausias filtrs veikimo laikas (S)Max. filter exec. time (S)confgui::ConfSubPanelWLDid~iausias tekstins bylos dydis (MB)Max. text file size (MB)confgui::ConfSubPanelW4Tekstins bylos dydis (KB)Text file page size (KB)confgui::ConfSubPanelWLViraijus pasirinkt suspausts byls dyd/, jie nebus indeksuojami. Pasirinkite -1 jei nenorite nurodyti ribos, 0, jei nenorite, jog suspaustos bylos bkts indeksuojamos.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelWLViraijus pasirinkt tekstinis byls dyd/, jie nebus indeksuojami. Pasirinkite -1 jei nenorite nurodyti ribos, 0, jei nenorite, jog suspaustos bylos bkts indeksuojamos.This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelWAspell kalbaAspell languageconfgui::ConfTopPanelWBDuomens bazs direktorijos vardasDatabase directory nameconfgui::ConfTopPanelW*Nurodo nenaudoti aspell programos kuriant tarimo aproksimacijas raktinis ~od~is tyrinjimo /rankyje.<br>Naudinga, jei aspell neveikia arba ne/diegta.Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelWTIndekso dalis, /raaoms / disk, dydis (MB)Index flush megabytes intervalconfgui::ConfTopPanelW Log bylos vardas Log file nameconfgui::ConfTopPanelW&Log iasamumo lygmuoLog verbosity levelconfgui::ConfTopPanelW\Did~iausia disko atminties naudojimo dalis (%)Max disk occupation (%)confgui::ConfTopPanelW,Aspell nebus naudojamaNo aspell usageconfgui::ConfTopPanelWpDirektorijs, kuris turinys nein-<br>deksuojamas, sraaas Skipped pathsconfgui::ConfTopPanelWNKalbos naudojamos stemming<br> procesuiStemming languagesconfgui::ConfTopPanelWByla, kurioje bus /raaomos ~inuts.<br>Naudokite 'stderr' nordami iavesti / terminalo langPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWvKalbos, kurioms bus sukurti stemming <br>expansion ~odynai.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWDirektorijs, kuriose pradedamas rekursinis indeksavimas, sraaas. Numatytoji: nams direktorija.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWHDirektorijs, kuris turinys nebus indeksuojamas, vardai.<br> Vardo dalis gali bkti wildcards. Turi atitikti programos matomus kelius iki direktorijs (pav. jei indeksuoti pradedama nuo '/home/me', o '/home' yra nuoroda / '/usr/home', teisinga vert bus '/home/me/tmp*', o ne '/usr/home/me/tm*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWVViraijus (procentine iaraiaka) disko atminties panaudojim indeksavimas bus sustabdytas (vengiant pilnai u~pildyti disk).<br>0 reiakia, jog ribos nra (numatytoji vert).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelW4Vert nustato duomens, kurie indeksuojami tarp /raaymo / disk, apimt/.<br>Padeda valdyti indeksavimo dalies atminties naudojim. Numatyta vert yra 10 MBThis value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWVert nustato ~iniu is apimt/, nuo vien tik <br>klaids fiksavimo iki didels apimties duomens skirts debugging.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelWAuka iausio lygmens direktorijos<br>kuriose vykdomas indeksavimasTop directoriesconfgui::ConfTopPanelW&Ataaukti&CanceluiPrefsDialogBase &Gerai&OKuiPrefsDialogBasejPaieaka bus pakeista (pav. rolling stones -> rolling or stones or (rolling phrase 2 stones)). Teikiama aiaki pirmenyb rezultatams kuriuose rasti raktiniai ~od~iai atitinka /vestus.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBaseVisus aktyvuoti Activate AlluiPrefsDialogBasePridti indeks Add indexuiPrefsDialogBase*Pritaikyti pakeitimus Apply changesuiPrefsDialogBasetPradti paprastj paieak /vedus tua io tarpelio simobl/.-Auto-start simple search on whitespace entry.uiPrefsDialogBaseJPridti prie paprastos paieakos fraz+Automatically add phrase to simple searchesuiPrefsDialogBaseNaraytiChooseuiPrefsDialogBase@Pasirinkite redaktoris programasChoose editor applicationsuiPrefsDialogBase"Visus deaktyvuotiDeactivate AlluiPrefsDialogBase*Panaikinti pakeitimusDiscard changesuiPrefsDialogBasevAr sukuriame dirbtin santrauk, jei dokumente jau ji yra? EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseAr pabandome sukurti santraukas remdamiesi u~klauss raktinis ~od~is kontekstu? Didels apimties dokumentams gali ltai veikti.zDo we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents.uiPrefsDialogBase:Dinamiakai sukurti santraukasDynamically build abstractsuiPrefsDialogBase$Iaoriniai indeksaiExternal IndexesuiPrefsDialogBaseHelvetica-10 Helvetica-10uiPrefsDialogBaseFSlpti pasikartojan ius rezultatus.Hide duplicate results.uiPrefsDialogBaseRU~klauss raktinis ~od~is ~ymjimo spalvosHighlight color for query termsuiPrefsDialogBasePa~ymjus, bus rodoma tik viena ia byls su tuo pa iu turiniu, ta iau skirtingais vardais.XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBasevDid~iausia teksto, pa~ymto per~ikrai, apimtis (megabaitai)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseD.raas skai ius rezultats puslapyje"Number of entries in a result pageuiPrefsDialogBaseFPasirinkite rezultats sraao arift-Opens a dialog to select the result list fontuiPrefsDialogBase\Pirmenyb teikti Html formatui per~ikros metu.&Prefer Html to plain text for preview.uiPrefsDialogBaseh.siminti rkaiavimo pasirinkimus (nedings perkrovus).Remember sort activation state.uiPrefsDialogBasetPaaalinti ia sraao. Neturi jokio poveikio indeksui diske.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase&Pa~ymtus paaalintiRemove selecteduiPrefsDialogBaseRPakeisti dokumentuose randamas santraukas Replace abstracts from documentsuiPrefsDialogBase2Gra~inti numatytj formResetuiPrefsDialogBase`Gra~ina numatytj rezultats sraao srifto vert1Resets the result list font to the system defaultuiPrefsDialogBase0Rezultats sraao ariftasResult list fontuiPrefsDialogBase&Paieakos parametraiSearch parametersuiPrefsDialogBaseLPradti nuo iasamesns paieakos lango.'Start with advanced search dialog open.uiPrefsDialogBaseStemming kalbaStemming languageuiPrefsDialogBaseLDirbtins santraukos konteksto ~od~iai Synthetic abstract context wordsuiPrefsDialogBase\Dirbtins santraukos dydis (simbolis skai ius)$Synthetic abstract size (characters)uiPrefsDialogBaseTekstai viraijantys a/ dyd/ nebus nuspalvinami per~ikros metu (per didel apkrova).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBase6.jungti/Iajungti pasirinktToggle selecteduiPrefsDialogBase"Vartotoja aplinkaUser interfaceuiPrefsDialogBase(Vartotojo nustatymaiUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_el.ts0000644000175000017500000044741612602163537016627 0ustar dockesdockes AdvSearch All clauses Όλες οι ρήτρες Any clause Οποιαδήποτε ρήτρα texts κείμενα spreadsheets φύλλα εργασίας presentations παρουσιάσεις media πολυμέσα messages μηνύματα other άλλα Bad multiplier suffix in size filter Κακό επίθεμα πολλαπλασιαστή στο φίλτρο μεγέθους text κείμενο spreadsheet λογιστικό φύλλο presentation παρουσίαση message μήνυμα AdvSearchBase Advanced search Προχωρημένη αναζήτηση Find Αναζήτηση All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. Όλα τα μη κενά πεδία στα δεξιά θα συνδυαστούν με ένα συνδυασμό ΚΑΙ (επιλογή «Όλες οι ρήτρες») ή Ή (επιλογή «Μια από τις ρήτρες»). <br> Τα πεδία του τύπου «Μια από αυτές τις λέξεις», «Όλες οι λέξεις» και «Καμιά από αυτές τις λέξεις» δέχονται ένα ανακάτεμα λέξεων και φράσεων σε εισαγωγικά. <br>Τα κενά πεδία αγνοούνται. Search for <br>documents<br>satisfying: Αναζήτηση <br>εγγράφων<br>που ικανοποιούν: Delete clause Διαγραφή ρήτρας Add clause Προσθήκη ρήτρας Filter Φίλτρο Check this to enable filtering on dates Επιλέξτε αυτό για να ενεργοποιήσετε το φίλτρο στις ημερομηνίες Filter dates Φίλτρο ημερομηνίας From Από To Έως Check this to enable filtering on sizes Επιλέξτε αυτό για να ενεργοποιήσετε το φιλτράρισμα στο μέγεθος αρχείων Filter sizes Φίλτρο μεγέθους Minimum size. You can use k/K,m/M,g/G as multipliers Ελάχιστο μέγεθος: Μπορείτε να χρησιμοποιήσετε τα k/K,m/M,g/G ως πολλαπλασιαστές Min. Size Ελαχ. μέγεθος Maximum size. You can use k/K,m/M,g/G as multipliers Μέγιστο μέγεθος: Μπορείτε να χρησιμοποιήσετε τα k/K,m/M,g/G ως πολλαπλασιαστές Max. Size Μέγ. μέγεθος Check this to enable filtering on file types Ενεργοποιήστε αυτή την επιλογή για να χρησιμοποιηθεί το φιλτράρισμα στους τύπους αρχείων Restrict file types Περιορισμός του τύπου αρχείων Check this to use file categories instead of raw mime types Επιλέξτε το για να χρησιμοποιήσετε τις κατηγορίες αρχείων αντί των τύπων mime By categories Ανά κατηγορία Save as default Αποθήκευση ως προεπιλογή Searched file types Αναζητούμενοι τύποι αρχείων All ----> Όλα ----> Sel -----> Επιλ ----> <----- Sel <----- Επιλ <----- All <----- Όλα Ignored file types Τύποι αρχείων που θα αγνοηθούν Enter top directory for search Εισάγετε τον κατάλογο εκκίνησης της αναζήτησης Browse Περιήγηση Restrict results to files in subtree: Περιορισμός των αποτελεσμάτων στα αρχεία του δέντρου: Invert Αντιστροφή Start Search Εκκίνηση αναζήτησης Close Κλείσιμο CronToolW Cron Dialog Διάλογος Cron <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> προγραμματισμός της περιοδικής ευρετηρίασης (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Κάθε πεδίο μπορεί να περιέχει ένα χαρακτήρα υποκατάστασης (*), μια απλή αριθμητική τιμή, λίστες διαχωρισμένες με κόμα (1,3,5) και εύρη (1-7). Γενικότερα, τα πεδία θα χρησιμοποιηθούν <span style=" font-style:italic;">ως έχουν</span> στο αρχείο crontab, και η γενική σύνταξη crontab μπορεί να χρησιμοποιηθεί, δείτε στη σελίδα του εγχειριδίου crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Για παράδειγμα, εισάγοντας <span style=" font-family:'Courier New,courier';">*</span> στις <span style=" font-style:italic;">Ημέρες, </span><span style=" font-family:'Courier New,courier';">12,19</span> στις <span style=" font-style:italic;">Ώρες</span> και <span style=" font-family:'Courier New,courier';">15</span> στα <span style=" font-style:italic;">Λεπτά</span>, το recollindex θα ξεκινά κάθε μέρα στις 12:15 AM και 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ο προγραμματισμός με πολύ συχνές ενεργοποιήσεις είναι πιθανώς λιγότερο αποτελεσματικός από την ευρετηρίαση σε πραγματικό χρόνο.</p></body></html> Days of week (* or 0-7, 0 or 7 is Sunday) Ημέρες της εβδομάδας (* ή 0-7, 0 ή 7 σημαίνει Κυριακή) Hours (* or 0-23) Ώρες (* ή 0-23) Minutes (0-59) Λεπτά (0-59) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Κάντε κλικ στο <span style=" font-style:italic;">Απενεργοποίηση</span> για να διακόψετε την περιοδική αυτόματη ευρετηρίαση, στο <span style=" font-style:italic;">Ενεργοποίηση</span> για να την ενεργοποιήσετε, και <span style=" font-style:italic;">Ακύρωση</span> για να μην αλλάξει τίποτα.</p></body></html> Enable Ενεργοποίηση Disable Απενεργοποίηση It seems that manually edited entries exist for recollindex, cannot edit crontab Φαίνεται ότι υπάρχουν καταχωρήσεις δημιουργημένες χειροκίνητα για το recollindex. Η επεξεργασία του αρχείου Cron δεν είναι δυνατή Error installing cron entry. Bad syntax in fields ? Σφάλμα κατά την εγκατάσταση της καταχώρησης cron. Κακή σύνταξη των πεδίων; EditDialog Dialog Διάλογος EditTrans Source path Διαδρομή πηγής Local path Τοπική διαδρομή Config error Σφάλμα διαμόρφωσης Original path Αρχική διαδρομή EditTransBase Path Translations Διαδρομή μεταφράσεων Setting path translations for Ορισμός διαδρομής μεταφράσεων για Select one or several file types, then use the controls in the frame below to change how they are processed Επιλέξτε έναν οι περισσότερους τύπους αρχείων, και στη συνέχεια χρησιμοποιήστε τα κουμπιά ελέγχου στο παρακάτω πλαίσιο για να αλλάξετε τον τρόπο επεξεργασίας Add Προσθήκη Delete Διαγραφή Cancel Ακύρωση Save Αποθήκευση FirstIdxDialog First indexing setup Διαμόρφωση της πρώτης δεικτοδότησης <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Φαίνεται ότι το ευρετήριο για αυτήν τη διαμόρφωση δεν υπάρχει ακόμα..</span><br /><br />Αν θέλετε απλά να δεικτοδοτήσετε τον προσωπικό σας κατάλογο με ένα ικανοποιητικό σύνολοy προεπιλογών, πατήστε το κουμπί <span style=" font-style:italic;">«Έναρξη της ευρετηρίασης τώρα»</span>. Μπορείτε να ρυθμίσετε τις λεπτομέρειες αργότερα. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Αν επιθυμείτε περισσότερο έλεγχο, χρησιμοποιήστε τους παρακάτω συνδέσμους για να ρυθμίσετε τη διαμόρφωση της ευρετηρίασης και του προγραμματισμού.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Μπορείτε να έχετε πρόσβαση στα εργαλεία αυτά αργότερα από το μενού <span style=" font-style:italic;">Προτιμήσεις</span>.</p></body></html> Indexing configuration Διαμόρφωση ευρετηρίασης This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. Σας επιτρέπει τη ρύθμιση των καταλόγων που επιθυμείτε να δεικτοδοτήσετε, και άλλων παραμέτρων όπως οι εξαιρούμενες διαδρομές αρχείων ή ονομάτων, των προκαθορισμένων συνόλων χαρακτήρων, κλπ. Indexing schedule Προγραμματισμός ευρετηρίασης This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). Σας επιτρέπει την επιλογή μεταξύ της προγραμματισμένης ευρετηρίασης και αυτής σε πραγματικό χρόνο, και τον καθορισμό του προγραμματισμού για την πρώτη (βασισμένη στο εργαλείο cron). Start indexing now Έναρξη της ευρετηρίασης τώρα FragButs %1 not found. %1: %2 Query Fragments IdxSchedW Index scheduling setup Διαμόρφωση του προγραμματισμού ευρετηρίασης <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Η ευρετηρίαση του <span style=" font-weight:600;">Recoll</span> μπορεί να βρίσκεται μόνιμα σε λειτουργία, επεξεργάζοντας τα αρχεία αμέσως μετά αφού τροποποιηθούν, ή να εκτελείται σε προκαθορισμένες στιγμές. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Μια ανάγνωση του εγχειριδίου μπορεί να σας βοηθήσει να επιλέξετε μεταξύ αυτών των προσεγγίσεων (πατήστε F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Αυτό το εργαλείο μπορεί να σας βοηθήσει να διαμορφώσετε την προγραμματισμένη ευρετηρίαση ή να ορίσετε μια αυτόματη έναρξη της ευρετηρίασης σε πραγματικό χρόνο κατά τη σύνδεσή σας (ή και τα δύο, κάτι που σπάνια χρειάζεται). </p></body></html> Cron scheduling Προγραμματισμός Cron The tool will let you decide at what time indexing should run and will install a crontab entry. Ο διάλογος σας επιτρέπει να προσδιορίσετε την ώρα έναρξης της ευρετηρίασης και θα εισάγει μια καταχώρηση crontab. Real time indexing start up Έναρξη της ευρετηρίασης σε πραγματικό χρόνο Decide if real time indexing will be started when you log in (only for the default index). Προσδιορίστε αν η ευρετηρίαση σε πραγματικό χρόνο θα ξεκινά με τη σύνδεσή σας (μόνο για το προκαθορισμένο ευρετήριο). ListDialog Dialog Διάλογος GroupBox GroupBox Main "history" file is damaged or un(read)writeable, please check or remove it: Το αρχείο ιστορικού δεν είναι αναγνώσιμο, ελέγξτε το ή διαγράψτε το: No db directory in configuration Δεν έχει προσδιοριστεί ο κατάλογος της βάσης δεδομένων στη διαμόρφωση Preview &Search for: &Αναζήτηση για: &Next &Επόμενο &Previous &Προηγούμενο Clear Καθαρισμός Match &Case Διάκριση &πεζών/κεφαλαίων Close Tab Κλείσιμο της καρτέλας Cancel Ακύρωση Cannot create temporary directory: Αδυναμία δημιουργίας του προσωρινού καταλόγου: Missing helper program: Ελλείποντα εξωτερικά προγράμματα φίλτρου: Can't turn doc into internal representation for Αδύνατη η μεταγλώττιση του εγγράφου σε εσωτερική αναπαράσταση για Error while loading file Σφάλμα κατά τη φόρτωση του αρχείου Creating preview text Δημιουργία του κειμένου προεπισκόπησης Loading preview text into editor Φόρτωση του κειμένου προεπισκόπησης στον επεξεργαστή PreviewTextEdit Show fields Εμφάνιση των πεδίων Show image Εμφάνιση της εικόνας Show main text Εμφάνιση του σώματος του κειμένου Select All Επιλογή όλων Copy Αντιγραφή Print Εκτύπωση Fold lines Αναδίπλωση των γραμμών Preserve indentation Διατήρηση της εσοχής Save document to file Αποθήκευση του εγγράφου Print Current Preview Εκτύπωση του παραθύρου προεπισκόπησης QObject Global parameters Καθολικές ρυθμίσεις Local parameters Τοπικές ρυθμίσεις Beagle web history Ιστορικό ιστού Beagle <b>Customised subtrees <b>Κατάλογοι με προσαρμοσμένες ρυθμίσεις The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty. Η λίστα των υποκαταλόγων της ζώνης με ευρετήριο<br>όπου έχουν προκαθοριστεί ορισμένες παράμετροι. Προεπιλογή: κενό. <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons. <i>Οι παράμετροι που ακολουθούν έχουν καθοριστεί είτε καθολικά, αν η επιλογή στην παραπάνω λίστα<br>είναι κενή ή μια κενή γραμμή, είτε για τον επιλεγμένο κατάλογο.<br>Μπορείτε να προσθέσετε και να αφαιρέσετε καταλόγους κάνοντας κλικ στα κουμπιά +/-. Skipped names Αγνοημένα ονόματα These are patterns for file or directory names which should not be indexed. Μοτίβα που καθορίζουν τα αρχεία ή καταλόγους που δεν θα πρέπει να έχουν ευρετήριο. Default character set Προκαθορισμένο σύνολο χαρακτήρων This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Το σύνολο των χαρακτήρων που χρησιμοποιείται για την ανάγνωση των αρχείων στα οποία δεν μπορεί να αναγνωριστεί το σύνολο χαρακτήρων με εσωτερικό τρόπο, για παράδειγμα τα αρχεία απλού κειμένου.<br>Η προκαθορισμένη τιμή είναι κενή, και το πρόγραμμα χρησιμοποιεί αυτή του περιβάλλοντος. Follow symbolic links Ακολούθηση των συμβολικών δεσμών Follow symbolic links while indexing. The default is no, to avoid duplicate indexing Να δημιουργηθεί ευρετήριο για αρχεία και καταλόγους που υποδεικνύονται από συμβολικούς δεσμούς. Η προκαθορισμένη τιμή είναι όχι, για την αποφυγή διπλότυπης ευρετηρίασης Index all file names Ευρετήριο για όλα τα ονόματα αρχείων Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true Ευρετήριο για τα ονόματα των αρχείων των οποίων το περιεχόμενο δεν έχει αναγνωριστεί ή επεξεργαστεί (χωρίς τύπο mime, ή μη υποστηριζόμενος τύπος). Η προκαθορισμένη τιμή είναι αληθές Search parameters Ρυθμίσεις αναζήτησης Web history Ιστορικό ιστού Default<br>character set Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Ignored endings These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing). QWidget Create or choose save directory Choose exactly one directory Could not read directory: Unexpected file name collision, cancelling. Cannot extract document: &Preview &Open Open With Run Script Copy &File Name Copy &URL Αντιγραφή του &URL &Write to File Απο&θήκευση σε Save selection to files Αποθήκευση της επιλογής σε αρχεία Preview P&arent document/folder &Open Parent document/folder Find &similar documents Αναζήτηση παρό&μοιων εγγράφων Open &Snippets window Άνοιγμα του παραθύρου απο&σπασμάτων Show subdocuments / attachments Εμφάνιση των υπο-εγγράφων / συνημμένων RTIToolW Real time indexing automatic start Αυτόματη έναρξη ευρετηρίασης σε πραγμ. χρόνο <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Η ευρετηρίαση του <span style=" font-weight:600;">Recoll</span> μπορεί να έχει ρυθμιστεί να εκτελείται στο παρασκήνιο, ενημερώνωντας το ευρετήριο σταδιακά κατά την τροποποίηση του αρχείου. Επωφελείστε από ένα ευρετήριο πάντα ενημερωμένο, αλλά καταναλόνωνται συνέχεια πόροι του συστήματος (μνήμη και επεξεργαστής).</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> Start indexing daemon with my desktop session. Εκκίνηση του δαίμονα ευρετηρίασης κατά τη σύνδεσή μου. Also start indexing daemon right now. Επίσης να γίνει έναρξη της ευρετηρίασης τώρα. Replacing: Αντικατάσταση του: Replacing file Αντικατάσταση του αρχείου Can't create: Αδυναμία δημιουργίας: Warning Προσοχή Could not execute recollindex Αδυναμία εκτέλεσης του recollindex Deleting: Διαγραφή: Deleting file Διαγραφή του αρχείου Removing autostart Αφαίρεση του autostart Autostart file deleted. Kill current process too ? Το αρχείο autostart διαγράφτηκε. Τερματισμός της διεργασίας σε εξέλιξη; RclMain All Όλα media πολυμέσα message μήνυμα other άλλα presentation παρουσίαση spreadsheet λογιστικό φύλλο text κείμενο sorted ταξινομημένο filtered φιλτραρισμένο (no stemming) (χωρίς επέκταση) (all languages) (όλες οι γλώσσες) error retrieving stemming languages σφάλμα στη λήψη της λίστας των γλωσσών επέκτασης Document category filter Φίλτρο κατηγοριών των εγγράφων Could not open external index. Db not open. Check external indexes list. Αδύνατο το άνοιγμα ενός εξωτερικού ευρετηρίου. Η βάση δεδομένων δεν είναι ανοιχτή. Ελέγξτε τη λίστα των εξωτερικών ευρετηρίων. Indexing in progress: Ευρετηρίαση σε εξέλιξη: None Τίποτα Updating Ενημέρωση Purge Καθαρισμός Stemdb Stemdb Closing Κλείσιμο Done Έγινε Monitor Παρακολούθηση Unknown Άγνωστο Indexing failed Η ευρετηρίαση απέτυχε Stop &Indexing Διακοπή της &ευρετηρίασης Update &Index Ενημέρωση του &ευρετηρίου Warning Προσοχή The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone Η διεργασία ευρετηρίασης σε εξέλιξη δεν ξεκίνησε από αυτή τη διεπαφή. Κάντε κλικ στο Εντάξει για να τη σκοτώσετε όπως και να 'χει, ή στο Ακύρωση για να την αφήσετε ήσυχη Erasing index Διαγραφή του ευρετηρίου Reset the index and start from scratch ? Διαγραφή του ευρετηρίου και επανέναρξη από το μηδέν; Query results Αποτελέσματα της αναζήτησης Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program Αίτημα σε εξέλιξη.<br>Λόγω εσωτερικών περιορισμών,<br>η ακύρωση θα τερματίσει την εκτέλεση του προγράμματος Result count (est.) Αριθμός αποτελεσμάτων (εκτίμ.) No results found Δεν βρέθηκαν αποτελέσματα About Recoll Σχετικά με το Recoll External applications/commands needed and not found for indexing your file types: Απαιτούνται εξωτερικές εφαρμογές/εντολές που δεν βρέθηκαν για την ευρετηρίαση των τύπων των αρχείων σας: No helpers found missing Δεν λείπει καμιά εφαρμογή Missing helper programs Εφαρμογές που λείπουν Error Σφάλμα Index not open Το ευρετήριο δεν είναι ανοιχτό Index query error Σφάλμα στην αναζήτηση στο ευρετήριο Indexed MIME Types Τύποι MIME με ευρετήριο Content has been indexed for these mime types: Το περιεχόμενο έχει δεικτοδοτηθεί για αυτούς τους τύπους MIME: Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. Το ευρετήριο δεν είναι ενημερωμένο για αυτό το αρχείο. Υπάρχει κίνδυνος εμφάνισης μιας εσφαλμένης καταχώρησης. Κάντε κλικ στο Εντάξει για να ενημερώσετε το ευρετήριο για αυτό το αρχείο, και επανεκκινήστε το αίτημα μετά την ολοκλήρωση της ενημέρωσης του ευρετηρίου. Διαφορετικά, κάντε κλικ στο Ακύρωση. Can't create preview window Αδύνατη η δημιουργία του παραθύρου προεπισκόπησης Can't update index: indexer running Αδύνατη η ενημέρωση του ευρετηρίου: μια εργασία ευρετηρίασης βρίσκεται σε εξέλιξη This search is not active any more Η αναζήτηση δεν είναι ενεργή πια Cannot retrieve document info from database Αδύνατη η πρόσβαση στο έγγραφο στη βάση δεδομένων Save file Αποθήκευση του αρχείου Cannot extract document or create temporary file Αδύνατη η εξαγωγή του εγγράφου ή η δημιουργία ενός προσωρινού αρχείου No external viewer configured for mime type [ Κανένας ρυθμισμένος προβολέας για τον τύπο MIME [ Bad viewer command line for %1: [%2] Please check the mimeconf file Κακοδιατυπωμένη εντολή για %1: [%2] Παρακαλώ ελέγξτε το αρχείο mimeconf The viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ? Ο καθορισμένος προβολέας στο mimeview για %1: %2 δεν βρέθηκε. Θέλετε να ξεκινήσετε το διάλογο με τις προτιμήσεις; Can't access file: Αδύνατη η πρόσβαση στο αρχείο: Can't uncompress file: Αδύνατη η αποσυμπίεση του αρχείου: Executing: [ Εκτέλεση του: [ History data Δεδομένα του ιστορικού Document history Ιστορικό των ανοιγμένων εγγράφων Query details Λεπτομέρειες της αναζήτησης Bad viewer command line for %1: [%2] Please check the mimeview file Λανθασμένη γραμμή εντολής για %1: [%2] Παρακαλώ ελέγξτε το αρχείο mimeview Viewer command line for %1 specifies both file and parent file value: unsupported Η γραμμή εντολής για %1 καθορίζει την ίδια στιγμή το αρχείο και τον γονέα του: δεν υποστηρίζεται Cannot find parent document Αδύνατη η εύρεση του γονικού εγγράφου Indexing did not run yet Η δεικτοδότηση δεν έχει εκτελεστή εκόμα External applications/commands needed for your file types and not found, as stored by the last indexing pass in Εξωτερικές εφαρμογές και εντολές απαραίτητες για τους τύπους των εγγράφων σας, και που δεν έχουν βρεθεί, όπως έχουν ταξινομηθεί από την τελευταία δεικτοδότηση που έλαβε χώρα στις Index not up to date for this file. Refusing to risk showing the wrong entry. Η δεικτοδότηση δεν είναι ενημερωμένηη για αυτό το αρχείο. Πιθανός κίνδυνος εμφάνισης μιας λανθασμένης εισαγωγής. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. Κάντε κλικ στο Εντάξει για να ενημερώσετε τη δεικτοδότηση για αυτό το αρχείο, και στη συνέχεια επανεκκινήστε την αναζήτηση όταν θα έχει ολοκληρωθεί η δημιουργία του ευρετηρίου. Διαφορετικά, κλικ στο Ακύρωση. Indexer running so things should improve when it's done Η δημιουργία του ευρετηρίου βρίσκεται σε εξέλιξη, το αρχείο θα ενημερωθεί μετά το πέρας της ενημέρωσης Sub-documents and attachments Υπο-έγγραφα και συνημμένα Document filter Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. The indexer is running so things should improve when it's done. The document belongs to an external indexwhich I can't update. Click Cancel to return to the list. Click Ignore to show the preview anyway. Duplicate documents Διπλότυπα έγγραφα These Urls ( | ipath) share the same content: Αυτά τα URL (| ipath) μοιράζονται το ίδιο περιεχόμενο: Bad desktop app spec for %1: [%2] Please check the desktop file Indexing interrupted RclMainBase Recoll Recoll All Όλα Search tools Εργαλεία αναζήτησης Result list Λίστα αποτελεσμάτων &File &Αρχείο &Tools &Εργαλεία &Preferences &Προτιμήσεις &Help &Βοήθεια E&xit Έ&ξοδος Ctrl+Q Ctrl+Q Update &index Ε&νημέρωση ευρετηρίου &Rebuild index Α&νακατασκευή του ευρετηρίου &Erase document history &Διαγραφή του ιστορικού εγγράφων &Erase search history Δια&γραφή του ιστορικού αναζητήσεων &Show missing helpers Ε&μφάνιση των ελλειπουσών εφαρμογών &Show indexed types Εμ&φάνιση των τύπων με ευρετήριο &About Recoll &Σχετικά με το Recoll &User manual Ε&γχειρίδιο Document &History &Ιστορικό των εγγράφων Document History Ιστορικό των εγγράφων &Advanced Search &Προχωρημένη αναζήτηση Advanced/complex Search Προχωρημένη αναζήτηση &Sort parameters &Ρυθμίσεις ταξινόμησης Sort parameters Ρυθμίσεις ταξινόμησης Term &explorer Ε&ξερευνητής του ευρετηρίου Term explorer tool Εργαλείο εξερεύνησης του ευρετηρίου Next page Επόμενη σελίδα Next page of results Επόμενη σελίδα των αποτελεσμάτων PgDown PgDown First page Πρώτη σελίδα Go to first page of results Μετάβαση στην πρώτη σελίδα αποτελεσμάτων Shift+PgUp Shift+PgUp Previous page Προηγούμενη σελίδα Previous page of results Προηγούμενη σελίδα αποτελεσμάτων PgUp PgUp &Indexing configuration &Διαμόρφωση της ευρετηρίασης &Indexing schedule &Προγραμματισμός της ευρετηρίασης &Query configuration Δια&μόρφωση της αναζήτησης E&xternal index dialog Δια&μόρφωση των εξωτερικών ευρετηρίων External index dialog Εξωτερικά ευρετήρια &Full Screen Π&λήρης οθόνη Full Screen Πλήρης οθόνη F11 F11 sortByDateAsc sortByDateAsc Sort by dates from oldest to newest Ταξινόμηση ανά ημερομηνία από την παλαιότερη στη νεότερη sortByDateDesc sortByDateDesc Sort by dates from newest to oldest Ταξινόμηση ανά ημερομηνία από τη νεότερη στην παλαιότερη Show Query Details Εμφάνιση της αναζήτησης λεπτομερειακά Show results as table Εμφάνιση των αποτελεσμάτων σε πίνακα &Index configuration Διαμόρφωση &Ευρετηρίου &GUI configuration Διαμόρφωση &Περιβάλλοντος &Results Αποτε&λέσματα Sort by date, oldest first Ταξινόμηση ανά ημερομηνία, τα παλαιότερα πρώτα Sort by date, newest first Ταξινόμηση ανά ημερομηνία, τα νεότερα πρώτα Show as table Εμφάνιση ως πίνακας Show results in a spreadsheet-like table Εμφάνιση των αποτελεσμάτων σε έναν πίνακα ως φύλλο εργασίας Save as CSV (spreadsheet) file Αποθήκευση ως αρχείο CVS (φύλλο εργασίας) Saves the result into a file which you can load in a spreadsheet Αποθηκεύει το αποτέλεσμα σε ένα αρχείο το οποίο μπορείτε να φορτώσετε σε ένα φύλλο εργασίας Next Page Επόμενη σελίδα Previous Page Προηγούμενη σελίδα First Page Πρώτη σελίδα Query Fragments With failed files retrying Next update will retry previously failed files RclTrayIcon Restore Quit RecollModel Abstract Απόσπασμα Author Συγγραφέας Document size Μέγεθος εγγράφου Document date Ημερομηνία εγγράφου File size Μέγεθος αρχείου File name Όνομα αρχείου File date Ημερομηνία αρχείου Ipath Ipath Keywords Λέξεις κλειδιά MIME type Τύπος MIME Original character set Αρχικό σύνολο χαρακτήρων Relevancy rating Εγγύτητα Title Τίτλος URL URL Mtime Mtime Date Ημερομηνία Date and time Ημερομηνία και ώρα ResList <p><b>No results found</b><br> <p><b>Κανένα αποτέλεσμα</b><br> Documents Έγγραφα out of at least από τουλάχιστον for για Previous Προηγούμενο Next Επόμενο Unavailable document Μη διαθέσιμο έγγραφο Preview Προεπισκόπηση Open Άνοιγμα (show query) (αίτημα) <p><i>Alternate spellings (accents suppressed): </i> <p><i>Προτεινόμενη ορθογραφία (χωρίς τόνους): </i> Document history Ιστορικό των ανοιγμένων εγγράφων Result list Λίστα αποτελεσμάτων &Preview &Προεπισκόπηση &Open &Άνοιγμα Copy &File Name Αντιγραφή του ονόματος του &αρχείου Copy &URL Αντιγραφή του &URL &Write to File Απο&θήκευση σε Find &similar documents Αναζήτηση παρό&μοιων εγγράφων Preview P&arent document/folder Προεπισκόπηση του &γονικού εγγράφου/φακέλου &Open Parent document/folder Άνοιγμα του &γονικού εγγράφου/φακέλου <p><i>Alternate spellings: </i> <p><i>Εναλλακτικά λεξικά: </i> Duplicate documents Διπλότυπα έγγραφα These Urls ( | ipath) share the same content: Αυτά τα URL (| ipath) μοιράζονται το ίδιο περιεχόμενο: Result count (est.) Αριθμός αποτελεσμάτων (εκτίμ.) Query details Λεπτομέρειες της αναζήτησης Snippets Αποσπάσματα ResTable Save table to CSV file Αποθήκευση σε ένα αρχείο CSV Can't open/create file: Αδύνατο το άνοιγμα/δημιουργία του αρχείου: &Preview Π&ροεπισκόπηση &Open Ά&νοιγμα Copy &File Name Αντιγραφή του &ονόματος του αρχείου Copy &URL Αντιγραφή του &URL &Write to File Απο&θήκευση σε Find &similar documents Αναζήτηση παρό&μοιων εγγράφων Preview P&arent document/folder Προεπισκόπηση του &γονικού εγγράφου &Open Parent document/folder Άνοιγμα του &γονικού εγγράφου/φακέλου &Reset sort &Επαναφορά της ταξινόμησης &Save as CSV &Αποθήκευση ως CSV &Delete column &Αφαίρεση της στήλης Add "%1" column Προσθήκη μιας στήλης «%1» ResTableDetailArea &Preview &Προεπισκόπηση &Open &Άνοιγμα Copy &File Name Αντιγραφή του ονόματος του &αρχείου Copy &URL Αντιγραφή του &URL &Write to File Απο&θήκευση σε Find &similar documents Αναζήτηση παρό&μοιων εγγράφων Preview P&arent document/folder Προεπισκόπηση του &γονικού εγγράφου/φακέλου &Open Parent document/folder Άνοιγμα του &γονικού εγγράφου/φακέλου ResultPopup &Preview &Προεπισκόπηση &Open Ά&νοιγμα Copy &File Name Αντιγραφή ο&νόματος αρχείου Copy &URL Αντιγραφή του &URL &Write to File Απο&θήκευση σε Save selection to files Αποθήκευση της επιλογής σε αρχεία Preview P&arent document/folder Προεπισκόπηση του &γονικού εγγράφου/αρχείου &Open Parent document/folder Άνοιγμα του γο&νικού εγγράφου/φακέλου Find &similar documents Αναζήτηση παρό&μοιων εγγράφων Open &Snippets window Άνοιγμα του παραθύρου απο&σπασμάτων Show subdocuments / attachments Εμφάνιση των υπο-εγγράφων / συνημμένων SSearch Any term Οποιοσδήποτε όρος All terms Όλοι οι όροι File name Όνομα αρχείου Query language Γλώσσα ερωτημάτων Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> No actual parentheses allowed.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. Εισάγετε μια έκφραση γλώσσας ερωτήματος. Σκονάκι:<br> <i>term1 term2</i> : 'term1' ΚΑΙ 'term2' σε οποιοδήποτε πεδίο.<br> <i>field:term1</i> : 'term1' αναζήτηση στο πεδίο 'field'.<br> Πρότυπα ονόματα/συνώνυμα πεδίων (χρήση αγγλικών λέξεων):<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date.<br> Παράδειγμα διαστημάτων ημερομηνιών: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> ΜΗΝ βάλετε τις παρενθέσεις.<br> <i>"term1 term2"</i> : ακριβής πρόταση. Επιλογές:<br> <i>"term1 term2"p</i> : εγγύτητα (χωρίς σειρά).<br> Χρησιμοποιήστε το δεσμό <b>Λεπτομερειακή εμφάνιση του ερωτήματος</b> σε περίπτωση που υπάρχει αμφιβολία στα αποτελέσματα και δείτε το εγχείρίδιο (στα αγγλικά) (&lt;F1>) για περισσότερες λεπτομέρειες. Enter file name wildcard expression. Εισάγετε ένα όνομα αρχείου (επιτρέπονται και σύμβολα υποκατάστασης). Enter search terms here. Type ESC SPC for completions of current term. Εισάγετε εδώ τους όρους της αναζήτησης. Πατήστε ESC SPC για να εμφανίσετε τις λέξεις που αρχίζουν με τον τρέχοντα όρο. Bad query string Μη αναγνωρισμένο ερώτημα Out of memory Δεν υπάρχει διαθέσιμη μνήμη Too many completions Πολλές πιθανές συμπληρώσεις Completions Συμπληρώσεις Select an item: Επιλέξτε ένα αντικείμενο: Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. SSearchBase SSearchBase SSearchBase Erase search entry Καθαρισμός της καταχώρησης Clear Καθαρισμός Ctrl+S Ctrl+S Start query Έναρξη της αναζήτησης Search Αναζήτηση Choose search type. Επιλογή του τύπου αναζήτησης. Enter search terms here. Type ESC SPC for completions of current term. Εισάγετε εδώ τους όρους αναζήτησης. Πατήστε ESC SPC για να εμφανίσετε τις λέξεις που αρχίζουν από τον τρέχοντα όρο. SearchClauseW Any Οποιοδήποτε All Όλα None Κανένα Phrase Φράση Proximity Εγγύτητα File name Όνομα του αρχείου No field Χωρίς πεδίο Select the type of query that will be performed with the words Επιλέξτε τον τύπο του ερωτήματος που θα πραγματοποιηθεί με τις λέξεις Number of additional words that may be interspersed with the chosen ones Αριθμός των επιπρόσθετων λέξεων που μπορούν να βρεθούν μεταξύ των αναζητηθέντων όρων Snippets Snippets Αποσπάσματα Find: Εύρεση: Next Επόμενο Prev Προηγούμενο SnippetsW Search Αναζήτηση <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p> SpellBase Term Explorer Εξερευνητής όρων &Expand &Ανάπτυξη Alt+E Alt+E &Close &Κλείσιμο Alt+C Alt+C No db info. Δεν υπάρχουν πληροφορίες για τη βάση δεδομένων. Match Ταίριασμα Case Πεζά/κεφαλαία Accents Τόνοι SpellW Wildcards Χαρακτήρες υποκατάστασης Regexp Κανονική έκφραση Stem expansion Γραμματική επέκταση Spelling/Phonetic Ορθογραφία/Φωνητικό error retrieving stemming languages σφάλμα κατά τη λήψη των γλωσσών επέκτασης Term Όρος Doc. / Tot. Doc. / Tot. Index: %1 documents, average length %2 terms Ευρετήριο: %1 έγγραφα, μέσο μήκος %2 όροι Aspell init failed. Aspell not installed? Σφάλμα στην αρχικοποίηση του aspell. Μήπως δεν είναι εγκατεστημένο; Aspell expansion error. Σφάλμα επέκτασης του aspell. No expansion found Κανένα αποτέλεσμα Index: %1 documents, average length %2 terms.%3 results Ευρετήριο: %1 έγγραφα, μέσο μήκος %2 όροι.%3 αποτελέσματα %1 results %1 αποτελέσματα List was truncated alphabetically, some frequent Η λίστα έχει κοπεί αλφαβητικά, μερικοί συχνοί terms may be missing. Try using a longer root. όροι μπορεί να λείπουν. Προσπαθήστε να χρησιμοποιήσετε μια πιο μακριά ρίζα. Show index statistics Εμφάνιση στατιστικών του ευρετηρίου Number of documents Αριθμός εγγράφων Average terms per document Μέσος όρος όρων ανά έγγραφο Smallest document length Μικρότερο μήκος εγγράφου Longest document length Μεγαλύτερο μήκος εγγράφου Database directory size Μέγεθος καταλόγου βάσης δεδομένων MIME types: Τύποι MIME: Item Αντικείμενο Value Τιμή UIPrefsDialog Choose Επιλέξτε error retrieving stemming languages σφάλμα κατά τη λήψη των γλωσσών επέκτασης Select xapian index directory (ie: /home/buddy/.recoll/xapiandb) Επιλέξτε έναν κατάλογο που περιέχει ένα ευρετήριο Xapian (π.χ. /home/buddy/.recoll/xapiandb) The selected directory does not appear to be a Xapian index Ο επιλεγμένος κατάλογος δεν φαίνεται ότι είναι ένα ευρετήριο Xapian This is the main/local index! Αυτό είναι το κύριο ευρετήριο! The selected directory is already in the index list Ο επιλεγμένος κατάλογος βρίσκεται ήδη στη λίστα Result list paragraph format (erase all to reset to default) Μορφή λίστας παραγράφου αποτελεσμάτων (διαγραφή όλων για επαναφορά στην εξ' ορισμού) Result list header (default is empty) Επικεφαλίδα λίστας αποτελεσμάτων (η εξ' ορισμού είναι κενή) Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) Επιλέξτε τον κατάλογο διαμόρφωσης του recoll ή του καταλόγου ευρετηρίου του xapian (π.χ.: /home/me/.recoll ή /home/me/.recoll/xapiandb) The selected directory looks like a Recoll configuration directory but the configuration could not be read Ο επιλεγμένος κατάλογος φαίνεται ως ένας κατάλογος διαμόρφωσης του Recoll αλλά δεν είναι δυνατή η ανάγνωση της διαμόρφωσης At most one index should be selected Ένα περισσότερο ευρετήριο θα πρέπει να επιλεχθεί Cant add index with different case/diacritics stripping option Αδύνατη η προσθήκη ευρετηρίου με διαφορετικές επιλογές διάκρισης πεζών / κεφαλαίων και αποσπασμάτων Default QtWebkit font ViewAction MIME type Τύπος MIME Command Εντολή Changing actions with different current values Αλλαγή των ενεργειών με διαφορετικές τρέχουσες τιμές Desktop Default Προκαθορισμένο Επιφάνειας εργασίας Changing entries with different current values Αλλαγή αντικειμένων με τρέχουσες τιμές διαφορετικές ViewActionBase Native Viewers Εφαρμογές απεικόνισης Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults. Επιλέξτε έναν ή περισσότερους τύπους MIME και κάντε κλικ στο «Αλλαγή της ενέργειας»<br>Μπορείτε επίσης να κλείσετε το διάλογο και να επιλέξετε «Χρήση των προτιμήσεων του περιβάλλοντος εργασίας»<br>στο κύριο παράθυρο για να αγνοήσετε αυτή τη λίστα. Select one or several file types, then click Change Action to modify the program used to open them Επιλέξτε έναν ή περισσότερους τύπους αρχείων και κάντε κλικ στο «Αλλαγή» για να αλλάξετε το πρόγραμμα που χρησιμοποιείται για το άνοιγμά τους Change Action Αλλαγή Close Κλείσιμο Select one or several mime types then use the controls in the bottom frame to change how they are processed. Επιλέξτε έναν οι περισσότερους τύπους αρχείων, και στη συνέχεια χρησιμοποιήστε τα κουμπιά ελέγχου στο πλαίσιο στο κάτω μέρος για να αλλάξετε τον τρόπο επεξεργασίας. Use Desktop preferences by default Χρήση εξ' ορισμού των προτιμήσεων της Επιφάνειας εργασίας Select one or several file types, then use the controls in the frame below to change how they are processed Επιλέξτε έναν οι περισσότερους τύπους αρχείων, και στη συνέχεια χρησιμοποιήστε τα κουμπιά ελέγχου στο παρακάτω πλαίσιο για να αλλάξετε τον τρόπο επεξεργασίας Exception to Desktop preferences Εξαίρεση των προτιμήσεων Επιφάνειας εργασίας Action (empty -> recoll default) Ενέργεια (κενό -> προκαθορισμένη του recoll) Apply to current selection Εφαρμογή στην τρέχουσα επιλογή Recoll action: Ενέργεια Recoll: current value τρέχουσα τιμή Select same Επιλογή ανά τιμή <b>New Values:</b> <b>Νέες τιμές:</b> confgui::ConfBeaglePanelW Steal Beagle indexing queue Κλέψιμο της ουράς ευρετηρίασης του Beagle Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin) Το Beagle ΔΕΝ ΠΡΕΠΕΙ να εκτελείται. Επιτρέπει την επεξεργασία της ουράς του Beagle για ευρετηρίαση του ιστορικού των ιστοσελίδων του Firefox.<br>(θα πρέπει επίσης να εγκαταστήσετε το πρόσθετο του Beagle για το Firefox) Web page store directory name Όνομα καταλόγου αποθήκευσης ιστοσελίδων The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory. Το όνομα του καταλόγου αποθήκευσης αντιγράφων των επισκεφθέντων ιστοσελίδων.<br>Μια σχετική διαδρομή αναφερόμενη στη διαδρομή διαμόρφωσης. Max. size for the web store (MB) Μέγ. μέγεθος της λανθάνουσας μνήμης ιστού (MB) Entries will be recycled once the size is reached Θα γίνεται αντικατάσταση των καταχωρήσεων όταν επιτευχθεί το καθορισμένο μέγεθος Process the WEB history queue Επεξεργασία της ουράς ιστορικού του Ιστού Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin) Ενεργοποιεί τη δεικτοδότηση των επισκεπτόμενων σελίδων στον Firefox.<br>(θα πρέπει να εγκαταστήσετε και το πρόσθετο Firefox Recoll) confgui::ConfIndexW Can't write configuration file Αδύνατη η εγγραφή του αρχείου διαμόρφωσης confgui::ConfParamFNW Choose Επιλέξτε confgui::ConfParamSLW + + - - confgui::ConfSearchPanelW Automatic diacritics sensitivity Αυτόματη ευαισθησία στους τόνους <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity. <p>Αυτόματη εναλλαγή ευαισθησίας τονισμού αν ο όρος αναζήτησης διαθέτει τονισμένους χαρακτήρες (εκτός αυτών του unac_except_trans). Διαφορετικά θα πρέπει να χρησιμοποιήσετε τη γλώσσα της αναζήτησης και τον τροποποιητή <i>D</i> για τον καθορισμό της ευαισθησίας τονισμών. Automatic character case sensitivity Αυτόματη ευαισθησία πεζών/κεφαλαίων <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity. <p>Αυτόματη εναλλαγή ευαισθησίας διάκρισης πεζών/κεφαλαίων αν η ο όρος αναζήτησης διαθέτει κεφαλαία γράμματα (εκτός του πρώτου γράμματος). Διαφορετικά θα πρέπει να χρησιμοποιήσετε τη γλώσσα της αναζήτησης και τον τροποποιητή <i>C</i> για τον καθορισμό της ευαισθησίας διάκρισης πεζών / κεφαλαίων. Maximum term expansion count Μέγιστο μέγεθος επέκτασης ενός όρου <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. <p>Μέγιστος αριθμός επέκτασης για έναν όρο (π.χ.: κατά τη χρήση χαρακτήρων υποκατάστασης). Η προκαθορισμένη τιμή 10000 είναι λογική και θα αποφύγει ερωτήματα που εμφανίζονται σαν παγωμένα την ίδια στιγμή που η μηχανή διαπερνά τη λίστα όρων. Maximum Xapian clauses count Μέγιστος αριθμός ρητρών Xapian <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. <p>Μέγιστος αριθμός στοιχειωδών ρητρών που προσθέτουμε σε ένα απλό ερώτημα Xapian. Σε μερικές περιπτώσεις, το αποτέλεσμα της επέκτασης των όρων μπορεί να είναι πολλαπλασιαστικό, και θα χρησιμοποιούσε υπερβολική μνήμη. Η προκαθορισμένη τιμή 100000 θα πρέπει να είναι επαρκής και συμβατή με μια τυπική διαμόρφωση υλικού. confgui::ConfSubPanelW Max. compressed file size (KB) Μεγ.μέγεθος για τα συμπιεσμένα αρχεία (KB) This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever. Αυτή η τιμή καθορίζει ένα όριο πέραν του οποίου τα συμπιεσμένα αρχεία δεν θα επεξεργάζονται. Χρησιμοποιήστε -1 για κανένα όριο, 0 για να μην επεξεργάζονται τα συμπιεσμένα αρχεία. Max. text file size (MB) Μεγ. μέγεθος αρχείων κειμένου (MB) This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index. Αυτή η τιμή ορίζει ένα όριο πέραν του οποίου δεν θα γίνεται ευρετηρίαση για τα αρχεία κειμένου. Ορίστε -1 για κανένα όριο. Αυτό χρησιμεύει για τον αποκλεισμό από την ευρετηρίαση τεράστιων αρχείων καταγραφών. Text file page size (KB) Μέγεθος κοπής για τα αρχεία κειμένου (KB) If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files). Αν αυτή η τιμή έχει οριστεί και είναι θετική, τα αρχεία κειμένου θα κοπούν σε κομμάτια αυτού του μεγέθους για την ευρετηρίαση. Αυτό βοηθά στη μείωση των καταναλωμένων πόρων από την ευρετηρίαση και βοηθά τη φόρτωση για την προεπισκόπηση. Max. filter exec. time (S) Μεγ. χρόνος εκτέλεσης για ένα φίλτρο (S) External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit. Τα εξωτερικά φίλτρα σε λειτουργία μεγαλύτερη από αυτό θα διακόπτονται. Χρήσιμο για τη σπάνια περίπτωση (π.χ. postscript) όπου ένα έγγραφο μπορεί να προκαλέσει ένα βρόγχο στο φίλτρο. ορίστε το σε -1 για να αφαιρέσετε το όριο. Global Γενικά External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. Τα εξωτερικά φίλτρα σε λειτουργία μεγαλύτερη από αυτό θα διακόπτονται. Χρήσιμο για τη σπάνια περίπτωση (π.χ. postscript) όπου ένα έγγραφο μπορεί να προκαλέσει ένα βρόγχο στο φίλτρο. Ορίστε το σε -1 για να αφαιρέσετε το όριο. Only mime types An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive Exclude mime types Mime types not to be indexed confgui::ConfTopPanelW Top directories Κατάλογοι εκκίνησης The list of directories where recursive indexing starts. Default: your home. Η λίστα των καταλόγων για την έναρξη της αναδρομικής ευρετηρίασης. Προεπιλογή: ο προσωπικός σας κατάλογος. Skipped paths Παραλειπόμενες διαδρομές These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*') Πρόκειται για ονόματα καταλόγων που δεν θα δεικτοδοτηθούν.<br>Μπορούν να περιέχουν χαρακτήρες υποκατάστασης. Οι διαδρομές πρέπει να αντιστοιχούν με αυτές που είδε ο δεικτοδότης (π.χ: αν ένας κατάλογος έναρξης είναι '/home/me' και το '/home' είναι ένας δεσμός στο '/usr/home', μια σωστή διαδρομή εδώ θα ήταν '/home/me/tmp*' , όχι '/usr/home/me/tmp*') Stemming languages Γλώσσα για την επέκταση των όρων The languages for which stemming expansion<br>dictionaries will be built. Οι γλώσσες για τις οποίες θα δημιουργηθούν τα λεξικά επεκτάσεων<br>των όρων. Log file name Όνομα του αρχείου καταγραφών The file where the messages will be written.<br>Use 'stderr' for terminal output Το αρχείο που θα εγγραφούν τα μηνύματα.<br>Χρησιμοποιήστε 'stderr' για την έξοδο τερματικού Log verbosity level Επίπεδο ανάλυσης των καταγραφών This value adjusts the amount of messages,<br>from only errors to a lot of debugging data. Αυτή η τιμή ρυθμίζει την ποσότητα των απεσταλμένων μηνυμάτων,<br>από μόνο τα σφάλματα μέχρι πολλά δεδομένα αποσφαλμάτωσης. Index flush megabytes interval Καθυστέρηση εγγραφής του ευρετηρίου σε megabyte This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB Αυτή η τιμή ρυθμίζει την ποσότητα των δεδομένων που δεικτοδοτούνται μεταξύ των εγγραφών στο δίσκο.<br>Βοηθά στον έλεγχο χρήσης της μνήμης. Προεπιλογή: 10MB Max disk occupation (%) Μεγ. χρήση του δίσκου (%) This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default). Το ποσοστό χρήσης του δίσκου που θα σταματήσει η ευρετηρίαση (για να αποφευχθεί η υπερβολική πλήρωση).<br>0 σημαίνει χωρίς όριο (προεπιλογή). Use system's 'file' command Χρήση της εντολής 'file' του συστήματος Use the system's 'file' command if internal<br>mime type identification fails. Χρήση της εντολής 'file' αν ο εσωτερικός εντοπισμός<br>του τύπου mime δεν επιφέρει αποτελέσματα. No aspell usage Χωρίς χρήση του aspell Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. Απενεργοποιεί τη χρήση του aspell για τη δημιουργία των ορθογραφικών προσεγγίσεων.<br>Χρήσιμο αν το aspell δεν είναι εγκατεστημένο ή δεν λειτουργεί. Aspell language Γλώσσα του aspell The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. Η γλώσσα του λεξικού του aspell. Μια σωστή τιμή μοιάζει με 'en' ή 'el'...<br>Αν αυτή η τιμή δεν έχει οριστεί, θα χρησιμοποιηθεί το περιβάλλον για τον υπολογισμό της, κάτι που συνήθως δουλεύει καλά. Για να πάρετε μια ιδέα για το τι είναι εγκατεστημένο στο σύστημά σας, πληκτρολογήστε 'aspell config' και αναζητήστε τα αρχεία .dat μέσα στον κατάλογο 'data-dir'. Database directory name Κατάλογος αποθήκευσης του ευρετηρίου The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Το όνομα του καταλόγου αποθήκευσης του ευρετηρίου.<br>Μια σχετική διαδρομή αναφερόμενη στη διαδρομή διαμόρφωσης. Η προεπιλογή είναι 'xapiandb'. The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. Η γλώσσα για το λεξικό aspell. Αυτό θα πρέπει να είναι του τύπου «en» ή «el» ...<br> Αν αυτή η τιμή δεν οριστεί, χρησιμοποιείται το εθνικό περιβάλλον NLS για να την υπολογίσει, που συνήθως δουλεύει. Για να πάρετε μια ιδέα του τι είναι εγκατεστημένο στο σύστημά σας, πληκτρολογήστε «aspell config» και παρατηρήστε τα αρχεία .dat στον κατάλογο «data-dir». The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Το όνομα του καταλόγου αποθήκευσης του ευρετηρίου<br>Μια σχετική διαδρομή αναφερόμενη στη διαδρομή διαμόρφωσης. Η εξ' ορισμού είναι «xapiandb». Unac exceptions Εξαιρέσεις unac <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation. <p>Αυτές είναι εξαιρέσεις για τον μηχανισμό unac, ο οποίος εξ' ορισμού, αφαιρεί όλους τους τονισμούς, και πραγματοποιεί κανονική αποσύνθεση. Μπορείτε να αναιρέσετε την αφαίρεση των τονισμών για ορισμένους χαρακτήρες, ανάλογα με τη γλώσσα σας, και διευκρινίστε άλλους αποσυνθέσεις, για παράδειγμα συμπλεγμένους χαρακτήρες. Στη λίστα διαχωρισμένη με κενά, ο πρώτος χαρακτήρας ενός αντικειμένου είναι η πηγή, το υπόλοιπο είναι η μετάφραση. uiPrefsDialogBase User preferences Προτιμήσεις χρήστη User interface Περιβάλλον χρήστη Highlight color for query terms Χρώμα τονισμού των όρων αναζήτησης Style sheet Φύλλο στυλ Opens a dialog to select the style sheet file Ανοίγει έναν διάλογο για την επιλογή ενός αρχείου φύλλου στυλ Choose Επιλογή Resets the style sheet to default Επαναφέρει την προκαθορισμένη τιμή για το φύλλο στυλ Reset Επαναφορά Texts over this size will not be highlighted in preview (too slow). Τα κείμενα μεγαλύτερα από αυτό το μέγεθος δεν θα τονιστούν στην προεπισκόπηση (πολύ αργό). Maximum text size highlighted for preview (megabytes) Μεγ. μέγεθος τονισμένων κειμένων προς προεπισκόπηση (MB) Prefer Html to plain text for preview. Χρήση της μορφής HTML για την προεπισκόπηση. Lines in PRE text are not folded. Using BR loses some indentation. Οι γραμμές στις ενότητες PRE δεν δικαιολογούνται. Χρησιμοποιώντας BR χάνονται μερικές εσοχές. Use <PRE> tags instead of <BR>to display plain text as html in preview. Χρήση <PRE> αντί <BR> για απλό κείμενο αντί html στην προεπισκόπηση. Use desktop preferences to choose document editor. Χρήση ρυθμίσεων του περιβάλλοντος για την επιλογή της εφαρμογής προβολής. Choose editor applications Επιλέξτε τους επεξεργαστές για τους διάφορους τύπους αρχείων Display category filter as toolbar instead of button panel (needs restart). Εμφάνιση φίλτρ. κατηγορίας ως γρ. εργαλείων αντί για πίν. κουμπιών (απαιτεί επανεκκίνηση). Auto-start simple search on whitespace entry. Αυτόματη έναρξη μιας απλής αναζήτησης όταν εισαχθεί ένα κενό. Start with advanced search dialog open. Εκκίνηση με τον διάλογο της προχωρημένης αναζήτησης ανοιχτό. Remember sort activation state. Απομνημόνευση της κατάστασης ενεργοποίησης της ταξινόμησης. Result List Λίστα αποτελεσμάτων Number of entries in a result page Αριθμός αποτελεσμάτων ανά σελίδα Result list font Γραμματοσειρά λίστας Opens a dialog to select the result list font Ανοίγει έναν διάλογο για την επιλογή της γραμματοσειράς για τη λίστα αποτελεσμάτων Helvetica-10 Helvetica-10 Resets the result list font to the system default Επαναφέρει τη γραμματοσειρά της λίστας αποτελεσμάτων στην προκαθορισμένη του συστήματος Edit result paragraph format string Επεξεργασία της μορφής της παραγράφου αποτελεσμάτων Edit result page html header insert Επεξεργασία του τμήματος για εισαγωγή στην κεφαλίδα HTML Date format (strftime(3)) Μορφή της ημερομηνίας (strftime(3)) Abstract snippet separator Διαχωριστής αποσπάσματος Search parameters Ρυθμίσεις αναζήτησης If checked, results with the same content under different names will only be shown once. Εμφανίζει μια μόνο καταχώρηση για τα αποτελέσματα με πανομοιότυπο περιεχόμενο. Hide duplicate results. Απόκρυψη των διπλοεγγραφών. Stemming language Γλώσσα για την ανάπτυξη των όρων A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. Μια αναζήτηση για [χωριάτικη σαλάτα] (2 όροι) θα συμπληρωθεί ως [χωριάτικη Ή σαλάτα Ή (χωριάτικη ΦΡΑΣΗ 2 σαλάτα)].<br> Αυτό θα πρέπει να αποδώσει μια καλύτερη εγγύτητα των αποτελεσμάτων όπου οι αναζητούμενοι όροι εμφανίζονται ακριβώς με τη σειρά. Automatically add phrase to simple searches Προσθήκη αυτόματα μιας φράσης στις απλές αναζητήσεις Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). Όριο συχνότητας (ποσοστό) πέραν του οποίου οι όροι δεν θα χρησιμοποιούνται. Οι φράσεις που περιέχουν πολύ συχνούς όρους δημιουργούν προβλήματα στην απόδοση. Οι αγνοημένοι όροι αυξάνουν την απόσταση της φράσης, και μειώνουν την αποτελεσματικότητα της λειτουργίας αναζήτησης αυτόματης φράσης. Η προκαθορισμένη τιμή είναι 2%. Autophrase term frequency threshold percentage Όριο συχνότητας του όρου (ποσοστό) για την αυτόματη δημιουργία φράσεων Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Αποφασίζει αν θα δημιουργούνται αποσπάσματα από το περιεχόμενο των όρων αναζήτησης. Μπορεί να επιβραδύνει την απεικόνιση αν τα έγγραφα είναι μεγάλα. Dynamically build abstracts Δυναμική δημιουργία των αποσπασμάτων Do we synthetize an abstract even if the document seemed to have one? Θα πρέπει να γίνεται σύνθεση μιας σύνοψης ακόμα και αν το αρχικό έγγραφο διαθέτει μια; Replace abstracts from documents Αντικατάσταση των υπαρχόντων αποσπασμάτων στα έγγραφα Synthetic abstract size (characters) Μέγεθος του συνθετικού αποσπάσματος (χαρακτήρες) Synthetic abstract context words Αριθμός σχετικών λέξεων ανά εμφάνιση του όρου στο απόσπασμα The words in the list will be automatically turned to ext:xxx clauses in the query language entry. Οι λέξεις στη λίστα θα αλλάξουν αυτόματα σε ρήτρες ext:xxx στις καταχωρήσεις σε γλώσσα ερωτημάτων. Query language magic file name suffixes. Αυτόματα επιθήματα για τη γλώσσα ερωτημάτων. Enable Ενεργό External Indexes Εξωτερικά ευρετήρια Toggle selected Αλλαγή κατάστασης επιλεγμένων Activate All Ενεργοποίηση όλων Deactivate All Απενεργοποίηση όλων Remove from list. This has no effect on the disk index. Αφαίρεση από τη λίστα. Δεν έχει επίπτωση στο αποθηκευμένο ευρετήριο. Remove selected Αφαίρεση των επιλεγμένων Click to add another index directory to the list Κάντε κλικ για να προσθέσετε ένα άλλο ευρετήριο στη λίστα Add index Προσθήκη ευρετηρίου Apply changes Εφαρμογή των αλλαγών &OK &Εντάξει Discard changes Απόρριψη των αλλαγών &Cancel &Ακύρωση Plain text to HTML line style Στυλ μετάφρασης απλό κείμενο σε HTML Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. Οι γραμμές που είναι έγκλειστες στα PRE δεν αναδιπλώνονται. Η χρήση BR οδηγεί σε απώλεια ορισμένων εσοχών. Το στυλ PRE + αναδίπλωση φαίνεται να είναι η καλύτερη επιλογή αλλά η σωστή του λειτουργία εξαρτάται από την έκδοση της Qt. <BR> <BR> <PRE> <PRE> <PRE> + wrap <PRE> + αναδίπλωση Disable Qt autocompletion in search entry. Απενεργοποίηση της αυτόματης συμπλήρωσης Qt στην εισαγωγή αναζήτησης. Search as you type. Αναζήτηση κατά την πληκτρολόγηση. Paths translations Διαδρομές μεταφράσεων Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. Κάντε κλικ για να προσθέσετε έναν κατάλογο ευρετηρίου στη λίστα. Μπορείτε να επιλέξετε είτε έναν κατάλογο διαμόρφωσης Recoll ή ένα ευρετήριο Xapian. Snippets window CSS file Αρχείο CSS παραθύρου αποσπάσματος Opens a dialog to select the Snippets window CSS style sheet file Ανοίγει έναν διάλογο που σας επιτρέπει την επιλογή του αρχείου στυλ CSS για το αναδυόμενο παράθυρο αποσπασμάτων Resets the Snippets window style Επαναφορά του στυλ του παραθύρου αποσπασμάτων Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Document filter choice style: Buttons Panel Toolbar Combobox Menu Show system tray icon. Close to tray instead of exiting. recoll-1.21.5/qtgui/i18n/recoll_da.qm0000644000175000017500000030304212602163537016564 0ustar dockesdockes.cvuDo2NXMaX4O`^Nh6lt^nn#ww~HvLou%cxCnqxͺ LSI|/؅ vKWp#ivvw 51w 5Iw 5%whU/_.P ֳ6|f3ͼubggi׸~;U5Uk'e t_!Dk&X<.NyZ7A=dlk?dӓG$JUYJUYэYh[ul_npuZʷOE3ʗ^ʗWe^]LRh?x1JgYfAcG%bA*B c<.tȖd';[P<kLNB6X4e 2vh wT<a(Pb˯"3 ZI7Ihn1ߤf f fO ,7W6WeZy%3Jy%YŠsl&΄: #Z7X|!iW23=U̔ -iio -Zzx-Y)Tk-ԠB90BSkor?)~r||k~,ġ<Y"n0F,tAS}â RguǢ I^n~CQ>coK`M9$" r:UKlp hL(u9Ov2kT#mBi6K9 %Eni7HcÒP^+[XnD!w)ECMc!v#+o+^ 7I^<~FW#FNUH:"~F_guMapf 7piT%|N;w~ϗbnLD TloÓtÓt+>ȍɆts]86 5#[,3e*snQX,y:ufGm$J¢QJn.Qt}}tX;Eio0:j{cXhs @ʶ@gң Fc 䴥:?3 t Nm H] -(7 9Zy ;3l D K ]# cC km lMe rP y qD s ( T ` 9# ÛC ü>h 3 n N i & *Nl :^ c *R4 +<4 6u >Vd G.~M `P ` aE cE. d8 yj IG ! sq VT Cx  n  =  ԅ e ^ ye3 TH7 g ,xG4 =!R Kj T|cb XR0 X8 hh1 t9= 3 b $x m\ Σ r % ٷ@ ۷Å OK ?`7 F Vd8 4; H 'И +bC4 /A 9ɝ L* P֙9 RVU T#y V4 \iCi ] `F h vf {lgW !Y !Y, W |  ҬN I ip  G K ~^ N  m 'RM -x 7Qf 8H Fi OEL ]8u ] mC^^ u0 yi y~ 3e ȩQ u P P& 5ddF 2r 7ay i O Ւ6O H ' Q5 @ £ q]%n/.68b9<q;oX"cv$5^y; =>:rQ~hW"}Y~s[sɸ\3|e3(g3ep~a CS!KHcmc |x|mBR' lkLiuAlle stninger All clauses AdvSearch"Vilkrlig stning Any clause AdvSearch^Forkert multiplikator suffiks i strrelsefilter$Bad multiplier suffix in size filter AdvSearch mediermedia AdvSearchmeddelelsemessage AdvSearch andetother AdvSearchprsentation presentation AdvSearchregneark spreadsheet AdvSearch teksttext AdvSearch<----- Alle <----- All AdvSearchBase<----- Valg <----- Sel AdvSearchBaseTilfj stning Add clause AdvSearchBase"Avanceret sgningAdvanced search AdvSearchBaseAlle ----> All ----> AdvSearchBase6Alle felter med indhold til hjre vil blive kombineret med AND ("Alle stninger" valgt) eller OR ("Vilkrlig stning" valgt) bindeord. <br>"Enhver" "Alle" og "Ingen" felttyper kan acceptere en blanding af simple ord, og fraser i dobbelte anfrselstegn.<br>Felter uden data ignoreres.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions.
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBaseGennemseBrowse AdvSearchBase Efter kategorier By categories AdvSearchBasedAfkryds dette for at aktivere filtrering p datoer'Check this to enable filtering on dates AdvSearchBasehAfkryds dette for at aktivere filtrering p filtyper,Check this to enable filtering on file types AdvSearchBaselAfkryds dette for at aktivere filtrering p strrelser'Check this to enable filtering on sizes AdvSearchBaseAfkryds dette for at bruge filkategorier i stedet for r mime-typer;Check this to use file categories instead of raw mime types AdvSearchBaseLukClose AdvSearchBaseSlet stning Delete clause AdvSearchBaseBIndtast verste mappe for sgningEnter top directory for search AdvSearchBase FilterFilter AdvSearchBaseFiltrer datoer Filter dates AdvSearchBase$Filtrer strrelser Filter sizes AdvSearchBaseFindFind AdvSearchBaseFraFrom AdvSearchBase&Ignorerede filtyperIgnored file types AdvSearchBaseInverterInvert AdvSearchBaseMaks. strrelse Max. Size AdvSearchBaseMaksimal strrelse. Du kan bruge k/K,m/M g/G som multiplikatorer4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBaseMin. strrelse Min. Size AdvSearchBase~Mindste strrelse. Du kan bruge k/K,m/M,g/G som multiplikatorer4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase Begrns filtyperRestrict file types AdvSearchBaseVBegrns resultater til filer i undermapper:%Restrict results to files in subtree: AdvSearchBase Gem som standardSave as default AdvSearchBaseRSg efter <br>dokumenter<br>der opfylder:'Search for
documents
satisfying: AdvSearchBaseSgte filtyperSearched file types AdvSearchBaseValg -----> Sel -----> AdvSearchBaseStart sgning Start Search AdvSearchBaseTilTo AdvSearchBase<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indekseringstidsplan (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Hvert felt kan indeholde et jokertegn (*), en enkelt numerisk vrdi, kommaseparerede lister (1,3,5) og intervaller (1-7). Mere generelt vil felterne blive brugt <span style=" font-style:italic;"> som de er</span> inde i crontabfilen, og den fulde crontab syntaks kan bruges, se crontab (5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For eksempel, indtastning af <span style=" font-family:'Courier New,courier';">*</span> i <span style=" font-style:italic;">Dage, </span><span style=" font-family:'Courier New,courier';">12,19</span> i <span style=" font-style:italic;">Timer</span> og <span style=" font-family:'Courier New,courier';">15</span> i <span style=" font-style:italic;">Minutter</span> ville starte recollindex hver dag kl. 00:15 og 19:15 </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">En tidsplan med meget hyppige aktiveringer er formentlig mindre effektiv end realtid indeksering.</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolWh<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Deaktiver</span> for at stoppe automatisk batch indeksering, <span style=" font-style:italic;">Aktiver</span> for at aktivere den, <span style=" font-style:italic;">Annuller</span> for ikke at ndre noget.</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolWCron vindue Cron Dialog CronToolWZUgens dage (* eller 0-7, 0 eller 7 er Sndag))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWDeaktiverDisable CronToolWAktiverEnable CronToolWFejl ved installation af cron-indgange. Forkert syntaks i felter?3Error installing cron entry. Bad syntax in fields ? CronToolW(Timer (* eller 0-23)Hours (* or 0-23) CronToolWDet ser ud til, at manuelt redigerede indgange findes for recollindex, kan ikke redigere crontabPIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWMinutter (0-59)Minutes (0-59) CronToolW VindueDialog EditDialog$Konfigureringsfejl Config error EditTransLokal sti Local path EditTransOriginal sti Original path EditTransKildesti Source path EditTrans TilfjAdd EditTransBaseAnnullerCancel EditTransBaseSletDelete EditTransBase*Oversttelse af stierPath Translations EditTransBaseGemSave EditTransBaseVlg en eller flere filtyper, brug derefter knapperne i rammen nedenfor for at ndre, hvordan de skal behandleskSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBaseRIndstilling af oversttelser af stier forSetting path translations for  EditTransBase <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Det fremgr, at indekset for denne konfiguration ikke eksisterer.</span><br /><br />Hvis du blot nsker at indeksere din hjemmemappe med et st fornuftige standardindstillinger, skal du trykke p <span style=" font-style:italic;">Start indeksering nu</span> knappen. Du vil vre i stand til at justere detaljerne senere. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Hvis du nsker mere kontrol, kan du bruge flgende link til at justere indekseringskonfiguration og tidsplan.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Disse vrktjer kan tilgs senere fra <span style=" font-style:italic;">Prference</span> menuen.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialog8Frste opstning indekseringFirst indexing setupFirstIdxDialog8Konfiguration af indekseringIndexing configurationFirstIdxDialog0Tidsplan for indekseringIndexing scheduleFirstIdxDialog(Start indeksering nuStart indexing nowFirstIdxDialog Dette vil lade dig justere de mapper, du vil indeksere, og andre parametre som udelukkede filstier eller navne, standard tegnst etc.This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialogDette vil lade dig vlge mellem batch og realtime indeksering, og oprette en automatisk tidsplan for batch indeksering (ved hjlp af cron).This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog%1 ikke fundet. %1 not found.FragButs%1: %2%1: %2FragButs:Foresprgsel efter fragmenterQuery FragmentsFragButs <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indeksering kan kre permanent, indeksere filer nr de ndrer sig, eller kre med adskilte intervaller. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Lsning af manualen kan hjlpe dig med at vlge mellem disse tilgange (tryk F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Dette vrktj kan hjlpe dig med at oprette en tidsplan for at automatisere krsler af batch indeksering, eller starte realtid indeksering nr du logger ind (eller begge dele, hvilket sjldent giver mening). </p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedW0Tidsplanlgning med cronCron scheduling IdxSchedWBeslut, om realtid indeksering skal startes nr du logger ind (kun for standard-indekset).ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedWLOpstning af tidsplanlgning for indexIndex scheduling setup IdxSchedW<Opstart af realtid indekseringReal time indexing start up IdxSchedWVrktjet vil lade dig afgre, p hvilket tidspunkt indeksering skal kre og det vil installere en crontab indgang._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedW VindueDialog ListDialogGruppeboksGroupBox ListDialogFilen med "historik" er beskadiget eller den kan ikke lses eller skrives til, undersg det venligst, eller fjern den:K"history" file is damaged or un(read)writeable, please check or remove it: Main>Ingen dbmappe i konfigurationen No db directory in configurationMain &Nste&NextPreview&Forrige &PreviousPreview&Sger efter: &Search for:Preview`Kan ikke lave dok til intern reprsentation for 0Can't turn doc into internal representation for PreviewAnnullerCancelPreviewRydClearPreviewLuk faneblad Close TabPreview6Laver forhndsvisningstekstCreating preview textPreview8Fejl ved indlsning af filenError while loading filePreviewVHenter forhndsvisningstekst ind i editoren Loading preview text into editorPreview(Store/sm &Bogstaver Match &CasePreview2Manglende hjlpeprogram: Missing helper program: Preview KopierCopyPreviewTextEditOmbryd linier Fold linesPreviewTextEdit Bevar indrykningPreserve indentationPreviewTextEditUdskrivPrintPreviewTextEdit*Udskriv denne VisningPrint Current PreviewPreviewTextEdit(Gem dokument til filSave document to filePreviewTextEditVlg alle Select AllPreviewTextEditVis felter Show fieldsPreviewTextEditVis billede Show imagePreviewTextEditVis hovedtekstShow main textPreviewTextEdit2<b>Tilpassede undermapperCustomised subtreesQObject<i>De parametre, der flger er angivet enten p verste niveau, hvis intet<br>eller en tom linje er valgt i listefeltet ovenfor, eller for den valgte undermappe. <br> Du kan tilfje eller fjerne mapper ved at klikke p +/- knapperne.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObjectvTegnst, der bruges til at lse filer, hvor tegnsttet ikke kan identificeres ud fra indholdet, f.eks rene tekstfiler.<br>Standardvrdien er tom, og vrdien fra NLS-omgivelserne anvendes.Character set used for reading files which do not identify the character set internally, for example pure text files.
The default value is empty, and the value from the NLS environnement is used.QObject&Standard<br>tegnstDefault
character setQObject(Flg symbolske linksFollow symbolic linksQObjectFlg symbolske link under indeksering. Standarden er nej, for at undg dobbelt indekseringTFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject"Globale parametreGlobal parametersQObject&ignorerede endelserIgnored endingsQObject,Indekser alle filnavneIndex all file namesQObjectIndekser navnene p filer, hvor indholdet ikke kan identificeres eller behandles (ingen eller ikke-understttet mime-type). Standard er true}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject Lokale parametreLocal parametersQObjectSgeparametreSearch parametersQObjectUdeladte navne Skipped namesQObjectListen over undermapper i det indekserede hierarki <br>hvor nogle parametre behver at blive omdefineret. Standard: tom.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectbDette er endelser p filnavne for filer, hvor kun navnet vil blive indekseret (ingen forsg p identification af MIME-type, ingen dekomprimering, ingen indeksering af indhold).These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing).QObjectDette er mnstre for fil- eller mappenavne, der ikke skal indekseres.LThese are patterns for file or directory names which should not be indexed.QObjectWebhistorik Web historyQObject&bn&OpenQWidget6&bn Forlderdokument/mappe&Open Parent document/folderQWidget &Forhndsvisning&PreviewQWidget&Skriv til fil&Write to FileQWidget8Kan ikke udtrkke dokument: Cannot extract document: QWidget(Vlg prcis en mappeChoose exactly one directoryQWidgetKopier &FilnavnCopy &File NameQWidgetKopier &URL Copy &URLQWidget.Kunne ikke lse mappe: Could not read directory: QWidgetJOpret eller vlg mappe til at gemme iCreate or choose save directoryQWidget2Find &lignende dokumenterFind &similar documentsQWidget8bn vindue til &tekststumperOpen &Snippets windowQWidgetbn med Open WithQWidgetFForhndsvis &Forlderdokument/mappePreview P&arent document/folderQWidgetKr skript Run ScriptQWidget0Gem det valgte til filerSave selection to filesQWidgetLVis underdokumenter / vedhftede filerShow subdocuments / attachmentsQWidgetRUventet kollision af filnavn, annullerer.+Unexpected file name collision, cancelling.QWidgetr<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Indeksering kan sttes til at kre som en dmon, der opdatere indekset nr filer ndres, i realtid. Du fr et indeks, som altid er opdateret, men systemressourcer anvendes permanent..</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>.

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWJStart ogs indekseringsdmon lige nu.%Also start indexing daemon right now.RTIToolWhAutostartfil er slettet. Stop ogs nuvrende proces?2Autostart file deleted. Kill current process too ?RTIToolW$Kan ikke oprette: Can't create: RTIToolW6Kunne ikke kre recollindexCould not execute recollindexRTIToolWSletter fil Deleting fileRTIToolWSletter:  Deleting: RTIToolWNAutomatisk start af realtid indeksering"Real time indexing automatic startRTIToolW"Fjerner autostartRemoving autostartRTIToolWErstatter filReplacing fileRTIToolWErstatter:  Replacing: RTIToolWjStart indekseringsdmonen med min skrivebordssession..Start indexing daemon with my desktop session.RTIToolWAdvarselWarningRTIToolW(alle sprog)(all languages)RclMain$(Ingen ordstammer) (no stemming)RclMainOm Recoll About RecollRclMainAlleAllRclMainForkert desktop app spec for %1: [%2] Tjek venligst desktopfilen?Bad desktop app spec for %1: [%2] Please check the desktop fileRclMainForkert kommandolinje for fremviser for %1: [%2] Kontroller venligst mimeview-filenCBad viewer command line for %1: [%2] Please check the mimeview fileRclMain(Kan ikke tilg fil: Can't access file: RclMainNKan ikke oprette forhndsvisningsvindueCan't create preview windowRclMain6Kan ikke dekomprimere fil: Can't uncompress file: RclMainfKan ikke opdatere indeks: indekseringsprogram krer#Can't update index: indexer runningRclMainpKan ikke udtrkke dokument eller oprette midlertidig fil0Cannot extract document or create temporary fileRclMain>Kan ikke finde forlderdokumentCannot find parent documentRclMainRKan ikke hente dokumentinfo fra databasen+Cannot retrieve document info from databaseRclMainKlik p Annuller for at vende tilbage til listen. Klik p Ignorer for at vise forhndsvisningen alligevel.MClick Cancel to return to the list. Click Ignore to show the preview anyway. RclMainKlik OK for at opdatere indekset for denne fil, du bliver s ndt til at gentage foresprgslen nr indeksering er frdig. jClick Ok to update the index for this file, then you will need to re-run the query when indexing is done. RclMainAfslutterClosingRclMainhIndholdet er blevet indekseret for disse mime-typer:.Content has been indexed for these mime types:RclMainKunne ikke bne ekstern indeks. DB er ikke ben. Tjek liste over eksterne indekser.HCould not open external index. Db not open. Check external indexes list.RclMain~Deaktiveret fordi realtid indeksering ikke blev kompileret ind.;Disabled because the real time indexer was not compiled in.RclMainDokumentfilterDocument filterRclMain DokumenthistorikDocument historyRclMain FrdigDoneRclMain(Identiske dokumenterDuplicate documentsRclMainSletter indeks Erasing indexRclMainFejlErrorRclMainUdfrer: [ Executing: [RclMainEksterne programmer/kommandoer ndvendige for dine filtyper blev ikke fundet, som gemt af den sidste indeksering pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMainHistorik-data History dataRclMain Indeks ikke benIndex not openRclMainIndeks er ikke opdateret for denne fil. Ngter at risikere at vise den forkerte indgang.NIndex not up to date for this file. Refusing to risk showing the wrong entry. RclMain0Indeks foresprgselsfejlIndex query errorRclMain,Indekserede MIME-typerIndexed MIME TypesRclMain>Indeksering har ikke krt endnuIndexing did not run yetRclMain.Indeksering mislykkedesIndexing failedRclMain(Indeksering i gang: Indexing in progress: RclMain&indeksering afbrudtIndexing interruptedRclMain4Manglende hjlpeprogrammerMissing helper programsRclMainMonitorMonitorRclMainhIngen ekstern fremviser konfigureret for mime-type [-No external viewer configured for mime type [RclMain,Ingen hjlpere manglerNo helpers found missingRclMain.Ingen resultater fundetNo results foundRclMain IngenNoneRclMainRydder opPurgeRclMainForesprgsel er i gang<br>P grund af begrnsninger i indekseringsbiblioteket,<br>vil en annullering afslutte programmeteQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMain4Resultater af foresprgsel Query resultsRclMainLNulstil indekset og starte fra bunden?(Reset the index and start from scratch ?RclMain8Optlling af resultat (est.)Result count (est.)RclMainGem fil Save fileRclMainstammedbStemdbRclMain"Stop &IndekseringStop &IndexingRclMainFUnderdokumenter og vedhftede filerSub-documents and attachmentsRclMain*Den nuvrende indekseringsproces blev ikke startet fra denne grnseflade. Klik p OK for at stoppe den alligevel, eller Annuller for at lade den kreyThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainDokumentet tilhrer et ekstern indeks, som jeg ikke kan opdatere. ?The document belongs to an external indexwhich I can't update. RclMainIndekseringsprogram krer s ting burde vre bedre nr det er frdig. @The indexer is running so things should improve when it's done. RclMainFremviseren angivet i mimeview for %1: %2 er ikke fundet. nsker du at bne indstillingsvinduet?hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainbDisse webadresser ( | ipath) deler samme indhold:-These Urls ( | ipath) share the same content:RclMainrDette konfigurationsvrktj virker kun for hovedindekset.6This configuration tool only works for the main index.RclMainFDenne sgning er ikke lngere aktiv"This search is not active any moreRclMain UkendtUnknownRclMainOpdater &Indeks Update &IndexRclMainOpdatererUpdatingRclMainFremviser kommandolinje for %1 angiver bde fil og forlderfil vrdier: er ikke understttetQViewer command line for %1 specifies both file and parent file value: unsupportedRclMainAdvarselWarningRclMain\fejl under hentning af ordstammer for sprogene#error retrieving stemming languagesRclMainfiltreretfilteredRclMain mediermediaRclMainmeddelelsemessageRclMain andetotherRclMainprsentation presentationRclMainsorteretsortedRclMainregneark spreadsheetRclMain teksttextRclMainR Forsg igen med filer der mislykkedes With failed files retrying RclMainBase&Om Recoll &About Recoll RclMainBase$&Avanceret sgning&Advanced Search RclMainBase,&Slet dokumenthistorik&Erase document history RclMainBase$&Slet sgehistorik&Erase search history RclMainBase&Fil&File RclMainBase&Fuldskrm &Full Screen RclMainBase,&Konfiguration for GUI&GUI configuration RclMainBase &Hjlp&Help RclMainBase2&Konfiguration for Indeks&Index configuration RclMainBase2&Tidsplan for Indeksering&Indexing schedule RclMainBase&Prferencer &Preferences RclMainBase &Genopbyg indeks&Rebuild index RclMainBase&Resultater&Results RclMainBase,&Vis indekserede typer&Show indexed types RclMainBase.&Vis manglende hjlpere&Show missing helpers RclMainBase*&Sorterings-parametre&Sort parameters RclMainBase&Vrktjer&Tools RclMainBase&Brugermanual &User manual RclMainBase4Avanceret/kompleks sgningAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase DokumenthistorikDocument History RclMainBase"Dokument&historikDocument &History RclMainBaseA&fslutE&xit RclMainBase$E&ksterne indekserE&xternal index dialog RclMainBase"Eksterne indekserExternal index dialog RclMainBaseF11F11 RclMainBaseFrste side First Page RclMainBaseFrste side First page RclMainBaseFuldskrm Full Screen RclMainBaseBG til frste side med resultaterGo to first page of results RclMainBaseNste side Next Page RclMainBaseNste side Next page RclMainBase2Nste side med resultaterNext page of results RclMainBaseNste opdatering vil igen forsge med filer, der tidligere mislykkedes.Next update will retry previously failed files RclMainBase PgDownPgDown RclMainBasePgUpPgUp RclMainBaseForrige side Previous Page RclMainBaseForrige side Previous page RclMainBase6Forrige side med resultaterPrevious page of results RclMainBase:Foresprgsel efter fragmenterQuery Fragments RclMainBase RecollRecoll RclMainBase4Gem som CSV (regneark) filSave as CSV (spreadsheet) file RclMainBasexGemmer resultatet i en fil, som du kan indlse i et regneark@Saves the result into a file which you can load in a spreadsheet RclMainBaseShift+PgUp Shift+PgUp RclMainBase6Vis Detaljer i foresprgselShow Query Details RclMainBaseVis som tabel Show as table RclMainBaseTVis resultater i en regnearklignende tabel(Show results in a spreadsheet-like table RclMainBase>Sorter efter dato, nyeste frstSort by date, newest first RclMainBase>Sorter efter dato, ldste frstSort by date, oldest first RclMainBaseNSorter efter dato fra nyeste til ldste#Sort by dates from newest to oldest RclMainBaseNSorter efter dato fra ldste til nyeste#Sort by dates from oldest to newest RclMainBase(Sorterings-parametreSort parameters RclMainBase&Sg efter ordTerm &explorer RclMainBase:Vrktj for sgning efter ordTerm explorer tool RclMainBaseOpdater &Indeks Update &index RclMainBase AfslutQuit RclTrayIcon GendanRestore RclTrayIconSammendragAbstract RecollModelForfatterAuthor RecollModelDatoDate RecollModelDato og tid Date and time RecollModel Dokumentets dato Document date RecollModel*Dokumentets strrelse Document size RecollModelFildato File date RecollModelFilnavn File name RecollModelFilstrrelse File size RecollModel IpathIpath RecollModelNgleordKeywords RecollModelMIME-type MIME type RecollModelMtidMtime RecollModel"Originale tegnstOriginal character set RecollModel&Relevans bedmmelseRelevancy rating RecollModel TitelTitle RecollModelURLURL RecollModel$(vis foresprgsel) (show query)ResListJ<p><b>Ingen resultater fundet</b><br>

No results found
ResListp<p><i>Alternative stavemder (accenter undertrykt): </i>4

Alternate spellings (accents suppressed): ResListD<p><i>Alternative stavemder: </i>

Alternate spellings: ResList DokumenthistorikDocument historyResListDokumenter DocumentsResList NsteNextResListbnOpenResListForhndsvisningPreviewResListForrigePreviousResList.Detaljer i Foresprgsel Query detailsResList8Optlling af resultat (est.)Result count (est.)ResListResultatliste Result listResListTekststumperSnippetsResList2Dokument ikke tilgngeligUnavailable documentResListforforResListud af mindstout of at leastResList&Slet kolonne&Delete columnResTable$&Nulstil sortering &Reset sortResTable&Gem som CSV &Save as CSVResTable&Tilfj "%1" kolonneAdd "%1" columnResTable6Kan ikke bne/oprette fil: Can't open/create file: ResTable*Gem tabel til CSV-filSave table to CSV fileResTableAlle ord All termsSSearchVilkrlig ordAny termSSearch6Forkert foresprgselsstrengBad query stringSSearchBIndtast filnavn jokertegn udtryk.$Enter file name wildcard expression.SSearch$Indtast foresprgselssprogets udtryk. Snydeark:<br> <i>ord1 ord2</i> : 'ord1' og 'ord2' i et hvilken som helst felt.<br> <i>felt:ord1</i> : 'ord1' i feltet 'felt'.<br> Standard feltnavne/synonymer:<br> titel/emne/billedtekst, forfatter/fra, modtager/til, filnavn, ekst.<br> Pseudofelter: dir, mime/format, type/rclcat, dato, strrelse.<br> To datointerval-eksempler: 2009-03-01/2009-05-20 2009-03-01/P2M:<br>. <i>ord1 ord2 OR ord3</i>: ord1 AND (ord2 OR ord3).<br> Du kan bruge parenteser for at gre tingene klarere.<br> <i>"ord1 ord2"</i> : frase (skal forekomme njagtigt). Mulige modifikatorer:<br> <i>"ord1 ord2"p </i> : uordnet nrheds-sgning med standard afstand.<br> Brug <b>Vis Foresprgsel</b> link nr i tvivl om resultatet og se manual (&lt;F1>) for flere detaljer.Enter query language expression. Cheat sheet:
term1 term2 : 'term1' and 'term2' in any field.
field:term1 : 'term1' in field 'field'.
Standard field names/synonyms:
title/subject/caption, author/from, recipient/to, filename, ext.
Pseudo-fields: dir, mime/format, type/rclcat, date, size.
Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.
term1 term2 OR term3 : term1 AND (term2 OR term3).
You can use parentheses to make things clearer.
"term1 term2" : phrase (must occur exactly). Possible modifiers:
"term1 term2"p : unordered proximity search with default distance.
Use Show Query link when in doubt about result and see manual (<F1>) for more detail. SSearchIndtast sgeord her. Tast ESC SPC for frdiggrelse af nuvrende ord.FEnter search terms here. Type ESC SPC for completions of current term.SSearchFilnavn File nameSSearch(Ikke mere hukommelse Out of memorySSearch$ForesprgselssprogQuery languageSSearchVlg sgetype.Choose search type. SSearchBaseRydClear SSearchBase Ctrl+SCtrl+S SSearchBaseIndtast sgeord her. Type ESC SPC for frdiggrelse af nuvrende ord.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase Slet sgeindgangErase search entry SSearchBaseSSgeBase SSearchBase SSearchBaseSgSearch SSearchBase$Start foresprgsel Start query SSearchBaseAlleAll SearchClauseWVilkrligAny SearchClauseWFilnavn File name SearchClauseWIntet feltNo field SearchClauseW IngenNone SearchClauseWtAntal yderligere ord, der kan vre blandet med de udvalgteHNumber of additional words that may be interspersed with the chosen ones SearchClauseW FrasePhrase SearchClauseW Nrhed Proximity SearchClauseWvVlg den type foresprgsel, der vil blive udfrt med ordene>Select the type of query that will be performed with the words SearchClauseW Find:Find:Snippets NsteNextSnippetsForrigePrevSnippetsTekststumperSnippetsSnippetsh<p>Desvrre blev der ikke, inden for rimelige grnser, fundet en njagtig match. Sandsynligvis fordi dokumentet er meget stort, s tekststump-generatoren for vild i mngden...</ p>

Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...

 SnippetsWSgSearch SnippetsW&Luk&Close SpellBase&Udvid &Expand  SpellBaseAccenterAccents SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBase$Stor/Sm bogstaverCase SpellBaseSammenlignMatch SpellBaseIngen dbinfo. No db info. SpellBaseSg efter ord Term Explorer SpellBase%1 resultater %1 resultsSpellW.Aspell udvidelsesfejl. Aspell expansion error. SpellWbAspell init mislykkedes. Aspell ikke installeret?)Aspell init failed. Aspell not installed?SpellW<Gennemsnitlige ord pr dokumentAverage terms per documentSpellW6Mappestrrelse for databaseDatabase directory sizeSpellWDok. / Tot. Doc. / Tot.SpellWxIndex: %1 dokumenter, gennemsnitslngde %2 ord %3 resultater7Index: %1 documents, average length %2 terms.%3 resultsSpellWElementItemSpellWXListe blev afkortet alfabetisk, nogle ofte 1List was truncated alphabetically, some frequent SpellW,Lngste dokumentlngdeLongest document lengthSpellWMIME-typer: MIME types:SpellW,Ingen udvidelse fundetNo expansion foundSpellW Antal dokumenterNumber of documentsSpellW RegexRegexpSpellW0Vis statistik for indeksShow index statisticsSpellW,Mindste dokumentlngdeSmallest document lengthSpellW"Stavning/FonetiskSpelling/PhoneticSpellW&Udvidelse af stammeStem expansionSpellWOrdTermSpellW VrdiValueSpellWJokertegn WildcardsSpellW^fejl under hentning af ordstammer for sprogene #error retrieving stemming languagesSpellWbDer kan mangle ord. Prv at bruge en lngere rod..terms may be missing. Try using a longer root.SpellW@Der burde vlges hjst et indeks$At most one index should be selected UIPrefsDialogKan ikke tilfje indeks med en anden indstilling for fjernelse af store-bogstaver/diakritiske tegn>Cant add index with different case/diacritics stripping option UIPrefsDialogVlgChoose UIPrefsDialog@Standard skrifttype for QtWebkitDefault QtWebkit font UIPrefsDialog\Overskrift for resultatliste (standard er tom)%Result list header (default is empty) UIPrefsDialogAfsnitformat for resultatliste (slet alt for at nulstille til standard)Nye vrdier:</b>New Values:ViewActionBaseBHandling (tom -> recoll standard) Action (empty -> recoll default)ViewActionBase2Anvend p aktuelle udvalgApply to current selectionViewActionBaseLukCloseViewActionBasePUndtagelse til indstillinger for Desktop Exception to Desktop preferencesViewActionBase,Oprindelige fremvisereNative ViewersViewActionBase Recoll handling:Recoll action:ViewActionBaseVlg en eller flere filtyper, og brug derefter knapperne i rammen nedenfor for at ndre, hvordan de behandleskSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseVlg en eller flere Mime-typer og brug derefter knapperne i bundrammen til at ndre, hvordan de behandles.lSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBaseVlg det samme Select sameViewActionBaseVBrug indstillinger for Desktop som standard"Use Desktop preferences by defaultViewActionBaseaktuelle vrdi current valueViewActionBaseAktiverer indeksering af sider besgt af Firefox.<br>(Du skal ogs installere Firefox Recoll plugin)\Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelWjIndgangene vil blive genbrugt, nr strrelsen er net1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWBMax. strrelse til web-lager (MB) Max. size for the web store (MB)confgui::ConfBeaglePanelW:Behandl ken for WEB-historikProcess the WEB history queueconfgui::ConfBeaglePanelWNavnet p en mappe hvor du vil gemme kopier af besgte websider.<br>En relativ sti er taget i forhold til konfigurationsmappen.The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWDMappenavn for lageret til WebsiderWeb page store directory nameconfgui::ConfBeaglePanelWBKan ikke skrive konfigurationsfilCan't write configuration fileconfgui::ConfIndexWVlgChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW<p>Udlser automatisk flsomhed over for store/sm bogstaver, hvis indgangen har store bogstaver i andet end den frste position. Ellers er du nd til bruge foresprgselssproget og <i>C</i> modifikatoren, for at angive flsomhed over for store/sm bogstaver.

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW<p>Udlser automatisk flsomhed over for diakritiske tegn, hvis sgeordet har accent tegn (ikke i unac_except_trans). Ellers er du nd til bruge foresprgselssproget og <i>D</i> modifikatoren, for at angive flsomhed over for diakritiske tegn.

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelW<p>Maksimal antal udvidelser-for et enkelt ord (fx: nr der bruges jokertegn). Standarden p 10 000 er rimeligt og vil undg foresprgsler, der synes at fryse mens motoren arbejder sig igennem ordlisten.

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelW<p>Maksimalt antal grundlggende stninger vi fjer til en enkel Xapian foresprgsel. I nogle tilflde kan resultatet af ordudvidelse vre multiplikativ, og vi nsker at undg at bruge overdreven hukommelse. Standarden p 100 000 br vre bde hj nok i de fleste tilflde og kompatibel med de nuvrende typiske hardware konfigurationer.5

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWdAutomatisk flsomhed over for store/sm bogstaver $Automatic character case sensitivityconfgui::ConfSearchPanelW\Automatisk flsomhed over for diakritiske tegn Automatic diacritics sensitivityconfgui::ConfSearchPanelW>Maksimale antal XapianstningerMaximum Xapian clauses countconfgui::ConfSearchPanelW:Maksimale antal ordudvidelserMaximum term expansion countconfgui::ConfSearchPanelWEn eksklusiv liste over indekserede MIME-typer.<br>Intet andet vil blive indekseret. Normalt tom og inaktiveAn exclusive list of indexed mime types.
Nothing else will be indexed. Normally empty and inactiveconfgui::ConfSubPanelW"Udeluk mime-typerExclude mime typesconfgui::ConfSubPanelWEksterne filtre der arbejder lngere end dette vil blive afbrudt. Dette er for det sjldne tilflde (dvs.: postscript) hvor et dokument kan forrsage, at et filter laver et loop. Indstil til -1 for ingen grnse.External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelW GlobalGlobalconfgui::ConfSubPanelWtHvis denne vrdi er indstillet (ikke lig med -1), vil tekstfiler opdeles i bidder af denne strrelse for indeksering. Dette vil hjlpe sgning i meget store tekstfiler (dvs.: log-filer).If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWFMaks. komprimeret filstrrelse (KB)Max. compressed file size (KB)confgui::ConfSubPanelWDMaks. udfrelsestid for filtre (S)Max. filter exec. time (S)confgui::ConfSubPanelW@Maks. strrelse p tekstfil (MB)Max. text file size (MB)confgui::ConfSubPanelWFMime-typer der ikke skal indekseresMime types not to be indexedconfgui::ConfSubPanelWKun mime-typerOnly mime typesconfgui::ConfSubPanelW<Sidestrrelse p tekstfil (KB)Text file page size (KB)confgui::ConfSubPanelWFDenne vrdi angiver en grnse for, hvornr komprimerede filer ikke vil blive behandlet. Indstil til -1 for ingen grnse, til 0 for ingen dekomprimering nogensinde.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelWRDenne vrdi angiver en grnse for, hvornr tekstfiler ikke vil blive behandlet. Indstil til -1 for ingen grnse. Dette er for at udelukke monster logfiler fra indekset.This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelW<p>Disse er undtagelser fra unac mekanismen, der, som standard, fjerner alle diakritiske tegn, og udfrer kanoniske nedbrydning. Du kan tilsidestte fjernelse af accent for nogle tegn, afhngigt af dit sprog, og angive yderligere nedbrydninger, f.eks for ligaturer. I hver indgang adskilt af mellemrum, er det frste tegn kildedelen, og resten er oversttelsen.l

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelWAspell sprogAspell languageconfgui::ConfTopPanelW(Databasens mappenavnDatabase directory nameconfgui::ConfTopPanelW2Deaktiver brug af aspell til at generere stavnings-tilnrmelse i vrktj for sgning efter ord. <br> Nyttigt hvis aspell er fravrende eller ikke virker.Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelWPMegabyte interval for skrivning af IndexIndex flush megabytes intervalconfgui::ConfTopPanelWNavn p logfil Log file nameconfgui::ConfTopPanelW,Log informationsniveauLog verbosity levelconfgui::ConfTopPanelW*Maks brug af disk (%)Max disk occupation (%)confgui::ConfTopPanelW Brug ikke aspellNo aspell usageconfgui::ConfTopPanelWUdeladte stier Skipped pathsconfgui::ConfTopPanelW.Ordstammer for sprogeneStemming languagesconfgui::ConfTopPanelWFilen hvor meddelelser vil blive skrevet.<br>Brug 'stderr' for terminal outputPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWvSproget for aspell ordbog. Det skal se ud som "en" eller "fr" ...<br>Hvis denne vrdi ikke er angivet, s vil NLS omgivelser blive brugt til at finde det, det fungerer normalt. For at f en id om, hvad der er installeret p dit system, kan du skrive 'aspell konfig "og se efter .dat filer inde i 'data-dir' mappen.3The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelWDe sprog, hvor ordstamme-udvidelses<br>ordbger vil blive bygget.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWListen over mapper hvor rekursiv indeksering starter. Standard: din hjemme-mappe (home).LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWNavnet p en mappe hvor du vil gemme indekset<br>En relativ sti er taget i forhold til konfigurationsmappen. Standard er "xapiandb.The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelWDette er navne p mapper, som indeksering ikke gr ind i.<br>Kan indeholde jokertegn. Skal stemme overens med stierne, som de er set af indekseringen (dvs. hvis de verste mapper omfatter '/home/mig' og '/home' er et link til '/usr/home', en korrekt udeladtSti indgang ville vre '/home/mig/tmp * ', ikke '/usr/home/mig/tmp * ')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWBDette er den procentdel af diskforbrug hvor indeksering vil mislykkes, og stoppe (for at undg at fylde dit disk).<br>0 betyder ingen grnse (dette er standard).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelWbDenne vrdi justere mngden af data, der er indekseret mellem skrivning til disken.<br>Dette hjlper med at kontrollere indekseringsprogrammets brug af hukommelse. Standard 10MBThis value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWDenne vrdi justerer mngden af meddelelser,<br>fra kun fejl til en masse fejlretningsdata.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelWverste mapperTop directoriesconfgui::ConfTopPanelW Unac-undtagelserUnac exceptionsconfgui::ConfTopPanelW&Annuller&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBase<BR>
uiPrefsDialogBase <PRE>

uiPrefsDialogBase<PRE> + wrap
 + wrapuiPrefsDialogBaseEn sgning efter [Rullende Sten] (2 ord) vil blive ndret til [rullende eller sten eller (rullende frase 2 sten)].
Dette skulle give hjere forrang til resultaterne, hvor sgeordene vises njagtigt som angivet.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBaseVSeparator mellem sammendragets tekststumperAbstract snippet separatoruiPrefsDialogBaseAktiver alleActivate AlluiPrefsDialogBaseTilfj index	Add indexuiPrefsDialogBase Anvend ndringer
Apply changesuiPrefsDialogBaseNAutostart simpel sgning ved blanktegn.-Auto-start simple search on whitespace entry.uiPrefsDialogBaseXTilfj automatisk frase til simple sgninger+Automatically add phrase to simple searchesuiPrefsDialogBasebTrskelprocentsats for ordhyppighed ved autofrase.Autophrase term frequency threshold percentageuiPrefsDialogBase"Panel med knapper
Buttons PaneluiPrefsDialogBaseVlgChooseuiPrefsDialogBase4Vlg redigeringsprogrammerChoose editor applicationsuiPrefsDialogBaseKlik for at tilfje endnu en indeksmappe til listen. Du kan vlge enten en Recoll konfigurationsmappe eller et Xapianindeks.{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBaseZLuk til systembakke i stedet for at afslutte.!Close to tray instead of exiting.uiPrefsDialogBase0Datoformat (strftime(3))Date format (strftime(3))uiPrefsDialogBaseDeaktiver alleDeactivate AlluiPrefsDialogBaseBestemmer om dokumentfiltre er vist som radioknapper, vrktjslinje kombinationsfelt eller menu.QDecide if document filters are shown as radio buttons, toolbar combobox, or menu.uiPrefsDialogBaseXDeaktiver Qt autofuldfrelse i sgeindgange.*Disable Qt autocompletion in search entry.uiPrefsDialogBase"Kassere ndringerDiscard changesuiPrefsDialogBaseSkal vi sammenfatte et sammendrag, selvom dokumentet synes at have et?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBase8Skal vi forsge at lave sammendrag af indgange til resultatliste ved at bruge sammenhnget med foresprgselsordene? 
Kan vre langsomt for store dokumenter.zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBase<Valgmetode for dokumentfilter:Document filter choice style:uiPrefsDialogBase.Lav dynamisk sammendragDynamically build abstractsuiPrefsDialogBaserRediger kode for indstnig i html-header for resultatside#Edit result page html header insertuiPrefsDialogBaseNRediger formatstreng for resultatafsnit#Edit result paragraph format stringuiPrefsDialogBaseAktiverEnableuiPrefsDialogBase"Eksterne IndekserExternal IndexesuiPrefsDialogBaseHyppighedens procentvise trskel, hvorover vi ikke bruger ord inde i autofrase.
Hyppige ord er et stort problem for ydeevnen med fraser.
Udeladte ord forger frase stilstand, og reducere effektiviteten af autofrase.
Standardvrdien er 2 (procent).Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10Helvetica-10uiPrefsDialogBase6Skjul identiske resultater.Hide duplicate results.uiPrefsDialogBase@Farve for fremhvning af sgeordHighlight color for query termsuiPrefsDialogBaseAfkryds forrsager, at resultater med samme indhold under forskellige navne kun bliver rapporteret en gang.XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBaseLinjer i PRE tekst ombrydes ikke. Brug af BR mister en del indrykning. PRE + Wrap stil kunne vre, hvad du nsker.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBaseMaksimal tekststrrelse der fremhves for forhndsvisning (megabyte)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseMenuMenuuiPrefsDialogBase@Antal indgange i en resultatside"Number of entries in a result pageuiPrefsDialogBasebner et vindue til at vlge CSS stylesheet-fil for vinduet til tekststumperAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBasenbner et vindue til at vlge resultatlistens skrifttype-Opens a dialog to select the result list fontuiPrefsDialogBaseVbn et vindue for at vlge stylesheet-filen-Opens a dialog to select the style sheet fileuiPrefsDialogBase,Oversttelser af stierPaths translationsuiPrefsDialogBaseFAlmindelig tekst til HTML linjetypePlain text to HTML line styleuiPrefsDialogBasenForetrk Html til almindelig tekst for forhndsvisning.&Prefer Html to plain text for preview.uiPrefsDialogBase^Foresprgselssprogets magiske filnavnsendelser.(Query language magic file name suffixes.uiPrefsDialogBaseLHusk sorteringens aktiveringstilstand.Remember sort activation state.uiPrefsDialogBase~Fjern fra listen. Dette har ingen virkning p indeks p disken.7Remove from list. This has no effect on the disk index.uiPrefsDialogBaseFjern valgteRemove selecteduiPrefsDialogBase@Erstat sammendrag fra dokumenter Replace abstracts from documentsuiPrefsDialogBaseNulstilResetuiPrefsDialogBaseVNulstil stilen for vinduet til tekststumper Resets the Snippets window styleuiPrefsDialogBasexNulstiller resultatlistens skrifttype til systemets standard1Resets the result list font to the system defaultuiPrefsDialogBase>Nulstil stylesheet til standard!Resets the style sheet to defaultuiPrefsDialogBaseResultatlisteResult ListuiPrefsDialogBase8Skrifttype for resultatlisteResult list fontuiPrefsDialogBase(Sg mens du skriver.Search as you type.uiPrefsDialogBaseSgeparametreSearch parametersuiPrefsDialogBaseVis statusikon.Show system tray icon.uiPrefsDialogBaseFCSS-fil for vindue til tekststumperSnippets window CSS fileuiPrefsDialogBaseJStart med bent avanceret sgevindue.'Start with advanced search dialog open.uiPrefsDialogBase(Ordstammer for sprogStemming languageuiPrefsDialogBaseStylesheetStyle sheetuiPrefsDialogBasebSammenhngende ord for det genererede sammendrag  Synthetic abstract context wordsuiPrefsDialogBaseZStrrelse p det genererede sammendrag (tegn)$Synthetic abstract size (characters)uiPrefsDialogBaseTekster over denne strrelse vil ikke blive fremhvet i forhndsvisning (for langsom).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBaseOrdene p listen bliver automatisk vendt til ext: xxx stninger i foresprgselssprogets indgang.bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase Skift det valgteToggle selecteduiPrefsDialogBase<vrktjslinje kombinationsfeltToolbar ComboboxuiPrefsDialogBase"brugergrnsefladeUser interfaceuiPrefsDialogBase&BrugerindstillingerUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_it.qm0000644000175000017500000006615412602163537016626 0ustar  dockesdockesa->+;Pmb-)L+L5	9Ead$—-'H-+*%"]*0"+L	w1`G^G%mH65H66J+J+0GJ6kJ6<WlX_ess v8vv!V0@́; *9p<E:0,@>.cXMZvTJmc8xC
s
LSI/?T
,p#v,w5*w5/ew52U>ֳ9.65lf3#[ͼu[;U`Ue e"&Y.N7J?d,]JUYJUY+Y7cLV/6x?A(L= II
naf>1$c0|#Z@X|>
-ZJz6-))T_BS4'r?)*=r2,(8<#2y5>ASâ
-R60Ǣ~Cb`'"	2UK`p
hSBPKD/	%G}7,XOCUtFW#3-FNWw~n*TɆtdQ)}}b|0EA28	+PFcBez	H!	9Zy1	K'	V	ü>]6	
c
+<C 
6
`P
`
cE&
y
IP
CL
+q
%$%TH	h
t9FhΣ&M"۷'g'И#P֙RVT#VB_\iC_`F8S5
8Q
F
y:
3
u/
P
P
5d\G
H
£8XZ/. <c="G7Jpb!zc-v3..A3.0:P)AuZ˓B;=Q~]Y~s"[s(Bg3& M
|7|`
l!/L=ieTutti i terminiAll clauses	AdvSearch"Qualsiasi termine
Any clause	AdvSearchmultimedialimedia	AdvSearch
altriother	AdvSearch<----- Tutti
<----- All
AdvSearchBase<----- Sel
<----- Sel
AdvSearchBase&Aggiungi condizione
Add clause
AdvSearchBase Ricerca avanzataAdvanced search
AdvSearchBaseTutti ---->	All ---->
AdvSearchBaseEsploraBrowse
AdvSearchBasePer categorie
By categories
AdvSearchBaselContrassegna per abilitare la ricerca sul tipo di file,Check this to enable filtering on file types
AdvSearchBasetContrassegna per usare le categorie al posto dei tipi mime;Check this to use file categories instead of raw mime types
AdvSearchBaseChiudiClose
AdvSearchBase$Elimina condizione
Delete clause
AdvSearchBaseNScrivi la directory base per la ricercaEnter top directory for search
AdvSearchBase8Ignora i file di questo tipoIgnored file types
AdvSearchBase*Limita i tipi di fileRestrict file types
AdvSearchBaseRLimita i risultati alla sotto-directory: %Restrict results to files in subtree:
AdvSearchBase$Salva come defaultSave as default
AdvSearchBaseHCerca i documenti<br>che contengono:'Search for 
documents
satisfying: AdvSearchBase"Ricerca tipo fileSearched file types AdvSearchBaseSel -----> Sel -----> AdvSearchBase Cerca Start Search AdvSearchBaseAnnullaCancel EditTransBasepNessuna directory per il DB di base nella configurazione No db directory in configurationMain&Successivo&NextPreview&Precedente &PreviousPreview&Cerca: &Search for:PreviewImpossibile tradurre il documento per la rappresentazione interna 0Can't turn doc into internal representation for PreviewAnnullaCancelPreviewCancellaClearPreviewChiudi Tab Close TabPreviewFCreazione del testo per l'anteprimaCreating preview textPreviewVCaricamento anteprima del testo nell'editor Loading preview text into editorPreview:Rispetta &Maiuscole/minuscole Match &CasePreviewLManca il programma di filtro esterno: Missing helper program: Preview><b>Ramificazioni personalizzateCustomised subtreesQObject<i>I parametri che seguono sono postii al livello superiore, se niente <br> o una linea vuota selezionata nella casella sovrastante, oppure al livello della cartella selezionata.<br> Puoi aggiungere/rimuovere cartelle cliccando i bottoni +/-.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject.Segue il link simbolicoFollow symbolic linksQObjectSegue il link simbolico durante l'indicizzazione. Di default no, per evitare la duplicazione dell'indiceTFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject"Parametri globaliGlobal parametersQObject@Indicizza tutti i nomi dei filesIndex all file namesQObject&Indicizza il nome di quei files il cui contenuto non pu essere identificato o processato (tipo mime non supportato). Di default impostato a vero}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject Parametri localiLocal parametersQObject0Parametri per la ricercaSearch parametersQObjectNomi saltati Skipped namesQObjectLista delle sottocartelle nella gerarchia indicizzata<br>ove alcuni parametri devono essere ridefiniti. Predefinita: vuota.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectQuesti sono modelli per i nomi delle cartelle e/o dei files che non devono vebire indicizzati.LThese are patterns for file or directory names which should not be indexed.QObject&Anteprima&PreviewQWidget.Copia il nome del &FileCopy &File NameQWidgetCopia l'&Url Copy &URLQWidget.Trova documenti &similiFind &similar documentsQWidgetAttenzioneWarningRTIToolW"(tutte le lingue)(all languages)RclMain((nessuna espansione) (no stemming)RclMain,Informazioni su Recoll About RecollRclMainRNon posso creare la finestra di anteprimaCan't create preview windowRclMainvNon posso estrarre il documento o creare il file temporaneo0Cannot extract document or create temporary fileRclMainxImpossibile caricare informazioni del documento dal database+Cannot retrieve document info from databaseRclMainChiusuraClosingRclMain0Cronologia dei documentiDocument historyRclMain Esecuzione di: [ Executing: [RclMain&Cronologia dei dati History dataRclMain4Indicizzazione in corso: Indexing in progress: RclMainPuliscoPurgeRclMain.Risultati della ricerca Query resultsRclMain&Database espansioniStemdbRclMainBQuesta ricerca non e' piu' attiva"This search is not active any moreRclMainSconosciutoUnknownRclMainAttenzioneWarningRclMainberrore nel recupero delle lingue per l'espansione#error retrieving stemming languagesRclMainmultimedialimediaRclMain altriotherRclMain.&Informazioni su Recoll &About Recoll RclMainBase"Ricerca &Avanzata&Advanced Search RclMainBaseJ&Cancella la cronologia dei documenti&Erase document history RclMainBase &File&File RclMainBase &Aiuto&Help RclMainBase&Preferenze &Preferences RclMainBase,&Parametri ordinamento&Sort parameters RclMainBase&Strumenti&Tools RclMainBase&Manuale utente &User manual RclMainBaseLMostra la finestra di Ricerca avanzataAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBaseLVisualizza la cronologia dei documentiDocument History RclMainBase*C&ronologia documentiDocument &History RclMainBase &EsciE&xit RclMainBase:Configurazione indici esterniExternal index dialog RclMainBasePrima pagina First page RclMainBaseFVai alla prima pagina dei risultatiGo to first page of results RclMainBasePagina seguente Next page RclMainBasePagina seguenteNext page of results RclMainBase"Pagina precedente Previous page RclMainBase"Pagina precedentePrevious page of results RclMainBase RecollRecoll RclMainBaseVConfigurazione dei parametri di ordinamentoSort parameters RclMainBase"&Esplora l'indiceTerm &explorer RclMainBase@Strumento di esplorazione indiceTerm explorer tool RclMainBase Aggiorna &indice Update &index RclMainBaseDataDate RecollModelNome file File name RecollModel: (mostra dettagli di ricerca) (show query)ResList<<p><b>Nessun risultato</b><br>

No results found
ResList0Cronologia dei documentiDocument historyResListRisultati DocumentsResListSuccessivoNextResListPrecedentePreviousResList Dettagli ricerca Query detailsResList&Lista dei risultati Result listResList,Documento inaccessibleUnavailable documentResListperforResList totale di almenoout of at leastResList Tutti All termsSSearchQualsiasiAny termSSearch:Stringa di ricerca malformataBad query stringSSearchInserisci qui i termini di ricerca. Premi ESC Spazio per il completamento automatico dei termini.FEnter search terms here. Type ESC SPC for completions of current term.SSearchNome file File nameSSearch Memoria esaurita Out of memorySSearch8Linguaggio di interrogazioneQuery languageSSearchCancellaClear SSearchBase Ctrl+SCtrl+S SSearchBaseInserisci qui i termini di ricerca. Premi ESC Spazio per il completamento automatico dei termini.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase0Cancella voce di ricercaErase search entry SSearchBaseSSearchBase SSearchBase SSearchBase CercaSearch SSearchBaseInizia ricerca Start query SSearchBaseNome file File name SearchClauseWNumero di parole che possono frapporsi tra i termini di ricerca indicatiHNumber of additional words that may be interspersed with the chosen ones SearchClauseWSeleziona il tipo di ricerca da effettuare con i termini indicati>Select the type of query that will be performed with the words SearchClauseWSuccessivoNextSnippets CercaSearch SnippetsW&Chiudi&Close SpellBase&Espandi &Expand  SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBase0Esplorazione dei termini Term Explorer SpellBase@Errore di espansione di Aspell. Aspell expansion error. SpellWpErrore di inizializzazione aspell. Aspell e' installato?)Aspell init failed. Aspell not installed?SpellW0Nessun epansione trovataNo expansion foundSpellW(Espressione regolareRegexpSpellW&Ortografia/FoneticaSpelling/PhoneticSpellW.Espansione grammaticaleStem expansionSpellWTermineTermSpellWCaratteri jolly WildcardsSpellWpImpossibile formare la lista di espansione per la lingua#error retrieving stemming languagesSpellWvLa directory selezionata non sembra essera un indice Xapian;The selected directory does not appear to be a Xapian index UIPrefsDialogXLa directory selezionata e' gia' nella lista3The selected directory is already in the index list UIPrefsDialog<Questo e' l'indice principale!This is the main/local index! UIPrefsDialogImpossibile formare la lista delle lingue per l'espansione grammaticale#error retrieving stemming languages UIPrefsDialog ChiudiCloseViewActionBase>Applicazione di visualizzazioneNative ViewersViewActionBase\Impossibile scrivere il file di configurazioneCan't write configuration fileconfgui::ConfIndexWChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLWGlobaleGlobalconfgui::ConfSubPanelW Lingua di aspellAspell languageconfgui::ConfTopPanelW@Nome della cartella del databaseDatabase directory nameconfgui::ConfTopPanelWIntervallo in megabite per il salvataggio intermedio dell'indiceIndex flush megabytes intervalconfgui::ConfTopPanelW(Nome del file di log Log file nameconfgui::ConfTopPanelW8Livello di verbosit del logLog verbosity levelconfgui::ConfTopPanelWNMassima occupazione del disco fisso (%)Max disk occupation (%)confgui::ConfTopPanelW Non usare aspellNo aspell usageconfgui::ConfTopPanelW"Indirizzi saltati Skipped pathsconfgui::ConfTopPanelW*Lingue per la radice Stemming languagesconfgui::ConfTopPanelWIl file dove verranno scritti i messaggi.<br>Usa 'stderr' per il terminalePThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWLingue per le quali verr costruito<br>il dizionario delle espansioni radicali.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWLista delle cartelle in cui inizia lindicizzazione recorsiva. Di default la tua home.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWQuesti sono i nomi delle cartelle in cui l'indicizzazione non entra<br>Possono contenere caratteri speciali. Devono corrispondere agli indirizzi visti dal motore di indicizzazione (ad esempio, se la cartella superiore include '/home/io' e '/home' in realt un link a '/usr/home', l'indirizzo corretto che si vuole sltare dovrebbe essere '/home/me/tmp*' e non /home/usr/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWQuesta la percentuale fi occupazione del disco fisso oltre la quale l'indicizzazione si ferma con un errore (per evitare di riempire il disco).<br>0 significa nessun limite (questo il valore di default).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelW@Questo valore regola il volume di dati da indicizzare tra un salvataggio e l'altro.<br>Aiuta a controllare l'uso della memoria. Di default post uguale a 10MbThis value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWQuesto valore regola il numero dei messaggi,>br>dai soli errori a mole indicazioni per il debug.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW$Cartella superioreTop directoriesconfgui::ConfTopPanelW&Annulla&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBaseUna ricerca per [vino rosso] (2 parole) sara' completata come [vino O rosso O (vino FRASE 2 rosso)]. Questo dovrebbe dare la precedenza ai risultati che contengono i termini esattamente come sono stati scritti.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBaseSeleziona tutti Activate AlluiPrefsDialogBaseAggiungi indice Add indexuiPrefsDialogBase"Applica modifiche Apply changesuiPrefsDialogBaseInizia automaticamente una ricerca semplice digitando uno spazio.-Auto-start simple search on whitespace entry.uiPrefsDialogBasejAggiungi automaticamente frase alle ricerche semplici+Automatically add phrase to simple searchesuiPrefsDialogBase"Deseleziona tuttiDeactivate AlluiPrefsDialogBase"Annulla modificheDiscard changesuiPrefsDialogBaseDevo sintetizzare un riassunto anche se il documento sembra ne abbia uno?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBase>Devo cercare di costruire i riassunti per le voci nell'elenco dei risultati usando il contesto dei termini di ricerca? Puo' essere lento per grossi documenti..zDo we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents.uiPrefsDialogBaseHCostruisci dinamicamente i riassuntiDynamically build abstractsuiPrefsDialogBaseIndici esterniExternal IndexesuiPrefsDialogBaseHelvetica-10 Helvetica-10uiPrefsDialogBaseDimensione massima del testo da evidenziare nell'anteprima (megabytes)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBase<Numero di risultati per pagina"Number of entries in a result pageuiPrefsDialogBaseApre una finestra di dialogo per selezionare i fonts della lista dei risultati-Opens a dialog to select the result list fontuiPrefsDialogBasedRicorda lo stato dell'impostazione di ordinamento.Remember sort activation state.uiPrefsDialogBasetRimuovi dalla lista. Non ha effetto sull'indice del disco.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase&Rimuovi selezionatiRemove selecteduiPrefsDialogBaseJSostituisci i riassunti dei documenti Replace abstracts from documentsuiPrefsDialogBaseRipristinaResetuiPrefsDialogBaseVRipristina i font della lista dei risultati1Resets the result list font to the system defaultuiPrefsDialogBase@Fonts per la lista dei risultatiResult list fontuiPrefsDialogBase0Parametri per la ricercaSearch parametersuiPrefsDialogBase^Inizia aprendo la finestra di ricerca avanzata.'Start with advanced search dialog open.uiPrefsDialogBase6Linguaggio per l'espansioneStemming languageuiPrefsDialogBaseZNumero di parole di contesto per il riassunto Synthetic abstract context wordsuiPrefsDialogBaseBNumero caratteri per il riassunto$Synthetic abstract size (characters)uiPrefsDialogBaseTesti di lunghezza superiore a questa non vengono evidenziati nella preview (troppo lento).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBase&Commuta selezionatiToggle selecteduiPrefsDialogBase$Interfaccia utenteUser interfaceuiPrefsDialogBase"Preferenze utenteUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_cs.qm0000644000175000017500000026244412602163537016617 0ustar dockesdockes.csTDo2uN5XMC|X4`^h7Gltnmw;wm~H׵v/s cxCn#uuͺ LSI ؅h sp#ev vw 5>w 5Ʉw 5ͦwU.Tֳ 6cZf34'ͼuDKggiN׸~O;U6DUje( T!DM(&9.NvY7%`=dM?døG$JUYJUYYU[ul_nQu<%ʷ~3ʗ`ʗFa^?L59xdJg;AD%A2B c2<.nd;[<|LNBX4Se 2vh(Pb"3 ZI8IhKn+ߤ6ff+f3 ,,88W6Wdy%3y%;΄: #;X|6W2̔ +ii -ZzC-)TLYB9}BSϪko'r?)r|ky,)<l"O,3ASâ :RRguǢz@I^~C>cP_`M:f$" :UKN p h/u9PEv2kQT#m>BhK %Enp7,S^[?XnD!٧w)c)C1w!v#+P7I^{<~FW#YFN8\H:"yB_guMapf 8l|Nwyϗ¥n 0JB zlyÓtÓtrȍɆtTN]87 #A3ej,ys:uGGNxJnQq}}qJ;EƊQ0Kc2̈@ӟgJE*c 䴥:?E[ T H -(7 9Zy, ;3 Db K ]# cC| km lMe S { qD   7? 9 ü>IK 3: n} 2& *Nk :^ c *R54 +< 6 >V@ G.~MD `P ` aEQ cE d8 yj< I+ u VT0 Cz  ? ^  ԅ a ye3 TH/ g ,x+0 =!R. Kj T|cg hg t9!    l Σ$ r{Q : ٷ! ۷n 3D ?A Vd  'И +bC|3 / 9ɝ L*& P֙M RV T#v V \iCK ] `F h vh {lH !Y !Y] W b ~ ) i A b /j ~@ N ѕ m 'RN - 8, F OEL ]8 ]A mC@< u0 y3 y~ 3K ȩ5a u* P P 5dE f 3 7a/ 3 Ւ6 H Q5 £ q?%n}/.8bض9[<R':Q~IW"xY~s[s4\4e3g3p~ar '6!.cmc |u|N' l]LiU_Vaechny vrazy All clauses AdvSearch Nkter z vrazo Any clause AdvSearchZ`patn pYpona nsobitele ve filtru velikosti$Bad multiplier suffix in size filter AdvSearchMultimediamedia AdvSearch Zprvamessage AdvSearchJinother AdvSearchPYedstaven presentation AdvSearchTabulky spreadsheet AdvSearchTexttext AdvSearch<----- Vae <----- All AdvSearchBase<----- Vbr <----- Sel AdvSearchBase"PYidat nov vraz Add clause AdvSearchBase"Pokro il hlednAdvanced search AdvSearchBaseVae ----> All ----> AdvSearchBase:Vaechna pole napravo, kter nejsou przdn, budou spojovna spojenmi AND (volba "Vaechny vrazy") nebo OR (volba "Nkter z vrazo"). <br>Typy pol "Jakkoli" "Vae" a "}dn" mohou pYijmout sms jednoduchch slov, a vty uzavYen dvojitmi uvozovkami.<br>Pole bez dat jsou pYehl~ena.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions.
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBaseProchzetBrowse AdvSearchBasePodle skupin By categories AdvSearchBaseVZaakrtnte pro zapnut filtrovn podle dat'Check this to enable filtering on dates AdvSearchBasepZaakrtnte pro zapnut filtrovn podle souborovch typo,Check this to enable filtering on file types AdvSearchBasebZaakrtnte pro zapnut filtrovn podle velikost'Check this to enable filtering on sizes AdvSearchBasenZaakrtnte pro pou~vn skupin souboro msto MIME typo;Check this to use file categories instead of raw mime types AdvSearchBase ZavYtClose AdvSearchBase*Smazat posledn vraz Delete clause AdvSearchBaseHZadejte zkladn adresY pro hlednEnter top directory for search AdvSearchBaseFiltrovatFilter AdvSearchBaseFiltrovat data Filter dates AdvSearchBase&Filtrovat velikosti Filter sizes AdvSearchBase NajtFind AdvSearchBaseOdFrom AdvSearchBase2PYehl~en souborov typyIgnored file types AdvSearchBaseObrtitInvert AdvSearchBase"Nejvta velikost Max. Size AdvSearchBasexNejvta velikost: Mo~ete pou~t k/K,m/M,g/G jako nsobitele4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase"Nejmena velikost Min. Size AdvSearchBasexNejmena velikost: Mo~ete pou~t k/K,m/M,g/G jako nsobitele4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase.Omezit souborovch typoRestrict file types AdvSearchBaselOmezit vsledky na soubory v nsledujcm podadresYi:%Restrict results to files in subtree: AdvSearchBase&Ulo~it jako vchozSave as default AdvSearchBasezHledat <br>dokumenty<br>, kter splHuj nsledujc hlediska:'Search for
documents
satisfying: AdvSearchBase,Hledan souborov typySearched file types AdvSearchBaseVbr -----> Sel -----> AdvSearchBaseSpustit hledn Start Search AdvSearchBaseDoTo AdvSearchBase<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> dvkov rejstYkovac rozvrh (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ka~d pole mo~e obsahovat zstupn symbol (*), jednoduchou  selnou hodnotu,  rkou oddlen seznamy (1,3,5) a rozsahy (1-7). Obecnji, pole se budou pou~vat <span style=" font-style:italic;">jak je</span> uvnitY souboru crontab, a lze pou~t plnou stavbu crontab, podvejte se na crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />NapYklad, zadn <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Dny, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> a <span style=" font-family:'Courier New,courier';">15</span> v <span style=" font-style:italic;">Minuty</span> spust rejstYkovn (recollindex) ka~d den v 12:15 dopoledne a 7:15 odpoledne</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Rozvrh s velmi  astm spuatnm je pravdpodobn mn  inn ne~ je rejstYkovn ve skute nm  ase.</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolW<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Klepnte na <span style=" font-style:italic;">Zakzat</span> pro zastaven automatickho dvkovho rejstYkovn, <span style=" font-style:italic;">Povolit</span> pro jeho zapnut, <span style=" font-style:italic;">Zruait</span>, aby vae zostalo beze zmny.</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolWDialog Cron Cron Dialog CronToolWXDny v tdnu (* nebo 0-7, 0 nebo 7 je nedle))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWZakzatDisable CronToolWPovolitEnable CronToolWtChyba pYi instalaci zznamu cron. `patn skladba v polch?3Error installing cron entry. Bad syntax in fields ? CronToolW(Hodiny (* nebo 0-23)Hours (* or 0-23) CronToolWZd se, ~e pro recollindex existuj ru n upraven zznamy, nelze upravit crontabPIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWMinuty (0-59)Minutes (0-59) CronToolW DialogDialog EditDialog"Chyba v nastaven Config error EditTransMstn cesta Local path EditTransPovodn cesta Original path EditTransCesta ke zdroji Source path EditTrans PYidatAdd EditTransBase ZruaitCancel EditTransBase SmazatDelete EditTransBasePYeklady cestPath Translations EditTransBase Ulo~itSave EditTransBaseVyberte jeden nebo vce datovch typo a pou~ijte ovldac prvky v rme ku n~e pro zmnu zposobu, jakm jsou zpracovnykSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBase8Nastaven pYeklado cest pro Setting path translations for  EditTransBase <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Zd se, ~e rejstYk pro toto nastaven neexistuje.</span><br /><br />Pokud chcete pouze zrejstYkovat svoj domovsk adresY sadou rozumnch vchozch nastaven, stisknte tla tko <span style=" font-style:italic;">Spustit rejstYkovn nyn</span>. Podrobnosti budete moci upravit pozdji. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Pokud chcete mt vta dohled, pou~ijte nsledujc odkazy pro upraven nastaven rejstYkovn a rozvrhu.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">K tmto nstrojom lze pYistupovat pozdji v nabdce <span style=" font-style:italic;">Nastaven</span>.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialog:Prvn nastaven rejstYkovnFirst indexing setupFirstIdxDialog.Nastaven rejstYkovnIndexing configurationFirstIdxDialog(Rozvrh rejstYkovnIndexing scheduleFirstIdxDialog4Spustit rejstYkovn nynStart indexing nowFirstIdxDialog"Toto vm umo~n nastavit adresYe, kter chcete rejstYkovat, a dala parametry, jako jsou cesty pro vylou en soubory, vchoz znakov sady atd.This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialogFToto vm umo~n zvolit mezi dvkovm rejstYkovnm a rejstYkovnm ve skute nm  ase, a nastavit automatick rozvrh pro dvkov rejstYkovn (za pou~it cronu).This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog $<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> rejstYkovn mo~e b~et nepYetr~it, soubory se rejstYkuj pYi jejich zmn, nebo b~et v samostatnch intervalech. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> etba pYru ky vm mo~e pomoci pYi rozhodovn se mezi tmito pYstupy (stisknte F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Tento nstroj vm mo~e pomoci s nastavenm rozvrhu pro automatizaci bho dvkovho rejstYkovn, nebo spustit rejstYkovn ve skute nm  ase, kdy~ se pYihlste (nebo oboj, co~ zYdkakdy dv smysl). </p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedWRozvrh cronCron scheduling IdxSchedWRozhodnte, zda se rejstYkovn ve skute nm  ase spust, kdy~ se pYihlste (pouze pro vchoz rejstYk).ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedW>Nastaven rozvrhu rejstYkovnIndex scheduling setup IdxSchedWPSpuatn rejstYkovn ve skute nm  aseReal time indexing start up IdxSchedWNstroj vm umo~n rozhodnout se, kdy m rejstYkovn b~et, a nainstaluje zznam crontab._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedW DialogDialog ListDialog$Seskupovac oknkoGroupBox ListDialogSoubor "history" je poakozen nebo nezapisovateln/ne iteln. ProvYte jej, prosm, anebo jej odstraHte: K"history" file is damaged or un(read)writeable, please check or remove it: MainFNenastaven ~dn databzov adresY No db directory in configurationMain &Dala&NextPreview&PYedchoz &PreviousPreview&Hledat: &Search for:PreviewDChyba pYi rejstYkovn dokumentu 0Can't turn doc into internal representation for Preview ZruaitCancelPreviewVyprzdnitClearPreviewZavYt kartu Close TabPreview2VytvY se nhledov textCreating preview textPreview6Chyba pYi nahrvn souboruError while loading filePreviewHNhledov text se nahrv do editoru Loading preview text into editorPreviewLDbt na &psan velkch a malch psmen Match &CasePreview4Chyb program s npovdou:Missing helper program: PreviewKoprovatCopyPreviewTextEditZalomit Ydky Fold linesPreviewTextEdit"Zachovat odsazenPreserve indentationPreviewTextEditTiskPrintPreviewTextEdit2Vytisknout nynja nhledPrint Current PreviewPreviewTextEdit4Ulo~it dokument do souboruSave document to filePreviewTextEditVybrat vae Select AllPreviewTextEditUkzat pole Show fieldsPreviewTextEditUkzat obrzek Show imagePreviewTextEdit$Ukzat hlavn textShow main textPreviewTextEdit(<b>Vlastn podstromyCustomised subtreesQObject<i>Parametry, kter nsleduj, jsou nastaveny bu na nejvyaa rovni, pokud nic<br>, nebo pokud je v seznamu vae vybrn przdn Ydek, nebo pro vybran podadresY.<br>AdresYe mo~ete pYidat anebo odebrat klepnutm na tla tka +/-.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject4Sledovat symbolick odkazyFollow symbolic linksQObjectBhem rejstYkovn sledovat symbolick odkazy. Vchoz nastaven je ne kvoli vyvarovan se dvojitho rejstYkovnTFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject"Celkov parametryGlobal parametersQObjectHRejstYkovat vaechny souborov nzvyIndex all file namesQObjectRejstYkovat vaechny nzvy souboro, jejich~ obsah nelze ur it nebo zpracovat (~dn nebo nepodporovan MIME typ). Vchoz hodnota je ano}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject Mstn parametryLocal parametersQObject"Parametry hlednSearch parametersQObject PYesko en nzvy Skipped namesQObjectSeznam podadresYo v rejstYkovan hierarchii <br>kde nkter parametry je potYeba nov vymezit. Vchoz: przdn.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectToto jsou vzory pro nzvy souboro nebo adresYo, kter se nemaj rejstYkovat.LThese are patterns for file or directory names which should not be indexed.QObjectHistorie webu Web historyQObject&OtevYt&OpenQWidgetF&OtevYt rodi ovsk dokument/slo~ku&Open Parent document/folderQWidget&Nhled&PreviewQWidget$&Zapsat do souboru&Write to FileQWidget0Koprovat nzev &souboruCopy &File NameQWidget.Koprovat adresu (&URL) Copy &URLQWidget0Najt &podobn dokumentyFind &similar documentsQWidget,OtevYt okno s r&yvkyOpen &Snippets windowQWidgetJNhled na &rodi ovsk dokument/slo~kuPreview P&arent document/folderQWidget.Ulo~it vbr do souboroSave selection to filesQWidgetDUkzat podYzen dokumenty/pYlohyShow subdocuments / attachmentsQWidget<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> rejstYkovn mo~e bt nastaveno tak, aby b~elo jako dmon. Soubory jsou aktualizovny pYi jejich zmn, ve skute nm  ase. Zskte tak v~dy nejnovja rejstYk, ale prostYedky systmu se pYi tom pou~vaj nepYetr~it.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>.

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWJSpustit rejstYkovacho dmona ihned.%Also start indexing daemon right now.RTIToolW|Soubor automatickho spuatn smazn. Zabt i sou asn proces?2Autostart file deleted. Kill current process too ?RTIToolW Nelze vytvoYit: Can't create: RTIToolWBNepodaYilo se spustit recollindexCould not execute recollindexRTIToolWSmazn souboru Deleting fileRTIToolWMazn: Deleting: RTIToolWhAutomatick spuatn rejstYkovn ve skute nm  ase"Real time indexing automatic startRTIToolWBOdstrann automatickho spuatnRemoving autostartRTIToolW"Nahrazen souboruReplacing fileRTIToolWNahrazen: Replacing: RTIToolWzSpustit rejstYkovacho dmona s mm sezenm pracovn plochy..Start indexing daemon with my desktop session.RTIToolWVarovnWarningRTIToolWVaechny jazyky(all languages)RclMain6ydn rozaYen kmene slova (no stemming)RclMain"O programu Recoll About RecollRclMainVaeAllRclMainChybov pYkaz pro prohl~e pro %1: [%2] ProvYte soubor mimeconfCBad viewer command line for %1: [%2] Please check the mimeview fileRclMain8Nelze pYistoupit k souboru: Can't access file: RclMain:Nelze vytvoYit nhledov oknoCan't create preview windowRclMain.Nelze rozbalit soubor: Can't uncompress file: RclMainRNelze obnovit rejstYk: b~ rejstYkova #Can't update index: indexer runningRclMainjNelze vythnout dokument nebo vytvoYit do asn soubor0Cannot extract document or create temporary fileRclMain>Nelze najt rodi ovsk dokumentCannot find parent documentRclMainL}dn informace o dokumentu v databzi+Cannot retrieve document info from databaseRclMainZavYenClosingRclMainTObsah byl rejstYkovn pro tyto MIME typy:.Content has been indexed for these mime types:RclMainNepodaYilo se otevYt vnja rejstYk. Databze neotevYena. ProvYte seznam vnjach rejstYko.HCould not open external index. Db not open. Check external indexes list.RclMain$Historie dokumentuDocument historyRclMain HotovoDoneRclMain$Zdvojen dokumentyDuplicate documentsRclMain"Smazn rejstYku Erasing indexRclMain ChybaErrorRclMainProvd se: [ Executing: [RclMainPro vaae souborov typy jsou potYeba vnja programy/pYkazy, kter ale nebyly nalezeny, jak byly ulo~eny pYi poslednm rejstYkovn v pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMainHistorick data History dataRclMain$RejstYk neotevYenIndex not openRclMain8Chyba pYi dotazu na rejstYkIndex query errorRclMain.RejstYkovan MIME typyIndexed MIME TypesRclMain8RejstYkovn jeat neb~eloIndexing did not run yetRclMain4RejstYkovn se nezdaYiloIndexing failedRclMain RejstYkuje se: Indexing in progress: RclMain.RejstYkovn pYeruaenoIndexing interruptedRclMain,Chyb pomocn programyMissing helper programsRclMain DohledMonitorRclMainh}dn vnja prohl~e nebyl nastaven pro MIME typ [-No external viewer configured for mime type [RclMainBNenalezeny ~dn pomocn programyNo helpers found missingRclMain2Nenalezeny ~dn vsledkyNo results foundRclMain }dnNoneRclMainVy istitPurgeRclMainHledn b~.<br>Kvoli omezenm rejstYkovac knihovny<br>zruaen ukon programeQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMainVsledky Query resultsRclMainPNastavit rejstYk znovu a za t od nuly?(Reset the index and start from scratch ?RclMain,Po et vsledko (odhad)Result count (est.)RclMainUlo~it soubor Save fileRclMainKmeny slovStemdbRclMain.Zastavit &rejstYkovnStop &IndexingRclMain:PodYzen dokumenty a pYlohySub-documents and attachmentsRclMainNynja rejstYkovac proces nebyl spuatn z tohoto rozhran. Klepnte na OK pro jeho zabit, nebo na Zruait, aby byl ponechn smyThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainProhl~e stanoven v MIME zobrazen pro %1: %2 nenalezen. Chcete spustit dialog s nastavenm?hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainZTyto adresy ( | ipath) sdlej toto~n obsah:-These Urls ( | ipath) share the same content:RclMain4Toto hledn u~ nen  inn"This search is not active any moreRclMainNeznmUnknownRclMain"Obnovit &rejstYk Update &IndexRclMain ObnovaUpdatingRclMainPYkaz pro prohl~e pro %1 stanovuje jak hodnotu souboru tak hodnotu rodi ovskho souboru: nepodporovnoQViewer command line for %1 specifies both file and parent file value: unsupportedRclMainVarovnWarningRclMainLChyba pYi vyhledn jazyka kmene slova#error retrieving stemming languagesRclMainFiltrovnofilteredRclMainMultimediamediaRclMain ZprvamessageRclMainJinotherRclMainPYedstaven presentationRclMainTYdnosortedRclMainTabulky spreadsheetRclMainTexttextRclMain$&O programu Recoll &About Recoll RclMainBase$&Pokro il hledn&Advanced Search RclMainBase6&Vymazat historii dokumentu&Erase document history RclMainBase2&Vymazat historii hledn&Erase search history RclMainBase&Soubor&File RclMainBase&Cel obrazovka &Full Screen RclMainBaseBNastaven u~ivatelskho roz&hran&GUI configuration RclMainBase&Npovda&Help RclMainBase(Nastaven &rejstYku&Index configuration RclMainBase*Rozvrh &rejstYkovn&Indexing schedule RclMainBase&Nastaven &Preferences RclMainBase0&Sestavit rejstYk znovu&Rebuild index RclMainBase&Vsledky&Results RclMainBase4&Ukzat rejstYkovan typy&Show indexed types RclMainBaseD&Ukzat chybjc pomocn programy&Show missing helpers RclMainBase$Parametry &tYdn&Sort parameters RclMainBase&Nstroje&Tools RclMainBase*&U~ivatelsk pYru ka &User manual RclMainBase2Pokro il/Slo~en hlednAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase$Historie dokumentuDocument History RclMainBase&&Historie dokumentuDocument &History RclMainBase&Ukon itE&xit RclMainBase@Dialog pro &vnja rejstYkovnE&xternal index dialog RclMainBase>Dialog pro vnja rejstYkovnExternal index dialog RclMainBaseF11F11 RclMainBasePrvn strana First Page RclMainBasePrvn strana First page RclMainBase$Na celou obrazovku Full Screen RclMainBase<Jt na prvn stranu s vsledkyGo to first page of results RclMainBaseDala strana Next Page RclMainBaseDala strana Next page RclMainBase.Dala strana s vsledkyNext page of results RclMainBase,O stranu dolo (PgDown)PgDown RclMainBase,O stranu nahoru (PgUp)PgUp RclMainBase PYedchoz strana Previous Page RclMainBase PYedchoz strana Previous page RclMainBase6PYedchoz strana s vsledkyPrevious page of results RclMainBase RecollRecoll RclMainBaseVUlo~it jako soubor CSV (tabulkov dokument)Save as CSV (spreadsheet) file RclMainBaseUlo~it vsledek do souboru, jej~ mo~ete nahrt jako seait s listy v tabulkovm kalkultoru@Saves the result into a file which you can load in a spreadsheet RclMainBaseShift+PgUp Shift+PgUp RclMainBase4Ukzat podrobnosti hlednShow Query Details RclMainBase&Ukzat jako tabulku Show as table RclMainBaseUkzat vsledky v tabulce na zposob seaitu s listy v tabulkovm kalkultoru(Show results in a spreadsheet-like table RclMainBasePRoztYdit podle data, nejprve nejnovjaSort by date, newest first RclMainBaseNRoztYdit podle data, nejprve nejstaraSort by date, oldest first RclMainBasebRoztYdit podle data od nejnovjaho po nejstara#Sort by dates from newest to oldest RclMainBasebRoztYdit podle data od nejstaraho po nejnovja#Sort by dates from oldest to newest RclMainBase"Parametry tYdnSort parameters RclMainBase$Prozkumnk &vrazoTerm &explorer RclMainBase4Nstroj prozkumnka vrazoTerm explorer tool RclMainBase"Obnovit &rejstYk Update &index RclMainBase VtahAbstract RecollModel AutorAuthor RecollModel DatumDate RecollModelDatum a  as Date and time RecollModelDatum dokumentu Document date RecollModel$Velikost dokumentu Document size RecollModelDatum souboru File date RecollModelNzev souboru File name RecollModel Velikost souboru File size RecollModel IpathIpath RecollModelKl ov slovaKeywords RecollModelTyp MIME MIME type RecollModel MtimeMtime RecollModel(Povodn znakov sadaOriginal character set RecollModel(Hodnocen zva~nostiRelevancy rating RecollModel NzevTitle RecollModelAdresa (URL)URL RecollModel (ukzat hledn) (show query)ResListX<p><b>Nebyly nalezeny ~dn vsledky</b><br>

No results found
ResListd<p><i>Nhradn pravopis (pYzvuky potla eny): </i>4

Alternate spellings (accents suppressed): ResList:<p><i>Nhradn pravopis: </i>

Alternate spellings: ResList$Historie dokumentuDocument historyResListDokumenty DocumentsResList DalaNextResListOtevYtOpenResList NhledPreviewResListPYedchozPreviousResList*Podrobnosti o hledn Query detailsResList,Po et vsledko (odhad)Result count (est.)ResListVsledky Result listResList ryvkySnippetsResList&Nedostupn dokumentUnavailable documentResListproforResListmimo alespoHout of at leastResList&Smazat sloupec&Delete columnResTable.Nastavit tYdn &znovu &Reset sortResTable &Ulo~it jako CSV &Save as CSVResTable&PYidat sloupec "%1"Add "%1" columnResTable>Nelze otevYt/vytvoYit soubor: Can't open/create file: ResTable<Ulo~it tabulku jako soubor CSVSave table to CSV fileResTableVaechny vrazy All termsSSearchJakkoli vrazAny termSSearch,`patn Yetzec hlednBad query stringSSearchvZadejte ~olkov vraz (zstupn symbol) pro nzev souboru.$Enter file name wildcard expression.SSearchZde zadejte hledan vrazy. Stisknte ESC SPC pro doplnn sou asnho vrazu.FEnter search terms here. Type ESC SPC for completions of current term.SSearchNzev souboru File nameSSearch>Nen dostupn ~dn dala pame Out of memorySSearchJazyk hlednQuery languageSSearch(Vyberte typ hledn.Choose search type. SSearchBase SmazatClear SSearchBase Ctrl+SCtrl+S SSearchBaseZde zadejte hledan vrazy. Stisknte ESC SPC pro doplnn sou asnho vrazu.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase*Smazat hledan zznamErase search entry SSearchBaseSSearchBase SSearchBase SSearchBase HledatSearch SSearchBaseSpustit hledn Start query SSearchBaseVaeAll SearchClauseWJakkolivAny SearchClauseWNzev souboru File name SearchClauseW}dn poleNo field SearchClauseW }dnNone SearchClauseWdPo et slov, kter se smj nachzet mezi hledanmiHNumber of additional words that may be interspersed with the chosen ones SearchClauseWTato slovaPhrase SearchClauseWPodobn vrazy Proximity SearchClauseWjVyberte druh hledn, se kterm se slova budou hledat>Select the type of query that will be performed with the words SearchClauseWHledat:Find:Snippets DalaNextSnippetsPYedchozPrevSnippets ryvkySnippetsSnippets HledatSearch SnippetsW&ZavYt&Close SpellBase&Rozbalit &Expand  SpellBasePYzvukyAccents SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBaseFRozliaovn velkch a malch psmenCase SpellBase ShodaMatch SpellBase6}dn informace o databzi. No db info. SpellBase"Prozkumnk vrazo Term Explorer SpellBase%1 vsledky(o) %1 resultsSpellW0Chyba rozaYen Aspell. Aspell expansion error. SpellWjChyba pYi spuatn Aspellu. Aspell nen nainstalovn?)Aspell init failed. Aspell not installed?SpellWBPromrn po et vrazo na dokumentAverage terms per documentSpellW8Velikost adresYe s databzDatabase directory sizeSpellWDok. / Tot. Doc. / Tot.SpellWRejstYk: %1 dokumento, promrn dlka %2 vrazy(o). %3 vsledky(o)7Index: %1 documents, average length %2 terms.%3 resultsSpellWPolo~kaItemSpellWVSeznam byl zkrcen abecedn, nkter  etn 1List was truncated alphabetically, some frequent SpellW4Dlka nejdelaho dokumentuLongest document lengthSpellWTypy MIME: MIME types:SpellW4Nenalezeno ~dn rozaYenNo expansion foundSpellWPo et dokumentoNumber of documentsSpellWRegulrn vrazRegexpSpellW6Ukzat statistiku rejstYkuShow index statisticsSpellW4Dlka nejmenaho dokumentuSmallest document lengthSpellW(Pravopis/HlskoslovSpelling/PhoneticSpellW*RozaYen kmene slovaStem expansionSpellW VrazTermSpellWHodnotaValueSpellW Zstupn symboly WildcardsSpellWLChyba pYi vyhledn jazyka kmene slova#error retrieving stemming languagesSpellW\pojmy mohou chybt. Zkuste pou~t dela koYen..terms may be missing. Try using a longer root.SpellWPJe potYeba vybrat alespoH jeden rejstYk$At most one index should be selected UIPrefsDialogNelze pYidat rejstYk s odlianou volbou pro velikost psma/diakritiku>Cant add index with different case/diacritics stripping option UIPrefsDialog VybratChoose UIPrefsDialog^Zhlav seznamu s vsledky (vchoz je przdn)%Result list header (default is empty) UIPrefsDialogFormt odstavce seznamu s vsledky (vymazat vaechny pro znovunastaven na vchoz)Toto je hlavn/mstn rejstYk!This is the main/local index! UIPrefsDialogLChyba pYi vyhledn jazyka kmene slova#error retrieving stemming languages UIPrefsDialog^Mn se zznamy s odlianmi nynjami hodnotami.Changing entries with different current values ViewAction PYkazCommand ViewActionVchoz plochaDesktop Default ViewActionTyp MIME MIME type ViewAction(<b>Nov hodnoty:</b>New Values:ViewActionBaseN innost (przdn -> vchoz pro Recoll) Action (empty -> recoll default)ViewActionBase.Pou~t na nynja vbrApply to current selectionViewActionBase ZavYtCloseViewActionBaseJVjimka pro nastaven pracovn plochy Exception to Desktop preferencesViewActionBaseProhl~e eNative ViewersViewActionBase AktionRecoll action:ViewActionBaseVyberte jeden nebo vce datovch typo a pou~ijte ovldac prvky v rme ku n~e pro zmnu zposobu, jakm jsou zpracovnykSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseVyberte jeden nebo vce MIME typo a pou~ijte ovldac prvky v rme ku s tla tky pro zmnu zposobu, jakm jsou zpracovny.lSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBaseVybrat stejn Select sameViewActionBaseZPou~t nastaven pracovn plochy jako vchoz"Use Desktop preferences by defaultViewActionBasecurrent value current valueViewActionBasePovol rejstYkovn Firefoxem navatvench strnek.<br>(tak je potYeba, abyste nainstalovali pYdavn modul Recollu pro Firefox)\Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelWxZznamy budou optn pou~ity, jakmile bude velikost dosa~ena1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWrNejvta velikost pro ukldn internetovch strnek (MB) Max. size for the web store (MB)confgui::ConfBeaglePanelW8Zpracovat Yadu historie WEBuProcess the WEB history queueconfgui::ConfBeaglePanelW"Nzev pro adresY, kam se maj ukldat kopie navatvench internetovch strnek.<br>Neabsolutn cesta je vzata relativn k adresYi s nastavenm.The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelW^Nzev adresYe pro ukldn internetov strnkyWeb page store directory nameconfgui::ConfBeaglePanelW@Nelze zapsat soubor s nastavenmCan't write configuration fileconfgui::ConfIndexW VybratChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLWh<p>Zapnout automaticky rozliaovn velkch a malch psmen, kdy~ zznam obsahuje velk psmena (mimo na prvnm mst). Jinak pro muste pou~t jazyk dotazu a modifiktor <i>C</i>.

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW|<p>Zapnout automaticky rozliaovn diakritickch znamnek, kdy~ hledan pojem obsahuje znaky a akcenty (ne v unac_except_trans). Jinak pro muste pou~t jazyk dotazu a modifiktor <i>D</i>.

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelW<p>Nejvta po et rozaYen pro jeden vraz (napY. pYi pou~it ~olko). Standardn vchoz hodnota 10 000 je rozumn a zabrn tomu, aby se hledan pojem jevil jako zamrzl, zatmco je prochzen seznam pojmo.

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelW<p>Nejvta po et zkladnch vrazo, kter pYidme do jednoho dotazu Xapian. V nkterch pYpadech se mohou vsledky rozaYen vrazu vynsobit, a my se chceme vyvarovat nadbyte n spotYeb pamti. Standardn vchoz hodnota 100 000 by mla ve vtain pYpado naprosto posta ovat a hodit se k typickmu sou asnmu sestaven zaYzen (hardware).5

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWVAutomaticky rozliaovat velk a mal psmena$Automatic character case sensitivityconfgui::ConfSearchPanelWVAutomaticky rozliaovat diakritick znamnka Automatic diacritics sensitivityconfgui::ConfSearchPanelW8Nejvta po et vrazo XapianMaximum Xapian clauses countconfgui::ConfSearchPanelW>Nejvta po et rozaYen vrazuMaximum term expansion countconfgui::ConfSearchPanelWVnja filtry pracujc dle ne~ po tak dlouhou dobu budou pYeruaeny. Je to pro ten zYdkav pYpad (napY. postscript), kdy by dokument mohl zapY init vejit filtru do smy ky. Nastavte na -1 pro ~dn omezen. External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelWCelkovGlobalconfgui::ConfSubPanelWPokud je nastavena tato hodnota (nerovn se -1), textov soubory budou pro rejstYkovn rozdleny na kousky o tto velikosti. To pomo~e pYi prohledvn velmi velkch textovch souboro (napY. souboro se zpisem).If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWRNejvta velikost zabalenho souboru (KB)Max. compressed file size (KB)confgui::ConfSubPanelWHNejvta  as na proveden filtru (s)Max. filter exec. time (S)confgui::ConfSubPanelWPNejvta velikost textovho souboru (KB)Max. text file size (MB)confgui::ConfSubPanelWNVelikost strnky textovho souboru (KB)Text file page size (KB)confgui::ConfSubPanelW"Tato hodnota nastavuje prh, za kterm nebudou zabalen soubory zpracovvny. Nastavte na -1 pro ~dn omezen, na 0 pro vobec ~dn rozbalovn.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelW^Tato hodnota nastavuje prh, za kterm nebudou textov soubory zpracovvny. Nastavte na -1 pro ~dn omezen. Je to kvoli vylou en obYch souboro se zpisem z rejstYkovn.This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelW<p>Toto jsou vjimky pro mechanismus unac, kter ve vchozm nastaven odstraHuje vaechny diakritick znaky a nahrazuje je kanonickmi obdobami. Toto odstraHovn akcento mo~ete (v zvislosti na vaa Ye i) pro nkter znaky potla it a zadat dodate n nahrazen, napY. pro ligatury. V ka~dm mezerou oddlenm zznamu je prvn znak zdrojovm (vchozm) a zbytek je nahrazen.l

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelWJazyk aspelluAspell languageconfgui::ConfTopPanelW2Nzev adresYe s databzDatabase directory nameconfgui::ConfTopPanelW6Zak~e pou~vn aspellu pro vytvoYen pYibli~n podoby pravopisu v nstroji prozkumnka vrazo.<br> U~ite n, pokud aspell nen pYtomen anebo nepracuje. Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelWXInterval v megabytech pro vymazn rejstYkuIndex flush megabytes intervalconfgui::ConfTopPanelW6Nzev pro soubor se zpisem Log file nameconfgui::ConfTopPanelW2roveH podrobnosti zpisuLog verbosity levelconfgui::ConfTopPanelW6Nejvta obsazen disku (%)Max disk occupation (%)confgui::ConfTopPanelW"Nepou~vat aspellNo aspell usageconfgui::ConfTopPanelW PYesko en cesty Skipped pathsconfgui::ConfTopPanelW6Jazyky rozaYen kmeno slovStemming languagesconfgui::ConfTopPanelWSoubor, do kterho se zapae vstupn zprva.<br>Pro vstupy na terminl pou~ijte 'stderr'PThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWJazyk pro adresY aspellu. Mlo by to vypadat jako 'en' nebo 'fr' nebo 'cs'...<br>Pokud nen tato hodnota nastavena, pou~ije se pro jej vypo tn prostYed NLS, co~ obvykle pracuje. Pro zskn pYedstavy o tom, co je ve vaaem systmu nainstalovno, napiate 'aspell config' a hledejte soubory .dat v adresYi 'data-dir'. 3The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelW~Jazyky, pro kter se vytvoY <br>adresYe rozaYen kmeno slov.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWSeznam adresYo, ve kterch za n rejstYkovn v etn podslo~ek. Vchoz: adresY Home.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWNzev pro adresY, v nm~ se m ukldat rejstYk.<br>Neabsolutn cesta je vzata relativn k adresYi s nastavenm. Vchoz je 'xapiandb'.The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelWNzvy adresYo, kter se nebudou rejstYkovat.<br>Mo~e obsahovat zstupn symboly (~olky). Mus odpovdat cestm, kter rejstYkova vid (napY. pokud v pa te nch adresYch stoj '/home/me' a '/home' je ve skute nosti odkazem na '/usr/home', potom by byl sprvnm zpisem skippedPath '/home/me/tmp*' a ne '/usr/home/me/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWtJde o procentn podl vyu~vn disku, kdy rejstYkovn sel~e a zastav se (kvoli vyhnut se zaplnn vaaeho disku).<br>0 znamen ~dn omezen (tato hodnota je nastavena jako vchoz).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelW4Tato hodnota upravuje mno~stv dat, kter jsou rejstYkovna mezi splchnutmi na disk.<br>Pomh to Ydit pou~it pamti rejstYkova e. Vchoz je 10 MB This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWTato hodnota upravuje mno~stv zprv,<br>od pouze chyb a~ po velk mno~stv dat zajmavch pro ladn.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW$Po te n adresYeTop directoriesconfgui::ConfTopPanelWVjimky unacUnac exceptionsconfgui::ConfTopPanelWZ&ruait&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBase<BR>
uiPrefsDialogBase <PRE>

uiPrefsDialogBase <PRE> + zalomen
 + wrapuiPrefsDialogBase\Hledn [Je~a Kristus] se zmn na [Je~a OR Kristus OR (Je~a PHRASE 2 Kristus)].
Tmto by mly bt silnji zv~eny vsledky, kter obsahuj pYesn shody s hledanm slovem.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBase2Oddlova
 kousku pYehleduAbstract snippet separatoruiPrefsDialogBaseZapnout vaeActivate AlluiPrefsDialogBasePYidat rejstYk	Add indexuiPrefsDialogBasePou~t zmny
Apply changesuiPrefsDialogBaseAutomaticky spustit jednoduch hledn, kdy~ je do zadvacho pole pro hledn zadno przdn msto (mezera).-Auto-start simple search on whitespace entry.uiPrefsDialogBase^Automatick pYidn vt do jednoduchho hledn+Automatically add phrase to simple searchesuiPrefsDialogBaseetnost vskytu vrazu (procento) pro automatick tvoYen slovnch obrato.Autophrase term frequency threshold percentageuiPrefsDialogBaseVybratChooseuiPrefsDialogBase.Vybrat programy editoroChoose editor applicationsuiPrefsDialogBaseKlepnout pro pYidn dalaho rejstYkovho adresYe do seznamu. Mo~ete vybrat bu adresY s nastavenm pro Recoll nebo rejstYk Xapian.{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBase2Formt data (strftime(3))Date format (strftime(3))uiPrefsDialogBaseVypnout vaeDeactivate AlluiPrefsDialogBaseZakzat automatick doplHovn Qt pYi zadvn v poli pro hledn.*Disable Qt autocompletion in search entry.uiPrefsDialogBaseZahodit zmnyDiscard changesuiPrefsDialogBaseStanoven, zda se m vytvoYit pYehled i tehdy, kdy~ dokument ji~ njak pYehled obsahuje.EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseStanoven, zda se m vytvoYit pYehled pro vsledky v souvislosti s parametrem hledn.
U velkch dokumento mo~e bt pomal.zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBase6VytvYet pYehledy dynamickyDynamically build abstractsuiPrefsDialogBaseRUpravit zhlav html na stran s vsledky#Edit result page html header insertuiPrefsDialogBaseHUpravit Yetzec formtu pro vsledky#Edit result paragraph format stringuiPrefsDialogBasePovolitEnableuiPrefsDialogBase Vnja rejstYkyExternal IndexesuiPrefsDialogBase>Prh 
etnosti (procento), od kterho se vrazy nepou~vaj.
Slovn obraty obsahujc pYlia 
etn vrazy zposobuj vkonnostn pot~e.
PYesko
en vrazy zvtauj vzdlenost slovnho obratu a zmenauj 
innost funkce automatickho hledn slovnho obratu.
Vchoz hodnota je 2 (procenta).Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10Helvetica-10uiPrefsDialogBase.Skrt zdvojen vsledkyHide duplicate results.uiPrefsDialogBase<Zvraznit barvu vrazo hlednHighlight color for query termsuiPrefsDialogBaseJe-li zaakrtnuto, budou vsledky se stejnm obsahem pod jinmi nzvy ukzny jen jednou.XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBaseXdky v PRE textu nejsou zalomeny. PYi pou~it BR dojde ke ztrt nkterch zalomen. Mo~n je to, co chcete styl PRE + zalomen.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBasetNejvta velikost textu zvraznnho pro nhled (megabyty)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBase0Po
et vsledko na stranu"Number of entries in a result pageuiPrefsDialogBaseOtevYe dialog pro vbr souboru CSS se stylovm listem okna s ryvkyAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBase\OtevYe dialog pro vbr psma seznamu vsledko-Opens a dialog to select the result list fontuiPrefsDialogBasedOtevYe dialog pro vbr souboru se stylovm listem-Opens a dialog to select the style sheet fileuiPrefsDialogBasePYeklady cestPaths translationsuiPrefsDialogBase>Prost text do stylu Ydku HTMLPlain text to HTML line styleuiPrefsDialogBasedUpYednostHovat pro nhled HTML pYed prostm textem&Prefer Html to plain text for preview.uiPrefsDialogBasebKouzeln pYpony souborovho nzvu jazyka hledn(Query language magic file name suffixes.uiPrefsDialogBaseFZapamatovat si stav zapnut hlednRemember sort activation state.uiPrefsDialogBase~Odstranit ze seznamu. Nem to ~dn 
inek na ulo~en rejstYk.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase"Odstranit vybranRemove selecteduiPrefsDialogBase>Nahradit pYehledy v dokumentech Replace abstracts from documentsuiPrefsDialogBaseNastavit znovuResetuiPrefsDialogBase@Nastav znovu styl okna s ryvky Resets the Snippets window styleuiPrefsDialogBasexNastav psmo pro seznam s vsledky znovu na vchoz hodnotu1Resets the result list font to the system defaultuiPrefsDialogBaseJNastav stylov list znovu na vchoz!Resets the style sheet to defaultuiPrefsDialogBase"Seznam s vsledkyResult ListuiPrefsDialogBase6Psmo pro seznam s vsledkyResult list fontuiPrefsDialogBase"Hledat pYi psan.Search as you type.uiPrefsDialogBase"Parametry hlednSearch parametersuiPrefsDialogBase0Soubor CSS okna s ryvkySnippets window CSS fileuiPrefsDialogBasexPo spuatn automaticky otevYt dialog pro rozaYen hledn'Start with advanced search dialog open.uiPrefsDialogBase"Jazyk kmene slovaStemming languageuiPrefsDialogBaseStylov listStyle sheetuiPrefsDialogBaseFPo
et souvisejcch slov v pYehledu Synthetic abstract context wordsuiPrefsDialogBasePDlka vytvoYenho pYehledu (po
et znako)$Synthetic abstract size (characters)uiPrefsDialogBaseTexty nad tuto velikost nebudou v nhledu zvrazHovny (pYlia pomal).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBaseSlova v seznamu budou v zznamu jazyka hledn automaticky obrcena na vty ext:xxx.bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase PYepnout vybranToggle selecteduiPrefsDialogBase(U~ivatelsk rozhranUser interfaceuiPrefsDialogBase*U~ivatelsk nastavenUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_fr.ts0000644000175000017500000045005112602163537016623 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        Toutes les clauses
    
    
        Any clause
        Une des clauses
    
    
        texts
        textes
    
    
        spreadsheets
        feuilles de calcul
    
    
        presentations
        présentations
    
    
        media
        multimédia
    
    
        messages
        messages
    
    
        other
        autres
    
    
        Bad multiplier suffix in size filter
        Suffixe multiplicateur incorrect dans un filtre de taille (k/m/g/t)
    
    
        text
        texte
    
    
        spreadsheet
        feuille de calcul
    
    
        presentation
        présentation
    
    
        message
        message
    


    AdvSearchBase
    
        Advanced search
        Recherche avancée
    
    
        Restrict file types
        Restreindre les types de fichier
    
    
        Save as default
        Sauver comme valeur initiale
    
    
        Searched file types
        Types de fichier recherchés
    
    
        All ---->
        Tout ---->
    
    
        Sel ----->
        Sel ----->
    
    
        <----- Sel
        <----- Sel
    
    
        <----- All
        <----- Tout
    
    
        Ignored file types
        Types de fichiers ignorés
    
    
        Enter top directory for search
        Entrer le répertoire où démarre la recherche
    
    
        Browse
        Parcourir
    
    
        Restrict results to files in subtree:
        Restreindre les résultats aux fichiers de l'arborescence:
    
    
        Start Search
        Lancer la recherche
    
    
        Search for <br>documents<br>satisfying:
        Rechercher les <br>documents<br>vérifiant:
    
    
        Delete clause
        Enlever une clause
    
    
        Add clause
        Ajouter une clause
    
    
        Check this to enable filtering on file types
        Cocher pour permettre le filtrage des types de fichiers
    
    
        By categories
        Par catégories
    
    
        Check this to use file categories instead of raw mime types
        Cocher pour utiliser les catégories de fichiers au lieu des types mimes
    
    
        Close
        Fermer
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.
        Tous les champs de droite non vides seront combinés par une conjonction ET (choix "Toutes les clauses") ou OU (choix "Une des clauses"). <br> Les champs de type  "Un de ces mots", "Tous ces mots" et "Aucun de ces mots" acceptent un mélange de mots et de phrases contenues dans des apostrophes "une phrase".<br>Les champs non renseignés sont ignorés.
    
    
        Invert
        Inverser
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        Taille minimum. Vous pouvez utiliser un suffixe multiplicateur: k/K, m/M, g/G.
    
    
        Min. Size
        Taille Min.
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        Taille Maximum. Vous pouvez utiliser un suffixe multiplicateur: k/K, m/M, g/G.
    
    
        Max. Size
        Taille Max.
    
    
        Select
        Sélectionner
    
    
        Filter
        Filtrer
    
    
        From
        À partir de
    
    
        To
        Jusqu'à
    
    
        Check this to enable filtering on dates
        Cocher pour activer le filtrage sur les dates
    
    
        Filter dates
        Filtrer sur les dates
    
    
        Find
        Trouver
    
    
        Check this to enable filtering on sizes
        Cocher pour activer le fitrage sur taille fichier
    
    
        Filter sizes
        Filtrer les tailles
    


    CronToolW
    
        Cron Dialog
        Dialogue Cron
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span>: planification de l'indexation périodique (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Chaque champ peut contenir un joker (*), une simple valeur numérique , des listes ponctuées par des virgules (1,3,5) et des intervalles (1-7). Plus généralement, les champs seront utilisés <span style=" font-style:italic;">tels quels</span> dans le fichier crontab, et la syntaxe générale crontab peut être utilisée, voir la page de manuel crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Par exemple, en entrant <span style=" font-family:'Courier New,courier';">*</span> dans <span style=" font-style:italic;">Jours, </span><span style=" font-family:'Courier New,courier';">12,19</span> dans <span style=" font-style:italic;">Heures</span> et <span style=" font-family:'Courier New,courier';">15</span> dans <span style=" font-style:italic;">Minutes</span>, recollindex démarrerait chaque jour à 12:15 et 19:15</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Un planning avec des activations très fréquentes est probablement moins efficace que l'indexation au fil de l'eau.</p></body></html>
    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        Jours de la semaine (* ou 0-7, 0 ou 7 signifie Dimanche)
    
    
        Hours (* or 0-23)
        Heures (* ou 0-23)
    
    
        Minutes (0-59)
        Minutes (0-59)
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Cliquer <span style=" font-style:italic;">Désactiver</span> pour arrêter l'indexation automatique périodique, <span style=" font-style:italic;">Activer</span> pour la démarrer, <span style=" font-style:italic;">Annuler</span> pour ne rien changer.</p></body></html>
    
    
        Enable
        Activer
    
    
        Disable
        Désactiver
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        Il semble que des entrées créées manuellement existent pour recollindex. Impossible d´éditer le fichier Cron
    
    
        Error installing cron entry. Bad syntax in fields ?
        Erreur durant l'installation de l'entrée cron. Mauvaise syntaxe des champs ?
    


    EditDialog
    
        Dialog
        Dialogue
    


    EditTrans
    
        Source path
        Chemin source
    
    
        Local path
        Chemin local
    
    
        Config error
        Erreur config
    
    
        Original path
        Chemin Originel
    


    EditTransBase
    
        Path Translations
        Traductions de chemins
    
    
        Setting path translations for 
        Ajustement des traductions de chemins pour
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Sélectionner un ou plusieurs types de fichiers, puis utiliser les contrôles dans le cadre ci-dessous pour changer leur traitement
    
    
        Add
        Ajouter
    
    
        Delete
        Supprimer
    
    
        Cancel
        Annuler
    
    
        Save
        Sauvegarder
    


    FirstIdxDialog
    
        First indexing setup
        Paramétrage de la première indexation
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Il semble que l'index pour cette configuration n'existe pas encore.</span><br /><br />Si vous voulez simplement indexer votre répertoire avec un jeu raisonnable de valeurs par défaut, cliquer le bouton <span style=" font-style:italic;">Démarrer l'indexation maintenant</span>. Vous pourrez ajuster les détails plus tard. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Si vous voulez plus de contrôle, utilisez les liens qui suivent pour ajuster la configuration et le planning d'indexation.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ces outils peuvent être accédés plus tard à partir du menu <span style=" font-style:italic;">Preferences</span>.</p></body></html>
    
    
        Indexing configuration
        Configuration de l'indexation
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        Vous pourrez ajuster les répertoires que vous voulez indexer, et d'autres paramètres comme les schémas de noms ou chemins de fichiers exclus, les jeux de caractères par défaut, etc.
    
    
        Indexing schedule
        Planning de l'indexation
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        Vous pourrez choisir entre l'indexation à intervalles fixes ou au fil de l'eau, et définir un planning pour la première (basé sur l'utilitaire cron).
    
    
        Start indexing now
        Démarrer l'indexation maintenant
    


    FragButs
    
        %1 not found.
        %1 non trouvé
    
    
        %1:
 %2
        %1:
 %2
    
    
        Fragment Buttons
        Fragments de recherche
    
    
        Query Fragments
        Fragments de recherche
    


    IdxSchedW
    
        Index scheduling setup
        Paramétrage du planning d'indexation
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">L'indexation <span style=" font-weight:600;">Recoll</span> peut fonctionner en permanence, traitant les fichiers dès qu'ils sont modifiés, ou être exécutée à des moments prédéterminés. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Une lecture du manuel peut vous aider à choisir entre ces approches (presser F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Cet outil peut vous aider à planifier l'indexation périodique, ou configurer un démarrage automatique de l'indexation au fil de l'eau quand vous vous connectez (ou les deux, ce qui est rarement pertinent). </p></body></html>
    
    
        Cron scheduling
        Planning Cron
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        Le dialogue vous permettra de déterminer à quelle heure l'indexation devra démarrer et installera une entrée crontab.
    
    
        Real time indexing start up
        Démarrage de l'indexation au fil de l'eau
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        Déterminer si l'indexation au fil de l'eau démarre quand vous vous connectez (pour l'index par défaut).
    


    ListDialog
    
        Dialog
        Dialogue
    
    
        GroupBox
        GroupBox
    


    Main
    
        No db directory in configuration
        Répertoire de la base de données non défini dans la configuration
    
    
        Could not open database in 
        Impossible d'ouvrir la base dans 
    
    
        .
Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed.
        Cliquer Annuler pour pouvoir éditer le fichier de configuration avant que l'indexation ne démarre, ou Ok pour continuer.
    
    
        Configuration problem (dynconf
        Problème de configuration (dynconf)
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        Le fichier d'historique est illisible, le verifier ou l'effacer:
    


    Preview
    
        &Search for:
        &Rechercher:
    
    
        &Next
        &Suivant
    
    
        &Previous
        &Précédent
    
    
        Match &Case
        Respecter la &casse
    
    
        Clear
        Effacer
    
    
        Creating preview text
        Création du texte pour la prévisualisation
    
    
        Loading preview text into editor
        Chargement du texte de la prévisualisation
    
    
        Cannot create temporary directory
        Impossible de créer le répertoire temporaire
    
    
        Cancel
        Annuler
    
    
        Close Tab
        Fermer l'onglet
    
    
        Missing helper program: 
        Programmes filtres externes manquants: 
    
    
        Can't turn doc into internal representation for 
        Impossible de traduire le document en représentation interne pour 
    
    
        Cannot create temporary directory: 
        Impossible de créer un répertoire temporaire
    
    
        Error while loading file
        Erreur de chargement du fichier
    


    PreviewTextEdit
    
        Show fields
        Afficher les valeurs des champs
    
    
        Show main text
        Afficher le corps du texte
    
    
        Print
        Imprimer
    
    
        Print Current Preview
        Imprimer la fenêtre de prévisualisation
    
    
        Show image
        Afficher l'image
    
    
        Select All
        Tout sélectionner
    
    
        Copy
        Copier
    
    
        Save document to file
        Sauvegarder le document
    
    
        Fold lines
        Replier les lignes
    
    
        Preserve indentation
        Préserver l'indentation
    


    QObject
    
        Global parameters
        Paramètres globaux
    
    
        Local parameters
        Paramètres locaux
    
    
        <b>Customised subtrees
        <b>Répertoires avec paramètres spécifiques
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.
        La liste des sous-répertoires de la zone indexée<br>où certains paramètres sont redéfinis. Défaut: vide.
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.
        <i>Les paramètres qui suivent sont définis soit globalement, si la sélection dans la liste ci-dessus<br>est vide ou réduite à la ligne vide, soit pour le répertoire sélectionné.<br>Vous pouvez ajouter et enlever des répertoires en cliquant les boutons +/-.
    
    
        Skipped names
        Noms ignorés
    
    
        These are patterns for file or directory  names which should not be indexed.
        Canevas définissant les fichiers ou répertoires qui ne doivent pas etre indexés.
    
    
        Default character set
        Jeu de caractères par défaut
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        Jeu de caractères utilisé pour lire les fichiers qui ne l'identifient pas de manière interne, par exemple les fichiers de texte pur. <br>La valeur par défaut est vide, et le programme utilise l'environnement.
    
    
        Follow symbolic links
        Suivre les liens symboliques
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        Indexer les fichiers et répertoires pointés par les liens symboliques. Pas fait par défaut pour éviter les indexations multiples
    
    
        Index all file names
        Indexer tous les noms de fichiers
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        Indexer les noms des fichiers dont le contenu n'est pas identifié ou traité (pas de type mime, ou type non supporté). Vrai par défaut
    
    
        Beagle web history
        Queue Web
    
    
        Search parameters
        Paramètres pour la recherche
    
    
        Web history
        Historique Web
    
    
        Default<br>character set
        Jeu de caractères<br>par défaut
    
    
        Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        Jeu de caractères utilisé pour lire les fichiers qui n'identifient pas de manière interne leur encodage, par exemple les fichiers texte purs.<br>La valeur par défaut est vide, et la valeur obtenue à partir de l'environnement est utilisée dans ce cas.
    
    
        Ignored endings
        Suffixes ignor'es
    
    
        These are file name endings for files which will be indexed by content only 
(no MIME type identification attempt, no decompression, no content indexing.
        Suffixes correspondants `a des fichiers qui seront indexe's par nom seulement  
(pas d'identification de type MIME, pas d'ecompression, pas d'indexation du contenu).
    
    
        These are file name endings for files which will be indexed by name only 
(no MIME type identification attempt, no decompression, no content indexing).
        Suffixes sélectionnant des fichiers qui seront indexés uniquement sur leur nom
(pas d'identification de type MIME, pas de décompression, pas d'indexation du contenu).
    


    QWidget
    
        Create or choose save directory
        Créer ou choisir un répertoire d'écriture
    
    
        Choose exactly one directory
        Choisir exactement un répertoire
    
    
        Could not read directory: 
        Impossible de lire le répertoire:
    
    
        Unexpected file name collision, cancelling.
        Collision de noms inattendue, abandon.
    
    
        Cannot extract document: 
        Impossible d'extraire le document:
    
    
        &Preview
        &Voir contenu
    
    
        &Open
        &Ouvrir
    
    
        Open With
        Ouvrir Avec
    
    
        Run Script
        Exécuter le Script
    
    
        Copy &File Name
        Copier le nom de &Fichier
    
    
        Copy &URL
        Copier l'&Url
    
    
        &Write to File
        &Sauver sous
    
    
        Save selection to files
        Sauvegarder la sélection courante dans des fichiers
    
    
        Preview P&arent document/folder
        Prévisualiser le document p&arent
    
    
        &Open Parent document/folder
        &Ouvrir le document parent
    
    
        Find &similar documents
        Chercher des documents &similaires
    
    
        Open &Snippets window
        Ouvrir la fenêtre des e&xtraits
    
    
        Show subdocuments / attachments
        Afficher les sous-documents et attachements
    


    RTIToolW
    
        Real time indexing automatic start
        Démarrage automatique de l'indexation au fil de l'eau
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">L'indexation <span style=" font-weight:600;">Recoll</span> peut être configurer pour s'exécuter en arrière plan, mettant à jour l'index au fur et à mesure que des documents sont modifiés. Vous y gagnez un index toujours à jour, mais des ressources systême (mémoire et processeur) sont consommées en permanence.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
    
    
        Start indexing daemon with my desktop session.
        Démarrer le démon d'indexation quand je me connecte.
    
    
        Also start indexing daemon right now.
        Également démarrer le démon maintenant.
    
    
        Replacing: 
        Remplacement de:
    
    
        Replacing file
        Remplacement du fichier
    
    
        Can't create: 
        Impossible de créer:
    
    
        Warning
        Attention
    
    
        Could not execute recollindex
        Impossible d'exécuter recollindex
    
    
        Deleting: 
        Effacement:
    
    
        Deleting file
        Effacement du fichier
    
    
        Removing autostart
        Enlèvement de l'autostart
    
    
        Autostart file deleted. Kill current process too ?
        Fichier autostart détruit. Arrêter le process en cours ?
    


    RclMain
    
        About Recoll
        À propos de Recoll
    
    
        Executing: [
        Exécution de: [
    
    
        Cannot retrieve document info from database
        Impossible d'accéder au document dans la base
    
    
        Warning
        Attention
    
    
        Can't create preview window
        Impossible de créer la fenêtre de visualisation
    
    
        Query results
        Résultats de la recherche
    
    
        Document history
        Historique des documents consultés
    
    
        History data
        Données d'historique
    
    
        Indexing in progress: 
        Indexation en cours: 
    
    
        Files
        Fichiers
    
    
        Purge
        Nettoyage
    
    
        Stemdb
        Base radicaux
    
    
        Closing
        Fermeture
    
    
        Unknown
        Inconnue
    
    
        This search is not active any more
        Cette recherche n'est plus active
    
    
        Can't start query: 
        Impossible de démarrer la recherche:
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeconf file
        Mauvaise commande pour %1: [%2]
Vérifier le fichier mimeconf
    
    
        Cannot extract document or create temporary file
        Impossible d'extraire le document ou de créer le fichier temporaire
    
    
        (no stemming)
        (pas d'expansion)
    
    
        (all languages)
        (tous les langages)
    
    
        error retrieving stemming languages
        impossible de trouver la liste des langages d'expansion
    
    
        Update &Index
        Mettre à jour l'&Index
    
    
        Indexing interrupted
        Indexation interrompue
    
    
        Stop &Indexing
        Arrèter l'&Indexation
    
    
        All
        Tout
    
    
        media
        multimédia
    
    
        message
        message
    
    
        other
        autres
    
    
        presentation
        présentation
    
    
        spreadsheet
        feuille de calcul
    
    
        text
        texte
    
    
        sorted
        trié
    
    
        filtered
        filtré
    
    
        External applications/commands needed and not found for indexing your file types:


        Applications externes non trouvees pour indexer vos types de fichiers:


    
    
        No helpers found missing
        Pas d'applications manquantes
    
    
        Missing helper programs
        Applications manquantes
    
    
        Save file dialog
        Dialogue de sauvegarde de fichier
    
    
        Choose a file name to save under
        Choisir un nom pour le nouveau fichier
    
    
        Document category filter
        Filtre de catégories de documents
    
    
        No external viewer configured for mime type [
        Pas de visualiseur configuré pour le type MIME [
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        Le visualiseur spécifié dans mimeview pour %1: %2 est introuvable.
Voulez vous démarrer le dialogue de préférences ?
    
    
        Can't access file: 
        Impossible d'accéder au fichier: 
    
    
        Can't uncompress file: 
        Impossible de décomprimer le fichier: 
    
    
        Save file
        Sauvegarder le fichier
    
    
        Result count (est.)
        Nombre de résultats (est.)
    
    
        Query details
        Détails de la recherche
    
    
        Could not open external index. Db not open. Check external indexes list.
        Impossible d'ouvrir un index externe. Base non ouverte. Verifier la liste des index externes.
    
    
        No results found
        Aucun résultat trouvé
    
    
        None
        Rien
    
    
        Updating
        Mise à jour
    
    
        Done
        Fini
    
    
        Monitor
        Moniteur
    
    
        Indexing failed
        L'indexation a échoué
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        Le processus d'indexation en cours n'a pas été démarré depuis cette interface. Cliquer Ok pour le tuer quand même, ou Annuler pour le laisser tranquille
    
    
        Erasing index
        Effacement de l'index
    
    
        Reset the index and start from scratch ?
        Effacer l'index et redémarrer de zéro ?
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program
        Requête en cours.<br>En raison de restrictions internes, <br>annuler terminera l'exécution du programme
    
    
        Error
        Erreur
    
    
        Index not open
        Index pas ouvert
    
    
        Index query error
        Erreur de la recherche sur l'index
    
    
        Indexed Mime Types
        Types MIME indexés
    
    
        Content has been indexed for these mime types:
        Du contenu a été indexé pour ces types MIME:
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        Index pas à jour pour ce fichier. Risque d'afficher une entrée incorrecte. Cliquer Ok pour mettre à jour l'index pour ce fichier, puis redémarrer la requête quand l'indexation est terminée. Sinon, Annuler.
    
    
        Can't update index: indexer running
        Impossible de mettre à jour l'index: un indexeur est déjà actif
    
    
        Indexed MIME Types
        Types MIME indexés
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        Ligne de commande incorrecte pour %1:[%2]. Vérifier le fichier mimeview.
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        La ligne de commande pour %1 spécifie à la fois le fichier et son parent: non supporté
    
    
        Cannot find parent document
        Impossible de trouver le document parent
    
    
        Indexing did not run yet
        L'indexation n'a pas encore eu lieu
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        Applications et commandes externes nécessaires pour vos types de documents, et non trouvées, telles qu'enregistrées par la dernière séquence d'indexation dans
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry.
        L'index n'est pas à jour pour ce fichier. Il y aurait un risque d'afficher une entrée incorrecte
    
    
        Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        Cliquer Ok pour mettre à jour l'index pour ce fichier, puis relancer la recherche quand l'indexation est terminée. Sinon cliquer Annuler
    
    
        Indexer running so things should improve when it's done
        L'indexeur est en cours d'exécution, le fichier devrait être mis à jour
    
    
        Sub-documents and attachments
        Sous-documents et attachements
    
    
        Document filter
        Filtre de documents
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. 
        Index pas à jour pour ce fichier. Je ne veux pas risquer d'afficher la mauvaise entrée.
    
    
        Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. 
        Cliquer Ok pour mettre à jour l'index pour ce fichier, puis attendez la fin de l'indexation pour relancer la recherche.
    
    
        The indexer is running so things should improve when it's done. 
        L'indexeur est actif, les choses devraient aller mieux quand il aura fini.
    
    
        The document belongs to an external indexwhich I can't update. 
        Le document appartient à un index externe que je ne peux pas mettre à jour.
    
    
        Click Cancel to return to the list. Click Ignore to show the preview anyway. 
        Cliquer Annuler pour retourner à la liste. Cliquer Ignorer pour afficher tout de même.
    
    
        Duplicate documents
        Documents identiques
    
    
        These Urls ( | ipath) share the same content:
        Ces URLs(| ipath) partagent le même contenu
    
    
        Bad desktop app spec for %1: [%2]
Please check the desktop file
        Mauvaise spécification d'application pour %1: [%2]
Merci de vérifier le fichier desktop 
    


    RclMainBase
    
        Previous page
        Page précédente
    
    
        Next page
        Page suivante
    
    
        &File
        &Fichier
    
    
        E&xit
        &Quitter
    
    
        &Tools
        &Outils
    
    
        &Help
        &Aide
    
    
        &Preferences
        &Préférences
    
    
        Search tools
        Outils de recherche
    
    
        Result list
        Liste de résultats
    
    
        &About Recoll
        &A propos de Recoll
    
    
        Document &History
        &Historique des documents
    
    
        Document  History
        Historique des documents
    
    
        &Advanced Search
        Recherche &Avancée
    
    
        Advanced/complex  Search
        Recherche Avancée
    
    
        &Sort parameters
        Paramètres pour le &tri
    
    
        Sort parameters
        Paramètres pour le tri
    
    
        Next page of results
        Page suivante
    
    
        Previous page of results
        Page précédente
    
    
        &Query configuration
        &Recherche
    
    
        &User manual
        &Manuel
    
    
        Recoll
        Recoll
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        Update &index
        &Indexer
    
    
        Term &explorer
        &Exploration de l'index
    
    
        Term explorer tool
        Outil d'exploration de l'index
    
    
        External index dialog
        Index externes
    
    
        &Erase document history
        &Effacer l'historique des documents
    
    
        First page
        Première page
    
    
        Go to first page of results
        Aller à la première page de résultats
    
    
        &Indexing configuration
        Configuration d'&Indexation
    
    
        All
        Tout
    
    
        &Show missing helpers
        Afficher les application&s manquantes
    
    
        PgDown
        PgDown
    
    
        Shift+Home, Ctrl+S, Ctrl+Q, Ctrl+S
        Shift+Home, Ctrl+S, Ctrl+Q, Ctrl+S
    
    
        PgUp
        PgUp
    
    
        &Full Screen
        &Plein écran
    
    
        F11
        F11
    
    
        Full Screen
        Plein écran
    
    
        &Erase search history
        &Effacer l'historique des recherches
    
    
        sortByDateAsc
        sortByDateAsc
    
    
        Sort by dates from oldest to newest
        Trier par date des plus anciennes aux plus récentes
    
    
        sortByDateDesc
        sortByDateDesc
    
    
        Sort by dates from newest to oldest
        Trier par date des plus récentes aux plus anciennes
    
    
        Show Query Details
        Afficher la requête en détails
    
    
        Show results as table
        Afficher les résultats en tableau
    
    
        &Rebuild index
        &Reconstruire l'index
    
    
        &Show indexed types
        &Afficher les types indexés
    
    
        Shift+PgUp
        Shift+PgUp
    
    
        &Indexing schedule
        &Planning d'indexation
    
    
        E&xternal index dialog
        Configuration des index e&xternes
    
    
        &Index configuration
        Configuration de l'&Index
    
    
        &GUI configuration
        Confi&guration de l'interface
    
    
        &Results
        &Résultats
    
    
        Sort by date, oldest first
        Trier par date, le plus ancien en premier
    
    
        Sort by date, newest first
        Trier par date, le plus récent en premier
    
    
        Show as table
        Afficher comme un tableau
    
    
        Show results in a spreadsheet-like table
        Montrer les résultats dans un tableau 
    
    
        Save as CSV (spreadsheet) file
        Sauver en format CSV (fichier tableur)
    
    
        Saves the result into a file which you can load in a spreadsheet
        Sauvegarde les résultats dans un fichier qu'il sera possible de charger dans un tableur
    
    
        Next Page
        Page suivante
    
    
        Previous Page
        Page précédente
    
    
        First Page
        Première page
    
    
        Query Fragments
        Fragments de recherche
    
    
            With failed files retrying
        Avec re-traitement des fichiers en échec
    
    
        Next update will retry previously failed files
        La prochaine mise à jour de l'index essaiera de traiter les fichiers actuellement en échec
    


    RclTrayIcon
    
        Restore
        Restaurer
    
    
        Quit
        Quitter
    


    RecollModel
    
        Abstract
        Extrait
    
    
        Author
        Auteur
    
    
        Document size
        Taille document
    
    
        Document date
        Date document
    
    
        File size
        Taille fichier
    
    
        File name
        Nom de fichier
    
    
        File date
        Date fichier
    
    
         Ipath
        Ipath
    
    
        Keywords
        Mots clef
    
    
        Mime type
        Type Mime
    
    
        Original character set
        Jeu de caractères d'origine
    
    
        Relevancy rating
        Pertinence
    
    
        Title
        Titre
    
    
        URL
        URL
    
    
        Mtime
        Mtime
    
    
        Date
        Date
    
    
        Date and time
        Date et heure
    
    
        Ipath
        Ipath
    
    
        MIME type
        Type MIME
    


    ResList
    
        Result list
        Liste de résultats
    
    
        Unavailable document
        Document inaccessible
    
    
        Previous
        Précédent
    
    
        Next
        Suivant
    
    
        <p><b>No results found</b><br>
        <p><b>Aucun résultat</b><br>
    
    
        &Preview
        &Voir contenu
    
    
        Copy &URL
        Copier l'&Url
    
    
        Find &similar documents
        Chercher des documents &similaires
    
    
        Query details
        Détail de la recherche
    
    
        (show query)
        (requête)
    
    
        Copy &File Name
        Copier le nom de &Fichier
    
    
        filtered
        filtré
    
    
        sorted
        trié
    
    
        Document history
        Historique des documents consultés
    
    
        Preview
        Prévisualisation
    
    
        Open
        Ouvrir
    
    
        <p><i>Alternate spellings (accents suppressed): </i>
        <p><i>Orthographes proposés (sans accents): </i>
    
    
        &Write to File
        &Sauver sous
    
    
        Preview P&arent document/folder
        Prévisualiser le document p&arent
    
    
        &Open Parent document/folder
        &Ouvrir le document parent
    
    
        &Open
        &Ouvrir
    
    
        Documents
        Documents
    
    
        out of at least
        parmi au moins
    
    
        for
        pour
    
    
        <p><i>Alternate spellings: </i>
        <p><i>Orthographes proposés: </i>
    
    
        Open &Snippets window
        Ouvrir la fenêtre des e&xtraits
    
    
        Duplicate documents
        Documents identiques
    
    
        These Urls ( | ipath) share the same content:
        Ces URLs(| ipath) partagent le même contenu
    
    
        Result count (est.)
        Nombre de résultats (est.)
    
    
        Snippets
        Extraits
    


    ResTable
    
        &Reset sort
        &Revenir au tri par pertinence
    
    
        &Delete column
        &Enlever la colonne
    
    
        Add "
        Ajouter "
    
    
        " column
        " colonne
    
    
        Save table to CSV file
        Sauvegarder dans un fichier CSV
    
    
        Can't open/create file: 
        Impossible d'ouvrir ou créer le fichier:
    
    
        &Preview
        &Voir contenu
    
    
        &Open
        &Ouvrir
    
    
        Copy &File Name
        Copier le nom de &Fichier
    
    
        Copy &URL
        Copier l'&Url
    
    
        &Write to File
        &Sauver sous
    
    
        Find &similar documents
        Chercher des documents &similaires
    
    
        Preview P&arent document/folder
        Prévisualiser le document p&arent
    
    
        &Open Parent document/folder
        &Ouvrir le document parent
    
    
        &Save as CSV
        &Sauvegarder en CSV
    
    
        Add "%1" column
        Ajouter une colonne "%1"
    


    ResTableDetailArea
    
        &Preview
        &Voir contenu
    
    
        &Open
        &Ouvrir
    
    
        Copy &File Name
        Copier le nom de &Fichier
    
    
        Copy &URL
        Copier l'&Url
    
    
        &Write to File
        &Sauver sous
    
    
        Find &similar documents
        Chercher des documents &similaires
    
    
        Preview P&arent document/folder
        Prévisualiser le document p&arent
    
    
        &Open Parent document/folder
        &Ouvrir le document parent
    


    ResultPopup
    
        &Preview
        &Voir contenu
    
    
        &Open
        &Ouvrir
    
    
        Copy &File Name
        Copier le nom de &Fichier
    
    
        Copy &URL
        Copier l'&Url
    
    
        &Write to File
        &Sauver sous
    
    
        Save selection to files
        Sauvegarder la sélection courante dans des fichiers
    
    
        Preview P&arent document/folder
        Prévisualiser le document p&arent
    
    
        &Open Parent document/folder
        &Ouvrir le document parent
    
    
        Find &similar documents
        Chercher des documents &similaires
    
    
        Open &Snippets window
        Ouvrir la fenêtre des e&xtraits
    
    
        Show subdocuments / attachments
        Afficher les sous-documents et attachements
    
    
        Open With
        Ouvrir Avec
    
    
        Run Script
        Exécuter le Script
    


    SSearch
    
        Any term
        Certains termes
    
    
        All terms
        Tous les termes
    
    
        File name
        Nom de fichier
    
    
        Completions
        Complétions
    
    
        Select an item:
        Sélectionner un élément:
    
    
        Too many completions
        Trop de complétions possibles
    
    
        Query language
        Language d'interrogation
    
    
        Bad query string
        Requête non reconnue
    
    
        Out of memory
        Plus de mémoire disponible
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  No actual parentheses allowed.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        Entrer une expression du langage de recherche. Antisèche:<br>
<i>term1 term2</i> : 'term1' ET 'term2' champ non spécifié.<br>
<i>field:term1</i> : 'term1' recherche dans le champ 'field'.<br>
 Noms de champs standards (utiliser les mots anglais)/alias:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-champs: dir, mime/format, type/rclcat, date.<br>
 Examples d'intervalles de dates: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  NE PAS mettre les parenthèses.<br>
<i>"term1 term2"</i> : phrase exacte. Options::<br>
<i>"term1 term2"p</i> : proximité (pas d'ordre).<br>
Utiliser le lien <b>Afficher la requête en détail</b> en cas de doute sur les résultats et consulter le manuel (en anglais) (&lt;F1>) pour plus de détails.

    
    
        Enter file name wildcard expression.
        Entrer un nom de fichier (caractères jokers possibles)
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Entrer les termes recherchés ici. Taper ESC SPC pour afficher les mots commençant par l'entrée en cours.
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        Entrer une expression du langage de recherche. Indications:<br>
<i>term1 term2</i> : 'term1' et 'term2' dans un champ quelconque.<br>
<i>field:term1</i> : 'term1' dans le champ 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        Effacer
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        Effacer l'entrée
    
    
        Search
        Rechercher
    
    
        Start query
        Démarrer la recherche
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Entrer les termes recherchés ici. Taper ESC SPC pour afficher les mots commençant par l'entrée en cours.
    
    
        Choose search type.
        Choisir le type de recherche.
    


    SearchClauseW
    
        SearchClauseW
        SearchClauseW
    
    
        Any of these
        Un de ces mots
    
    
        All of these
        Tous ces mots
    
    
        None of these
        Aucun de ces mots
    
    
        This phrase
        Cette phrase
    
    
        Terms in proximity
        Termes en proximité
    
    
        File name matching
        Modèle de nom de fichier
    
    
        Select the type of query that will be performed with the words
        Sélectionner le type de requête à effectuer avec les mots
    
    
        Number of additional words that may be interspersed with the chosen ones
        Nombre de mots additionnels qui peuvent se trouver entre les termes recherchés
    
    
        In field
        Sans champ
    
    
        No field
        Sans champ
    
    
        Any
        Certains
    
    
        All
        Tout
    
    
        None
        Rien
    
    
        Phrase
        Phrase
    
    
        Proximity
        Proximité
    
    
        File name
        Nom de fichier
    


    Snippets
    
        Snippets
        Extraits
    
    
        X
        X
    
    
        Find:
        Trouver:
    
    
        Next
        Suivant
    
    
        Prev
        Précédent
    


    SnippetsW
    
        Search
        Rechercher
    
    
        <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p>
        <p>Désolé, aucun résultat trouvé dans les limites de recherche. Peut-être que le document est très gros et que le générateur d'extraits s'est perdu...<p>
    


    SortForm
    
        Date
        Date
    
    
        Mime type
        Type Mime
    


    SortFormBase
    
        Sort Criteria
        Critères de tri
    
    
        Sort the
        Trier les
    
    
        most relevant results by:
        résultats les plus pertinents en fonction de:
    
    
        Descending
        Décroissant
    
    
        Close
        Fermer
    
    
        Apply
        Appliquer
    


    SpellBase
    
        Term Explorer
        Explorateur d'index
    
    
        &Expand 
        &Dérivés
    
    
        Alt+E
        Alt+D
    
    
        &Close
        &Fermer
    
    
        Alt+C
        Alt+F
    
    
        Term
        Terme
    
    
        No db info.
        Pas d'information sur la base.
    
    
        Doc. / Tot.
        Doc. / Tot.
    
    
        Match
        Faire correspondre
    
    
        Case
        Majuscules/Minuscules
    
    
        Accents
        Accents
    


    SpellW
    
        Wildcards
        Wildcards
    
    
        Regexp
        Expression régulière
    
    
        Spelling/Phonetic
        Orthographe/Phonétique
    
    
        Aspell init failed. Aspell not installed?
        Erreur d'initialisation aspell. Il n'est peut-être pas installé?
    
    
        Aspell expansion error. 
        Erreur aspell.
    
    
        Stem expansion
        Expansion grammaticale
    
    
        error retrieving stemming languages
        Impossible de former la liste des langages d'expansion
    
    
        No expansion found
        Pas de résultats
    
    
        Term
        Terme
    
    
        Doc. / Tot.
        Doc. / Tot.
    
    
        Index: %1 documents, average length %2 terms
        Index: %1 documents, taille moyenne %2 termes
    
    
        Index: %1 documents, average length %2 terms.%3 results
        Index: %1 documents, longueur moyenne %2 termes. %3 résultats
    
    
        %1 results
        %1 résultats
    
    
        List was truncated alphabetically, some frequent 
        La liste a été tronquée par ordre alphabétique. Certains termes fréquents
    
    
        terms may be missing. Try using a longer root.
        pourraient être absents. Essayer d'utiliser une racine plus longue
    
    
        Show index statistics
        Afficher les statistiques de l'index
    
    
        Number of documents
        Nombre de documents
    
    
        Average terms per document
        Nombre moyen de termes par document
    
    
        Smallest document length
        Longueur du plus petit document
    
    
        Longest document length
        Longueur du plus grand document
    
    
        Database directory size
        Taille occupee par l'index
    
    
        MIME types:
        Types MIME
    
    
        Item
        Element
    
    
        Value
        Valeur
    


    UIPrefsDialog
    
        The selected directory does not appear to be a Xapian index
        Le répertoire sélectionné ne semble pas être un index Xapian
    
    
        This is the main/local index!
        C'est l'index principal !
    
    
        The selected directory is already in the index list
        Le répertoire sélectionné est déjà dans la liste
    
    
        Select xapian index directory (ie: /home/buddy/.recoll/xapiandb)
        Sélectionner un répertoire contenant un index Xapian (ex: /home/monAmi/.recoll/xapiandb)
    
    
        error retrieving stemming languages
        Impossible de former la liste des langues pour l'expansion grammaticale
    
    
        Choose
        Choisir
    
    
        Result list paragraph format (erase all to reset to default)
        Format de paragraphe de la liste de résultats (tout effacer pour revenir à la valeur par défaut)
    
    
        Result list header (default is empty)
        En-tête HTML (la valeur par défaut est vide)
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        Selection un repertoire de configuration Recoll ou un repertoire d'index Xapian (Ex: /home/moi/.recoll ou /home/moi/.recoll/xapiandb)
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        Le repertoire selectionne ressemble a un repertoire de configuration Recoll mais la configuration n'a pas pu etre chargee
    
    
        At most one index should be selected
        Selectionner au plus un index
    
    
        Cant add index with different case/diacritics stripping option
        Impossible d'ajouter un index avec une option differente de sensibilite a la casse et aux accents
    
    
        Default QtWebkit font
        Fonte par défaut de QtWebkit
    


    UIPrefsDialogBase
    
        User interface
        Interface utilisateur
    
    
        Number of entries in a result page
        Nombre de résultats par page
    
    
        Result list font
        Fonte pour la liste de résultats
    
    
        Helvetica-10
        Helvetica-10
    
    
        Opens a dialog to select the result list font
        Ouvre une fenetre permettant de changer la fonte
    
    
        Reset
        Réinitialiser
    
    
        Resets the result list font to the system default
        Réinitialiser la fonte à la valeur par défaut
    
    
        Auto-start simple search on whitespace entry.
        Démarrer automatiquement une recherche simple sur entrée d'un espace.
    
    
        Start with advanced search dialog open.
        Panneau de recherche avancée ouvert au démarrage.
    
    
        Start with sort dialog open.
        Panneau de tri ouvert au démarrage.
    
    
        Search parameters
        Paramètres pour la recherche
    
    
        Stemming language
        Langue pour l'expansion des termes
    
    
        Dynamically build abstracts
        Construire dynamiquement les résumés
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Décide si des résumés seront construits à partir du contexte des termes de recherche. 
Peut ralentir l'affichage si les documents sont gros.
    
    
        Replace abstracts from documents
        Remplacer les résumés existant dans les documents
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Est-ce qu'un résumé doit etre synthétisé meme dans le cas ou le document original en avait un?
    
    
        Synthetic abstract size (characters)
        Taille du résumé synthétique (caractères)
    
    
        Synthetic abstract context words
        Nombre de mots de contexte par occurrence de terme dans le résumé
    
    
        External Indexes
        Index externes
    
    
        Add index
        Ajouter un index
    
    
        Select the xapiandb directory for the index you want to add, then click Add Index
        Sélectionner le répertoire xapian de l'index à ajouter, puis cliquer Ajouter Index
    
    
        Browse
        Parcourir
    
    
        &OK
        &OK
    
    
        Apply changes
        Appliquer les modifications
    
    
        &Cancel
        &Annuler
    
    
        Discard changes
        Suivant
    
    
        Result paragraph<br>format string
        Chaîne de formatage<br>des paragraphes résultats
    
    
        Automatically add phrase to simple searches
        Ajouter automatiquement une phrase aux recherches simples
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Une recherche pour [vin rouge] (2 mots) sera complétée comme [vin OU rouge OU (vin PHRASE 2 rouge)].<br>
Ceci devrait donner une meilleure pertinence aux résultats où les termes recherchés apparaissent exactement et dans l'ordre.
    
    
        User preferences
        Préférences utilisateur
    
    
        Use desktop preferences to choose document editor.
        Utiliser les réglages du bureau pour choisir l'application de visualisation.
    
    
        External indexes
        Index externes
    
    
        Toggle selected
        Changer l'état pour les entrées sélectionnées
    
    
        Activate All
        Tout activer
    
    
        Deactivate All
        Tout désactiver
    
    
        Remove selected
        Effacer la sélection
    
    
        Remove from list. This has no effect on the disk index.
        Oter de la liste. Sans effet sur les données stockées.
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Definit le format des paragraphes de la liste de resultats. Utilise le format html qt et des directives de substitution de type printf:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
    
    
        Remember sort activation state.
        Mémoriser l'état d'activation du tri.
    
    
        Maximum text size highlighted for preview (megabytes)
        Taille maximum des textes surlignes avant previsualisation (MO)
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Les texte plus gros ne seront pas surlignes dans la previsualisation (trop lent).
    
    
        Highlight color for query terms
        Couleur de mise en relief des termes recherchés
    
    
        Prefer Html to plain text for preview.
        Utiliser le format Html pour la previsualisation.
    
    
        If checked, results with the same content under different names will only be shown once.
        N'afficher qu'une entrée pour les résultats de contenu identique.
    
    
        Hide duplicate results.
        Cacher les doublons.
    
    
        Choose editor applications
        Choisir les éditeurs pour les différents types de fichiers
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Afficher le filtre de catégorie comme une barre d'outils plutot que comme un panneau de boutons (après le redémarrage).
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        Les mots de la liste seront automatiquement changés en clauses ext:xxx dans les requêtes en langage d'interrogation.
    
    
        Query language magic file name suffixes.
        Suffixes automatiques pour le langage d'interrogation.
    
    
        Enable
        Activer
    


    ViewAction
    
        Changing actions with different current values
        Changement d'actions avec des valeurs actuelles differentes
    
    
        Mime type
        Type Mime
    
    
        Command
        Commande
    
    
        MIME type
        Type MIME
    
    
        Desktop Default
        Défaut du bureau
    
    
        Changing entries with different current values
        Nous changeons des éléments avec des valeurs actuelles différentes
    


    ViewActionBase
    
        File type
        Type de fichier
    
    
        Action
        Action
    
    
        Select one or several file types, then click Change Action to modify the program used to open them
        Sélectionner une ou plusieurs types de fichiers, puis cliquer Changer pour modifier le programme utilisé pour les ouvrir
    
    
        Change Action
        Changer
    
    
        Close
        Fermer
    
    
        Native Viewers
        Applications de visualisation
    
    
        Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults.
        Sélectionner un ou plusieurs types MIME puis cliquer "Modifier l'Action"<br>Vous pouvez aussi fermer ce dialogue et choisir "Utiliser les préférences du bureau"<br> dans le dialogue principal pour ignorer cette liste.
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        Sélectionner un ou plusieurs types MIME, puis utiliser les contrôles dans le cadre du bas pour changer leur traitement
    
    
        Use Desktop preferences by default
        Utiliser les préférences du bureau
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Sélectionner un ou plusieurs types de fichiers, puis utiliser les contrôles dans le cadre du bas pour changer leur traitement
    
    
        Exception to Desktop preferences
        Exception aux préférences du bureau
    
    
        Action (empty -> recoll default)
        Action (vide -> utiliser le defaut recoll)
    
    
        Apply to current selection
        Appliquer à la sélection courante
    
    
        Recoll action:
        Action 
    
    
        current value
        valeur actuelle
    
    
        Select same
        S&eacute;lectionner par valeur
    
    
        <b>New Values:</b>
        <b>Nouveaux param&egrave;tres</b>
    


    confgui::ConfBeaglePanelW
    
        Steal Beagle indexing queue
        Voler la queue d'indexation de Beagle
    
    
        Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin)
        Beagle NE DOIT PAS être actif. Permet de traiter la queue de Beagle pour indexer l'historique des pages visitées de Firefox.<br> (Il faut aussi installer le plugin Beagle pour Firefox)
    
    
        Web cache directory name
        Nom du répertoire cache de pages WEB
    
    
        The name for a directory where to store the cache for visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        Le nom d'un répertoire où stocker les copies des pages WEB visitées.<br>Le chemin peut être relatif au répertoire de configuration.
    
    
        Max. size for the web cache (MB)
        Taille maximum pour le cache (MB)
    
    
        Entries will be recycled once the size is reached
        Les pages seront écrasées quand la taille spécifiée est atteinte
    
    
        Web page store directory name
        
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        Le nom d'un répertoire où stocker les copies des pages visitées.<br>Un chemin relatif se réfère au répertoire de configuration.
    
    
        Max. size for the web store (MB)
        Taille max. pour le cache Web (MB)
    
    
        Process the WEB history queue
        Traiter la file des pages WEB
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)
        Permet d'indexer les pages Web visitées avec Firefox <br>(il vous faut également installer l'extension Recoll pour Firefox)
    


    confgui::ConfIndexW
    
        Can't write configuration file
        Impossible d'ecrire le fichier de configuration
    


    confgui::ConfParamFNW
    
        Browse
        Parcourir
    
    
        Choose
        Choisir
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        Sensibilité automatique aux accents
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.
        <p>Activer automatiquement la sensibilité aux accents si le terme recherché contient des accents (saufs pour ceux de unac_except_trans). Sans cette option, il vous faut utiliser le langage de recherche et le drapeau <i>D</i> pour activer la sensibilité aux accents.
    
    
        Automatic character case sensitivity
        Sensibilité automatique aux majuscules
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.
        <p>Activer automatiquement la sensibilité aux majuscules si le terme de recherche contient des majuscules (sauf en première lettre). Sans cette option, vous devez utiliser le langage de recherche et le drapeau <i>C</i> pour activer la sensibilité aux majuscules.
    
    
        Maximum term expansion count
        Taille maximum de l'expansion d'un terme
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.
        <p>Nombre maximum de termes de recherche résultant d'un terme entré (par exemple expansion par caractères jokers). La valeur par défaut de 10000 est raisonnable et évitera les requêtes qui paraissent bloquées pendant que le moteur parcourt l'ensemble de la liste des termes.
    
    
        Maximum Xapian clauses count
        Compte maximum de clauses Xapian
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.
        <p>Nombre maximum de clauses Xapian élémentaires générées pour une requête. Dans certains cas, le résultat de l'expansion des termes peut ere multiplicatif, et utiliserait trop de mémoire. La valeur par défaut de 100000 devrait être à la fois suffisante et compatible avec les configurations matérielles typiques.
    


    confgui::ConfSubPanelW
    
        Global
        Global
    
    
        Max. compressed file size (KB)
        Taill maximale pour les fichiers à décomprimer (Ko)
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        Cette valeur définit un seuil au delà duquel les fichiers comprimés ne seront pas traités. Utiliser -1 pour désactiver la limitation, 0 pour ne traiter aucun fichier comprimé.
    
    
        Max. text file size (MB)
        Taille maximale d'un fichier texte (MB)
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        Cette valeur est un seuil au delà duquel les fichiers de texte pur ne seront pas indexés. Spécifier -1 pour supprimer la limite.
Utilisé pour éviter d'indexer des fichiers monstres.
    
    
        Text file page size (KB)
        Taille de page pour les fichiers de texte pur (KB)
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        Si cette valeur est spécifiée et positive, les fichiers de texte pur seront découpés en tranches de cette taille pour l'indexation.
Ceci diminue les ressources consommées par l'indexation et aide le chargement pour prévisualisation.
    
    
        Max. filter exec. time (S)
        Temps d'exécution maximum pour un filtre (S)
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit.

        Un filtre externe sera interrompu si l'attente dépasse ce temps. Utile dans le cas rare (programme postscript par exemple) où un document pourrait forcer un filtre à boucler indéfiniment. Positionner à -1 pour supprimer la limite.
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        Un filtre externe qui prend plus de temps sera arrêté. Traite le cas rare (possible avec postscript par exemple) où un document pourrait amener un filtre à boucler sans fin. Mettre -1 pour complètement supprimer la limite (déconseillé).
    
    
        Only mime types
        Seulement ces types
    
    
        An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive
        Une liste exclusive des types MIME à indexer.<br>Rien d'autre ne sera indexé. Normalement vide et inactif
    
    
        Exclude mime types
        Types exclus
    
    
        Mime types not to be indexed
        Types MIME à ne pas indexer
    


    confgui::ConfTopPanelW
    
        Top directories
        Répertoires de départ
    
    
        The list of directories where recursive indexing starts. Default: your home.
        La liste des répertoires où l'indexation récursive démarre. Défault: votre répertoire par défaut.
    
    
        Skipped paths
        Chemins ignorés
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
        Ce sont des noms de répertoires où l'indexation n'entrera pas.<br>Ils peuvent contenir des caractères jokers. Les chemins doivent correspondre à ceux vus par l'indexeur (par exemple: si un des répertoires de départ est '/home/me' et que '/home' est un lien sur '/usr/home', une entrée correcte ici serait '/home/me/tmp*' , pas '/usr/home/me/tmp*')
    
    
        Stemming languages
        Langue pour l'expansion des termes
    
    
        The languages for which stemming expansion<br>dictionaries will be built.
        Les langages pour lesquels les dictionnaires d'expansion<br>des termes seront construits.
    
    
        Log file name
        Nom du fichier journal
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output
        Le nom du fichier ou les messages seront ecrits.<br>Utiliser 'stderr' pour le terminal
    
    
        Log verbosity level
        Niveau de verbosité
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.
        Cette valeur ajuste la quantite de messages emis,<br>depuis uniquement les erreurs jusqu'a beaucoup de donnees de debug.
    
    
        Index flush megabytes interval
        Intervalle d'écriture de l'index en mégaoctets
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 
        Ajuste la quantité de données lues entre les écritures sur disque.<br>Contrôle l'utilisation de la mémoire. Défaut 10 Mo 
    
    
        Max disk occupation (%)
        Occupation disque maximum (%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).
        Niveau d'occupation du disque ou l'indexation s'arrete (pour eviter un remplissage excessif).<br>0 signifie pas de limite (defaut).
    
    
        No aspell usage
        Pas d'utilisation d'aspell
    
    
        Aspell language
        Langue pour aspell
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Langue du dictionnaire aspell. Une valeur correcte ressemble à 'en' ou 'fr'... <br>Si cette valeur n'est pas positionnée, l'environnement est utilisé pour la calculer, ce qui marche bien, habituellement. Utiliser 'aspell config' et regarder les fichiers .dat dans le répertoire 'data-dir' pour connaitre les langues aspell installées sur votre système.
    
    
        Database directory name
        Répertoire de stockage de l'index
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the  configuration directory. The default is 'xapiandb'.
        Le nom d'un répertoire où l'index sera stocké<br>Un chemin relatif démarrera au répertoire de configuration. Le défaut est 'xapiandb'.
    
    
        Use system's 'file' command
        Utiliser la commande 'file' du systeme
    
    
        Use the system's 'file' command if internal<br>mime type identification fails.
        Utiliser la commande 'file' si la determination<br>interne du type mime n'obtient pas de resultat.
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 
        Désactiver l'utilisation d'aspell pour générer les approximations orthographiques.<br> Utile si aspell n'est pas installé ou ne fonctionne pas. 
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Langue pour le dictionnaire aspell. La valeur devrait ressembler à 'en' ou 'fr'... <br>Si cette valeur n'est pas positionnée, l'environnement national sera utilisé pour la calculer, ce qui marche bien habituellement. Pour avoir une liste des valeurs possibles sur votre système, entrer 'aspell config' sur une ligne de commande et regarder les fichiers '.dat' dans le répertoire 'data-dir'. 
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
        Le nom d'un répertoire pour stocker l'index<br>Un chemin relatif sera interprété par rapport au répertoire de configuration. La valeur par défaut est 'xapiandb'.
    
    
        Unac exceptions
        Exceptions Unac
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.
        <p>Ce sont les exceptions au mécanisme de suppression des accents, qui, par défaut et en fonction de la configuration de l'index, supprime tous les accents et effectue une décomposition canonique Unicode. Vous pouvez inhiber la suppression des accents pour certains caractères, en fonction de votre langue, et préciser d'autres décompositions, par exemple pour des ligatures. Dans la liste séparée par des espaces, le premier caractères d'un élément est la source, le reste est la traduction.
    


    uiPrefsDialogBase
    
        User preferences
        Préférences utilisateur
    
    
        User interface
        Interface utilisateur
    
    
        Number of entries in a result page
        Nombre de résultats par page
    
    
        If checked, results with the same content under different names will only be shown once.
        N'afficher qu'une entrée pour les résultats de contenu identique.
    
    
        Hide duplicate results.
        Cacher les doublons.
    
    
        Highlight color for query terms
        Couleur de mise en relief des termes recherchés
    
    
        Result list font
        Fonte pour la liste de résultats
    
    
        Opens a dialog to select the result list font
        Ouvre une fenêtre permettant de changer la fonte
    
    
        Helvetica-10
        Helvetica-10
    
    
        Resets the result list font to the system default
        Réinitialiser la fonte à la valeur par défaut
    
    
        Reset
        Réinitialiser
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Definit le format des paragraphes de la liste de resultats. Utilise le format html qt et des directives de substitution de type printf:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
    
    
        Result paragraph<br>format string
        Chaîne de formatage<br>des paragraphes résultats
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Les textes plus gros ne seront pas surlignés dans la prévisualisation (trop lent).
    
    
        Maximum text size highlighted for preview (megabytes)
        Taille maximum des textes surlignés avant prévisualisation (MO)
    
    
        Use desktop preferences to choose document editor.
        Utiliser les réglages du bureau pour choisir l'application de visualisation.
    
    
        Choose editor applications
        Choisir les éditeurs pour les différents types de fichiers
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Afficher le filtre de catégorie comme une barre d'outils plutot que comme un panneau de boutons (après le redémarrage).
    
    
        Auto-start simple search on whitespace entry.
        Démarrer automatiquement une recherche simple sur entrée d'un espace.
    
    
        Start with advanced search dialog open.
        Panneau de recherche avancée ouvert au démarrage.
    
    
        Start with sort dialog open.
        Panneau de tri ouvert au démarrage.
    
    
        Remember sort activation state.
        Memoriser l'etat d'activation du tri.
    
    
        Prefer Html to plain text for preview.
        Utiliser le format Html pour la previsualisation.
    
    
        Search parameters
        Paramètres pour la recherche
    
    
        Stemming language
        Langue pour l'expansion des termes
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Une recherche pour [vin rouge] (2 mots) sera complétée comme [vin OU rouge OU (vin PHRASE 2 rouge)].<br>
Ceci devrait donner une meilleure pertinence aux résultats où les termes recherchés apparaissent exactement et dans l'ordre.
    
    
        Automatically add phrase to simple searches
        Ajouter automatiquement une phrase aux recherches simples
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Décide si des résumés seront construits à partir du contexte des termes de recherche. 
Peut ralentir l'affichage si les documents sont gros.
    
    
        Dynamically build abstracts
        Construire dynamiquement les résumés
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Est-ce qu'un résumé doit etre synthétisé meme dans le cas ou le document original en avait un?
    
    
        Replace abstracts from documents
        Remplacer les résumés existant dans les documents
    
    
        Synthetic abstract size (characters)
        Taille du résumé synthétique (caractères)
    
    
        Synthetic abstract context words
        Nombre de mots de contexte par occurrence de terme dans le résumé
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        Les mots de la liste seront automatiquement changés en clauses ext:xxx dans les requêtes en langage d'interrogation.
    
    
        Query language magic file name suffixes.
        Suffixes automatiques pour le langage d'interrogation.
    
    
        Enable
        Activer
    
    
        External Indexes
        Index externes
    
    
        Toggle selected
        Changer l'état pour les entrées sélectionnées
    
    
        Activate All
        Tout activer
    
    
        Deactivate All
        Tout désactiver
    
    
        Remove from list. This has no effect on the disk index.
        Oter de la liste. Sans effet sur les données stockées.
    
    
        Remove selected
        Effacer la sélection
    
    
        Click to add another index directory to the list
        Cliquer pour ajouter un autre index à la liste
    
    
        Add index
        Ajouter un index
    
    
        Apply changes
        Appliquer les modifications
    
    
        &OK
        &OK
    
    
        Discard changes
        Abandonner les modifications
    
    
        &Cancel
        &Annuler
    
    
        Abstract snippet separator
        Séparateur d'extrait
    
    
        Use <PRE> tags instead of <BR>to display plain text as html.
        Utilise des balises <PRE> au lieu de <BR> pour afficher du texte brut en html.
    
    
        Lines in PRE text are not folded. Using BR loses indentation.
        Les lignes de text brut <PRE> ne sont pas replies (scroll horizontal). L'utilisation de balises <BR> ne preserve pas l'indentation.
    
    
        Style sheet
        Feuille de style
    
    
        Opens a dialog to select the style sheet file
        Ouvre un dialogue pour choisir un fichier feuille de style
    
    
        Choose
        Choisir
    
    
        Resets the style sheet to default
        Restore la valeur par défaut pour la feuille de style
    
    
        Lines in PRE text are not folded. Using BR loses some indentation.
        Les lignes dans des sections PRE ne sont pas justifiées. Utiliser BR perd une partie de l'indentation.
    
    
        Use <PRE> tags instead of <BR>to display plain text as html in preview.
        Utiliser des tags <PRE> au lieu de <BR> pour afficher du texte non formaté en html dans la prévisualisation
    
    
        Result List
        Liste de résultats
    
    
        Edit result paragraph format string
        Editer le format du paragraphe de résultat
    
    
        Edit result page html header insert
        Editer le fragment à insérer dans l'en-tête HTML
    
    
        Date format (strftime(3))
        Format de date (strftime(3))
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        Seuil de fréquence (pourcentage) au delà duquel les termes ne seront pas utilisés.
Les phrases contenant des termes trop fréquents posent des problèmes de performance.
Les termes ignorés augmentent la distance de phrase, et réduisent l'efficacité de la fonction de recherche de phrase automatique.
La valeur par défaut est 2%
    
    
        Autophrase term frequency threshold percentage
        Seuil de fréquence de terme (pourcentage) pour la génération automatique de phrases
    
    
        Plain text to HTML line style
        Style de traduction texte ordinaire vers HTML
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        Les lignes dans une balise PRE ne sont pas repliées. Utiliser BR conduit à perdre une partie des tabulations. Le style PRE + WRAP peut être le meilleurs compromis mais son bon fonctionnement dépend des versions Qt.
    
    
        <BR>
        <BR>
    
    
        <PRE>
        <PRE>
    
    
        <PRE> + wrap
        <PRE> + repliement
    
    
        Exceptions
        Exceptions
    
    
        Mime types that should not be passed to xdg-open even when "Use desktop preferences" is set.<br> Useful to pass page number and search string options to, e.g. evince.
        Types MIME qui ne doivent pas être passés à xdg-open même quand "Utiliser les préférences du bureau" est coché. <br> Utile pour pouvoir passer les paramètres de numéro de page et de terme de recherche à evince, par exemple. 
    
    
        Disable Qt autocompletion in search entry.
        Desactiver l'autocompletion Qt dans l'entree de recherche
    
    
        Search as you type.
        Lancer la recherche a chaque caractere entre
    
    
        Paths translations
        Traductions de chemins
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        Cliquer pour ajouter un autre index a la liste. Vous pouvez sélectionner soit un répertoire de configuration Recoll soit un index Xapian
    
    
        Snippets window CSS file
        Feuille de style CSS pour le popup de fragments
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        Ouvre un dialogue permettant de sélectionner la feuille de style CSS pour le popup des fragments
    
    
        Resets the Snippets window style
        Réinitialise le style de la fenêtre des fragments
    
    
        Decide if document filters are shown as radio buttons, toolbar combobox, or menu.
        Décide si les filtres de documents sont affichés comme des radio-boutons, un combobox dans la barre d'outils, ou un menu.
    
    
        Document filter choice style:
        Style de choix des filtres de documents:
    
    
        Buttons Panel
        Panneau de boutons
    
    
        Toolbar Combobox
        Combobox dans le panneau d'outils
    
    
        Menu
        Menu
    
    
        Show system tray icon.
        Afficher l'icone dans la barre d'état système.
    
    
        Close to tray instead of exiting.
        Réduire dans la barre d'état au lieu de quitter.
    


recoll-1.21.5/qtgui/i18n/recoll_tr.qm0000644000175000017500000006265612602163537016642 0ustar  dockesdockes.c`XMUvO*c|xC3
LSI,;j
p#yv)w5'w5,aw5/U;ֳ5x61f3!ͼuVA;UZUeV^`&Ti.N7E?d)JUYJUY(Y4\LQ=2x;A&L9rII
nGf6rf:KfQ"-P#TX|:
-Zjz3n-&)TYBS0r?)'r>,&4k<!/71ASâ
*R2Ǣ~C[`%"	/cUKZ{p
hNB&K?	%A{7*XICP^FW#/FNRwϗ)-n(CO-Ɇt^Q}}R\*0@.	)\Kc=^	H 	9Zy.	K$	Q	ü>W	
m
c
+<>
6
`P
`
cE$
yX
IKV
Cp
#"#0TH
	h
;t9BΣ$I۷%g'И"GP֙RVJT#V>
\iCY
`F4N2
8K
Fh
y7m
3
u,
P
P
5dV
H
£4U8/.<]*=!'G7Jb \zc*d3.+Q3.-6P	'C=1˓>a;9Q~XY~s!g[s&Hg3$ H||Z
lL;i_Tm ifadelerAll clauses	AdvSearch00fadelerin herhangi biri
Any clause	AdvSearchortamlarmedia	AdvSearch
dierother	AdvSearch<----- Tm
<----- All
AdvSearchBase<----- Se
<----- Sel
AdvSearchBase0fade ekle
Add clause
AdvSearchBaseGeli_mi_ aramaAdvanced search
AdvSearchBaseTm ---->	All ---->
AdvSearchBase
GzatBrowse
AdvSearchBase"Kategorilere gre
By categories
AdvSearchBaseDosya tipleri zerinde filtreleme kullanmak iin bunu i_aretleyin,Check this to enable filtering on file types
AdvSearchBaseDosya tipleri yerine ham mime tipleri zerinde filtreleme kullanmak iin bunu i_aretleyin;Check this to use file categories instead of raw mime types
AdvSearchBase
KapatClose
AdvSearchBase0fadeyi sil
Delete clause
AdvSearchBase<Arama iin en st dizini girinEnter top directory for search
AdvSearchBase0Yoksay1lan dosya tipleriIgnored file types
AdvSearchBase6Dosya tiplerini s1n1rland1rRestrict file types
AdvSearchBaselArama sonular1n1 bu dizin ve a_a1s1 ile s1n1rland1r:%Restrict results to files in subtree:
AdvSearchBase.ntan1ml1 olarak kaydetSave as default
AdvSearchBase4Uyan <br>belgeleri<br>ara:'Search for 
documents
satisfying: AdvSearchBase(Aranan dosya tipleriSearched file types AdvSearchBaseSe -----> Sel -----> AdvSearchBaseAramay1 Ba_lat Start Search AdvSearchBase 0ptalCancel EditTransBaseZYap1land1rma ierisinde veritaban1 dizini yok No db directory in configurationMain&Sonraki&NextPreview&nceki &PreviousPreview A&ra: &Search for:PreviewD^unun iin i gsterim yap1lam1yor0Can't turn doc into internal representation for Preview 0ptalCancelPreviewTemizleClearPreviewSekmeyi Kapat Close TabPreview8nizleme metni olu_turuluyorCreating preview textPreviewNnizleme metni dzenleyiciye ykleniyor Loading preview text into editorPreviewE_le_me ^a&rt1 Match &CasePreview0Yard1mc1 program kay1p: Missing helper program: Preview<<b>zelle_tirilmi_ alt aalarCustomised subtreesQObject<i>A_a1daki parametreler, ya seili alt dizin iin uygulan1r ya da st dzeyde veya stteki metin kutusunda hibir _ey seilmediinde yada bo_ bir sat1r seildiinde uygulan1r.<br>+/- dmelerine t1klayarak dizinleri ekleyip 1karabilirsiniz.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject4Sembolik balant1lar1 izleFollow symbolic linksQObject0ndekslerken sembolik balant1lar1 izle. Ayn1 gelerin yeniden indekslenmesinden ka1nmak iin ntan1ml1 deer hay1rTFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject$Genel parametrelerGlobal parametersQObject:Tm dosya isimlerini indeksleIndex all file namesQObject0erii tan1nmayan ya da i_lenemeyen (ya da desteklenmeyen mime tipi) dosyalar1 indeksle. ntan1ml1 evet}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject$Yerel parametrelerLocal parametersQObject&Arama parametreleriSearch parametersQObjectAtlanan isimler Skipped namesQObject0ndekslenmi_ s1ralama ierisindeki alt dizinlerin listesi <br>ki burada baz1 parametrelerin yeniden tan1mlanmas1 gerekir. ntan1ml1: bo_.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectBu nitelikler insekslenmemesi gereken dosya ve dizinler iindir.LThese are patterns for file or directory names which should not be indexed.QObject&nizle&PreviewQWidget(&Dosya Ad1n1 KopyalaCopy &File NameQWidget&Adresi Kopyala Copy &URLQWidget*Benzer belgeleri &bulFind &similar documentsQWidget Uyar1WarningRTIToolW(tm diller)(all languages)RclMain2(kk ayr1_t1rma kullanma) (no stemming)RclMainRecoll Hakk1nda About RecollRclMainDnizleme penceresi olu_turulam1yorCan't create preview windowRclMainbBelge a1lamad1 ya da geici dosya olu_turulamad10Cannot extract document or create temporary fileRclMainPVeritaban1ndan belge bilgileri al1namad1+Cannot retrieve document info from databaseRclMainKapat1l1yorClosingRclMainBelge gemi_iDocument historyRclMain"al1_t1r1l1yor: [ Executing: [RclMainGemi_ verileri History dataRclMain20ndeksleme devam ediyor: Indexing in progress: RclMainTemizlePurgeRclMainArama Sonular1 Query resultsRclMain.KkAyr1_t1rmaVeritaban1StemdbRclMain4Bu arama atr1k etkin deil"This search is not active any moreRclMainBilinmeyenUnknownRclMain Uyar1WarningRclMainxszck kkleri ayr1_t1r1labilir diller al1n1rken hata olu_tu#error retrieving stemming languagesRclMainortamlarmediaRclMain dierotherRclMain &Recoll Hakk1nda &About Recoll RclMainBase&Geli_mi_ arama&Advanced Search RclMainBase0&Belge gemi_ini temizle&Erase document history RclMainBase &Dosya&File RclMainBase&Yard1m&Help RclMainBase&Tercihler &Preferences RclMainBase&&S1ralama ltleri&Sort parameters RclMainBase&Aralar&Tools RclMainBase(&Kullan1c1 El Kitab1 &User manual RclMainBase2Geli_mi_/karma_1k AramaAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBaseBelge Gemi_iDocument History RclMainBaseBelge &Gemi_iDocument &History RclMainBase&1kE&xit RclMainBase.D1_ indeksler penceresiExternal index dialog RclMainBase0lk sayfa First page RclMainBase8Sonular1n ilk sayfas1na gitGo to first page of results RclMainBaseSonraki sayfa Next page RclMainBase4Sonular1n sonraki sayfas1Next page of results RclMainBasenceki sayfa Previous page RclMainBase2Sonular1n nceki sayfas1Previous page of results RclMainBase RecollRecoll RclMainBase$S1ralama ltleriSort parameters RclMainBase 0fade g&stericiTerm &explorer RclMainBase(0fade gsterme arac1Term explorer tool RclMainBase"0ndeksi g&ncelle Update &index RclMainBase TarihDate RecollModelDosya ad1 File name RecollModel (sorguyu gster) (show query)ResList<<p><b>Sonu bulunamad1</b><br>

No results found
ResListBelge gemi_iDocument historyResListSonrakiNextResList nizlePreviewResList ncekiPreviousResListSorgu detaylar1 Query detailsResListSonu listesi Result listResList Eri_ilemez belgeUnavailable documentResListTm szckler All termsSSearch2Szcklerin herhangi biriAny termSSearch,Uygunsuz arama ifadesiBad query stringSSearchAranacak ifadeleri buraya girin. Geerli szcn tamamlanmas1 iin ESC SPACE kullan1n.FEnter search terms here. Type ESC SPC for completions of current term.SSearchDosya ad1 File nameSSearchYetersiz bellek Out of memorySSearchArama diliQuery languageSSearchTemizleClear SSearchBase Ctrl+SCtrl+S SSearchBaseAranacak ifadeleri buraya girin. Geerli szcn tamamlanmas1 iin ESC SPACE kullan1n.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase.Arama girdisini temizleErase search entry SSearchBaseSSearchBase SSearchBase SSearchBaseAraSearch SSearchBaseSorguyu ba_lat Start query SSearchBaseDosya ad1 File name SearchClauseWSeilen szcklerin aras1nda yer alabilecek ek szcklerin say1s1HNumber of additional words that may be interspersed with the chosen ones SearchClauseWZSzckler ile kullan1lacak sorgu biimini se>Select the type of query that will be performed with the words SearchClauseWSonrakiNextSnippetsAraSearch SnippetsW &Kapat&Close SpellBase&Geni_let &Expand  SpellBase Alt+KAlt+C SpellBase Alt+GAlt+E SpellBase0fade Gsterici Term Explorer SpellBaseHAspell heceleme geni_lemesi hatas1. Aspell expansion error. SpellW\Aspell ba_lat1lamad1. Yklenmemi_ olabilir mi?)Aspell init failed. Aspell not installed?SpellW0Hi geni_leme bulunamad1No expansion foundSpellWDzenli ifadeRegexpSpellW Heceleme/FonetikSpelling/PhoneticSpellW4Kk ayr1_t1rma geni_lemesiStem expansionSpellW 0fadeTermSpellW zel karakterler WildcardsSpellWxszck kkleri ayr1_t1r1labilir diller al1n1rken hata olu_tu#error retrieving stemming languagesSpellW GzatChoose UIPrefsDialoglSeilen dizin bir Xapian indeks dizini gibi grnmyor;The selected directory does not appear to be a Xapian index UIPrefsDialogRSeilen dizin zaten indeks listesinde var3The selected directory is already in the index list UIPrefsDialog0Bu ana/yerel veritaban1!This is the main/local index! UIPrefsDialogxszck kkleri ayr1_t1r1labilir diller al1n1rken hata olu_tu#error retrieving stemming languages UIPrefsDialog KapatCloseViewActionBase$Doal GstericilerNative ViewersViewActionBase>Yap1land1rma dosyas1 yaz1lamad1Can't write configuration fileconfgui::ConfIndexW GzatChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW GenelGlobalconfgui::ConfSubPanelWAspell diliAspell languageconfgui::ConfTopPanelW0Veritaban1 dizininin ad1Database directory nameconfgui::ConfTopPanelW20ndex dzeltme MB aral11Index flush megabytes intervalconfgui::ConfTopPanelW*Gnlk dosyas1n1n ad1 Log file nameconfgui::ConfTopPanelW:Gnlk dosyas1 ayr1nt1 dzeyiLog verbosity levelconfgui::ConfTopPanelW8En yksek disk kullan1m1 (%)Max disk occupation (%)confgui::ConfTopPanelW(Aspell kullan1m1 yokNo aspell usageconfgui::ConfTopPanelWAtlanan yollar Skipped pathsconfgui::ConfTopPanelWLSzck kkleri ayr1_t1r1labilir dillerStemming languagesconfgui::ConfTopPanelW0letilerin yaz1laca1 dosya.<br>Ubirim 1kt1s1 iin 'stderr' kullan1nPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWKk ayr1_t1rma geni_lemesi iin szlkleri<br>in_a edilecek olan diller.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWzyinelemeli indesklemenin ba_layaca1 dizinlerin listesi. ntan1ml1: ev dizininiz.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWBunlar indekslemenin girmeyecei dizinlerin adlar1d1r.<br> * gibi zel karakterler ierebilir. 0ndeksleyici taraf1ndan grlen yollar ile e_le_melidir (rnein: eer en st dizinler '/home/ben' ve '/home' ieriyorsa ve home '/usr/home' dizinine balant1l1 ise atlanacak dizin yolu '/home/me/tmp*' olmal1d1r, '/usr/home/me/tmp*' deil)#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWBBu disk kullan1m1n1n yzdesidir ki bu orana eri_ildiinde indeksleme durdurulur (diskin doldurulmas1n1 engellemek iin).<br>0 k1s1tlama yok demektir (ntan1ml1).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelWBu deer diske gnderilecek indekslenmi_ veri miktar1n1 ayarlar.<br>Bu indeksleyicinin bellek kullan1m1n1 kontrol etmeye yarar. ntan1ml1 10MB This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWBu deer ileti boyutunu ayarlar,<br>sadece hatalardan hata ay1klama verilerine kadar.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelWst dizinlerTop directoriesconfgui::ConfTopPanelW &0ptal&CanceluiPrefsDialogBase &TAMAM&OKuiPrefsDialogBase[linux kernel] (2 szck) aramas1 [linux veya kernel veya (linux ifadesi 2 tane kernel)] olarak dei_tirilecektir. Bu, aranacak szcklerin tam olarak girildii gibi grntlendii sonulara yksek ncelik verilmesini salayacakt1r.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBase$Tmn Etkinle_tir Activate AlluiPrefsDialogBase0ndeks ekle Add indexuiPrefsDialogBase*Dei_iklikleri uygula Apply changesuiPrefsDialogBaseBeyaz alan girdisi olduunda basit aramay1 otomatik olarak ba_lat.-Auto-start simple search on whitespace entry.uiPrefsDialogBaseXBasit aramalara ifadeyi otomatik olarak ekle+Automatically add phrase to simple searchesuiPrefsDialogBase GzatChooseuiPrefsDialogBase$Tmn Pasifle_tirDeactivate AlluiPrefsDialogBase$Dei_iklikleri silDiscard changesuiPrefsDialogBasezBelgenin bir zeti varsa bile bir yapay zet olu_turulsun mu?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseSorgu szckleri kullan1larak sonu listesi girdileri iin zet olu_turulsun mu ? Byk boyutlu belgelerde yava_ olabilir.zDo we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents.uiPrefsDialogBase>zetleri dinamik olarak olu_turDynamically build abstractsuiPrefsDialogBaseD1_ indekslerExternal IndexesuiPrefsDialogBaseHelvetica-10 Helvetica-10uiPrefsDialogBasednizlemede vurgulanacak en fazla metin boyutu (MB)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseFBir sonu sayfas1ndaki sonu say1s1"Number of entries in a result pageuiPrefsDialogBasejSonu listesi yaz1tipini semek iin bir pencere aar-Opens a dialog to select the result list fontuiPrefsDialogBase:S1ralama kurallar1n1 hat1rla.Remember sort activation state.uiPrefsDialogBaseXListeden sil. Bu diskteki indeksi etkilemez.7Remove from list. This has no effect on the disk index.uiPrefsDialogBaseSeileni silRemove selecteduiPrefsDialogBase6Belgelerden zetleri kald1r Replace abstracts from documentsuiPrefsDialogBaseS1f1rlaResetuiPrefsDialogBasebSonu listesi yaz1tipini sistem ayarlar1na dndr1Resets the result list font to the system defaultuiPrefsDialogBase,Sonu listesi yaz1tipiResult list fontuiPrefsDialogBase&Arama parametreleriSearch parametersuiPrefsDialogBaseFGeli_mi_ arama penceresi ile ba_la.'Start with advanced search dialog open.uiPrefsDialogBase&Kk ayr1_t1rma diliStemming languageuiPrefsDialogBase*Yapay zet szckleri Synthetic abstract context wordsuiPrefsDialogBaseFYapay zet boyutu (karakter say1s1)$Synthetic abstract size (characters)uiPrefsDialogBaseBu boyuttan byk metinler nizlemede vurgulanmayacak (ok yava_).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBaseSe /B1rakToggle selecteduiPrefsDialogBase"Kullan1c1 arayzUser interfaceuiPrefsDialogBase(Kullan1c1 tercihleriUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_de.ts0000644000175000017500000042016612602163537016610 0ustar dockesdockes AdvSearch All clauses alle Ausdrücke Any clause irgendeinen Ausdruck texts Texte spreadsheets Tabellen presentations Präsentationen media Medien messages Nachrichten other Andere Bad multiplier suffix in size filter Ungültiger Multiplikator-Suffix im Größen-Filter text Text spreadsheet Tabelle presentation Präsentation message Nachricht AdvSearchBase Advanced search Erweiterte Suche Restrict file types Dateitypen einschränken Save as default Als Standard speichern Searched file types Durchsuchte Dateitypen All ----> Alle ----> Sel -----> Auswahl ----> <----- Sel <---- Auswahl <----- All <---- Alle Ignored file types Nicht durchsuchte Dateitypen Enter top directory for search Geben Sie das Basisverzeichnis für die Suche ein. Browse Durchsuchen Restrict results to files in subtree: Ergebnisse auf Dateien in folgendem Verzeichnisbaum einschränken: Start Search Suche starten Search for <br>documents<br>satisfying: Suche nach Dokumenten, <br>die Folgendes erfüllen: Delete clause Ausdruck entfernen Add clause Ausdruck hinzufügen Check this to enable filtering on file types Auswählen, um Filterung nach Dateitypen einzuschalten By categories Nach Kategorien Check this to use file categories instead of raw mime types Auswählen, um Dateikategorien statt Mime-Typen zu verwenden Close Schließen All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. Alle nicht-leeren Felder rechts werden mit UND ("alle Ausdrücke") oder ODER ("irgendeinen Ausdruck") verknüpft. <br>Felder des Typs "Irgendeines", "Alle" und "Keines" können eine Mischung aus Wörtern und in Anführungszeichen eingeschlossenen Phrasen enthalten. <br>Nicht gefüllte Felder werden ignoriert. Invert Invertieren Minimum size. You can use k/K,m/M,g/G as multipliers Minimale Größe. Sie können k/K, m/M, g/G als Multiplikatoren verwenden. Min. Size Min. Größe: Maximum size. You can use k/K,m/M,g/G as multipliers Maximale Größe. Sie können k/K, m/M, g/G als Multiplikatoren verwenden. Max. Size Max. Größe: Filter Filtern From von To bis Check this to enable filtering on dates Auswählen, um Filterung nach Datum einzuschalten Filter dates Nach Datum filtern Find Finden Check this to enable filtering on sizes Auswählen, um Filterung nach Dateigröße einzuschalten Filter sizes Nach Größe filtern CronToolW Cron Dialog Cron-Zeitplan <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Zeitplan für periodische Indizierung (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Jedes Feld kann eine Wildcard (*), eine einzelne Zahl, eine mit Kommata getrennte Liste (1,3,5) oder einen Bereich (1-7) enthalten. Die Felder werden <span style=" font-style:italic;">so wie sie sind</span> in der crontab-Datei verwendet und die gesamte crontab Syntax kann verwendet werden, siehe crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Beispielsweise startet die Eingabe <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Wochentage, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Stunden</span> und <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minuten</span> recollindex jeden Tag um 12:15 Uhr und 19:15 Uhr.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ein Zeitplan mit sehr häufigen Aktivierungen ist wahrscheinlich weniger effizient als Echtzeit-Indizierung.</p></body></html> Days of week (* or 0-7, 0 or 7 is Sunday) Wochentage (* oder 0-7, 0/7 ist Sonntag) Hours (* or 0-23) Stunden (* oder 0-23) Minutes (0-59) Minuten (0-59) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Wählen Sie <span style=" font-style:italic;">Deaktivieren</span>, um die periodische Indizierung auszuschalten, <span style=" font-style:italic;">Aktivieren</span>, um sie einzuschalten, <span style=" font-style:italic;">Abbruch</span>, um nichts zu verändern.</p></body></html> Enable Aktivieren Disable Deaktivieren It seems that manually edited entries exist for recollindex, cannot edit crontab Offenbar gibt es manuelle Einträge für recollindex, crontab kann nicht angepasst werden. Error installing cron entry. Bad syntax in fields ? Fehler beim Erstellen des cron Eintrags. Falsche Syntax in Feldern? EditDialog Dialog Dialog EditTrans Source path Quellpfad Local path Lokaler Pfad Config error Konfigurationsfehler Original path Originalpfad EditTransBase Path Translations Pfadumwandlungen Setting path translations for Setze Pfadumwandlungen für Select one or several file types, then use the controls in the frame below to change how they are processed Wählen Sie einen oder mehrere Dateitypen aus. Nutzen Sie dann die Bedienelemente unten, um einzustellen wie sie verarbeitet werden. Add Hinzufügen Delete Entfernen Cancel Abbrechen Save Speichern FirstIdxDialog First indexing setup Einrichten für die erste Indizierung <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Es existiert noch kein Index für diese Konfiguration.</span><br /><br />Wenn Sie nur Ihr Home-Verzeichnis mit sinnvollen Voreinstellungen indizieren wollen, wählen Sie die Schaltfläche <span style=" font-style:italic;">Indizierung jetzt starten</span>. Sie können die Details später anpassen.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Wenn Sie das Verhalten genauer festlegen wollen, verwenden Sie die folgenden Verknüpfungen, um Einstellungen und Zeitplan für die Indizierung anzupassen.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Diese Werkzeuge können Sie später im Menü <span style=" font-style:italic;">Einstellungen</span> erreichen.</p></body></html> Indexing configuration Einstellungen für Indizierung This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. Hier können Sie die zu indizierenden Verzeichnisse und andere Einstellungen (wie auszuschließende Dateipfade oder -namen, Standard-Zeichensatz usw.) anpassen. Indexing schedule Zeitplan für Indizierung This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). Hier können Sie zwischen regelmäßiger Indizierung und Echtzeit-Indizierung wählen und einen automatischen Zeitplan für die regelmäßige Indizierung einrichten (mit cron). Start indexing now Indizierung jetzt starten FragButs %1 not found. %1: %2 Query Fragments IdxSchedW Index scheduling setup Einrichtung des Zeitplans für die Indizierung <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Indizierung kann ständig laufen und Datein indizieren sobald sie verändert werden, oder aber nur zu bestimmten Zeitpunkten ablaufen.</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Im Handbuch finden Sie Informationen, anhand derer Sie sich für einen der Ansätze entscheiden können (drücken Sie F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Dieses Werkzeug hilft Ihnen, einen Zeitplan für periodische Indizierungs-Läufe einzurichten oder die Echtzeit-Indizierung zu starten, wenn Sie sich anmelden (oder beides, was aber selten sinnvoll sein dürfte). </p></body></html> Cron scheduling Cron-Zeitplan The tool will let you decide at what time indexing should run and will install a crontab entry. Mit diesem Werkzeug können Sie festlegen, zu welchen Zeiten die Indizierung laufen soll, und einen crontab Eintrag anlegen. Real time indexing start up Start der Echtzeit-Indizierung Decide if real time indexing will be started when you log in (only for the default index). Entscheiden Sie, ob die Echtzeit-Indizierung beim Anmelden gestartet wird (nur für den Standard-Index). ListDialog Dialog Dialog GroupBox GruppenBox Main No db directory in configuration Kein Datenbankverzeichnis konfiguriert Could not open database in Fehler beim Öffnen der Datenbank in . Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed. . Drücken Sie Abbrechen, um die Konfigurationsdatei vor dem Start der Indizierung anzupassen oder OK um mit der Indizierung zu beginnen. Configuration problem (dynconf Konfigurationsproblem (dynconf) "history" file is damaged or un(read)writeable, please check or remove it: "history" Datei ist beschädigt oder nicht les-/schreibbar, bitte überprüfen oder entfernen Sie sie: Preview &Search for: &Suche nach: &Next &Nächstes &Previous &Vorheriges Match &Case Groß-/Kleinschreibung &beachten Clear Leeren Creating preview text Erzeuge Vorschautext Loading preview text into editor Lade Vorschautext in den Editor Cannot create temporary directory Fehler beim Anlegen des temporären Verzeichnisses Cancel Abbrechen Close Tab Tab schließen Missing helper program: Fehlendes Hilfsprogramm: Can't turn doc into internal representation for Überführung in interne Darstellung nicht möglich für Cannot create temporary directory: Fehler beim Anlegen des temporären Verzeichnisses: Error while loading file Fehler beim Lesen der Datei PreviewTextEdit Show fields Felder zeigen Show main text Vorschautext zeigen Print Drucken Print Current Preview Aktuelle Vorschau drucken Show image Zeige Bild Select All Alles auswählen Copy Kopieren Save document to file Dokument in Datei sichern Fold lines Zeilen umbrechen Preserve indentation Einrückung erhalten QObject Global parameters Globale Parameter Local parameters Lokale Parameter <b>Customised subtrees <b>Angepasste<br> Unterverzeichnisse The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty. Die Liste der Unterverzeichnisse in der indizierten Hierarchie, in denen einige Parameter anders gesetzt werden müssen. Voreinstellung: leer. <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons. <i>Die folgenden Parameter werden entweder global gesetzt (wenn nichts oder eine leere<br> Zeile in der Liste oben ausgewählt ist) oder für das ausgewählte Unterverzeichnis.<br> Sie können Verzeichnisse durch Anklicken von +/- hinzufügen oder entfernen.<br> Skipped names Auszulassende Namen These are patterns for file or directory names which should not be indexed. Dies sind Muster für Dateien oder Verzeichnisse, die nicht indiziert werden sollen. Default character set Standard-Zeichensatz This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. DIes ist der Zeichensatz, der für Dateien benutzt wird, die ihren Zeichensatz nicht intern definieren, z.B. Textdateien. Der Standardwert ist leer und der Wert der NLS-Umgebung wird benutzt. Follow symbolic links Folge symbolischen Links Follow symbolic links while indexing. The default is no, to avoid duplicate indexing Folge symbolischen Links bei der Indizierung. Der Standardwert ist "Nein", um doppelte Indizierung zu vermeiden. Index all file names Indiziere alle Dateinamen Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true Indiziere die Namen von Dateien, deren Inhalt nicht erkannt oder verarbeitet werden kann (kein oder nicht unterstützter Mime-Typ). Der Standardwert ist "Ja". Beagle web history Beagle Web-Chronik Search parameters Suchparameter Web history Web-Chronik Default<br>character set Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Ignored endings These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing). QWidget Create or choose save directory Choose exactly one directory Could not read directory: Unexpected file name collision, cancelling. Cannot extract document: &Preview &Vorschau &Open &Öffnen Open With Run Script Copy &File Name &Dateinamen kopieren Copy &URL &URL kopieren &Write to File &Schreibe in Datei Save selection to files Auswahl in Dateien sichern Preview P&arent document/folder Vorschau des &übergeordneten Dokuments/Ordners &Open Parent document/folder Ö&ffnen des übergeordneten Dokuments/Ordners Find &similar documents &Ähnliche Dokumente finden Open &Snippets window Öffne &Schnipsel-Fenster Show subdocuments / attachments Untergeordnete Dokumente / Anhänge anzeigen RTIToolW Real time indexing automatic start Automatischer Start der Echtzeit-Indizierung <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Indizierung kann im Hintergrund laufen und den Index in Echtzeit aktualisieren sobald sich Dateien ändern. Sie erhalten so einen Index, der stets aktuell ist, aber die System-Resourcen werden ununterbrochen beansprucht.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></htm Start indexing daemon with my desktop session. Indizierungs-Dämon mit Desktop-Sitzung starten Also start indexing daemon right now. Indizierungs-Dämon jetzt sofort starten Replacing: Ersetze: Replacing file Ersetze Datei Can't create: Fehler beim Erzeugen von: Warning Warnung Could not execute recollindex Fehler beim Ausführen von recollindex Deleting: Lösche: Deleting file Lösche Datei Removing autostart Autostart wird entfernt Autostart file deleted. Kill current process too ? Autotstart-Datei wurde entfernt. Soll auch der laufende Prozess beendet werden? RclMain About Recoll Über Recoll Executing: [ Ausführen: [ Cannot retrieve document info from database Keine Informationen zum Dokument in der Datenbank Warning Warnung Can't create preview window Fehler beim Erzeugen des Vorschaufensters Query results Suchergebnisse Document history Dokumenten-Chronik History data Chronik-Daten Indexing in progress: Indizierung läuft: Files Dateien Purge Säubern Stemdb Wortstämme Closing Schließen Unknown Unbekannt This search is not active any more Diese Suche ist nicht mehr aktiv Can't start query: Kann die Suche nicht starten: Bad viewer command line for %1: [%2] Please check the mimeconf file Fehlerhafter Anzeigebefehl für %1: [%2] Überprüfen Sie die Datei mimeconf. Cannot extract document or create temporary file Fehler beim Extrahieren des Dokuments oder beim Erzeugen der temporären Datei (no stemming) (kein Stemming) (all languages) (alle Sprachen) error retrieving stemming languages Fehler beim Holen der Stemming-Sprachen Update &Index Index &aktualisieren Stop &Indexing &Indizierung stoppen All Alle media Medien message Nachricht other Andere presentation Präsentation spreadsheet Tabelle text Text sorted sortiert filtered gefiltert External applications/commands needed and not found for indexing your file types: Externe Anwendungen/Befehle, die zur Indizierung Ihrer Dateitypen gebraucht werden und nicht gefunden wurden: No helpers found missing Keine fehlenden Hilfsprogramme Missing helper programs Fehlende Hilfsprogramme Document category filter Filter für Dokumenten-Kategorie No external viewer configured for mime type [ Kein externes Anzeigeprogramm konfiguriert für Mime-Typ [ The viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ? Das in mimeview angegebene Anzeigeprogramm für %1: %2 wurde nicht gefunden. Wollen Sie den Einstellungs-Dialog starten? Can't access file: Fehler beim Zugriff auf Datei: Can't uncompress file: Fehler beim Dekomprimieren von Datei: Save file Datei sichern Result count (est.) Anzahl Ergebnisse (ca.) Query details Details zur Suchanfrage Could not open external index. Db not open. Check external indexes list. Externer Index konnte nicht geöffnet werden. Datenbank nicht offen. Überprüfen Sie die Liste der externen Indizes. No results found Keine Ergebnisse gefunden None Keine Updating Aktualisiere Done Fertig Monitor Überwachen Indexing failed Indizierung gescheitert The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone Der laufende Indizierungs-Prozess wurde nicht aus diesem Programm gestartet. Drücken SIe OK, um ihn dennoch zu stoppen oder Abbrechen, um ihn unverändert zu lassen. Erasing index Lösche Index Reset the index and start from scratch ? Index zurücksetzen und ganz neu aufbauen? Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program Suche läuft.<br>Aufgrund von Einschränkungen der Indizierungs-Bibliothek<br>führt ein Abbruch zur Beendigung des Programms. Error Fehler Index not open Index nicht geöffnet Index query error Fehler beim Abfragen des Index Content has been indexed for these mime types: Inhalte mit diesen Mime-Typen wurden indiziert: Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. Der Index ist für diese Datei nicht auf dem neuesten Stand. Es soll nicht das Risiko eingegangen werden, den falschen Eintrag anzuzeigen. Drücken SIe OK, um den Index für diese Datei zu aktualisieren und starten Sie die Suchanfrage erneut, wenn die Indizierung abgeschlossen ist. Drücken Sie ansonsten Abbrechen. Can't update index: indexer running Fehler beim Aktualisieren des Index: Indizierung läuft Indexed MIME Types Indizierte Mime-Typen Bad viewer command line for %1: [%2] Please check the mimeview file Fehlerhafter Anzeigebefehl für %1: [%2] Überprüfen Sie die Datei mimeview. Viewer command line for %1 specifies both file and parent file value: unsupported Anzeigebefehl für %1 legt Datei und übergeordnete Datei fest: nicht unterstützt Cannot find parent document Übergeordnetes Dokument nicht gefunden Indexing did not run yet Indizierung ist noch nicht durchgeführt worden External applications/commands needed for your file types and not found, as stored by the last indexing pass in Externe Anwendungen/Befehle, die zur Indizierung Ihrer Dateitypen gebraucht werden und nicht gefunden wurden - vom letzten Indizierungslauf hinterlegt unter Index not up to date for this file. Refusing to risk showing the wrong entry. Der Index ist für diese Datei nicht mehr aktuell. Einträge könnten fehlerhaft sein und werden nicht angezeigt. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. Drücken Sie Ok, um den Index für diese Datei zu aktualisieren und die Suche daraufhin zu wiederholen. Ansonsten drücken Sie auf Abbrechen. Indexer running so things should improve when it's done Indizierung ist im Gange. Die Resultate sollten sich nach der Fertigstelltung verbessert haben Sub-documents and attachments Untergeordnete Dokumente und Anhänge Document filter Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. The indexer is running so things should improve when it's done. The document belongs to an external indexwhich I can't update. Click Cancel to return to the list. Click Ignore to show the preview anyway. Duplicate documents Doppelte Dokumente These Urls ( | ipath) share the same content: Diese URLs ( | ipath) sind inhaltsgleich: Bad desktop app spec for %1: [%2] Please check the desktop file Indexing interrupted RclMainBase Previous page Vorherige Seite Next page Nächste Seite &File &Datei E&xit &Beenden &Tools &Werkzeuge &Help &Hilfe &Preferences &Einstellungen Search tools Suchwerkzeuge Result list Ergebnisliste &About Recoll &Über Recoll Document &History &Dokumenten-Chronik Document History Dokumenten-Chronik &Advanced Search &Erweiterte Suche Advanced/complex Search Erweiterte/komplexe Suche &Sort parameters &Sortierparameter Sort parameters Sortierparameter Next page of results Nächste Ergebnisseite Previous page of results Vorherige Ergebnisseite &Query configuration Einstellungen für &Suche &User manual &Benutzerhandbuch Recoll Recoll Ctrl+Q Ctrl+Q Update &index &Index aktualisieren Term &explorer &Ausdruck-Explorer Term explorer tool Ausdruck-Explorer-Werkzeug External index dialog Dialog für externe Indizes &Erase document history Lösche &Dokumenten-Chronik First page Erste Seite Go to first page of results Gehe zur ersten Ergebnisseite &Indexing configuration &Einstellungen für Indizierung All Alle &Show missing helpers Zeige fehlende &Hilfsprogramme PgDown PgDown PgUp PgUp &Full Screen &Vollbild F11 F11 Full Screen Vollbild &Erase search history Lösche &Such-Chronik sortByDateAsc sortByDateAsc Sort by dates from oldest to newest Nach Datum sortieren (von alt nach neu) sortByDateDesc sortByDateDesc Sort by dates from newest to oldest Nach Datum sortieren (von neu nach alt) Show Query Details Zeige Details zur Suchanfrage Show results as table Zeige Ergebnisse als Tabelle &Rebuild index Index &neu aufbauen &Show indexed types Zeige indizierte &Typen Shift+PgUp Shift+PgUp &Indexing schedule &Zeitplan für Indizierung E&xternal index dialog Dialog für externe &Indizes &Index configuration &Index-Einstellungen &GUI configuration &GUI-Einstellungen &Results &Ergebnisse Sort by date, oldest first Nach Datum sortieren (von alt nach neu) Sort by date, newest first Nach Datum sortieren (von neu nach alt) Show as table Als Tabelle anzeigen Show results in a spreadsheet-like table Zeigt Ergebnisse als Tabelle an Save as CSV (spreadsheet) file Tabelle als CSV Datei speichern Saves the result into a file which you can load in a spreadsheet Speichert Resultate als Tabellenkalkulations-kompatible CSV-Datei ab Next Page Nächste Seite Previous Page Vorherige Seite First Page Erste Seite Query Fragments With failed files retrying Next update will retry previously failed files RclTrayIcon Restore Quit RecollModel File name Dateiname Mime type Mime Type Date Datum Abstract Auszug Author Autor Document size Größe des Dokuments Document date Datum des Dokuments File size Größe der Datei File date Datum der Datei Keywords Schlagworte Original character set Ursprünglicher Zeichensatz Relevancy rating Relevanz-Bewertung Title Titel URL URL Mtime Änderungszeitpunkt Date and time Datum und Uhrzeit Ipath Interner Pfad MIME type Mime-Typ ResList Result list Ergebnisliste Unavailable document Dokument nicht verfügbar Previous Zurück Next Weiter <p><b>No results found</b><br> <p><b>Keine Ergebnisse gefunden</b><br> &Preview &Vorschau Copy &URL &URL kopieren Find &similar documents &Ähnliche Dokumente finden Query details Suchdetails (show query) (Suchanfrage zeigen) Copy &File Name &Dateinamen kopieren Document history Dokumenten-Chronik Preview Vorschau Open Öffnen <p><i>Alternate spellings (accents suppressed): </i> <p><i>Alternative Schreibweisen (Akzente unterdrückt): </i> &Write to File &Schreibe in Datei Preview P&arent document/folder Vorschau des &übergeordneten Dokuments/Ordners &Open Parent document/folder Ö&ffnen des übergeordneten Dokuments/Ordners &Open &Öffnen Documents Dokumente out of at least von mindestens for für <p><i>Alternate spellings: </i> <p><i>Alternative Schreibweisen: </i> Open &Snippets window Öffne &Schnipsel-Fenster Duplicate documents Doppelte Dokumente These Urls ( | ipath) share the same content: ipath? Diese URLs ( | ipath) sind inhaltsgleich: Result count (est.) Anzahl Ergebnisse (ca.) Snippets Schnipsel ResTable &Reset sort Sortierung &zurücksetzen &Delete column Spalte &löschen Save table to CSV file Tabelle als CSV Datei speichern Can't open/create file: Fehler beim Öffnen/Erzeugen von Datei: &Preview &Vorschau &Open &Öffnen Copy &File Name &Dateinamen kopieren Copy &URL &URL kopieren &Write to File &Schreibe in Datei Find &similar documents &Ähnliche Dokumente finden Preview P&arent document/folder Vorschau des &übergeordneten Dokuments/Ordners &Open Parent document/folder Ö&ffnen des übergeordneten Dokuments/Ordners &Save as CSV Als CSV &speichern Add "%1" column Spalte "%1" hinzufügen ResTableDetailArea &Preview &Vorschau &Open &Öffnen Copy &File Name &Dateinamen kopieren Copy &URL &URL kopieren &Write to File &Schreibe in Datei Find &similar documents &Ähnliche Dokumente finden Preview P&arent document/folder Vorschau des &übergeordneten Dokuments/Ordners &Open Parent document/folder Ö&ffnen des übergeordneten Dokuments/Ordners ResultPopup &Preview &Vorschau &Open &Öffnen Copy &File Name &Dateinamen kopieren Copy &URL &URL kopieren &Write to File &Schreibe in Datei Save selection to files Auswahl in Dateien sichern Preview P&arent document/folder Vorschau des &übergeordneten Dokuments/Ordners &Open Parent document/folder Ö&ffnen des übergeordneten Dokuments/Ordners Find &similar documents &Ähnliche Dokumente finden Open &Snippets window Öffne &Schnipsel-Fenster Show subdocuments / attachments Untergeordnete Dokumente / Anhänge anzeigen SSearch Any term Irgendein Ausdruck All terms Alle Ausdrücke File name Dateiname Completions Vervollständigungen Select an item: Wählen Sie ein Element: Too many completions Zu viele Vervollständigungen Query language Suchsprache Bad query string Fehlerhafte Suchanfrage Out of memory Kein Speicher mehr verfügbar Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> No actual parentheses allowed.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. Geben Sie einen Suchsprachen-Ausdruck ein. Spickzettel:<br> <i>Begriff1 Begriff2</i> : 'Begriff1' und 'Begriff2' in irgendeinem Feld.<br> <i>field:Begriff1</i> : 'Begriff1' im Feld 'field'.<br> Standard-Feldnamen/Synonyme:<br> title/subject/caption, author/from, recipient/to, filename, ext<br> Pseudo-Felder: dir, mime/format, type/rclcat, date<br> Zwei Beispiele für Datumsintervalle: 2009-03-01/2009-05-20 2009-03-01/P2M<br> <i>Begriff1 Begriff2 OR Begriff3</i> : Begriff1 AND (Begriff2 OR Begriff3)<br> Klammern sind nicht erlaubt.<br> <i>"Begriff1 Begriff2"</i> : Phrase (muss genaus so vorkommen). Mögliche Modifikatoren:<br> <i>"Begriff1 Begriff2"p</i> : ungeordnete Nähen-Suche mit voreingestelltem Abstand.<br> Im Zweifelsfalle verwenden Sie den Link <b>Suchanfrage zeigen</b> und finden im Handbuch (&lt;F1>) weitere Details. Enter file name wildcard expression. Geben Sie einen Wildcard-Ausdruck für Dateinamen ein. Enter search terms here. Type ESC SPC for completions of current term. Suchbegriffe hier eingeben. Drücken Sie ESC+Leerzeichen für Vervollständigungen des aktuellen Begriffs. Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. SSearchBase SSearchBase SSearchBase Clear Löschen Ctrl+S Ctrl+S Erase search entry Sucheintrag löschen Search Suchen Start query Suche starten Enter search terms here. Type ESC SPC for completions of current term. Suchbegriffe hier eingeben. Drücken Sie ESC+Leerzeichen für Vervollständigungen des aktuellen Begriffs. Choose search type. Wählen Sie die Art der Suche SearchClauseW SearchClauseW SearchClauseW Any of these Irgendeins dieser All of these Alle diese None of these Keins dieser This phrase diese Wörter Terms in proximity ähnliche Ausdrücke File name matching passende Dateinamen Select the type of query that will be performed with the words Wählen Sie die Art der Suche aus, die mit den Wörtern gestartet wird. Number of additional words that may be interspersed with the chosen ones Anzahl der Wörter, die sich zwischen den angegebenen befinden dürfen No field Kein Feld Any Irgendeines All Alle None Keines Phrase Phrase Proximity Nähe File name Dateiname Snippets Snippets Schnipsel about:blank about:blank Find: Finden: Next Weiter Prev Zurück X X SnippetsW Search Suchen <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p> SortForm Date Datum Mime type Mime Type SortFormBase Sort Criteria Sortierkriterium Sort the Zeige die most relevant results by: relevantesten Ergebnisse sortiert nach: Descending Absteigend Close Schließen Apply Übernehmen SpellBase Term Explorer Ausdruck-Explorer &Expand &Vervollständigen Alt+E Alt+V &Close &Schließen Alt+C Alt+S Term Ausdruck No db info. Keine Datenbank-Information Match Beachte Case Groß-/Kleinschreibung Accents Betonungszeichen SpellW Wildcards Wildcards Regexp Regulärer Ausdruck Spelling/Phonetic Phonetisch Aspell init failed. Aspell not installed? Fehler bei der Initialisierung von Aspell. Ist Aspell nicht installiert? Aspell expansion error. Aspell Vervollständigungsfehler Stem expansion Wortstamm-Erweiterung error retrieving stemming languages Fehler beim Holen der Stemming-Sprachen No expansion found Keine Erweiterung gefunden Term Begriff Doc. / Tot. Dok. / Ges. Index: %1 documents, average length %2 terms Index: %1 Dokumente mit durchschnittlicher Länge von %2 Begriffen Index: %1 documents, average length %2 terms.%3 results Index: %1 Dokumente mit durchschnittlicher Länge von %2 Begriffen. %3 Ergebnisse %1 results %1 Ergebnisse List was truncated alphabetically, some frequent Liste wurde alphabetisch abgeschnitten, einige häufige Begriffe terms may be missing. Try using a longer root. können fehlen. Versuchen Sie es mit einer längeren Wurzel. Show index statistics Indexstatistiken anzeigen Number of documents Dokumentenzahl Average terms per document Durchschnittliche Zahl von Ausdrücken pro Dokument Smallest document length Minimale Zahl von Ausdrücken Longest document length Maximale Zahl von Ausdrücken Database directory size Größe des Datenbankordners MIME types: Mime-Typen: Item Eintrag Value Wert UIPrefsDialog The selected directory does not appear to be a Xapian index Das ausgewählte Verzeichnis scheint kein Xapian-Index zu sein. This is the main/local index! Das ist der Hauptindex! The selected directory is already in the index list Das ausgewählte Verzeichnis ist bereits in der Indexliste. Select xapian index directory (ie: /home/buddy/.recoll/xapiandb) Wählen Sie das Xapian-Indexverzeichnis (z.B. /home/benutzer/.recoll/xapiandb) error retrieving stemming languages Fehler beim Holen der Stemming-Sprachen Choose Auswählen Result list paragraph format (erase all to reset to default) Format für Ergebnis-Absatz (alles löschen, um auf Standard zurück zu setzen) Result list header (default is empty) Header der Ergebnisliste (Standard ist leer) Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) Wählen Sie den Recoll-Konfigurationsordner oder das Xapian-Indexverzeichnis aus (z.B. /home/ich/.recoll oder /home/ich/.recoll/xapiandb) The selected directory looks like a Recoll configuration directory but the configuration could not be read Der ausgewählten Ordner handelt scheint Recoll-Konfigurationsordner zu sein, aber die Konfiguration konnte nicht ausgelesen werden At most one index should be selected Bitte wählen Sie maximal einen Index aus Cant add index with different case/diacritics stripping option Indices mit unterschiedlichen Einstellungen zum Umgang mit Groß/-Kleinschreibung und diakritischen Zeichen können nicht hinzugefügt werden Default QtWebkit font UIPrefsDialogBase User interface Benutzeroberfläche Number of entries in a result page Anzahl der Ergebnisse pro Seite Result list font Schriftart für Ergebnisliste Helvetica-10 Helvetica-10 Opens a dialog to select the result list font Öffnet einen Dialog zur Auswahl der Schriftart für die Ergebnisliste Reset Reset Resets the result list font to the system default Setzt die Schriftart für die Ergebnisliste zurück auf den Standardwert Auto-start simple search on whitespace entry. Automatisch eine einfache Suche starten, wenn ein Worttrenner im Sucheingabefeld eingegeben wird. Start with advanced search dialog open. Nach dem Start automatisch den Dialog für die erweiterte Suche öffnen. Start with sort dialog open. Nach dem Start automatisch den Sortierdialog öffnen. Search parameters Suchparameter Stemming language Stemming Sprache Dynamically build abstracts Zusammenfassungen dynamisch erzeugen Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Festlegung ob Zusammenfassungen für Ergebnisse im Kontext der Suchparameter erzeugt werden (kann bei großen Dokumenten langsam sein). Replace abstracts from documents Ersetzen der Zusammenfassungen in den Dokumenten Do we synthetize an abstract even if the document seemed to have one? Festlegung ob eine Zusammenfassung auch dann erzeugt wird, wenn das Dokument schon eine Zusammenfassung enthält Synthetic abstract size (characters) Länge der erzeugten Zusammenfassung (Zeichen) Synthetic abstract context words Anzahl der Kontextworte in der Zusammenfassung External Indexes externe Indizes Add index Index hinzufügen Select the xapiandb directory for the index you want to add, then click Add Index Wählen Sie das xapiandb-Verzeichnis des zuzufügenden Indizes und klicken Sie auf Index hinzufügen Browse Auswahl &OK &OK Apply changes Änderungen übernehmen &Cancel &Abbrechen Discard changes Änderungen verwerfen Result paragraph<br>format string Formatstring für Ergebnisse Automatically add phrase to simple searches Automatisches Zufügen von Sätzen zu einfachen Suchen A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. Eine Suche nach [Jürgen Klinsmann] wird geändert nach [Jürgen OR Klinsmann OR (Jürgen PHRASE 2 Klinsmann)]. Dadurch sollten Ergebnisse, die exakte Übereinstimmungen der Suchworte enthalten, stärker gewichtet werden. User preferences Benutzereinstellungen Use desktop preferences to choose document editor. Die Einstellung des Dokumenteneditors erfolgt in den Desktopvoreinstellungen. External indexes Externe Indizes Toggle selected Auswahl umkehren Activate All Alle Auswählen Deactivate All Alle Abwählen Remove selected Ausgewählte entfernen Remove from list. This has no effect on the disk index. Aus der Liste entfernen. Dies hat keinen Einfluss auf den gespeicherten Index. Remember sort activation state. Speichern, ob Sortieren aktiviert ist ViewAction Changing actions with different current values Aktionen mit anderen Werten ändern Mime type Mime Type Command Befehl MIME type Mime-Typ Desktop Default Desktopvoreinstellung Changing entries with different current values Einträge mit anderen Werten ändern ViewActionBase File type Dateityp Action Aktion Select one or several file types, then click Change Action to modify the program used to open them Wählen Sie einen oder mehrere Dateitypen und klicken Sie auf "Ändere Aktion", um das Programm zum Öffnen anzupassen. Change Action Ändere Aktion Close Schließen Native Viewers Anzeigeprogramme Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults. Wählen Sie einen oder mehrere Mime-Typen und klicken Sie auf "Ändere Aktion".<br>Sie können diesen Dialog auch schließen und stattdessen "Die Einstellung des<br> Dokumenteneditors erfolgt in den Desktopeinstellungen" auswählen.<br> Die Liste wird dann igoriert und es werden die Desktopeinstellungen verwendet. Select one or several mime types then use the controls in the bottom frame to change how they are processed. Wählen Sie einen oder mehrere MIME-Typen aus und nutzen Sie dann die Bedienelemente unten, um das Programm zum Öffnen anzupassen. Use Desktop preferences by default Standardmäßig Desktopvoreinstellungen nutzen Select one or several file types, then use the controls in the frame below to change how they are processed Wählen Sie einen oder mehrere Dateitypen aus. Nutzen Sie dann die Bedienelemente unten, um das Programm zum Öffnen anzupassen Exception to Desktop preferences Von Desktopvoreinstellungen abweichende Ausnahme Action (empty -> recoll default) Aktion (leer → Recoll-Voreinstellung) Apply to current selection Auf aktuelle Auswahl anwenden Recoll action: Recoll-Aktion: current value aktueller Wert Select same Das Selbe wählen <b>New Values:</b> <b>Neuer Wert</b> confgui::ConfBeaglePanelW Steal Beagle indexing queue Indizierungs-Warteschlange von Beagle übernehmen Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin) Beagle darf NICHT laufen. Ermöglicht die Abarbeitung der Beagle-Warteschlange, um die Firefox Web-Chronik zu indizieren.<br>(Sie sollten auch das Beagle-Plugin für Firefox installieren.) Entries will be recycled once the size is reached Einträge werden wiederverwendet sobald die Größe erreicht ist. Web page store directory name Verzeichnis zur Ablage von Webseiten The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory. Der Name eines Verzeichnisses, in dem Kopien der besuchten Webseiten gespeichert werden sollen.<br>Ein nicht-absoluter Pfad ist dabei relativ zum Konfigurationsverzeichnis. Max. size for the web store (MB) Maximale Größe für Ablage von Webseiten (MB) Process the WEB history queue Web-Chronik Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin) confgui::ConfIndexW Can't write configuration file Fehler beim Schreiben der Konfigurationsdatei confgui::ConfParamFNW Choose Auswählen confgui::ConfParamSLW + + - - confgui::ConfSearchPanelW Automatic diacritics sensitivity Automatisch diakritische Zeichen beachten <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity. <p> Automatisch die Beachtung von diakritischen Zeichen einschalten, wenn der Suchbegriff Zeichen mit Akzenten enthält (nicht in unac_except_trans). Ansonsten müssen Sie dafür die Suchsprache und den <i>D</i> Modifikator verwenden. Automatic character case sensitivity Automatisch Groß-/Kleinschreibung beachten <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity. <p> Automatisch die Beachtung von Groß-/Kleinschreibung einschalten, wenn der Eintrag Großbuchstaben enthält (außer an erster Stelle). Ansonsten müssen Sie dafür die Suchsprache und den <i>C</i> Modifikator verwenden. Maximum term expansion count Maximale Anzahl von Ausdruck-Erweiterungen <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. <p>Maximale Anzahl von Erweiterungen für einen einzelnen Ausdruck (z.B. bei der Verwendung von Wildcards). Der Standardwert 10 000 ist vernünftig und verhindert, dass Suchanfragen scheinbar einfrieren, während die Liste der Begriffe durchlaufen wird. Maximum Xapian clauses count Maximale Anzahl von Xapian-Ausdrücken <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. <p>Maximale Anzahl von elementaren Ausdrücken, die wir zu einer einzelnen Xapian Abfrage hinzufügen. In manchen Fällen können die Ergebnisse von Ausdruck-Erweiterungen sich ausmultiplizieren, und wir wollen übermäßigen Speicherverbrauch vermeiden. Der Standardwert 100 000 sollte in den meisten Fällen hoch genug sein und zugleich zu typischen derzeitigen Hardware-Ausstattungen passen. confgui::ConfSubPanelW Global Global Max. compressed file size (KB) Max. Größe kompr. Dateien (kB) This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever. Dies ist eine Obergrenze; komprimierte Dateien jenseits dieser Größe werden nicht verarbeitet. Auf -1 setzen, um keine Obergrenze zu haben, auf 0, um nie zu dekomprimieren. Max. text file size (MB) Max. Größe Textdateien (MB) This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index. Dies ist eine Obergrenze; Textdateien jenseits dieser Größe werden nicht verarbeitet Auf -1 setzen, um keine Obergrenze zu haben. Dies dient dazu, riesige Log-Dateien vom Index auszuschließen. Text file page size (KB) Seitengröße Textdateien (kB) If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files). Wenn dieser Wert gesetzt ist (ungleich -1), werden Textdateien zur Indizierung in Stücke dieser Größe aufgeteilt. Das hilft bei der Suche in sehr großen Textdateien (z.B. Log-Dateien). Max. filter exec. time (S) Max. Zeit für Filter (s) External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit. Externe Filter, die länger als diese Zeit laufen, werden abgebrochen. Das ist für den seltenen Fall (Postscript), in dem ein Dokument eine unendliche Schleife auslöst. Auf -1 setzen, um keine Obergrenze zu haben. External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. Externe Filter, die länger als diese Zeit laufen, werden abgebrochen. Das ist für den seltenen Fall (Postscript), in dem ein Dokument eine unendliche Schleife auslöst. Auf -1 setzen, um keine Obergrenze zu haben. Only mime types An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive Exclude mime types Mime types not to be indexed confgui::ConfTopPanelW Top directories Start-Verzeichnisse The list of directories where recursive indexing starts. Default: your home. Die Liste der Verzeichnisse, in denen die rekursive Indizierung startet. Standard: Home-Verzeichnis. Skipped paths Auszulassende Pfade These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*') Die Namen der Verzeichnisse, die nicht indiziert werden.<br>Kann Wildcards enthalten. Muss den Pfaden entsprechen, die der Indizierer sieht (d.h.. wenn '/home/me' in den Start-Verzeichnissen steht und '/home' eigentlich ein Link zu '/usr/home' ist, dann wäre ein korrekter Eintrag '/home/me/tmp*' und nicht '/usr/home/me/tmp*') Stemming languages Stemming-Sprachen The languages for which stemming expansion<br>dictionaries will be built. Die Sprachen, für die Worstammerweiterungsverzeichnisse erstellt werden. Log file name Log-Datei The file where the messages will be written.<br>Use 'stderr' for terminal output Die Datei, in die Ausgaben geschrieben werden.<br>Für Ausgaben auf dem Terminal 'stderr' benutzen. Log verbosity level Ausführlichkeit des Logs This value adjusts the amount of messages,<br>from only errors to a lot of debugging data. Dieser Wert steuert die Menge der Meldungen<br>(nur Fehler oder viele Debugging Ausgaben). Index flush megabytes interval Interval (MB) für Speicherleerung This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB Dieser Wert steuert, wieviel Daten indiziert werden bevor die Indexinformationen auf Festplatte geschrieben werden.<br>Hierdurch kann der Speicherverbrauch des Indizierers gesteuert werden. Standardwert: 10MB Max disk occupation (%) Max. Festplattenbelegung (%) This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default). Dies ist der Prozentsatz der Festplattenbelegung, ab dem die Indizierung gestoppt wird (um das Füllen der Festplatte zu vermeiden).<br>0 bedeutet keine Begrenzung (das ist der Standardwert). No aspell usage Aspell nicht benutzen Aspell language Sprache für Aspell The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. Die Sprache des Aspell-Wörterbuchs (z.B. 'en' oder 'de' ...)<br>Wenn dieser Wert nicht gesetzt ist, wird die NLS-Umgebung verwendet, um die Sprache festzustellen, was im Allgemeinen funktioniert. Um eine Vorstellung zu bekommen, was auf Ihrem System installiert ist, geben Sie 'aspell config' ein und schauen Sie nach .dat Dateien im Verzeichnis 'data-dir'. Database directory name Verzeichnis für Index-Datenbank The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Der Name eines Verzeichnisses, in dem der Index gespeichert werden soll.<br>Ein nicht-absoluter Pfad ist dabei relativ zum Konfigurationsverzeichnis. Der Standard ist 'xapiandb'. Use system's 'file' command 'file' Kommando benutzen Use the system's 'file' command if internal<br>mime type identification fails. Benutze das 'file' Kommando, wenn die interne Erkennung des Mime-Typs fehlschlägt. Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. Deaktiviert die Verwendung von Aspell für die Erzeugung von Schreibweisen-Näherungen im Ausdruck-Explorer-Werkzeug. <br>Nützlich, wenn Aspell nicht vorhanden ist oder nicht funktioniert. The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. Die Sprache des Aspell-Wörterbuchs (z.B. 'en' oder 'de' ...)<br>Wenn dieser Wert nicht gesetzt ist, wird die NLS-Umgebung verwendet, um die Sprache festzustellen, was im Allgemeinen funktioniert. Um eine Vorstellung zu bekommen, was auf Ihrem System installiert ist, geben Sie 'aspell config' ein und schauen Sie nach .dat Dateien im Verzeichnis 'data-dir'. The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Der Name eines Verzeichnisses, in dem der Index gespeichert werden soll.<br>Ein nicht-absoluter Pfad ist dabei relativ zum Konfigurationsverzeichnis. Der Standard ist 'xapiandb'. Unac exceptions Unac Ausnahmen <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation. <p>Dies sind Ausnahmen für den unac Mechanismus, der standardmäßig alle diakritischen Zeichen entfernt und sie durch kanonische Entsprechungen ersetzt. Sie können (abhängig von Ihrer Sprache) dieses Entfernen von Akzenten für einige Zeichen übersteuern und zusätzliche Ersetzungen angeben, z.B. für Ligaturen. Bei jedem durch Leerzeichen getrennten Eintrag ist das erste Zeichen das Ausgangszeichen und der Rest die Ersetzung. uiPrefsDialogBase User preferences Benutzereinstellungen User interface Benutzeroberfläche Number of entries in a result page Anzahl der Ergebnisse pro Seite If checked, results with the same content under different names will only be shown once. Bei Auswahl werden Ergebnisse mit dem gleichen Inhalt unter verschiedenen Namen nur einmal gezeigt. Hide duplicate results. Verstecke doppelte Ergebnisse Highlight color for query terms Farbe zur Hervorhebung von Suchbegriffen Result list font Schriftart für Ergebnisliste Opens a dialog to select the result list font Öffnet einen Dialog zur Auswahl der Schriftart für die Ergebnisliste Helvetica-10 Helvetica-10 Resets the result list font to the system default Setzt die Schriftart für die Ergebnisliste auf den Standardwert zurück Reset Zurücksetzen Result paragraph<br>format string Formatstring für Ergebnisse Texts over this size will not be highlighted in preview (too slow). Texte über dieser Größe werden in der Vorschau nicht mit Hervorhebungen versehen (zu langsam). Maximum text size highlighted for preview (megabytes) Maximale Textgröße für Vorschau-Hervorhebung Use desktop preferences to choose document editor. Einstellung des Dokumenteneditors erfolgt in den Desktopeinstellungen Choose editor applications Standardanwendungen auswählen Display category filter as toolbar instead of button panel (needs restart). Kategorie-Filter in Werkzeugleiste statt als Radio-Buttons (Neustart erforderlich) Auto-start simple search on whitespace entry. Automatisch eine einfache Suche starten, wenn ein Worttrenner eingegeben wird Start with advanced search dialog open. Nach dem Start automatisch den Dialog für die erweiterte Suche öffnen Start with sort dialog open. Nach dem Start automatisch den Sortierdialog öffnen. Remember sort activation state. Speichern, ob Sortierung aktiviert ist Prefer Html to plain text for preview. Bei Vorschau HTML gegenüber reinem Text bevorzugen Search parameters Suchparameter Stemming language Stemming-Sprache A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. Eine Suche nach [Rolling Stones] wird geändert zu [Rolling OR Stones OR (Rolling PHRASE 2 Stones)]. Dadurch sollten Ergebnisse, in denen die Suchworte genau wie eingegeben auftreten, stärker gewichtet werden. Automatically add phrase to simple searches Automatisches Hinzufügen von Phrasen zu einfachen Suchen Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Versuchen wir, Zusammenfassungen für Ergebnisse aus den Fundstellen zu erzeugen? Dies kann bei großen Dokumenten langsam sein. Dynamically build abstracts Zusammenfassungen dynamisch erzeugen Do we synthetize an abstract even if the document seemed to have one? Erzeugen wir eine Zusammenfassung auch dann, wenn das Dokument schon eine Zusammenfassung enthält? Replace abstracts from documents Ersetzen der Zusammenfassungen aus Dokumenten Synthetic abstract size (characters) Länge der erzeugten Zusammenfassung (in Zeichen) Synthetic abstract context words Anzahl der Kontextworte in der Zusammenfassung The words in the list will be automatically turned to ext:xxx clauses in the query language entry. Die Worte in dieser Liste werden automatisch zu ext:xxx Ausdrücken im Suchsprachen-Eintrag umgewandelt. Query language magic file name suffixes. Magische Dateinamen-Erweiterungen für Suchsprache Enable Aktivieren External Indexes Externe Indizes Toggle selected Auswahl umkehren Activate All Alle auswählen Deactivate All Alle abwählen Remove from list. This has no effect on the disk index. Aus der Liste entfernen. Dies hat keinen Einfluss auf den gespeicherten Index. Remove selected Ausgewählte entfernen Click to add another index directory to the list Anklicken, um ein weiteres Index-Verzeichnis zur Liste hinzuzufügen Add index Index hinzufügen Apply changes Änderungen übernehmen &OK &OK Discard changes Änderungen verwerfen &Cancel &Abbrechen Abstract snippet separator Trenner für Zusammenfassungs-Teile Style sheet Style Sheet Opens a dialog to select the style sheet file Öffnet einen Dialog zur Auswahl der Style Sheet Datei Choose Auswählen Resets the style sheet to default Setzt das Style Sheet auf den Standardwert zurück Lines in PRE text are not folded. Using BR loses some indentation. Zeilen in PRE-Text werden nicht umgebrochen. Bei Verwendung von BR gehen manche Einrückungen verloren. Use <PRE> tags instead of <BR>to display plain text as html in preview. <PRE> Tags statt <BR> verwenden, um Texte in der Vorschau als HTML anzuzeigen Result List Ergebnisliste Edit result paragraph format string Format-String für Ergebnis-Absatz editieren Edit result page html header insert HTML-Header der Ergebnisseite ergänzen Date format (strftime(3)) Datumsformat (strftime(3)) Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). Häufigkeitsschwellwert in Prozent, über dem Begriffe nicht beim automatischen Hinzufügen von Phrasen verwendet werden. Häufige Begriffe beeinträchtigen die Performance bei Phrasen stark. Weggelassene Begriffe erhöhen den Phrasen-Slack und vermindern den Nutzender automatischen Phrasen. Der Standardwert ist 2. Autophrase term frequency threshold percentage Häufigkeitsschwellwert für automatische Phrasen Plain text to HTML line style Zeilen-Stil für Umwandlung von Text in HTML Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. Zeilen in PRE-Text werden nicht umgebrochen. Bei Verwendung von BR gehen manche Einrückungen verloren. Möglicherweise ist der Stil 'PRE + Umbruch' das, was Sie wollen. <BR> <BR> <PRE> <PRE> <PRE> + wrap <PRE> + Umbruch Exceptions Ausnahmen Mime types that should not be passed to xdg-open even when "Use desktop preferences" is set.<br> Useful to pass page number and search string options to, e.g. evince. Mime-Typen, die nicht an xdg-open übergeben werden sollen, selbst wenn Desktopvoreinstellungen gewählt wurden.<br> Nützlich, um Seitenzahl und Suchstring zu übergebn, z.B. an evince. Disable Qt autocompletion in search entry. Qt-Autovervollständigung in Suchleiste deaktivieren. Search as you type. Suche beim Eintippen starten. Paths translations Pfadumwandlung Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. Klicken Sie hier um einen weiteren Indexordner zur Liste hinzuzufügen. Sie können entweder einen Recoll-Konfigurationsordner oder einen Xapian-Index auswählen. Snippets window CSS file Schnipsel-Fenster CSS Datei Opens a dialog to select the Snippets window CSS style sheet file Öffnet einen Dialog zur Auswahl der Schnipsel-Fenster CSS Style Sheet Datei Resets the Snippets window style Setzt das Schnipsel-Fenster Style Sheet auf den Standardwert zurück Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Document filter choice style: Buttons Panel Toolbar Combobox Menu Show system tray icon. Close to tray instead of exiting. recoll-1.21.5/qtgui/i18n/recoll_zh.qm0000644000175000017500000021011512602163537016617 0ustar dockesdockes+L+fO1 v:dlGGmH6H6J+ J+J6J6LbPhFT5WTXWXM[ %se`gw5ssv8vvXj!! 0áJ-,֭fn E0,>.c Do2XM1XE`^_ltbnwơwv c xC: LSI\K Mp#vvŵw 5w 51w 51wU.mֳփ6x/f3 yͼug>g ;UqFUre > A!D&,.N7=dP?dGG$sJUYaJUYYՓ[u_na;uʷ3+ʗʗ^LԤxJgAB <.οdK;[4<˕LCe 2vhێ(Pb"3 `Z IFInff=f=)WFWy%Dy%C΄_:#sX|WD%̔ -Z z-)T|B9BSҩkooNr?)r|ak,><?ЂPAS â RoguoǢ:I^~C >q`" Ь:~UKp hu9e(v2T#IB1K %197v[X InDw)zCh#+7I^FW#ѼFN8H:"|_gucwϗɂn= wl1ÓtpÓteȍɆt#®3:uQ0}};EU0CA ɩKc䴥p:a } H 9Zy ;3 K1 ]#l k lM : Ė 9K ü> : *N c *RE +< 66 G.~cU `PW ` cEV d8ؽ y9 I  C   , ԅ - yeD THm > =!f/ Kj= T|cz ht t9 ެ  Σ ۷ m Vd$ 'И{ / 9ɝ3 L*Y P֙p RVh T# VO \iC ] `F> h v {lr !Y !Y @ / G ~y Ө ms 'Rc - 8j FI OEc mC" u0p yפ y~ 3 ȩ u΍ PH P 5d D\ 7V Hu £ q%nL/.<G#Q~+Y~s[sæ\Eg3p~ !c@m c|n|'% lLiQhgaN All clauses AdvSearchNagaN Any clause AdvSearcheN\:[nVhvTSUOMN kcxn$Bad multiplier suffix in size filter AdvSearch YZOSeNmedia AdvSearchNmessage AdvSearchQv[other AdvSearchoy:ehc presentation AdvSearchu5[Phh< spreadsheet AdvSearcheg,eNtext AdvSearch !yRQh <----- All AdvSearchBase !yR N-y <----- Sel AdvSearchBasemRgaN Add clause AdvSearchBasezd}"Advanced search AdvSearchBase yRQh! All ----> AdvSearchBaseSvb@g ^zz[WkOc qg;N QhgaN  y b;b NagaN  y ge~T0<br> Na  Qh T e N y[Wk|{WcS׏Qe{SU͋TS_S_u(v~v~T0<br>zzvQehFO_ue0All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions.
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBasemOBrowse AdvSearchBase c Y'|{gen By categories AdvSearchBase N-N* NO[egۈLn'Check this to enable filtering on dates AdvSearchBase" N-N* NO[eN|{WۈLn,Check this to enable filtering on file types AdvSearchBase" N-N* NO[eN\:[ۈLn'Check this to enable filtering on sizes AdvSearchBase4 N-N* NOOu(Y'vR|{ N Ou(QwOSveN|{W;Check this to use file categories instead of raw mime types AdvSearchBaseQsClose AdvSearchBaseR dgaN Delete clause AdvSearchBaseQed}"vgN \Bv_UEnter top directory for search AdvSearchBasenFilter AdvSearchBaseneg Filter dates AdvSearchBasen\:[ Filter sizes AdvSearchBasegb~Find AdvSearchBaseNFrom AdvSearchBase_ueveN|{WIgnored file types AdvSearchBase S͏lngaNInvert AdvSearchBasegY'\:[ Max. Size AdvSearchBase0gY'\:[0O`SOu(k/K0m/M0g/GO\N:SUOM4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBaseg\\:[ Min. Size AdvSearchBase0g\\:[0O`SOu(k/K0m/M0g/GO\N:SUOM4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase P[eN|{WRestrict file types AdvSearchBase"\~gN-veNP[W(kd[Pv_UhN-%Restrict results to files in subtree: AdvSearchBase O[XN:؋P<Save as default AdvSearchBase(d}"<br>n፳NN gaN<br>vehc'Search for
documents
satisfying: AdvSearchBase\d}"veN|{WSearched file types AdvSearchBase yR N-y! Sel -----> AdvSearchBase_Yd}" Start Search AdvSearchBaseR0To AdvSearchBase<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T19:47:37" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T19:56:53" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } .T3 { font-style:italic; } .T4 { font-family:Courier New,courier; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> by}"_RNR(cron) </p><p class="P1">kN*[WkSNSbNN*M{&(*)0SUN*ep[WP<0SRvRh(1,3,5)TV(1-7)0fQxnW0 N[WkO<span class="T3">c Sh7</span>QR0crontab eNN- VkdّSNOu(crontab vb@g l S€crontab(5)0</p><p class="P1"><br/>OY W(<span class="T3">eg</span>N-Qe<span class="T4">*</span> <span class="T3">\e</span>N-Qe<span class="T4">12,19</span> <span class="T3">R</span>N-Qe<span class="T4">15 </span>v OW(kY)v12:15 AM T7:15 PMT/Rrecollindex0</p><p class="P1">NN*~AbgLvRNR Qv`'SkN N [e}"_0</p></body></html> 

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolW<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:08:00" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:11:47" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T2 { font-style:italic; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1">pQ<span class="T2">yu(</span>NP\kbۈLRSvby}"_ pQ<span class="T2">T/u(</span>NT/u(kdR pQ<span class="T2">Sm</span>RN e9SNOUN0</p></body></html> 

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolWRNR[hF Cron Dialog CronToolW&fge(*b0-7 0b7f/cfgY)))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWyu(Disable CronToolWT/u(Enable CronToolW$cQecrongaveQ0hgl03Error installing cron entry. Bad syntax in fields ? CronToolW\e(*b0-23)Hours (* or 0-23) CronToolWPw wge]~g bKRvrecollindexgavN VkdelcrontabPIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWR(0-59)Minutes (0-59) CronToolW[hFDialog EditDialogSmCancel EditTransBase<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:14:44" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:23:13" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T2 { font-weight:bold; } .T4 { font-style:italic; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T2">g*b~R0[^NkdMn[Ov}"_epcn0</span><br/><br/>YgO`S`NN~Ttv؋Sepge}"_O`v[v_Uv \1vcc <span class="T4">zSs_Y}"_</span>c 0NTSNetMnSepv0</p><p class="P1">YgO``etgNNv \1Ou(N bvcgeetQvN-v}"_MnT[eRT'0</p><p class="P1">N]QwSW(NT<span class="T4"> y</span>SU0</p></body></html> 

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialog{,Nk!}"_nFirst indexing setupFirstIdxDialog}"_MnIndexing configurationFirstIdxDialog [e}"_NRIndexing scheduleFirstIdxDialog zSs_Y}"_Start indexing nowFirstIdxDialog^W(ّSNetO``[QvۈL}"_vv_U NSQv[Sep OYcdT_bT [W0؋[W{& & &This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialogdW(ّSN bf/ۈLby}"_f/[e}"_ SN勾nNN*RSv[eOu(cron by}"_NR0This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialogJ<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:27:11" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:30:49" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> }"_z ^Sc~ЈL^vNW(eNSuSSe[QvۈL}"_ N_SNN[eЈLNk!0</p><p class="P1">O`SNNN bKQ NOfY}W0PZQbbc F1 0</p><p class="P1">N*]QwS^.RO`nNN*RۈLby}"_v[eNR bnb_SO`v{_UeOT/R[e}"_bN$T eۈL _Sq6QNNlg aNI 0</p></body></html> 

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedW[eNRCron scheduling IdxSchedWy:[Wk Show fieldsPreviewTextEditf>y:VrG Show imagePreviewTextEdit f>y:N;eg,Show main textPreviewTextEdit<b>[NIv[Pv_UhCustomised subtreesQObject<i>NN vSep _SO`W(N bvRhN-N N-NOUgavb N-NN*zzLe <br>\1f/[v~v_UwO\u(v T&ROf/[ N-v[Pv_UwO\u(v0<br>O`SNpQ+/-c NOmRbR dv_U0The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject ߎ*{&ScFollow symbolic linksQObject4W(}"_eߎ*{&Sc0؋f/N ߎ*v NQMY }"_TFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObjectQh\@SepGlobal parametersQObject[b@g eNT ۈL}"_Index all file namesQObjectT[NelR$ebYtQvQ[g*w|{WbQv|{WN e/c veNvT [WۈL}"_0؋N:f/}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject\@SepLocal parametersQObjectd}"SepSearch parametersQObjectueveNT  Skipped namesQObjectZf/]}"_vv_UhN-vNN[Pv_U~bvRh<br> [NvgNSep[NI0؋zzv}0sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObject$Qwg Nj!_veNbv_UN O}"_0LThese are patterns for file or directory names which should not be indexed.QObject bS_&O &OpenQWidgetbS_N N~ehc/v_U&O &Open Parent document/folderQWidget &P &PreviewQWidgetQQeeN&W &Write to FileQWidgetY R6eNT &F Copy &File NameQWidgetY R6_&U  Copy &URLQWidgetgb~|{O <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T21:00:38" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T21:02:43" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> }"_z ^SNN[bz ve_ЈL W(eNSuSSeO[efe}"_0h7O`v}"_Nvf/NeNT kev OFf/OS`u(N[v|~ߍDn0</p></body></html> .

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWT ekdk!N_zSsT/R}"_z 0%Also start indexing daemon right now.RTIToolW*RT/ReN]~R d0N_g@k{_SRMz T2Autostart file deleted. Kill current process too ?RTIToolW elR^Can't create: RTIToolWelbgLrecollindexCould not execute recollindexRTIToolW kcW(R deN Deleting fileRTIToolW kcW(R d Deleting: RTIToolW[e}"_RT/R"Real time indexing automatic startRTIToolWkcW(R dRT/RyRemoving autostartRTIToolW kcW(fcbeNReplacing fileRTIToolW kcW(fcb Replacing: RTIToolW$W(bvhLbOT/ReOT/R}"_z 0.Start indexing daemon with my desktop session.RTIToolWfTJWarningRTIToolW[QhۈLh9{ (all languages)RclMainN ۈLh9{  (no stemming)RclMainRecollf About RecollRclMainQhAllRclMainelՋeNCan't access file: RclMainelR^zSCan't create preview windowRclMainelՉS)kdeNCan't uncompress file: RclMainelfe}"_}"_z ^]W(ЈL#Can't update index: indexer runningRclMainelcSehcbR^N4eeN0Cannot extract document or create temporary fileRclMainelNepcn^SehcO`o+Cannot retrieve document info from databaseRclMainkcW(QsClosingRclMain]~N:NeN|{W}"_QvQ[.Content has been indexed for these mime types:RclMain4elbS_Y}"_0epcn^g*bS_0hgY}"_Rh0HCould not open external index. Db not open. Check external indexes list.RclMainehcSSDocument historyRclMain][bDoneRclMain kcW(R d}"_ Erasing indexRclMainErrorRclMain kcW(bgL[ Executing: [RclMainSSepcn History dataRclMain }"_g*bS_Index not openRclMain }"_gQIndex query errorRclMain]}"_veN|{WIndexed MIME TypesRclMain}"_Y1%Indexing failedRclMain kcW(}"_Indexing in progress: RclMaing*b~R0vRz ^Missing helper programsRclMainvщVhMonitorRclMain$[kdyeN|{Wlg MnYgw Vh[-No external viewer configured for mime type [RclMainvRMN :\NOURz ^No helpers found missingRclMain g*b~R0~gNo results foundRclMaineNoneRclMainR dPurgeRclMainLgkcW(ۈLN-0<br>u1N}"_^vgNPR6 <br>SmvO[z ^QeQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMaing~g Query resultsRclMainNY4e_Y}"_T(Reset the index and start from scratch ?RclMain~gepO0P< Result count (est.)RclMainO[XeN Save fileRclMainStemepcn^StemdbRclMainP\kb}"_&I Stop &IndexingRclMainL_SRM}"_z N f/u1kduLbT/Rv0pQxn[Ng@k{[ bpQSmN勩[u1ЈLyThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainNlg b~R0mimeviewN-N:%1: %2Mnvgw Vh0 f/T&bS_ y[hFhThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainN*g]~N f/m;vN"This search is not active any moreRclMaing*wUnknownRclMainfe}"_&I  Update &IndexRclMainkcW(feUpdatingRclMainfTJWarningRclMaincS֋h9eQ#error retrieving stemming languagesRclMain]nfilteredRclMain YZOSeNmediaRclMainNmessageRclMainQv[otherRclMainoy:ehc presentationRclMain]c^sortedRclMainu5[Phh< spreadsheetRclMaineg,eNtextRclMainRecollf&A  &About Recoll RclMainBasezd}"&A &Advanced Search RclMainBaseR dehcSS&E &Erase document history RclMainBaseR dd}"SS&E &Erase search history RclMainBase eN&F &File RclMainBase Qh\O&F  &Full Screen RclMainBase ^.R&H &Help RclMainBase[e}"_&I &Indexing schedule RclMainBase y&P  &Preferences RclMainBaseeg }"_&R &Rebuild index RclMainBasef>y:]}"_veN|{W&S &Show indexed types RclMainBasef>y::\vRz ^Rh&S &Show missing helpers RclMainBasec^Sep&S &Sort parameters RclMainBase ]Qw&T &Tools RclMainBaseu(b7bKQ&U  &User manual RclMainBasez/Y gBd}"Advanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBaseehcSSDocument History RclMainBaseehcSS&H Document &History RclMainBase Q&x E&xit RclMainBaseY}"_[hF&x E&xternal index dialog RclMainBaseY}"_[hFExternal index dialog RclMainBaseF11F11 RclMainBase{,Nu First page RclMainBaseQh\O Full Screen RclMainBaselR0~gv{,NuGo to first page of results RclMainBaseN Nu Next page RclMainBase N Nu~gNext page of results RclMainBaseTN uPgDown RclMainBaseTN uPgUp RclMainBaseN Nu Previous page RclMainBase N Nu~gPrevious page of results RclMainBase RecollRecoll RclMainBaseShift+TN u Shift+PgUp RclMainBasef>y:gS~ƂShow Query Details RclMainBasec egcR gevW(RMb#Sort by dates from newest to oldest RclMainBasec egcR gevW(RMb#Sort by dates from oldest to newest RclMainBasec^SepSort parameters RclMainBase͋c}"Vh&e Term &explorer RclMainBase ͋c}"VhTerm explorer tool RclMainBasefe}"_&i  Update &index RclMainBasedXAbstract RecollModelO\Author RecollModelegDate RecollModel egSe Date and time RecollModelehceg Document date RecollModelehc\:[ Document size RecollModeleNeg File date RecollModeleNT  File name RecollModeleN\:[ File size RecollModelQ_Ipath RecollModelQs.Keywords RecollModeleN|{W MIME type RecollModelOe9eMtime RecollModelS[W{&Original character set RecollModelvQs^Relevancy rating RecollModelhTitle RecollModel_URL RecollModelf>y:gS~Ƃ  (show query)ResList&<p><b>g*b~R0~g</b><br>

No results found
ResList.<p><i>Qv[bQ_b__S </i>4

Alternate spellings (accents suppressed): ResListehcSSDocument historyResList{, DocumentsResListN NuNextResListbS_OpenResListPreviewResListN NuPreviousResList gS~Ƃ Query detailsResList~gepO0P< Result count (est.)ResList~gRh Result listResList elՋehcUnavailable documentResListN*ehc ggaNforResListN*ehc g\Qqg out of at leastResListR dkdR&D &Delete columnResTablenc^gaN&R  &Reset sortResTableO[XN:CSV&S  &Save as CSVResTablemR"%1"RAdd "%1" columnResTableelbS_/R^eNCan't open/create file: ResTable\hhSelect the type of query that will be performed with the words SearchClauseWN NuNextSnippetsd}"Search SnippetsW Qs&C &Close SpellBase \U_&E &Expand  SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBaseg*b~R0epcn^O`o0 No db info. SpellBase ͋c}"Vh Term Explorer SpellBaseAspellbi\UQ0Aspell expansion error. SpellW0AspellRYSY1%0f/T&g*[Aspell)Aspell init failed. Aspell not installed?SpellW ehcep/`;ep Doc. / Tot.SpellW g*b~R0bi\UNo expansion foundSpellW kcRh_RegexpSpellWbQ/SїhgSpelling/PhoneticSpellWh9bi\UStem expansionSpellW͋TermSpellWM{& WildcardsSpellWcS֋h9eQ#error retrieving stemming languagesSpellW bChoose UIPrefsDialog N-vv_UN f/Xapian}"_;The selected directory does not appear to be a Xapian index UIPrefsDialog N-vv_U]~W(}"_RhN-3The selected directory is already in the index list UIPrefsDialogf/N;/g,W0}"_This is the main/local index! UIPrefsDialogcS֋h9eQ#error retrieving stemming languages UIPrefsDialogT}NCommand ViewActioneN|{W MIME type ViewActionQsCloseViewActionBase g,W0gw VhNative ViewersViewActionBase(_S\:[R0[PYgOu(v[_ ROv[NMnv_Uv_ۈLYt0The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWQuP[Xv_UT Web page store directory nameconfgui::ConfBeaglePanelWelQQeMneNCan't write configuration fileconfgui::ConfIndexW bChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLWQh\@Globalconfgui::ConfSubPanelW|YgnTN*P<N {IN-1 Reg,eNORRrbNHY'vWW ^vNۈL}"_0 f/u(ged}"Y'Weg,eNvOY_UeN 0If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWS)eNgY'\:[KB Max. compressed file size (KB)confgui::ConfSubPanelWnVhvgbgLeS Max. filter exec. time (S)confgui::ConfSubPanelWeg,eNgY'\:[MB Max. text file size (MB)confgui::ConfSubPanelWeg,eNSUu\:[KB Text file page size (KB)confgui::ConfSubPanelWd\:[Y'NN*PW(lg [aspellb[]O\N kc^8eOu(N* y0Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelWR7e}"_v QF[WIndex flush megabytes intervalconfgui::ConfTopPanelW _UeNT  Log file nameconfgui::ConfTopPanelW_Uvu~R+Log verbosity levelconfgui::ConfTopPanelWgY'xlvS`u(s% Max disk occupation (%)confgui::ConfTopPanelWN Ou(aspellNo aspell usageconfgui::ConfTopPanelW uev_ Skipped pathsconfgui::ConfTopPanelWh9Stemming languagesconfgui::ConfTopPanelWTz ^Qvm`oOO[XR0N*eN0<br>Ou('stderr'Nhy:\m`oQR0~zPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelW*\O[N<br>g h9bi\UQx0IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelW:}"_NΏN*RhN-vv_U_Y _RW0ۈL0؋O`v[v_U0LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelW>}"_z N OQeQwg NT [Wvv_U0<br>SNST+M{&0_Ř{S9M}"_z ꎫb@R0v_OYYgtopdirsST+'/home/me' [EN '/home'f/R0'/usr/home'vc RkcxnvskippedPathgav^_Sf/'/home/me/tmp*' N f/'/usr/home/me/tmp*' #These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWr_SxlvvS`u(sR0N*epe }"_OY1%^vNP\kbNQMX^nO`vxlv 0<br>N:0Rhy:N RPR6f/؋P< 0This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelWvN*P<etvf/ _Sy}/TY\}"_epcne bM\epcnR7eR0xlvN S0<br>u(gecR6}"_z vQ[XS`u(`Q0؋N:10MBThis value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWTN*P<etvf/Qvm`ovep <br>Qv~R+NNŏQbO`oR0QNY'XO`o0ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelWv~v_UTop directoriesconfgui::ConfTopPanelW Sm&C &CanceluiPrefsDialogBase xn[&O &OKuiPrefsDialogBase[[n w] (2N*͋)vd}"OSb[n or w or (n 2N*͋ w)]0 [NNd}"͋W(QvN-c qgSh7Qsv~g QvOQH~ONN0A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBasedXN-vrGkvR{&Abstract snippet separatoruiPrefsDialogBaseQhom; Activate AlluiPrefsDialogBasemR}"_ Add indexuiPrefsDialogBase Oe9SueH Apply changesuiPrefsDialogBase Qezzh_Ne9SDiscard changesuiPrefsDialogBase4SsOehcg,bg NN*dX bNNq6LTbdXO`oEDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseTf/T&Ou(g͋ThVvN N egeg ~gRhgavN-vdX [NY'vehcSO_ab0zDo we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents.uiPrefsDialogBase R`g dXDynamically build abstractsuiPrefsDialogBase ~gubvhtmlY4cQey#Edit result page html header insertuiPrefsDialogBase~gk=vh<_[W{&N2#Edit result paragraph format stringuiPrefsDialogBaseT/u(EnableuiPrefsDialogBaseY}"_External IndexesuiPrefsDialogBasef/NN*sP< ǏN*PR0R~N-0 ؘ͋f/~N-`'vN;gen0 uev͋OXR~vzz:P< VkdOMONR~RveHs0 ؋Py:NN*0XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBase0W(N-[QvۈLNf>y:vgY'eg,\:[QF[W 5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseNN*~gubN-f>y:v~ggaep"Number of entries in a result pageuiPrefsDialogBase(bS_NN*[hF N bu(N~gRhv[WOS-Opens a dialog to select the result list fontuiPrefsDialogBase bS_NN*[hF N bh7_SUeN-Opens a dialog to select the style sheet fileuiPrefsDialogBaseN-OQHOu(Html0&Prefer Html to plain text for preview.uiPrefsDialogBasegy^YGeNT T0(Query language magic file name suffixes.uiPrefsDialogBaseOOc^r`0Remember sort activation state.uiPrefsDialogBase,NRhN-R d0N O[xlvN v}"_ bc_[07Remove from list. This has no effect on the disk index.uiPrefsDialogBase R d N-yRemove selecteduiPrefsDialogBaseSNehcN-^&vdX Replace abstracts from documentsuiPrefsDialogBasenResetuiPrefsDialogBase"\~gRhN-v[WOS͋N:|~ߞ؋P<1Resets the result list font to the system defaultuiPrefsDialogBase\h7_SUnN:؋P<!Resets the style sheet to defaultuiPrefsDialogBase~gRh Result ListuiPrefsDialogBase ~gRh[WOSResult list fontuiPrefsDialogBased}"SepSearch parametersuiPrefsDialogBaseT/RebS_zd}"[hF0'Start with advanced search dialog open.uiPrefsDialogBaseh9Stemming languageuiPrefsDialogBaseh7_SU Style sheetuiPrefsDialogBaseTbdXN N e Synthetic abstract context wordsuiPrefsDialogBaseTbdX^[W{&N*ep $Synthetic abstract size (characters)uiPrefsDialogBase4ǏN*^veg,N OW(zS̚Nf>y:Y*ab 0CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBase@N*RhN-v͋OW(gQehF́RSbext:xxxS0bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase Rcb N-yToggle selecteduiPrefsDialogBaseu(b7uLbUser interfaceuiPrefsDialogBaseu(b7 yUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_tr.ts0000644000175000017500000033411112602163537016637 0ustar dockesdockes AdvSearch All clauses Tüm ifadeler Any clause İfadelerin herhangi biri texts metinler spreadsheets hesap tabloları presentations sunumlar media ortamlar messages iletiler other diğer Bad multiplier suffix in size filter text spreadsheet presentation message AdvSearchBase Advanced search Gelişmiş arama Search for <br>documents<br>satisfying: Uyan <br>belgeleri<br>ara: Delete clause İfadeyi sil Add clause İfade ekle Restrict file types Dosya tiplerini sınırlandır Check this to enable filtering on file types Dosya tipleri üzerinde filtreleme kullanmak için bunu işaretleyin By categories Kategorilere göre Check this to use file categories instead of raw mime types Dosya tipleri yerine ham mime tipleri üzerinde filtreleme kullanmak için bunu işaretleyin Save as default öntanımlı olarak kaydet Searched file types Aranan dosya tipleri All ----> Tümü ----> Sel -----> Seç -----> <----- Sel <----- Seç <----- All <----- Tümü Ignored file types Yoksayılan dosya tipleri Enter top directory for search Arama için en üst dizini girin Browse Gözat Restrict results to files in subtree: Arama sonuçlarını bu dizin ve aşağısı ile sınırlandır: Start Search Aramayı Başlat Close Kapat All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. Invert Minimum size. You can use k/K,m/M,g/G as multipliers Min. Size Maximum size. You can use k/K,m/M,g/G as multipliers Max. Size Filter From To Check this to enable filtering on dates Filter dates Find Check this to enable filtering on sizes Filter sizes CronToolW Cron Dialog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html> Days of week (* or 0-7, 0 or 7 is Sunday) Hours (* or 0-23) Minutes (0-59) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html> Enable Disable It seems that manually edited entries exist for recollindex, cannot edit crontab Error installing cron entry. Bad syntax in fields ? EditDialog Dialog EditTrans Source path Local path Config error Original path EditTransBase Path Translations Setting path translations for Select one or several file types, then use the controls in the frame below to change how they are processed Add Delete Cancel İptal Save FirstIdxDialog First indexing setup <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> Indexing configuration This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. Indexing schedule This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). Start indexing now FragButs %1 not found. %1: %2 Query Fragments IdxSchedW Index scheduling setup <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> Cron scheduling The tool will let you decide at what time indexing should run and will install a crontab entry. Real time indexing start up Decide if real time indexing will be started when you log in (only for the default index). ListDialog Dialog GroupBox Main Configuration problem (dynconf Yapılandırma sorunu No db directory in configuration Yapılandırma içerisinde veritabanı dizini yok Could not open database in Veritabanı açılamadı . Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed. . İndekseleme başlamadan yapılandırmayı düzenlemek için İptal düğmesine basın ya da Tamam düğmesine basarak işleme izin verin. "history" file is damaged or un(read)writeable, please check or remove it: Preview Close Tab Sekmeyi Kapat Cannot create temporary directory Geçici dizin oluşturulamadı Cancel İptal Missing helper program: Yardımcı program kayıp: Can't turn doc into internal representation for Şunun için iç gösterim yapılamıyor Creating preview text Önizleme metni oluşturuluyor Loading preview text into editor Önizleme metni düzenleyiciye yükleniyor &Search for: A&ra: &Next &Sonraki &Previous &Önceki Clear Temizle Match &Case Eşleşme Şa&rtı Error while loading file PreviewTextEdit Show fields Show main text Print Print Current Preview Show image Select All Copy Save document to file Fold lines Preserve indentation QObject Global parameters Genel parametreler Local parameters Yerel parametreler <b>Customised subtrees <b>Özelleştirilmiş alt ağaçlar The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty. İndekslenmiş sıralama içerisindeki alt dizinlerin listesi <br>ki burada bazı parametrelerin yeniden tanımlanması gerekir. Öntanımlı: boş. <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons. <i>Aşağıdaki parametreler, ya seçili alt dizin için uygulanır ya da üst düzeyde veya üstteki metin kutusunda hiçbir şey seçilmediğinde yada boş bir satır seçildiğinde uygulanır.<br>+/- düğmelerine tıklayarak dizinleri ekleyip çıkarabilirsiniz. Skipped names Atlanan isimler These are patterns for file or directory names which should not be indexed. Bu nitelikler insekslenmemesi gereken dosya ve dizinler içindir. Default character set Öntanımlı karakter seti This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Bu karakter seti, karakter kodlaması uygulama tarafından belirlenemeyen dosyalar için kulanılır, Örneğin salt metin dosyaları.<br>Öntanımlı değer boştur ve NLS çevresel değişkeni kullanılır. Follow symbolic links Sembolik bağlantıları izle Follow symbolic links while indexing. The default is no, to avoid duplicate indexing İndekslerken sembolik bağlantıları izle. Aynı ögelerin yeniden indekslenmesinden kaçınmak için öntanımlı değer hayır Index all file names Tüm dosya isimlerini indeksle Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true İçeriği tanınmayan ya da işlenemeyen (ya da desteklenmeyen mime tipi) dosyaları indeksle. Öntanımlı evet Search parameters Arama parametreleri Web history Default<br>character set Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Ignored endings These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing). QWidget Create or choose save directory Choose exactly one directory Could not read directory: Unexpected file name collision, cancelling. Cannot extract document: &Preview &Önizle &Open Open With Run Script Copy &File Name &Dosya Adını Kopyala Copy &URL &Adresi Kopyala &Write to File Save selection to files Preview P&arent document/folder &Open Parent document/folder Find &similar documents Benzer belgeleri &bul Open &Snippets window Show subdocuments / attachments RTIToolW Real time indexing automatic start <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> Start indexing daemon with my desktop session. Also start indexing daemon right now. Replacing: Replacing file Can't create: Warning Uyarı Could not execute recollindex Deleting: Deleting file Removing autostart Autostart file deleted. Kill current process too ? RclMain (no stemming) (kök ayrıştırma kullanma) (all languages) (tüm diller) error retrieving stemming languages sözcük kökleri ayrıştırılabilir diller alınırken hata oluştu Indexing in progress: İndeksleme devam ediyor: Files Dosyalar Purge Temizle Stemdb KökAyrıştırmaVeritabanı Closing Kapatılıyor Unknown Bilinmeyen Can't start query: Sorgu başlatılamadı: Query results Arama Sonuçları Cannot retrieve document info from database Veritabanından belge bilgileri alınamadı Warning Uyarı Can't create preview window Önizleme penceresi oluşturulamıyor This search is not active any more Bu arama atrık etkin değil Bad viewer command line for %1: [%2] Please check the mimeconf file %1 için uygun olmayan komut: [%2] Lütfen mimeconf dosyasını kontrol edin Cannot extract document or create temporary file Belge açılamadı ya da geçici dosya oluşturulamadı Executing: [ Çalıştırılıyor: [ About Recoll Recoll Hakkında History data Geçmiş verileri Document history Belge geçmişi Update &Index Stop &Indexing All media ortamlar message other diğer presentation spreadsheet text sorted filtered No helpers found missing Missing helper programs No external viewer configured for mime type [ The viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ? Can't access file: Can't uncompress file: Save file Result count (est.) Query details Sorgu detayları Could not open external index. Db not open. Check external indexes list. No results found None Updating Done Monitor Indexing failed The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone Erasing index Reset the index and start from scratch ? Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program Error Index not open Index query error Content has been indexed for these mime types: Can't update index: indexer running Indexed MIME Types Bad viewer command line for %1: [%2] Please check the mimeview file Viewer command line for %1 specifies both file and parent file value: unsupported Cannot find parent document Indexing did not run yet External applications/commands needed for your file types and not found, as stored by the last indexing pass in Sub-documents and attachments Document filter Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. The indexer is running so things should improve when it's done. The document belongs to an external indexwhich I can't update. Click Cancel to return to the list. Click Ignore to show the preview anyway. Duplicate documents These Urls ( | ipath) share the same content: Bad desktop app spec for %1: [%2] Please check the desktop file Indexing interrupted RclMainBase Recoll Recoll Search tools Arama araçları Result list Sonuç listesi &File &Dosya &Tools &Araçlar &Preferences &Tercihler &Help &Yardım E&xit &Çık Ctrl+Q Ctrl+Q Update &index İndeksi g&üncelle &Erase document history &Belge geçmişini temizle &About Recoll &Recoll Hakkında &User manual &Kullanıcı El Kitabı Document &History Belge &Geçmişi Document History Belge Geçmişi &Advanced Search &Gelişmiş arama Advanced/complex Search Gelişmiş/karmaşık Arama &Sort parameters &Sıralama Ölçütleri Sort parameters Sıralama ölçütleri Term &explorer İfade g&österici Term explorer tool İfade gösterme aracı Next page Sonraki sayfa Next page of results Sonuçların sonraki sayfası First page İlk sayfa Go to first page of results Sonuçların ilk sayfasına git Previous page Önceki sayfa Previous page of results Sonuçların önceki sayfası &Query configuration &Sorgu yapılandırması External index dialog Dış indeksler penceresi &Indexing configuration İ&ndeksleme yapılandırması &Show missing helpers PgDown PgUp &Full Screen F11 Full Screen &Erase search history Sort by dates from oldest to newest Sort by dates from newest to oldest Show Query Details &Rebuild index &Show indexed types Shift+PgUp &Indexing schedule E&xternal index dialog &Index configuration &GUI configuration &Results Sort by date, oldest first Sort by date, newest first Show as table Show results in a spreadsheet-like table Save as CSV (spreadsheet) file Saves the result into a file which you can load in a spreadsheet Next Page Previous Page First Page Query Fragments With failed files retrying Next update will retry previously failed files RclTrayIcon Restore Quit RecollModel File name Dosya adı Mime type Mime Tipi Date Tarih Abstract Author Document size Document date File size File date Keywords Original character set Relevancy rating Title URL Mtime Date and time Ipath MIME type ResList Result list Sonuç listesi <p><b>No results found</b><br> <p><b>Sonuç bulunamadı</b><br> (show query) (sorguyu göster) Unavailable document Erişilemez belge Previous Önceki Next Sonraki &Preview &Önizle Copy &File Name &Dosya Adını Kopyala Copy &URL &Adresi Kopyala Find &similar documents Benzer belgeleri &bul Query details Sorgu detayları Document history Belge geçmişi Preview Önizle Open <p><i>Alternate spellings (accents suppressed): </i> Documents out of at least for <p><i>Alternate spellings: </i> Result count (est.) Snippets ResTable &Reset sort &Delete column Save table to CSV file Can't open/create file: &Preview &Önizle Copy &File Name &Dosya Adını Kopyala Copy &URL &Adresi Kopyala Find &similar documents Benzer belgeleri &bul &Save as CSV Add "%1" column ResTableDetailArea &Preview &Önizle Copy &File Name &Dosya Adını Kopyala Copy &URL &Adresi Kopyala Find &similar documents Benzer belgeleri &bul ResultPopup &Preview &Önizle Copy &File Name &Dosya Adını Kopyala Copy &URL &Adresi Kopyala Find &similar documents Benzer belgeleri &bul SSearch Any term Sözcüklerin herhangi biri All terms Tüm sözcükler File name Dosya adı Query language Arama dili Bad query string Uygunsuz arama ifadesi Out of memory Yetersiz bellek Too many completions Çok fazla tamamlama Completions Tamamlamalar Select an item: Bir öge seçin: Enter file name wildcard expression. Enter search terms here. Type ESC SPC for completions of current term. Aranacak ifadeleri buraya girin. Geçerli sözcüğün tamamlanması için ESC SPACE kullanın. Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. SSearchBase SSearchBase SSearchBase Clear Temizle Ctrl+S Ctrl+S Erase search entry Arama girdisini temizle Search Ara Start query Sorguyu başlat Enter search terms here. Type ESC SPC for completions of current term. Aranacak ifadeleri buraya girin. Geçerli sözcüğün tamamlanması için ESC SPACE kullanın. Choose search type. SearchClauseW SearchClauseW SearchClauseW Any of these Bunların herhangi biri All of these Bunların tümü None of these Bunların hiçbiri This phrase Tam olarak bu ifade Terms in proximity Yakın ifadeler File name matching Dosya adı eşleşen Select the type of query that will be performed with the words Sözcükler ile kullanılacak sorgu biçimini seç Number of additional words that may be interspersed with the chosen ones Seçilen sözcüklerin arasında yer alabilecek ek sözcüklerin sayısı No field Any All None Phrase Proximity File name Dosya adı Snippets Snippets Find: Next Sonraki Prev SnippetsW Search Ara <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p> SortForm Date Tarih Mime type Mime Tipi SortFormBase Sort Criteria Sıralama Ölçütü Sort the Sırala most relevant results by: en uygun sonuç veren: Descending Azalan Apply Uygula Close Kapat SpellBase Term Explorer İfade Gösterici &Expand &Genişlet Alt+E Alt+G &Close &Kapat Alt+C Alt+K Term İfade No db info. Match Case Accents SpellW Wildcards Özel karakterler Regexp Düzenli ifade Stem expansion Kök ayrıştırma genişlemesi Spelling/Phonetic Heceleme/Fonetik error retrieving stemming languages sözcük kökleri ayrıştırılabilir diller alınırken hata oluştu Aspell init failed. Aspell not installed? Aspell başlatılamadı. Yüklenmemiş olabilir mi? Aspell expansion error. Aspell heceleme genişlemesi hatası. No expansion found Hiç genişleme bulunamadı Term İfade Doc. / Tot. Index: %1 documents, average length %2 terms.%3 results %1 results List was truncated alphabetically, some frequent terms may be missing. Try using a longer root. Show index statistics Number of documents Average terms per document Smallest document length Longest document length Database directory size MIME types: Item Value UIPrefsDialog error retrieving stemming languages sözcük kökleri ayrıştırılabilir diller alınırken hata oluştu The selected directory does not appear to be a Xapian index Seçilen dizin bir Xapian indeks dizini gibi görünmüyor This is the main/local index! Bu ana/yerel veritabanı! The selected directory is already in the index list Seçilen dizin zaten indeks listesinde var Select xapian index directory (ie: /home/buddy/.recoll/xapiandb) Xapian indeks dizinini seç (/home/kullanıcı_adınız/.recoll/xapiandb gibi.) Choose Gözat Result list paragraph format (erase all to reset to default) Result list header (default is empty) Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) The selected directory looks like a Recoll configuration directory but the configuration could not be read At most one index should be selected Cant add index with different case/diacritics stripping option Default QtWebkit font UIPrefsDialogBase User preferences Kullanıcı tercihleri User interface Kullanıcı arayüzü Number of entries in a result page Bir sonuç sayfasındaki sonuç sayısı Result list font Sonuç listesi yazıtipi Helvetica-10 Helvetica-10 Opens a dialog to select the result list font Sonuç listesi yazıtipini seçmek için bir pencere açar Reset Sıfırla Resets the result list font to the system default Sonuç listesi yazıtipini sistem ayarlarına döndür Result paragraph<br>format string Sonuç paragrafı<br>biçimlendirme ifadesi Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br> Tüm sonuç listesi paragraflarını tanımlar. Qt html biçimini ve printf benzeri yer değiştiricileri kullanın:<br>%A Özet<br> %D Tarih<br> %I Simge resminin adı<br> %K Anahtar sözcükler (eğer varsa)<br> %L Önizle ve Düzenle bağlantıları<br> %M Mime tipi<br> %N Sonuç sayısı<br> %R Uyum yüzdesi<br> %S Boyut bilgileri<br> %T Başlık<br> %U Url<br> Texts over this size will not be highlighted in preview (too slow). Bu boyuttan büyük metinler önizlemede vurgulanmayacak (çok yavaş). Maximum text size highlighted for preview (megabytes) Önizlemede vurgulanacak en fazla metin boyutu (MB) Auto-start simple search on whitespace entry. Beyaz alan girdisi olduğunda basit aramayı otomatik olarak başlat. Start with advanced search dialog open. Gelişmiş arama penceresi ile başla. Start with sort dialog open. Sıralama penceresi ile başla. Use desktop preferences to choose document editor. Belge düzenleyiciyi seçmek için masaüstü tercihlerini kullan. Remember sort activation state. Sıralama kurallarını hatırla. Search parameters Arama parametreleri Stemming language Kök ayrıştırma dili Automatically add phrase to simple searches Basit aramalara ifadeyi otomatik olarak ekle A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. [linux kernel] (2 sözcük) araması [linux veya kernel veya (linux ifadesi 2 tane kernel)] olarak değiştirilecektir. Bu, aranacak sözcüklerin tam olarak girildiği gibi görüntülendiği sonuçlara yüksek öncelik verilmesini sağlayacaktır. Dynamically build abstracts Özetleri dinamik olarak oluştur Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Sorgu sözcükleri kullanılarak sonuç listesi girdileri için özet oluşturulsun mu ? Büyük boyutlu belgelerde yavaş olabilir. Replace abstracts from documents Belgelerden özetleri kaldır Do we synthetize an abstract even if the document seemed to have one? Belgenin bir özeti varsa bile bir yapay özet oluşturulsun mu? Synthetic abstract size (characters) Yapay özet boyutu (karakter sayısı) Synthetic abstract context words Yapay özet sözcükleri External Indexes Dış indeksler External indexes Dış indeksler Toggle selected Seç /Bırak Activate All Tümünü Etkinleştir Deactivate All Tümünü Pasifleştir Remove selected Seçileni sil Remove from list. This has no effect on the disk index. Listeden sil. Bu diskteki indeksi etkilemez. Add index İndeks ekle Select the xapiandb directory for the index you want to add, then click Add Index İstediğiniz indeksi eklemek için xapiandb (veritabanı) dizinini seçin ve İndeks Ekle düğmesine tıklayın Browse Gözat &OK &TAMAM Apply changes Değişiklikleri uygula &Cancel &İptal Discard changes Değişiklikleri sil ViewAction Changing actions with different current values Farklı değerlerle eylemler değiştiriliyor Mime type Mime Tipi Command MIME type Desktop Default Changing entries with different current values ViewActionBase Native Viewers Doğal Göstericiler Select one or several file types, then click Change Action to modify the program used to open them Bir ya da birkaç dosya tipi seçin ve Eylemi Değiştir düğmesine tıklayarak hangi uygulama ile açılacağını değiştirin File type Dosya tipi Action Davranış Change Action Davranışı Değiştir Close Kapat Select one or several mime types then use the controls in the bottom frame to change how they are processed. Use Desktop preferences by default Select one or several file types, then use the controls in the frame below to change how they are processed Exception to Desktop preferences Action (empty -> recoll default) Apply to current selection Recoll action: current value Select same <b>New Values:</b> confgui::ConfBeaglePanelW Entries will be recycled once the size is reached Web page store directory name The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory. Max. size for the web store (MB) Process the WEB history queue Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin) confgui::ConfIndexW Can't write configuration file Yapılandırma dosyası yazılamadı confgui::ConfParamFNW Browse Gözat Choose Gözat confgui::ConfParamSLW + + - - confgui::ConfSearchPanelW Automatic diacritics sensitivity <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity. Automatic character case sensitivity <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity. Maximum term expansion count <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. Maximum Xapian clauses count <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. confgui::ConfSubPanelW Global Genel Max. compressed file size (KB) This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever. Max. text file size (MB) This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index. Text file page size (KB) If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files). Max. filter exec. time (S) External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. Only mime types An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive Exclude mime types Mime types not to be indexed confgui::ConfTopPanelW Top directories Üst dizinler The list of directories where recursive indexing starts. Default: your home. Özyinelemeli indesklemenin başlayacağı dizinlerin listesi. Öntanımlı: ev dizininiz. Skipped paths Atlanan yollar These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*') Bunlar indekslemenin girmeyeceği dizinlerin adlarıdır.<br> * gibi özel karakterler içerebilir. İndeksleyici tarafından görülen yollar ile eşleşmelidir (örneğin: eğer en üst dizinler '/home/ben' ve '/home' içeriyorsa ve home '/usr/home' dizinine bağlantılı ise atlanacak dizin yolu '/home/me/tmp*' olmalıdır, '/usr/home/me/tmp*' değil) Stemming languages Sözcük kökleri ayrıştırılabilir diller The languages for which stemming expansion<br>dictionaries will be built. Kök ayrıştırma genişlemesi için sözlükleri<br>inşa edilecek olan diller. Log file name Günlük dosyasının adı The file where the messages will be written.<br>Use 'stderr' for terminal output İletilerin yazılacağı dosya.<br>Uçbirim çıktısı için 'stderr' kullanın Log verbosity level Günlük dosyası ayrıntı düzeyi This value adjusts the amount of messages,<br>from only errors to a lot of debugging data. Bu değer ileti boyutunu ayarlar,<br>sadece hatalardan hata ayıklama verilerine kadar. Index flush megabytes interval İndex düzeltme MB aralığı This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB Bu değer diske gönderilecek indekslenmiş veri miktarını ayarlar.<br>Bu indeksleyicinin bellek kullanımını kontrol etmeye yarar. Öntanımlı 10MB Max disk occupation (%) En yüksek disk kullanımı (%) This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default). Bu disk kullanımının yüzdesidir ki bu orana erişildiğinde indeksleme durdurulur (diskin doldurulmasını engellemek için).<br>0 kısıtlama yok demektir (Öntanımlı). No aspell usage Aspell kullanımı yok Aspell language Aspell dili The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. Aspell sözlükleri için dil. Bu 'en' ya da 'fr' gibi olmalıdır ...<br>Eğer bu değer ayarlanmazsa şimdi kullandığnız NLS çevresel değişkeni kullanılacaktır. Sisteminizde neyin yüklü olduğu hakkında bilgi almak için 'aspell config' yazıp 'data-dir' içerisindeki .dat dosyalarına bakın. Database directory name Veritabanı dizininin adı The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. İndeksin duracağı dizinin adı<br>Eğer tam yol verilmezse yol yapılandırma dizinine göre belirlenecek. Öntanımlı dizin adı 'xapiandb'. Use system's 'file' command Sistemdeki 'file' komutunu kullan Use the system's 'file' command if internal<br>mime type identification fails. İç mime tipi belirleme işlemi başarısız olursa<br> sistemdeki 'file' komutunu kullan. Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Unac exceptions <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation. uiPrefsDialogBase User preferences Kullanıcı tercihleri User interface Kullanıcı arayüzü Number of entries in a result page Bir sonuç sayfasındaki sonuç sayısı If checked, results with the same content under different names will only be shown once. Hide duplicate results. Highlight color for query terms Result list font Sonuç listesi yazıtipi Opens a dialog to select the result list font Sonuç listesi yazıtipini seçmek için bir pencere açar Helvetica-10 Helvetica-10 Resets the result list font to the system default Sonuç listesi yazıtipini sistem ayarlarına döndür Reset Sıfırla Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br> Tüm sonuç listesi paragraflarını tanımlar. Qt html biçimini ve printf benzeri yer değiştiricileri kullanın:<br>%A Özet<br> %D Tarih<br> %I Simge resminin adı<br> %K Anahtar sözcükler (eğer varsa)<br> %L Önizle ve Düzenle bağlantıları<br> %M Mime tipi<br> %N Sonuç sayısı<br> %R Uyum yüzdesi<br> %S Boyut bilgileri<br> %T Başlık<br> %U Url<br> Result paragraph<br>format string Sonuç paragrafı<br>biçimlendirme ifadesi Texts over this size will not be highlighted in preview (too slow). Bu boyuttan büyük metinler önizlemede vurgulanmayacak (çok yavaş). Maximum text size highlighted for preview (megabytes) Önizlemede vurgulanacak en fazla metin boyutu (MB) Use desktop preferences to choose document editor. Belge düzenleyiciyi seçmek için masaüstü tercihlerini kullan. Choose editor applications Auto-start simple search on whitespace entry. Beyaz alan girdisi olduğunda basit aramayı otomatik olarak başlat. Start with advanced search dialog open. Gelişmiş arama penceresi ile başla. Start with sort dialog open. Sıralama penceresi ile başla. Remember sort activation state. Sıralama kurallarını hatırla. Prefer Html to plain text for preview. Search parameters Arama parametreleri Stemming language Kök ayrıştırma dili A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. [linux kernel] (2 sözcük) araması [linux veya kernel veya (linux ifadesi 2 tane kernel)] olarak değiştirilecektir. Bu, aranacak sözcüklerin tam olarak girildiği gibi görüntülendiği sonuçlara yüksek öncelik verilmesini sağlayacaktır. Automatically add phrase to simple searches Basit aramalara ifadeyi otomatik olarak ekle Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Sorgu sözcükleri kullanılarak sonuç listesi girdileri için özet oluşturulsun mu ? Büyük boyutlu belgelerde yavaş olabilir. Dynamically build abstracts Özetleri dinamik olarak oluştur Do we synthetize an abstract even if the document seemed to have one? Belgenin bir özeti varsa bile bir yapay özet oluşturulsun mu? Replace abstracts from documents Belgelerden özetleri kaldır Synthetic abstract size (characters) Yapay özet boyutu (karakter sayısı) Synthetic abstract context words Yapay özet sözcükleri The words in the list will be automatically turned to ext:xxx clauses in the query language entry. Query language magic file name suffixes. Enable External Indexes Dış indeksler Toggle selected Seç /Bırak Activate All Tümünü Etkinleştir Deactivate All Tümünü Pasifleştir Remove from list. This has no effect on the disk index. Listeden sil. Bu diskteki indeksi etkilemez. Remove selected Seçileni sil Add index İndeks ekle Apply changes Değişiklikleri uygula &OK &TAMAM Discard changes Değişiklikleri sil &Cancel &İptal Abstract snippet separator Style sheet Opens a dialog to select the style sheet file Choose Gözat Resets the style sheet to default Result List Edit result paragraph format string Edit result page html header insert Date format (strftime(3)) Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). Autophrase term frequency threshold percentage Plain text to HTML line style Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. <BR> <PRE> <PRE> + wrap Disable Qt autocompletion in search entry. Search as you type. Paths translations Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. Snippets window CSS file Opens a dialog to select the Snippets window CSS style sheet file Resets the Snippets window style Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Document filter choice style: Buttons Panel Toolbar Combobox Menu Show system tray icon. Close to tray instead of exiting. recoll-1.21.5/qtgui/i18n/recoll_da.ts0000644000175000017500000033314112602163537016600 0ustar dockesdockes AdvSearch All clauses Alle sætninger Any clause Vilkårlig sætning media medier other andet Bad multiplier suffix in size filter Forkert multiplikator suffiks i størrelsefilter text tekst spreadsheet regneark presentation præsentation message meddelelse texts tekster spreadsheets regneark AdvSearchBase Advanced search Avanceret søgning Search for <br>documents<br>satisfying: Søg efter <br>dokumenter<br>der opfylder: Delete clause Slet sætning Add clause Tilføj sætning Restrict file types Begræns filtyper Check this to enable filtering on file types Afkryds dette for at aktivere filtrering på filtyper By categories Efter kategorier Check this to use file categories instead of raw mime types Afkryds dette for at bruge filkategorier i stedet for rå mime-typer Save as default Gem som standard Searched file types Søgte filtyper All ----> Alle ----> Sel -----> Valg -----> <----- Sel <----- Valg <----- All <----- Alle Ignored file types Ignorerede filtyper Enter top directory for search Indtast øverste mappe for søgning Browse Gennemse Restrict results to files in subtree: Begræns resultater til filer i undermapper: Start Search Start søgning Close Luk All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. Alle felter med indhold til højre vil blive kombineret med AND ("Alle sætninger" valgt) eller OR ("Vilkårlig sætning" valgt) bindeord. <br>"Enhver" "Alle" og "Ingen" felttyper kan acceptere en blanding af simple ord, og fraser i dobbelte anførselstegn.<br>Felter uden data ignoreres. Invert Inverter Minimum size. You can use k/K,m/M,g/G as multipliers Mindste størrelse. Du kan bruge k/K,m/M,g/G som multiplikatorer Min. Size Min. størrelse Maximum size. You can use k/K,m/M,g/G as multipliers Maksimal størrelse. Du kan bruge k/K,m/M g/G som multiplikatorer Max. Size Maks. størrelse Filter Filter From Fra To Til Check this to enable filtering on dates Afkryds dette for at aktivere filtrering på datoer Filter dates Filtrer datoer Find Find Check this to enable filtering on sizes Afkryds dette for at aktivere filtrering på størrelser Filter sizes Filtrer størrelser CronToolW Cron Dialog Cron vindue <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indekseringstidsplan (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Hvert felt kan indeholde et jokertegn (*), en enkelt numerisk værdi, kommaseparerede lister (1,3,5) og intervaller (1-7). Mere generelt vil felterne blive brugt <span style=" font-style:italic;"> som de er</span> inde i crontabfilen, og den fulde crontab syntaks kan bruges, se crontab (5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For eksempel, indtastning af <span style=" font-family:'Courier New,courier';">*</span> i <span style=" font-style:italic;">Dage, </span><span style=" font-family:'Courier New,courier';">12,19</span> i <span style=" font-style:italic;">Timer</span> og <span style=" font-family:'Courier New,courier';">15</span> i <span style=" font-style:italic;">Minutter</span> ville starte recollindex hver dag kl. 00:15 og 19:15 </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">En tidsplan med meget hyppige aktiveringer er formentlig mindre effektiv end realtid indeksering.</p></body></html> Days of week (* or 0-7, 0 or 7 is Sunday) Ugens dage (* eller 0-7, 0 eller 7 er Søndag) Hours (* or 0-23) Timer (* eller 0-23) Minutes (0-59) Minutter (0-59) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Deaktiver</span> for at stoppe automatisk batch indeksering, <span style=" font-style:italic;">Aktiver</span> for at aktivere den, <span style=" font-style:italic;">Annuller</span> for ikke at ændre noget.</p></body></html> Enable Aktiver Disable Deaktiver It seems that manually edited entries exist for recollindex, cannot edit crontab Det ser ud til, at manuelt redigerede indgange findes for recollindex, kan ikke redigere crontab Error installing cron entry. Bad syntax in fields ? Fejl ved installation af cron-indgange. Forkert syntaks i felter? EditDialog Dialog Vindue EditTrans Source path Kildesti Local path Lokal sti Config error Konfigureringsfejl Original path Original sti EditTransBase Path Translations Oversættelse af stier Setting path translations for Indstilling af oversættelser af stier for Select one or several file types, then use the controls in the frame below to change how they are processed Vælg en eller flere filtyper, brug derefter knapperne i rammen nedenfor for at ændre, hvordan de skal behandles Add Tilføj Delete Slet Cancel Annuller Save Gem FirstIdxDialog First indexing setup Første opsætning indeksering <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Det fremgår, at indekset for denne konfiguration ikke eksisterer.</span><br /><br />Hvis du blot ønsker at indeksere din hjemmemappe med et sæt fornuftige standardindstillinger, skal du trykke på <span style=" font-style:italic;">Start indeksering nu</span> knappen. Du vil være i stand til at justere detaljerne senere. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Hvis du ønsker mere kontrol, kan du bruge følgende link til at justere indekseringskonfiguration og tidsplan.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Disse værktøjer kan tilgås senere fra <span style=" font-style:italic;">Præference</span> menuen.</p></body></html> Indexing configuration Konfiguration af indeksering This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. Dette vil lade dig justere de mapper, du vil indeksere, og andre parametre som udelukkede filstier eller navne, standard tegnsæt etc. Indexing schedule Tidsplan for indeksering This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). Dette vil lade dig vælge mellem batch og realtime indeksering, og oprette en automatisk tidsplan for batch indeksering (ved hjælp af cron). Start indexing now Start indeksering nu FragButs %1 not found. %1 ikke fundet. %1: %2 %1: %2 Fragment Buttons Fragment Knapper Query Fragments Forespørgsel efter fragmenter IdxSchedW Index scheduling setup Opsætning af tidsplanlægning for index <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indeksering kan køre permanent, indeksere filer når de ændrer sig, eller køre med adskilte intervaller. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Læsning af manualen kan hjælpe dig med at vælge mellem disse tilgange (tryk F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Dette værktøj kan hjælpe dig med at oprette en tidsplan for at automatisere kørsler af batch indeksering, eller starte realtid indeksering når du logger ind (eller begge dele, hvilket sjældent giver mening). </p></body></html> Cron scheduling Tidsplanlægning med cron The tool will let you decide at what time indexing should run and will install a crontab entry. Værktøjet vil lade dig afgøre, på hvilket tidspunkt indeksering skal køre og det vil installere en crontab indgang. Real time indexing start up Opstart af realtid indeksering Decide if real time indexing will be started when you log in (only for the default index). Beslut, om realtid indeksering skal startes når du logger ind (kun for standard-indekset). ListDialog Dialog Vindue GroupBox Gruppeboks Main No db directory in configuration Ingen dbmappe i konfigurationen "history" file is damaged or un(read)writeable, please check or remove it: Filen med "historik" er beskadiget eller den kan ikke læses eller skrives til, undersøg det venligst, eller fjern den: Preview Close Tab Luk faneblad Cancel Annuller Missing helper program: Manglende hjælpeprogram: Can't turn doc into internal representation for Kan ikke lave dok til intern repræsentation for Creating preview text Laver forhåndsvisningstekst Loading preview text into editor Henter forhåndsvisningstekst ind i editoren &Search for: &Søger efter: &Next &Næste &Previous &Forrige Clear Ryd Match &Case Store/små &Bogstaver Error while loading file Fejl ved indlæsning af filen PreviewTextEdit Show fields Vis felter Show main text Vis hovedtekst Print Udskriv Print Current Preview Udskriv denne Visning Show image Vis billede Select All Vælg alle Copy Kopier Save document to file Gem dokument til fil Fold lines Ombryd linier Preserve indentation Bevar indrykning QObject Global parameters Globale parametre Local parameters Lokale parametre <b>Customised subtrees <b>Tilpassede undermapper The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty. Listen over undermapper i det indekserede hierarki <br>hvor nogle parametre behøver at blive omdefineret. Standard: tom. <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons. <i>De parametre, der følger er angivet enten på øverste niveau, hvis intet<br>eller en tom linje er valgt i listefeltet ovenfor, eller for den valgte undermappe. <br> Du kan tilføje eller fjerne mapper ved at klikke på +/- knapperne. Skipped names Udeladte navne These are patterns for file or directory names which should not be indexed. Dette er mønstre for fil- eller mappenavne, der ikke skal indekseres. Follow symbolic links Følg symbolske links Follow symbolic links while indexing. The default is no, to avoid duplicate indexing Følg symbolske link under indeksering. Standarden er nej, for at undgå dobbelt indeksering Index all file names Indekser alle filnavne Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true Indekser navnene på filer, hvor indholdet ikke kan identificeres eller behandles (ingen eller ikke-understøttet mime-type). Standard er true Search parameters Søgeparametre Web history Webhistorik Default<br>character set Standard<br>tegnsæt Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Tegnsæt, der bruges til at læse filer, hvor tegnsættet ikke kan identificeres ud fra indholdet, f.eks rene tekstfiler.<br>Standardværdien er tom, og værdien fra NLS-omgivelserne anvendes. Ignored endings ignorerede endelser These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing). Dette er endelser på filnavne for filer, hvor kun navnet vil blive indekseret (ingen forsøg på identification af MIME-type, ingen dekomprimering, ingen indeksering af indhold). QWidget Create or choose save directory Opret eller vælg mappe til at gemme i Choose exactly one directory Vælg præcis en mappe Could not read directory: Kunne ikke læse mappe: Unexpected file name collision, cancelling. Uventet kollision af filnavn, annullerer. Cannot extract document: Kan ikke udtrække dokument: &Preview &Forhåndsvisning &Open &Åbn Open With Åbn med Run Script Kør skript Copy &File Name Kopier &Filnavn Copy &URL Kopier &URL &Write to File &Skriv til fil Save selection to files Gem det valgte til filer Preview P&arent document/folder Forhåndsvis &Forælderdokument/mappe &Open Parent document/folder &Åbn Forælderdokument/mappe Find &similar documents Find &lignende dokumenter Open &Snippets window Åbn vindue til &tekststumper Show subdocuments / attachments Vis underdokumenter / vedhæftede filer RTIToolW Real time indexing automatic start Automatisk start af realtid indeksering <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Indeksering kan sættes til at køre som en dæmon, der opdatere indekset når filer ændres, i realtid. Du får et indeks, som altid er opdateret, men systemressourcer anvendes permanent..</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> Start indexing daemon with my desktop session. Start indekseringsdæmonen med min skrivebordssession. Also start indexing daemon right now. Start også indekseringsdæmon lige nu. Replacing: Erstatter: Replacing file Erstatter fil Can't create: Kan ikke oprette: Warning Advarsel Could not execute recollindex Kunne ikke køre recollindex Deleting: Sletter: Deleting file Sletter fil Removing autostart Fjerner autostart Autostart file deleted. Kill current process too ? Autostartfil er slettet. Stop også nuværende proces? RclMain (no stemming) (Ingen ordstammer) (all languages) (alle sprog) error retrieving stemming languages fejl under hentning af ordstammer for sprogene Indexing in progress: Indeksering i gang: Purge Rydder op Stemdb stammedb Closing Afslutter Unknown Ukendt Query results Resultater af forespørgsel Cannot retrieve document info from database Kan ikke hente dokumentinfo fra databasen Warning Advarsel Can't create preview window Kan ikke oprette forhåndsvisningsvindue This search is not active any more Denne søgning er ikke længere aktiv Cannot extract document or create temporary file Kan ikke udtrække dokument eller oprette midlertidig fil Executing: [ Udfører: [ About Recoll Om Recoll History data Historik-data Document history Dokumenthistorik Update &Index Opdater &Indeks Stop &Indexing Stop &Indeksering All Alle media medier message meddelelse other andet presentation præsentation spreadsheet regneark text tekst sorted sorteret filtered filtreret No helpers found missing Ingen hjælpere mangler Missing helper programs Manglende hjælpeprogrammer No external viewer configured for mime type [ Ingen ekstern fremviser konfigureret for mime-type [ The viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ? Fremviseren angivet i mimeview for %1: %2 er ikke fundet. Ønsker du at åbne indstillingsvinduet? Can't access file: Kan ikke tilgå fil: Can't uncompress file: Kan ikke dekomprimere fil: Save file Gem fil Result count (est.) Optælling af resultat (est.) Could not open external index. Db not open. Check external indexes list. Kunne ikke åbne ekstern indeks. DB er ikke åben. Tjek liste over eksterne indekser. No results found Ingen resultater fundet None Ingen Updating Opdaterer Done Færdig Monitor Monitor Indexing failed Indeksering mislykkedes The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone Den nuværende indekseringsproces blev ikke startet fra denne grænseflade. Klik på OK for at stoppe den alligevel, eller Annuller for at lade den køre Erasing index Sletter indeks Reset the index and start from scratch ? Nulstil indekset og starte fra bunden? Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program Forespørgsel er i gang<br>På grund af begrænsninger i indekseringsbiblioteket,<br>vil en annullering afslutte programmet Error Fejl Index not open Indeks ikke åben Index query error Indeks forespørgselsfejl Content has been indexed for these mime types: Indholdet er blevet indekseret for disse mime-typer: Can't update index: indexer running Kan ikke opdatere indeks: indekseringsprogram kører Indexed MIME Types Indekserede MIME-typer Bad viewer command line for %1: [%2] Please check the mimeview file Forkert kommandolinje for fremviser for %1: [%2] Kontroller venligst mimeview-filen Viewer command line for %1 specifies both file and parent file value: unsupported Fremviser kommandolinje for %1 angiver både fil og forælderfil værdier: er ikke understøttet Cannot find parent document Kan ikke finde forælderdokument Indexing did not run yet Indeksering har ikke kørt endnu External applications/commands needed for your file types and not found, as stored by the last indexing pass in Eksterne programmer/kommandoer nødvendige for dine filtyper blev ikke fundet, som gemt af den sidste indeksering Sub-documents and attachments Underdokumenter og vedhæftede filer Document filter Dokumentfilter Index not up to date for this file. Refusing to risk showing the wrong entry. Indeks er ikke opdateret for denne fil. Nægter at risikere at vise den forkerte indgang. Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. Klik OK for at opdatere indekset for denne fil, du bliver så nødt til at gentage forespørgslen når indeksering er færdig. The indexer is running so things should improve when it's done. Indekseringsprogram kører så ting burde være bedre når det er færdig. The document belongs to an external indexwhich I can't update. Dokumentet tilhører et ekstern indeks, som jeg ikke kan opdatere. Click Cancel to return to the list. Click Ignore to show the preview anyway. Klik på Annuller for at vende tilbage til listen. Klik på Ignorer for at vise forhåndsvisningen alligevel. Duplicate documents Identiske dokumenter These Urls ( | ipath) share the same content: Disse webadresser ( | ipath) deler samme indhold: Bad desktop app spec for %1: [%2] Please check the desktop file Forkert desktop app spec for %1: [%2] Tjek venligst desktopfilen Indexing interrupted indeksering afbrudt Disabled because the real time indexer was not compiled in. Deaktiveret fordi realtid indeksering ikke blev kompileret ind. This configuration tool only works for the main index. Dette konfigurationsværktøj virker kun for hovedindekset. RclMainBase Recoll Recoll &File &Fil &Tools &Værktøjer &Preferences &Præferencer &Help &Hjælp E&xit A&fslut Ctrl+Q Ctrl+Q Update &index Opdater &Indeks &Erase document history &Slet dokumenthistorik &About Recoll &Om Recoll &User manual &Brugermanual Document &History Dokument&historik Document History Dokumenthistorik &Advanced Search &Avanceret søgning Advanced/complex Search Avanceret/kompleks søgning &Sort parameters &Sorterings-parametre Sort parameters Sorterings-parametre Term &explorer &Søg efter ord Term explorer tool Værktøj for søgning efter ord Next page Næste side Next page of results Næste side med resultater First page Første side Go to first page of results Gå til første side med resultater Previous page Forrige side Previous page of results Forrige side med resultater External index dialog Eksterne indekser &Show missing helpers &Vis manglende hjælpere PgDown PgDown PgUp PgUp &Full Screen &Fuldskærm F11 F11 Full Screen Fuldskærm &Erase search history &Slet søgehistorik Sort by dates from oldest to newest Sorter efter dato fra ældste til nyeste Sort by dates from newest to oldest Sorter efter dato fra nyeste til ældste Show Query Details Vis Detaljer i forespørgsel &Rebuild index &Genopbyg indeks &Show indexed types &Vis indekserede typer Shift+PgUp Shift+PgUp &Indexing schedule &Tidsplan for Indeksering E&xternal index dialog E&ksterne indekser &Index configuration &Konfiguration for Indeks &GUI configuration &Konfiguration for GUI &Results &Resultater Sort by date, oldest first Sorter efter dato, ældste først Sort by date, newest first Sorter efter dato, nyeste først Show as table Vis som tabel Show results in a spreadsheet-like table Vis resultater i en regnearklignende tabel Save as CSV (spreadsheet) file Gem som CSV (regneark) fil Saves the result into a file which you can load in a spreadsheet Gemmer resultatet i en fil, som du kan indlæse i et regneark Next Page Næste side Previous Page Forrige side First Page Første side Query Fragments Forespørgsel efter fragmenter With failed files retrying Forsøg igen med filer der mislykkedes Next update will retry previously failed files Næste opdatering vil igen forsøge med filer, der tidligere mislykkedes RclTrayIcon Restore Gendan Quit Afslut RecollModel Abstract Sammendrag Author Forfatter Document size Dokumentets størrelse Document date Dokumentets dato File size Filstørrelse File name Filnavn File date Fildato Keywords Nøgleord Original character set Originale tegnsæt Relevancy rating Relevans bedømmelse Title Titel URL URL Mtime Mtid Date Dato Date and time Dato og tid Ipath Ipath MIME type MIME-type ResList Result list Resultatliste (show query) (vis forespørgsel) Document history Dokumenthistorik <p><b>No results found</b><br> <p><b>Ingen resultater fundet</b><br> Previous Forrige Next Næste Unavailable document Dokument ikke tilgængelig Preview Forhåndsvisning Open Åbn <p><i>Alternate spellings (accents suppressed): </i> <p><i>Alternative stavemåder (accenter undertrykt): </i> Documents Dokumenter out of at least ud af mindst for for <p><i>Alternate spellings: </i> <p><i>Alternative stavemåder: </i> Result count (est.) Optælling af resultat (est.) Query details Detaljer i Forespørgsel Snippets Tekststumper ResTable &Reset sort &Nulstil sortering &Delete column &Slet kolonne Save table to CSV file Gem tabel til CSV-fil Can't open/create file: Kan ikke åbne/oprette fil: &Save as CSV &Gem som CSV Add "%1" column Tilføj "%1" kolonne ResultPopup &Preview &Forhåndsvisning &Open &Åbn Copy &File Name Kopier &Filnavn Copy &URL Kopier &URL &Write to File &Skriv til fil Save selection to files Gem det valgte til filer Preview P&arent document/folder Forhåndsvis &Forældre-dokument/mappe &Open Parent document/folder &Åbn Forældre-dokument/mappe Find &similar documents Find &lignende dokumenter Open &Snippets window Åbn vindue til &tekststumper Show subdocuments / attachments Vis underdokumenter / vedhæftede filer Open With Åbn med Run Script Kør skript SSearch Any term Vilkårlig ord All terms Alle ord File name Filnavn Query language Forespørgselssprog Bad query string Forkert forespørgselsstreng Out of memory Ikke mere hukommelse Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> No actual parentheses allowed.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. Indtast forespørgselssprogudtryk. Snydeark:<br> <i>ord1 ord2</i> : 'ord1' og 'ord2' i et hvilken som helst felt.<br> <i>felt:ord1</i> : 'ord1' i feltet 'felt'.<br> Standard feltnavne/synonymer:<br> titel/emne/billedtekst, forfatter/fra, modtager/til, filnavn, ekst.<br> Pseudofelter: dir, mime/format, type/rclcat, dato.<br> To datointerval-eksempler: 2009-03-01/2009-05-20 2009-03-01/P2M:<br>. <i>ord1 ord2 ELLER ord3</i>: ord1 OG (ord2 ELLER ord3).<br> Ingen egentlige parenteser er tilladt.<br> <i>"ord1 ord2"</i> : frase (skal forekomme nøjagtigt). Mulige modifikatorer:<br> <i>"ord1 ord2"p </i> : uordnet nærheds-søgning med standard afstand.<br> Brug <b>Vis Forespørgsel</b> link når i tvivl om resultatet og se manual (&lt;F1>) for flere detaljer. Enter file name wildcard expression. Indtast filnavn jokertegn udtryk. Enter search terms here. Type ESC SPC for completions of current term. Indtast søgeord her. Tast ESC SPC for færdiggørelse af nuværende ord. Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. Indtast forespørgselssprogets udtryk. Snydeark:<br> <i>ord1 ord2</i> : 'ord1' og 'ord2' i et hvilken som helst felt.<br> <i>felt:ord1</i> : 'ord1' i feltet 'felt'.<br> Standard feltnavne/synonymer:<br> titel/emne/billedtekst, forfatter/fra, modtager/til, filnavn, ekst.<br> Pseudofelter: dir, mime/format, type/rclcat, dato, størrelse.<br> To datointerval-eksempler: 2009-03-01/2009-05-20 2009-03-01/P2M:<br>. <i>ord1 ord2 OR ord3</i>: ord1 AND (ord2 OR ord3).<br> Du kan bruge parenteser for at gøre tingene klarere.<br> <i>"ord1 ord2"</i> : frase (skal forekomme nøjagtigt). Mulige modifikatorer:<br> <i>"ord1 ord2"p </i> : uordnet nærheds-søgning med standard afstand.<br> Brug <b>Vis Forespørgsel</b> link når i tvivl om resultatet og se manual (&lt;F1>) for flere detaljer. SSearchBase SSearchBase SSøgeBase Clear Ryd Ctrl+S Ctrl+S Erase search entry Slet søgeindgang Search Søg Start query Start forespørgsel Enter search terms here. Type ESC SPC for completions of current term. Indtast søgeord her. Type ESC SPC for færdiggørelse af nuværende ord. Choose search type. Vælg søgetype. SearchClauseW Select the type of query that will be performed with the words Vælg den type forespørgsel, der vil blive udført med ordene Number of additional words that may be interspersed with the chosen ones Antal yderligere ord, der kan være blandet med de udvalgte No field Intet felt Any Vilkårlig All Alle None Ingen Phrase Frase Proximity Nærhed File name Filnavn Snippets Snippets Tekststumper Find: Find: Next Næste Prev Forrige SnippetsW Search Søg <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p> <p>Desværre blev der ikke, inden for rimelige grænser, fundet en nøjagtig match. Sandsynligvis fordi dokumentet er meget stort, så tekststump-generatoren for vild i mængden...</ p> SpellBase Term Explorer Søg efter ord &Expand &Udvid Alt+E Alt+E &Close &Luk Alt+C Alt+C No db info. Ingen dbinfo. Match Sammenlign Case Stor/Små bogstaver Accents Accenter SpellW Wildcards Jokertegn Regexp Regex Stem expansion Udvidelse af stamme Spelling/Phonetic Stavning/Fonetisk error retrieving stemming languages fejl under hentning af ordstammer for sprogene Aspell init failed. Aspell not installed? Aspell init mislykkedes. Aspell ikke installeret? Aspell expansion error. Aspell udvidelsesfejl. No expansion found Ingen udvidelse fundet Term Ord Doc. / Tot. Dok. / Tot. Index: %1 documents, average length %2 terms.%3 results Index: %1 dokumenter, gennemsnitslængde %2 ord %3 resultater %1 results %1 resultater List was truncated alphabetically, some frequent Liste blev afkortet alfabetisk, nogle ofte terms may be missing. Try using a longer root. Der kan mangle ord. Prøv at bruge en længere rod. Show index statistics Vis statistik for indeks Number of documents Antal dokumenter Average terms per document Gennemsnitlige ord pr dokument Smallest document length Mindste dokumentlængde Longest document length Længste dokumentlængde Database directory size Mappestørrelse for database MIME types: MIME-typer: Item Element Value Værdi UIPrefsDialog error retrieving stemming languages fejl under hentning af ordstammer for sprogene The selected directory does not appear to be a Xapian index Den valgte mappe synes ikke at være et Xapianindeks This is the main/local index! Dette er hoved/lokal indekset! The selected directory is already in the index list Den valgte mappe er allerede i indekslisten Choose Vælg Result list paragraph format (erase all to reset to default) Afsnitformat for resultatliste (slet alt for at nulstille til standard) Result list header (default is empty) Overskrift for resultatliste (standard er tom) Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) Vælg recoll konfigmappe eller xapian indeksmappe (f.eks: /home/me/.recoll eller /home/me/.recoll/xapiandb) The selected directory looks like a Recoll configuration directory but the configuration could not be read Den valgte mappe ligner en Recoll konfigurationmappe, men konfigurationen kunne ikke læses At most one index should be selected Der burde vælges højst et indeks Cant add index with different case/diacritics stripping option Kan ikke tilføje indeks med en anden indstilling for fjernelse af store-bogstaver/diakritiske tegn Default QtWebkit font Standard skrifttype for QtWebkit ViewAction Command Kommando MIME type MIME-type Desktop Default Desktop standard Changing entries with different current values Ændrer indgange med forskellige aktuelle værdier ViewActionBase Native Viewers Oprindelige fremvisere Close Luk Select one or several mime types then use the controls in the bottom frame to change how they are processed. Vælg en eller flere Mime-typer og brug derefter knapperne i bundrammen til at ændre, hvordan de behandles. Use Desktop preferences by default Brug indstillinger for Desktop som standard Select one or several file types, then use the controls in the frame below to change how they are processed Vælg en eller flere filtyper, og brug derefter knapperne i rammen nedenfor for at ændre, hvordan de behandles Exception to Desktop preferences Undtagelse til indstillinger for Desktop Action (empty -> recoll default) Handling (tom -> recoll standard) Apply to current selection Anvend på aktuelle udvalg Recoll action: Recoll handling: current value aktuelle værdi Select same Vælg det samme <b>New Values:</b> <b>Nye værdier:</b> confgui::ConfBeaglePanelW Entries will be recycled once the size is reached Indgangene vil blive genbrugt, når størrelsen er nået Web page store directory name Mappenavn for lageret til Websider The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory. Navnet på en mappe hvor du vil gemme kopier af besøgte websider.<br>En relativ sti er taget i forhold til konfigurationsmappen. Max. size for the web store (MB) Max. størrelse til web-lager (MB) Process the WEB history queue Behandl køen for WEB-historik Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin) Aktiverer indeksering af sider besøgt af Firefox.<br>(Du skal også installere Firefox Recoll plugin) confgui::ConfIndexW Can't write configuration file Kan ikke skrive konfigurationsfil confgui::ConfParamFNW Choose Vælg confgui::ConfParamSLW + + - - confgui::ConfSearchPanelW Automatic diacritics sensitivity Automatisk følsomhed over for diakritiske tegn <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity. <p>Udløser automatisk følsomhed over for diakritiske tegn, hvis søgeordet har accent tegn (ikke i unac_except_trans). Ellers er du nød til bruge forespørgselssproget og <i>D</i> modifikatoren, for at angive følsomhed over for diakritiske tegn. Automatic character case sensitivity Automatisk følsomhed over for store/små bogstaver <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity. <p>Udløser automatisk følsomhed over for store/små bogstaver, hvis indgangen har store bogstaver i andet end den første position. Ellers er du nød til bruge forespørgselssproget og <i>C</i> modifikatoren, for at angive følsomhed over for store/små bogstaver. Maximum term expansion count Maksimale antal ordudvidelser <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. <p>Maksimal antal udvidelser-for et enkelt ord (fx: når der bruges jokertegn). Standarden på 10 000 er rimeligt og vil undgå forespørgsler, der synes at fryse mens motoren arbejder sig igennem ordlisten. Maximum Xapian clauses count Maksimale antal Xapiansætninger <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. <p>Maksimalt antal grundlæggende sætninger vi føjer til en enkel Xapian forespørgsel. I nogle tilfælde kan resultatet af ordudvidelse være multiplikativ, og vi ønsker at undgå at bruge overdreven hukommelse. Standarden på 100 000 bør være både høj nok i de fleste tilfælde og kompatibel med de nuværende typiske hardware konfigurationer. confgui::ConfSubPanelW Global Global Max. compressed file size (KB) Maks. komprimeret filstørrelse (KB) This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever. Denne værdi angiver en grænse for, hvornår komprimerede filer ikke vil blive behandlet. Indstil til -1 for ingen grænse, til 0 for ingen dekomprimering nogensinde. Max. text file size (MB) Maks. størrelse på tekstfil (MB) This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index. Denne værdi angiver en grænse for, hvornår tekstfiler ikke vil blive behandlet. Indstil til -1 for ingen grænse. Dette er for at udelukke monster logfiler fra indekset. Text file page size (KB) Sidestørrelse på tekstfil (KB) If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files). Hvis denne værdi er indstillet (ikke lig med -1), vil tekstfiler opdeles i bidder af denne størrelse for indeksering. Dette vil hjælpe søgning i meget store tekstfiler (dvs.: log-filer). Max. filter exec. time (S) Maks. udførelsestid for filtre (S) External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. Eksterne filtre der arbejder længere end dette vil blive afbrudt. Dette er for det sjældne tilfælde (dvs.: postscript) hvor et dokument kan forårsage, at et filter laver et loop. Indstil til -1 for ingen grænse. Only mime types Kun mime-typer An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive En eksklusiv liste over indekserede MIME-typer.<br>Intet andet vil blive indekseret. Normalt tom og inaktiv Exclude mime types Udeluk mime-typer Mime types not to be indexed Mime-typer der ikke skal indekseres confgui::ConfTopPanelW Top directories Øverste mapper The list of directories where recursive indexing starts. Default: your home. Listen over mapper hvor rekursiv indeksering starter. Standard: din hjemme-mappe (home). Skipped paths Udeladte stier These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*') Dette er navne på mapper, som indeksering ikke går ind i.<br>Kan indeholde jokertegn. Skal stemme overens med stierne, som de er set af indekseringen (dvs. hvis de øverste mapper omfatter '/home/mig' og '/home' er et link til '/usr/home', en korrekt udeladtSti indgang ville være '/home/mig/tmp * ', ikke '/usr/home/mig/tmp * ') Stemming languages Ordstammer for sprogene The languages for which stemming expansion<br>dictionaries will be built. De sprog, hvor ordstamme-udvidelses<br>ordbøger vil blive bygget. Log file name Navn på logfil The file where the messages will be written.<br>Use 'stderr' for terminal output Filen hvor meddelelser vil blive skrevet.<br>Brug 'stderr' for terminal output Log verbosity level Log informationsniveau This value adjusts the amount of messages,<br>from only errors to a lot of debugging data. Denne værdi justerer mængden af meddelelser,<br>fra kun fejl til en masse fejlretningsdata. Index flush megabytes interval Megabyte interval for skrivning af Index This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB Denne værdi justere mængden af data, der er indekseret mellem skrivning til disken.<br>Dette hjælper med at kontrollere indekseringsprogrammets brug af hukommelse. Standard 10MB Max disk occupation (%) Maks brug af disk (%) This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default). Dette er den procentdel af diskforbrug hvor indeksering vil mislykkes, og stoppe (for at undgå at fylde dit disk).<br>0 betyder ingen grænse (dette er standard). No aspell usage Brug ikke aspell Aspell language Aspell sprog Database directory name Databasens mappenavn Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. Deaktiver brug af aspell til at generere stavnings-tilnærmelse i værktøj for søgning efter ord. <br> Nyttigt hvis aspell er fraværende eller ikke virker. The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. Sproget for aspell ordbog. Det skal se ud som "en" eller "fr" ...<br>Hvis denne værdi ikke er angivet, så vil NLS omgivelser blive brugt til at finde det, det fungerer normalt. For at få en idé om, hvad der er installeret på dit system, kan du skrive 'aspell konfig "og se efter .dat filer inde i 'data-dir' mappen. The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Navnet på en mappe hvor du vil gemme indekset<br>En relativ sti er taget i forhold til konfigurationsmappen. Standard er "xapiandb. Unac exceptions Unac-undtagelser <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation. <p>Disse er undtagelser fra unac mekanismen, der, som standard, fjerner alle diakritiske tegn, og udfører kanoniske nedbrydning. Du kan tilsidesætte fjernelse af accent for nogle tegn, afhængigt af dit sprog, og angive yderligere nedbrydninger, f.eks for ligaturer. I hver indgang adskilt af mellemrum, er det første tegn kildedelen, og resten er oversættelsen. uiPrefsDialogBase User preferences Brugerindstillinger User interface brugergrænseflade Number of entries in a result page Antal indgange i en resultatside If checked, results with the same content under different names will only be shown once. Afkryds forårsager, at resultater med samme indhold under forskellige navne kun bliver rapporteret en gang. Hide duplicate results. Skjul identiske resultater. Highlight color for query terms Farve for fremhævning af søgeord Result list font Skrifttype for resultatliste Opens a dialog to select the result list font Åbner et vindue til at vælge resultatlistens skrifttype Helvetica-10 Helvetica-10 Resets the result list font to the system default Nulstiller resultatlistens skrifttype til systemets standard Reset Nulstil Texts over this size will not be highlighted in preview (too slow). Tekster over denne størrelse vil ikke blive fremhævet i forhåndsvisning (for langsom). Maximum text size highlighted for preview (megabytes) Maksimal tekststørrelse der fremhæves for forhåndsvisning (megabyte) Choose editor applications Vælg redigeringsprogrammer Auto-start simple search on whitespace entry. Autostart simpel søgning ved blanktegn. Start with advanced search dialog open. Start med åbent avanceret søgevindue. Remember sort activation state. Husk sorteringens aktiveringstilstand. Prefer Html to plain text for preview. Foretræk Html til almindelig tekst for forhåndsvisning. Search parameters Søgeparametre Stemming language Ordstammer for sprog A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. En søgning efter [Rullende Sten] (2 ord) vil blive ændret til [rullende eller sten eller (rullende frase 2 sten)]. Dette skulle give højere forrang til resultaterne, hvor søgeordene vises nøjagtigt som angivet. Automatically add phrase to simple searches Tilføj automatisk frase til simple søgninger Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Skal vi forsøge at lave sammendrag af indgange til resultatliste ved at bruge sammenhænget med forespørgselsordene? Kan være langsomt for store dokumenter. Dynamically build abstracts Lav dynamisk sammendrag Do we synthetize an abstract even if the document seemed to have one? Skal vi sammenfatte et sammendrag, selvom dokumentet synes at have et? Replace abstracts from documents Erstat sammendrag fra dokumenter Synthetic abstract size (characters) Størrelse på det genererede sammendrag (tegn) Synthetic abstract context words Sammenhængende ord for det genererede sammendrag The words in the list will be automatically turned to ext:xxx clauses in the query language entry. Ordene på listen bliver automatisk vendt til ext: xxx sætninger i forespørgselssprogets indgang. Query language magic file name suffixes. Forespørgselssprogets magiske filnavnsendelser. Enable Aktiver External Indexes Eksterne Indekser Toggle selected Skift det valgte Activate All Aktiver alle Deactivate All Deaktiver alle Remove from list. This has no effect on the disk index. Fjern fra listen. Dette har ingen virkning på indeks på disken. Remove selected Fjern valgte Add index Tilføj index Apply changes Anvend ændringer &OK &OK Discard changes Kassere ændringer &Cancel &Annuller Abstract snippet separator Separator mellem sammendragets tekststumper Style sheet Stylesheet Opens a dialog to select the style sheet file Åbn et vindue for at vælge stylesheet-filen Choose Vælg Resets the style sheet to default Nulstil stylesheet til standard Result List Resultatliste Edit result paragraph format string Rediger formatstreng for resultatafsnit Edit result page html header insert Rediger kode for indsætnig i html-header for resultatside Date format (strftime(3)) Datoformat (strftime(3)) Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). Hyppighedens procentvise tærskel, hvorover vi ikke bruger ord inde i autofrase. Hyppige ord er et stort problem for ydeevnen med fraser. Udeladte ord forøger frase stilstand, og reducere effektiviteten af autofrase. Standardværdien er 2 (procent). Autophrase term frequency threshold percentage Tærskelprocentsats for ordhyppighed ved autofrase Plain text to HTML line style Almindelig tekst til HTML linjetype Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. Linjer i PRE tekst ombrydes ikke. Brug af BR mister en del indrykning. PRE + Wrap stil kunne være, hvad du ønsker. <BR> <BR> <PRE> <PRE> <PRE> + wrap <PRE> + wrap Disable Qt autocompletion in search entry. Deaktiver Qt autofuldførelse i søgeindgange. Search as you type. Søg mens du skriver. Paths translations Oversættelser af stier Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. Klik for at tilføje endnu en indeksmappe til listen. Du kan vælge enten en Recoll konfigurationsmappe eller et Xapianindeks. Snippets window CSS file CSS-fil for vindue til tekststumper Opens a dialog to select the Snippets window CSS style sheet file Åbner et vindue til at vælge CSS stylesheet-fil for vinduet til tekststumper Resets the Snippets window style Nulstil stilen for vinduet til tekststumper Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Bestemmer om dokumentfiltre er vist som radioknapper, værktøjslinje kombinationsfelt eller menu. Document filter choice style: Valgmetode for dokumentfilter: Buttons Panel Panel med knapper Toolbar Combobox værktøjslinje kombinationsfelt Menu Menu Show system tray icon. Vis statusikon. Close to tray instead of exiting. Luk til systembakke i stedet for at afslutte. recoll-1.21.5/qtgui/i18n/recoll_es.ts0000644000175000017500000040107112602163537016621 0ustar dockesdockes AdvSearch All clauses Todas las cláusulas Any clause Cualquier cláusula texts textos spreadsheets hojas de cálculo presentations presentaciones media medios messages mensajes other otros Bad multiplier suffix in size filter Sufijo multiplicador incorrecto en filtro de tamaño text texto spreadsheet hoja de cálculo presentation presentación message mensaje AdvSearchBase Advanced search Búsqueda avanzada Search for <br>documents<br>satisfying: Buscar documentos<br>que satisfagan: Delete clause Borrar cláusula Add clause Añadir cláusula Restrict file types Restringir tipos de archivo Check this to enable filtering on file types Marque esto para habilitar filtros en tipos de archivos By categories Por categorías Check this to use file categories instead of raw mime types Marque esto para usar categorías en lugar de tipos MIME Save as default Guardar como predeterminado Searched file types Tipos de archivos buscados All ----> Todos ----> Sel -----> Sel -----> <----- Sel <----- Sel <----- All <----- Todos Ignored file types Tipos de archivos ignorados Enter top directory for search Ingrese directorio inicial para la búsqueda Browse Buscar Restrict results to files in subtree: Restringir resultados a archivos en subdirectorio: Start Search Iniciar búsqueda Close Cerrar All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. Todos los campos no vacíos a la derecha serán combinados con conjunciones AND (opción "Todas las cláusulas") o OR (opción "Cualquier cláusula").<br>Los campos "Cualquiera", "Todas" y "Ninguna" pueden aceptar una mezcla de palabras simples y frases dentro de comillas dobles.<br>Campos sin datos son ignorados. Invert Invertir Minimum size. You can use k/K,m/M,g/G as multipliers Tamaño mínimo. Puede utilizar k/K, m/M o g/G como multiplicadores Min. Size Tamaño Mínimo Maximum size. You can use k/K,m/M,g/G as multipliers Tamaño máximo. Puede utilizar k/K, m/M o g/G como multiplicadores Max. Size Tamaño máximo Filter Filtro Check this to enable filtering on dates Marque esto para habilitar filtros en fechas Filter dates Filtrar fechas From Desde To Hasta Find Buscar Check this to enable filtering on sizes Marque esto para habilitar filtros en tamaños Filter sizes Filtro de tamaños CronToolW Cron Dialog Ventana de Cron <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> horario de indexado por lotes (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Cada campo puede contener un comodín (*), un valor numérico único, listas separadas por comas (1,3,5) y rangos (1-7). Más generalmente, los campos serán usados <span style=" font-style:italic;">tal como son</span> dentro del archivo crontab, y toda la sintaxis crontab puede ser usada, ver crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Por ejemplo, ingresar <span style=" font-family:'Courier New,courier';">*</span> en <span style=" font-style:italic;">Días, </span><span style=" font-family:'Courier New,courier';">12,19</span> en <span style=" font-style:italic;">Horas</span> y <span style=" font-family:'Courier New,courier';">15</span> en <span style=" font-style:italic;">Minutos</span> iniciaría recollindex cada día a las 12:15 AM y 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Un horario con activaciones frecuentes es probablemente menos eficiente que la indexación en tiempo real.</p></body></html> Days of week (* or 0-7, 0 or 7 is Sunday) Días de la semana (* o 0-7, 0 o 7 es Domingo) Hours (* or 0-23) Horas (* o 0-23) Minutes (0-59) Minutos (0-59) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Presione <span style=" font-style:italic;">Deshabilitar</span> para detener la indexación automática por lotes, <span style=" font-style:italic;">Habilitar</span> para activarla, <span style=" font-style:italic;">Cancelar</span> para no cambiar nada.</p></body></html> Enable Habilitar Disable Deshabilitar It seems that manually edited entries exist for recollindex, cannot edit crontab Parece ser que existen entradas para recollindex editadas manualmente, no se puede editar crontab Error installing cron entry. Bad syntax in fields ? Error al instalar entrada de cron. Sintaxis incorrecta en los campos? EditDialog Dialog Ventana de diálogo EditTrans Source path Ruta de origen Local path Ruta local Config error Error de configuración Original path Ruta original EditTransBase Path Translations Ruta de traducciones Setting path translations for Establecer ruta de traducciones para Select one or several file types, then use the controls in the frame below to change how they are processed Seleccione uno o más tipos de archivos, y use los controles en la caja abajo para cambiar cómo se procesan Add Añadir Delete Borrar Cancel Cancelar Save Guardar FirstIdxDialog First indexing setup Primera configuración de indexación <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Parece ser que el índice para esta configuración no existe.</span><br /><br />Si solamente desea indexar su directorio personal con un conjunto de valores iniciales razonables, presione el botón <span style=" font-style:italic;">Iniciar indexación ahora</span>. Es posible ajustar los detalles más tarde.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Si necesita más control, use los enlaces siguientes para ajustar la configuración de indexación y el horario.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Estas herramientas pueden ser accedidas luego desde el menú <span style=" font-style:italic;">Preferencias</span>.</p></body></html> Indexing configuration Configuración de indexación This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. Esto le permite ajustar los directorios que quiere indexar y otros parámetros, como rutas de archivos o nombres excluidos, conjuntos de caracteres estándar, etc. Indexing schedule Horario de indexación This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). Esto le permite escoger entre indexación en tiempo real y por lotes, y configurar un horario automático para indexar por lotes (utilizando cron). Start indexing now Iniciar indexación ahora FragButs %1 not found. %1: %2 Query Fragments IdxSchedW Index scheduling setup Configuración de horario de indexación <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">La indexación de <span style=" font-weight:600;">Recoll</span> puede ejecutarse permanentemente, indexando archivos cuando cambian, o puede ejecutarse en intervalos discretos. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Leer el manual puede ayudarle a decidir entre estos dos métodos (presione F1).</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Esta herramienta puede ayudarle a configurar un horario para automatizar la ejecución de indexación por lotes, o iniciar la indexación en tiempo real cuando inicia la sesión (o ambos, lo cual rara vez tiene sentido).</p></body></html> Cron scheduling Horario de Cron The tool will let you decide at what time indexing should run and will install a crontab entry. Esta herramienta le permite decidir a qué hora la indexación se ejecutará e instalará una entrada en el crontab. Real time indexing start up Inicio de la indexación en tiempo real Decide if real time indexing will be started when you log in (only for the default index). Decida si la indexación en tiempo real será ejecutada cuando inicie la sesión (solo para el índice estándar). ListDialog Dialog Ventana de diálogo GroupBox Cuadro de grupo Main No db directory in configuration Directorio de base de datos no está configurado Could not open database in No se puede abrir base de datos en . Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed. Presione Cancelar si desea editar la configuración antes de indexar, o Ok para proceder. "history" file is damaged or un(read)writeable, please check or remove it: El archivo de historial esta dañado o no se puede leer, por favor revíselo o bórrelo: Preview Close Tab Cerrar Pestaña Cannot create temporary directory No se puede crear directorio temporal Cancel Cancelar Missing helper program: Programa ayudante faltante: Can't turn doc into internal representation for No se puede convertir documento a representación interna para Creating preview text Creando texto de vista previa Loading preview text into editor Cargando texto de vista previa en el editor &Search for: &Buscar por: &Next &Siguiente &Previous &Previo Clear Limpiar Match &Case &Coincidir mayúsculas y minúsculas Cannot create temporary directory: No se puede crear directorio temporal: Error while loading file Error al cargar archivo PreviewTextEdit Show fields Mostrar campos Show main text Mostrar texto principal Print Imprimir Print Current Preview Imprimir vista previa actual Show image Mostrar imagen Select All Seleccionar todo Copy Copiar Save document to file Guardar documento en un archivo Fold lines Doblar líneas Preserve indentation Preservar indentación QObject Global parameters Parámetros globales Local parameters Parámetros locales <b>Customised subtrees <b>Subdirectorios personalizados The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty. La lista de subdirectorios en la jerarquía indexada<br>dónde algunos parámetros necesitan ser definidos. Valor por defecto: vacío. <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons. <i>Los parámetros siguientes se aplican a nivel superior, si una línea vacía<br>o ninguna es seleccionada en el listado arriba, o para cada directorio seleccionado.<br>Puede añadir o remover directorios presionando los botones +/-. Skipped names Nombres omitidos These are patterns for file or directory names which should not be indexed. Estos son patrones de nombres de archivos o directorios que no deben ser indexados. Default character set Conjunto de caracteres por defecto This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Este es el conjunto de caracteres usado para leer archivos que no son identificados internamente, por ejemplo, archivos de texto puro.<br>El valor por defecto está vacío, y el valor del ambiente NLS es usado. Follow symbolic links Seguir enlaces simbólicos Follow symbolic links while indexing. The default is no, to avoid duplicate indexing Seguir enlaces simbólicos al indexar. El valor por defecto es no, para evitar indexar duplicados Index all file names Indexar todos los nombres de archivos Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true Indexar los nombres de los archivos para los cuales los contenidos no pueden ser<br>identificados o procesados (tipo MIME inválido o inexistente). El valor por defecto es verdadero Beagle web history Historial web Beagle Search parameters Parámetros de búsqueda Web history Historial Web Default<br>character set Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Ignored endings These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing). QWidget Create or choose save directory Choose exactly one directory Could not read directory: Unexpected file name collision, cancelling. Cannot extract document: &Preview &Open &Abrir Open With Run Script Copy &File Name Copy &URL Copiar &URL &Write to File Save selection to files Guardar selección a archivos Preview P&arent document/folder &Open Parent document/folder &Abrir documento/directorio ascendente Find &similar documents Buscar documentos &similares Open &Snippets window Abrir ventana de &fragmentos Show subdocuments / attachments Mostrar subdocumentos / adjuntos RTIToolW Real time indexing automatic start Inicio automático de la indexación en tiempo real <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">La indexación de <span style=" font-weight:600;">Recoll</span> puede configurarse para ejecutar como un demonio, actualizando el índice cuando los archivos cambian, en tiempo real. Obtiene un índice actualizado siempre, pero los recursos del sistema son utilizados permanentemente.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> Start indexing daemon with my desktop session. Iniciar el demonio de indexación con mi sesión de escritorio. Also start indexing daemon right now. También iniciar demonio de indexación ahora mismo. Replacing: Reemplazando: Replacing file Reemplazando archivo Can't create: No se puede crear: Warning Advertencia Could not execute recollindex No se puede ejecutar recollindex Deleting: Borrando: Deleting file Borrando archivo Removing autostart Eliminando autoinicio Autostart file deleted. Kill current process too ? Archivo de autoinicio borrado. Detener el proceso actual también? RclMain (no stemming) (sin raíces) (all languages) (todos los lenguajes) error retrieving stemming languages error al recuperar lenguajes para raíces Indexing in progress: Indexación en progreso: Files Ficheros Purge Stemdb Raízdb Closing Cerrando Unknown Desconocido Can't start query: No se puede iniciar la consulta: Query results Resultados de búsqueda Cannot retrieve document info from database No se puede recuperar información del documento de la base de datos Warning Advertencia Can't create preview window No se puede crear ventana de vista previa This search is not active any more Esta búsqueda no está activa Bad viewer command line for %1: [%2] Please check the mimeconf file Línea de comando incorrecta de visualizador para %1: [%2] Por favor revise el fichero mimeconf Cannot extract document or create temporary file No se puede extraer el documento o crear archivo temporal Executing: [ Ejecutando: [ About Recoll Acerca de Recoll History data Datos de historial Document history Historial de documentos Update &Index Actualizar &Índice Indexing interrupted Indexación interrumpida Stop &Indexing Detener &Indexación All Todo media medios message mensaje other otro presentation presentación spreadsheet hoja de cálculo text texto sorted ordenado filtered filtrado External applications/commands needed and not found for indexing your file types: Aplicaciones/comandos externos necesarios y no encontrados para indexar sus tipos de fichero: No helpers found missing Missing helper programs Programas ayudantes faltantes Document category filter Filtro de categorías de documentos No external viewer configured for mime type [ No hay visualizador configurado para tipo MIME [ The viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ? Can't access file: No se puede accesar el archivo: Can't uncompress file: No se puede descomprimir el archivo: Save file Guardar archivo Result count (est.) Conteo de resultados (est.) Query details Detalles de búsqueda Could not open external index. Db not open. Check external indexes list. No se puede abrir índice externo. Base de datos no abierta. Revise listado de índices externos. No results found No hay resultados None Ninguno Updating Actualizando Done Hecho Monitor Monitor Indexing failed Indexación falló The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone El proceso de indexación actual no se inicio desde esta interfaz. Presione Ok para detenerlo, o Cancelar para dejarlo ejecutar Erasing index Borrando índice Reset the index and start from scratch ? Restaurar el índice e iniciar desde cero? Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program Consulta en progreso.<br>Debido a limitaciones en la librería de indexación,<br>cancelar terminará el programa Error Error Index not open Índice no está abierto Index query error Error de consulta del índice Indexed Mime Types Tipos MIME indexados Content has been indexed for these mime types: Los contenidos han sido indexados para estos tipos MIME: Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. Índice no actualizado para este fichero. No mostrado para evitar utilizar la entrada errónea. Presione Ok para actualizar el índice para este fichero, luego ejecute la consulta de nuevo cuando la indexación termine. En caso contrario, presione Cancelar. Can't update index: indexer running No se puede actualizar el índice: indexador en ejecución Indexed MIME Types Tipos MIME indexados Bad viewer command line for %1: [%2] Please check the mimeview file Línea de comando incorrecta de visualizador para %1: [%2] Por favor revise el archivo mimeconf Viewer command line for %1 specifies both file and parent file value: unsupported Línea de comandos del visualizador para %1 especifica valores para el archivo y el archivo padre: no soportado Cannot find parent document No se encuentra documento padre Indexing did not run yet La indexación no se ha ejecutado aún External applications/commands needed for your file types and not found, as stored by the last indexing pass in Aplicaciones/comandos externos requeridos por sus tipos de archivos y no encontrados, como se almacenaron en el último pase de indexación en Index not up to date for this file. Refusing to risk showing the wrong entry. El índice no está actualizado para este archivo. Rehusando mostrar la entrada equivocada. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. Presione Ok para actualizar el índice para este archivo, y ejecute de nuevo la consulta cuando la indexación termine. En caso contrario, cancele. Indexer running so things should improve when it's done El indexador está en ejecución, así que las cosas deberían mejorar cuando termine Sub-documents and attachments Sub-documentos y adjuntos Document filter Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. The indexer is running so things should improve when it's done. The document belongs to an external indexwhich I can't update. Click Cancel to return to the list. Click Ignore to show the preview anyway. Duplicate documents Documentos duplicados These Urls ( | ipath) share the same content: Estos URLs ( | ipath) comparten el mismo contenido: Bad desktop app spec for %1: [%2] Please check the desktop file RclMainBase Recoll Recoll Search tools Herramientas de búsqueda Result list Lista de resultados &File &Archivo &Tools &Herramientas &Preferences &Preferencias &Help &Ayuda E&xit &Salir Ctrl+Q Ctrl+Q Update &index Actualizar &índice &Erase document history Borrar historial de &documentos &About Recoll &Acerca de Recoll &User manual Manual de &Usuario Document &History Historial de &Documentos Document History Historial de Documentos &Advanced Search Búsqueda &Avanzada Advanced/complex Search Búsqueda avanzada/compleja &Sort parameters Parámetros de &ordenamiento Sort parameters Parámetros de ordenamiento Term &explorer &Explorador de términos Term explorer tool Herramienta de exploración de términos Next page Siguiente página Next page of results Página de resultados siguiente First page Primera página Go to first page of results Ir a la primera página de resultados Previous page Página anterior Previous page of results Página de resultados anterior &Query configuration Configuración de &consulta External index dialog Configuración de índices externos &Indexing configuration Configuración de &indexación All Todo &Show missing helpers &Mostrar ayudantes faltantes PgDown AvPág PgUp RePág &Full Screen Pantalla &Completa F11 F11 Shift+Home Mayúsculas+Inicio Full Screen Pantalla Completa &Erase search history Borrar historial de &búsqueda sortByDateAsc ordenarPorFechaAsc Sort by dates from oldest to newest Ordenar por fechas de la más antigua a la más reciente sortByDateDesc ordenarPorFechaDesc Sort by dates from newest to oldest Ordenar por fechas de la más reciente a la más antigua Show Query Details Mostrar resultados de la consulta Show results as table Mostrar resultados tabulados &Rebuild index &Reconstruir índice &Show indexed types &Mostrar tipos indexados Shift+PgUp Mayúsculas+RePág &Indexing schedule &Horario de indexación E&xternal index dialog &Configuración de índices externos &Index configuration &Configuración del Índice &GUI configuration Configuración de &GUI &Results &Resultados Sort by date, oldest first Ordenar por fecha, antiguos primero Sort by date, newest first Ordenar por fecha, recientes primero Show as table Mostrar como tabla Show results in a spreadsheet-like table Mostrar resultados en una tabla similar a una hoja de cálculo Save as CSV (spreadsheet) file Guardar como un archivo CSV (hoja de cálculo) Saves the result into a file which you can load in a spreadsheet Guardar el resultado en un archivo que se puede cargar en una hoja de cálculo Next Page Página Siguiente Previous Page Página Anterior First Page Primera Página Query Fragments With failed files retrying Next update will retry previously failed files RclTrayIcon Restore Quit RecollModel Abstract Resumen Author Autor Document size Tamaño del documento Document date Fecha del documento File size Tamaño del archivo File name Nombre del archivo File date Fecha del archivo Ipath Ipath Keywords Palabras clave Mime type Tipo MIME Original character set Conjunto de caracteres original Relevancy rating Calificación de relevancia Title Título URL URL Mtime Fecha Mod Date Fecha Date and time Fecha y hora Ipath Ipath MIME type Tipo MIME ResList Result list Lista de resultados (show query) (mostrar consulta) &Preview &Vista Previa Copy &File Name Copiar nombre de &fichero Copy &URL Copiar &URL Find &similar documents Buscar documentos &similares Document history Historial de documentos <p><b>No results found</b><br> <p><b>No hay resultados</b></br> Previous Anterior Next Siguiente Unavailable document Documento no disponible Preview Vista previa Open Abrir <p><i>Alternate spellings (accents suppressed): </i> <p><i>Ortografía alterna (acentos suprimidos): </i> &Write to File &Escribir a fichero Preview P&arent document/folder &Vista previa de documento/directorio ascendente &Open Parent document/folder &Abrir documento/directorio ascendente &Open &Abrir Documents Documentos out of at least de por lo menos for para <p><i>Alternate spellings: </i> <p><i>Escrituras Alternas: </i> Duplicate documents Documentos duplicados These Urls ( | ipath) share the same content: Estos URLs ( | ipath) comparten el mismo contenido: Result count (est.) Conteo de resultados (est.) Query details Detalles de búsqueda Snippets Fragmentos ResTable &Reset sort &Restaurar ordenamiento &Delete column &Borrar columna Add " Añadir " " column " columna Save table to CSV file Guardar tabla a archivo CSV Can't open/create file: No se puede abrir/crear archivo: &Preview &Vista previa &Open &Abrir Copy &File Name Copiar nombre de &fichero Copy &URL Copiar &URL &Write to File &Escribir a fichero Find &similar documents Buscar documentos &similares Preview P&arent document/folder &Vista previa de documento/directorio ascendente &Open Parent document/folder &Abrir documento/directorio ascendente &Save as CSV &Guardar como CSV Add "%1" column Agregar columna "%1" ResTableDetailArea &Preview &Vista previa &Open &Abrir Copy &File Name Copiar nombre de &fichero Copy &URL Copiar &URL &Write to File &Escribir a fichero Find &similar documents Buscar documentos &similares Preview P&arent document/folder &Vista previa de documento/directorio ascendente &Open Parent document/folder &Abrir documento/directorio ascendente ResultPopup &Preview &Previsualización &Open &Abrir Copy &File Name Copiar nombre de &archivo Copy &URL Copiar &URL &Write to File &Escribir a archivo Save selection to files Guardar selección a archivos Preview P&arent document/folder &Vista previa de documento o directorio ascendente &Open Parent document/folder &Abrir documento/directorio ascendente Find &similar documents Buscar documentos &similares Open &Snippets window Abrir ventana de &fragmentos Show subdocuments / attachments Mostrar subdocumentos / adjuntos SSearch Any term Cualquier término All terms Todos los términos File name Nombre de archivo Query language Lenguaje de consulta Bad query string Consulta inválida Out of memory No hay memoria Too many completions Demasiadas finalizaciones Completions Finalizaciones Select an item: Seleccione un ítem: Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> No actual parentheses allowed.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. Ingrese expresión de lenguaje de consulta. Hoja de trucos:<br> <i>term1 term2</i> : 'term1' y 'term2' en cualquier campo.<br> <i>campo:term1</i> : 'term1' en campo 'campo'. <br> Nombres de campos estándar/sinónimos:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-campos: dir, mime/format, type/rclcat, date.<br> Dos ejemplos de intervalo de fechas: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> Los paréntesis no están permitidos en realidad.<br> <i>"term1 term2"</i> : frase (debe aparecer exactamente). Modificadores posibles:<br> <i>"term1 term2"p</i> : busca de proximidad sin orden con distancia estándar.<br> Use el enlace <b>Mostrar Consulta</b> en caso de duda sobre el resultado y vea el manual (&lt;F1>) para más detalles. Enter file name wildcard expression. Ingrese expresión de comodín para nombre de archivo. Enter search terms here. Type ESC SPC for completions of current term. Ingrese términos de búsqueda aquí. Presione ESC ESPACIO para completar el término actual. Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. SSearchBase SSearchBase SSearchBase Clear Limpiar Ctrl+S Ctrl+S Erase search entry Borrar entrada de búsqueda Search Búsqueda Start query Iniciar consulta Enter search terms here. Type ESC SPC for completions of current term. Ingrese términos de búsqueda aquí. Presione ESC ESP para completar el término actual. Choose search type. Elija tipo de búsqueda. SearchClauseW Any of these Cualquiera All of these Todas None of these Ninguna This phrase Frase Terms in proximity Términos en proximidad File name matching Nombre de fichero Select the type of query that will be performed with the words Elija el tipo de consulta que será realizada con las palabras Number of additional words that may be interspersed with the chosen ones Número de palabras adicionales que pueden ser intercaladas con las escogidas No field Ningún campo Any Cualquiera All Todo None Ninguno Phrase Frase Proximity Proximidad File name Nombre de archivo Snippets Snippets Fragmentos about:blank about:blank Find: Buscar: Next Siguiente Prev Anterior SnippetsW Search Buscar <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p> SpellBase Term Explorer Explorador de términos &Expand &Expandir Alt+E Alt+E &Close &Cerrar Alt+C Alt+C No db info. No hay información de bd. Match Lenguaje Case Distinción de mayúsculas Accents Acentos SpellW Wildcards Comodines Regexp Expresión regular Stem expansion Expansión de raíces Spelling/Phonetic Ortografía/fonética error retrieving stemming languages error al recuperar lenguajes para raíces Aspell init failed. Aspell not installed? Inicialización de Aspell falló. Está instalado Aspell? Aspell expansion error. Error de expansión de Aspell. No expansion found Expansión no encontrada Term Término Doc. / Tot. Doc./Tot. Index: %1 documents, average length %2 terms Índice: %1 documentos, largo promedio %2 términos Index: %1 documents, average length %2 terms.%3 results Índice: %1 documentos, largo promedio %2 términos. %3 resultados %1 results %1 resultados List was truncated alphabetically, some frequent La lista fue separada alfabéticamente, algunos términos terms may be missing. Try using a longer root. frecuentes pueden no aparecer. Intente usar una raíz más larga. Show index statistics Mostrar estadísticas del índice Number of documents Número de documentos Average terms per document Términos promedio por documento Smallest document length Tamaño del documento más pequeño Longest document length Tamaño del documento más grande Database directory size Tamaño del directorio de la base de datos MIME types: Tipos MIME: Item Elemento Value Valor UIPrefsDialog error retrieving stemming languages error al recuperar lenguajes para raíces The selected directory does not appear to be a Xapian index El directorio seleccionado no parece ser un índice Xapian This is the main/local index! Este es el índice local o principal! The selected directory is already in the index list El directorio seleccionado ya está en la lista de índices Select xapian index directory (ie: /home/buddy/.recoll/xapiandb) Seleccione el directorio para el índice Xapian (ej: /home/buddy/.recoll/xapiandb) Choose Elegir Result list paragraph format (erase all to reset to default) Formato de párrafo para la lista de resultados (borre todo para volver al valor por defecto) Result list header (default is empty) Encabezado de la lista de resultados (valor por defecto es vacío) Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) Seleccionar el directorio de configuración de recoll o el directorio para el índice xapian (ej: /home/me/.recoll o /home/me/.recoll/xapiandb) The selected directory looks like a Recoll configuration directory but the configuration could not be read El directorio seleccionado parecer ser un directorio de configuración de Recoll pero la configuración no puede ser leída At most one index should be selected Al menos un índice debe ser seleccionado Cant add index with different case/diacritics stripping option No se puede agregar un índice con diferente opción para remover mayúsculas/minúsculas/diacríticos Default QtWebkit font ViewAction Changing actions with different current values Cambiando acciones con valores actuales diferentes Mime type Tipo MIME Command Comando MIME type Tipo MIME Desktop Default Valor predeterminado del ambiente de escritorio Changing entries with different current values Cambiando entradas con diferentes valores actuales ViewActionBase Native Viewers Visualizadores Nativos Select one or several file types, then click Change Action to modify the program used to open them Seleccione uno o varios tipos de fichero, luego presione Cambiar Acción para modificar el programa usado para abrirlos Change Action Cambiar Acción Close Cerrar Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults. Seleccione uno o varios tipos MIME y presione "Cambiar Acción"<br>Puede también cerrar esta ventana y marcar "Usar preferencias del escritorio"<br>en el panel principal para ignorar esta lista y usar los valores estándar de su escritorio. Select one or several mime types then use the controls in the bottom frame to change how they are processed. Seleccione uno o más tipos mime, y use los controles en la caja abajo para cambiar cómo se procesan. Use Desktop preferences by default Usar preferencias del escritorio como estándar Select one or several file types, then use the controls in the frame below to change how they are processed Seleccione uno o más tipos de archivos, y use los controles en la caja abajo para cambiar cómo se procesan Exception to Desktop preferences Excepción de las preferencias del escritorio Action (empty -> recoll default) Acción (vacío -> valor por defecto de recoll) Apply to current selection Aplicar a la selección actual Recoll action: Acción current value valor Select same Seleccionar misma <b>New Values:</b> <b>Nuevos valores</b> confgui::ConfBeaglePanelW Steal Beagle indexing queue Robar cola de indexado de Beagle Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin) Beagle NO DEBE estar ejecutándose. Habilita procesar la cola para indexar el historial web de Firefox de Beagle.<br>(debe también instalar el plugin Beagle para Firefox) Entries will be recycled once the size is reached Las entradas serán recicladas una vez que el tamaño es alcanzado Web page store directory name Nombre del directorio del almacén para páginas web The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory. El nombre del directorio dónde almacenar las copias de páginas web visitadas.<br>Una ruta de directorio no absoluta es utilizada, relativa al directorio de configuración. Max. size for the web store (MB) Tamaño máximo para el almacén web (MB) Process the WEB history queue Procesar la cola del historial WEB Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin) Habilita la indexación de páginas visitadas en Firefox.<br>(necesita también el plugin Recoll para Firefox) confgui::ConfIndexW Can't write configuration file No se puede escribir archivo de configuración confgui::ConfParamFNW Choose Elegir confgui::ConfParamSLW + + - - confgui::ConfSearchPanelW Automatic diacritics sensitivity Sensibilidad automática de diacríticos <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity. <p>Habilitar automáticamente la sensibilidad de diacríticos si el término de búsqueda tiene caracteres acentuados (no presentes en unac_except_trans). De otra forma necesita usar el lenguage de búsqueda y el modificador <i>D</i> para especificar la sensibilidad de los diacríticos. Automatic character case sensitivity Sensibilidad automática a la distinción de mayúsculas/minúsculas de los caracteres <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity. <p>Habilitar automáticamente la sensibilidad a las mayúsculas/minúsculas si la entrada tiene caracteres en mayúscula en una posición distinta al primer caracter. De otra forma necesita usar el lenguaje de búsqueda y el modificador <i>C</i> para especificar la sensibilidad a las mayúsculas y minúsculas. Maximum term expansion count Máximo conteo de expansión de términos <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. <p>Máxima expansión de conteo para un solo término (ej: cuando se usan comodines). El valor por defecto de 10000 es razonable y evitará consultas que parecen congelarse mientras el motor de búsqueda recorre la lista de términos. Maximum Xapian clauses count Máximo conteo de cláusulas de Xapian <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. <p>Número máximo de cláusulas elementales agregadas a una consulta de Xapian. En algunos casos, el resultado de la expansión de términos puede ser multiplicativo, y deseamos evitar el uso excesivo de memoria. El valor por defecto de 100000 debería ser lo suficientemente alto en la mayoría de los casos, y compatible con las configuraciones de hardware típicas en la actualidad. confgui::ConfSubPanelW Global Global Max. compressed file size (KB) Tamaño máximo de archivo comprimido (KB) This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever. Este valor establece un umbral mas allá del cual los archivos<br>comprimidos no serán procesados. Escriba 1 para no tener límite,<br>o el número 0 para nunca hacer descompresión. Max. text file size (MB) Tamaño máximo para archivo de texto (MB) This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index. Este valor establece un umbral más allá del cual los archivos de texto no serán procesados.<br>Escriba 1 para no tener límites. Este valor es utilizado para excluir archivos de registro gigantescos del índice. Text file page size (KB) Tamaño de página para archivo de texto (KB) If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files). Si se utiliza este valor (diferente de -1), los archivos de texto serán separados en partes de este tamaño para ser indexados. Esto ayuda con las búsquedas de archivos de texto muy grandes (ej: archivos de registro). Max. filter exec. time (S) Tiempo máximo de ejecución de filtros (S) External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit. Filtros externos que se ejecuten por más tiempo del establecido serán abortados.<br>Esto ocurre en los raros casos (ej: postscript) cuando un documento hace que un filtro entre en un ciclo.<br>Establezca un valor de -1 para no tener límite. External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. Filtros externos que se ejecuten por más tiempo del establecido serán detenidos. Esto es por el caso inusual (ej: postscript) dónde un documento puede causar que un filtro entre en un ciclo infinito. Establezca el número -1 para indicar que no hay límite. Only mime types An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive Exclude mime types Mime types not to be indexed confgui::ConfTopPanelW Top directories Directorios primarios The list of directories where recursive indexing starts. Default: your home. La lista de directorios donde la indexación recursiva comienza. Valor por defecto: su directorio personal. Skipped paths Directorios omitidos These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*') Estos son los nombres de directorios los cuales no se indexan.<br>Puede contener comodines. Debe corresponder a las rutas vistas por el indexador (ej: si los directorios primarios incluyen '/home/me' y '/home' es en realidad un enlace a '/usr/home', la entrada correcta para directorios omitidos sería '/home/me/tmp*', no '/usr/home/me/tmp*') Stemming languages Lenguajes para raíces The languages for which stemming expansion<br>dictionaries will be built. Los lenguajes para los cuales los diccionarios de expansión de raíces serán creados. Log file name Nombre de archivo de registro The file where the messages will be written.<br>Use 'stderr' for terminal output El archivo donde los mensajes serán escritos.<br>Use 'stderr' para salida a la terminal Log verbosity level Nivel de verbosidad del registro This value adjusts the amount of messages,<br>from only errors to a lot of debugging data. Este valor ajusta la cantidad de mensajes,<br>desde solamente errores hasta montones de información de depuración. Index flush megabytes interval Intervalo en megabytes de escritura del índice This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB Este valor ajusta la cantidad de datos indexados entre escrituras al disco.<br> Esto ayuda a controlar el uso de memoria del indexador. Valor estándar 10MB Max disk occupation (%) Utilización máxima de disco (%) This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default). Este es el porcentaje de utilización de disco donde la indexación fallará y se detendrá (para evitar llenarle el disco).<br>0 significa sin límites (valor por defecto). No aspell usage No utilizar aspell Aspell language Lenguaje Aspell The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. El lenguaje para el diccionario aspell. Esto debe ser algo como 'en' o 'fr'...<br>Si este valor no se especifica, el ambiente NLS será usado para averiguarlo, lo cual usualmente funciona. Para tener una idea de qué esta instalado en su sistema escriba 'aspell-config' y busque por ficheros .dat dentro del directorio 'data-dir'. Database directory name Nombre del directorio de base de datos The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. Nombre del directorio donde almacenar el índice.<br>Un valor no absoluto para la ruta de directorio es usado, relativo al directorio de configuración. El valor estándar es 'xapiandb'. Use system's 'file' command Utilizar el comando 'file' del sistema Use the system's 'file' command if internal<br>mime type identification fails. Utilizar el comando 'file' del sistema si la identificación interna de tipos MIME falla. Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. Deshabilita el uso de aspell para generar aproximaciones ortográficas en la herramienta explorador de términos.<br>Útil si aspell no se encuentra o no funciona. The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. El lenguaje para el diccionario aspell. Esto debería ser algo como 'en' o 'fr' ...<br>Si no se establece este valor, el ambiente NLS será utilizado para calcularlo, lo cual usualmente funciona. Para tener una idea de lo que está instalado en sus sistema, escriba 'aspell-config' y busque archivos .dat dentro del directorio 'data-dir'. The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. El nombre de un directorio donde almacenar el índice.<br>Una ruta no absoluta se interpreta como relativa al directorio de configuración. El valor por defecto es 'xapiandb'. Unac exceptions Excepciones Unac <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation. <p>Estas son excepciones al mecanismo unac, el cual, de forma predeterminada, elimina todos los diacríticos, y realiza una descomposición canónica. Es posible prevenir la eliminación de acentos para algunos caracteres, dependiendo de su lenguaje, y especificar descomposiciones adicionales, por ejemplo, para ligaturas. En cada entrada separada por espacios, el primer caracter es el origen, y el resto es la traducción. uiPrefsDialogBase User preferences Preferencias de usuario User interface Interfaz de usuario Number of entries in a result page Número de elementos en la página de resultados If checked, results with the same content under different names will only be shown once. Si está marcado, los resultados con el mismo contenido bajo nombres diferentes serán mostrados solo una vez. Hide duplicate results. Esconder resultados duplicados. Highlight color for query terms Color de resaltado para términos de búsqueda Result list font Tipo de letra para lista de resultados Opens a dialog to select the result list font Abre una ventana para seleccionar el tipo de letra para la lista de resultados Helvetica-10 Helvetica-10 Resets the result list font to the system default Restaurar el tipo de letra de la lista de resultados al valor por defecto del sistema Reset Restaurar Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br> Define el formato para cada párrafo de resultados. Utilice formato qt-html y reemplazos estilo printf:<br>%A Resumen<br> %D Fecha<br> %I Nombre del ícono<br> %K Palabras clave (si existen)<br> %L Enlaces de vista previa y edición<br> %M Tipo MIME<br> %Número de resultado<br> %R Porcentaje de relevancia<br> %S Información de tamaño<br> %T Título<br> %U Url<br> Result paragraph<br>format string Texto de formato para<br>párrafo de resultados Texts over this size will not be highlighted in preview (too slow). Textos más allá de este tamaño no serán resaltados (muy lento). Maximum text size highlighted for preview (megabytes) Tamaño máximo de texto resaltado para vista previa (megabytes) Use desktop preferences to choose document editor. Usar preferencias del escritorio para seleccionar editor de documentos. Choose editor applications Escoger aplicaciones para edición Display category filter as toolbar instead of button panel (needs restart). Mostrar filtros de categorías como barra de herramientas en lugar de panel de botones (necesita reinicio). Auto-start simple search on whitespace entry. Auto iniciar búsqueda simple al entrar espacios en blanco. Start with advanced search dialog open. Iniciar con la ventana de búsqueda avanzada abierta. Remember sort activation state. Recordar estado de activación de ordenamiento. Prefer Html to plain text for preview. Preferir HTML a texto simple para vista previa. Search parameters Parámetros de búsqueda Stemming language Lenguaje de raíces A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. Una búsqueda por [rolling stones] (2 términos) será cambiada por [rolling or stones or (rolling phrase 2 stones)]. Esto dará mayor precedencia a los resultados en los cuales los términos de búsqueda aparecen exactamente como fueron escritos. Automatically add phrase to simple searches Automáticamente añadir frases a búsquedas simples Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. ¿Intentar construir resúmenes para elementos en la lista de resultados utilizando el contexto de los términos de búsqueda? Puede ser lento para documentos grandes. Dynamically build abstracts Construir resúmenes dinámicamente Do we synthetize an abstract even if the document seemed to have one? ¿Sintetizar un resumen aunque el documento parece tener uno? Replace abstracts from documents Reemplazar resúmenes de los documentos Synthetic abstract size (characters) Tamaño del resumen sintetizado (caracteres) Synthetic abstract context words Palabras de contexto del resumen sintetizado The words in the list will be automatically turned to ext:xxx clauses in the query language entry. Las palabras en la lista serán convertidas automáticamente a cláusulas ext:xxx en el ingreso de lenguaje de consulta. Query language magic file name suffixes. Sufijos para nombres mágicos de archivos en el lenguaje de consulta. Enable Habilitar External Indexes Índices Externos Toggle selected Cambiar selección Activate All Activar Todos Deactivate All Desactivar Todos Remove from list. This has no effect on the disk index. Eliminar de la lista. Esto no tiene efecto en el índice en disco. Remove selected Eliminar selección Click to add another index directory to the list Presione para añadir otro directorio de índice a la lista Add index Añadir índice Apply changes Aplicar cambios &OK &OK Discard changes Descartar cambios &Cancel &Cancelar Abstract snippet separator Separador de fragmentos de resumen Use <PRE> tags instead of <BR>to display plain text as html. Utilizar etiquetas <PRE> en lugar de <BR> para mostrar texto simple como html. Lines in PRE text are not folded. Using BR loses indentation. Líneas en texto PRE no se parten. Al usar BR se pierde indentación. Style sheet Hoja de estilo Opens a dialog to select the style sheet file Abre una ventana de diálogo para seleccionar la hoja de estilos Choose Elegir Resets the style sheet to default Restablecer la hoja de estilo al valor por defecto Lines in PRE text are not folded. Using BR loses some indentation. Líneas en texto PRE no se parten. Al usar BR se pierde indentación. Use <PRE> tags instead of <BR>to display plain text as html in preview. Use etiquetas <PRE> en lugar de <BR> para desplegar texto corriente como html en la vista previa. Result List Lista de resultados Edit result paragraph format string Editar texto de formato para el párrafo de resultados Edit result page html header insert Editar encabezado html insertado en página de resultados Date format (strftime(3)) Formato de fecha (strftime(3)) Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). Umbral de porcentaje de frecuencia sobre el cuál no utilizamos términos dentro de la autofrase. Los términos frequentes son un problema importante de desempeño con las frases. Términos omitidos aumenta la holgura de la frase, y reducen la eficiencia de la autofrase. El valor por defecto es 2 (por ciento). Autophrase term frequency threshold percentage Porcentaje del umbral de frecuencia de términos de autofrase Plain text to HTML line style Texto común a estilo de línea HTML Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. Las líneas en texto PRE no son dobladas. Al usar BR se pierde indentación. El estilo PRE + Wrap probablemente es lo que está buscando. <BR> <BR> <PRE> <PRE> <PRE> + wrap <PRE> + wrap Disable Qt autocompletion in search entry. Deshabilitar autocompletar de Qt en la entrada de búsqueda. Search as you type. Buscar al escribir. Paths translations Rutas de traducciones Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. Haga clic para agregar otro directorio de índice a la lista. Puede seleccionar un directorio de configuración de Recoll o un índice Xapian. Snippets window CSS file Archivo CSS para la ventana de fragmentos Opens a dialog to select the Snippets window CSS style sheet file Abre una ventana de diálogo para el archivo de estilos CSS de la ventana de fragmentos Resets the Snippets window style Establece el valor por defecto para el estilo de la ventana de Fragmentos Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Document filter choice style: Buttons Panel Toolbar Combobox Menu Show system tray icon. Close to tray instead of exiting. recoll-1.21.5/qtgui/i18n/recoll_zh_CN.ts0000644000175000017500000041642312602163537017222 0ustar dockesdockes AdvSearch All clauses 全部条件 Any clause 任意条件 texts 文本 spreadsheets 电子表格 presentations 演示文稿 media 多媒体文件 messages 邮件 other 其它 Bad multiplier suffix in size filter 文件尺寸过滤器的后缀单位不正确 text 文本 spreadsheet 电子表格 presentation 演示文档 message 邮件 AdvSearchBase Advanced search 高端搜索 Search for <br>documents<br>satisfying: 搜索<br>满足以下条件<br>的文档: Delete clause 删除条件 Add clause 添加条件 Restrict file types 限定文件类型 Check this to enable filtering on file types 选中这个,以便针对文件类型进行过滤 By categories 按大类来过滤 Check this to use file categories instead of raw mime types 选中这个,以便使用较大的分类,而不使用具体的文件类型 Save as default 保存为默认值 Searched file types 将被搜索的文件类型 All ----> 移动全部→ Sel -----> 移动选中项→ <----- Sel ←移动选中项 <----- All ←移动全部 Ignored file types 要忽略的文件类型 Enter top directory for search 输入要搜索的最上层目录 Browse 浏览 Restrict results to files in subtree: 将结果中的文件限定在此子目录树中: Start Search 开始搜索 Close 关闭 All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored. 右边的所有非空字段都会按照逻辑与(“全部条件”选项)或逻辑或(“任意条件”选项)来组合。<br>“任意”“全部”和“无”三种字段类型都接受输入简单词语和双引号引用的词组的组合。<br>空的输入框会被忽略。 Invert 反转过滤条件 Minimum size. You can use k/K,m/M,g/G as multipliers 最小尺寸。你可使用k/K、m/M、g/G作为单位 Min. Size 最小尺寸 Maximum size. You can use k/K,m/M,g/G as multipliers 最大尺寸。你可使用k/K、m/M、g/G作为单位 Max. Size 最大尺寸 Filter 过滤 From To Check this to enable filtering on dates 选中这个,以便针对日期进行过滤 Filter dates 过滤日期 Find 查找 Check this to enable filtering on sizes 选中这个,以便针对文件尺寸进行过滤 Filter sizes 过滤尺寸 CronToolW Cron Dialog 计划任务对话框 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T19:47:37" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T19:56:53" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } .T3 { font-style:italic; } .T4 { font-family:Courier New,courier; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> 批量索引计划任务(cron) </p><p class="P1">每个字段都可以包括一个通配符(*)、单个数字值、逗号分隔的列表(1,3,5)和范围(1-7)。更准确地说,这些字段会被<span class="T3">按原样</span>输出到crontab 文件中,因此这里可以使用crontab 的所有语法,参考crontab(5)。</p><p class="P1"><br/>例如,在<span class="T3">日期</span>中输入<span class="T4">*</span>,<span class="T3">小时</span>中输入<span class="T4">12,19</span>,<span class="T3">分钟</span>中输入<span class="T4">15 </span>的话,会在每天的12:15 AM 和7:15 PM启动recollindex。</p><p class="P1">一个频繁执行的计划任务,其性能可能比不上实时索引。</p></body></html> Days of week (* or 0-7, 0 or 7 is Sunday) 星期日(*或0-7,0或7是指星期天) Hours (* or 0-23) 小时(*或0-23) Minutes (0-59) 分钟(0-59) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:08:00" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:11:47" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T2 { font-style:italic; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1">点击<span class="T2">禁用</span>以停止进行自动化的批量索引,点击<span class="T2">启用</span>以启用此功能,点击<span class="T2">取消</span>则不改变任何东西。</p></body></html> Enable 启用 Disable 禁用 It seems that manually edited entries exist for recollindex, cannot edit crontab 看起来已经有手动编辑过的recollindex条目了,因此无法编辑crontab Error installing cron entry. Bad syntax in fields ? 插入cron条目时出错。请检查语法。 EditDialog Dialog 对话框 EditTrans Source path 源路径 Local path 本地路径 Config error 配置错误 Original path 原始路径 EditTransBase Path Translations 路径变换 Setting path translations for 针对右侧事务设置路径变换 Select one or several file types, then use the controls in the frame below to change how they are processed 选中一个或多个文件类型,然后使用下面框框中的控件来设置要如何处理它们 Add 添加 Delete 删除 Cancel 取消 Save 保存 FirstIdxDialog First indexing setup 第一次索引设置 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:14:44" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:23:13" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T2 { font-weight:bold; } .T4 { font-style:italic; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T2">未找到对应于此配置实例的索引数据。</span><br/><br/>如果你只想以一组合理的默认参数来索引你的家目录的话,就直接按<span class="T4">立即开始索引</span>按钮。以后还可以调整配置参数的。</p><p class="P1">如果你想调整某些东西的话,就使用下面的链接来调整其中的索引配置和定时计划吧。</p><p class="P1">这些工具可在以后通过<span class="T4">选项</span>菜单访问。</p></body></html> Indexing configuration 索引配置 This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc. 在这里可以调整你想要对其进行索引的目录,以及其它参数,例如:要排除和路径或名字、默认字符集…… Indexing schedule 定时索引任务 This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron). 在这里可以选择是要进行批量索引还是实时索引,还可以设置一个自动化的定时(使用cron)批量索引任务。 Start indexing now 立即开始索引 FragButs %1 not found. %1: %2 Query Fragments IdxSchedW Index scheduling setup 定时索引设置 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:27:11" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:30:49" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> 索引程序可持续运行并且在文件发生变化时对其进行索引,也可以间隔一定时间运行一次。</p><p class="P1">你可以读一下手册,以便更好地做出抉择(按F1)。</p><p class="P1">这个工具可帮助你设置一个自动进行批量索引的定时任务,或者设置成当你登录时便启动实时索引(或者两者同时进行,当然那几乎没有意义)。</p></body></html> Cron scheduling 定时任务 The tool will let you decide at what time indexing should run and will install a crontab entry. 这个工具帮助你确定一个让索引运行的时间,它会插入一个crontab条目。 Real time indexing start up 实时索引设置 Decide if real time indexing will be started when you log in (only for the default index). 作出决定,是否要在登录时便启动实时索引(只对默认索引有效)。 ListDialog Dialog 对话框 GroupBox 分组框 Main No db directory in configuration 配置实例中没有数据库目录 "history" file is damaged or un(read)writeable, please check or remove it: "history"文件被损坏,或者不可(读)写,请检查一下或者删除它: Preview Close Tab 关闭标签页 Cancel 取消 Missing helper program: 缺少辅助程序: Can't turn doc into internal representation for 无法为此文件将文档转换成内部表示方式: Creating preview text 正在创建预览文本 Loading preview text into editor 正在将预览文本载入到编辑器中 &Search for: 搜索(&S): &Next 下一个(&N) &Previous 上一个(&P) Clear 清空 Match &Case 匹配大小写(&C) Cannot create temporary directory: 无法创建临时目录: Error while loading file 文件载入出错 PreviewTextEdit Show fields 显示字段 Show main text 显示主文本 Print 打印 Print Current Preview 打印当前预览文本 Show image 显示图片 Select All 全选 Copy 复制 Save document to file 将文档保存到文件 Fold lines 自动换行 Preserve indentation 保留缩进符 QObject Global parameters 全局参数 Local parameters 局部参数 <b>Customised subtrees <b>自定义的子目录树 The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty. 这是已索引的目录树中的一些子目录组成的列表<br>,它们的某些参数需要重定义。默认:空白。 <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons. <i>以下的参数,当你在上面的列表中不选中任何条目或者选中一个空行时,<br>就是针对顶级目录起作用的,否则便是对选中的子目录起作用的。<br>你可以点击+/-按钮,以便添加或删除目录。 Skipped names 要略过的文件名 These are patterns for file or directory names which should not be indexed. 具有这些模式的文件或目录不会被索引。 Default character set 默认字符集 This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. 这是用来读取那些未标明自身的字符集的文件时所使用的字符集,例如纯文本文件。<br>默认值是空,会使用系统里的自然语言环境参数中的值。 Follow symbolic links 跟踪符号链接 Follow symbolic links while indexing. The default is no, to avoid duplicate indexing 在索引时跟踪符号链接。默认是不跟踪的,以避免重复索引 Index all file names 对所有文件名进行索引 Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true 对那些无法判断或处理其内容(未知类型或其类型不被支持)的文件的名字进行索引。默认为是 Beagle web history Beagle网页历史 Search parameters 搜索参数 Web history 网页历史 Default<br>character set Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used. Ignored endings These are file name endings for files which will be indexed by name only (no MIME type identification attempt, no decompression, no content indexing). QWidget Create or choose save directory Choose exactly one directory Could not read directory: Unexpected file name collision, cancelling. Cannot extract document: &Preview 预览(&P) &Open 打开(&O) Open With Run Script Copy &File Name 复制文件名(&F) Copy &URL 复制路径(&U) &Write to File 写入文件(&W) Save selection to files 将选中内容保存到文件中 Preview P&arent document/folder 预览上一级文档/目录(&a) &Open Parent document/folder 打开上一级文档/目录(&O) Find &similar documents 查找类似的文档(&s) Open &Snippets window 打开片断窗口(&S) Show subdocuments / attachments 显示子文档/附件 RTIToolW Real time indexing automatic start 实时索引自动启动 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T21:00:38" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T21:02:43" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> 索引程序可以以守护进程的方式运行,在文件发生变化时便实时更新索引。这样你的索引一直是与文件同步的,但是会占用一定的系统资源。</p></body></html> Start indexing daemon with my desktop session. 在我的桌面会话启动时便启动索引进程。 Also start indexing daemon right now. 同时此次也立即启动索引进程。 Replacing: 正在替换: Replacing file 正在替换文件 Can't create: 无法创建: Warning 警告 Could not execute recollindex 无法执行recollindex Deleting: 正在删除: Deleting file 正在删除文件 Removing autostart 正在删除自动启动项 Autostart file deleted. Kill current process too ? 自动启动文件已经删除。也要杀死当前进程吗? RclMain (no stemming) (不进行词根计算) (all languages) (对全部语言进行词根计算) error retrieving stemming languages 提取词根语言时出错 Indexing in progress: 正在索引: Purge 删除 Stemdb Stem数据库 Closing 正在关闭 Unknown 未知 Query results 查询结果 Cannot retrieve document info from database 无法从数据库获取文档信息 Warning 警告 Can't create preview window 无法创建预览窗口 This search is not active any more 这个查询已经不是活跃的了 Bad viewer command line for %1: [%2] Please check the mimeconf file 针对%1的查看命令[%2]配置出错 请检查mimeconf文件 Cannot extract document or create temporary file 无法提取文档或创建临时文件 Executing: [ 正在执行:[ About Recoll Recoll说明 History data 历史数据 Document history 文档历史 Update &Index 更新索引(&I) Stop &Indexing 停止索引(&I) All 全部 media 多媒体文件 message 邮件 other 其它 presentation 演示文档 spreadsheet 电子表格 text 文本文件 sorted 已排序 filtered 已过滤 External applications/commands needed and not found for indexing your file types: 需要用来辅助对你的文件进行索引,却又找不到的外部程序/命令: No helpers found missing 目前不缺少任何辅助程序 Missing helper programs 未找到的辅助程序 Document category filter 文档分类过滤器 No external viewer configured for mime type [ 针对此种文件类型没有配置外部查看器[ The viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ? 没有找到mimeview中为%1: %2配置的查看器。 是否要打开选项对话框? Can't access file: 无法访问文件: Can't uncompress file: 无法解压缩此文件: Save file 保存文件 Result count (est.) 结果数(估计值) Query details 查询语句细节 Could not open external index. Db not open. Check external indexes list. 无法打开外部索引。数据库未打开。请检查外部索引列表。 No results found 未找到结果 None Updating 正在更新 Done 已完成 Monitor 监视器 Indexing failed 索引失败 The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone 当前索引进程不是由此界面启动的。点击确定以杀死它,或者点击取消以让它自由运行 Erasing index 正在删除索引 Reset the index and start from scratch ? 从头重新开始索引吗? Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program 查询正在进行中。<br>由于索引库的某些限制,<br>取消的话会导致程序退出 Error 错误 Index not open 索引未打开 Index query error 索引查询出错 Content has been indexed for these mime types: 已经为这些文件类型索引其内容: Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. 此文件的索引已过时。程序拒绝显示错误的条目。请点击确定以更新此文件的索引,等待索引完成之后再查询。或者,取消。 Can't update index: indexer running 无法更新索引:索引程序已在运行 Indexed MIME Types 已索引的文件类型 Bad viewer command line for %1: [%2] Please check the mimeview file 针对%1的查看程序命令不对:%2 请检查mimeview文件 Viewer command line for %1 specifies both file and parent file value: unsupported 针对%1的查看程序命令中同时指定了文件及亲代文件值:这是不支持的 Cannot find parent document 无法找到亲代文档 Indexing did not run yet 还未开始索引 External applications/commands needed for your file types and not found, as stored by the last indexing pass in 在上次的索引过程中发现,针对妳的文件类型,还缺少一些外部的程序/命令,它们储存在右侧文件中 Index not up to date for this file. Refusing to risk showing the wrong entry. 此文件的索引内容不是最新的。如果妳按拒绝,则需要自行承担显示错误条目的风险。 Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel. 点击确定来更新此文件的索引,在索引完成之后重新执行此查询。否则,请按取消。 Indexer running so things should improve when it's done 索引器正在运行,所以,当它完毕之后世界将变得更美好 Sub-documents and attachments 子文档及附件 Document filter Indexing interrupted Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. The indexer is running so things should improve when it's done. The document belongs to an external indexwhich I can't update. Click Cancel to return to the list. Click Ignore to show the preview anyway. Duplicate documents 重复文档 These Urls ( | ipath) share the same content: 以下路径(|内部路径)之间共享着相同的内容: Bad desktop app spec for %1: [%2] Please check the desktop file RclMainBase Recoll Recoll Search tools 搜索工具 Result list 结果列表 &File 文件(&F) &Tools 工具(&T) &Preferences 选项(&P) &Help 帮助(&H) E&xit 退出(&x) Ctrl+Q Ctrl+Q Update &index 更新索引(&i) &Erase document history 删除文档历史(&E) &About Recoll Recoll说明(&A) &User manual 用户手册(&U) Document &History 文档历史(&H) Document History 文档历史 &Advanced Search 高端搜索(&A) Advanced/complex Search 高端/复杂搜索 &Sort parameters 排序参数(&S) Sort parameters 排序参数 Term &explorer 词语探索器(&e) Term explorer tool 词语探索器 Next page 下一页 Next page of results 下一页结果 First page 第一页 Go to first page of results 跳转到结果的第一页 Previous page 上一页 Previous page of results 上一页结果 &Query configuration 查询配置(&Q) External index dialog 外部索引对话框 &Indexing configuration 索引配置(&I) All 全部 &Show missing helpers 显示缺少的辅助程序列表(&S) PgDown 向下翻页 PgUp 向上翻页 &Full Screen 全屏(&F) F11 F11 Full Screen 全屏 &Erase search history 删除搜索历史(&E) sortByDateAsc 按日期升序排列 Sort by dates from oldest to newest 按日期排列,最旧的在前面 sortByDateDesc 按日期降序排列 Sort by dates from newest to oldest 按日期排列,最新的在前面 Show Query Details 显示查询语句细节 Show results as table 以表格的形式显示结果 &Rebuild index 重新构造索引(&R) &Show indexed types 显示已索引的文件类型(&S) Shift+PgUp Shift+向上翻页 &Indexing schedule 定时索引(&I) E&xternal index dialog 外部索引对话框(&x) &Index configuration 索引设置(&I) &GUI configuration 界面设置(&G) &Results 结果(&R) Sort by date, oldest first 按日期排序,旧文档在前 Sort by date, newest first 按日期排序,新文档在前 Show as table 以表格形式显示 Show results in a spreadsheet-like table 以一个类似于电子表格的形式来显示结果 Save as CSV (spreadsheet) file 保存为CSV(电子表格)文件 Saves the result into a file which you can load in a spreadsheet 将结果保存到一个可用电子表格打开的文件中 Next Page 下一页 Previous Page 上一页 First Page 第一页 Query Fragments With failed files retrying Next update will retry previously failed files RclTrayIcon Restore Quit RecollModel Abstract 摘要 Author 作者 Document size 文档尺寸 Document date 文档日期 File size 文件尺寸 File name 文件名 File date 文件日期 Keywords 关键词 Original character set 原字符集 Relevancy rating 相关度 Title 标题 URL 路径 Mtime 修改时间 Date 日期 Date and time 日期及时间 Ipath 内部路径 MIME type 文件类型 ResList Result list 结果列表 (show query) (显示查询语句细节) &Preview 预览(&P) Copy &File Name 复制文件名(&F) Copy &URL 复制路径(&U) Find &similar documents 查找类似的文档(&s) Document history 文档历史 <p><b>No results found</b><br> <p><b>未找到结果</b><br> Previous 上一个 Next 下一个 Unavailable document 无法访问文档 Preview 预览 Open 打开 <p><i>Alternate spellings (accents suppressed): </i> <p><i>其它拼写形式(忽视口音):</i> &Write to File 写入文件(&W) Preview P&arent document/folder 预览上一级文档/目录(&a) &Open Parent document/folder 打开上一级文档/目录(&O) &Open 打开(&O) Documents out of at least 个文档,最少共有 for 个文档,查询条件: <p><i>Alternate spellings: </i> <p><i>其它拼写形式:</i> Duplicate documents 重复文档 These Urls ( | ipath) share the same content: 以下路径(|内部路径)之间共享着相同的内容: Result count (est.) 结果数(估计值) Query details 查询语句细节 Snippets 片断 ResTable &Reset sort 重置排序条件(&R) &Delete column 删除此列(&D) Save table to CSV file 将表格保存成CSV文件 Can't open/create file: 无法打开/创建文件: &Preview 预览(&P) &Open 打开(&O) Copy &File Name 复制文件名(&F) Copy &URL 复制路径(&U) &Write to File 写入文件(&W) Find &similar documents 查找类似的文档(&s) Preview P&arent document/folder 预览上一级文档/目录(&a) &Open Parent document/folder 打开上一级文档/目录(&O) &Save as CSV 保存为CSV(&S) Add "%1" column 添加"%1"列 ResTableDetailArea &Preview 预览(&P) &Open 打开(&O) Copy &File Name 复制文件名(&F) Copy &URL 复制路径(&U) &Write to File 写入文件(&W) Find &similar documents 查找类似的文档(&s) Preview P&arent document/folder 预览上一级文档/目录(&a) &Open Parent document/folder 打开上一级文档/目录(&O) ResultPopup &Preview 预览(&P) &Open 打开(&O) Copy &File Name 复制文件名(&F) Copy &URL 复制路径(&U) &Write to File 写入文件(&W) Save selection to files 将选中内容保存到文件中 Preview P&arent document/folder 预览上一级文档/目录(&a) &Open Parent document/folder 打开上一级文档/目录(&O) Find &similar documents 查找类似的文档(&s) Open &Snippets window 打开片断窗口(&S) Show subdocuments / attachments 显示子文档/附件 SSearch Any term 任一词语 All terms 全部词语 File name 文件名 Query language 查询语言 Bad query string 查询语言格式不正确 Out of memory 内存不足 Too many completions 有太多与之相关的补全选项啦 Completions 补全选项 Select an item: 选择一个条目: Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> No actual parentheses allowed.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-23T08:43:25" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-23T09:07:39" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .Standard { font-size:12pt; font-family:Nimbus Roman No9 L; writing-mode:page; } .T1 { font-style:italic; } .T2 { font-style:italic; } .T4 { font-weight:bold; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="Standard">输入查询语言表达式。简要说明:<br/><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2</span> : '词语1'和'词语2'同时出现在任意字段中。<br/><span class="T2">字段</span><span class="T1">:</span><span class="T2">词语</span><span class="T1">1</span> : '词语1'出现在字段'字段'中。<br/>标准字段名/同义名:<br/>title/subject/caption、author/from、recipient/to、filename、ext。<br/>伪字段名:dir、mime/format、type/rclcat、date。<br/>日期段的两个示例:2009-03-01/2009-05-20 2009-03-01/P2M。<br/><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2 OR </span><span class="T2">词语</span><span class="T1">3</span> : 词语1 <span class="T4">与</span> (词语2 <span class="T4">或</span> 词语3)。<br/>不允许用真正的括号来表示逻辑关系。<br/><span class="T1">"</span><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2"</span> : 词组(必须按原样出现)。可用的修饰词:<br/><span class="T1">"</span><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2"p</span> : 以默认距离进行的无序近似搜索。<br/>有疑问时可使用<span class="T4">显示查询语句细节</span>链接来查看查询语句的细节,另外请查看手册(&lt;F1&gt;)以了解更多内容。</p></body></html> Enter file name wildcard expression. 输入文件名通配符表达式。 Enter search terms here. Type ESC SPC for completions of current term. 在此输入要搜索的词语。按Esc 空格来查看针对当前词语的补全选项。 Enter query language expression. Cheat sheet:<br> <i>term1 term2</i> : 'term1' and 'term2' in any field.<br> <i>field:term1</i> : 'term1' in field 'field'.<br> Standard field names/synonyms:<br> title/subject/caption, author/from, recipient/to, filename, ext.<br> Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br> Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br> You can use parentheses to make things clearer.<br> <i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br> <i>"term1 term2"p</i> : unordered proximity search with default distance.<br> Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail. SSearchBase SSearchBase SSearchBase Clear 清空 Ctrl+S Ctrl+S Erase search entry 删除搜索条目 Search 搜索 Start query 开始查询 Enter search terms here. Type ESC SPC for completions of current term. 在此输入要搜索的词语。按Esc 空格来查看针对当前词语的补全选项。 Choose search type. 选择搜索类型。 SearchClauseW Select the type of query that will be performed with the words 选择要对右边的词语进行的查询类型 Number of additional words that may be interspersed with the chosen ones 允许在选中的词语之间出现的额外词语的个数 No field 不限字段 Any 任意 All 全部 None Phrase 词组 Proximity 近似 File name 文件名 Snippets Snippets 片断 Find: 查找: Next 下一个 Prev 上一个 SnippetsW Search 搜索 <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p> SpellBase Term Explorer 词语探索器 &Expand 展开(&E) Alt+E Alt+E &Close 关闭(&C) Alt+C Alt+C No db info. 未找到数据库信息。 Match 匹配 Case 大小写 Accents 口音 SpellW Wildcards 通配符 Regexp 正则表达式 Stem expansion 词根扩展 Spelling/Phonetic 拼写/发音检查 error retrieving stemming languages 提取词根语言时出错 Aspell init failed. Aspell not installed? Aspell初始化失败。是否未安装Aspell? Aspell expansion error. Aspell扩展出错。 No expansion found 未找到扩展 Term 词语 Doc. / Tot. 文档数/总数 Index: %1 documents, average length %2 terms 索引:%1个文档,平均长度为%2个词语 Index: %1 documents, average length %2 terms.%3 results 索引:%1个文档,平均长度为%2个单词。%3个结果 %1 results %1个结果 List was truncated alphabetically, some frequent 列表已按字母顺序截断,某个常见 terms may be missing. Try using a longer root. 的单词可能会缺失。请尝试使用一个更长的词根。 Show index statistics 显示索引统计信息 Number of documents 文档个数 Average terms per document 每个文档中的平均单词个数 Smallest document length 最小文档长度 Longest document length 最大文档长度 Database directory size 数据库目录尺寸 MIME types: 多媒体文档类型列表: Item 条目 Value UIPrefsDialog error retrieving stemming languages 提取词根语言时出错 The selected directory does not appear to be a Xapian index 选中的目录不是Xapian索引 This is the main/local index! 这是主要/本地索引! The selected directory is already in the index list 选中的目录已经在索引列表中 Select xapian index directory (ie: /home/buddy/.recoll/xapiandb) 选择xapian索引目录(例如:/home/buddy/.recoll/xapiandb) Choose 选择 Result list paragraph format (erase all to reset to default) 结果列表的段落格式(删除全部内容即可重置为默认状态) Result list header (default is empty) 结果列表表头(默认为空) Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb) 选择recoll配置目录或xapian索引目录(例如:/home/me/.recoll 或 /home/me/.recoll/xapiandb) The selected directory looks like a Recoll configuration directory but the configuration could not be read 所选中的目录看起来像是一个Recoll配置目录,但是其中的配置内容无法读取 At most one index should be selected 最多应当选中一个索引 Cant add index with different case/diacritics stripping option 无法添加带有不同的大小写/诊断信息裁剪方式的索引 Default QtWebkit font ViewAction Changing actions with different current values 正在针对不同的当前值而改变动作 Command 命令 MIME type 文件类型 Desktop Default 桌面默认值 Changing entries with different current values 正在使用不同的当前值来修改条目 ViewActionBase Native Viewers 本地查看器 Select one or several file types, then click Change Action to modify the program used to open them 选中一个或多个文件类型,然后点击“修改动作”来修改用来打开这些文件的程序 Change Action 修改动作 Close 关闭 Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults. 选中一个或多个文件类型祟点击“修改动作”<br>或者可以关闭这个对话框,而在主面板中选中“使用桌面默认设置”<br>那样就会无视这个列表而使用桌面的默认设置。 Select one or several mime types then use the controls in the bottom frame to change how they are processed. 选中一个或多个文件类型,然后使用下面框框中的控件来设置要如何处理它们。 Use Desktop preferences by default 默认使用桌面本身的设置 Select one or several file types, then use the controls in the frame below to change how they are processed 选中一个或多个文件类型,然后使用下面框框中的控件来设置要如何处理它们 Exception to Desktop preferences 针对桌面默认值的例外 Action (empty -> recoll default) 动作(空白则表示使用recoll的默认值) Apply to current selection 应用到当前选中项上 Recoll action: Recoll动作: current value 当前值 Select same 选中相同的项 <b>New Values:</b> <b>新的值:</b> confgui::ConfBeaglePanelW Steal Beagle indexing queue 窃取Beagle索引队列 Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin) 不可运行Beagle。启用对beagle队列的处理,以索引火狐网页历史。<br>(你还需要安装火狐Beagle插件) Entries will be recycled once the size is reached 当尺寸达到设定值时,这些条目会被循环使用 Web page store directory name 网页储存目录名 The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory. 用来储存复制过来的已访问网页的目录名。<br>如果使用相对路径,则会相对于配置目录的路径进行处理。 Max. size for the web store (MB) 网页存储的最大尺寸(MB) Process the WEB history queue 处理网页历史队列 Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin) 启用对火狐的已访问页面进行索引。<br>(妳还需要安装火狐的Recoll插件) confgui::ConfIndexW Can't write configuration file 无法写入配置文件 confgui::ConfParamFNW Choose 选择 confgui::ConfParamSLW + + - - confgui::ConfSearchPanelW Automatic diacritics sensitivity 自动判断大小写 <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity. <p>如果搜索语句中包含带有口音特征(不在unac_except_trans中)的话,则自动触发大小写的判断。否则,妳需要使用查询语言和<i>D</i>修饰符来指定对大小写的判断。 Automatic character case sensitivity 自动调整字符的大小写敏感性 <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity. <p>如果搜索语句中除首字母之外包含有大写字母的话,则自动触发大小写的判断。否则,妳需要使用查询语言和<i>C</i>修饰符来指定对大小写的判断。 Maximum term expansion count 最大词根扩展数目 <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. <p>针对单个单词的最大词根扩展数目(例如:此选项在使用通配符时会生效)。默认的10000是一个狠合理的值,能够避免当引擎遍历词根列表时引起查询界面假死。 Maximum Xapian clauses count 最大的Xapian子句数目 <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. <p>我们向单个Xapian查询语句中加入的最大的子句数目。某些情况下,词根扩展的结果会是倍增的,而我们想要避免使用过多内存。默认的100000应当既能满足日常的大部分要求,又能与当前的典型硬件配置相兼容。 confgui::ConfSubPanelW Global 全局 Max. compressed file size (KB) 压缩文件最大尺寸(KB) This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever. 尺寸大于这个值的压缩文件不会被处理。设置成-1以表示不加任何限制,设置成0以表示根本不处理压缩文件。 Max. text file size (MB) 文本文件最大尺寸(MB) This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index. 尺寸大于这个值的文本文件不会被处理。设置成-1以表示不加限制。 其作用是从索引中排除巨型的记录文件。 Text file page size (KB) 文本文件单页尺寸(KB) If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files). 如果设置咯这个值(不等于-1),则文本文件会被分割成这么大的块,并且进行索引。 这是用来搜索大型文本文件的(例如记录文件)。 Max. filter exec. time (S) 过滤器的最长执行时间(S) External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit. 外部过滤器的执行时间如果超过这个值,则会被强行中断。在罕见的情况下,某些文档(例如postscript)会导致过滤器陷入死循环。设置成-1以表示不加限制。 External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. 工作时间长于这个值的外部过滤器会被中断。这是针对某种特殊情况的,该情况下,一个文档可能引起过滤器无限循环下去(例如:postscript)。设置为-1则表示不设限制。 Only mime types An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive Exclude mime types Mime types not to be indexed confgui::ConfTopPanelW Top directories 顶级目录 The list of directories where recursive indexing starts. Default: your home. 索引从这个列表中的目录开始,递归地进行。默认:你的家目录。 Skipped paths 略过的路径 These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*') 索引进程不会进入具有这些名字的目录。<br>可以包含通配符。必须匹配索引进程自身所见到的路径(例如:如果topdirs包含'/home/me',而实际上'/home'是到'/usr/home'的链接,则正确的skippedPath条目应当是'/home/me/tmp*',而不是'/usr/home/me/tmp*') Stemming languages 词根语言 The languages for which stemming expansion<br>dictionaries will be built. 将会针对这些语言<br>构造词根扩展词典。 Log file name 记录文件名 The file where the messages will be written.<br>Use 'stderr' for terminal output 程序输出的消息会被保存到这个文件。<br>使用'stderr'以表示将消息输出到终端 Log verbosity level 记录的话痨级别 This value adjusts the amount of messages,<br>from only errors to a lot of debugging data. 这个值调整的是输出的消息的数量,<br>其级别从仅输出报错信息到输出一大堆调试信息。 Index flush megabytes interval 刷新索引的间隔,兆字节 This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 这个值调整的是,当积累咯多少索引数据时,才将数据刷新到硬盘上去。<br>用来控制索引进程的内存占用情况。默认为10MB Max disk occupation (%) 最大硬盘占用率(%) This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default). 当硬盘的占用率达到这个数时,索引会失败并且停止(以避免塞满你的硬盘)。<br>设为0则表示不加限制(这是默认值)。 No aspell usage 不使用aspell Aspell language Aspell语言 The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. aspell词典的语言。表示方式是'en'或'fr'……<br>如果不设置这个值,则会使用系统环境中的自然语言设置信息,而那个通常是正确的。要想查看你的系统中安装咯哪些语言的话,就执行'aspell config',再在'data-dir'目录中找.dat文件。 Database directory name 数据库目录名 The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. 用来储存索引数据的目录的名字<br>如果使用相对路径,则路径会相对于配置目录进行计算。默认值是'xapiandb'。 Use system's 'file' command 使用系统里的'file'命令 Use the system's 'file' command if internal<br>mime type identification fails. 当内部的文件类型识别功能失效时<br>使用系统里的'file'命令。 Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 禁止在词语探索器中使用aspell来生成拼写相近的词语。<br>在没有安装aspell或者它工作不正常时使用这个选项。 The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. aspell词典的语言。表示方式是'en'或'fr'……<br>如果不设置这个值,则会使用系统环境中的自然语言设置信息,而那个通常是正确的。要想查看你的系统中安装咯哪些语言的话,就执行'aspell config',再在'data-dir'目录中找.dat文件。 The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'. 用来储存索引数据的目录的名字<br>如果使用相对路径,则路径会相对于配置目录进行计算。默认值是'xapiandb'。 Unac exceptions Unac例外 <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation. <p>这是针对unac机制的例外,默认情况下,该机制会删除所有的判断信息,并进行正规的分解。妳可以按照自己的语言的特点针对某个字符覆盖掉口音解除设置,以及指定额外的分解(例如,针对复数)。在每个由空格分隔的条目中,第一个字符是源字符,剩下的就是翻译。 uiPrefsDialogBase User preferences 用户选项 User interface 用户界面 Number of entries in a result page 一个结果页面中显示的结果条数 If checked, results with the same content under different names will only be shown once. 如果选中这个,则拥有相同文件内容的不同文件名只会显示一个。 Hide duplicate results. 隐藏重复结果。 Highlight color for query terms 查询词语的高亮颜色 Result list font 结果列表字体 Opens a dialog to select the result list font 打开一个对话框,以选择用于结果列表的字体 Helvetica-10 文泉驿微米黑-12 Resets the result list font to the system default 将结果列表中的字体重设为系统默认值 Reset 重置 Texts over this size will not be highlighted in preview (too slow). 超过这个长度的文本不会在预览窗口里高亮显示(太慢)。 Maximum text size highlighted for preview (megabytes) 在预览中对其进行高亮显示的最大文本尺寸(兆字节) Use desktop preferences to choose document editor. 使用桌面系统的设置来选择文档编辑器。 Choose editor applications 选择编辑器程序 Display category filter as toolbar instead of button panel (needs restart). 将文件类型过滤器显示成工具条,而不是按钮面板(需要重启程序)。 Auto-start simple search on whitespace entry. 输入空格时自动开始进行简单搜索。 Start with advanced search dialog open. 启动时打开高端搜索对话框。 Remember sort activation state. 记住排序状态。 Prefer Html to plain text for preview. 预览中优先使用Html。 Search parameters 搜索参数 Stemming language 词根语言 A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. 对[滚 石] (2个词语)的搜索会变成[滚 or 石 or (滚 2个词语 石)]。 对于那些搜索词语在其中按照原样出现的结果,其优先级会高一些。 Automatically add phrase to simple searches 自动将词组添加到简单搜索中 Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. 是否要使用查询词语周围的上下文来构造结果列表条目中的摘要? 对于大的文档可能会很慢。 Dynamically build abstracts 动态构造摘要 Do we synthetize an abstract even if the document seemed to have one? 即使文档本身拥有一个摘要,我们仍然自行合成摘要信息? Replace abstracts from documents 取代文档中自带的摘要 Synthetic abstract size (characters) 合成摘要长度(字符个数) Synthetic abstract context words 合成摘要上下文 The words in the list will be automatically turned to ext:xxx clauses in the query language entry. 这个列表中的词语会在查询语言输入框里自动变成ext:xxx语句。 Query language magic file name suffixes. 查询语言神奇文件名后缀。 Enable 启用 External Indexes 外部索引 Toggle selected 切换选中项 Activate All 全部激活 Deactivate All 全部禁用 Remove from list. This has no effect on the disk index. 从列表中删除。这不会对硬盘上的索引造成损害。 Remove selected 删除选中项 Click to add another index directory to the list 点击这里,以将另一个索引目录添加到列表中 Add index 添加索引 Apply changes 使改变生效 &OK 确定(&O) Discard changes 放弃这些改变 &Cancel 取消(&C) Abstract snippet separator 摘要中的片段的分隔符 Style sheet 样式单 Opens a dialog to select the style sheet file 打开一个对话框,以选择样式单文件 Choose 选择 Resets the style sheet to default 将样式单重置为默认值 Lines in PRE text are not folded. Using BR loses some indentation. PRE中的文字不会换行。使用BR的话会使一些缩进失效。 Use <PRE> tags instead of <BR>to display plain text as html in preview. 在将纯文本显示成html预览的时候,使用<PRE>标签,而不是<BR>标签。 Result List 结果列表 Edit result paragraph format string 编辑结果段落的格式字符串 Edit result page html header insert 编辑结果页面的html头部插入项 Date format (strftime(3)) 日期格式(strftime(3)) Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). 这是一个频率阈值,超过这个值的话,我们就不会把词语放到自动词组中。 高频词语是词组中性能问题的主要来源。 略过的词语会增加词组的空缺值,因此会降低自动词组功能的效率。 默认值是2(百分比)。 Autophrase term frequency threshold percentage 自动词组频率阈值百分比 Plain text to HTML line style 纯文本转换为HTML换行符的风格 Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. PRE文本中的那些行是不会被折叠的。使用BR会丢失一些缩进信息。PRE+换行风格可能才是妳想要的。 <BR> <BR> <PRE> <PRE> <PRE> + wrap <PRE>+换行 Disable Qt autocompletion in search entry. 禁止在查询输入框中使用Qt的自动补全 Search as you type. 在输入的同时进行搜索。 Paths translations 路径变换 Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. 点击此处以向列表中加入另一个索引目录。妳可以选择一个Recoll配置目录或一个Xapian索引。 Snippets window CSS file 片断窗口的CSS文件 Opens a dialog to select the Snippets window CSS style sheet file 打开一个对话框,以选择片断窗口的CSS样式单文件 Resets the Snippets window style 重置片断窗口的样式 Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Document filter choice style: Buttons Panel Toolbar Combobox Menu Show system tray icon. Close to tray instead of exiting. recoll-1.21.5/qtgui/i18n/recoll_es.qm0000644000175000017500000027065012602163537016617 0ustar dockesdockesylE$D ]  LoLzVEVEfġlxӭ9][UE[$—'H*%*0+Lhc+f{_1:dAV5dGV'GH6H6J+jJ+7J6 J6LbMzJPhSՐST5~WTmWXWZ0R>[ %\ ejugw<sCsv8Xvvu@rj!$I0́HJ c*fSd -Tlngt:REn.|0,g;s]>.cuDo2NiXMMX59`^­h7ltЇnowCw~Hڽv9tbcnxCowͺ  LSI?C؅D up#v:vw 56w 5w 5:wU.|7ֳ66Gf3MͼuNggj׸~;U6Ul?eh aI!DY(&C.Nx}7.=dY?dG$JUYJUYYi[un1_n]uFʷ 3ʗrʗDQm^IL?XִxJgDA?Ok%A B dN<.*~d-;[<LQNBnX4e 2PvhJ(Pb"3 ZI8Iinߤ^fyffd\`uM:$y" ω:/UKZ*p h9u9QKv2lT#nBj4K&! %On 7u5^/[XnD!w)12C:!v#+]7I^;<~FW#FNAH:"{_guNapxf 9|N(ϗn3:&Ա |lÓtÓtȍ:Ɇt`]87 "%#-3f,y:uS'GZJnQs}}s*;E][0'=WOc@uvh4c 䴥:?[ a H -(8 9Zyά ;3 D K ]#* cC} koA lMfy _ qD j  @ 92 ü>T 3N p] ; *Nm% :^W c  *R5 +< 6 >V G.~N$ `P% ` aE# cEi d8 yk I4  VT C|K 6  w ԅ ye3 THU h ,x4j =!S Kj) T|c hi t9*   n Σ r| ٷ ۷* < ?LU Vd 'Иz +bC} / 9ɝ L*nj P֙{ RV T#x4 V 5 \iCV ] `F  hC v {lS !YC !Yŋ W  i  i e ݐ 9@ ~J N y m 'RN - 85 F OEM ]9 ] mCJb u0 y y~ 3 ȩ> ū PA P 5dP~ ^ 3J 7b1 =& Ւ7I H O Q5 £> qI%n~/.8b9<^;zQ~UHW"{Y~s[s\4^e3g3p~b| 0?!8cmȁc a|w|[ ' lLib&Todas las clusulas All clauses AdvSearch$Cualquier clusula Any clause AdvSearchfSufijo multiplicador incorrecto en filtro de tamao$Bad multiplier suffix in size filter AdvSearch mediosmedia AdvSearchmensajemessage AdvSearch otrosother AdvSearchpresentacin presentation AdvSearchhoja de clculo spreadsheet AdvSearch textotext AdvSearch<----- Todos <----- All AdvSearchBase<----- Sel <----- Sel AdvSearchBaseAadir clusula Add clause AdvSearchBase"Bsqueda avanzadaAdvanced search AdvSearchBaseTodos ----> All ----> AdvSearchBasejTodos los campos no vacos a la derecha sern combinados con conjunciones AND (opcin "Todas las clusulas") o OR (opcin "Cualquier clusula").<br>Los campos "Cualquiera", "Todas" y "Ninguna" pueden aceptar una mezcla de palabras simples y frases dentro de comillas dobles.<br>Campos sin datos son ignorados.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions.
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBase BuscarBrowse AdvSearchBasePor categoras By categories AdvSearchBaseXMarque esto para habilitar filtros en fechas'Check this to enable filtering on dates AdvSearchBasenMarque esto para habilitar filtros en tipos de archivos,Check this to enable filtering on file types AdvSearchBaseZMarque esto para habilitar filtros en tamaos'Check this to enable filtering on sizes AdvSearchBasenMarque esto para usar categoras en lugar de tipos MIME;Check this to use file categories instead of raw mime types AdvSearchBase CerrarClose AdvSearchBaseBorrar clusula Delete clause AdvSearchBaseVIngrese directorio inicial para la bsquedaEnter top directory for search AdvSearchBase FiltroFilter AdvSearchBaseFiltrar fechas Filter dates AdvSearchBase"Filtro de tamaos Filter sizes AdvSearchBase BuscarFind AdvSearchBase DesdeFrom AdvSearchBase6Tipos de archivos ignoradosIgnored file types AdvSearchBaseInvertirInvert AdvSearchBaseTamao mximo Max. Size AdvSearchBaseTamao mximo. Puede utilizar k/K, m/M o g/G como multiplicadores4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBaseTamao Mnimo Min. Size AdvSearchBaseTamao mnimo. Puede utilizar k/K, m/M o g/G como multiplicadores4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase6Restringir tipos de archivoRestrict file types AdvSearchBasedRestringir resultados a archivos en subdirectorio:%Restrict results to files in subtree: AdvSearchBase6Guardar como predeterminadoSave as default AdvSearchBaseHBuscar documentos<br>que satisfagan:'Search for
documents
satisfying: AdvSearchBase4Tipos de archivos buscadosSearched file types AdvSearchBaseSel -----> Sel -----> AdvSearchBase Iniciar bsqueda Start Search AdvSearchBase HastaTo AdvSearchBase<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> horario de indexado por lotes (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Cada campo puede contener un comodn (*), un valor numrico nico, listas separadas por comas (1,3,5) y rangos (1-7). Ms generalmente, los campos sern usados <span style=" font-style:italic;">tal como son</span> dentro del archivo crontab, y toda la sintaxis crontab puede ser usada, ver crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Por ejemplo, ingresar <span style=" font-family:'Courier New,courier';">*</span> en <span style=" font-style:italic;">Das, </span><span style=" font-family:'Courier New,courier';">12,19</span> en <span style=" font-style:italic;">Horas</span> y <span style=" font-family:'Courier New,courier';">15</span> en <span style=" font-style:italic;">Minutos</span> iniciara recollindex cada da a las 12:15 AM y 7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Un horario con activaciones frecuentes es probablemente menos eficiente que la indexacin en tiempo real.</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolWr<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Presione <span style=" font-style:italic;">Deshabilitar</span> para detener la indexacin automtica por lotes, <span style=" font-style:italic;">Habilitar</span> para activarla, <span style=" font-style:italic;">Cancelar</span> para no cambiar nada.</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolWVentana de Cron Cron Dialog CronToolWZDas de la semana (* o 0-7, 0 o 7 es Domingo))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWDeshabilitarDisable CronToolWHabilitarEnable CronToolWError al instalar entrada de cron. Sintaxis incorrecta en los campos?3Error installing cron entry. Bad syntax in fields ? CronToolW Horas (* o 0-23)Hours (* or 0-23) CronToolWParece ser que existen entradas para recollindex editadas manualmente, no se puede editar crontabPIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWMinutos (0-59)Minutes (0-59) CronToolW$Ventana de dilogoDialog EditDialog,Error de configuracin Config error EditTransRuta local Local path EditTransRuta original Original path EditTransRuta de origen Source path EditTrans AadirAdd EditTransBaseCancelarCancel EditTransBase BorrarDelete EditTransBase(Ruta de traduccionesPath Translations EditTransBaseGuardarSave EditTransBaseSeleccione uno o ms tipos de archivos, y use los controles en la caja abajo para cambiar cmo se procesankSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBaseHEstablecer ruta de traducciones paraSetting path translations for  EditTransBase <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Parece ser que el ndice para esta configuracin no existe.</span><br /><br />Si solamente desea indexar su directorio personal con un conjunto de valores iniciales razonables, presione el botn <span style=" font-style:italic;">Iniciar indexacin ahora</span>. Es posible ajustar los detalles ms tarde.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Si necesita ms control, use los enlaces siguientes para ajustar la configuracin de indexacin y el horario.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Estas herramientas pueden ser accedidas luego desde el men <span style=" font-style:italic;">Preferencias</span>.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialogFPrimera configuracin de indexacinFirst indexing setupFirstIdxDialog6Configuracin de indexacinIndexing configurationFirstIdxDialog*Horario de indexacinIndexing scheduleFirstIdxDialog0Iniciar indexacin ahoraStart indexing nowFirstIdxDialogBEsto le permite ajustar los directorios que quiere indexar y otros parmetros, como rutas de archivos o nombres excluidos, conjuntos de caracteres estndar, etc.This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialog"Esto le permite escoger entre indexacin en tiempo real y por lotes, y configurar un horario automtico para indexar por lotes (utilizando cron).This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog D<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">La indexacin de <span style=" font-weight:600;">Recoll</span> puede ejecutarse permanentemente, indexando archivos cuando cambian, o puede ejecutarse en intervalos discretos. </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Leer el manual puede ayudarle a decidir entre estos dos mtodos (presione F1).</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Esta herramienta puede ayudarle a configurar un horario para automatizar la ejecucin de indexacin por lotes, o iniciar la indexacin en tiempo real cuando inicia la sesin (o ambos, lo cual rara vez tiene sentido).</p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedWHorario de CronCron scheduling IdxSchedWDecida si la indexacin en tiempo real ser ejecutada cuando inicie la sesin (solo para el ndice estndar).ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedWLConfiguracin de horario de indexacinIndex scheduling setup IdxSchedWLInicio de la indexacin en tiempo realReal time indexing start up IdxSchedWEsta herramienta le permite decidir a qu hora la indexacin se ejecutar e instalar una entrada en el crontab._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedW$Ventana de dilogoDialog ListDialogCuadro de grupoGroupBox ListDialogEl archivo de historial esta daado o no se puede leer, por favor revselo o brrelo:K"history" file is damaged or un(read)writeable, please check or remove it: Main^Directorio de base de datos no est configurado No db directory in configurationMain&Siguiente&NextPreview&Previo &PreviousPreview&Buscar por: &Search for:Preview|No se puede convertir documento a representacin interna para 0Can't turn doc into internal representation for PreviewCancelarCancelPreviewLimpiarClearPreviewCerrar Pestaa Close TabPreview:Creando texto de vista previaCreating preview textPreview.Error al cargar archivoError while loading filePreviewVCargando texto de vista previa en el editor Loading preview text into editorPreviewD&Coincidir maysculas y minsculas Match &CasePreview6Programa ayudante faltante:Missing helper program: Preview CopiarCopyPreviewTextEditDoblar lneas Fold linesPreviewTextEdit*Preservar indentacinPreserve indentationPreviewTextEditImprimirPrintPreviewTextEdit8Imprimir vista previa actualPrint Current PreviewPreviewTextEdit>Guardar documento en un archivoSave document to filePreviewTextEdit Seleccionar todo Select AllPreviewTextEditMostrar campos Show fieldsPreviewTextEditMostrar imagen Show imagePreviewTextEdit.Mostrar texto principalShow main textPreviewTextEdit@<b>Subdirectorios personalizadosCustomised subtreesQObject<i>Los parmetros siguientes se aplican a nivel superior, si una lnea vaca<br>o ninguna es seleccionada en el listado arriba, o para cada directorio seleccionado.<br>Puede aadir o remover directorios presionando los botones +/-.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject2Seguir enlaces simblicosFollow symbolic linksQObjectSeguir enlaces simblicos al indexar. El valor por defecto es no, para evitar indexar duplicadosTFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject&Parmetros globalesGlobal parametersQObjectJIndexar todos los nombres de archivosIndex all file namesQObjecthIndexar los nombres de los archivos para los cuales los contenidos no pueden ser<br>identificados o procesados (tipo MIME invlido o inexistente). El valor por defecto es verdadero}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject$Parmetros localesLocal parametersQObject,Parmetros de bsquedaSearch parametersQObject Nombres omitidos Skipped namesQObjectLa lista de subdirectorios en la jerarqua indexada<br>dnde algunos parmetros necesitan ser definidos. Valor por defecto: vaco.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectEstos son patrones de nombres de archivos o directorios que no deben ser indexados.LThese are patterns for file or directory names which should not be indexed.QObjectHistorial Web Web historyQObject &Abrir&OpenQWidgetL&Abrir documento/directorio ascendente&Open Parent document/folderQWidgetCopiar &URL Copy &URLQWidget8Buscar documentos &similaresFind &similar documentsQWidget8Abrir ventana de &fragmentosOpen &Snippets windowQWidget8Guardar seleccin a archivosSave selection to filesQWidget@Mostrar subdocumentos / adjuntosShow subdocuments / attachmentsQWidget<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">La indexacin de <span style=" font-weight:600;">Recoll</span> puede configurarse para ejecutar como un demonio, actualizando el ndice cuando los archivos cambian, en tiempo real. Obtiene un ndice actualizado siempre, pero los recursos del sistema son utilizados permanentemente.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>.

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWdTambin iniciar demonio de indexacin ahora mismo.%Also start indexing daemon right now.RTIToolWArchivo de autoinicio borrado. Detener el proceso actual tambin?2Autostart file deleted. Kill current process too ?RTIToolW$No se puede crear:Can't create: RTIToolW@No se puede ejecutar recollindexCould not execute recollindexRTIToolW Borrando archivo Deleting fileRTIToolWBorrando: Deleting: RTIToolWbInicio automtico de la indexacin en tiempo real"Real time indexing automatic startRTIToolW*Eliminando autoinicioRemoving autostartRTIToolW(Reemplazando archivoReplacing fileRTIToolWReemplazando: Replacing: RTIToolWzIniciar el demonio de indexacin con mi sesin de escritorio..Start indexing daemon with my desktop session.RTIToolWAdvertenciaWarningRTIToolW*(todos los lenguajes)(all languages)RclMain(sin races) (no stemming)RclMain Acerca de Recoll About RecollRclMainTodoAllRclMainLnea de comando incorrecta de visualizador para %1: [%2] Por favor revise el archivo mimeconfCBad viewer command line for %1: [%2] Please check the mimeview fileRclMain>No se puede accesar el archivo:Can't access file: RclMainRNo se puede crear ventana de vista previaCan't create preview windowRclMainHNo se puede descomprimir el archivo:Can't uncompress file: RclMainpNo se puede actualizar el ndice: indexador en ejecucin#Can't update index: indexer runningRclMainrNo se puede extraer el documento o crear archivo temporal0Cannot extract document or create temporary fileRclMain>No se encuentra documento padreCannot find parent documentRclMainNo se puede recuperar informacin del documento de la base de datos+Cannot retrieve document info from databaseRclMainCerrandoClosingRclMainpLos contenidos han sido indexados para estos tipos MIME:.Content has been indexed for these mime types:RclMainNo se puede abrir ndice externo. Base de datos no abierta. Revise listado de ndices externos.HCould not open external index. Db not open. Check external indexes list.RclMain.Historial de documentosDocument historyRclMain HechoDoneRclMain*Documentos duplicadosDuplicate documentsRclMainBorrando ndice Erasing indexRclMain ErrorErrorRclMainEjecutando: [ Executing: [RclMainAplicaciones/comandos externos requeridos por sus tipos de archivos y no encontrados, como se almacenaron en el ltimo pase de indexacin en pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMain$Datos de historial History dataRclMain,ndice no est abiertoIndex not openRclMain8Error de consulta del ndiceIndex query errorRclMain(Tipos MIME indexadosIndexed MIME TypesRclMainHLa indexacin no se ha ejecutado anIndexing did not run yetRclMain Indexacin fallIndexing failedRclMain.Indexacin en progreso:Indexing in progress: RclMain.Indexacin interrumpidaIndexing interruptedRclMain:Programas ayudantes faltantesMissing helper programsRclMainMonitorMonitorRclMain`No hay visualizador configurado para tipo MIME [-No external viewer configured for mime type [RclMainNo helpers found missingRclMain"No hay resultadosNo results foundRclMainNingunoNoneRclMainPurgeRclMainConsulta en progreso.<br>Debido a limitaciones en la librera de indexacin,<br>cancelar terminar el programaeQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMain,Resultados de bsqueda Query resultsRclMainRRestaurar el ndice e iniciar desde cero?(Reset the index and start from scratch ?RclMain6Conteo de resultados (est.)Result count (est.)RclMainGuardar archivo Save fileRclMain RazdbStemdbRclMain&Detener &IndexacinStop &IndexingRclMain2Sub-documentos y adjuntosSub-documents and attachmentsRclMainEl proceso de indexacin actual no se inicio desde esta interfaz. Presione Ok para detenerlo, o Cancelar para dejarlo ejecutaryThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainhThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainhEstos URLs ( | ipath) comparten el mismo contenido: -These Urls ( | ipath) share the same content:RclMain8Esta bsqueda no est activa"This search is not active any moreRclMainDesconocidoUnknownRclMain$Actualizar &ndice Update &IndexRclMainActualizandoUpdatingRclMainLnea de comandos del visualizador para %1 especifica valores para el archivo y el archivo padre: no soportadoQViewer command line for %1 specifies both file and parent file value: unsupportedRclMainAdvertenciaWarningRclMainPerror al recuperar lenguajes para races#error retrieving stemming languagesRclMainfiltradofilteredRclMain mediosmediaRclMainmensajemessageRclMainotrootherRclMainpresentacin presentationRclMainordenadosortedRclMainhoja de clculo spreadsheetRclMain textotextRclMain"&Acerca de Recoll &About Recoll RclMainBase$Bsqueda &Avanzada&Advanced Search RclMainBase>Borrar historial de &documentos&Erase document history RclMainBase:Borrar historial de &bsqueda&Erase search history RclMainBase&Archivo&File RclMainBase$Pantalla &Completa &Full Screen RclMainBase*Configuracin de &GUI&GUI configuration RclMainBase &Ayuda&Help RclMainBase2&Configuracin del ndice&Index configuration RclMainBase,&Horario de indexacin&Indexing schedule RclMainBase&Preferencias &Preferences RclMainBase&&Reconstruir ndice&Rebuild index RclMainBase&Resultados&Results RclMainBase0&Mostrar tipos indexados&Show indexed types RclMainBase8&Mostrar ayudantes faltantes&Show missing helpers RclMainBase6Parmetros de &ordenamiento&Sort parameters RclMainBase&Herramientas&Tools RclMainBase$Manual de &Usuario &User manual RclMainBase4Bsqueda avanzada/complejaAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase.Historial de DocumentosDocument History RclMainBase0Historial de &DocumentosDocument &History RclMainBase &SalirE&xit RclMainBaseD&Configuracin de ndices externosE&xternal index dialog RclMainBaseBConfiguracin de ndices externosExternal index dialog RclMainBaseF11F11 RclMainBasePrimera Pgina First Page RclMainBasePrimera pgina First page RclMainBase"Pantalla Completa Full Screen RclMainBaseHIr a la primera pgina de resultadosGo to first page of results RclMainBase Pgina Siguiente Next Page RclMainBase Siguiente pgina Next page RclMainBase<Pgina de resultados siguienteNext page of results RclMainBase AvPgPgDown RclMainBase RePgPgUp RclMainBasePgina Anterior Previous Page RclMainBasePgina anterior Previous page RclMainBase:Pgina de resultados anteriorPrevious page of results RclMainBase RecollRecoll RclMainBaseZGuardar como un archivo CSV (hoja de clculo)Save as CSV (spreadsheet) file RclMainBaseGuardar el resultado en un archivo que se puede cargar en una hoja de clculo@Saves the result into a file which you can load in a spreadsheet RclMainBase Maysculas+RePg Shift+PgUp RclMainBaseBMostrar resultados de la consultaShow Query Details RclMainBase$Mostrar como tabla Show as table RclMainBasezMostrar resultados en una tabla similar a una hoja de clculo(Show results in a spreadsheet-like table RclMainBaseHOrdenar por fecha, recientes primeroSort by date, newest first RclMainBaseFOrdenar por fecha, antiguos primeroSort by date, oldest first RclMainBaselOrdenar por fechas de la ms reciente a la ms antigua#Sort by dates from newest to oldest RclMainBaselOrdenar por fechas de la ms antigua a la ms reciente#Sort by dates from oldest to newest RclMainBase4Parmetros de ordenamientoSort parameters RclMainBase.&Explorador de trminosTerm &explorer RclMainBaseLHerramienta de exploracin de trminosTerm explorer tool RclMainBase$Actualizar &ndice Update &index RclMainBaseResumenAbstract RecollModel AutorAuthor RecollModel FechaDate RecollModelFecha y hora Date and time RecollModel&Fecha del documento Document date RecollModel(Tamao del documento Document size RecollModel"Fecha del archivo File date RecollModel$Nombre del archivo File name RecollModel$Tamao del archivo File size RecollModel IpathIpath RecollModelPalabras claveKeywords RecollModelTipo MIME MIME type RecollModelFecha ModMtime RecollModel>Conjunto de caracteres originalOriginal character set RecollModel4Calificacin de relevanciaRelevancy rating RecollModel TtuloTitle RecollModelURLURL RecollModel$(mostrar consulta) (show query)ResList@<p><b>No hay resultados</b></br>

No results found
ResListf<p><i>Ortografa alterna (acentos suprimidos): </i>4

Alternate spellings (accents suppressed): ResList><p><i>Escrituras Alternas: </i>

Alternate spellings: ResList.Historial de documentosDocument historyResListDocumentos DocumentsResListSiguienteNextResList AbrirOpenResListVista previaPreviewResListAnteriorPreviousResList(Detalles de bsqueda Query detailsResList6Conteo de resultados (est.)Result count (est.)ResList&Lista de resultados Result listResListFragmentosSnippetsResList.Documento no disponibleUnavailable documentResListparaforResListde por lo menosout of at leastResList&Borrar columna&Delete columnResTable.&Restaurar ordenamiento &Reset sortResTable"&Guardar como CSV &Save as CSVResTable(Agregar columna "%1"Add "%1" columnResTable@No se puede abrir/crear archivo:Can't open/create file: ResTable6Guardar tabla a archivo CSVSave table to CSV fileResTable$Todos los trminos All termsSSearch"Cualquier trminoAny termSSearch"Consulta invlidaBad query stringSSearchhIngrese expresin de comodn para nombre de archivo.$Enter file name wildcard expression.SSearchIngrese trminos de bsqueda aqu. Presione ESC ESPACIO para completar el trmino actual.FEnter search terms here. Type ESC SPC for completions of current term.SSearch"Nombre de archivo File nameSSearchNo hay memoria Out of memorySSearch(Lenguaje de consultaQuery languageSSearch.Elija tipo de bsqueda.Choose search type. SSearchBaseLimpiarClear SSearchBase Ctrl+SCtrl+S SSearchBaseIngrese trminos de bsqueda aqu. Presione ESC ESP para completar el trmino actual.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase4Borrar entrada de bsquedaErase search entry SSearchBaseSSearchBase SSearchBase SSearchBaseBsquedaSearch SSearchBase Iniciar consulta Start query SSearchBaseTodoAll SearchClauseWCualquieraAny SearchClauseW"Nombre de archivo File name SearchClauseWNingn campoNo field SearchClauseWNingunoNone SearchClauseWNmero de palabras adicionales que pueden ser intercaladas con las escogidasHNumber of additional words that may be interspersed with the chosen ones SearchClauseW FrasePhrase SearchClauseWProximidad Proximity SearchClauseWzElija el tipo de consulta que ser realizada con las palabras>Select the type of query that will be performed with the words SearchClauseWBuscar:Find:SnippetsSiguienteNextSnippetsAnteriorPrevSnippetsFragmentosSnippetsSnippets BuscarSearch SnippetsW&Cerrar&Close SpellBase&Expandir&Expand  SpellBaseAcentosAccents SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBase0Distincin de maysculasCase SpellBaseLenguajeMatch SpellBase2No hay informacin de bd. No db info. SpellBase,Explorador de trminos Term Explorer SpellBase%1 resultados %1 resultsSpellW:Error de expansin de Aspell.Aspell expansion error. SpellWlInicializacin de Aspell fall. Est instalado Aspell?)Aspell init failed. Aspell not installed?SpellW>Trminos promedio por documentoAverage terms per documentSpellWRTamao del directorio de la base de datosDatabase directory sizeSpellWDoc./Tot. Doc. / Tot.SpellWndice: %1 documentos, largo promedio %2 trminos. %3 resultados7Index: %1 documents, average length %2 terms.%3 resultsSpellWElementoItemSpellWpLa lista fue separada alfabticamente, algunos trminos 1List was truncated alphabetically, some frequent SpellW>Tamao del documento ms grandeLongest document lengthSpellWTipos MIME: MIME types:SpellW.Expansin no encontradaNo expansion foundSpellW(Nmero de documentosNumber of documentsSpellW"Expresin regularRegexpSpellW>Mostrar estadsticas del ndiceShow index statisticsSpellW@Tamao del documento ms pequeoSmallest document lengthSpellW&Ortografa/fonticaSpelling/PhoneticSpellW&Expansin de racesStem expansionSpellWTrminoTermSpellW ValorValueSpellWComodines WildcardsSpellWPerror al recuperar lenguajes para races#error retrieving stemming languagesSpellW~frecuentes pueden no aparecer. Intente usar una raz ms larga..terms may be missing. Try using a longer root.SpellWPAl menos un ndice debe ser seleccionado$At most one index should be selected UIPrefsDialogNo se puede agregar un ndice con diferente opcin para remover maysculas/minsculas/diacrticos>Cant add index with different case/diacritics stripping option UIPrefsDialog ElegirChoose UIPrefsDialogEncabezado de la lista de resultados (valor por defecto es vaco)%Result list header (default is empty) UIPrefsDialogFormato de prrafo para la lista de resultados (borre todo para volver al valor por defecto)Nuevos valores</b>New Values:ViewActionBaseZAccin (vaco -> valor por defecto de recoll) Action (empty -> recoll default)ViewActionBase:Aplicar a la seleccin actualApply to current selectionViewActionBase CerrarCloseViewActionBaseXExcepcin de las preferencias del escritorio Exception to Desktop preferencesViewActionBase,Visualizadores NativosNative ViewersViewActionBase AccinRecoll action:ViewActionBaseSeleccione uno o ms tipos de archivos, y use los controles en la caja abajo para cambiar cmo se procesankSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseSeleccione uno o ms tipos mime, y use los controles en la caja abajo para cambiar cmo se procesan.lSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBase"Seleccionar misma Select sameViewActionBase\Usar preferencias del escritorio como estndar"Use Desktop preferences by defaultViewActionBase valor current valueViewActionBaseHabilita la indexacin de pginas visitadas en Firefox.<br>(necesita tambin el plugin Recoll para Firefox)\Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelWLas entradas sern recicladas una vez que el tamao es alcanzado1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWLTamao mximo para el almacn web (MB) Max. size for the web store (MB)confgui::ConfBeaglePanelWDProcesar la cola del historial WEBProcess the WEB history queueconfgui::ConfBeaglePanelWTEl nombre del directorio dnde almacenar las copias de pginas web visitadas.<br>Una ruta de directorio no absoluta es utilizada, relativa al directorio de configuracin.The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWdNombre del directorio del almacn para pginas webWeb page store directory nameconfgui::ConfBeaglePanelWZNo se puede escribir archivo de configuracinCan't write configuration fileconfgui::ConfIndexW ElegirChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW^<p>Habilitar automticamente la sensibilidad a las maysculas/minsculas si la entrada tiene caracteres en mayscula en una posicin distinta al primer caracter. De otra forma necesita usar el lenguaje de bsqueda y el modificador <i>C</i> para especificar la sensibilidad a las maysculas y minsculas.

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW2<p>Habilitar automticamente la sensibilidad de diacrticos si el trmino de bsqueda tiene caracteres acentuados (no presentes en unac_except_trans). De otra forma necesita usar el lenguage de bsqueda y el modificador <i>D</i> para especificar la sensibilidad de los diacrticos.

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelW<p>Mxima expansin de conteo para un solo trmino (ej: cuando se usan comodines). El valor por defecto de 10000 es razonable y evitar consultas que parecen congelarse mientras el motor de bsqueda recorre la lista de trminos.

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelW<p>Nmero mximo de clusulas elementales agregadas a una consulta de Xapian. En algunos casos, el resultado de la expansin de trminos puede ser multiplicativo, y deseamos evitar el uso excesivo de memoria. El valor por defecto de 100000 debera ser lo suficientemente alto en la mayora de los casos, y compatible con las configuraciones de hardware tpicas en la actualidad.5

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWSensibilidad automtica a la distincin de maysculas/minsculas de los caracteres$Automatic character case sensitivityconfgui::ConfSearchPanelWLSensibilidad automtica de diacrticos Automatic diacritics sensitivityconfgui::ConfSearchPanelWHMximo conteo de clusulas de XapianMaximum Xapian clauses countconfgui::ConfSearchPanelWLMximo conteo de expansin de trminosMaximum term expansion countconfgui::ConfSearchPanelWFiltros externos que se ejecuten por ms tiempo del establecido sern detenidos. Esto es por el caso inusual (ej: postscript) dnde un documento puede causar que un filtro entre en un ciclo infinito. Establezca el nmero -1 para indicar que no hay lmite.External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelW GlobalGlobalconfgui::ConfSubPanelWSi se utiliza este valor (diferente de -1), los archivos de texto sern separados en partes de este tamao para ser indexados. Esto ayuda con las bsquedas de archivos de texto muy grandes (ej: archivos de registro).If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWPTamao mximo de archivo comprimido (KB)Max. compressed file size (KB)confgui::ConfSubPanelWRTiempo mximo de ejecucin de filtros (S)Max. filter exec. time (S)confgui::ConfSubPanelWPTamao mximo para archivo de texto (MB)Max. text file size (MB)confgui::ConfSubPanelWVTamao de pgina para archivo de texto (KB)Text file page size (KB)confgui::ConfSubPanelWdEste valor establece un umbral mas all del cual los archivos<br>comprimidos no sern procesados. Escriba 1 para no tener lmite,<br>o el nmero 0 para nunca hacer descompresin.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelWEste valor establece un umbral ms all del cual los archivos de texto no sern procesados.<br>Escriba 1 para no tener lmites. Este valor es utilizado para excluir archivos de registro gigantescos del ndice.This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelWH<p>Estas son excepciones al mecanismo unac, el cual, de forma predeterminada, elimina todos los diacrticos, y realiza una descomposicin cannica. Es posible prevenir la eliminacin de acentos para algunos caracteres, dependiendo de su lenguaje, y especificar descomposiciones adicionales, por ejemplo, para ligaturas. En cada entrada separada por espacios, el primer caracter es el origen, y el resto es la traduccin.l

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelWLenguaje AspellAspell languageconfgui::ConfTopPanelWLNombre del directorio de base de datosDatabase directory nameconfgui::ConfTopPanelW@Deshabilita el uso de aspell para generar aproximaciones ortogrficas en la herramienta explorador de trminos.<br>til si aspell no se encuentra o no funciona.Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelW\Intervalo en megabytes de escritura del ndiceIndex flush megabytes intervalconfgui::ConfTopPanelW:Nombre de archivo de registro Log file nameconfgui::ConfTopPanelW@Nivel de verbosidad del registroLog verbosity levelconfgui::ConfTopPanelW>Utilizacin mxima de disco (%)Max disk occupation (%)confgui::ConfTopPanelW$No utilizar aspellNo aspell usageconfgui::ConfTopPanelW(Directorios omitidos Skipped pathsconfgui::ConfTopPanelW*Lenguajes para racesStemming languagesconfgui::ConfTopPanelWEl archivo donde los mensajes sern escritos.<br>Use 'stderr' para salida a la terminalPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWEl lenguaje para el diccionario aspell. Esto debera ser algo como 'en' o 'fr' ...<br>Si no se establece este valor, el ambiente NLS ser utilizado para calcularlo, lo cual usualmente funciona. Para tener una idea de lo que est instalado en sus sistema, escriba 'aspell-config' y busque archivos .dat dentro del directorio 'data-dir'.3The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelWLos lenguajes para los cuales los diccionarios de expansin de races sern creados.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWLa lista de directorios donde la indexacin recursiva comienza. Valor por defecto: su directorio personal.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWZEl nombre de un directorio donde almacenar el ndice.<br>Una ruta no absoluta se interpreta como relativa al directorio de configuracin. El valor por defecto es 'xapiandb'.The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelWEstos son los nombres de directorios los cuales no se indexan.<br>Puede contener comodines. Debe corresponder a las rutas vistas por el indexador (ej: si los directorios primarios incluyen '/home/me' y '/home' es en realidad un enlace a '/usr/home', la entrada correcta para directorios omitidos sera '/home/me/tmp*', no '/usr/home/me/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWPEste es el porcentaje de utilizacin de disco donde la indexacin fallar y se detendr (para evitar llenarle el disco).<br>0 significa sin lmites (valor por defecto).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelW8Este valor ajusta la cantidad de datos indexados entre escrituras al disco.<br> Esto ayuda a controlar el uso de memoria del indexador. Valor estndar 10MB This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWEste valor ajusta la cantidad de mensajes,<br>desde solamente errores hasta montones de informacin de depuracin.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW*Directorios primariosTop directoriesconfgui::ConfTopPanelW Excepciones UnacUnac exceptionsconfgui::ConfTopPanelW&Cancelar&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBase<BR>
uiPrefsDialogBase <PRE>

uiPrefsDialogBase<PRE> + wrap
 + wrapuiPrefsDialogBaseUna bsqueda por [rolling stones] (2 trminos) ser cambiada por [rolling or stones or (rolling phrase 2 stones)].
Esto dar mayor precedencia a los resultados en los cuales los trminos de bsqueda aparecen exactamente como fueron escritos.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBaseDSeparador de fragmentos de resumenAbstract snippet separatoruiPrefsDialogBaseActivar TodosActivate AlluiPrefsDialogBaseAadir ndice	Add indexuiPrefsDialogBaseAplicar cambios
Apply changesuiPrefsDialogBasetAuto iniciar bsqueda simple al entrar espacios en blanco.-Auto-start simple search on whitespace entry.uiPrefsDialogBasebAutomticamente aadir frases a bsquedas simples+Automatically add phrase to simple searchesuiPrefsDialogBasexPorcentaje del umbral de frecuencia de trminos de autofrase.Autophrase term frequency threshold percentageuiPrefsDialogBaseElegirChooseuiPrefsDialogBaseBEscoger aplicaciones para edicinChoose editor applicationsuiPrefsDialogBaseHaga clic para agregar otro directorio de ndice a la lista. Puede seleccionar un directorio de configuracin de Recoll o un ndice Xapian.{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBase<Formato de fecha (strftime(3))Date format (strftime(3))uiPrefsDialogBase Desactivar TodosDeactivate AlluiPrefsDialogBasevDeshabilitar autocompletar de Qt en la entrada de bsqueda.*Disable Qt autocompletion in search entry.uiPrefsDialogBase"Descartar cambiosDiscard changesuiPrefsDialogBasexSintetizar un resumen aunque el documento parece tener uno?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseFIntentar construir resmenes para elementos en la lista de resultados utilizando el contexto de los trminos de bsqueda?
Puede ser lento para documentos grandes.zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBaseBConstruir resmenes dinmicamenteDynamically build abstractsuiPrefsDialogBasepEditar encabezado html insertado en pgina de resultados#Edit result page html header insertuiPrefsDialogBasejEditar texto de formato para el prrafo de resultados#Edit result paragraph format stringuiPrefsDialogBaseHabilitarEnableuiPrefsDialogBase ndices ExternosExternal IndexesuiPrefsDialogBasedUmbral de porcentaje de frecuencia sobre el cul no utilizamos trminos dentro de la autofrase.
Los trminos frequentes son un problema importante de desempeo con las frases.
Trminos omitidos aumenta la holgura de la frase, y reducen la eficiencia de la autofrase.
El valor por defecto es 2 (por ciento).Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10Helvetica-10uiPrefsDialogBase>Esconder resultados duplicados.Hide duplicate results.uiPrefsDialogBaseXColor de resaltado para trminos de bsquedaHighlight color for query termsuiPrefsDialogBaseSi est marcado, los resultados con el mismo contenido bajo nombres diferentes sern mostrados solo una vez.XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBaseLas lneas en texto PRE no son dobladas. Al usar BR se pierde indentacin. El estilo PRE + Wrap probablemente es lo que est buscando.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBase|Tamao mximo de texto resaltado para vista previa (megabytes)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBase\Nmero de elementos en la pgina de resultados"Number of entries in a result pageuiPrefsDialogBaseAbre una ventana de dilogo para el archivo de estilos CSS de la ventana de fragmentosAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBaseAbre una ventana para seleccionar el tipo de letra para la lista de resultados-Opens a dialog to select the result list fontuiPrefsDialogBase~Abre una ventana de dilogo para seleccionar la hoja de estilos-Opens a dialog to select the style sheet fileuiPrefsDialogBase*Rutas de traduccionesPaths translationsuiPrefsDialogBaseDTexto comn a estilo de lnea HTMLPlain text to HTML line styleuiPrefsDialogBase^Preferir HTML a texto simple para vista previa.&Prefer Html to plain text for preview.uiPrefsDialogBaseSufijos para nombres mgicos de archivos en el lenguaje de consulta.(Query language magic file name suffixes.uiPrefsDialogBase\Recordar estado de activacin de ordenamiento.Remember sort activation state.uiPrefsDialogBaseEliminar de la lista. Esto no tiene efecto en el ndice en disco.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase$Eliminar seleccinRemove selecteduiPrefsDialogBaseLReemplazar resmenes de los documentos Replace abstracts from documentsuiPrefsDialogBaseRestaurarResetuiPrefsDialogBaseEstablece el valor por defecto para el estilo de la ventana de Fragmentos Resets the Snippets window styleuiPrefsDialogBaseRestaurar el tipo de letra de la lista de resultados al valor por defecto del sistema1Resets the result list font to the system defaultuiPrefsDialogBasedRestablecer la hoja de estilo al valor por defecto!Resets the style sheet to defaultuiPrefsDialogBase&Lista de resultadosResult ListuiPrefsDialogBaseLTipo de letra para lista de resultadosResult list fontuiPrefsDialogBase&Buscar al escribir.Search as you type.uiPrefsDialogBase,Parmetros de bsquedaSearch parametersuiPrefsDialogBaseRArchivo CSS para la ventana de fragmentosSnippets window CSS fileuiPrefsDialogBasehIniciar con la ventana de bsqueda avanzada abierta.'Start with advanced search dialog open.uiPrefsDialogBase$Lenguaje de racesStemming languageuiPrefsDialogBaseHoja de estiloStyle sheetuiPrefsDialogBaseXPalabras de contexto del resumen sintetizado Synthetic abstract context wordsuiPrefsDialogBaseVTamao del resumen sintetizado (caracteres)$Synthetic abstract size (characters)uiPrefsDialogBase~Textos ms all de este tamao no sern resaltados (muy lento).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBaseLas palabras en la lista sern convertidas automticamente a clusulas ext:xxx en el ingreso de lenguaje de consulta.bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase"Cambiar seleccinToggle selecteduiPrefsDialogBase&Interfaz de usuarioUser interfaceuiPrefsDialogBase.Preferencias de usuarioUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_lt.ts0000644000175000017500000035534312602163537016643 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        Visos sąlygos
    
    
        Any clause
        Bet kuri sąlyga
    
    
        texts
        tekstai
    
    
        spreadsheets
        skaičiuoklės
    
    
        presentations
        prezentacijos
    
    
        media
        media
    
    
        messages
        žinutės
    
    
        other
        kita
    
    
        Bad multiplier suffix in size filter
        
    
    
        text
        tekstas
    
    
        spreadsheet
        skaičiuoklės
    
    
        presentation
        prezentacijos
    
    
        message
        pranešimas
    


    AdvSearchBase
    
        Advanced search
        Išsamesnė paieška
    
    
        Search for <br>documents<br>satisfying:
        Ieškoti <br>dokumentų<br>tenkinančių:
    
    
        Delete clause
        Ištrinti sąlygą
    
    
        Add clause
        Pridėti sąlygą
    
    
        Restrict file types
        Apriboti bylų tipus
    
    
        Check this to enable filtering on file types
        Pažymėti, jei norite filtruoti pagal bylų tipus
    
    
        By categories
        Pagal kategorijas
    
    
        Check this to use file categories instead of raw mime types
        Pažymėti, jei norite naudoti bylų kategorijas vietoje mime tipų
    
    
        Save as default
        Išsaugoti kaip numatytąjį
    
    
        Searched file types
        Ieškota bylų tipų
    
    
        All ---->
        Visi ---->
    
    
        Sel ----->
        Pas ----->
    
    
        <----- Sel
        <----- Pas
    
    
        <----- All
        <----- Visi
    
    
        Ignored file types
        Ignoruoti bylų tipai
    
    
        Enter top directory for search
        Įrašykite viršutinio lygio direktoriją paieškai
    
    
        Browse
        Naršyti
    
    
        Restrict results to files in subtree:
        Pateikti rezultatus byloms submedyje:
    
    
        Start Search
        Pradėti paiešką
    
    
        Close
        Uždaryti
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.
        Visi kairėje esantys netušti laukai bus sujungiami AND (visi) arba OR (bet kuris) pagalba. <br> "Bet kuris" "Visi" ir "Nei vienas" laukų tipai gali priimti paprastų žodžių mišinį ir frazes pažymėtas dvigubomis kabutėmis. <br> Tušti laukeliai ignoruojami.
    
    
        Invert
        
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        
    
    
        Min. Size
        
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        
    
    
        Max. Size
        
    
    
        Filter
        
    
    
        From
        
    
    
        To
        
    
    
        Check this to enable filtering on dates
        
    
    
        Filter dates
        
    
    
        Find
        
    
    
        Check this to enable filtering on sizes
        
    
    
        Filter sizes
        
    


    CronToolW
    
        Cron Dialog
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        
    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        
    
    
        Hours (* or 0-23)
        
    
    
        Minutes (0-59)
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        
    
    
        Enable
        
    
    
        Disable
        
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        
    
    
        Error installing cron entry. Bad syntax in fields ?
        
    


    EditDialog
    
        Dialog
        
    


    EditTrans
    
        Source path
        
    
    
        Local path
        
    
    
        Config error
        
    
    
        Original path
        
    


    EditTransBase
    
        Path Translations
        
    
    
        Setting path translations for 
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Add
        
    
    
        Delete
        
    
    
        Cancel
        Atšaukti
    
    
        Save
        
    


    FirstIdxDialog
    
        First indexing setup
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        
    
    
        Indexing configuration
        
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        
    
    
        Indexing schedule
        
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        
    
    
        Start indexing now
        
    


    FragButs
    
        %1 not found.
        
    
    
        %1:
 %2
        
    
    
        Query Fragments
        
    


    IdxSchedW
    
        Index scheduling setup
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        
    
    
        Cron scheduling
        
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        
    
    
        Real time indexing start up
        
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        
    


    ListDialog
    
        Dialog
        
    
    
        GroupBox
        
    


    Main
    
        Configuration problem (dynconf
        Nustatymų bėda (dynconf
    
    
        No db directory in configuration
        Nustatymuose nerandama duomenų bazės bylos
    
    
        Could not open database in 
        Nepavyko atidaryti duomenų bazės
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        
    


    Preview
    
        Close Tab
        Uždarykite auselę
    
    
        Cannot create temporary directory
        Nepavyksta sukurti laikinos direktorijos
    
    
        Cancel
        Atšaukti
    
    
        Missing helper program: 
        Trūksta pagalbinės programos:
    
    
        Can't turn doc into internal representation for 
        Nepavyksta pervesti dokumento į vidinę buseną
    
    
        Creating preview text
        Kuriamas peržvalgos tekstas
    
    
        Loading preview text into editor
        Įkeliamas į redaktorių peržvalgos tekstas
    
    
        &Search for:
        &Ieškoti:
    
    
        &Next
        &Sekantis
    
    
        &Previous
        &Ankstesnis
    
    
        Clear
        Išvalyti
    
    
        Match &Case
        Atitaikyti &Atvejį 
    
    
        Error while loading file
        
    


    PreviewTextEdit
    
        Show fields
        Rodyti laukus
    
    
        Show main text
        Rodyti pagrindinį tekstą
    
    
        Print
        Spausdinti
    
    
        Print Current Preview
        Spausdinti kaip matoma peržiūroje
    
    
        Show image
        
    
    
        Select All
        
    
    
        Copy
        
    
    
        Save document to file
        
    
    
        Fold lines
        
    
    
        Preserve indentation
        
    


    QObject
    
        Global parameters
        Globalūs parametrai
    
    
        Local parameters
        Lokalūs parametrai
    
    
        <b>Customised subtrees
        <b>Pritaikyti direktorijų<br> submedžiai
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.
        Subdirektorijų, kuriose dalį parametrų reikia pakeisti, sąrašas.<br> Numatytoji reikšmė: tuščia.
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.
        <i>Nurodyti parametrai taikomi arba visoms direktorijoms, arba subdirektorijoms,<br> jei kuri jų prieš tai pažymimos. Pridėti ir ištrinti direktorijų vardus galite<br> spausdami +/- mygtukus.
    
    
        Skipped names
        Neįtraukti vardai
    
    
        These are patterns for file or directory  names which should not be indexed.
        Bylų arba direktorijų, kurių nedera indeksuoti, vardų šablonai.
    
    
        Default character set
        Numatytoji simbolių aibė
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        Pasirinkta simbolių aibė bus naudojama skaityti bylų, kurių simbolių aibės nepavyksta nustatyti, turiniui.<br>Numatytoji vertė yra nepasirinkti konkrečios simbolių aibės - tokiu atveju naudojama NLS aplinkos vertė.
    
    
        Follow symbolic links
        Sekti simbolines nuorodas
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        Indeksavimo metu sekti simbolines nuorodas. Numatytasis elgesys yra nesekti, bandant išvengti dvigubo indeksavimo
    
    
        Index all file names
        Indeksuoti visų bylų vardus
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        Indeksuoti bylų, kurių turinio nepavyksta perskaityti, vardus. Numatytoji reikšmė: teisybė
    
    
        Beagle web history
        Beagle tinklo istorija
    
    
        Search parameters
        Paieškos parametrai
    
    
        Web history
        
    
    
        Default<br>character set
        
    
    
        Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        
    
    
        Ignored endings
        
    
    
        These are file name endings for files which will be indexed by name only 
(no MIME type identification attempt, no decompression, no content indexing).
        
    


    QWidget
    
        Create or choose save directory
        
    
    
        Choose exactly one directory
        
    
    
        Could not read directory: 
        
    
    
        Unexpected file name collision, cancelling.
        
    
    
        Cannot extract document: 
        
    
    
        &Preview
        &Peržiūra
    
    
        &Open
        
    
    
        Open With
        
    
    
        Run Script
        
    
    
        Copy &File Name
        Kopijuoti &Bylos vardą
    
    
        Copy &URL
        Kopijuoti &URL
    
    
        &Write to File
        &Įrašyti į bylą
    
    
        Save selection to files
        
    
    
        Preview P&arent document/folder
        Peržiūrėti &Aukštesnio lygio dokumentus/direktorijas
    
    
        &Open Parent document/folder
        Atidaryti &Aukštesnio lygio dokumentus/direktorijas
    
    
        Find &similar documents
        Rasti &panašius dokumentus
    
    
        Open &Snippets window
        
    
    
        Show subdocuments / attachments
        
    


    RTIToolW
    
        Real time indexing automatic start
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        
    
    
        Start indexing daemon with my desktop session.
        
    
    
        Also start indexing daemon right now.
        
    
    
        Replacing: 
        
    
    
        Replacing file
        
    
    
        Can't create: 
        
    
    
        Warning
        Įspėjimas
    
    
        Could not execute recollindex
        
    
    
        Deleting: 
        
    
    
        Deleting file
        
    
    
        Removing autostart
        
    
    
        Autostart file deleted. Kill current process too ?
        
    


    RclMain
    
        (no stemming)
        (no stemming)
    
    
        (all languages)
        (visos kalbos)
    
    
        error retrieving stemming languages
        error retrieving stemming languages
    
    
        Indexing in progress: 
        Indeksuojama:
    
    
        Files
        Failai
    
    
        Purge
        Išvalyti
    
    
        Stemdb
        Stemdb
    
    
        Closing
        Uždaroma
    
    
        Unknown
        Nežinoma
    
    
        Can't start query: 
        Nepavyksta pradėti vykdyti užklausą:
    
    
        Query results
        Užklausos rezultatai
    
    
        Cannot retrieve document info from database
        Nepavyksta išgauti iš duomenų bazės informacijos apie dokumentą 
    
    
        Warning
        Įspėjimas
    
    
        Can't create preview window
        Nepavyksta sukurti peržiūros lango
    
    
        This search is not active any more
        Ši paieška daugiau nevykdoma
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeconf file
        Netinkamos peržiūros komandinė eilutė  %1: [%2]
Prašome patikrinti mimeconf bylą
    
    
        Cannot extract document or create temporary file
        Nepavyksta perskaityti dokumento arba sukurti laikinos bylos
    
    
        Executing: [
        Vykdoma: [
    
    
        About Recoll
        Apie Recoll
    
    
        History data
        Istorijos duomenys
    
    
        Document history
        Dokumentų istorija
    
    
        Update &Index
        Atnaujinti &Indeksą
    
    
        Indexing interrupted
        indeksavimas pertrauktas
    
    
        Stop &Indexing
        Sustabdyti &Indeksavimą
    
    
        All
        Visi
    
    
        media
        media
    
    
        message
        pranešimas
    
    
        other
        kita
    
    
        presentation
        prezentacijos
    
    
        spreadsheet
        skaičiuoklės
    
    
        text
        tekstas
    
    
        sorted
        surūšiuota
    
    
        filtered
        filtruotas
    
    
        External applications/commands needed and not found for indexing your file types:


        Reikalingos pilnam indeksavimui, tačiau nerandamos išorinės programos/komandos: 


    
    
        No helpers found missing
        Randamos visos reikalingos pagalbinės programos
    
    
        Missing helper programs
        Trūksta pagalbinių programų
    
    
        Save file dialog
        Išsaugoti failą forma
    
    
        Choose a file name to save under
        Pasirinkite bylos vardą, kuriuo išsaugosite bylą
    
    
        Document category filter
        Dokumentų kategorijų filtras
    
    
        No external viewer configured for mime type [
        Nustatymuose nenumatyta jokia išorinė peržiūros programa šiam mime tipui [
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        Nurodyta peržiūros programa šiam mime tipui %1: %2 nerandama.
Ar norėtumete iššaukti nustatymų langą?
    
    
        Can't access file: 
        
    
    
        Can't uncompress file: 
        
    
    
        Save file
        
    
    
        Result count (est.)
        
    
    
        Query details
        Užklausos detalės
    
    
        Could not open external index. Db not open. Check external indexes list.
        
    
    
        No results found
        
    
    
        None
        
    
    
        Updating
        
    
    
        Done
        
    
    
        Monitor
        
    
    
        Indexing failed
        
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        
    
    
        Erasing index
        
    
    
        Reset the index and start from scratch ?
        
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program
        
    
    
        Error
        
    
    
        Index not open
        
    
    
        Index query error
        
    
    
        Content has been indexed for these mime types:
        
    
    
        Can't update index: indexer running
        
    
    
        Indexed MIME Types
        
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        
    
    
        Cannot find parent document
        
    
    
        Indexing did not run yet
        
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        
    
    
        Sub-documents and attachments
        
    
    
        Document filter
        
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. 
        
    
    
        Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. 
        
    
    
        The indexer is running so things should improve when it's done. 
        
    
    
        The document belongs to an external indexwhich I can't update. 
        
    
    
        Click Cancel to return to the list. Click Ignore to show the preview anyway. 
        
    
    
        Duplicate documents
        
    
    
        These Urls ( | ipath) share the same content:
        
    
    
        Bad desktop app spec for %1: [%2]
Please check the desktop file
        
    


    RclMainBase
    
        Recoll
        Recoll
    
    
        Search tools
        Paieškos įrankiai
    
    
        Result list
        Rezultatų sąrašas
    
    
        &File
        &Byla
    
    
        &Tools
        &Įrankiai
    
    
        &Preferences
        &Nustatymai
    
    
        &Help
        &Pagalba
    
    
        E&xit
        I&šeiti
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        Update &index
        Atnaujinti &Indeksą
    
    
        &Erase document history
        &Ištrinti dokumentų istoriją
    
    
        &About Recoll
        &Apie Recoll
    
    
        &User manual
        &Vartotojo vadovas
    
    
        Document &History
        Dokumentų &Istorija
    
    
        Document  History
        Dokumentų Istorija
    
    
        &Advanced Search
        &Išsamesnė Paieška
    
    
        Advanced/complex  Search
        Išsamesnė Paieška
    
    
        &Sort parameters
        &Surūšiuoti parametrai
    
    
        Sort parameters
        Surūšiuoti parametrus
    
    
        Term &explorer
        Raktinių žodžių &tyrinėtojas
    
    
        Term explorer tool
        Raktinių žodžių tyrinėjimo įrankis
    
    
        Next page
        Sekantis puslapis
    
    
        Next page of results
        Sekantis rezultatų puslapis
    
    
        First page
        Pirmas puslapis
    
    
        Go to first page of results
        Pereiti į pirmą rezultatų puslapį
    
    
        Previous page
        Prieš tai buvęs puslapis
    
    
        Previous page of results
        Ankstesnis rezultatų puslapis
    
    
        &Query configuration
        &Užklausų nustatymai
    
    
        External index dialog
        Išorinių indeksų langas
    
    
        &Indexing configuration
        &Indeksavimo nustatymai
    
    
        All
        Visi
    
    
        &Show missing helpers
        &Trūkstamos pagalbinės programos
    
    
        PgDown
        
    
    
        PgUp
        
    
    
        &Full Screen
        
    
    
        F11
        
    
    
        Full Screen
        
    
    
        &Erase search history
        
    
    
        Sort by dates from oldest to newest
        
    
    
        Sort by dates from newest to oldest
        
    
    
        Show Query Details
        
    
    
        &Rebuild index
        
    
    
        &Show indexed types
        
    
    
        Shift+PgUp
        
    
    
        &Indexing schedule
        
    
    
        E&xternal index dialog
        
    
    
        &Index configuration
        
    
    
        &GUI configuration
        
    
    
        &Results
        
    
    
        Sort by date, oldest first
        
    
    
        Sort by date, newest first
        
    
    
        Show as table
        
    
    
        Show results in a spreadsheet-like table
        
    
    
        Save as CSV (spreadsheet) file
        
    
    
        Saves the result into a file which you can load in a spreadsheet
        
    
    
        Next Page
        
    
    
        Previous Page
        
    
    
        First Page
        
    
    
        Query Fragments
        
    
    
            With failed files retrying
        
    
    
        Next update will retry previously failed files
        
    


    RclTrayIcon
    
        Restore
        
    
    
        Quit
        
    


    RecollModel
    
        File name
        Bylos vardas
    
    
        Mime type
        Mime tipas
    
    
        Date
        Data
    
    
        Abstract
        
    
    
        Author
        
    
    
        Document size
        
    
    
        Document date
        
    
    
        File size
        
    
    
        File date
        
    
    
        Keywords
        
    
    
        Original character set
        
    
    
        Relevancy rating
        
    
    
        Title
        
    
    
        URL
        
    
    
        Mtime
        
    
    
        Date and time
        
    
    
        Ipath
        
    
    
        MIME type
        
    


    ResList
    
        Result list
        Rezultatų sąrašas
    
    
        (show query)
        (rodyti užklausą)
    
    
        &Preview
        &Peržiūra
    
    
        Copy &File Name
        Kopijuoti &Bylos vardą
    
    
        Copy &URL
        Kopijuoti &URL
    
    
        Find &similar documents
        Rasti &panašius dokumentus
    
    
        Query details
        Užklausos detalės
    
    
        filtered
        išfiltruota
    
    
        sorted
        surūšiuota
    
    
        Document history
        Dokumentų istorija
    
    
        <p><b>No results found</b><br>
        <p><b>Nerasta rezultatų</b><br>
    
    
        Previous
        Ankstesnis
    
    
        Next
        Kitas
    
    
        Unavailable document
        Neprieinamas dokumentas
    
    
        Preview
        Peržiūra
    
    
        Open
        Atidaryti
    
    
        <p><i>Alternate spellings (accents suppressed): </i>
        <p><i>Kiti galimi tarimai (be akcentų): </i>
    
    
        &Write to File
        &Įrašyti į bylą
    
    
        Preview P&arent document/folder
        Peržiūrėti &Aukštesnio lygio dokumentus/direktorijas
    
    
        &Open Parent document/folder
        Atidaryti &Aukštesnio lygio dokumentus/direktorijas
    
    
        Documents
        Dokumentai
    
    
        out of at least
        iš bent
    
    
        for
        
    
    
        <p><i>Alternate spellings: </i>
        
    
    
        Result count (est.)
        
    
    
        Snippets
        
    


    ResTable
    
        &Reset sort
        
    
    
        &Delete column
        
    
    
        Save table to CSV file
        
    
    
        Can't open/create file: 
        
    
    
        &Preview
        &Peržiūra
    
    
        Copy &File Name
        Kopijuoti &Bylos vardą
    
    
        Copy &URL
        Kopijuoti &URL
    
    
        &Write to File
        &Įrašyti į bylą
    
    
        Find &similar documents
        Rasti &panašius dokumentus
    
    
        Preview P&arent document/folder
        Peržiūrėti &Aukštesnio lygio dokumentus/direktorijas
    
    
        &Open Parent document/folder
        Atidaryti &Aukštesnio lygio dokumentus/direktorijas
    
    
        &Save as CSV
        
    
    
        Add "%1" column
        
    


    ResTableDetailArea
    
        &Preview
        &Peržiūra
    
    
        Copy &File Name
        Kopijuoti &Bylos vardą
    
    
        Copy &URL
        Kopijuoti &URL
    
    
        &Write to File
        &Įrašyti į bylą
    
    
        Find &similar documents
        Rasti &panašius dokumentus
    
    
        Preview P&arent document/folder
        Peržiūrėti &Aukštesnio lygio dokumentus/direktorijas
    
    
        &Open Parent document/folder
        Atidaryti &Aukštesnio lygio dokumentus/direktorijas
    


    ResultPopup
    
        &Preview
        &Peržiūra
    
    
        Copy &File Name
        Kopijuoti &Bylos vardą
    
    
        Copy &URL
        Kopijuoti &URL
    
    
        &Write to File
        &Įrašyti į bylą
    
    
        Preview P&arent document/folder
        Peržiūrėti &Aukštesnio lygio dokumentus/direktorijas
    
    
        &Open Parent document/folder
        Atidaryti &Aukštesnio lygio dokumentus/direktorijas
    
    
        Find &similar documents
        Rasti &panašius dokumentus
    


    SSearch
    
        Any term
        Bet kuris raktinis žodis
    
    
        All terms
        Visi raktiniai žodžiai
    
    
        File name
        Bylos vardas
    
    
        Query language
        Užklausų kalba
    
    
        Bad query string
        Netinkamai pateikta užklausa
    
    
        Out of memory
        Nepakanka atminties
    
    
        Too many completions
        Per daug galimų užbaigimų
    
    
        Completions
        Užbaigimai
    
    
        Select an item:
        Pasirinkti įrašą:
    
    
        Enter file name wildcard expression.
        
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Čia įveskite paieškos raktinius žodžius. Įrašykite ESC SPC rašomo termino užbaigimui.
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        
    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        Išvalyti
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        Ištrinti paieškos įrašą
    
    
        Search
        Ieškoti
    
    
        Start query
        Pradėti užklausą
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Čia įveskite paieškos raktinius žodžius. Įrašykite ESC SPC rašomo termino užbaigimui.
    
    
        Choose search type.
        Pasirinkite paieškos tipą.
    


    SearchClauseW
    
        SearchClauseW
        SearchClauseW
    
    
        Any of these
        Bet kuris šių
    
    
        All of these
        Visi šie
    
    
        None of these
        Nei vienas šių
    
    
        This phrase
        Ši frazė
    
    
        Terms in proximity
        Artimi raktiniai žodžiai
    
    
        File name matching
        Bylos vardą atitinka
    
    
        Select the type of query that will be performed with the words
        Pasirinkite užklausos tipą atliekamą su žodžiais
    
    
        Number of additional words that may be interspersed with the chosen ones
        Papildomų žodžių skaičius kurie gali  interspersed with the chosen ones
    
    
        No field
        
    
    
        Any
        
    
    
        All
        Visi
    
    
        None
        
    
    
        Phrase
        
    
    
        Proximity
        
    
    
        File name
        Bylos vardas
    


    Snippets
    
        Snippets
        
    
    
        Find:
        
    
    
        Next
        Kitas
    
    
        Prev
        
    


    SnippetsW
    
        Search
        Ieškoti
    
    
        <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p>
        
    


    SortForm
    
        Date
        Data
    
    
        Mime type
        Mime tipas
    


    SortFormBase
    
        Sort Criteria
        Rūšiavimo kriterijus
    
    
        Sort the
        Rūšiuoti
    
    
        most relevant results by:
        tinkamiausi rezultatai pagal:
    
    
        Descending
        Mažėjimo tvarka
    
    
        Apply
        Pritaikyti
    
    
        Close
        Uždaryti
    


    SpellBase
    
        Term Explorer
        Raktinių žodžių tyrinėjimas
    
    
        &Expand 
        &Išplėsti
    
    
        Alt+E
        Alt+E
    
    
        &Close
        &Uždaryti
    
    
        Alt+C
        Alt+C
    
    
        Term
        Raktinis žodis
    
    
        No db info.
        
    
    
        Match
        
    
    
        Case
        
    
    
        Accents
        
    


    SpellW
    
        Wildcards
        Wildcards
    
    
        Regexp
        Regexp
    
    
        Stem expansion
        Stem expansion
    
    
        Spelling/Phonetic
        Tarimas/Fonetika
    
    
        error retrieving stemming languages
        error retrieving stemming languages
    
    
        Aspell init failed. Aspell not installed?
        Aspell iššaukimas nepavyko. Aspell programa neįdiegta?
    
    
        Aspell expansion error. 
        Aspell praplėtimų klaida.
    
    
        No expansion found
        Nerasta praplėtimų
    
    
        Term
        Raktinis žodis
    
    
        Doc. / Tot.
        
    
    
        Index: %1 documents, average length %2 terms.%3 results
        
    
    
        %1 results
        
    
    
        List was truncated alphabetically, some frequent 
        
    
    
        terms may be missing. Try using a longer root.
        
    
    
        Show index statistics
        
    
    
        Number of documents
        
    
    
        Average terms per document
        
    
    
        Smallest document length
        
    
    
        Longest document length
        
    
    
        Database directory size
        
    
    
        MIME types:
        
    
    
        Item
        
    
    
        Value
        
    


    UIPrefsDialog
    
        error retrieving stemming languages
        error retrieving stemming languages
    
    
        The selected directory does not appear to be a Xapian index
        Atrodo, jog pasirinkta direktorija nėra Xapian indekso direktorija
    
    
        This is the main/local index!
        Pagrindinis/localus indekas!
    
    
        The selected directory is already in the index list
        Pasirinkta direktorija jau yra indekso sąraše
    
    
        Select xapian index directory (ie: /home/buddy/.recoll/xapiandb)
        Pasirinkite Xapian indekso direktoriją (pav: /home/buddy/.recoll/xapiandb)
    
    
        Choose
        Naršyti
    
    
        Result list paragraph format (erase all to reset to default)
        
    
    
        Result list header (default is empty)
        
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        
    
    
        At most one index should be selected
        
    
    
        Cant add index with different case/diacritics stripping option
        
    
    
        Default QtWebkit font
        
    


    UIPrefsDialogBase
    
        User preferences
        Vartotojo nustatymai
    
    
        User interface
        Vartotoja aplinka
    
    
        Number of entries in a result page
        Įrašų skaičius rezultatų puslapyje
    
    
        Result list font
        Rezultatų sąrašo šriftas
    
    
        Helvetica-10
        Helvetica-10
    
    
        Opens a dialog to select the result list font
        Pasirinkite rezultatų sąrašo šriftą
    
    
        Reset
        Gražinti numatytąją formą
    
    
        Resets the result list font to the system default
        Gražina numatytąją rezultatų sąrašo srifto vertę
    
    
        Result paragraph<br>format string
        Rezultatų paragrafo<br>formatas
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Apibūdina kiekvieno rezultatų įrašo formatą:<br>%A Santrauka<br> %D Data<br> %I Ikona<br> %K Raktiniai žodžiai (jei yra)<br> %L Peržiūros ir Redagavimo nuorodos<br> %M Mime tipai<br> %N Rezultų skaičius<br> %R Tinkamumas procentais<br> %S Informacija apie dydį<br> %T Pavadinimas<br> %U Url<br>
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Tekstai viršijantys šį dydį nebus nuspalvinami peržiūros metu (per didelė apkrova).
    
    
        Maximum text size highlighted for preview (megabytes)
        Didžiausia teksto, pažymėto peržiūrai, apimtis (megabaitai)
    
    
        Auto-start simple search on whitespace entry.
        Pradėti paprastąją paiešką įvedus tuščio tarpelio simoblį.
    
    
        Start with advanced search dialog open.
        Pradėti nuo išsamesnės paieškos lango.
    
    
        Start with sort dialog open.
        Pradėti su atidarytu rūšiavimo langu.
    
    
        Use desktop preferences to choose document editor.
        Naudoti darbalaukio nustatymus parenkant dokumentų redaktorių.
    
    
        Remember sort activation state.
        Įsiminti rūšiavimo pasirinkimus (nedings perkrovus).
    
    
        Search parameters
        Paieškos parametrai
    
    
        Stemming language
        Stemming kalba
    
    
        Automatically add phrase to simple searches
        Pridėti prie paprastos paieškos frazę
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Paieška bus pakeista (pav. rolling stones -> rolling or stones or (rolling phrase 2 stones)). Teikiama aiški pirmenybė rezultatams kuriuose rasti raktiniai žodžiai atitinka įvestus.
    
    
        Dynamically build abstracts
        Dinamiškai sukurti santraukas
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Ar pabandome sukurti santraukas remdamiesi užklausų raktinių žodžių kontekstu?
Didelės apimties dokumentams gali lėtai veikti.
    
    
        Replace abstracts from documents
        Pakeisti dokumentuose randamas santraukas
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Ar sukuriame dirbtinę santrauką, jei dokumente jau ji yra? 
    
    
        Synthetic abstract size (characters)
        Dirbtinės santraukos dydis (simbolių skaičius)
    
    
        Synthetic abstract context words
        Dirbtinės santraukos konteksto žodžiai
    
    
        External Indexes
        Išoriniai indeksai
    
    
        External indexes
        Išoriniai indeksai
    
    
        Toggle selected
        Įjungti/Išjungti pasirinktą
    
    
        Activate All
        Visus aktyvuoti
    
    
        Deactivate All
        Visus deaktyvuoti
    
    
        Remove selected
        Pažymėtus pašalinti
    
    
        Remove from list. This has no effect on the disk index.
        Pašalinti iš sąrašo. Neturi jokio poveikio indeksui diske.
    
    
        Add index
        Pridėti indeksą
    
    
        Select the xapiandb directory for the index you want to add, then click Add Index
        Pasirinkti xapiandb direktoriją kurios indeką norite pridėti, tada paspauskite Pridėti Indeksą
    
    
        Browse
        Naršyti
    
    
        &OK
        &Gerai
    
    
        Apply changes
        Pritaikyti pakeitimus
    
    
        &Cancel
        &Atšaukti
    
    
        Discard changes
        Panaikinti pakeitimus
    
    
        Highlight color for query terms
        Užklausų raktinių žodžių žymėjimo spalvos
    
    
        Prefer Html to plain text for preview.
        Pirmenybę teikti Html formatui peržiūros metu.
    
    
        If checked, results with the same content under different names will only be shown once.
        Pažymėjus, bus rodoma tik viena iš bylų su tuo pačiu turiniu, tačiau skirtingais vardais.
    
    
        Hide duplicate results.
        Slėpti pasikartojančius rezultatus.
    
    
        Choose editor applications
        Pasirinkite redaktorių programas
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Kategorijų filtrą rodyti kaip įrankų juostą (reikalauja perkrovimo).
    


    ViewAction
    
        Changing actions with different current values
        Pakeisti veiksmus su skirtingomis dabartinėmis vertėmis
    
    
        Mime type
        Mime tipas
    
    
        Command
        
    
    
        MIME type
        
    
    
        Desktop Default
        
    
    
        Changing entries with different current values
        
    


    ViewActionBase
    
        Native Viewers
        Sistemos peržiūros programos
    
    
        Select one or several file types, then click Change Action to modify the program used to open them
        Pasirinkite vieną ar kelis bylų tipus, tada paspauskite Keisti Veiksmus norėdami keisti kaip programa juos atidaro
    
    
        File type
        Bylos tipas
    
    
        Action
        Veiksmas
    
    
        Change Action
        Pakeisti veiksmą
    
    
        Close
        Uždaryti
    
    
        Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults.
        Pasirinkite vieną ar kelis mime tipus tada spauskite "Keisti Veiksmus"<br>Taip pat galite uždaryti šį langą ir patikrinti "Naudoti darbalaukio nustatymus"<br>pagrindinėje panelėje? norėdami ignoruoti šį sąrašą ir naudoti numatytasias darbalaukio.
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        
    
    
        Use Desktop preferences by default
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Exception to Desktop preferences
        
    
    
        Action (empty -> recoll default)
        
    
    
        Apply to current selection
        
    
    
        Recoll action:
        
    
    
        current value
        
    
    
        Select same
        
    
    
        <b>New Values:</b>
        
    


    confgui::ConfBeaglePanelW
    
        Steal Beagle indexing queue
        Įtraukti Beagle paruoštus duomenis
    
    
        Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin)
        BEAGLE programa TURI neveikti. Įgalina peržiūrėti beagle paruoštą medžiagą bandant indeksuoti Firefox naršymo<br> istoriją (papildomai reikia įdiegti Firefox Beagle priedą)
    
    
        Web cache directory name
        Naršymo tinkle cache direktorijos vardas
    
    
        The name for a directory where to store the cache for visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        Direktorijos, kurioje saugoma lankytų tinklo svetainių cache, vardas.<br>Santykinis kelias prasideda nuo nustatymų direktorijos.
    
    
        Max. size for the web cache (MB)
        Didžiausias tinklo naršymo cache dydis (MB)
    
    
        Entries will be recycled once the size is reached
        Įrašai bus trinami pasiekus nurodytą dydį
    
    
        Web page store directory name
        
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        
    
    
        Max. size for the web store (MB)
        
    
    
        Process the WEB history queue
        
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)
        
    


    confgui::ConfIndexW
    
        Can't write configuration file
        Nepavyksta įrašyti nustatymų bylos
    


    confgui::ConfParamFNW
    
        Browse
        Naršyti
    
    
        Choose
        Naršyti
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.
        
    
    
        Automatic character case sensitivity
        
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.
        
    
    
        Maximum term expansion count
        
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.
        
    
    
        Maximum Xapian clauses count
        
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.
        
    


    confgui::ConfSubPanelW
    
        Global
        Globalus
    
    
        Max. compressed file size (KB)
        Didžiausias suspaustų bylų dydis (KB)
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        Viršijus pasirinktą suspaustų bylų dydį, jie nebus indeksuojami. Pasirinkite -1 jei nenorite nurodyti ribos, 0, jei nenorite, jog suspaustos bylos būtų indeksuojamos.
    
    
        Max. text file size (MB)
        Didžiausias tekstinės bylos dydis (MB)
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        Viršijus pasirinktą tekstinių bylų dydį, jie nebus indeksuojami. Pasirinkite -1 jei nenorite nurodyti ribos, 0, jei nenorite, jog suspaustos bylos būtų indeksuojamos.
    
    
        Text file page size (KB)
        Tekstinės bylos dydis (KB)
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        Jei vertė nurodyta (nelgyi -1) tekstinės bylos bus suskaidytos į nurodyto dydžio bylas, kurios bus atskirai indeksuojamos. Naudinga atliekant paiešką labai dideliose tekstinėse bylose (pav. log bylose).
    
    
        Max. filter exec. time (S)
        Ilgiausias filtrų veikimo laikas (S)
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit.

        Išorinių filtrų, dirbančių ilgiau nei numatyta, darbas bus nutraukiamas. Taikoma retiems atvejas (pav. postscript) kada dokumentas galėtų priversti filtrą kartoti veiksmus be galo ilgai. 
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        
    
    
        Only mime types
        
    
    
        An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive
        
    
    
        Exclude mime types
        
    
    
        Mime types not to be indexed
        
    


    confgui::ConfTopPanelW
    
        Top directories
        Aukščiausio lygmens direktorijos<br>kuriose vykdomas indeksavimas
    
    
        The list of directories where recursive indexing starts. Default: your home.
        Direktorijų, kuriose pradedamas rekursinis indeksavimas, sąrašas. Numatytoji: namų direktorija.
    
    
        Skipped paths
        Direktorijų, kurių turinys nein-<br>deksuojamas, sąrašas
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
        Direktorijų, kurių turinys nebus indeksuojamas, vardai.<br> Vardo dalis gali būti wildcards. Turi atitikti programos matomus kelius iki direktorijų (pav. jei indeksuoti pradedama nuo '/home/me', o '/home' yra nuoroda į '/usr/home', teisinga vertė bus '/home/me/tmp*', o ne '/usr/home/me/tm*')
    
    
        Stemming languages
        Kalbos naudojamos stemming<br> procesui
    
    
        The languages for which stemming expansion<br>dictionaries will be built.
        Kalbos, kurioms bus sukurti stemming <br>expansion žodynai.
    
    
        Log file name
        Log bylos vardas
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output
        Byla, kurioje bus įrašomos žinutės.<br>Naudokite 'stderr' norėdami išvesti į terminalo langą
    
    
        Log verbosity level
        Log išsamumo lygmuo
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.
        Vertė nustato žiniučių apimtį, nuo vien tik <br>klaidų fiksavimo iki didelės apimties duomenų skirtų debugging.
    
    
        Index flush megabytes interval
        Indekso dalių, įrašomų į diską, dydis (MB)
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 
        Vertė nustato duomenų, kurie indeksuojami tarp įrašymo į diską, apimtį.<br>Padeda valdyti indeksavimo dalies atminties naudojimą. Numatyta vertė yra 10 MB
    
    
        Max disk occupation (%)
        Didžiausia disko atminties naudojimo dalis (%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).
        Viršijus (procentine išraiška) disko atminties panaudojimą indeksavimas bus sustabdytas (vengiant pilnai užpildyti diską).<br>0 reiškia, jog ribos nėra (numatytoji vertė).
    
    
        No aspell usage
        Aspell nebus naudojama
    
    
        Aspell language
        Aspell kalba
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Aspell žodyno kalba ('en', 'fr' ar kita).<br>Jei vertė nenurodyta NLS aplinka pabandys nustatyti tinkamą kalbą (paprastai teisingai). Norėdami sužinoti kas įrašyta Jūsų sistemoje įrašykite 'aspell-config' ir žiūrėkite į dat bylas 'data-dir' direktorijoje.
    
    
        Database directory name
        Duomenų bazės direktorijos vardas
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the  configuration directory. The default is 'xapiandb'.
        Direktorijos, kurioje bus saugomas indeksas, vardas<br>Laikoma, jog santykinio keliio iki direktorijos pradžia yra nustatymų direktorija. Numatytoji yra 'xapiandb'. 
    
    
        Use system's 'file' command
        Naudoti sistemos 'file' komandą
    
    
        Use the system's 'file' command if internal<br>mime type identification fails.
        Jei nepavyks atpažinti mime tipo<br>naudoti sistemos 'file' komandą. 
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 
        Nurodo nenaudoti aspell programos kuriant tarimo aproksimacijas raktinių žodžių tyrinėjimo įrankyje.<br>Naudinga, jei aspell neveikia arba neįdiegta.
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
        
    
    
        Unac exceptions
        
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.
        
    


    uiPrefsDialogBase
    
        User preferences
        Vartotojo nustatymai
    
    
        User interface
        Vartotoja aplinka
    
    
        Number of entries in a result page
        Įrašų skaičius rezultatų puslapyje
    
    
        If checked, results with the same content under different names will only be shown once.
        Pažymėjus, bus rodoma tik viena iš bylų su tuo pačiu turiniu, tačiau skirtingais vardais.
    
    
        Hide duplicate results.
        Slėpti pasikartojančius rezultatus.
    
    
        Highlight color for query terms
        Užklausų raktinių žodžių žymėjimo spalvos
    
    
        Result list font
        Rezultatų sąrašo šriftas
    
    
        Opens a dialog to select the result list font
        Pasirinkite rezultatų sąrašo šriftą
    
    
        Helvetica-10
        Helvetica-10
    
    
        Resets the result list font to the system default
        Gražina numatytąją rezultatų sąrašo srifto vertę
    
    
        Reset
        Gražinti numatytąją formą
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Apibūdina kiekvieno rezultatų įrašo formatą:<br>%A Santrauka<br> %D Data<br> %I Ikona<br> %K Raktiniai žodžiai (jei yra)<br> %L Peržiūros ir Redagavimo nuorodos<br> %M Mime tipai<br> %N Rezultų skaičius<br> %R Tinkamumas procentais<br> %S Informacija apie dydį<br> %T Pavadinimas<br> %U Url<br>
    
    
        Result paragraph<br>format string
        Rezultatų paragrafo<br>formatas
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Tekstai viršijantys šį dydį nebus nuspalvinami peržiūros metu (per didelė apkrova).
    
    
        Maximum text size highlighted for preview (megabytes)
        Didžiausia teksto, pažymėto peržiūrai, apimtis (megabaitai)
    
    
        Use desktop preferences to choose document editor.
        Naudoti darbalaukio nustatymus parenkant dokumentų redaktorių.
    
    
        Choose editor applications
        Pasirinkite redaktorių programas
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Kategorijų filtrą rodyti kaip įrankų juostą (reikalauja perkrovimo).
    
    
        Auto-start simple search on whitespace entry.
        Pradėti paprastąją paiešką įvedus tuščio tarpelio simoblį.
    
    
        Start with advanced search dialog open.
        Pradėti nuo išsamesnės paieškos lango.
    
    
        Start with sort dialog open.
        Pradėti su atidarytu rūšiavimo langu.
    
    
        Remember sort activation state.
        Įsiminti rūšiavimo pasirinkimus (nedings perkrovus).
    
    
        Prefer Html to plain text for preview.
        Pirmenybę teikti Html formatui peržiūros metu.
    
    
        Search parameters
        Paieškos parametrai
    
    
        Stemming language
        Stemming kalba
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Paieška bus pakeista (pav. rolling stones -> rolling or stones or (rolling phrase 2 stones)). Teikiama aiški pirmenybė rezultatams kuriuose rasti raktiniai žodžiai atitinka įvestus.
    
    
        Automatically add phrase to simple searches
        Pridėti prie paprastos paieškos frazę
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Ar pabandome sukurti santraukas remdamiesi užklausų raktinių žodžių kontekstu?
Didelės apimties dokumentams gali lėtai veikti.
    
    
        Dynamically build abstracts
        Dinamiškai sukurti santraukas
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Ar sukuriame dirbtinę santrauką, jei dokumente jau ji yra? 
    
    
        Replace abstracts from documents
        Pakeisti dokumentuose randamas santraukas
    
    
        Synthetic abstract size (characters)
        Dirbtinės santraukos dydis (simbolių skaičius)
    
    
        Synthetic abstract context words
        Dirbtinės santraukos konteksto žodžiai
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        
    
    
        Query language magic file name suffixes.
        
    
    
        Enable
        
    
    
        External Indexes
        Išoriniai indeksai
    
    
        Toggle selected
        Įjungti/Išjungti pasirinktą
    
    
        Activate All
        Visus aktyvuoti
    
    
        Deactivate All
        Visus deaktyvuoti
    
    
        Remove from list. This has no effect on the disk index.
        Pašalinti iš sąrašo. Neturi jokio poveikio indeksui diske.
    
    
        Remove selected
        Pažymėtus pašalinti
    
    
        Add index
        Pridėti indeksą
    
    
        Apply changes
        Pritaikyti pakeitimus
    
    
        &OK
        &Gerai
    
    
        Discard changes
        Panaikinti pakeitimus
    
    
        &Cancel
        &Atšaukti
    
    
        Abstract snippet separator
        
    
    
        Style sheet
        
    
    
        Opens a dialog to select the style sheet file
        
    
    
        Choose
        Naršyti
    
    
        Resets the style sheet to default
        
    
    
        Result List
        
    
    
        Edit result paragraph format string
        
    
    
        Edit result page html header insert
        
    
    
        Date format (strftime(3))
        
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        
    
    
        Autophrase term frequency threshold percentage
        
    
    
        Plain text to HTML line style
        
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        
    
    
        <BR>
        
    
    
        <PRE>
        
    
    
        <PRE> + wrap
        
    
    
        Disable Qt autocompletion in search entry.
        
    
    
        Search as you type.
        
    
    
        Paths translations
        
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        
    
    
        Snippets window CSS file
        
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        
    
    
        Resets the Snippets window style
        
    
    
        Decide if document filters are shown as radio buttons, toolbar combobox, or menu.
        
    
    
        Document filter choice style:
        
    
    
        Buttons Panel
        
    
    
        Toolbar Combobox
        
    
    
        Menu
        
    
    
        Show system tray icon.
        
    
    
        Close to tray instead of exiting.
        
    


recoll-1.21.5/qtgui/i18n/recoll_uk.ts0000644000175000017500000035744712602163537016652 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        Всі поля
    
    
        Any clause
        Будь-яке поле
    
    
        texts
        тексти
    
    
        spreadsheets
        таблиці
    
    
        presentations
        презентації
    
    
        media
        мультимедіа
    
    
        messages
        повідомлення
    
    
        other
        інше
    
    
        Bad multiplier suffix in size filter
        
    
    
        text
        текст
    
    
        spreadsheet
        таблиці
    
    
        presentation
        презентації
    
    
        message
        повідомлення
    


    AdvSearchBase
    
        Advanced search
        Складний пошук
    
    
        Restrict file types
        Обмежити типи файлів
    
    
        Save as default
        Зберегти як типові
    
    
        Searched file types
        Бажані
    
    
        All ---->
        Всі ----->
    
    
        Sel ----->
        Виб ----->
    
    
        <----- Sel
        <----- Виб
    
    
        <----- All
        <----- Всі
    
    
        Ignored file types
        Ігноровані
    
    
        Enter top directory for search
        Шукати тільки у каталозі
    
    
        Browse
        Перегляд
    
    
        Restrict results to files in subtree:
        Обмежити пошук по файлах з піддерева:
    
    
        Start Search
        Шукати
    
    
        Search for <br>documents<br>satisfying:
        Шукати<br>документи,</br>що задовільняють:
    
    
        Delete clause
        Прибрати поле
    
    
        Add clause
        Додати поле
    
    
        Check this to enable filtering on file types
        Використовувати фільтрацію по типах файлів
    
    
        By categories
        По категоріях
    
    
        Check this to use file categories instead of raw mime types
        Використовувати категорії замість типів MIME
    
    
        Close
        Закрити
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.
        Всі непусті поля буде об'єднано за допомогою АБО ("усі слова") або ТА ("будь-які слова").<br>Поля типу "будь-які слова", "усі слова" та "без цих слів" приймають суміш слів та фраз у подвійних лапках.<br>Поля без даних не беруться до уваги.
    
    
        Invert
        
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        
    
    
        Min. Size
        
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        
    
    
        Max. Size
        
    
    
        Filter
        
    
    
        From
        
    
    
        To
        
    
    
        Check this to enable filtering on dates
        
    
    
        Filter dates
        
    
    
        Find
        
    
    
        Check this to enable filtering on sizes
        
    
    
        Filter sizes
        
    


    CronToolW
    
        Cron Dialog
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        
    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        
    
    
        Hours (* or 0-23)
        
    
    
        Minutes (0-59)
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        
    
    
        Enable
        
    
    
        Disable
        
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        
    
    
        Error installing cron entry. Bad syntax in fields ?
        
    


    EditDialog
    
        Dialog
        
    


    EditTrans
    
        Source path
        
    
    
        Local path
        
    
    
        Config error
        
    
    
        Original path
        
    


    EditTransBase
    
        Path Translations
        
    
    
        Setting path translations for 
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Add
        
    
    
        Delete
        
    
    
        Cancel
        Відмінити
    
    
        Save
        
    


    FirstIdxDialog
    
        First indexing setup
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        
    
    
        Indexing configuration
        
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        
    
    
        Indexing schedule
        
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        
    
    
        Start indexing now
        
    


    FragButs
    
        %1 not found.
        
    
    
        %1:
 %2
        
    
    
        Query Fragments
        
    


    IdxSchedW
    
        Index scheduling setup
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        
    
    
        Cron scheduling
        
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        
    
    
        Real time indexing start up
        
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        
    


    ListDialog
    
        Dialog
        
    
    
        GroupBox
        
    


    Main
    
        No db directory in configuration
        В конфігурації немає каталогу БД 
    
    
        Could not open database in 
        Не можу відкрити базу даних в 
    
    
        .
Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed.
        .
Натисніть Відміна, якщо бажаєте відредагувати конфіґурацію до початку індексування,
чи OK для продовження.
    
    
        Configuration problem (dynconf
        Проблема конфігурації (dynconf
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        
    


    Preview
    
        &Search for:
        &Шукати:
    
    
        &Next
        &Наступне
    
    
        &Previous
        &Попереднє
    
    
        Clear
        Стерти
    
    
        Match &Case
        &Чутливість до реєстру
    
    
        Cannot create temporary directory
        Не можу створити тимчасову теку
    
    
        Cancel
        Відмінити
    
    
        Creating preview text
        Створюю текст для перегляду
    
    
        Loading preview text into editor
        Завантажую текст перегляду в редактор
    
    
        Close Tab
        Закрити вкладку
    
    
        Missing helper program: 
        Не знайдено допоміжну програму: 
    
    
        Can't turn doc into internal representation for 
        Неможливо перетворити документ на внутрішнє представлення для 
    
    
        Error while loading file
        
    


    PreviewTextEdit
    
        Show fields
        Показувати поля
    
    
        Show main text
        Показувати основний текст
    
    
        Print
        
    
    
        Print Current Preview
        
    
    
        Show image
        
    
    
        Select All
        
    
    
        Copy
        
    
    
        Save document to file
        
    
    
        Fold lines
        
    
    
        Preserve indentation
        
    


    QObject
    
        Global parameters
        Загальні параметри
    
    
        Local parameters
        Місцеві параметри
    
    
        <b>Customised subtrees
        <b>Піддерева з налаштуваннями
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.
        Список тек у індексованій ієрархії,<br>для яких деякі параметри потрібно змінити.  Типово: пустий.
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.
        <i>Нижченаведені параметри змінюються або на верхньому рівні, якщо<br>не вибрано нічого або пустий рядок, або для вибраної теки.<br>Ви можете додати або прибрати теки кнопками +/-.
    
    
        Skipped names
        Пропускати назви
    
    
        These are patterns for file or directory  names which should not be indexed.
        Шаблони назв файлів або тек, які не буде індексовано.
    
    
        Default character set
        Типове кодування
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        Кодування, яке буде застосовано при читанні файлів, які не вказують таке особливо (наприклад, чисто текстових файлів).<br>Типово невказане, тоді використовується значення з оточення (локалі).
    
    
        Follow symbolic links
        Розкривати символічні посилання
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        Ходити по симлінках при індексації.  Типово "ні" для уникнення дублікатів
    
    
        Index all file names
        Індексувати всі назви файлів
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        Індексувати також назви файлів, вміст яких не може бути впізнано чи оброблено (невідомий або непідтримуваний тип MIME).  Типово "так"
    
    
        Search parameters
        Параметри пошуку
    
    
        Web history
        
    
    
        Default<br>character set
        
    
    
        Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        
    
    
        Ignored endings
        
    
    
        These are file name endings for files which will be indexed by name only 
(no MIME type identification attempt, no decompression, no content indexing).
        
    


    QWidget
    
        Create or choose save directory
        
    
    
        Choose exactly one directory
        
    
    
        Could not read directory: 
        
    
    
        Unexpected file name collision, cancelling.
        
    
    
        Cannot extract document: 
        
    
    
        &Preview
        &Переглянути
    
    
        &Open
        
    
    
        Open With
        
    
    
        Run Script
        
    
    
        Copy &File Name
        Копіювати &назву файла
    
    
        Copy &URL
        Копіювати &URL
    
    
        &Write to File
        
    
    
        Save selection to files
        
    
    
        Preview P&arent document/folder
        
    
    
        &Open Parent document/folder
        
    
    
        Find &similar documents
        Знайти &схожі документи
    
    
        Open &Snippets window
        
    
    
        Show subdocuments / attachments
        
    


    RTIToolW
    
        Real time indexing automatic start
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        
    
    
        Start indexing daemon with my desktop session.
        
    
    
        Also start indexing daemon right now.
        
    
    
        Replacing: 
        
    
    
        Replacing file
        
    
    
        Can't create: 
        
    
    
        Warning
        Попередження
    
    
        Could not execute recollindex
        
    
    
        Deleting: 
        
    
    
        Deleting file
        
    
    
        Removing autostart
        
    
    
        Autostart file deleted. Kill current process too ?
        
    


    RclMain
    
        Indexing in progress: 
        Індексується: 
    
    
        Query results
        Результати запиту
    
    
        Cannot retrieve document info from database
        Не можу здобути документ з бази даних
    
    
        Warning
        Попередження
    
    
        Can't create preview window
        Не можу створити вікно перегляду
    
    
        Executing: [
        Виконую: [
    
    
        About Recoll
        Про Recoll
    
    
        Document history
        Історія документів
    
    
        History data
        Дані історії
    
    
        Files
        Файли
    
    
        Purge
        Очистити
    
    
        Stemdb
        База коренів
    
    
        Closing
        Закриваю
    
    
        Unknown
        Невідомо
    
    
        This search is not active any more
        Цей пошук вже неактивний
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeconf file
        Невірний командний рядок для переглядача %1: [%2]
Перевірте файл mimeconf
    
    
        Cannot extract document or create temporary file
        Неможливо здобути документ чи створити тимчасовий файл
    
    
        (no stemming)
        (без словоформ)
    
    
        (all languages)
        (всі мови)
    
    
        error retrieving stemming languages
        помилка здобування списку мов
    
    
        Update &Index
        Поновити &індекс
    
    
        Indexing interrupted
        Індексування перервано
    
    
        Stop &Indexing
        Пе&рервати індексування
    
    
        Can't start query: 
        Неможливо почати запит:
    
    
        All
        всі
    
    
        media
        медіа
    
    
        message
        повідомлення
    
    
        other
        інше
    
    
        presentation
        презентації
    
    
        spreadsheet
        таблиці
    
    
        text
        текст
    
    
        sorted
        сортоване
    
    
        filtered
        фільтроване
    
    
        External applications/commands needed and not found for indexing your file types:


        Відсутні зовнішні додатки/команди, що потрібні для індексування ваших документів:


    
    
        No helpers found missing
        Всі додаткові програми наявні
    
    
        Missing helper programs
        Відсутні додаткові програми
    
    
        Save file dialog
        Зберегти файл
    
    
        Choose a file name to save under
        Оберіть ім'я файла для збереження
    
    
        No external viewer configured for mime type [
        
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        
    
    
        Can't access file: 
        
    
    
        Can't uncompress file: 
        
    
    
        Save file
        
    
    
        Result count (est.)
        
    
    
        Query details
        Деталі запиту
    
    
        Could not open external index. Db not open. Check external indexes list.
        
    
    
        No results found
        
    
    
        None
        
    
    
        Updating
        
    
    
        Done
        
    
    
        Monitor
        
    
    
        Indexing failed
        
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        
    
    
        Erasing index
        
    
    
        Reset the index and start from scratch ?
        
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program
        
    
    
        Error
        
    
    
        Index not open
        
    
    
        Index query error
        
    
    
        Content has been indexed for these mime types:
        
    
    
        Can't update index: indexer running
        
    
    
        Indexed MIME Types
        
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        
    
    
        Cannot find parent document
        
    
    
        Indexing did not run yet
        
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        
    
    
        Sub-documents and attachments
        
    
    
        Document filter
        
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. 
        
    
    
        Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. 
        
    
    
        The indexer is running so things should improve when it's done. 
        
    
    
        The document belongs to an external indexwhich I can't update. 
        
    
    
        Click Cancel to return to the list. Click Ignore to show the preview anyway. 
        
    
    
        Duplicate documents
        
    
    
        These Urls ( | ipath) share the same content:
        
    
    
        Bad desktop app spec for %1: [%2]
Please check the desktop file
        
    


    RclMainBase
    
        Recoll
        Recoll
    
    
        &File
        &Файл
    
    
        &Tools
        &Інструменти
    
    
        &Preferences
        &Налаштування
    
    
        &Help
        &Довідка
    
    
        Search tools
        Інструменти пошуку
    
    
        Result list
        Список результатів
    
    
        E&xit
        &Вихід
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        &About Recoll
        Про &Recoll
    
    
        &User manual
        &Довідник користувача
    
    
        Document &History
        &Історія документів
    
    
        Document  History
        Історія документів
    
    
        &Advanced Search
        &Складний пошук
    
    
        Advanced/complex  Search
        Складний (поглиблений) пошук
    
    
        &Sort parameters
        &Параметри сортування
    
    
        Sort parameters
        Параметри сортування
    
    
        Next page
        Наступна сторінка
    
    
        Next page of results
        Наступна сторінка результатів
    
    
        Previous page
        Попередня сторінка
    
    
        Previous page of results
        Попередня сторінка результатів
    
    
        &Query configuration
        Конфіґурація &запиту
    
    
        Update &index
        &Поновити індекс
    
    
        Term &explorer
        &Навіґатор термінів
    
    
        Term explorer tool
        Інструмент для вивчання термінів
    
    
        External index dialog
        Діалог зовнішнього індексу
    
    
        &Erase document history
        &Очистити історію документів
    
    
        First page
        Перша сторінка
    
    
        Go to first page of results
        Перейти до першої сторінки результатів
    
    
        &Indexing configuration
        &Конфіґурація індексування
    
    
        All
        всі
    
    
        &Show missing helpers
        Відсутні програми
    
    
        PgDown
        
    
    
        PgUp
        
    
    
        &Full Screen
        
    
    
        F11
        
    
    
        Full Screen
        
    
    
        &Erase search history
        
    
    
        Sort by dates from oldest to newest
        
    
    
        Sort by dates from newest to oldest
        
    
    
        Show Query Details
        
    
    
        &Rebuild index
        
    
    
        &Show indexed types
        
    
    
        Shift+PgUp
        
    
    
        &Indexing schedule
        
    
    
        E&xternal index dialog
        
    
    
        &Index configuration
        
    
    
        &GUI configuration
        
    
    
        &Results
        
    
    
        Sort by date, oldest first
        
    
    
        Sort by date, newest first
        
    
    
        Show as table
        
    
    
        Show results in a spreadsheet-like table
        
    
    
        Save as CSV (spreadsheet) file
        
    
    
        Saves the result into a file which you can load in a spreadsheet
        
    
    
        Next Page
        
    
    
        Previous Page
        
    
    
        First Page
        
    
    
        Query Fragments
        
    
    
            With failed files retrying
        
    
    
        Next update will retry previously failed files
        
    


    RclTrayIcon
    
        Restore
        
    
    
        Quit
        
    


    RecollModel
    
        File name
        Ім'я файлу
    
    
        Mime type
        Тип MIME
    
    
        Date
        Дата
    
    
        Abstract
        
    
    
        Author
        
    
    
        Document size
        
    
    
        Document date
        
    
    
        File size
        
    
    
        File date
        
    
    
        Keywords
        
    
    
        Original character set
        
    
    
        Relevancy rating
        
    
    
        Title
        
    
    
        URL
        
    
    
        Mtime
        
    
    
        Date and time
        
    
    
        Ipath
        
    
    
        MIME type
        
    


    ResList
    
        Result list
        Список результатів
    
    
        Unavailable document
        Документ недосяжний
    
    
        Previous
        Попередня
    
    
        Next
        Наступна
    
    
        <p><b>No results found</b><br>
        <p><b>Не знайдено</b><br>
    
    
        &Preview
        &Переглянути
    
    
        Find &similar documents
        Знайти &схожі документи
    
    
        Query details
        Деталі запиту
    
    
        (show query)
        (показати запит)
    
    
        Copy &File Name
        Копіювати &назву файла
    
    
        Copy &URL
        Копіювати &URL
    
    
        filtered
        фільтроване
    
    
        sorted
        сортоване
    
    
        Document history
        Історія документів
    
    
        Preview
        Перегляд
    
    
        Open
        Відкрити
    
    
        <p><i>Alternate spellings (accents suppressed): </i>
        
    
    
        Documents
        Документи
    
    
        out of at least
        з принаймні
    
    
        for
        по
    
    
        <p><i>Alternate spellings: </i>
        
    
    
        Result count (est.)
        
    
    
        Snippets
        
    


    ResTable
    
        &Reset sort
        
    
    
        &Delete column
        
    
    
        Save table to CSV file
        
    
    
        Can't open/create file: 
        
    
    
        &Preview
        &Переглянути
    
    
        Copy &File Name
        Копіювати &назву файла
    
    
        Copy &URL
        Копіювати &URL
    
    
        Find &similar documents
        Знайти &схожі документи
    
    
        &Save as CSV
        
    
    
        Add "%1" column
        
    


    ResTableDetailArea
    
        &Preview
        &Переглянути
    
    
        Copy &File Name
        Копіювати &назву файла
    
    
        Copy &URL
        Копіювати &URL
    
    
        Find &similar documents
        Знайти &схожі документи
    


    ResultPopup
    
        &Preview
        &Переглянути
    
    
        Copy &File Name
        Копіювати &назву файла
    
    
        Copy &URL
        Копіювати &URL
    
    
        Find &similar documents
        Знайти &схожі документи
    


    SSearch
    
        Any term
        Будь-яке слово
    
    
        All terms
        Усі слова
    
    
        File name
        Ім'я файлу
    
    
        Completions
        Доповнення
    
    
        Select an item:
        Оберіть:
    
    
        Too many completions
        Занадто багато доповнень
    
    
        Query language
        Мова запиту
    
    
        Bad query string
        Невірний рядок запиту
    
    
        Out of memory
        Недостатньо пам'яті
    
    
        Enter file name wildcard expression.
        
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Введіть пошукові слова.  Можна використовувати Esc-пробіл для доповнення.
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        
    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        Стерти
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        Стерти вміст рядка запита
    
    
        Search
        Знайти
    
    
        Start query
        Почати запит
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Введіть пошукові слова.  Можна використовувати Esc-пробіл для доповнення.
    
    
        Choose search type.
        Оберіть тип пошуку.
    


    SearchClauseW
    
        Any of these
        будь-які слова
    
    
        All of these
        усі слова
    
    
        None of these
        без цих слів
    
    
        This phrase
        фраза
    
    
        Terms in proximity
        слова поблизу
    
    
        File name matching
        назва файлу
    
    
        Select the type of query that will be performed with the words
        Виберіть тип запиту, який буде зроблено по цих словах
    
    
        Number of additional words that may be interspersed with the chosen ones
        Кількість додаткових слів, що можуть бути між обраними
    
    
        No field
        
    
    
        Any
        
    
    
        All
        всі
    
    
        None
        
    
    
        Phrase
        
    
    
        Proximity
        
    
    
        File name
        Ім'я файлу
    


    Snippets
    
        Snippets
        
    
    
        Find:
        
    
    
        Next
        Наступна
    
    
        Prev
        
    


    SnippetsW
    
        Search
        Знайти
    
    
        <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p>
        
    


    SortForm
    
        Date
        Дата
    
    
        Mime type
        Тип MIME
    


    SortFormBase
    
        Sort Criteria
        Критерії сортування
    
    
        Sort the
        Сортувати
    
    
        most relevant results by:
        кращих результатів за:
    
    
        Descending
        спаданням
    
    
        Close
        Закрити
    
    
        Apply
        Застосувати
    


    SpellBase
    
        Term Explorer
        Навіґатор термінів
    
    
        &Expand 
        &Розкрити 
    
    
        Alt+E
        
    
    
        &Close
        &Закрити
    
    
        Alt+C
        Alt+C
    
    
        Term
        Слово
    
    
        No db info.
        
    
    
        Match
        
    
    
        Case
        
    
    
        Accents
        
    


    SpellW
    
        Wildcards
        Шаблони
    
    
        Regexp
        Регвираз
    
    
        Spelling/Phonetic
        Напис/звучання
    
    
        Aspell init failed. Aspell not installed?
        Не вдалося запустити aspell.  Воно взагалі встановлене?
    
    
        Aspell expansion error. 
        Помилка розкриття aspell. 
    
    
        Stem expansion
        Розкриття словоформ
    
    
        error retrieving stemming languages
        помилка здобування списку мов
    
    
        No expansion found
        Розкриття не знайдене
    
    
        Term
        Слово
    
    
        Doc. / Tot.
        
    
    
        Index: %1 documents, average length %2 terms.%3 results
        
    
    
        %1 results
        
    
    
        List was truncated alphabetically, some frequent 
        
    
    
        terms may be missing. Try using a longer root.
        
    
    
        Show index statistics
        
    
    
        Number of documents
        
    
    
        Average terms per document
        
    
    
        Smallest document length
        
    
    
        Longest document length
        
    
    
        Database directory size
        
    
    
        MIME types:
        
    
    
        Item
        
    
    
        Value
        
    


    UIPrefsDialog
    
        The selected directory does not appear to be a Xapian index
        Обрана тека не схожа на індекс Xapian
    
    
        This is the main/local index!
        Це основний/локальний індекс!
    
    
        The selected directory is already in the index list
        Обрана тека вже у списку індексів
    
    
        Select xapian index directory (ie: /home/buddy/.recoll/xapiandb)
        Оберіть теку із індексом Xapian (наприклад, /home/приятель/.recoll/xapiandb)
    
    
        error retrieving stemming languages
        помилка здобування списку мов
    
    
        Choose
        Перегляд
    
    
        Result list paragraph format (erase all to reset to default)
        
    
    
        Result list header (default is empty)
        
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        
    
    
        At most one index should be selected
        
    
    
        Cant add index with different case/diacritics stripping option
        
    
    
        Default QtWebkit font
        
    


    UIPrefsDialogBase
    
        User interface
        Інтерфейс
    
    
        Number of entries in a result page
        Кількість результатів на сторінку
    
    
        Result list font
        Шрифт списку результатів
    
    
        Helvetica-10
        Helvetica-10
    
    
        Opens a dialog to select the result list font
        Відкриває діалог вибору шрифту списку результатів
    
    
        Reset
        Скинути
    
    
        Resets the result list font to the system default
        Повертає шрифт у типовий системний
    
    
        Auto-start simple search on whitespace entry.
        Починати простий пошук при введенні пробілу.
    
    
        Start with advanced search dialog open.
        Відкривати діалог складного пошуку при старті.
    
    
        Start with sort dialog open.
        Відкривати діалог сортування при старті.
    
    
        Search parameters
        Параметри пошуку
    
    
        Stemming language
        Мова словоформ
    
    
        Dynamically build abstracts
        Динамічно будувати конспекти
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Чи намагатися будувати конспекти для результатів пошуку, використовуючі контекст знайдених слів?
Може працювати повільно для великих документів.
    
    
        Replace abstracts from documents
        Заміняти наявні у документах конспекти
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Чи робити новий конспект, навіть якщо якийсь вже є в документі?
    
    
        Synthetic abstract size (characters)
        Розмір синтетичного конспекту (у символах)
    
    
        Synthetic abstract context words
        Контекстних слів у конспекті
    
    
        External Indexes
        Зовнішні індекси
    
    
        Add index
        Додати індекс
    
    
        Select the xapiandb directory for the index you want to add, then click Add Index
        Оберіть потрібну теку із індексом Xapian та натисніть "Додати індекс"
    
    
        Browse
        Перегляд
    
    
        &OK
        &OK
    
    
        Apply changes
        Застосувати зміни
    
    
        &Cancel
        &Відміна
    
    
        Discard changes
        Відмінити зміни
    
    
        Result paragraph<br>format string
        Рядок форматування<br>блоку результатів
    
    
        Automatically add phrase to simple searches
        Автоматично додавати фразу до простих пошуків
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Пошук [rolling stones] (2 слова) буде змінено на [rolling or stones or (rolling phrase 2 stones)]. 
Це може підняти результати, в яких пошукові слова зустрічаються саме в такій послідовності, як в запиті.
    
    
        User preferences
        Вподобання
    
    
        Use desktop preferences to choose document editor.
        Використовувати налаштування десктопу щодо редактору документів.
    
    
        External indexes
        Зовнішні індекси
    
    
        Toggle selected
        Переключити вибране
    
    
        Activate All
        Включити все
    
    
        Remove selected
        Видалити вибране
    
    
        Remove from list. This has no effect on the disk index.
        Видалити зі списку.  Не впливає на дисковий індекс.
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Визначає формат для кожного блоку списку результатів. Використовуйте html-формат qt та схожі на printf заміни:<br>%A анотація<br> %D дата<br> %I назва піктограми<br> %K ключові слова (якщо є)<br> %L посилання перегляду та редагування<br> %M тип MIME<br> %N кількість результатів<br> %R релевантність<br> %S розмір<br> %T назва<br> %U URL<br>
    
    
        Remember sort activation state.
        Запам'ятати стан сортування.
    
    
        Maximum text size highlighted for preview (megabytes)
        Максимальний розмір тексту із підсвічуванням (Мб)
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Тексти із розміром, більшим за вказаний, не буде підсвічено у попередньому перегляді (повільно).
    
    
        Highlight color for query terms
        Колір виділення ключових слів
    
    
        Deactivate All
        Виключити все
    
    
        Prefer Html to plain text for preview.
        Віддавати перевагу HTML над текстом для перегляду.
    
    
        If checked, results with the same content under different names will only be shown once.
        Якщо увімкнене, результати с таким самим змістом та різними назвами буде показано не більше одного разу.
    
    
        Hide duplicate results.
        Ховати дублікати
    
    
        Choose editor applications
        Оберіть редактори
    


    ViewAction
    
        Changing actions with different current values
        Зміна дій із різними поточними значеннями
    
    
        Mime type
        Тип MIME
    
    
        Command
        
    
    
        MIME type
        
    
    
        Desktop Default
        
    
    
        Changing entries with different current values
        
    


    ViewActionBase
    
        File type
        Тип файлу
    
    
        Action
        Дія
    
    
        Select one or several file types, then click Change Action to modify the program used to open them
        Оберіть один або декілька типів файлів, потім натисніть "Змінити дію", щоб змінити програму для них
    
    
        Change Action
        Змінити дію
    
    
        Close
        Закрити
    
    
        Native Viewers
        Рідні переглядачі
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        
    
    
        Use Desktop preferences by default
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Exception to Desktop preferences
        
    
    
        Action (empty -> recoll default)
        
    
    
        Apply to current selection
        
    
    
        Recoll action:
        
    
    
        current value
        
    
    
        Select same
        
    
    
        <b>New Values:</b>
        
    


    confgui::ConfBeaglePanelW
    
        Entries will be recycled once the size is reached
        
    
    
        Web page store directory name
        
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        
    
    
        Max. size for the web store (MB)
        
    
    
        Process the WEB history queue
        
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)
        
    


    confgui::ConfIndexW
    
        Can't write configuration file
        Неможливо записати файл конфіґурації
    


    confgui::ConfParamFNW
    
        Browse
        Перегляд
    
    
        Choose
        Перегляд
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.
        
    
    
        Automatic character case sensitivity
        
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.
        
    
    
        Maximum term expansion count
        
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.
        
    
    
        Maximum Xapian clauses count
        
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.
        
    


    confgui::ConfSubPanelW
    
        Global
        Глобальні
    
    
        Max. compressed file size (KB)
        Межа розміру стиснених файлів (KB)
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        Це значення встановлює поріг розміру стиснених файлів, більші за нього не буде опрацьовано.  -1 вимикає ліміт, 0 вимикає декомпресію.
    
    
        Max. text file size (MB)
        
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        
    
    
        Text file page size (KB)
        
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        
    
    
        Max. filter exec. time (S)
        
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        
    
    
        Only mime types
        
    
    
        An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive
        
    
    
        Exclude mime types
        
    
    
        Mime types not to be indexed
        
    


    confgui::ConfTopPanelW
    
        Top directories
        Верхні теки
    
    
        The list of directories where recursive indexing starts. Default: your home.
        Список тек, з яких починається рекурсивне індексування. Типово: домашня тека.
    
    
        Skipped paths
        Пропускати шляхи
    
    
        Stemming languages
        Мови зі словоформами
    
    
        The languages for which stemming expansion<br>dictionaries will be built.
        Мови, для яких буде побудовано<br>словники розкриття словоформ.
    
    
        Log file name
        Файл журналу
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output
        Файл, куди підуть повідомлення.<br>'stderr' для терміналу
    
    
        Log verbosity level
        Докладність журналу
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.
        Встановити обсяг повідомлень,<br>від помилок до даних зневадження.
    
    
        Index flush megabytes interval
        Інтервал скидання індексу (Мб)
    
    
        Max disk occupation (%)
        Максимальне використання диску (%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).
        Відсоток зайнятого диску, коли індексування буде зупинено (щоб уникнути заповнення доступного простору).<br>Типово: 0 (без ліміту).
    
    
        No aspell usage
        Не використовувати aspell
    
    
        Aspell language
        Мова aspell
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Мова словника aspell.  Має виглядати як 'en' або 'uk'...<br>Якщо не встановлене, буде використане оточення (локаль), що зазвичай робить. Щоб з'ясувати, що маємо на системі, наберіть 'aspell config' та перегляньте файли .dat у теці 'data-dir'. 
    
    
        Database directory name
        Тека бази даних
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the  configuration directory. The default is 'xapiandb'.
        Назва теки, де міститься індекс<br>Відносний шлях буде трактовано відносно теки конфіґурації. Типово: 'xapiandb'.
    
    
        Use system's 'file' command
        Використовувати системну 'file'
    
    
        Use the system's 'file' command if internal<br>mime type identification fails.
        Використовувати команду 'file' з системи, коли внутрішнє<br>визначення типу MIME дає збій.
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
        Це назви тек, у які індексування не потрапить.<br> Може містити шаблони.  Має співпадати із шляхами, що бачить індексатор (наприклад, якщо topdirs містить  '/home/me' та '/home' є посиланням на '/usr/home', то вірний запис буде '/home/me/tmp*', а не '/usr/home/me/tmp*')
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 
        Скільки даних буде проіндексовано між скиданнями індексу на диск.<br>Допомагає контролювати використання пам'яті індексатором. Типово: 10Мб 
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 
        Вимикає використання aspell для генерації наближень у написання в навіґаторі термінів.<br>Корисне, коли aspell відсутній або зламаний. 
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
        
    
    
        Unac exceptions
        
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.
        
    


    uiPrefsDialogBase
    
        User preferences
        Вподобання
    
    
        User interface
        Інтерфейс
    
    
        Number of entries in a result page
        Кількість результатів на сторінку
    
    
        If checked, results with the same content under different names will only be shown once.
        Якщо увімкнене, результати с таким самим змістом та різними назвами буде показано не більше одного разу.
    
    
        Hide duplicate results.
        Ховати дублікати
    
    
        Highlight color for query terms
        Колір виділення ключових слів
    
    
        Result list font
        Шрифт списку результатів
    
    
        Opens a dialog to select the result list font
        Відкриває діалог вибору шрифту списку результатів
    
    
        Helvetica-10
        Helvetica-10
    
    
        Resets the result list font to the system default
        Повертає шрифт у типовий системний
    
    
        Reset
        Скинути
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Визначає формат для кожного блоку списку результатів. Використовуйте html-формат qt та схожі на printf заміни:<br>%A анотація<br> %D дата<br> %I назва піктограми<br> %K ключові слова (якщо є)<br> %L посилання перегляду та редагування<br> %M тип MIME<br> %N кількість результатів<br> %R релевантність<br> %S розмір<br> %T назва<br> %U URL<br>
    
    
        Result paragraph<br>format string
        Рядок форматування<br>блоку результатів
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Тексти із розміром, більшим за вказаний, не буде підсвічено у попередньому перегляді (повільно).
    
    
        Maximum text size highlighted for preview (megabytes)
        Максимальний розмір тексту із підсвічуванням (Мб)
    
    
        Use desktop preferences to choose document editor.
        Використовувати налаштування десктопу щодо редактору документів.
    
    
        Choose editor applications
        Оберіть редактори
    
    
        Auto-start simple search on whitespace entry.
        Починати простий пошук при введенні пробілу.
    
    
        Start with advanced search dialog open.
        Відкривати діалог складного пошуку при старті.
    
    
        Start with sort dialog open.
        Відкривати діалог сортування при старті.
    
    
        Remember sort activation state.
        Запам'ятати стан сортування.
    
    
        Prefer Html to plain text for preview.
        Віддавати перевагу HTML над текстом для перегляду.
    
    
        Search parameters
        Параметри пошуку
    
    
        Stemming language
        Мова словоформ
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Пошук [rolling stones] (2 слова) буде змінено на [rolling or stones or (rolling phrase 2 stones)]. 
Це може підняти результати, в яких пошукові слова зустрічаються саме в такій послідовності, як в запиті.
    
    
        Automatically add phrase to simple searches
        Автоматично додавати фразу до простих пошуків
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Чи намагатися будувати конспекти для результатів пошуку, використовуючі контекст знайдених слів?
Може працювати повільно для великих документів.
    
    
        Dynamically build abstracts
        Динамічно будувати конспекти
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Чи робити новий конспект, навіть якщо якийсь вже є в документі?
    
    
        Replace abstracts from documents
        Заміняти наявні у документах конспекти
    
    
        Synthetic abstract size (characters)
        Розмір синтетичного конспекту (у символах)
    
    
        Synthetic abstract context words
        Контекстних слів у конспекті
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        
    
    
        Query language magic file name suffixes.
        
    
    
        Enable
        
    
    
        External Indexes
        Зовнішні індекси
    
    
        Toggle selected
        Переключити вибране
    
    
        Activate All
        Включити все
    
    
        Deactivate All
        Виключити все
    
    
        Remove from list. This has no effect on the disk index.
        Видалити зі списку.  Не впливає на дисковий індекс.
    
    
        Remove selected
        Видалити вибране
    
    
        Add index
        Додати індекс
    
    
        Apply changes
        Застосувати зміни
    
    
        &OK
        &OK
    
    
        Discard changes
        Відмінити зміни
    
    
        &Cancel
        &Відміна
    
    
        Abstract snippet separator
        
    
    
        Style sheet
        
    
    
        Opens a dialog to select the style sheet file
        
    
    
        Choose
        Перегляд
    
    
        Resets the style sheet to default
        
    
    
        Result List
        
    
    
        Edit result paragraph format string
        
    
    
        Edit result page html header insert
        
    
    
        Date format (strftime(3))
        
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        
    
    
        Autophrase term frequency threshold percentage
        
    
    
        Plain text to HTML line style
        
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        
    
    
        <BR>
        
    
    
        <PRE>
        
    
    
        <PRE> + wrap
        
    
    
        Disable Qt autocompletion in search entry.
        
    
    
        Search as you type.
        
    
    
        Paths translations
        
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        
    
    
        Snippets window CSS file
        
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        
    
    
        Resets the Snippets window style
        
    
    
        Decide if document filters are shown as radio buttons, toolbar combobox, or menu.
        
    
    
        Document filter choice style:
        
    
    
        Buttons Panel
        
    
    
        Toolbar Combobox
        
    
    
        Menu
        
    
    
        Show system tray icon.
        
    
    
        Close to tray instead of exiting.
        
    


recoll-1.21.5/qtgui/i18n/recoll_pl.ts0000644000175000017500000030107512602163537016630 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        Każdy warunek
    
    
        Any clause
        Któryś warunek
    
    
        media
        multimedia
    
    
        other
        pozostałe
    
    
        Bad multiplier suffix in size filter
        Błędna jednostka we filtrze rozmiaru
    
    
        text
        tekstowe
    
    
        spreadsheet
        arkusze
    
    
        presentation
        prezentacje
    
    
        message
        wiadomości
    


    AdvSearchBase
    
        Advanced search
        Dokładne szukanie
    
    
        Search for <br>documents<br>satisfying:</br></br>
        Znajdź <br>dokumenty<br>spełniacjące:</br></br>
    
    
        Delete clause
        Usuń warunek
    
    
        Add clause
        Dodaj warunek
    
    
        Restrict file types
        Określ typ pliku
    
    
        Check this to enable filtering on file types
        Zaznacz, by określić typ pliku
    
    
        By categories
        Jako kategoria
    
    
        Check this to use file categories instead of raw mime types
        Zaznacz, by użyć kategorii
    
    
        Save as default
        Zapamiętaj wybrane typy
    
    
        Searched file types
        Przeszukaj plik
    
    
        All ---->
        Wszystkie ---->
    
    
        Sel ----->
        Zaznaczone ----->
    
    
        <----- Sel
        <----- Zaznaczone
    
    
        <----- All
        <----- Wszystkie
    
    
        Ignored file types
        Pomiń pliki
    
    
        Enter top directory for search
        Podaj szczyt katalogu szukania
    
    
        Browse
        Przeglądaj
    
    
        Restrict results to files in subtree:
        Tylko pliki LEŻĄCE W katalogu:
    
    
        Start Search
        Szukaj
    
    
        Close
        Zamknij
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.</br></br>
        Podane warunki (pola z prawej strony) będą użyte razem (dla zaznaczonego "Każdy warunek") lub oddzielnie (dla zaznaczonego "Któryś warunek"). <br>Pola "Któreś", "Wszystkie" i "Żadne" przyjmują pojedyńcze wyrazy lub frazy w cudzysłowiu.<br>Pola bez danych są ignorowane.</br></br>
    
    
        Invert
        LEŻĄCE POZA
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        Dopuszczalne jednostki: k/K, m/M, g/G
    
    
        Min. Size
        Większy od:
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        Dopuszczalne jednostki: k/K, m/M, g/G
    
    
        Max. Size
        Mniejszy od:
    
    
        Filter
        Filtry
    
    
        From
        Po:
    
    
        To
        Przed:
    
    
        Check this to enable filtering on dates
        Zaznacz, by określić datę
    
    
        Filter dates
        Po dacie
    
    
        Find
        Znajdź
    
    
        Check this to enable filtering on sizes
        Zaznacz, by określić rozmiar
    
    
        Filter sizes
        Po rozmiarze
    


    CronToolW
    
        Cron Dialog
        Ustaw cykl (CRON)
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indeksuj cyklicznie (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Każde pole może zawierać wieloznacznik (*), pojdyńczą wartość, listę po przecinku (1,3,5) oraz zakres (1-7). Tak samo<span style=" font-style:italic;">jak</span>gdyby to był plik Crontab. Dlatego możliwe jest użycie składni Crontab. (zobacz crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Przykładowo wpisując <span style=" font-family:'Courier New,courier';">*</span> w <span style=" font-style:italic;">"Dni tygodnia", </span><span style=" font-family:'Courier New,courier';">12,19</span> w <span style=" font-style:italic;">"Godziny"</span> oraz <span style=" font-family:'Courier New,courier';">15</span> w <span style=" font-style:italic;">"Minuty"</span> uruchomili byśmy indeksowanie (recollindex) każdego dnia o 00:15 oraz 19:15</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Indeksowanie cykliczne (nawet te bardzo częste) jest mniej efektowne niż indeksowanie w czasie rzeczywistym.</p></body></html>
    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        Dni tygodnia (* or 0-7, 0 lub 7 to Niedziela)
    
    
        Hours (* or 0-23)
        Godziny (* lub 0-23)
    
    
        Minutes (0-59)
        Minuty (0-59)
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Kliknij <span style=" font-style:italic;">Wyłącz</span>, aby zatrzymać automatyczne indeksowanie. <span style=" font-style:italic;">Włącz</span>, aby je rozpocząć. <span style=" font-style:italic;">Anuluj</span>, aby utrzymać obecny stan.</p></body></html>
    
    
        Enable
        Włącz
    
    
        Disable
        Wyłącz
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        Nie można zmienić crontab. Wygląda na to, że istnieją ręczne wpisy dla recollindex.
    
    
        Error installing cron entry. Bad syntax in fields ?
        Błąd przy rejestrowaniu cyklu. Błędna składnia w polach?
    


    EditDialog
    
        Dialog
        Okno dialogowe
    


    EditTrans
    
        Source path
        Ścieżka źródłowa
    
    
        Local path
        Ścieżka lokalna
    
    
        Config error
        Błąd konfiguracji
    
    
        Original path
        Ścieżka oryginalna
    


    EditTransBase
    
        Path Translations
        Ścieżka tłumaczenia
    
    
        Setting path translations for 
        Ustawienie ścieżki translacji dla 
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Wybierz jeden lub kilka typów pliku, następnie wskaż w ramce poniżej jak mają zostać przetworzone
    
    
        Add
        Dodaj
    
    
        Delete
        Usuń
    
    
        Cancel
        Anuluj
    
    
        Save
        Zapisz
    


    FirstIdxDialog
    
        First indexing setup
        Początkowa konfiguracja indeksowania
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Indeks dla tej konfiguracji nie istnieje.</span><br /><br />Jeśli tylko chcesz indeksować swój katalog domowy użwyając fabrcznych ustawień, wciśnij przycisk <span style=" font-style:italic;">Rozpocznij indeksowanie </span>. Szczegóły możesz ustawić również później. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Jeśli chesz mieć większą kontrolę, użyj następujących odnośników w celu konfiguracji indeksowania oraz jego harmonogramu.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">To samo możesz również otrzymać poźniej wybierając <span style=" font-style:italic;">Ustawienia</span> z menu.</p></body></html>
    
    
        Indexing configuration
        Konfiguracja indeksowania
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        Tutaj możesz wybrać katalogi do indeksowania, oraz inne parametry tj. wyłączenie ścieżek plików czy ich nazw, domyślny zestaw znaków, etc.
    
    
        Indexing schedule
        Harmonogram indeksowania
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        Tutaj możesz wybrać między indeksowaniem w kolejce, a indeksowaniem nabierząco, jak i ustaleniem automatycznej kolejki indeksowania (dzięki Cron)
    
    
        Start indexing now
        Rozpocznij indeksowanie
    


    IdxSchedW
    
        Index scheduling setup
        Konfiguracja harmonogramu indeksowania
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Indeksowanie <span style=" font-weight:600;">Recoll</span> może być uruchomione na stałe (indeksując każdą zmianę) lub w określonych cyklach.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Instrukcja obsługi (EN) może pomóc wybrać rozwiązanie dla Ciebie (wciśnij F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Narzędzie to pomoże Ci zaplanować indeksowanie cykliczne lub wybierzesz indeksowanie "na bieżąco" po zalogowaniu (lub jedno i drugie, co rzadko jest sendowne).</p></body></html>
    
    
        Cron scheduling
        Planowanie z użyciem Cron
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        Tutaj zdecydujesz o jakim czasie indeksowanie ma być uruchamiane (po przez wpis do crontab).
    
    
        Real time indexing start up
        Uruchom indeksowanie "na bieżąco"
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        Pozwala uruchomić indeksowanie po zalogowaniu.
    


    ListDialog
    
        Dialog
        Okno dialogowe
    
    
        GroupBox
        Grupa
    


    Main
    
        No db directory in configuration
        Brak katalogu dla bazy danych w konfiguracji
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        Plik "history" jest uszkodzony lub brak możliwości jego odczytu/zapisu, zmień to lub go usuń: 
    


    Preview
    
        Close Tab
        Zamknij kartę
    
    
        Cancel
        Anuluj
    
    
        Missing helper program: 
        Brak programu usprawniającego: 
    
    
        Can't turn doc into internal representation for 
        Nie mogę przemienić dokumentu na władny format 
    
    
        Creating preview text
        Tworzę podgląd tekstu
    
    
        Loading preview text into editor
        Ładuję podgląd tekstu do edytora
    
    
        &Search for:
        &Szukaj:
    
    
        &Next
        &Następny
    
    
        &Previous
        &Poprzedni
    
    
        Clear
        Wyczyść
    
    
        Match &Case
        Sprawdzaj &wielkość liter
    
    
        Error while loading file
        Błąd ładowania pliku
    


    PreviewTextEdit
    
        Show fields
        Pokaż pola
    
    
        Show main text
        Pokaż tekst główny
    
    
        Print
        Drukuj
    
    
        Print Current Preview
        Drukuj obecny podgląd
    
    
        Show image
        Pokaż obraz
    
    
        Select All
        Zaznacz wszystko
    
    
        Copy
        Kopiuj
    
    
        Save document to file
        Zapisz dokument do pliku
    
    
        Fold lines
        Zwiń linie
    
    
        Preserve indentation
        Zachowaj wcięcia
    


    QObject
    
        Global parameters
        Parametry globalne
    
    
        Local parameters
        Parametry lokalne
    
    
        <b>Customised subtrees</b>
        <b>Dostosowana gałąź</b>
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.</br>
        Lista podkatalogów w zaindeksowanej hierarchii <br> dla których część parametrów musi być ustalona ponownie. Domyślnie: pusty.</br>
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.</br></br></i>
        <i>Poniższe parametry tyczą są podświetlonego katalogu z powyższej listy.<br> Jeśli powyższa lista jest pusta lub podświetla pustą linię poniższe ustawienia tyczą się najpłytszego katalogu.<br>Możesz dodać lub usunąć katalog klikając przyciski +/-</br></br></i>

    
    
        Skipped names
        Wykluczenia
    
    
        These are patterns for file or directory  names which should not be indexed.
        Tutaj ustawiasz reguły wykluczające indeksowanie plików i katalogów.
    
    
        Default character set
        Domyślny zestaw znaków
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.</br>
        To jest zestaw znaków służący do odczytu plików i nie jest tożsamy z ustawieniami wewnętrznymi (np: czyste pliki tesktowe)<br>Domyślnie jest pusty, a użyta jest wartość ze środowiska NLS.</br>
    
    
        Follow symbolic links
        Idź za dowiązaniami symbolicznymi
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
Indeksując, idź za dowiązaniami symbolicznymi. Domyślnia wartość to NIE, chroni przed zduplikowanymi indeksami.
    
    
        Index all file names
        Indeksuj wszystkie nazwy plików
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        Indeksuj nazwy plików dla których zawartość nie może być rozpoznana lub przetworzona (Nie lub nieobsługiwany typ MIME). Domyślnie Tak.
    
    
        Search parameters
        Parametry szukania
    
    
        Web history
        Historia sieci
    


    RTIToolW
    
        Real time indexing automatic start
        Automatyczny start indeksowania w czasie rzeczywistym
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indeksacja może być uruchomiona w tle (daemon), aktualizując indeks nabierząco. Zyskujesz zawsze aktualny indeks, tracąc część zasobów systemowych.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>


    
    
        Start indexing daemon with my desktop session.
        Uruchom indeksowanie w tle razem ze startem komputera.
    
    
        Also start indexing daemon right now.
        Dodatkowo natychmiast uruchom indeksowanie w tle.
    
    
        Replacing: 
        Podmiana:
    
    
        Replacing file
        Podmiana pliku
    
    
        Can't create: 
        Nie mogę utworzyć:
    
    
        Warning
        Ostrzeżenie
    
    
        Could not execute recollindex
        Nie można wykonać recollindex
    
    
        Deleting: 
        Usuwanie:
    
    
        Deleting file
        Usuwanie pliku
    
    
        Removing autostart
        Usuwanie autostartu
    
    
        Autostart file deleted. Kill current process too ?
        Usunięto plik autostartu. Zamknąć również bieżący proces?
    


    RclMain
    
        (no stemming)
        wyłącz ciosanie (ang. stemming)
    
    
        (all languages)
        (każdy język)
    
    
        error retrieving stemming languages
        Błąd pobierania "reguł ciosania" (ang. stemming languages)
    
    
        Indexing in progress: 
        Indeksowanie w tracie: 
    
    
        Purge
        Wyczyść
    
    
        Stemdb
        Stemdb
    
    
        Closing
        Zamykanie
    
    
        Unknown
        Nieznane
    
    
        Query results
        Wynik zapytania
    
    
        Cannot retrieve document info from database
        Brak możliwości pobrania informacji o dokumencie z bazy danych
    
    
        Warning
        Ostrzeżenie
    
    
        Can't create preview window
        Nie można utworzyć okna podglądu
    
    
        This search is not active any more
        To wyszukanie przestało być aktywne
    
    
        Cannot extract document or create temporary file
        Nie można wypakować dokumentu lub stworzyć plik tymczasowy
    
    
        Executing: [
        Wykonuję: [
    
    
        About Recoll
        Karta Recoll
    
    
        History data
        Historia danych
    
    
        Document history
        Historia dokumentów
    
    
        Update &Index
        Odśwież &Indeks
    
    
        Stop &Indexing
        Zatrzymaj &Indeksowanie
    
    
        All
        Wszystko
    
    
        media
        multimedia
    
    
        message
        wiadomości
    
    
        other
        pozostałe
    
    
        presentation
        prezentacje
    
    
        spreadsheet
        arkusze
    
    
        text
        tekstowe
    
    
        sorted
        posortowane
    
    
        filtered
        przefiltrowane
    
    
        No helpers found missing
        Wszystkie rozszerzenia znaleziono
    
    
        Missing helper programs
        Brakujące rozszerzenia
    
    
        Document category filter
        Filtr kategorii dokumentu
    
    
        No external viewer configured for mime type [
        Brak skonfigurowanej zewnętrzenej przeglądarki typów MIME [
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        Brak przeglądarki dla typu MIME %1: %2 . Chcesz to ustawić teraz?
    
    
        Can't access file: 
        Nie mogę uzyskać dostępu do pliku: 
    
    
        Can't uncompress file: 
        Nie mogę wypakować pliku: 
    
    
        Save file
        Zapisz plik
    
    
        Result count (est.)
        Liczba wyników (szac.)
    
    
        Could not open external index. Db not open. Check external indexes list.
        Nie mogę otworzyc zewnętrznego indeksu. Nie otwarta baza danych. Sprawdź listę zewnętrznych indeksów.
    
    
        No results found
        Brak wyników
    
    
        None
        Nic
    
    
        Updating
        Odświeżanie
    
    
        Done
        Zakończone
    
    
        Monitor
        Sprawdzanie
    
    
        Indexing failed
        Porażka indeksowania
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        Obecny proces indeksowania uruchomiono z innego okna. Kliknij Ok, by zamknąć proces.
    
    
        Erasing index
        Usuwanie indeksu
    
    
        Reset the index and start from scratch ?
        Ponownie spisać indeks od zera?
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program</br></br>
        Trwa odpytywanie.<br>z powodu ograniczeń biblioteki indeksowania,<br>anulowanie zamknie program</br></br>
    
    
        Error
        Błąd
    
    
        Index not open
        Indeks jest zamknięty
    
    
        Index query error
        Błąd odpytania indeksu
    
    
        Content has been indexed for these mime types:
        Zawartość została zaindeksowana dla tych typów MIME:
    
    
        Can't update index: indexer running
        Nie mogę zaktualizować indeksu: pracujący indekser
    
    
        Indexed MIME Types
        Zaindeksowane typy MIME
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        Błędna komenda przeglądarki dla typu %1: [%2]
Sprawdź plik widoku MIME
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        Polecenie czytnika dla %1 podaje zarówno plik jak i wartość pliku rodzica: niewspierane
    
    
        Cannot find parent document
        Nie można odszukać rodzica dokumentu
    
    
        Indexing did not run yet
        Indeksowanie nie zostało jeszcze uruchomione
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        Brak zewnętrznych aplikacji|komend wymaganych przez twoje typy plików.
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry.
        Indeks tego pliku jest nieaktualny. Odmawiam podania błędnych wyników.
    
    
        Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        Kliknij Ok by uaktualnić indeks tego pliku, po zakończeniu ponów zapytanie lub Anuluj.
    
    
        Indexer running so things should improve when it's done
        Indeksowanie w trakcie, spodziewana poprawa po zakończeniu.
    
    
        Sub-documents and attachments
        Poddokumenty i załączniki
    


    RclMainBase
    
        Recoll
        Recoll
    
    
        Search tools
        Narzędzia wyszukiwania
    
    
        Result list
        Wyniki
    
    
        &File
        &Plik
    
    
        &Tools
        &Narzędzia
    
    
        &Preferences
        &Ustawienia
    
    
        &Help
        &Pomoc
    
    
        E&xit
        &Zakończ
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        Update &index
        &Aktualizacja indeksu
    
    
        &Erase document history
        &Usuń historię dokumentu
    
    
        &About Recoll
        &Karta Recoll
    
    
        &User manual
        &Instrukcja
    
    
        Document &History
        &Historia dokumentu
    
    
        Document  History
        Historia Dokumentu
    
    
        &Advanced Search
        &Zaawansowane szukanie
    
    
        Advanced/complex  Search
        Złożone szukanie
    
    
        &Sort parameters
        Parametry &sortowania
    
    
        Sort parameters
        Parametry sortowania
    
    
        Term &explorer
        Przejżyj &terminy
    
    
        Term explorer tool
        Przeglądanie terminów
    
    
        Next page
        Następna strona
    
    
        Next page of results
        Następna strona wyników
    
    
        First page
        Pierwsza strona
    
    
        Go to first page of results
        Przejdź do pierwszej strony wyników
    
    
        Previous page
        Poprzednia strona
    
    
        Previous page of results
        Poprzednia strona wyników
    
    
        External index dialog
        Zewnętrzny indeks
    
    
        All
        Wszystko
    
    
        &Show missing helpers
        Pokaż &brakujących pomocników
    
    
        PgDown
        PgDown
    
    
        PgUp
        PgUp
    
    
        &Full Screen
        Pełen &Ekran
    
    
        F11
        F11
    
    
        Full Screen
        Pełen ekran
    
    
        &Erase search history
        &Usuń historię szukania
    
    
        Sort by dates from oldest to newest
        Sortuj po dacie: od najstarszego
    
    
        Sort by dates from newest to oldest
        Sortuj po dacie: od najnowszego
    
    
        Show Query Details
        Pokaż szczegóły zapytania
    
    
        &Rebuild index
        &Odnów indeks
    
    
        &Show indexed types
        Pokaż zaindeksowane &typy
    
    
        Shift+PgUp
        Shift+PgUp
    
    
        &Indexing schedule
        &Plan indeksowania
    
    
        E&xternal index dialog
        Zewnętrzny indeks
    
    
        &Index configuration
        &Konfiguracja indeksu
    
    
        &GUI configuration
        Konfiguracja &GUI
    
    
        &Results
        &Wyniki
    
    
        Sort by date, oldest first
        Sortuj po dacie: od najstarszego
    
    
        Sort by date, newest first
        Sortuj po dacie: od najnowszego
    
    
        Show as table
        Pokaż jako tabela
    
    
        Show results in a spreadsheet-like table
        Pokaż wyniki jako arkusz
    
    
        Save as CSV (spreadsheet) file
        Zapisz jako plik CSV (arkusz)
    
    
        Saves the result into a file which you can load in a spreadsheet
        Zapisz wyniki do pliku czytelnego przez arkusz
    
    
        Next Page
        Następna strona
    
    
        Previous Page
        Poprzednia strona
    
    
        First Page
        Pierwsza strona
    


    RecollModel
    
        Abstract
        Abstrakcja
    
    
        Author
        Autor
    
    
        Document size
        Rozmiar dokumentu
    
    
        Document date
        Data dokumentu
    
    
        File size
        Rozmiar pliku
    
    
        File name
        Nazwa pliku
    
    
        File date
        Data pliku
    
    
        Keywords
        Słowa klucze
    
    
        Original character set
        Oryginalny zestaw znaków
    
    
        Relevancy rating
        Trafność
    
    
        Title
        Tytuł
    
    
        URL
        URL
    
    
        Mtime
        Czas modyfikacji
    
    
        Date
        Data
    
    
        Date and time
        Data i czas
    
    
        Ipath
        Ipath
    
    
        MIME type
        Typ MIME
    


    ResList
    
        Result list
        Lista wyników
    
    
        (show query)
        (Pokaż zapytanie)
    
    
        Document history
        Historia dokumentu
    
    
        <p><b>No results found</b><br /></p>
        <p><b>Brak wyników</b><br /></p>
    
    
        Previous
        Poprzedni
    
    
        Next
        Następny
    
    
        Unavailable document
        Dokument niedostępny
    
    
        Preview
        Poprzedni
    
    
        Open
        Otwórz
    
    
        <p><i>Alternate spellings (accents suppressed): </i></p>
        <p><i>Aleternatywna pisowania (ignorowane akcenty): </i></p>
    
    
        Documents
        Dokumenty
    
    
        out of at least
        z co najmniej
    
    
        for
        dla
    
    
        <p><i>Alternate spellings: </i></p>
        <p><i>Alternatywna pisownia: </i></p>
    
    
        Duplicate documents
        Duplikaty dokumentów
    
    
        These Urls ( | ipath) share the same content:
        Te URLe ( | ipath) mają tą samą zawartość:
    
    
        Result count (est.)
        Liczba wyników (oszacowana)
    
    
        Query details
        Szczegóły zapytania
    


    ResTable
    
        &Reset sort
        &Reset sortowania
    
    
        &Delete column
        &Usuń kolumnę
    
    
        Save table to CSV file
        Zapisz tabelę jako plik CSV
    
    
        Can't open/create file: 
        Nie można otworzyć|utworzyć pliku:
    
    
        &Save as CSV
        &Zapisz jako CSV
    
    
        Add "%1" column
        Dodaj "%1" kolumnę
    


    ResultPopup
    
        &Preview
        &Poprzedni
    
    
        &Open
        &Otwórz
    
    
        Copy &File Name
        &Kopiuj nazwę pliku
    
    
        Copy &URL
        Kopiuj &URL
    
    
        &Write to File
        Zapisz &do pliku
    
    
        Save selection to files
        Zapisz zaznaczenie do pliku
    
    
        Preview P&arent document/folder
        Podgląd rodzica dokumentu|katalogu
    
    
        &Open Parent document/folder
        &Otwórz dokument|katalog rodzica
    
    
        Find &similar documents
        Znajdź &podobne dokumenty
    
    
        Open &Snippets window
        Otwórz okno &snipetów
    
    
        Show subdocuments / attachments
        Pokaż poddokumenty|załączniki
    


    SSearch
    
        Any term
        Któryś termin
    
    
        All terms
        Każdy termin
    
    
        File name
        Nazwa pliku
    
    
        Query language
        Język zapytań
    
    
        Bad query string
        Błędne zapytanie
    
    
        Out of memory
        Brak pamięci
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  No actual parentheses allowed.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (<F1>) for more detail.
</br></br></br></br></br></br></br></br></br></br></br>
        Wprowadź wyrażenie pytające. Ściąga:<br>
<i>termin1 termin2</i> : 'termin1' i 'termin2' w którymś polu.<br>
<i>pole:termin1</i> : 'termin1' w polu 'pole'.<br>
 Standardowe pola nazwy|synonimy:<br>
  tytuł/przedmiot/napis, autor/od, odbiorca/do, nazwa pliku, ext.<br>
 Pseudo-pola: katalog, mime/format, typ/rclcat, data.<br>
 Przykład przedziału dat: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>termin1 termin2 LUB termin3</i> : termin1 LUB (termin2 LUB termin3).<br>
  Nawiasy aktualnie niedozwolone.<br>
<i>"termin1 termin2"</i> : fraza (wystąpienie dokładne). Dostępne modyfikatory:<br>
<i>"termin1 termin2"p</i> : nieuporządkowane sąsiednie szukanie z domyślną odległością.<br>
Użyj <b>Pokaż zapytanie</b> jeśli jesteś niepewny wyników i sprawdź je z instrukcją (<F1>) .
</br></br></br></br></br></br></br></br></br></br></br>
    
    
        Enter file name wildcard expression.
        Wprowadź wieloznakowe (wildcard) wyrażenie nazwy pliku
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Wprowadź tutaj szkane terminy. Wpisz ESC SPC by uzupełnić bieżący termin.
    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        Wyczyść
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        Usuń szukany wpis
    
    
        Search
        Szukaj
    
    
        Start query
        Start zapytania
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Wprowadź tutaj szkane terminy. Wpisz ESC SPC by uzupełnić bieżący termin.
    
    
        Choose search type.
        Wybierz typ szukania.
    


    SearchClauseW
    
        Select the type of query that will be performed with the words
        Wybierz typ zapytania, który będzie użyty z wyrazami
    
    
        Number of additional words that may be interspersed with the chosen ones
        Liczba dodatkowych wyrazów, które mogą być przeplatane z wybranymi
    
    
        No field
        Bez pola
    
    
        Any
        Któryś
    
    
        All
        Każdy
    
    
        None
        Żaden
    
    
        Phrase
        Fraza
    
    
        Proximity
        Sąsiedztwo
    
    
        File name
        Nazwa pliku
    


    Snippets
    
        Snippets
        Snipety
    
    
        Find:
        Znajdź:
    
    
        Next
        Następny
    
    
        Prev
        Poprzedni
    


    SnippetsW
    
        Search
        Szukaj
    


    SpellBase
    
        Term Explorer
        Przegląd terminów
    
    
        &Expand 
        &Rozszerz
    
    
        Alt+E
        Alt+E
    
    
        &Close
        &Zamknij
    
    
        Alt+C
        Alt+C
    
    
        No db info.
        Brak informacji bd.
    
    
        Match
        Dopasowanie
    
    
        Case
        Wielkość znaków (Case)
    
    
        Accents
        Akcenty
    


    SpellW
    
        Wildcards
        Wieloznaczniki (wildcards)
    
    
        Regexp
        Wyrażenie regułowe (regexp)
    
    
        Stem expansion
        Roszerzenie rdzenia (Stem expansion)
    
    
        Spelling/Phonetic
        Pisownia/Fonetyczność
    
    
        error retrieving stemming languages
        Błąd pobierania "reguł ciosania" (ang. stemming languages)
    
    
        Aspell init failed. Aspell not installed?
        Nieudany start Aspell. Nie zainstalowano Aspell?
    
    
        Aspell expansion error. 
        Błąd rozszerzenia Aspell.
    
    
        No expansion found
        Nieznalezione rozszerzenie
    
    
        Term
        Termin
    
    
        Doc. / Tot.
        Dok. / Razem
    
    
        Index: %1 documents, average length %2 terms.%3 results
        Indeks: %1 dokumenty, średnia długość %2 terminów.%3 wyników
    
    
        %1 results
        %1 wyników
    
    
        List was truncated alphabetically, some frequent 
        Lista obcięta alfabetycznie, część częsta
    
    
        terms may be missing. Try using a longer root.
        Terminy mogą zginąć. Użyj dłuższego rdzenia
    
    
        Show index statistics
        Pokaż statystyki indeksowania
    
    
        Number of documents
        Liczba dokumentów
    
    
        Average terms per document
        Średnia terminów na dokument
    
    
        Smallest document length
        Najmniejsza długość dokumentu
    
    
        Longest document length
        Największa długość dokumentu
    
    
        Database directory size
        Rozmiar katalogu bazy danych
    
    
        MIME types:
        Typy MIME:
    
    
        Item
        Element
    
    
        Value
        Wartość
    


    UIPrefsDialog
    
        error retrieving stemming languages
        Błąd pobierania "reguł ciosania" (ang. stemming languages)
    
    
        The selected directory does not appear to be a Xapian index
        Wybrany katalog nie wygląda jak indeks Xapian
    
    
        This is the main/local index!
        To jest główny|lokalny indeks!
    
    
        The selected directory is already in the index list
        Wybrany słownik już należy do indeksu
    
    
        Choose
        Wybierz
    
    
        Result list paragraph format (erase all to reset to default)
        Format paragrafu listy wyników (usuń wszystko by wróćić do domyślnych)
    
    
        Result list header (default is empty)
        Nagłówek listy wyników (domyślnie pusty)
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        Wybierz katalog konfiguracji recoll lub katalog indeksu xapian (np.: /home/ja/.recoll lub /home/ja/.recoll/xapiandb)
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        Wybrany katalog wygląda jak katalog konfiguracji Recoll, jednakże kofiguracja nie może być przeczytana
    
    
        At most one index should be selected
        Co najwyżej jeden indeks powinnien być wyberany
    
    
        Cant add index with different case/diacritics stripping option
        Nie można dodać indeksu z opcją różnej wielkości-liter/znakach-diakrytycznych
    


    ViewAction
    
        Command
        Komenda
    
    
        MIME type
        Typ Mime
    
    
        Desktop Default
        Domyślnie ustawienia pulpitu
    
    
        Changing entries with different current values
        Zmiana wpisów o różne obecne wartości
    


    ViewActionBase
    
        Native Viewers
        Systemowy czytnik
    
    
        Close
        Zamknij
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        Wybierz jedno lub kilka typów MIME po czym określ jak mają być przetwarzane używając kontrolek na dole ramki
    
    
        Use Desktop preferences by default
        Użyj domyślnie ustawień Pulpitu 
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Wybierz jeden lub kilka typów pliku, następnie wskaż w ramce poniżej jak mają zostać przetworzone
    
    
        Exception to Desktop preferences
        Wyjątki dla ustawień Pulpitu
    
    
        Action (empty -> recoll default)
        Czyń (pusty -> recoll domyślnie)
    
    
        Apply to current selection
        Użyj dla obecnego wyboru
    
    
        Recoll action:
        Recoll zachowanie:
    
    
        current value
        obecna wartość
    
    
        Select same
        Wybierz to samo
    
    
        <b>New Values:</b>
        <b>Nowa wartość:</b>
    


    confgui::ConfBeaglePanelW
    
        Entries will be recycled once the size is reached
        Wpisy będą odnowione gdy osiągnie rozmiar
    
    
        Web page store directory name
        Nazwa katalogu dla trzymania stron web
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.</br>
        Nazwa katalogu w którym trzymane są kopie odwiedzonych stron.<br>Nieabsolutna ścieżka jest brana względnie do katalogu konfiguracji.</br>
    
    
        Max. size for the web store (MB)
        Maks. rozmiar dla schowka webowego (MB)
    
    
        Process the WEB history queue
        Przejdź do kolejki historii web
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)</br>
        Włącz ineksowanie odwiedzonych stron w Firefox.<br>(Wymagana instalacja dodatku Firefox Recoll)</br>
    


    confgui::ConfIndexW
    
        Can't write configuration file
        Nie można pisać w pliku konfiguracji
    


    confgui::ConfParamFNW
    
        Choose
        Wybierz
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        Automatyczna czułość na diakrytyki
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.</p>
        <p>Automatycznie uruchom czułość diakrytyków jeśli szukana fraza zawiera "ogonki" (nie w unac_except_trans). Inaczej musisz użyć języka zapytań oraz modyfikator<i>D</i> by wskazać czułość diakrytyków.</p>
    
    
        Automatic character case sensitivity
        Automatyczna czułość wielkości znaków
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.</p>
        <p>Automatycznie uruchom rozróżnianie wielkości znaków jeśli wpis ma wielkie litery (poza pierwszym znakiem). Inaczej musisz użyć języka zapytań oraz modyfikatora <i>C</i> by wskazać rozróżnianie wielkości liter.</p>
    
    
        Maximum term expansion count
        Maksymalna liczba rozszerzeń terminu
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.</p>
        <p>Maksymalna liczba rozszerzeń dla pojedyńczego terminu (np.: używając wieloznaczników). Domyślne 10 000 jest wartością rozsądną oraz strzeże przed zawieszeniem zapytania podczas gdy przeszukiwana jest lista terminów</p>
    
    
        Maximum Xapian clauses count
        Maksymalna liczba klauzuli Xapian 
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.</p>
        <p>Maksymalna liczba początkowych klauzuli dodawanych do zapytania Xapian. W niektórych przypadkach, wynik rozszerzeń terminu może być pomnożony, zwiększając zużycie pamięci. Domyślne 100 000 powinno być dostatecznie wysokie dla większości przypadków oraz działające na obecnych konfiguracjach sprzętowych.</p>
    


    confgui::ConfSubPanelW
    
        Global
        Globalnie
    
    
        Max. compressed file size (KB)
        Maks. rozmiar skompresowanego pliku (KB)
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        Wartość progowa od której skompresowane pliki przestają być przetwarzane. Brak limitu to -1, 0 wyłącza przetwarzanie plików skompresowanych.
    
    
        Max. text file size (MB)
        Maks. rozmiar plików tekstowych (MB)
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        Wartość progowa po której pliki tekstowe przestają być przetwarzane. Brak limitu to -1.
Używaj do wykluczenia gigantycznych plików dziennika systemowego (logs).
    
    
        Text file page size (KB)
        Rozmiar strony pliku tekstowego (KB)
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        Indeksując dzieli plik tekstowy na podane kawałki (jeśli różne od -1).
Pomocne przy szukaniu w wielkich plikach (np.: dzienniki systemowe).
    
    
        Max. filter exec. time (S)
        Maks. czas filtrowania (s)
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        Przerywa po tym czasie zewnętrzne filtrowanie. Dla rzadkich przypadków (np.: postscript) kiedy dokument może spowodować zapętlenie filtrowania. Brak limitu to -1.
    


    confgui::ConfTopPanelW
    
        Top directories
        Szczytowe katalogi
    
    
        The list of directories where recursive indexing starts. Default: your home.
        Lista katalogów rekursywnego indeksowania. Domyślnie: Twój katalog domowy.
    
    
        Skipped paths
        Wykluczone ścieżki
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')</br>
        Te katalogi są wykluczone z indeksowania.<br> Dozwolone wieloznaczniki. Muszą odpowiadać ścieżkom znanym indekserowi (np.: jeśli szczytowy katalog zawiera "/home/ja" i "/home" jest linkiem do "/usr/home", to poprawna ścieżka to "/home/ja/tmp*", natomiast błędna to "/usr/home/ja/tmp*")</br>
    
    
        Stemming languages
        Reguły ciosania (ang. stemming languages)
    
    
        The languages for which stemming expansion<br>dictionaries will be built.</br>
        Języki dla których słownik rozszerzenia ciosania<br> (stemming) będzie zbudowany.</br>
    
    
        Log file name
        Nazwa pliku dziennika (logs)
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output</br>
        Plik w którym zapisywane są komunikaty.<br>Użyj "stderr" by skorzystać z konsoli</br>
    
    
        Log verbosity level
        Poziom stężenia komunikatu
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.</br>
        Wartość ta ustawia ilość komunikatów,<br>od prostych błędów aż po mnogie informacje diagnostyczne.</br>
    
    
        Index flush megabytes interval
        Interwał (megabajty) opróżniania indeksowania
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB </br>
        Ustawia próg indeksowania danych zanim zostaną wysłane na dysk.<br>Odpowiada za kontrolowanie zużycia pamięci przez indekser. Domyślnie: 10MB</br>
    
    
        Max disk occupation (%)
        Maks. zużycie dysku (%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).</br>
        Procent zużycia dysku po którym indeksowanie zostanie przerwane (chroni przed zapełnieniem dysku).<br>0 oznacz brak limitu (domyślnie).</br>
    
    
        No aspell usage
        Brak użycia Aspell
    
    
        Aspell language
        Język Aspell
    
    
        Database directory name
        Nazwa katalogu bazy danych
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. </br>
        Wyłącz używanie Aspell do tworzenia przybliżeń w narzędziu przeglądania terminów.<br> Użyteczne, gdy brak Aspell lub jest zepsuty. </br>
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. </br>
        Język dla katalogu Aspell, wyglądający jak "en" lub "pl" ..<br>Gdy brak, wartość środowiska NLS zostanie użyta (zwykle działa). By sprawdzić, co posiadasz zainstalowane, wpisz "aspell config" po czym znajdź pliki .dat w katalogu "data-dir". </br>
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.</br>
        Nazwa katalogu przechowania indeksu<br>Nieabsolutna ścieżka jest brana względnie do katalogu konfiguracji. Domyślnie jest to "xapiandb".</br>
    
    
        Unac exceptions
        Unac exceptions
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.</p>
        <p>To są wyjątki mechaniki unac., która domyślnie usuwa wszystkie diakrytyki oraz wykonują dekompozycję kanoniczną. Możliwe nadpisanie nieakcentowania dla pewnych znaków, w zależności od twojego języka oraz wyszczególnienie dodatkowych dekompozycji, np.: ligatur. Dla każdego wpisu (oddzielony spacjami) pierwszy znak to źródło, pozostałe to tłumaczenie</p>
    


    uiPrefsDialogBase
    
        User preferences
        Ustawienia
    
    
        User interface
        Wygląd
    
    
        Number of entries in a result page
        Liczba wyników na stronie
    
    
        If checked, results with the same content under different names will only be shown once.
        Wyświetl tylko raz gdy tak sama zawartość (choć różne nazwy)
    
    
        Hide duplicate results.
        Ukryj duplikaty w wynikach.
    
    
        Highlight color for query terms
        Podświetl terminy z zapytania
    
    
        Result list font
        Czcionka listy wyników
    
    
        Opens a dialog to select the result list font
        Otwiera okno wyboru czcionek
    
    
        Helvetica-10
        Helvetica-10
    
    
        Resets the result list font to the system default
        Reset czcionki wyników do domyślnej
    
    
        Reset
        Reset
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Teksty powyżej tego rozmiaru będą ukryte w podglądzie (zbyt wolne).
    
    
        Maximum text size highlighted for preview (megabytes)
        Maks. rozmiar tekstu dla wyróżnienia w podglądzie (MB)
    
    
        Choose editor applications
        Wybierz edytor aplikacji
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Wyświetl filtr kategorii jako pasek zamiast panelu (wymagany restart).
    
    
        Auto-start simple search on whitespace entry.
        Proste szukanie gdy użyto biłych znaków we wpisie.
    
    
        Start with advanced search dialog open.
        Rozpocznij oknem zaawansowanego szukania.
    
    
        Remember sort activation state.
        Pamiętaj stan sortowania.
    
    
        Prefer Html to plain text for preview.
        Użyj HTML (zamiast czysty tekst) dla podglądu.
    
    
        Search parameters
        Parametry szukania
    
    
        Stemming language
        Język ciosania
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Wyszukanie dla [rolling stones] (2 terminy) zostanie zamienione na [rolling or stones or (rolling phrase 2 stones)]. 
To powinno dać pierwszeństwo wynikom, dokładnie tak jak zostały wpisane.
    
    
        Automatically add phrase to simple searches
        Automatycznie dodaj frazę do szukania prostego
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Mam budować streszczenie dla wyników po przez użycie kontekstu teminów zapytania?
Może zwalniać dla dużych dokumentów.
    
    
        Dynamically build abstracts
        Buduj streszczenia dynamicznie
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Tworzyć sztuczne streszczenie nawet jeśli dokument ma własne?
    
    
        Replace abstracts from documents
        Zamień streszczenia z dokumentów
    
    
        Synthetic abstract size (characters)
        Rozmiar sztucznego streszczenia (w znakach)
    
    
        Synthetic abstract context words
        Kontekstowe wyrazy sztucznego streszczenia
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        Wyrazy z listy zostaną automatycznie zmienione w klauzule ext:xxx we wpisach języka zapytań.
    
    
        Query language magic file name suffixes.
        Magiczne przyrostki nazw plików języka zapytań
    
    
        Enable
        Włącz
    
    
        External Indexes
        Zewnętrzne indeksy
    
    
        Toggle selected
        Odwróc zaznaczenie
    
    
        Activate All
        Aktywuj wszystko
    
    
        Deactivate All
        Deaktywuj wszystko
    
    
        Remove from list. This has no effect on the disk index.
        Usuń z listy. Brak skutku dla indeksu na dysku.
    
    
        Remove selected
        Usuń zaznaczenie
    
    
        Add index
        Dodaj indeks
    
    
        Apply changes
        Zastosuj zmiany
    
    
        &OK
        &Ok
    
    
        Discard changes
        Porzuć zmiany
    
    
        &Cancel
        &Anuluj
    
    
        Abstract snippet separator
        Oddzielacz snipetu streszczenia
    
    
        Style sheet
        Arkusz stylów
    
    
        Opens a dialog to select the style sheet file
        Otwiera okno wyboru arkusza stylów
    
    
        Choose
        Wybierz
    
    
        Resets the style sheet to default
        Reset arkusza stylów do domyślnych
    
    
        Result List
        Lista wyników
    
    
        Edit result paragraph format string
        Zmień format paragrafu dla wyniku
    
    
        Edit result page html header insert
        Zmień nagłówek HTML dla strony wyników
    
    
        Date format (strftime(3))
        Format daty (strftime(3))
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        Próg częstotliowści procentowej dla której terminy wew. autofrazy nie są używane.
Częste terminy są powodem słabej wydajności fraz.
Pominięte terminy zwiększają rozlużnienie frazy oraz zmniejszanją wydajność autofrazy.
Domyślna wartość to 2 (%).
    
    
        Autophrase term frequency threshold percentage
        Procentowy próg częstości dla terminu Autofrazy
    
    
        Plain text to HTML line style
        Styl linii czystego tekstu do HTML
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        Linie w PRE nie są zwijane. Użycie BR zaciera wcięcia. PRE + Zawijaj styl może być tym co szukasz.
    
    
        <BR />
        <BR />
    
    
        <PRE />
        <PRE />
    
    
        <PRE> + wrap</PRE>
        <PRE> + zawijaj</PRE>
    
    
        Disable Qt autocompletion in search entry.
        Wyłącz podpowiedź Qt dla wpisu szukania
    
    
        Search as you type.
        Szukaj podczas pisania.
    
    
        Paths translations
        Ścieżki tłumaczeń
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        Kliknij by dodać kolejny katalog do listy. Możesz wybrać zarówno katalog konfiguracji Recoll jak i indeks Xapian.
    
    
        Snippets window CSS file
        Okno snippetów CSS
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        Otwórz okno by wybrać snipet CSS
    
    
        Resets the Snippets window style
        Reset stylu okna
    


recoll-1.21.5/qtgui/i18n/recoll_it.ts0000644000175000017500000033560312602163537016635 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        Tutti i termini
    
    
        Any clause
        Qualsiasi termine
    
    
        texts
        testi
    
    
        spreadsheets
        fogli di calcolo
    
    
        presentations
        presentazioni
    
    
        media
        multimediali
    
    
        messages
        messaggi
    
    
        other
        altri
    
    
        Bad multiplier suffix in size filter
        
    
    
        text
        
    
    
        spreadsheet
        
    
    
        presentation
        
    
    
        message
        
    


    AdvSearchBase
    
        Advanced search
        Ricerca avanzata
    
    
        Restrict file types
        Limita i tipi di file
    
    
        Save as default
        Salva come default
    
    
        Searched file types
        Ricerca tipo file
    
    
        All ---->
        Tutti ---->
    
    
        Sel ----->
        Sel ----->
    
    
        <----- Sel
        <----- Sel
    
    
        <----- All
        <----- Tutti
    
    
        Ignored file types
        Ignora i file di questo tipo
    
    
        Enter top directory for search
        Scrivi la directory base per la ricerca
    
    
        Browse
        Esplora
    
    
        Restrict results to files in subtree:
        Limita i risultati alla sotto-directory: 
    
    
        Start Search
        Cerca
    
    
        Search for <br>documents<br>satisfying:
        Cerca i documenti<br>che contengono:
    
    
        Delete clause
        Elimina condizione
    
    
        Add clause
        Aggiungi condizione
    
    
        Check this to enable filtering on file types
        Contrassegna per abilitare la ricerca sul tipo di file
    
    
        By categories
        Per categorie
    
    
        Check this to use file categories instead of raw mime types
        Contrassegna per usare le categorie al posto dei tipi mime
    
    
        Close
        Chiudi
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.
        
    
    
        Invert
        
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        
    
    
        Min. Size
        
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        
    
    
        Max. Size
        
    
    
        Filter
        
    
    
        From
        
    
    
        To
        
    
    
        Check this to enable filtering on dates
        
    
    
        Filter dates
        
    
    
        Find
        
    
    
        Check this to enable filtering on sizes
        
    
    
        Filter sizes
        
    


    CronToolW
    
        Cron Dialog
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        
    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        
    
    
        Hours (* or 0-23)
        
    
    
        Minutes (0-59)
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        
    
    
        Enable
        
    
    
        Disable
        
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        
    
    
        Error installing cron entry. Bad syntax in fields ?
        
    


    EditDialog
    
        Dialog
        
    


    EditTrans
    
        Source path
        
    
    
        Local path
        
    
    
        Config error
        
    
    
        Original path
        
    


    EditTransBase
    
        Path Translations
        
    
    
        Setting path translations for 
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Add
        
    
    
        Delete
        
    
    
        Cancel
        Annulla
    
    
        Save
        
    


    FirstIdxDialog
    
        First indexing setup
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        
    
    
        Indexing configuration
        
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        
    
    
        Indexing schedule
        
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        
    
    
        Start indexing now
        
    


    FragButs
    
        %1 not found.
        
    
    
        %1:
 %2
        
    
    
        Query Fragments
        
    


    IdxSchedW
    
        Index scheduling setup
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        
    
    
        Cron scheduling
        
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        
    
    
        Real time indexing start up
        
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        
    


    ListDialog
    
        Dialog
        
    
    
        GroupBox
        
    


    Main
    
        No db directory in configuration
        Nessuna directory per il DB di base nella configurazione
    
    
        Could not open database in 
        Impossibile aprire il database in 
    
    
        .
Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed.
        Clicca 'Annulla' se vuoi editare il file di configurazione prima di iniziare l'indicizzazione, oppure 'OK' se vuoi procedere.
    
    
        Configuration problem (dynconf
        Problema di configurazione (dynconf
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        
    


    Preview
    
        &Search for:
        &Cerca:
    
    
        &Next
        &Successivo
    
    
        &Previous
        &Precedente
    
    
        Match &Case
        Rispetta &Maiuscole/minuscole
    
    
        Clear
        Cancella
    
    
        Creating preview text
        Creazione del testo per l'anteprima
    
    
        Loading preview text into editor
        Caricamento anteprima del testo nell'editor
    
    
        Cannot create temporary directory
        Impossibile creare directory temporanea
    
    
        Cancel
        Annulla
    
    
        Close Tab
        Chiudi Tab
    
    
        Missing helper program: 
        Manca il programma di filtro esterno: 
    
    
        Can't turn doc into internal representation for 
        Impossibile tradurre il documento per la rappresentazione interna 
    
    
        Error while loading file
        
    


    PreviewTextEdit
    
        Show fields
        
    
    
        Show main text
        
    
    
        Print
        
    
    
        Print Current Preview
        
    
    
        Show image
        
    
    
        Select All
        
    
    
        Copy
        
    
    
        Save document to file
        
    
    
        Fold lines
        
    
    
        Preserve indentation
        
    


    QObject
    
        Global parameters
        Parametri globali
    
    
        Local parameters
        Parametri locali
    
    
        <b>Customised subtrees
        <b>Ramificazioni personalizzate
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.
        Lista delle sottocartelle nella gerarchia indicizzata<br>ove alcuni parametri devono essere ridefiniti. Predefinita: vuota.
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.
        <i>I parametri che seguono sono postii al livello superiore, se niente <br> o una linea vuota è selezionata nella casella sovrastante, oppure al livello della cartella selezionata.<br> Puoi aggiungere/rimuovere cartelle cliccando i bottoni +/-.
    
    
        Skipped names
        Nomi saltati
    
    
        These are patterns for file or directory  names which should not be indexed.
        Questi sono modelli per i nomi delle cartelle e/o dei files che non devono vebire indicizzati.
    
    
        Default character set
        Set di caratteri di default
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        Questa è la codifica caratteri usata per leggere i file che non contengono indicazioni interne sulla codifica usata, ad esempio file di testo semplice.<br>Il valore predefinito è vuoto, in modo che venga usata l'impostazione locale del sistema.
    
    
        Follow symbolic links
        Segue il link simbolico
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        Segue il link simbolico durante l'indicizzazione. Di default è no, per evitare la duplicazione dell'indice
    
    
        Index all file names
        Indicizza tutti i nomi dei files
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        Indicizza il nome di quei files il cui contenuto non può essere identificato o processato (tipo mime non supportato). Di default è impostato a vero
    
    
        Search parameters
        Parametri per la ricerca
    
    
        Web history
        
    
    
        Default<br>character set
        
    
    
        Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        
    
    
        Ignored endings
        
    
    
        These are file name endings for files which will be indexed by name only 
(no MIME type identification attempt, no decompression, no content indexing).
        
    


    QWidget
    
        Create or choose save directory
        
    
    
        Choose exactly one directory
        
    
    
        Could not read directory: 
        
    
    
        Unexpected file name collision, cancelling.
        
    
    
        Cannot extract document: 
        
    
    
        &Preview
        &Anteprima
    
    
        &Open
        
    
    
        Open With
        
    
    
        Run Script
        
    
    
        Copy &File Name
        Copia il nome del &File
    
    
        Copy &URL
        Copia l'&Url
    
    
        &Write to File
        
    
    
        Save selection to files
        
    
    
        Preview P&arent document/folder
        
    
    
        &Open Parent document/folder
        
    
    
        Find &similar documents
        Trova documenti &simili
    
    
        Open &Snippets window
        
    
    
        Show subdocuments / attachments
        
    


    RTIToolW
    
        Real time indexing automatic start
        
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        
    
    
        Start indexing daemon with my desktop session.
        
    
    
        Also start indexing daemon right now.
        
    
    
        Replacing: 
        
    
    
        Replacing file
        
    
    
        Can't create: 
        
    
    
        Warning
        Attenzione
    
    
        Could not execute recollindex
        
    
    
        Deleting: 
        
    
    
        Deleting file
        
    
    
        Removing autostart
        
    
    
        Autostart file deleted. Kill current process too ?
        
    


    RclMain
    
        About Recoll
        Informazioni su Recoll
    
    
        Executing: [
        Esecuzione di: [
    
    
        Cannot retrieve document info from database
        Impossibile caricare informazioni del documento dal database
    
    
        Warning
        Attenzione
    
    
        Can't create preview window
        Non posso creare la finestra di anteprima
    
    
        Query results
        Risultati della ricerca
    
    
        Document history
        Cronologia dei documenti
    
    
        History data
        Cronologia dei dati
    
    
        Indexing in progress: 
        Indicizzazione in corso:  
    
    
        Files
        Files
    
    
        Purge
        Pulisco
    
    
        Stemdb
        Database espansioni
    
    
        Closing
        Chiusura
    
    
        Unknown
        Sconosciuto
    
    
        This search is not active any more
        Questa ricerca non e' piu' attiva
    
    
        Can't start query: 
        Non posso iniziare la ricerca: 
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeconf file
        Errata linea di comando per %1: [%2]
Verifica il file mimeconf
    
    
        Cannot extract document or create temporary file
        Non posso estrarre il documento o creare il file temporaneo
    
    
        (no stemming)
        (nessuna espansione)
    
    
        (all languages)
        (tutte le lingue)
    
    
        error retrieving stemming languages
        errore nel recupero delle lingue per l'espansione
    
    
        Update &Index
        
    
    
        Stop &Indexing
        
    
    
        All
        
    
    
        media
        multimediali
    
    
        message
        
    
    
        other
        altri
    
    
        presentation
        
    
    
        spreadsheet
        
    
    
        text
        
    
    
        sorted
        
    
    
        filtered
        
    
    
        No helpers found missing
        
    
    
        Missing helper programs
        
    
    
        No external viewer configured for mime type [
        
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        
    
    
        Can't access file: 
        
    
    
        Can't uncompress file: 
        
    
    
        Save file
        
    
    
        Result count (est.)
        
    
    
        Query details
        Dettagli ricerca
    
    
        Could not open external index. Db not open. Check external indexes list.
        
    
    
        No results found
        
    
    
        None
        
    
    
        Updating
        
    
    
        Done
        
    
    
        Monitor
        
    
    
        Indexing failed
        
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        
    
    
        Erasing index
        
    
    
        Reset the index and start from scratch ?
        
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program
        
    
    
        Error
        
    
    
        Index not open
        
    
    
        Index query error
        
    
    
        Content has been indexed for these mime types:
        
    
    
        Can't update index: indexer running
        
    
    
        Indexed MIME Types
        
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        
    
    
        Cannot find parent document
        
    
    
        Indexing did not run yet
        
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        
    
    
        Sub-documents and attachments
        
    
    
        Document filter
        
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. 
        
    
    
        Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. 
        
    
    
        The indexer is running so things should improve when it's done. 
        
    
    
        The document belongs to an external indexwhich I can't update. 
        
    
    
        Click Cancel to return to the list. Click Ignore to show the preview anyway. 
        
    
    
        Duplicate documents
        
    
    
        These Urls ( | ipath) share the same content:
        
    
    
        Bad desktop app spec for %1: [%2]
Please check the desktop file
        
    
    
        Indexing interrupted
        
    


    RclMainBase
    
        Previous page
        Pagina precedente
    
    
        Next page
        Pagina seguente
    
    
        &File
        &File
    
    
        E&xit
        &Esci
    
    
        &Tools
        &Strumenti
    
    
        &Help
        &Aiuto
    
    
        &Preferences
        &Preferenze
    
    
        Search tools
        Strumenti di ricerca
    
    
        Result list
        Lista risultati
    
    
        &About Recoll
        &Informazioni su Recoll
    
    
        Document &History
        C&ronologia documenti
    
    
        Document  History
        Visualizza la cronologia dei documenti
    
    
        &Advanced Search
        Ricerca &Avanzata
    
    
        Advanced/complex  Search
        Mostra la finestra di Ricerca avanzata
    
    
        &Sort parameters
        &Parametri ordinamento
    
    
        Sort parameters
        Configurazione dei parametri di ordinamento
    
    
        Next page of results
        Pagina seguente
    
    
        Previous page of results
        Pagina precedente
    
    
        &Query configuration
        &Configurazione ricerca
    
    
        &User manual
        &Manuale utente
    
    
        Recoll
        Recoll
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        Update &index
        Aggiorna &indice
    
    
        Term &explorer
        &Esplora l'indice
    
    
        Term explorer tool
        Strumento di esplorazione indice
    
    
        External index dialog
        Configurazione indici esterni
    
    
        &Erase document history
        &Cancella la cronologia dei documenti
    
    
        First page
        Prima pagina
    
    
        Go to first page of results
        Vai alla prima pagina dei risultati
    
    
        &Indexing configuration
        Conf&igurazione indicizzazione
    
    
        &Show missing helpers
        
    
    
        PgDown
        
    
    
        PgUp
        
    
    
        &Full Screen
        
    
    
        F11
        
    
    
        Full Screen
        
    
    
        &Erase search history
        
    
    
        Sort by dates from oldest to newest
        
    
    
        Sort by dates from newest to oldest
        
    
    
        Show Query Details
        
    
    
        &Rebuild index
        
    
    
        &Show indexed types
        
    
    
        Shift+PgUp
        
    
    
        &Indexing schedule
        
    
    
        E&xternal index dialog
        
    
    
        &Index configuration
        
    
    
        &GUI configuration
        
    
    
        &Results
        
    
    
        Sort by date, oldest first
        
    
    
        Sort by date, newest first
        
    
    
        Show as table
        
    
    
        Show results in a spreadsheet-like table
        
    
    
        Save as CSV (spreadsheet) file
        
    
    
        Saves the result into a file which you can load in a spreadsheet
        
    
    
        Next Page
        
    
    
        Previous Page
        
    
    
        First Page
        
    
    
        Query Fragments
        
    
    
            With failed files retrying
        
    
    
        Next update will retry previously failed files
        
    


    RclTrayIcon
    
        Restore
        
    
    
        Quit
        
    


    RecollModel
    
        File name
        Nome file
    
    
        Mime type
        Tipo MIME
    
    
        Date
        Data
    
    
        Abstract
        
    
    
        Author
        
    
    
        Document size
        
    
    
        Document date
        
    
    
        File size
        
    
    
        File date
        
    
    
        Keywords
        
    
    
        Original character set
        
    
    
        Relevancy rating
        
    
    
        Title
        
    
    
        URL
        
    
    
        Mtime
        
    
    
        Date and time
        
    
    
        Ipath
        
    
    
        MIME type
        
    


    ResList
    
        Result list
        Lista dei risultati
    
    
        Unavailable document
        Documento inaccessible
    
    
        Previous
        Precedente
    
    
        Next
        Successivo
    
    
        <p><b>No results found</b><br>
        <p><b>Nessun risultato</b><br>
    
    
        &Preview
        &Anteprima
    
    
        Copy &URL
        Copia l'&Url
    
    
        Find &similar documents
        Trova documenti &simili
    
    
        Query details
        Dettagli ricerca
    
    
        (show query)
         (mostra dettagli di ricerca)
    
    
        Copy &File Name
        Copia il nome del &File
    
    
        Document history
        Cronologia dei documenti
    
    
        Preview
        
    
    
        Open
        
    
    
        <p><i>Alternate spellings (accents suppressed): </i>
        
    
    
        Documents
        Risultati
    
    
        out of at least
        totale di almeno
    
    
        for
        per
    
    
        <p><i>Alternate spellings: </i>
        
    
    
        Result count (est.)
        
    
    
        Snippets
        
    


    ResTable
    
        &Reset sort
        
    
    
        &Delete column
        
    
    
        Save table to CSV file
        
    
    
        Can't open/create file: 
        
    
    
        &Preview
        &Anteprima
    
    
        Copy &File Name
        Copia il nome del &File
    
    
        Copy &URL
        Copia l'&Url
    
    
        Find &similar documents
        Trova documenti &simili
    
    
        &Save as CSV
        
    
    
        Add "%1" column
        
    


    ResTableDetailArea
    
        &Preview
        &Anteprima
    
    
        Copy &File Name
        Copia il nome del &File
    
    
        Copy &URL
        Copia l'&Url
    
    
        Find &similar documents
        Trova documenti &simili
    


    ResultPopup
    
        &Preview
        &Anteprima
    
    
        Copy &File Name
        Copia il nome del &File
    
    
        Copy &URL
        Copia l'&Url
    
    
        Find &similar documents
        Trova documenti &simili
    


    SSearch
    
        Any term
        Qualsiasi
    
    
        All terms
        Tutti
    
    
        File name
        Nome file
    
    
        Completions
        Espansione
    
    
        Select an item:
        Seleziona una voce: 
    
    
        Too many completions
        Troppe possibilita' di espansione
    
    
        Query language
        Linguaggio di interrogazione
    
    
        Bad query string
        Stringa di ricerca malformata
    
    
        Out of memory
        Memoria esaurita
    
    
        Enter file name wildcard expression.
        
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Inserisci qui i termini di ricerca. Premi ESC Spazio per il completamento automatico dei termini.
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        
    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        Cancella
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        Cancella voce di ricerca
    
    
        Search
        Cerca
    
    
        Start query
        Inizia ricerca
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Inserisci qui i termini di ricerca. Premi ESC Spazio per il completamento automatico dei termini.
    
    
        Choose search type.
        
    


    SearchClauseW
    
        SearchClauseW
        SearchClauseW
    
    
        Any of these
        Qualsiasi parola
    
    
        All of these
        Tutte le parole
    
    
        None of these
        Nessuna di queste
    
    
        This phrase
        Questa frase
    
    
        Terms in proximity
        Parole in prossimita'
    
    
        File name matching
        Nome del file
    
    
        Select the type of query that will be performed with the words
        Seleziona il tipo di ricerca da effettuare con i termini indicati
    
    
        Number of additional words that may be interspersed with the chosen ones
        Numero di parole che possono frapporsi tra i termini di ricerca indicati
    
    
        No field
        
    
    
        Any
        
    
    
        All
        
    
    
        None
        
    
    
        Phrase
        
    
    
        Proximity
        
    
    
        File name
        Nome file
    


    Snippets
    
        Snippets
        
    
    
        Find:
        
    
    
        Next
        Successivo
    
    
        Prev
        
    


    SnippetsW
    
        Search
        Cerca
    
    
        <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p>
        
    


    SortForm
    
        Date
        Data
    
    
        Mime type
        Tipo MIME
    


    SortFormBase
    
        Sort Criteria
        Criterio di ordinamento
    
    
        Sort the
        Ordina i
    
    
        most relevant results by:
        risultati piu' rilevanti per: 
    
    
        Descending
        Discendente
    
    
        Close
        Chiudi
    
    
        Apply
        Applica
    


    SpellBase
    
        Term Explorer
        Esplorazione dei termini
    
    
        &Expand 
        &Espandi 
    
    
        Alt+E
        Alt+E
    
    
        &Close
        &Chiudi
    
    
        Alt+C
        Alt+C
    
    
        Term
        Termine
    
    
        No db info.
        
    
    
        Match
        
    
    
        Case
        
    
    
        Accents
        
    


    SpellW
    
        Wildcards
        Caratteri jolly
    
    
        Regexp
        Espressione regolare
    
    
        Spelling/Phonetic
        Ortografia/Fonetica
    
    
        Aspell init failed. Aspell not installed?
        Errore di inizializzazione aspell. Aspell e' installato?
    
    
        Aspell expansion error. 
        Errore di espansione di Aspell. 
    
    
        Stem expansion
        Espansione grammaticale
    
    
        error retrieving stemming languages
        Impossibile formare la lista di espansione per la lingua
    
    
        No expansion found
        Nessun epansione trovata
    
    
        Term
        Termine
    
    
        Doc. / Tot.
        
    
    
        Index: %1 documents, average length %2 terms.%3 results
        
    
    
        %1 results
        
    
    
        List was truncated alphabetically, some frequent 
        
    
    
        terms may be missing. Try using a longer root.
        
    
    
        Show index statistics
        
    
    
        Number of documents
        
    
    
        Average terms per document
        
    
    
        Smallest document length
        
    
    
        Longest document length
        
    
    
        Database directory size
        
    
    
        MIME types:
        
    
    
        Item
        
    
    
        Value
        
    


    UIPrefsDialog
    
        The selected directory does not appear to be a Xapian index
        La directory selezionata non sembra essera un indice Xapian
    
    
        This is the main/local index!
        Questo e' l'indice principale!
    
    
        The selected directory is already in the index list
        La directory selezionata e' gia' nella lista
    
    
        Select xapian index directory (ie: /home/buddy/.recoll/xapiandb)
        Seleziona la directory indice Xapian 
(es.: /home/ciccio/.recoll/xapiandb)
    
    
        error retrieving stemming languages
        Impossibile formare la lista delle lingue per l'espansione grammaticale
    
    
        Choose
        
    
    
        Result list paragraph format (erase all to reset to default)
        
    
    
        Result list header (default is empty)
        
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        
    
    
        At most one index should be selected
        
    
    
        Cant add index with different case/diacritics stripping option
        
    
    
        Default QtWebkit font
        
    


    UIPrefsDialogBase
    
        User interface
        Interfaccia utente
    
    
        Number of entries in a result page
        Numero di risultati per pagina
    
    
        Result list font
        Fonts per la lista dei risultati
    
    
        Helvetica-10
        Helvetica-10
    
    
        Opens a dialog to select the result list font
        Apre una finestra di dialogo per selezionare i fonts della lista dei risultati
    
    
        Reset
        Ripristina
    
    
        Resets the result list font to the system default
        Ripristina i font della lista dei risultati
    
    
        Auto-start simple search on whitespace entry.
        Inizia automaticamente una ricerca semplice digitando uno spazio.
    
    
        Start with advanced search dialog open.
        Inizia aprendo la finestra di ricerca avanzata.
    
    
        Start with sort dialog open.
        Inizia con la finestra di ordinamento aperta.
    
    
        Search parameters
        Parametri per la ricerca
    
    
        Stemming language
        Linguaggio per l'espansione
    
    
        Dynamically build abstracts
        Costruisci dinamicamente i riassunti
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Devo cercare di costruire i riassunti per le voci nell'elenco dei risultati usando il contesto dei termini di ricerca?
Puo' essere lento per grossi documenti..
    
    
        Replace abstracts from documents
        Sostituisci i riassunti dei documenti
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Devo sintetizzare un riassunto anche se il documento sembra ne abbia uno?
    
    
        Synthetic abstract size (characters)
        Numero caratteri per il riassunto
    
    
        Synthetic abstract context words
        Numero di parole di contesto per il riassunto
    
    
        External Indexes
        Indici esterni
    
    
        Add index
        Aggiungi indice
    
    
        Select the xapiandb directory for the index you want to add, then click Add Index
        Seleziona nella directory Xapiandb l'indice che vuoi aggiungere e clicca su 'Aggiungi indice'
    
    
        Browse
        Esplora
    
    
        &OK
        &OK
    
    
        Apply changes
        Applica modifiche
    
    
        &Cancel
        &Annulla
    
    
        Discard changes
        Annulla modifiche
    
    
        Result paragraph<br>format string
        Stringa di formattazione<br>dei risultati
    
    
        Automatically add phrase to simple searches
        Aggiungi automaticamente frase alle ricerche semplici
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Una ricerca per [vino rosso] (2 parole) sara' completata come [vino O rosso O (vino FRASE 2 rosso)]. 
Questo dovrebbe dare la precedenza ai risultati che contengono i termini esattamente come sono stati scritti.
    
    
        User preferences
        Preferenze utente
    
    
        Use desktop preferences to choose document editor.
        Usa le preferenze del desktop per scegliere l'editor dei documenti.
    
    
        External indexes
        Indici esterni
    
    
        Toggle selected
        Commuta selezionati
    
    
        Activate All
        Seleziona tutti
    
    
        Deactivate All
        Deseleziona tutti
    
    
        Remove selected
        Rimuovi selezionati
    
    
        Remove from list. This has no effect on the disk index.
        Rimuovi dalla lista. Non ha effetto sull'indice del disco.
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Definisce il formato per ogni paragrafo dell'elenco dei risultati. Usare il formato qt html e le sostituzioni tipo printf:<br>%A Riassunto<br> %D Data<br> %I Icona<br> %K Parole chiave (se esistono)<br> %L Link per anteprima e modifica<br> %M Tipo MIME<br> %N Numero del risultato<br> %R Percentuale di rilevanza<br> %S Informazioni sulla dimensione<br> %T Titolo<br> %U Url<br>
    
    
        Remember sort activation state.
        Ricorda lo stato dell'impostazione di ordinamento.
    
    
        Maximum text size highlighted for preview (megabytes)
        Dimensione massima del testo da evidenziare nell'anteprima (megabytes)
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Testi di lunghezza superiore a questa non vengono evidenziati nella preview (troppo lento).
    


    ViewAction
    
        Changing actions with different current values
        Modifica di azioni con valori differenti da quelli attuali
    
    
        Mime type
        Tipo MIME
    
    
        Command
        
    
    
        MIME type
        
    
    
        Desktop Default
        
    
    
        Changing entries with different current values
        
    


    ViewActionBase
    
        File type
        Tipo di file
    
    
        Action
        Azione
    
    
        Select one or several file types, then click Change Action to modify the program used to open them
        Seleziona uno o piu' tipi di file e poi clicca su 'Cambia Azione' per modificare il programma usato per aprirli
    
    
        Change Action
        Cambia Azione
    
    
        Close
        Chiudi
    
    
        Native Viewers
        Applicazione di visualizzazione
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        
    
    
        Use Desktop preferences by default
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Exception to Desktop preferences
        
    
    
        Action (empty -> recoll default)
        
    
    
        Apply to current selection
        
    
    
        Recoll action:
        
    
    
        current value
        
    
    
        Select same
        
    
    
        <b>New Values:</b>
        
    


    confgui::ConfBeaglePanelW
    
        Entries will be recycled once the size is reached
        
    
    
        Web page store directory name
        
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        
    
    
        Max. size for the web store (MB)
        
    
    
        Process the WEB history queue
        
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)
        
    


    confgui::ConfIndexW
    
        Can't write configuration file
        Impossibile scrivere il file di configurazione
    


    confgui::ConfParamFNW
    
        Browse
        Esplora
    
    
        Choose
        
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.
        
    
    
        Automatic character case sensitivity
        
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.
        
    
    
        Maximum term expansion count
        
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.
        
    
    
        Maximum Xapian clauses count
        
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.
        
    


    confgui::ConfSubPanelW
    
        Global
        Globale
    
    
        Max. compressed file size (KB)
        
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        
    
    
        Max. text file size (MB)
        
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        
    
    
        Text file page size (KB)
        
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        
    
    
        Max. filter exec. time (S)
        
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        
    
    
        Only mime types
        
    
    
        An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive
        
    
    
        Exclude mime types
        
    
    
        Mime types not to be indexed
        
    


    confgui::ConfTopPanelW
    
        Top directories
        Cartella superiore
    
    
        The list of directories where recursive indexing starts. Default: your home.
        Lista delle cartelle in cui inizia lìindicizzazione recorsiva. Di default è la tua home.
    
    
        Skipped paths
        Indirizzi saltati
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
        Questi sono i nomi delle cartelle in cui l'indicizzazione non entra<br>Possono contenere caratteri speciali. Devono corrispondere agli indirizzi visti dal motore di indicizzazione (ad esempio, se la cartella superiore include '/home/io' e '/home' è in realtà un link a '/usr/home', l'indirizzo corretto che si vuole sltare dovrebbe essere '/home/me/tmp*' e non ì/home/usr/tmp*')
    
    
        Stemming languages
        Lingue per la radice 
    
    
        The languages for which stemming expansion<br>dictionaries will be built.
        Lingue per le quali verrà costruito<br>il dizionario delle espansioni radicali.
    
    
        Log file name
        Nome del file di log
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output
        Il file dove verranno scritti i messaggi.<br>Usa 'stderr' per il terminale
    
    
        Log verbosity level
        Livello di verbosità del log
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.
        Questo valore regola il numero dei messaggi,>br>dai soli errori a mole indicazioni per il debug.
    
    
        Index flush megabytes interval
        Intervallo in megabite per il salvataggio intermedio dell'indice
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 
        Questo valore regola il volume di dati da indicizzare tra un salvataggio e l'altro.<br>Aiuta a controllare l'uso della memoria.  Di default è post uguale a 10Mb
    
    
        Max disk occupation (%)
        Massima occupazione del disco fisso (%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).
        Questa è la percentuale fi occupazione del disco fisso oltre la quale l'indicizzazione si ferma con un errore (per evitare di riempire il disco).<br>0 significa nessun limite (questo è il valore di default).
    
    
        No aspell usage
        Non usare aspell
    
    
        Aspell language
        Lingua di aspell
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Lingua per il dizionario aspell. Dovrebbe essere simile a 'en' o 'it' ...<br>Se questo valore non è impostato verrà usato l'ambiente NLS per calcolarlo, cosa che generalmente funziona. Per avere un'idea di cosa sia installato sul tuo sistema, dai il comando 'aspell config' e guarda il nome dei files .dat nella cartella 'data-dir'.
    
    
        Database directory name
        Nome della cartella del database
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the  configuration directory. The default is 'xapiandb'.
        Nome della cartella in cui salvare l'indice<br>Un indirizzo non assoluto viene interpretato come relativo alla cartella di congigurazione. Di default è 'xapiandb'.
    
    
        Use system's 'file' command
        Usa il comando di sistema 'file'
    
    
        Use the system's 'file' command if internal<br>mime type identification fails.
        Usa il comando di sistema 'file' se fallisce<br>l'identificazione interna del tipo mime.
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 
        
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
        
    
    
        Unac exceptions
        
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.
        
    


    uiPrefsDialogBase
    
        User preferences
        Preferenze utente
    
    
        User interface
        Interfaccia utente
    
    
        Number of entries in a result page
        Numero di risultati per pagina
    
    
        If checked, results with the same content under different names will only be shown once.
        
    
    
        Hide duplicate results.
        
    
    
        Highlight color for query terms
        
    
    
        Result list font
        Fonts per la lista dei risultati
    
    
        Opens a dialog to select the result list font
        Apre una finestra di dialogo per selezionare i fonts della lista dei risultati
    
    
        Helvetica-10
        Helvetica-10
    
    
        Resets the result list font to the system default
        Ripristina i font della lista dei risultati
    
    
        Reset
        Ripristina
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Definisce il formato per ogni paragrafo dell'elenco dei risultati. Usare il formato qt html e le sostituzioni tipo printf:<br>%A Riassunto<br> %D Data<br> %I Icona<br> %K Parole chiave (se esistono)<br> %L Link per anteprima e modifica<br> %M Tipo MIME<br> %N Numero del risultato<br> %R Percentuale di rilevanza<br> %S Informazioni sulla dimensione<br> %T Titolo<br> %U Url<br>
    
    
        Result paragraph<br>format string
        Stringa di formattazione<br>dei risultati
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Testi di lunghezza superiore a questa non vengono evidenziati nella preview (troppo lento).
    
    
        Maximum text size highlighted for preview (megabytes)
        Dimensione massima del testo da evidenziare nell'anteprima (megabytes)
    
    
        Use desktop preferences to choose document editor.
        Usa le preferenze del desktop per scegliere l'editor dei documenti.
    
    
        Choose editor applications
        
    
    
        Auto-start simple search on whitespace entry.
        Inizia automaticamente una ricerca semplice digitando uno spazio.
    
    
        Start with advanced search dialog open.
        Inizia aprendo la finestra di ricerca avanzata.
    
    
        Start with sort dialog open.
        Inizia con la finestra di ordinamento aperta.
    
    
        Remember sort activation state.
        Ricorda lo stato dell'impostazione di ordinamento.
    
    
        Prefer Html to plain text for preview.
        
    
    
        Search parameters
        Parametri per la ricerca
    
    
        Stemming language
        Linguaggio per l'espansione
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Una ricerca per [vino rosso] (2 parole) sara' completata come [vino O rosso O (vino FRASE 2 rosso)]. 
Questo dovrebbe dare la precedenza ai risultati che contengono i termini esattamente come sono stati scritti.
    
    
        Automatically add phrase to simple searches
        Aggiungi automaticamente frase alle ricerche semplici
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Devo cercare di costruire i riassunti per le voci nell'elenco dei risultati usando il contesto dei termini di ricerca?
Puo' essere lento per grossi documenti..
    
    
        Dynamically build abstracts
        Costruisci dinamicamente i riassunti
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Devo sintetizzare un riassunto anche se il documento sembra ne abbia uno?
    
    
        Replace abstracts from documents
        Sostituisci i riassunti dei documenti
    
    
        Synthetic abstract size (characters)
        Numero caratteri per il riassunto
    
    
        Synthetic abstract context words
        Numero di parole di contesto per il riassunto
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        
    
    
        Query language magic file name suffixes.
        
    
    
        Enable
        
    
    
        External Indexes
        Indici esterni
    
    
        Toggle selected
        Commuta selezionati
    
    
        Activate All
        Seleziona tutti
    
    
        Deactivate All
        Deseleziona tutti
    
    
        Remove from list. This has no effect on the disk index.
        Rimuovi dalla lista. Non ha effetto sull'indice del disco.
    
    
        Remove selected
        Rimuovi selezionati
    
    
        Add index
        Aggiungi indice
    
    
        Apply changes
        Applica modifiche
    
    
        &OK
        &OK
    
    
        Discard changes
        Annulla modifiche
    
    
        &Cancel
        &Annulla
    
    
        Abstract snippet separator
        
    
    
        Style sheet
        
    
    
        Opens a dialog to select the style sheet file
        
    
    
        Choose
        
    
    
        Resets the style sheet to default
        
    
    
        Result List
        
    
    
        Edit result paragraph format string
        
    
    
        Edit result page html header insert
        
    
    
        Date format (strftime(3))
        
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        
    
    
        Autophrase term frequency threshold percentage
        
    
    
        Plain text to HTML line style
        
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        
    
    
        <BR>
        
    
    
        <PRE>
        
    
    
        <PRE> + wrap
        
    
    
        Disable Qt autocompletion in search entry.
        
    
    
        Search as you type.
        
    
    
        Paths translations
        
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        
    
    
        Snippets window CSS file
        
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        
    
    
        Resets the Snippets window style
        
    
    
        Decide if document filters are shown as radio buttons, toolbar combobox, or menu.
        
    
    
        Document filter choice style:
        
    
    
        Buttons Panel
        
    
    
        Toolbar Combobox
        
    
    
        Menu
        
    
    
        Show system tray icon.
        
    
    
        Close to tray instead of exiting.
        
    


recoll-1.21.5/qtgui/i18n/recoll_el.qm0000644000175000017500000027634512602163537016617 0ustar  dockesdockesG:H,H,ٟHYIAZlʍmbϬ^>+yqED
]

L0L]VEVEڒf^lbx݌;CEf$—'H*%*0+Lm1:drAV?Ga0GH6H6J+nJ+ִJ6J69LbMz-PhSgSsT5ɇWTrWXbEZ0]Y[%\\eoUgwGs/sv8wvvJj!N0(́'J
=,fS9=nWgtu:]E5n.K0,(:;s >.c{@Do2NXMXX7`^fh:iltRntwJw~H@vCz;cxCuI}ͺ
L2SI՜%.؅Q
{p#vvw5Mw5]w5wȐU$.|ֳ64f3HͼuYgg9o׸~
p;U9\UqGel!Dd'&N.N~78w=dd?dG$JUYQJUY̑YB[us}_ni"uPʷj3ʗbʗ\^TLIzx'JgOWA0ZP%AB i<.AGqd$;[ߜ<LNB%e2vhO(PbƝ"3ZI;,Innߤ}fxffFe,;bW9Wky%6~y%P΄3:#P>X|%W5G̔]ii
-Zvz-Ŕ)Tc"B9%BSCk0or?)ʶr|km,<"feAS%â>
ҥR#gu9I^d~C8>ig`0M=$"	J:6UKe-p
hCMu9Uv2rT#t*BoK08	%En?7T?P^[PX'nD!w)_	3	u	E
*Nra
:^R
c

*R7
+<*
6
>VW
G.~Q
`PT
`
aE
cE"
d8
yp
I>s
b
VT
C

\
Lԅ	ye6=TH?m,x>=!W(KjT|chmt94osΣriOٷ۷F?V	Vdg'И]+bC/9ɝ L*mP֙RVT#~^V*\iCa]5`Fhv{l^!Y!YbW:\iKB~UNj
m
'RR
-ɶ
8?
F
OEQ1
]>zQ~`KW"*Y~s[s\6e32g3wp~g( :SI!Bcmtc	|~	|f'l
l"sLimT  All clauses	AdvSearch" 
Any clause	AdvSearch^     $Bad multiplier suffix in size filter	AdvSearchmedia	AdvSearchmessage	AdvSearchother	AdvSearchpresentation	AdvSearch spreadsheet	AdvSearchtext	AdvSearch<----- 
<----- All
AdvSearchBase<----- 
<----- Sel
AdvSearchBase 
Add clause
AdvSearchBase* Advanced search
AdvSearchBase ---->	All ---->
AdvSearchBase|             (   )   (    ). <br>         ,                 . <br>   .All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. 
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBaseBrowse AdvSearchBase  By categories AdvSearchBase|        'Check this to enable filtering on dates AdvSearchBase           ,Check this to enable filtering on file types AdvSearchBase         'Check this to enable filtering on sizes AdvSearchBase           mime;Check this to use file categories instead of raw mime types AdvSearchBaseClose AdvSearchBase  Delete clause AdvSearchBase\     Enter top directory for search AdvSearchBase Filter AdvSearchBase$  Filter dates AdvSearchBase  Filter sizes AdvSearchBaseFind AdvSearchBaseFrom AdvSearchBase<    Ignored file types AdvSearchBaseInvert AdvSearchBase.  Max. Size AdvSearchBase :     k/K,m/M,g/G  4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase.  Min. Size AdvSearchBase :     k/K,m/M,g/G  4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase:   Restrict file types AdvSearchBasej      :%Restrict results to files in subtree: AdvSearchBase0  Save as default AdvSearchBaseT <br><br> :'Search for
documents
satisfying: AdvSearchBase6  Searched file types AdvSearchBase ----> Sel -----> AdvSearchBase&  Start Search AdvSearchBaseTo AdvSearchBase<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span>     (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">        (*),    ,     (1,3,5)   (1-7). ,     <span style=" font-style:italic;"> </span>   crontab,     crontab   ,      crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /> ,  <span style=" font-family:'Courier New,courier';">*</span>  <span style=" font-style:italic;">, </span><span style=" font-family:'Courier New,courier';">12,19</span>  <span style=" font-style:italic;"></span>  <span style=" font-family:'Courier New,courier';">15</span>  <span style=" font-style:italic;"></span>,  recollindex      12:15 AM  7:15 PM</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">               .</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolW<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">   <span style=" font-style:italic;"></span>       ,  <span style=" font-style:italic;"></span>    ,  <span style=" font-style:italic;"></span>     .</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolW Cron Cron Dialog CronToolWl   (*  0-7, 0  7  ))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWDisable CronToolWEnable CronToolW      cron.    ;3Error installing cron entry. Bad syntax in fields ? CronToolW (*  0-23)Hours (* or 0-23) CronToolW        recollindex.     Cron   PIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolW (0-59)Minutes (0-59) CronToolWDialog EditDialog$  Config error EditTrans  Local path EditTrans  Original path EditTrans  Source path EditTransAdd EditTransBaseCancel EditTransBaseDelete EditTransBase( Path Translations EditTransBaseSave EditTransBase:     ,                kSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBaseD    Setting path translations for  EditTransBase <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">          ..</span><br /><br />            y ,    <span style=" font-style:italic;">   </span>.      . </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">   ,              .</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">           <span style=" font-style:italic;"></span>.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialogF   First indexing setupFirstIdxDialog. Indexing configurationFirstIdxDialog8 Indexing scheduleFirstIdxDialog8   Start indexing nowFirstIdxDialogz         ,          ,    , .This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialogj            ,         (   cron).This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">   <span style=" font-weight:600;">Recoll</span>      ,       ,      . </p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">              ( F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">                           (   ,    ). </p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedW( CronCron scheduling IdxSchedW             (    ).ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedWV   Index scheduling setup IdxSchedWV     Real time indexing start up IdxSchedW                crontab._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedWDialog ListDialogGroupBoxGroupBox ListDialog     ,     :K"history" file is damaged or un(read)writeable, please check or remove it: Main          No db directory in configurationMain&&NextPreview& &PreviousPreview& : &Search for:Preview         0Can't turn doc into internal representation for PreviewCancelPreviewClearPreview*   Close TabPreviewL   Creating preview textPreviewD     Error while loading filePreviewh      Loading preview text into editorPreview2 &/ Match &CasePreviewR   :Missing helper program: PreviewCopyPreviewTextEdit,   Fold linesPreviewTextEdit(  Preserve indentationPreviewTextEditPrintPreviewTextEditJ   Print Current PreviewPreviewTextEdit.  Save document to filePreviewTextEdit  Select AllPreviewTextEdit&   Show fieldsPreviewTextEdit(   Show imagePreviewTextEditB    Show main textPreviewTextEditP<b>   Customised subtreesQObject<i>       ,      <br>     ,     .<br>           +/-.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject@   Follow symbolic linksQObjectP           .     ,     TFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject& Global parametersQObjectH     Index all file namesQObjectj               (  mime,    ).     }Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject" Local parametersQObject( Search parametersQObject"  Skipped namesQObject       <br>    . : .sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObject             .LThese are patterns for file or directory names which should not be indexed.QObject  Web historyQObject& &Write to FileQWidget$  &URL Copy &URLQWidget: & Find &similar documentsQWidgetF   &Open &Snippets windowQWidgetB    Save selection to filesQWidgetL  - / Show subdocuments / attachmentsQWidget<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">   <span style=" font-weight:600;">Recoll</span>        ,         .      ,       (  ).</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>.

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWZ      .%Also start indexing daemon right now.RTIToolW  autostart .     ;2Autostart file deleted. Kill current process too ?RTIToolW* :Can't create: RTIToolWD   recollindexCould not execute recollindexRTIToolW(   Deleting fileRTIToolW: Deleting: RTIToolWX    . "Real time indexing automatic startRTIToolW,  autostartRemoving autostartRTIToolW2  Replacing fileRTIToolW$ : Replacing: RTIToolWl       ..Start indexing daemon with my desktop session.RTIToolWWarningRTIToolW"(  )(all languages)RclMain ( ) (no stemming)RclMain(   Recoll About RecollRclMainAllRclMain    %1: [%2]     mimeviewCBad viewer command line for %1: [%2] Please check the mimeview fileRclMain<    :Can't access file: RclMainb     Can't create preview windowRclMainF    : Can't uncompress file: RclMain    :      #Can't update index: indexer runningRclMain          0Cannot extract document or create temporary fileRclMainJ     Cannot find parent documentRclMainb       +Cannot retrieve document info from databaseRclMainClosingRclMain|        MIME:.Content has been indexed for these mime types:RclMain     .      .      .HCould not open external index. Db not open. Check external indexes list.RclMain@   Document historyRclMain DoneRclMain" Duplicate documentsRclMain.   Erasing indexRclMain ErrorRclMain : [ Executing: [RclMainf          ,     ,            pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMain,   History dataRclMain<    Index not openRclMainF    Index query errorRclMain. MIME  Indexed MIME TypesRclMainN     Indexing did not run yetRclMain*  Indexing failedRclMain0  : Indexing in progress: RclMain*  Missing helper programsRclMainMonitorRclMainb      MIME [-No external viewer configured for mime type [RclMain2   No helpers found missingRclMain2  No results foundRclMain NoneRclMainPurgeRclMain  .<br>  ,<br>       eQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMain6   Query resultsRclMainh       ;(Reset the index and start from scratch ?RclMain<  (.)Result count (est.)RclMain,   Save fileRclMain StemdbStemdbRclMain2  &Stop &IndexingRclMain2-  Sub-documents and attachmentsRclMainR          .            ',        yThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMain    mimeview  %1: %2  .        ;hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainl  URL (| ipath)    :-These Urls ( | ipath) share the same content:RclMain@     "This search is not active any moreRclMainUnknownRclMain2  & Update &IndexRclMainUpdatingRclMain    %1          :  QViewer command line for %1 specifies both file and parent file value: unsupportedRclMainWarningRclMain`       #error retrieving stemming languagesRclMainfilteredRclMainmediaRclMain messageRclMainotherRclMain presentationRclMainsortedRclMain  spreadsheetRclMaintextRclMain*&   Recoll &About Recoll RclMainBase,& &Advanced Search RclMainBase@&   &Erase document history RclMainBaseF&   &Erase search history RclMainBase&&File RclMainBase&  &Full Screen RclMainBase2 &&GUI configuration RclMainBase&&Help RclMainBase, &&Index configuration RclMainBaseB&  &Indexing schedule RclMainBase& &Preferences RclMainBase8&  &Rebuild index RclMainBase&&Results RclMainBase@&    &Show indexed types RclMainBaseF&   &Show missing helpers RclMainBase,& &Sort parameters RclMainBase&&Tools RclMainBase& &User manual RclMainBase* Advanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase*  Document History RclMainBase,&  Document &History RclMainBase&E&xit RclMainBaseJ&   E&xternal index dialog RclMainBase& External index dialog RclMainBaseF11F11 RclMainBase  First Page RclMainBase  First page RclMainBase  Full Screen RclMainBaseP    Go to first page of results RclMainBase  Next Page RclMainBase  Next page RclMainBase@   Next page of results RclMainBase PgDownPgDown RclMainBasePgUpPgUp RclMainBase$  Previous Page RclMainBase$  Previous page RclMainBase@  Previous page of results RclMainBase RecollRecoll RclMainBaseR   CVS ( )Save as CSV (spreadsheet) file RclMainBase              @Saves the result into a file which you can load in a spreadsheet RclMainBaseShift+PgUp Shift+PgUp RclMainBaseJ   Show Query Details RclMainBase&   Show as table RclMainBasev        (Show results in a spreadsheet-like table RclMainBaseV  ,   Sort by date, newest first RclMainBase\  ,   Sort by date, oldest first RclMainBasep       #Sort by dates from newest to oldest RclMainBasep       #Sort by dates from oldest to newest RclMainBase* Sort parameters RclMainBase6&  Term &explorer RclMainBaseF   Term explorer tool RclMainBase*&  Update &index RclMainBaseAbstract RecollModelAuthor RecollModelDate RecollModel$   Date and time RecollModel&  Document date RecollModel   Document size RecollModel$  File date RecollModel  File name RecollModel  File size RecollModel IpathIpath RecollModel Keywords RecollModel MIME MIME type RecollModel MtimeMtime RecollModel0  Original character set RecollModelRelevancy rating RecollModel Title RecollModelURLURL RecollModel() (show query)ResList><p><b> </b><br>

No results found
ResListd<p><i>  ( ): </i>4

Alternate spellings (accents suppressed): ResList<<p><i> : </i>

Alternate spellings: ResList@   Document historyResList DocumentsResListNextResListOpenResListPreviewResListPreviousResList6   Query detailsResList<  (.)Result count (est.)ResList&  Result listResListSnippetsResList(  Unavailable documentResListforResList out of at leastResList(&  &Delete columnResTable4&   &Reset sortResTable$&  CSV &Save as CSVResTable2   %1Add "%1" columnResTableT  /  :Can't open/create file: ResTable8    CSVSave table to CSV fileResTable   All termsSSearch" Any termSSearch0  Bad query stringSSearch    (   ).$Enter file name wildcard expression.SSearch     .  ESC SPC           .FEnter search terms here. Type ESC SPC for completions of current term.SSearch  File nameSSearch6    Out of memorySSearch" Query languageSSearch:   .Choose search type. SSearchBaseClear SSearchBase Ctrl+SCtrl+S SSearchBase    .  ESC SPC           .FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase4  Erase search entry SSearchBaseSSearchBase SSearchBase SSearchBaseSearch SSearchBase*   Start query SSearchBaseAll SearchClauseWAny SearchClauseW"   File name SearchClauseW No field SearchClauseW None SearchClauseW           HNumber of additional words that may be interspersed with the chosen ones SearchClauseW Phrase SearchClauseW Proximity SearchClauseW          >Select the type of query that will be performed with the words SearchClauseW:Find:SnippetsNextSnippetsPrevSnippetsSnippetsSnippetsSearch SnippetsW&&Close SpellBase&&Expand  SpellBase Accents SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBase/Case SpellBaseMatch SpellBase^      . No db info. SpellBase   Term Explorer SpellBase%1  %1 resultsSpellW8   aspell.Aspell expansion error. SpellW    aspell.    ;)Aspell init failed. Aspell not installed?SpellW6    Average terms per documentSpellWB   Database directory sizeSpellWDoc. / Tot. Doc. / Tot.SpellWr: %1 ,   %2 .%3 7Index: %1 documents, average length %2 terms.%3 resultsSpellWItemSpellW\    ,   1List was truncated alphabetically, some frequent SpellW2  Longest document lengthSpellW MIME: MIME types:SpellW" No expansion foundSpellW  Number of documentsSpellW  RegexpSpellWF   Show index statisticsSpellW0  Smallest document lengthSpellW&/Spelling/PhoneticSpellW& Stem expansionSpellWTermSpellWValueSpellW0  WildcardsSpellWR      #error retrieving stemming languagesSpellW   .       ..terms may be missing. Try using a longer root.SpellW`      $At most one index should be selected UIPrefsDialog         /   >Cant add index with different case/diacritics stripping option UIPrefsDialogChoose UIPrefsDialogv   ( '   )%Result list header (default is empty) UIPrefsDialog    (     ' ) :</b>New Values:ViewActionBaseX ( ->   recoll) Action (empty -> recoll default)ViewActionBase<   Apply to current selectionViewActionBaseCloseViewActionBaseX     Exception to Desktop preferencesViewActionBase* Native ViewersViewActionBase  Recoll:Recoll action:ViewActionBase:     ,                kSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseH     ,                  .lSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBase    Select sameViewActionBaser '      "Use Desktop preferences by defaultViewActionBase  current valueViewActionBase       Firefox.<br>(       Firefox Recoll)\Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelW         1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelW\.      (MB) Max. size for the web store (MB)confgui::ConfBeaglePanelWR     Process the WEB history queueconfgui::ConfBeaglePanelW        .<br>      .The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWN   Web page store directory nameconfgui::ConfBeaglePanelWR     Can't write configuration fileconfgui::ConfIndexWChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLWP<p>    /         (   ).             <i>C</i>        / .

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW<p>           (   unac_except_trans).             <i>D</i>      .

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelW<p>      (..:     ).    10000                    .

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelW|<p>          Xapian.   ,          ,     .    100000            .5

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWF  /$Automatic character case sensitivityconfgui::ConfSearchPanelW@    Automatic diacritics sensitivityconfgui::ConfSearchPanelW>   Xapian Maximum Xapian clauses countconfgui::ConfSearchPanelWF    Maximum term expansion countconfgui::ConfSearchPanelW         .      (.. postscript)          .    -1     .External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelW Globalconfgui::ConfSubPanelW        ,             .                 .If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWT.     (KB)Max. compressed file size (KB)confgui::ConfSubPanelWP.      (S)Max. filter exec. time (S)confgui::ConfSubPanelWD.    (MB)Max. text file size (MB)confgui::ConfSubPanelWR      (KB)Text file page size (KB)confgui::ConfSubPanelWd              .  -1   , 0       .This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelW                .  -1   .           .This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelWj<p>      unac,   ' ,    ,    .          ,     ,    ,    .     ,        ,     .l

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelW"  aspellAspell languageconfgui::ConfTopPanelWH   Database directory nameconfgui::ConfTopPanelW*    aspell      .<br>   aspell      . Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelW^     megabyteIndex flush megabytes intervalconfgui::ConfTopPanelW8    Log file nameconfgui::ConfTopPanelW>   Log verbosity levelconfgui::ConfTopPanelW2.    (%)Max disk occupation (%)confgui::ConfTopPanelW,   aspellNo aspell usageconfgui::ConfTopPanelW0  Skipped pathsconfgui::ConfTopPanelW@     Stemming languagesconfgui::ConfTopPanelW      .<br> 'stderr'    PThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelW     aspell.        en  el ...<br>      ,     NLS    ,   .            ,  aspell config     .dat   data-dir. 3The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelW         <br> .IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelW         . :    .LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelW       <br>      .  '   xapiandb. The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelW       .<br>    .            (.:      '/home/me'   '/home'     '/usr/home',       '/home/me/tmp*' ,  '/usr/home/me/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelW          (     ).<br>0    ().This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelW8              .<br>     . : 10MB This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelW        ,<br>       .ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW& Top directoriesconfgui::ConfTopPanelW unacUnac exceptionsconfgui::ConfTopPanelW&&CanceluiPrefsDialogBase&&OKuiPrefsDialogBase<BR>
uiPrefsDialogBase <PRE>

uiPrefsDialogBase$<PRE> + 
 + wrapuiPrefsDialogBase   [ ] (2 )    [    (  2 )].<br>
                  .A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBase0 Abstract snippet separatoruiPrefsDialogBase" Activate AlluiPrefsDialogBase& 	Add indexuiPrefsDialogBase(  
Apply changesuiPrefsDialogBasez        .-Auto-start simple search on whitespace entry.uiPrefsDialogBasej       +Automatically add phrase to simple searchesuiPrefsDialogBase    ()     .Autophrase term frequency threshold percentageuiPrefsDialogBaseChooseuiPrefsDialogBasex       Choose editor applicationsuiPrefsDialogBase(         .        Recoll    Xapian.{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBaseF   (strftime(3))Date format (strftime(3))uiPrefsDialogBase& Deactivate AlluiPrefsDialogBase    Qt   .*Disable Qt autocompletion in search entry.uiPrefsDialogBase(  Discard changesuiPrefsDialogBase              ;EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBase(          .
         .zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBaseH   Dynamically build abstractsuiPrefsDialogBasep       HTML#Edit result page html header insertuiPrefsDialogBasef     #Edit result paragraph format stringuiPrefsDialogBaseEnableuiPrefsDialogBase& External IndexesuiPrefsDialogBase  ()        .
          .
       ,         .
    2%. Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10Helvetica-10uiPrefsDialogBase6  .Hide duplicate results.uiPrefsDialogBaseD    Highlight color for query termsuiPrefsDialogBase         .XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBase      PRE  .   BR     .   PRE +                  Qt.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBasep.      (MB)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBase@   "Number of entries in a result pageuiPrefsDialogBase           CSS     AOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBase           -Opens a dialog to select the result list fontuiPrefsDialogBasez         -Opens a dialog to select the style sheet fileuiPrefsDialogBase* Paths translationsuiPrefsDialogBaseH     HTMLPlain text to HTML line styleuiPrefsDialogBaseX   HTML   .&Prefer Html to plain text for preview.uiPrefsDialogBaseX     .(Query language magic file name suffixes.uiPrefsDialogBasev     .Remember sort activation state.uiPrefsDialogBase   .      .7Remove from list. This has no effect on the disk index.uiPrefsDialogBase0  Remove selecteduiPrefsDialogBasej      Replace abstracts from documentsuiPrefsDialogBaseResetuiPrefsDialogBaseZ      Resets the Snippets window styleuiPrefsDialogBase         1Resets the result list font to the system defaultuiPrefsDialogBaseh       !Resets the style sheet to defaultuiPrefsDialogBase& Result ListuiPrefsDialogBase( Result list fontuiPrefsDialogBaseB   .Search as you type.uiPrefsDialogBase( Search parametersuiPrefsDialogBaseB CSS  Snippets window CSS fileuiPrefsDialogBasex       .'Start with advanced search dialog open.uiPrefsDialogBase@     Stemming languageuiPrefsDialogBase Style sheetuiPrefsDialogBasev         Synthetic abstract context wordsuiPrefsDialogBase`    ()$Synthetic abstract size (characters)uiPrefsDialogBase            ( ).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBase         ext:xxx     .bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase:  Toggle selecteduiPrefsDialogBase" User interfaceuiPrefsDialogBase$ User preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_ru.ts0000644000175000017500000047420512602163537016651 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        Все поля
    
    
        Any clause
        Любое поле
    
    
        texts
        тексты
    
    
        spreadsheets
        таблицы
    
    
        presentations
        презентации
    
    
        media
        мультимедиа
    
    
        messages
        сообщения
    
    
        other
        иное
    
    
        Bad multiplier suffix in size filter
        Неверный суффикс множителя в фильтре размера
    
    
        text
        текст
    
    
        spreadsheet
        таблицы
    
    
        presentation
        презентации
    
    
        message
        сообщения
    


    AdvSearchBase
    
        Advanced search
        Сложный поиск
    
    
        Restrict file types
        Ограничить типы файлов
    
    
        Save as default
        Сохранить как умолчание
    
    
        Searched file types
        Искомые
    
    
        All ---->
        Все ---->
    
    
        Sel ----->
        Эти ---->
    
    
        <----- Sel
        <----- Эти
    
    
        <----- All
        <----- Все
    
    
        Ignored file types
        Игнорируемые
    
    
        Enter top directory for search
        Введите каталог начала поиска
    
    
        Browse
        Просмотр
    
    
        Restrict results to files in subtree:
        Искать только в каталоге:
    
    
        Start Search
        Начать поиск
    
    
        Search for <br>documents<br>satisfying:
        Искать <br>документы,<br>удовлетворяющие:
    
    
        Delete clause
        Убрать поле
    
    
        Add clause
        Добавить поле
    
    
        Check this to enable filtering on file types
        Фильтровать по типам файлов
    
    
        By categories
        По категориям
    
    
        Check this to use file categories instead of raw mime types
        Использовать категории, а не типы MIME
    
    
        Close
        Закрыть
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.
        Все непустые поля справа будут объединены логическим И ("все слова") или ИЛИ ("любое слово"). <br>Поля типа "любые", "все" или "без этих" принимают набор простых слов и фразы, заключённые в двойные кавычки.<br>Пустые поля игнорируются.
    
    
        Invert
        Обратить
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        Минимальный размер. Можно использовать k/K, m/M, g/G как множители
    
    
        Min. Size
        Мин. размер
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        Макс. размер. Можно использовать k/K, m/M, g/G как множители
    
    
        Max. Size
        Макс. размер
    
    
        Filter
        Фильтр
    
    
        From
        От
    
    
        To
        До
    
    
        Check this to enable filtering on dates
        Включить фильтрование по дате
    
    
        Filter dates
        Фильтрование по дате
    
    
        Find
        Найти
    
    
        Check this to enable filtering on sizes
        Включить фильтрование по размеру
    
    
        Filter sizes
        Фильтрование по размеру
    


    CronToolW
    
        Cron Dialog
        Диалог Cron
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Расписание пакетного индексирования <span style=" font-weight:600;">Recoll</span> (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Каждое поле может содержать шаблон (*), одно численное значение, список через запятую (1,3,5) или диапазон (1-7). Эти поля будут использованы <span style=" font-style:italic;">как есть</span> в файле crontab, для ознакомления с полным синтаксисом которого см. crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Например, ввод <span style=" font-family:'Courier New,courier';">*</span> для <span style=" font-style:italic;">Дни</span>, <span style=" font-family:'Courier New,courier';">12,19</span> для <span style=" font-style:italic;">Часы</span> и <span style=" font-family:'Courier New,courier';">15</span> для <span style=" font-style:italic;">Минуты</span> запустит recollindex ежедневно в 12:15 и 19:15.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Расписание с очень частыми запусками может оказаться менее эффективным, чем индексирование в реальном времени.</p></body></html>
    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        Дни недели (* или 0-7, 0 или 7 - воскресенье)
    
    
        Hours (* or 0-23)
        Часы (* или 0-23)
    
    
        Minutes (0-59)
        Минуты (0-59)
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Нажмите <span style=" font-style:italic;">Выключить</span> для прекращения автоматической фоновой индексации, <span style=" font-style:italic;">Включить</span> для её запуска, <span style=" font-style:italic;">Отмена</span>, чтобы оставить всё как есть.</p></body></html>
    
    
        Enable
        Включить
    
    
        Disable
        Выключить
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        Похоже, что для recollindex есть вручную правленые записи, не будем трогать crontab
    
    
        Error installing cron entry. Bad syntax in fields ?
        Ошибка установки записи cron. Неверный синтаксис полей?
    


    EditDialog
    
        Dialog
        Диалог
    


    EditTrans
    
        Source path
        Исходный путь
    
    
        Local path
        Локальный путь
    
    
        Config error
        Ошибка конфигурации
    
    
        Original path
        Изначальный путь
    


    EditTransBase
    
        Path Translations
        Корректировка путей
    
    
        Setting path translations for 
        Задать корректировку для
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Выберите типы файлов и используйте кнопки ниже, чтобы изменить то, как они обрабатываются
    
    
        Add
        Добавить
    
    
        Delete
        Удалить
    
    
        Cancel
        Отмена
    
    
        Save
        Сохранить
    


    FirstIdxDialog
    
        First indexing setup
        Настройка первого индексирования
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Похоже, что индекс для этой конфигурации не существует.</span><br /><br />Если надо проиндексировать домашний каталог с набором разумных умолчаний, нажмите кнопку <span style=" font-style:italic;">Запустить индексирование</span>. Подробности можно будет уточнить позже. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Если требуется больше контроля, воспользуйтесь ссылками для уточнения конфигурации и расписания индексирования.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Этот инструментарий доступен в любое время посредством меню <span style=" font-style:italic;">Настройки</span>.</p></body></html>
    
    
        Indexing configuration
        Конфигурация индексирования
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        Здесь можно уточнить, какие каталоги требуется индексировать, какие пути или имена не требуется, с какими кодировками и т.п.
    
    
        Indexing schedule
        Расписание индексирования
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        Здесь можно выбрать режим индексированиея: пакетный или реального времени, а также настроить расписание автоматического индексирования при помощи cron.
    
    
        Start indexing now
        Запустить индексирование
    


    FragButs
    
        %1 not found.
        
    
    
        %1:
 %2
        
    
    
        Query Fragments
        
    


    IdxSchedW
    
        Index scheduling setup
        Настройка расписания индексирования
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Индексирование <span style=" font-weight:600;">Recoll</span> может работать постоянно, индексируя изменяющиеся файлы, или запускаться через промежутки времени. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Прочитайте подсказку, чтобы решить, какой подход будет удобней (нажмите F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Здесь можно настроить расписание автоматических запусков пакетного индексирования или же старта индексирования в реальном времени при входе в систему (или всё и сразу, что редко имеет смысл). </p></body></html>
    
    
        Cron scheduling
        Расписание cron
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        Здесь можно выбрать, в какое время запускать индексирование, и установить запись crontab.
    
    
        Real time indexing start up
        Запуск индексирования в реальном времени
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        Решите, нужно ли начинать индексирование в реальном времени при входе в систему (только для индекса по умолчанию).
    


    ListDialog
    
        Dialog
        Диалог
    
    
        GroupBox
        GroupBox
    


    Main
    
        No db directory in configuration
        Нет каталога БД в конфигурации
    
    
        Could not open database in 
        Невозможно открыть БД в 
    
    
        .
Click Cancel if you want to edit the configuration file before indexing starts, or Ok to let it proceed.
        .
Нажмите "Отменить", если хотите исправить файл конфигурации до начала индексирования, или "OK" для продолжения.
    
    
        Configuration problem (dynconf
        Проблема конфигурации (dynconf
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        Файл истории ("history") повреждён или не читается/не записывается, проверьте или удалите его:
    


    Preview
    
        &Search for:
        &Искать:
    
    
        &Next
        &Дальше
    
    
        &Previous
        &Предыдущее
    
    
        Match &Case
        &Соблюдать регистр
    
    
        Clear
        Очистить
    
    
        Creating preview text
        Создаю текст для просмотра
    
    
        Loading preview text into editor
        Загружаю текст в редактор
    
    
        Cannot create temporary directory
        Невозможно создать временный каталог
    
    
        Cancel
        Отмена
    
    
        Close Tab
        Закрыть вкладку
    
    
        Missing helper program: 
        Отсутствует вспомогательная программа: 
    
    
        Can't turn doc into internal representation for 
        Невозможно сконвертировать документ во внутреннее представление 
    
    
        Cannot create temporary directory: 
        Невозможно создать временный каталог:
    
    
        Error while loading file
        Ошибка загрузки файла
    


    PreviewTextEdit
    
        Show fields
        Показать поля
    
    
        Show main text
        Показать основной текст
    
    
        Print
        Печать
    
    
        Print Current Preview
        Печать текущего окна предпросмотра
    
    
        Show image
        Показать изображение
    
    
        Select All
        Выделить всё
    
    
        Copy
        Копировать
    
    
        Save document to file
        Сохранить документ в файл
    
    
        Fold lines
        Переносить строки
    
    
        Preserve indentation
        Сохранять отступы
    


    QObject
    
        Global parameters
        Общие параметры
    
    
        Local parameters
        Частные параметры
    
    
        <b>Customised subtrees
        <b>Каталоги с особенностями
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.
        Список подкаталогов в индексируемой иерархии,<br>где некоторые параметры нуждаются в коррекции.  Обычно пуст.
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.
        <i>Следующие параметры устанавливаются на верхнем уровне, если выбрать<br>ничего или пустую строку, или для выбранного подкаталога.<br>Вы можете добавлять и удалять каталоги кнопками +/-.
    
    
        Skipped names
        Пропускаемые имена
    
    
        These are patterns for file or directory  names which should not be indexed.
        Шаблоны имён файлов или каталогов, которые не следует индексировать.
    
    
        Default character set
        Кодировка по умолчанию
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        Эта кодировка будет использована при чтении файлов, в которых таковая не указывается явно (например, чисто текстовых файлов).<br>Обычно значение пусто, тогда оно извлекается из окружения (локали).
    
    
        Follow symbolic links
        Раскрывать символические ссылки
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        Ходить по символическим ссылкам при индексировании.  Обычно не делается для избежания дублей
    
    
        Index all file names
        Индексировать все имена файлов
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        Индексировать и те имена файлов, для которых не получается определить или обработать содержимое (неизвестный или неподдерживаемый тип MIME).  Обычно так
    
    
        Beagle web history
        Web-история Beagle
    
    
        Search parameters
        Параметры поиска
    
    
        Web history
        Посещённые web-страницы
    
    
        Default<br>character set
        
    
    
        Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        
    
    
        Ignored endings
        
    
    
        These are file name endings for files which will be indexed by name only 
(no MIME type identification attempt, no decompression, no content indexing).
        
    


    QWidget
    
        Create or choose save directory
        
    
    
        Choose exactly one directory
        
    
    
        Could not read directory: 
        
    
    
        Unexpected file name collision, cancelling.
        
    
    
        Cannot extract document: 
        
    
    
        &Preview
        &Просмотр
    
    
        &Open
        О&ткрыть
    
    
        Open With
        
    
    
        Run Script
        
    
    
        Copy &File Name
        Скопировать &имя файла
    
    
        Copy &URL
        Копировать &URL
    
    
        &Write to File
        &Сохранить в файл
    
    
        Save selection to files
        Сохранить выделение в файлы
    
    
        Preview P&arent document/folder
        &Предпросмотр родительского документа/каталога
    
    
        &Open Parent document/folder
        &Открыть родительский документ/каталог
    
    
        Find &similar documents
        Найти &подобные документы
    
    
        Open &Snippets window
        Открыть окно &Фрагменты
    
    
        Show subdocuments / attachments
        Показать вложенные документы
    


    RTIToolW
    
        Real time indexing automatic start
        Автоматический запуск индексирования в реальном времени
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Индексирование <span style=" font-weight:600;">Recoll</span> может быть настроено как сервис, обновляющий индекс при изменении файлов в реальном времени. При этом индекс всегда свежий, но ценой постоянно используемых системных ресурсов.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
    
    
        Start indexing daemon with my desktop session.
        Запускать службу индексирования вместе с моей сессией.
    
    
        Also start indexing daemon right now.
        Также запустить службу индексирования прямо сейчас.
    
    
        Replacing: 
        Заменяю: 
    
    
        Replacing file
        Заменяю файл
    
    
        Can't create: 
        Не могу создать: 
    
    
        Warning
        Осторожно
    
    
        Could not execute recollindex
        Невозможно запустить recollindex
    
    
        Deleting: 
        Удаляю: 
    
    
        Deleting file
        Удаляю файл
    
    
        Removing autostart
        Убираю автозапуск
    
    
        Autostart file deleted. Kill current process too ?
        Файл автозапуска удалён. Остановить текущий процесс?
    


    RclMain
    
        Query results
        Результаты поиска
    
    
        Cannot retrieve document info from database
        Невозможно извлечь информацию документа из БД
    
    
        Warning
        Осторожно
    
    
        Can't create preview window
        Невозможно создать окно предпросмотра
    
    
        Executing: [
        Выполняю: [
    
    
        About Recoll
        О программе
    
    
        Document history
        История документов
    
    
        History data
        Данные истории
    
    
        Indexing in progress: 
        Индексирование: 
    
    
        Files
        Файлы
    
    
        Purge
        Очистить
    
    
        Stemdb
        База корней
    
    
        Closing
        Закрываю
    
    
        Unknown
        Неизвестно
    
    
        This search is not active any more
        Этот поиск уже не активен
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeconf file
        Неверная командная строка программы просмотра %1: [%2]
Проверьте файл mimeconf
    
    
        Cannot extract document or create temporary file
        Невозможно извлечь документ или создать временный файл
    
    
        (no stemming)
        (без словоформ)
    
    
        (all languages)
        (все языки)
    
    
        error retrieving stemming languages
        ошибка получения списка языков
    
    
        Update &Index
        Обновить &индекс
    
    
        Indexing interrupted
        Индексирование прервано
    
    
        Stop &Indexing
        П&рервать индексирование
    
    
        Can't start query: 
        Ошибка старта запроса:
    
    
        All
        все
    
    
        media
        медиа
    
    
        message
        сообщения
    
    
        other
        иное
    
    
        presentation
        презентации
    
    
        spreadsheet
        таблицы
    
    
        text
        текст
    
    
        sorted
        сортированное
    
    
        filtered
        фильтрованное
    
    
        External applications/commands needed and not found for indexing your file types:


        Отсутствующие внешние приложения/команды, требуемые для индексирования ваших файлов:


    
    
        No helpers found missing
        Все вспомогательные программы доступны
    
    
        Missing helper programs
        Недостающие вспомогательные программы
    
    
        Save file dialog
        Сохранить файл
    
    
        Choose a file name to save under
        Выберите имя файла для сохранения
    
    
        Document category filter
        Фильтр категории документа
    
    
        No external viewer configured for mime type [
        Не указана внешняя программа просмотра для [
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        Программа просмотра, указанная в mimeview для %1: %2, не найдена.
Открыть диалог настроек?
    
    
        Can't access file: 
        Нет доступа к файлу: 
    
    
        Can't uncompress file: 
        Невозможно распаковать файл: 
    
    
        Save file
        Сохранить файл
    
    
        Result count (est.)
        Результатов (примерно)
    
    
        Query details
        Подробности запроса
    
    
        Could not open external index. Db not open. Check external indexes list.
        Не удалось открыть внешний индекс. БД не открыта. Проверьте список внешних индексов.
    
    
        No results found
        Поиск не дал результатов
    
    
        None
        Отсутствует
    
    
        Updating
        Обновляю
    
    
        Done
        Готово
    
    
        Monitor
        Монитор
    
    
        Indexing failed
        Индексирование не удалось
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        Текущий процесс индексирования не был запущен из этого интерфейса. Нажмите OK для останова или Отменить, чтоб работал себе
    
    
        Erasing index
        Стираю индекс
    
    
        Reset the index and start from scratch ?
        Обнулить индекс и начать заново?
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program
        Запрос обрабатывается.<br>Из-за ограничений библиотеки<br>останов прервёт всю программу
    
    
        Error
        Ошибка
    
    
        Index not open
        Индекс не открыт
    
    
        Index query error
        Ошибка запроса
    
    
        Indexed Mime Types
        Индексируемые MIME-типы
    
    
        Content has been indexed for these mime types:
        Проиндексировано содержание следующих MIME-типов:
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        Индекс для этого файла устарел. Не буду рисковать показывать не тот фрагмент. Нажмите OK для обновления индекса для этого файла, затем повторите запрос. Или же Отменить.
    
    
        Can't update index: indexer running
        Не могу обновить индекс: индексатор уже трудится
    
    
        Indexed MIME Types
        Индексируемые MIME-типы
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        Неверная командная строка программы просмотра %1: [%2]
Проверьте файл mimeview
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        Командная строка программы просмотра для %1 содержит как сам файл, так и родителя: такое не поддерживается
    
    
        Cannot find parent document
        Невозможно найти родительский документ
    
    
        Indexing did not run yet
        Индексирование пока не выполнялось
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        Требуемые внешние программы для ваших типов файлов не найдены: см. файл 
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry.
        Индекс для этого файла устарел. Отказываюсь рисковать показывать неправильную запись.
    
    
        Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        Нажмите ОК, чтобы обновить индекс для файла, и перезапустите очередь по окончании. Или нажмите Отмена.
    
    
        Indexer running so things should improve when it's done
        Индексация выполняется, так что по завершении положение должно улучшиться
    
    
        Sub-documents and attachments
        Вложенные документы
    
    
        Document filter
        
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. 
        
    
    
        Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. 
        
    
    
        The indexer is running so things should improve when it's done. 
        
    
    
        The document belongs to an external indexwhich I can't update. 
        
    
    
        Click Cancel to return to the list. Click Ignore to show the preview anyway. 
        
    
    
        Duplicate documents
        Дублированные документы
    
    
        These Urls ( | ipath) share the same content:
        Данные URL ( | индексные пути) имеют одно и то же содержимое:
    
    
        Bad desktop app spec for %1: [%2]
Please check the desktop file
        
    


    RclMainBase
    
        Recoll
        Recoll
    
    
        &File
        &Файл
    
    
        &Tools
        &Инструменты
    
    
        &Preferences
        &Настройки
    
    
        &Help
        &Подсказка
    
    
        Search tools
        Инструменты поиска
    
    
        Result list
        Список результатов
    
    
        E&xit
        &Выход
    
    
        &About Recoll
        &О программе
    
    
        &User manual
        &Руководство
    
    
        Document &History
        &История документов
    
    
        Document  History
        История документов
    
    
        &Advanced Search
        &Сложный поиск
    
    
        Advanced/complex  Search
        Сложный поиск
    
    
        &Sort parameters
        &Параметры сортировки
    
    
        Sort parameters
        Параметры сортировки
    
    
        Next page
        След. страница
    
    
        Next page of results
        Следующая страница результатов
    
    
        Previous page
        Пред. страница
    
    
        Previous page of results
        Предыдущая страница результатов
    
    
        &Query configuration
        &Конфигурация
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        Update &index
        Обновить &индекс
    
    
        Term &explorer
        Навигатор &терминов
    
    
        Term explorer tool
        Инструмент исследования терминов
    
    
        External index dialog
        Диалог внешнего индекса
    
    
        &Erase document history
        &Очистить историю документов
    
    
        First page
        Первая страница
    
    
        Go to first page of results
        Перейти к первой странице результатов
    
    
        &Indexing configuration
        Настройки ин&дексирования
    
    
        All
        все
    
    
        &Show missing helpers
        &Показать недостающие внешние программы
    
    
        PgDown
        PgDown
    
    
        PgUp
        PgUp
    
    
        &Full Screen
        Во весь &экран
    
    
        F11
        F11
    
    
        Full Screen
        Во весь экран
    
    
        &Erase search history
        Очистить историю &поиска
    
    
        sortByDateAsc
        sortByDateAsc
    
    
        Sort by dates from oldest to newest
        Сортировать по датам от старых к новым
    
    
        sortByDateDesc
        sortByDateDesc
    
    
        Sort by dates from newest to oldest
        Сортировать по датам от новых к старым
    
    
        Show Query Details
        Показать детали запроса
    
    
        Show results as table
        Показать результаты в виде таблицы
    
    
        &Rebuild index
        Пере&индексировать
    
    
        &Show indexed types
        Показать индексируемые &типы
    
    
        Shift+PgUp
        Shift-PgUp
    
    
        &Indexing schedule
        &Расписание индексирования
    
    
        E&xternal index dialog
        Диалог &внешнего индекса
    
    
        &Index configuration
        Конфигурация &индексирования
    
    
        &GUI configuration
        Конфигурация и&нтерфейса
    
    
        &Results
        Список &результатов
    
    
        Sort by date, oldest first
        Сортировать по датам от старых к новым
    
    
        Sort by date, newest first
        Сортировать по датам от новых к старым
    
    
        Show as table
        Показать в виде таблицы
    
    
        Show results in a spreadsheet-like table
        Показать результаты в виде таблицы
    
    
        Save as CSV (spreadsheet) file
        Сохранить в CSV-файл
    
    
        Saves the result into a file which you can load in a spreadsheet
        Сохранить результаты в текстовый файл с разделителями, открываемый как таблица в Office
    
    
        Next Page
        След. страница
    
    
        Previous Page
        Пред. страница
    
    
        First Page
        Первая страница
    
    
        Query Fragments
        
    
    
            With failed files retrying
        
    
    
        Next update will retry previously failed files
        
    


    RclTrayIcon
    
        Restore
        
    
    
        Quit
        
    


    RecollModel
    
        File name
        Имя файла
    
    
        Mime type
        Тип MIME
    
    
        Date
        Дата
    
    
        Abstract
        Выдержка
    
    
        Author
        Автор
    
    
        Document size
        Размер документа
    
    
        Document date
        Дата документа
    
    
        File size
        Размер файла
    
    
        File date
        Дата файла
    
    
        Keywords
        Ключевые слова
    
    
        Original character set
        Исходная кодировка
    
    
        Relevancy rating
        Релевантность
    
    
        Title
        Название
    
    
        URL
        URL
    
    
        Mtime
        Изменено
    
    
        Date and time
        Дата и время
    
    
        Ipath
        I-путь
    
    
        MIME type
        Тип MIME
    


    ResList
    
        Result list
        Список результатов
    
    
        Unavailable document
        Документ недоступен
    
    
        Previous
        Предыдущая
    
    
        Next
        Следующая
    
    
        <p><b>No results found</b><br>
        <p><b>Не найдено</b><br>
    
    
        &Preview
        &Просмотр
    
    
        Find &similar documents
        Найти &подобные документы
    
    
        Query details
        Подробности запроса
    
    
        (show query)
        (показать запрос)
    
    
        Copy &File Name
        Скопировать &имя файла
    
    
        Copy &URL
        Копировать &URL
    
    
        filtered
        фильтрованное
    
    
        sorted
        сортированное
    
    
        Document history
        История документов
    
    
        Preview
        Предпросмотр
    
    
        Open
        Открыть
    
    
        <p><i>Alternate spellings (accents suppressed): </i>
        <p><i>Альтернативная орфография (без диакритических знаков): </i>
    
    
        &Write to File
        &Сохранить в файл
    
    
        Preview P&arent document/folder
        &Предпросмотр родительского документа/каталога
    
    
        &Open Parent document/folder
        &Открыть родительский документ/каталог
    
    
        &Open
        О&ткрыть
    
    
        Documents
        Документы
    
    
        out of at least
        из минимум
    
    
        for
        по
    
    
        <p><i>Alternate spellings: </i>
        <p><i>Альтернативная орфография: </i>
    
    
        Duplicate documents
        Дублированные документы
    
    
        These Urls ( | ipath) share the same content:
        Данные URL ( | индексные пути) имеют одно и то же содержимое:
    
    
        Result count (est.)
        Результатов (примерно)
    
    
        Snippets
        Фрагменты
    


    ResTable
    
        &Reset sort
        &Сбросить параметры сортировки
    
    
        &Delete column
        &Удалить столбец
    
    
        Add "
        Добавить столбец "
    
    
        " column
        "
    
    
        Save table to CSV file
        Сохранить таблицу в CSV-файл
    
    
        Can't open/create file: 
        Не удалось открыть/создать файл:
    
    
        &Preview
        &Просмотр
    
    
        &Open
        О&ткрыть
    
    
        Copy &File Name
        Скопировать &имя файла
    
    
        Copy &URL
        Копировать &URL
    
    
        &Write to File
        &Сохранить в файл
    
    
        Find &similar documents
        Найти &подобные документы
    
    
        Preview P&arent document/folder
        &Предпросмотр родительского документа/каталога
    
    
        &Open Parent document/folder
        &Открыть родительский документ/каталог
    
    
        &Save as CSV
        &Сохранить как CSV
    
    
        Add "%1" column
        Добавить колонку "%1"
    


    ResTableDetailArea
    
        &Preview
        &Просмотр
    
    
        &Open
        О&ткрыть
    
    
        Copy &File Name
        Скопировать &имя файла
    
    
        Copy &URL
        Копировать &URL
    
    
        &Write to File
        &Сохранить в файл
    
    
        Find &similar documents
        Найти &подобные документы
    
    
        Preview P&arent document/folder
        &Предпросмотр родительского документа/каталога
    
    
        &Open Parent document/folder
        &Открыть родительский документ/каталог
    


    ResultPopup
    
        &Preview
        &Просмотр
    
    
        &Open
        О&ткрыть
    
    
        Copy &File Name
        Скопировать &имя файла
    
    
        Copy &URL
        Копировать &URL
    
    
        &Write to File
        &Сохранить в файл
    
    
        Save selection to files
        Сохранить выделение в файлы
    
    
        Preview P&arent document/folder
        &Предпросмотр родительского документа/каталога
    
    
        &Open Parent document/folder
        &Открыть родительский документ/каталог
    
    
        Find &similar documents
        Найти &подобные документы
    
    
        Open &Snippets window
        Открыть окно &Фрагменты
    
    
        Show subdocuments / attachments
        Показать вложенные документы
    


    SSearch
    
        Any term
        Любое слово
    
    
        All terms
        Все слова
    
    
        File name
        Имя файла
    
    
        Completions
        Дополнения
    
    
        Select an item:
        Выберите:
    
    
        Too many completions
        Слишком много дополнений
    
    
        Query language
        Язык запроса
    
    
        Bad query string
        Неверная строка запроса
    
    
        Out of memory
        Недостаточно памяти
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  No actual parentheses allowed.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        Введите выражение на языке запросов. Шпаргалка:<br>
<i>слово1 слово2</i> : 'слово1' и 'слово2' в любом поле.<br>
<i>поле:слово1</i> : 'слово1' в поле 'поле'.<br>
Стандартные поля/синонимы:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Псевдо-поля: dir, mime/format, type/rclcat, date.<br>
 Примеры интервалов между двумя датами: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>слово1 слово2 OR слово3</i> : слово1 И (слово2 ИЛИ слово3).<br>
  В действительности, скобки не разрешены.<br>
<i>"слово1 слово2"</i> : фраза (должна встречаться именно в таком виде). Модификаторы:<br>
<i>"слово1 слово2"p</i> : неупорядоченный поиск с расстоянием (<i><b>p</b>roximity</i>) по умолчанию.<br>
Используйте ссылку <b>показать запрос</b>, когда сомневаетесь в результате, и смотрите подробности в руководстве (&lt;F1>).

    
    
        Enter file name wildcard expression.
        Введите маску имени файла.
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Введите поисковые слова.  Можно нажать Esc-пробел для дополнения текущего слова.
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        
    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        Очистить
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        Очистить поле ввода
    
    
        Search
        Искать
    
    
        Start query
        Приступить к поиску
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        Введите поисковые слова.  Можно нажать Esc-пробел для дополнения текущего слова.
    
    
        Choose search type.
        Выберите тип поиска
    


    SearchClauseW
    
        Any of these
        с любыми словами
    
    
        All of these
        со всеми словами
    
    
        None of these
        без этих слов
    
    
        This phrase
        фраза
    
    
        Terms in proximity
        слова вблизи
    
    
        File name matching
        имя файла
    
    
        Select the type of query that will be performed with the words
        Выберите тип запроса, который будет произведён по словам
    
    
        Number of additional words that may be interspersed with the chosen ones
        Количество дополнительных слов, которые могут оказаться между выбранными
    
    
        No field
        Не исп. поля
    
    
        Any
        любое
    
    
        All
        все
    
    
        None
        без
    
    
        Phrase
        фраза
    
    
        Proximity
        близость
    
    
        File name
        имя файла
    


    Snippets
    
        Snippets
        Фрагменты
    
    
        about:blank
        about:blank
    
    
        Find:
        Найти:
    
    
        Next
        Следующая
    
    
        Prev
        Предыдущая
    


    SnippetsW
    
        Search
        Искать
    
    
        <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p>
        
    


    SortForm
    
        Date
        Дата
    
    
        Mime type
        Тип MIME
    


    SortFormBase
    
        Sort Criteria
        Критерии сортировки
    
    
        Sort the
        Сортировать
    
    
        most relevant results by:
        наиболее похожих результатов по:
    
    
        Descending
        убыванию
    
    
        Close
        Закрыть
    
    
        Apply
        Применить
    


    SpellBase
    
        Term Explorer
        Навигатор терминов
    
    
        &Expand 
        &Раскрыть 
    
    
        Alt+E
        Alt-E
    
    
        &Close
        &Закрыть
    
    
        Alt+C
        Alt+C
    
    
        Term
        Слово
    
    
        No db info.
        Нет информации о БД.
    
    
        Match
        Учитывать
    
    
        Case
        регистр
    
    
        Accents
        ударения
    


    SpellW
    
        Wildcards
        Шаблоны
    
    
        Regexp
        Регвыражение
    
    
        Spelling/Phonetic
        Написание/фонетика
    
    
        Aspell init failed. Aspell not installed?
        Не получилось инициализировать Aspell.  Он установлен?
    
    
        Aspell expansion error. 
        Ошибка раскрывания aspell. 
    
    
        Stem expansion
        Раскрытие основы
    
    
        error retrieving stemming languages
        ошибка получения списка языков
    
    
        No expansion found
        Раскрытие не найдено
    
    
        Term
        Слово
    
    
        Doc. / Tot.
        Док. / Всего
    
    
        Index: %1 documents, average length %2 terms
        Индекс: %1 документ(ов), средняя длина %2 элемент(ов)
    
    
        Index: %1 documents, average length %2 terms.%3 results
        Индекс: %1 документ(ов), средняя длина %2 слов(о). %3 результат(ов)
    
    
        %1 results
        %1 результат(ов)
    
    
        List was truncated alphabetically, some frequent 
        Список был обрезан в алфавитном порядке, некоторые частые
    
    
        terms may be missing. Try using a longer root.
        слова могут отсутствовать. Попробуйте более длинный корень.
    
    
        Show index statistics
        Показать статистику индекса
    
    
        Number of documents
        Число документов
    
    
        Average terms per document
        Среднее число слов в документе
    
    
        Smallest document length
        Минимальная длина документа
    
    
        Longest document length
        Максимальная длина документа
    
    
        Database directory size
        Размер каталога базы данных
    
    
        MIME types:
        MIME-типы:
    
    
        Item
        Элемент
    
    
        Value
        Значение
    


    UIPrefsDialog
    
        The selected directory does not appear to be a Xapian index
        Выбранный каталог не похож на индекс Xapian
    
    
        This is the main/local index!
        Это главный индекс!
    
    
        The selected directory is already in the index list
        Этот каталог уже в списке индексов
    
    
        Select xapian index directory (ie: /home/buddy/.recoll/xapiandb)
        Выберите каталог индекса Xapian (например, /home/приятель/.recoll/xapiandb)
    
    
        error retrieving stemming languages
        ошибка получения списка языков
    
    
        Choose
        Выберите
    
    
        Result list paragraph format (erase all to reset to default)
        Формат абзаца в списке результатов (очистите, чтобы вернуться к варианту по умолчанию)
    
    
        Result list header (default is empty)
        Заголовок списка результатов (по умолчанию пуст)
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        Выберите каталог конфигурации Recoll или индекса Xapian (например, /home/я/.recoll или /home/приятель/.recoll/xapiandb)
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        Выбранный каталог выглядит как каталог конфигурации Recoll, но настройки не могут быть прочитаны
    
    
        At most one index should be selected
        Следует выбирать не больше одного индекса
    
    
        Cant add index with different case/diacritics stripping option
        Невозможно добавить индекс с другими настройками регистра и диакритики
    
    
        Default QtWebkit font
        
    


    UIPrefsDialogBase
    
        User interface
        Интерфейс
    
    
        Number of entries in a result page
        Количество записей на страницу результатов
    
    
        Result list font
        Шрифт списка результатов
    
    
        Helvetica-10
        Helvetica-10
    
    
        Opens a dialog to select the result list font
        Открывает диалог выбора шрифта списка результатов
    
    
        Reset
        Вернуть
    
    
        Resets the result list font to the system default
        Устанавливает шрифт списка результатов в обычный
    
    
        Auto-start simple search on whitespace entry.
        Начинать простой поиск по вводу пробела.
    
    
        Start with advanced search dialog open.
        Открывать диалог сложного поиска при запуске.
    
    
        Start with sort dialog open.
        Открывать диалог сортировки при запуске.
    
    
        Search parameters
        Параметры поиска
    
    
        Stemming language
        Язык словоформ
    
    
        Dynamically build abstracts
        Динамическое выделение конспекта
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Следует ли пытаться построить конспект из найденных документов, опираясь на контекст ключевых слов?
Может быть медленным для больших документов.
    
    
        Replace abstracts from documents
        Замещать конспект, содержащийся в документах
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Создавать ли конспект, если документ уже имеет его?
    
    
        Synthetic abstract size (characters)
        Размер создаваемого конспекта (в символах)
    
    
        Synthetic abstract context words
        Контекстных слов
    
    
        External Indexes
        Внешние индексы
    
    
        Add index
        Добавить индекс
    
    
        Select the xapiandb directory for the index you want to add, then click Add Index
        Выберите нужный каталог с индексом Xapian и нажмите "Добавить индекс"
    
    
        Browse
        Просмотр
    
    
        &OK
        &OK
    
    
        Apply changes
        Применить изменения
    
    
        &Cancel
        &Отмена
    
    
        Discard changes
        Отменить изменения
    
    
        Result paragraph<br>format string
        Строка форматирования<br>блока результатов
    
    
        Automatically add phrase to simple searches
        Автоматически добавлять фразу при простом поиске
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Поиск [rolling stones] (два слова) будет изменён на [rolling или stones или (rolling phrase 2 stones)].
Это может поднять результаты, для которых слова следуют именно в том порядке, как введены.
    
    
        User preferences
        Предпочтения
    
    
        Use desktop preferences to choose document editor.
        Использовать десктопные настройки для выбора редактора документов.
    
    
        External indexes
        Внешние индексы
    
    
        Toggle selected
        Переключить выделенные
    
    
        Activate All
        Включить все
    
    
        Remove selected
        Удалить выделенные
    
    
        Remove from list. This has no effect on the disk index.
        Удалить из списка. Индекс на диске без изменений.
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Определяет формат каждого блока списка результатов. Используйте html-формат qt и замены в стиле printf:<br>%A аннотация<br> %D дата<br> %I название пиктограммы<br> %K ключевые слова (если есть)<br> %L ссылки предварительного просмотра и редактирования<br> %M тип MIME<br> %N количество результатов<br> %R релевантность<br> %S размер<br> %T заголовок<br> %U URL<br>
    
    
        Remember sort activation state.
        Запомнить состояние сортировки.
    
    
        Maximum text size highlighted for preview (megabytes)
        Максимальный объём текста с выделением при просмотре (Мб)
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Тексты большего размера не будут подсвечиваться при предварительном просмотре (медленно).
    
    
        Highlight color for query terms
        Цвет выделения ключевых слов
    
    
        Deactivate All
        Выключить все
    
    
        Prefer Html to plain text for preview.
        Предпочитать HTML тексту для предпросмотра
    
    
        If checked, results with the same content under different names will only be shown once.
        Показывать результаты с тем же содержанием под разными именами не более одного раза
    
    
        Hide duplicate results.
        Прятать дубликаты
    
    
        Choose editor applications
        Выбор редакторов
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Показывать фильтр категории документа в виде выпадающего списка, а не панели с кнопками (требуется перезапуск).
    


    ViewAction
    
        Changing actions with different current values
        Изменение действий с различными текущими значениями
    
    
        Mime type
        Тип MIME
    
    
        Command
        Команда
    
    
        MIME type
        Тип MIME
    
    
        Desktop Default
        Взять из окружения
    
    
        Changing entries with different current values
        Изменение записей с различными текущими значениями
    


    ViewActionBase
    
        File type
        Тип файла
    
    
        Action
        Действие
    
    
        Select one or several file types, then click Change Action to modify the program used to open them
        Выберите один или несколько типов файлов, затем нажмите "Сменить действие" для изменения программы, работающей с ними
    
    
        Change Action
        Сменить действие
    
    
        Close
        Закрыть
    
    
        Native Viewers
        Родные вьюеры
    
    
        Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults.
        Выберите один или несколько MIME-типов и нажмите"Сменить действие"<br>Также Вы можете закрыть этот диалог и установить флаг "Использовать десктопные настройки"<br> в основной панели, чтобы использовать десктопные настройки вместо данного списка.
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        Выберите MIME-типы и используйте кнопки ниже, чтобы изменить то, как они обрабатываются
    
    
        Use Desktop preferences by default
        Использовать настройки окружения
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        Выберите типы файлов и используйте кнопки ниже, чтобы изменить то, как они обрабатываются
    
    
        Exception to Desktop preferences
        Переопределить настройки окружения
    
    
        Action (empty -> recoll default)
        Действие (пусто -> вариант по умолчанию)
    
    
        Apply to current selection
        Применить к выделению
    
    
        Recoll action:
        
    
    
        current value
        
    
    
        Select same
        
    
    
        <b>New Values:</b>
        
    


    confgui::ConfBeaglePanelW
    
        Steal Beagle indexing queue
        Воспользоваться очередью индексирования Beagle
    
    
        Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin)
        Beagle НЕ должен выполняться. Включить обработку очереди Beagle для индексирования Web-истории Firefox.<br>(для этого следует также установить плагин Beagle для Firefox)
    
    
        Web cache directory name
        Каталог Веб-кэша
    
    
        The name for a directory where to store the cache for visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        Имя каталога, в котором хранится кэш посещенных Веб-страниц.<br>Путь указывается относительно каталога с конфигурацией и не является абсолютным.
    
    
        Max. size for the web cache (MB)
        Предел размера Веб-кэша (MB)
    
    
        Entries will be recycled once the size is reached
        При достижении указанного размера кэша старые записи будут удаляться
    
    
        Web page store directory name
        Имя каталога для хранилища web-страниц
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        Имя каталога для хранения копий посещённых web-страниц.<br>Путь, не являющийся абсолютным, берётся относительно каталога конфигурации.
    
    
        Max. size for the web store (MB)
        Максимальный размер web-хранилища (МБ)
    
    
        Process the WEB history queue
        Обрабатывать посещённые web-страницы
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)
        Включает индексирование страниц, открывавшихся в Firefox.<br>(нужно дополнение Recoll для Firefox)
    


    confgui::ConfIndexW
    
        Can't write configuration file
        Невозможно записать файл конфигурации
    


    confgui::ConfParamFNW
    
        Browse
        Просмотр
    
    
        Choose
        Просмотр
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        Автоматическая чувствительность для диакритики
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.
        <p>Автоматически включает чувствительность для диакритики, если строка поиска содержит диакритические знаки (не в Unac-исключениях). В противном случае используйте язык запросов (модификатор <i>D</i> для указания чувствительности).
    
    
        Automatic character case sensitivity
        Автоматическая чувствительность для регистра
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.
        <p>Автоматически включает чувствительность для регистра символов, если строка поиска содержит заглавные буквы (кроме первой буквы). В противном случае используйте язык запросов (модификатор <i>C</i> для указания чувствительности).
    
    
        Maximum term expansion count
        Максимальное число раскрытий слов
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.
        <p>Максимальное число раскрытий для одного слова (напр. при использовании масок). Значение по умолчанию (10 000) является разумным и поможет избежать слишком затратных запросов.
    
    
        Maximum Xapian clauses count
        Максимальное число Xapian-предложений
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.
        <p>Максимальное число элементарных предложений, добавляемых в запрос к Xapian. В некоторых случаях результатом раскрытия слов может стать чрезмерное потребление памяти. Значение по умолчанию (100 000) достаточно в большинстве случаев и подходит для современных аппаратных конфигураций.
    


    confgui::ConfSubPanelW
    
        Global
        Общее
    
    
        Max. compressed file size (KB)
        Предел размера сжатого файла (KB)
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        Это значение устанавливает порог размера сжатых файлов, которые будут обрабатываться. -1 отключает порог, 0 отключает декомпрессию.
    
    
        Max. text file size (MB)
        Предел размера текстового файла (MB)
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        Это значение устанавливает порог размера текстовых файлов, которые будут обрабатываться. -1 отключает порог.
Данная настройка может быть полезна для предотвращения индексирования больших файлов: журналов сообщений и т.п.
    
    
        Text file page size (KB)
        Размер страницы текстового файла (KB)
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        Если это значение установлено (т.е. не равно -1), то при индексировании текстовые файлы разбиваются на фрагменты соответствующего размера.
Данная опция может помочь при выполнении поиска в очень больших текстовых файлах (например, файлах журналов).
    
    
        Max. filter exec. time (S)
        Предельное время работы фильтра (сек)
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit.

        Внешние фильтры, выполняющиеся дольше указанного предельного времени работы, принудительно завершаются. Это может помочь в тех редких случаях, когда фильтр (например, postscript) зацикливается при обработке некоторого документа. Значение, равное -1, выключает проверку времени работы.
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        Внешние фильтры, выполняющиеся дольше указанного предельного времени работы, принудительно завершаются. Это может помочь в тех редких случаях, когда фильтр (например, postscript) зацикливается при обработке некоторого документа. Значение, равное -1, выключает проверку времени работы.

    
    
        Only mime types
        
    
    
        An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive
        
    
    
        Exclude mime types
        
    
    
        Mime types not to be indexed
        
    


    confgui::ConfTopPanelW
    
        Top directories
        Индексируемые папки
    
    
        The list of directories where recursive indexing starts. Default: your home.
        Список каталогов, где начинается рекурсивное индексирование.  Обычно домашний каталог.
    
    
        Skipped paths
        Пропускать
    
    
        Stemming languages
        Языки со словоформами
    
    
        The languages for which stemming expansion<br>dictionaries will be built.
        Языки, для которых будут построены<br>словари раскрытия словоформ.
    
    
        Log file name
        Файл журнала
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output
        Файл, куда будут записываться сообщения.<br>'stderr' для вывода на терминал
    
    
        Log verbosity level
        Подробность журнала
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.
        Это значение определяет подробность сообщений,<br>от ошибок до отладочных данных.
    
    
        Index flush megabytes interval
        Интервал записи индекса (Мб)
    
    
        Max disk occupation (%)
        Максимальное использование диска (%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).
        Процент занятости диска, при котором индексирование будет прервано (во избежание заполнения доступного места).<br>Обычно: 0 (отключает проверку).
    
    
        No aspell usage
        Не использовать aspell
    
    
        Aspell language
        Язык aspell
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Язык словаря aspell.  Обычно вроде 'en' или 'ru'...<br>Если значение не указано, будет использовано окружение (локаль), что обычно работает.  Чтобы посмотреть, какие варианты доступны в системе, наберите 'aspell config' и проверьте, какие .dat-файлы есть в каталоге 'data-dir'. 
    
    
        Database directory name
        Каталог базы данных
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the  configuration directory. The default is 'xapiandb'.
        Имя каталога, в котором хранится индекс<br>Относительный путь берётся от каталога конфигурации.  Обычно 'xapiandb'.
    
    
        Use system's 'file' command
        Использовать системную 'file'
    
    
        Use the system's 'file' command if internal<br>mime type identification fails.
        Использовать системную команду 'file' <br>при сбое внутреннего определителя типов MIME.
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
        Имена каталогов, которые индексирование обойдёт.<br>Может содержать шаблоны.  Обязано подходить к путям, которые видит индексатор (например, если topdirs включает '/home/me' и '/home' является ссылкой на '/usr/home', то правильная запись должна быть '/home/me/tmp*', а не '/usr/home/me/tmp*')
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 
        Это значение определяет количество проиндексированных данных между сбросами на диск.<br>Помогает контролировать использование памяти при индексации.  Обычно 10Mb 
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 
        Отключает использование aspell для генерации приближений написания в навигаторе терминов.<br> Полезно, если aspell отсутствует или сломан. 
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        Язык словаря aspell.  Обычно вроде 'en' или 'ru'...<br>Если значение не указано, будет использовано окружение (локаль), что обычно работает.  Чтобы посмотреть, какие варианты доступны в системе, наберите 'aspell config' и проверьте, какие .dat-файлы есть в каталоге 'data-dir'. 
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
        Имя каталога, в котором хранится индекс<br>Относительный путь берётся от каталога конфигурации.  Обычно 'xapiandb'.
    
    
        Unac exceptions
        Unac-исключения
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.
        <p>Это исключения для механизма Unac, который удаляет всю диакритику и выполняет каноническую декомпозицию. Можно переопределить механизм удаления для вашего языка или добавить декомпозиции (напр., для лигатур). Каждая запись отделяется пробелами и состоит из исходного символа и интерпретации.
    


    uiPrefsDialogBase
    
        User preferences
        Предпочтения
    
    
        User interface
        Интерфейс
    
    
        Number of entries in a result page
        Количество записей на страницу результатов
    
    
        If checked, results with the same content under different names will only be shown once.
        Показывать результаты с тем же содержанием под разными именами не более одного раза
    
    
        Hide duplicate results.
        Прятать дубликаты
    
    
        Highlight color for query terms
        Цвет выделения ключевых слов
    
    
        Result list font
        Шрифт списка результатов
    
    
        Opens a dialog to select the result list font
        Открывает диалог выбора шрифта списка результатов
    
    
        Helvetica-10
        Helvetica-10
    
    
        Resets the result list font to the system default
        Устанавливает шрифт списка результатов в обычный
    
    
        Reset
        Вернуть
    
    
        Defines the format for each result list paragraph. Use qt html format and printf-like replacements:<br>%A Abstract<br> %D Date<br> %I Icon image name<br> %K Keywords (if any)<br> %L Preview and Edit links<br> %M Mime type<br> %N Result number<br> %R Relevance percentage<br> %S Size information<br> %T Title<br> %U Url<br>
        Определяет формат каждого блока списка результатов. Используйте html-формат qt и замены в стиле printf:<br>%A аннотация<br> %D дата<br> %I название пиктограммы<br> %K ключевые слова (если есть)<br> %L ссылки предварительного просмотра и редактирования<br> %M тип MIME<br> %N количество результатов<br> %R релевантность<br> %S размер<br> %T заголовок<br> %U URL<br>
    
    
        Result paragraph<br>format string
        Строка форматирования<br>блока результатов
    
    
        Texts over this size will not be highlighted in preview (too slow).
        Тексты большего размера не будут подсвечиваться при предварительном просмотре (медленно).
    
    
        Maximum text size highlighted for preview (megabytes)
        Максимальный объём текста с выделением при просмотре (Мб)
    
    
        Use desktop preferences to choose document editor.
        Использовать десктопные настройки для выбора редактора документов.
    
    
        Choose editor applications
        Выбор редакторов
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        Показывать фильтр категории документа в виде выпадающего списка, а не панели с кнопками (требуется перезапуск).
    
    
        Auto-start simple search on whitespace entry.
        Начинать простой поиск по вводу пробела.
    
    
        Start with advanced search dialog open.
        Открывать диалог сложного поиска при запуске.
    
    
        Start with sort dialog open.
        Открывать диалог сортировки при запуске.
    
    
        Remember sort activation state.
        Запомнить состояние сортировки.
    
    
        Prefer Html to plain text for preview.
        Предпочитать HTML тексту для предпросмотра
    
    
        Search parameters
        Параметры поиска
    
    
        Stemming language
        Язык словоформ
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        Поиск [rolling stones] (два слова) будет изменён на [rolling или stones или (rolling phrase 2 stones)].
Это может поднять результаты, для которых слова следуют именно в том порядке, как введены.
    
    
        Automatically add phrase to simple searches
        Автоматически добавлять фразу при простом поиске
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        Следует ли пытаться построить конспект из найденных документов, опираясь на контекст ключевых слов?
Может быть медленным для больших документов.
    
    
        Dynamically build abstracts
        Динамическое выделение конспекта
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        Создавать ли конспект, если документ уже имеет его?
    
    
        Replace abstracts from documents
        Замещать конспект, содержащийся в документах
    
    
        Synthetic abstract size (characters)
        Размер создаваемого конспекта (в символах)
    
    
        Synthetic abstract context words
        Контекстных слов
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        Слова в списке будут автоматически преобразованы к виду ext:xxx в запросе.
    
    
        Query language magic file name suffixes.
        Магические расширения имени файла для языка запросов
    
    
        Enable
        Включить
    
    
        External Indexes
        Внешние индексы
    
    
        Toggle selected
        Переключить выделенные
    
    
        Activate All
        Включить все
    
    
        Deactivate All
        Выключить все
    
    
        Remove from list. This has no effect on the disk index.
        Удалить из списка. Индекс на диске без изменений.
    
    
        Remove selected
        Удалить выделенные
    
    
        Click to add another index directory to the list
        Нажмите, чтобы добавить ещё одну папку с индексом в список
    
    
        Add index
        Добавить индекс
    
    
        Apply changes
        Применить изменения
    
    
        &OK
        &OK
    
    
        Discard changes
        Отменить изменения
    
    
        &Cancel
        &Отмена
    
    
        Abstract snippet separator
        Разделитель фрагментов в результатах
    
    
        Use <PRE> tags instead of <BR>to display plain text as html.
        Использовать тэги <PRE> вместо <BR>для отображения простого текста как html.
    
    
        Lines in PRE text are not folded. Using BR loses indentation.
        Строки в PRE-тексте не переносятся. При использовании BR теряются отступы.
    
    
        Style sheet
        Набор стилей
    
    
        Opens a dialog to select the style sheet file
        Открыть диалог выбора файла стилей
    
    
        Choose
        Выбрать
    
    
        Resets the style sheet to default
        Вернуть стили по умолчанию
    
    
        Lines in PRE text are not folded. Using BR loses some indentation.
        Строки текста PRE не переносятся. Использование BR теряет чать отступов.
    
    
        Use <PRE> tags instead of <BR>to display plain text as html in preview.
        Использовать теги <PRE> вместо <BR> для отображения обычного текста как HTML при предварительном просмотре.
    
    
        Result List
        Список результатов
    
    
        Edit result paragraph format string
        Править строку форматирования результатов
    
    
        Edit result page html header insert
        Править HTML-заголовок результатов
    
    
        Date format (strftime(3))
        Формат даты по strftime(3)
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        Порог частоты в процентах, после которого мы не используем термы в автофразе. 
Частые термы являются существенной проблемой производительности на фразах. 
Пропущенные термы дополняют просадку фразы и уменьшают эффективность АФ. 
Значение по умолчанию - 2 (процента). 
    
    
        Autophrase term frequency threshold percentage
        Порог частоты термов автофразы в процентах
    
    
        Plain text to HTML line style
        Стиль отображения текста в HTML
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        Строки в PRE-тексте не переносятся. BR теряет часть отступов. PRE + перенос может быть хорошим выбором.
    
    
        <BR>
        <BR> (перевод строки)
    
    
        <PRE>
        <PRE> (преформат)
    
    
        <PRE> + wrap
        <PRE> + перенос
    
    
        Disable Qt autocompletion in search entry.
        Отключить Qt-автозавершение при вводе строки поиска.
    
    
        Search as you type.
        Искать по мере ввода.
    
    
        Paths translations
        Корректировка путей
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        Щёлкните, чтобы добавить другой каталог индекса в список. Можно выбрать каталог конфигурации Recoll или индекс Xapian.
    
    
        Snippets window CSS file
        CSS-файл для окна Фрагменты
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        Открывает диалог выбора таблицы стилей CSS для окна Фрагменты
    
    
        Resets the Snippets window style
        Сбрасывает стиль окна Фрагменты
    
    
        Decide if document filters are shown as radio buttons, toolbar combobox, or menu.
        
    
    
        Document filter choice style:
        
    
    
        Buttons Panel
        
    
    
        Toolbar Combobox
        
    
    
        Menu
        
    
    
        Show system tray icon.
        
    
    
        Close to tray instead of exiting.
        
    


recoll-1.21.5/qtgui/i18n/recoll_zh.ts0000644000175000017500000040446212602163537016642 0ustar  dockesdockes



    AdvSearch
    
        All clauses
        全部条件
    
    
        Any clause
        任意条件
    
    
        texts
        文本
    
    
        spreadsheets
        电子表格
    
    
        presentations
        演示文稿
    
    
        media
        多媒体文件
    
    
        messages
        邮件
    
    
        other
        其它
    
    
        Bad multiplier suffix in size filter
        文件尺寸过滤器的后缀单位不正确
    
    
        text
        文本文件
    
    
        spreadsheet
        电子表格
    
    
        presentation
        演示文档
    
    
        message
        邮件
    


    AdvSearchBase
    
        Advanced search
        高端搜索
    
    
        Search for <br>documents<br>satisfying:
        搜索<br>满足以下条件<br>的文档:
    
    
        Delete clause
        删除条件
    
    
        Add clause
        添加条件
    
    
        Restrict file types
        限定文件类型
    
    
        Check this to enable filtering on file types
        选中这个,以便针对文件类型进行过滤
    
    
        By categories
        按大类来过滤
    
    
        Check this to use file categories instead of raw mime types
        选中这个,以便使用较大的分类,而不使用具体的文件类型
    
    
        Save as default
        保存为默认值
    
    
        Searched file types
        将被搜索的文件类型
    
    
        All ---->
        移动全部→
    
    
        Sel ----->
        移动选中项→
    
    
        <----- Sel
        ←移动选中项
    
    
        <----- All
        ←移动全部
    
    
        Ignored file types
        要忽略的文件类型
    
    
        Enter top directory for search
        输入要搜索的最上层目录
    
    
        Browse
        浏览
    
    
        Restrict results to files in subtree:
        将结果中的文件限定在此子目录树中:
    
    
        Start Search
        开始搜索
    
    
        Close
        关闭
    
    
        All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. <br>"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.<br>Fields with no data are ignored.
        右边的所有非空字段都会按照逻辑与(“全部条件”选项)或逻辑或(“任意条件”选项)来组合。<br>“任意”“全部”和“无”三种字段类型都接受输入简单词语和双引号引用的词组的组合。<br>空的输入框会被忽略。
    
    
        Invert
        反转过滤条件
    
    
        Minimum size. You can use k/K,m/M,g/G as multipliers
        最小尺寸。你可使用k/K、m/M、g/G作为单位
    
    
        Min. Size
        最小尺寸
    
    
        Maximum size. You can use k/K,m/M,g/G as multipliers
        最大尺寸。你可使用k/K、m/M、g/G作为单位
    
    
        Max. Size
        最大尺寸
    
    
        Filter
        过滤
    
    
        From
        
    
    
        To
        
    
    
        Check this to enable filtering on dates
        选中这个,以便针对日期进行过滤
    
    
        Filter dates
        过滤日期
    
    
        Find
        查找
    
    
        Check this to enable filtering on sizes
        选中这个,以便针对文件尺寸进行过滤
    
    
        Filter sizes
        过滤尺寸
    


    CronToolW
    
        Cron Dialog
        计划任务对话框
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> batch indexing schedule (cron) </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used <span style=" font-style:italic;">as is</span> inside the crontab file, and the full crontab syntax can be used, see crontab(5).</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />For example, entering <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Days, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Hours</span> and <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minutes</span> would start recollindex every day at 12:15 AM and 7:15 PM</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A schedule with very frequent activations is probably less efficient than real time indexing.</p></body></html>
        <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T19:47:37" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T19:56:53" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css">
	@page {  }
	table { border-collapse:collapse; border-spacing:0; empty-cells:show }
	td, th { vertical-align:top; font-size:12pt;}
	h1, h2, h3, h4, h5, h6 { clear:both }
	ol, ul { margin:0; padding:0;}
	li { list-style: none; margin:0; padding:0;}
	<!-- "li span.odfLiEnd" - IE 7 issue-->
	li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
	span.footnodeNumber { padding-right:1em; }
	span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000;  margin:0; border:0; padding:0;  }
	* { margin:0;}
	.P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; }
	.T1 { font-weight:bold; }
	.T3 { font-style:italic; }
	.T4 { font-family:Courier New,courier; }
	<!-- ODF styles with no properties representable as CSS -->
	{ }
	</style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> 批量索引计划任务(cron) </p><p class="P1">每个字段都可以包括一个通配符(*)、单个数字值、逗号分隔的列表(1,3,5)和范围(1-7)。更准确地说,这些字段会被<span class="T3">按原样</span>输出到crontab 文件中,因此这里可以使用crontab 的所有语法,参考crontab(5)。</p><p class="P1"><br/>例如,在<span class="T3">日期</span>中输入<span class="T4">*</span>,<span class="T3">小时</span>中输入<span class="T4">12,19</span>,<span class="T3">分钟</span>中输入<span class="T4">15 </span>的话,会在每天的12:15 AM 和7:15 PM启动recollindex。</p><p class="P1">一个频繁执行的计划任务,其性能可能比不上实时索引。</p></body></html>

    
    
        Days of week (* or 0-7, 0 or 7 is Sunday)
        星期日(*或0-7,0或7是指星期天)
    
    
        Hours (* or 0-23)
        小时(*或0-23)
    
    
        Minutes (0-59)
        分钟(0-59)
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Disable</span> to stop automatic batch indexing, <span style=" font-style:italic;">Enable</span> to activate it, <span style=" font-style:italic;">Cancel</span> to change nothing.</p></body></html>
        <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:08:00" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:11:47" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css">
	@page {  }
	table { border-collapse:collapse; border-spacing:0; empty-cells:show }
	td, th { vertical-align:top; font-size:12pt;}
	h1, h2, h3, h4, h5, h6 { clear:both }
	ol, ul { margin:0; padding:0;}
	li { list-style: none; margin:0; padding:0;}
	<!-- "li span.odfLiEnd" - IE 7 issue-->
	li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
	span.footnodeNumber { padding-right:1em; }
	span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000;  margin:0; border:0; padding:0;  }
	* { margin:0;}
	.P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; }
	.T2 { font-style:italic; }
	<!-- ODF styles with no properties representable as CSS -->
	{ }
	</style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1">点击<span class="T2">禁用</span>以停止进行自动化的批量索引,点击<span class="T2">启用</span>以启用此功能,点击<span class="T2">取消</span>则不改变任何东西。</p></body></html>

    
    
        Enable
        启用
    
    
        Disable
        禁用
    
    
        It seems that manually edited entries exist for recollindex, cannot edit crontab
        看起来已经有手动编辑过的recollindex条目了,因此无法编辑crontab
    
    
        Error installing cron entry. Bad syntax in fields ?
        插入cron条目时出错。请检查语法。
    


    EditDialog
    
        Dialog
        对话框
    


    EditTrans
    
        Source path
        
    
    
        Local path
        
    
    
        Config error
        
    
    
        Original path
        
    


    EditTransBase
    
        Path Translations
        
    
    
        Setting path translations for 
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Add
        
    
    
        Delete
        
    
    
        Cancel
        取消
    
    
        Save
        
    


    FirstIdxDialog
    
        First indexing setup
        第一次索引设置
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">It appears that the index for this configuration does not exist.</span><br /><br />If you just want to index your home directory with a set of reasonable defaults, press the <span style=" font-style:italic;">Start indexing now</span> button. You will be able to adjust the details later. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you want more control, use the following links to adjust the indexing configuration and schedule.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">These tools can be accessed later from the <span style=" font-style:italic;">Preferences</span> menu.</p></body></html>
        <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:14:44" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:23:13" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css">
	@page {  }
	table { border-collapse:collapse; border-spacing:0; empty-cells:show }
	td, th { vertical-align:top; font-size:12pt;}
	h1, h2, h3, h4, h5, h6 { clear:both }
	ol, ul { margin:0; padding:0;}
	li { list-style: none; margin:0; padding:0;}
	<!-- "li span.odfLiEnd" - IE 7 issue-->
	li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
	span.footnodeNumber { padding-right:1em; }
	span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000;  margin:0; border:0; padding:0;  }
	* { margin:0;}
	.P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; }
	.T2 { font-weight:bold; }
	.T4 { font-style:italic; }
	<!-- ODF styles with no properties representable as CSS -->
	{ }
	</style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T2">未找到对应于此配置实例的索引数据。</span><br/><br/>如果你只想以一组合理的默认参数来索引你的家目录的话,就直接按<span class="T4">立即开始索引</span>按钮。以后还可以调整配置参数的。</p><p class="P1">如果你想调整某些东西的话,就使用下面的链接来调整其中的索引配置和定时计划吧。</p><p class="P1">这些工具可在以后通过<span class="T4">选项</span>菜单访问。</p></body></html>

    
    
        Indexing configuration
        索引配置
    
    
        This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.
        在这里可以调整你想要对其进行索引的目录,以及其它参数,例如:要排除和路径或名字、默认字符集……
    
    
        Indexing schedule
        定时索引任务
    
    
        This will let you chose between batch and real-time indexing, and set up an automatic  schedule for batch indexing (using cron).
        在这里可以选择是要进行批量索引还是实时索引,还可以设置一个自动化的定时(使用cron)批量索引任务。
    
    
        Start indexing now
        立即开始索引
    


    FragButs
    
        %1 not found.
        
    
    
        %1:
 %2
        
    
    
        Query Fragments
        
    


    IdxSchedW
    
        Index scheduling setup
        定时索引设置
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can run permanently, indexing files as they change, or run at discrete intervals. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reading the manual may help you to decide between these approaches (press F1). </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense). </p></body></html>
        <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:27:11" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:30:49" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css">
	@page {  }
	table { border-collapse:collapse; border-spacing:0; empty-cells:show }
	td, th { vertical-align:top; font-size:12pt;}
	h1, h2, h3, h4, h5, h6 { clear:both }
	ol, ul { margin:0; padding:0;}
	li { list-style: none; margin:0; padding:0;}
	<!-- "li span.odfLiEnd" - IE 7 issue-->
	li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
	span.footnodeNumber { padding-right:1em; }
	span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000;  margin:0; border:0; padding:0;  }
	* { margin:0;}
	.P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; }
	.T1 { font-weight:bold; }
	<!-- ODF styles with no properties representable as CSS -->
	{ }
	</style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> 索引程序可持续运行并且在文件发生变化时对其进行索引,也可以间隔一定时间运行一次。</p><p class="P1">你可以读一下手册,以便更好地做出抉择(按F1)。</p><p class="P1">这个工具可帮助你设置一个自动进行批量索引的定时任务,或者设置成当你登录时便启动实时索引(或者两者同时进行,当然那几乎没有意义)。</p></body></html>

    
    
        Cron scheduling
        定时任务
    
    
        The tool will let you decide at what time indexing should run and will install a crontab entry.
        这个工具帮助你确定一个让索引运行的时间,它会插入一个crontab条目。
    
    
        Real time indexing start up
        实时索引设置
    
    
        Decide if real time indexing will be started when you log in (only for the default index).
        作出决定,是否要在登录时便启动实时索引(只对默认索引有效)。
    


    ListDialog
    
        Dialog
        对话框
    
    
        GroupBox
        分组框
    


    Main
    
        No db directory in configuration
        配置实例中没有数据库目录
    
    
        "history" file is damaged or un(read)writeable, please check or remove it: 
        "history"文件被损坏,或者不可(读)写,请检查一下或者删除它:
    


    Preview
    
        Close Tab
        关闭标签页
    
    
        Cancel
        取消
    
    
        Missing helper program: 
        缺少辅助程序:
    
    
        Can't turn doc into internal representation for 
        无法为此文件将文档转换成内部表示方式:
    
    
        Creating preview text
        正在创建预览文本
    
    
        Loading preview text into editor
        正在将预览文本载入到编辑器中
    
    
        &Search for:
        搜索(&S):
    
    
        &Next
        下一个(&N)
    
    
        &Previous
        上一个(&P)
    
    
        Clear
        清空
    
    
        Match &Case
        匹配大小写(&C)
    
    
        Cannot create temporary directory: 
        无法创建临时目录:
    
    
        Error while loading file
        文件载入出错
    


    PreviewTextEdit
    
        Show fields
        显示字段
    
    
        Show main text
        显示主文本
    
    
        Print
        打印
    
    
        Print Current Preview
        打印当前预览文本
    
    
        Show image
        显示图片
    
    
        Select All
        全选
    
    
        Copy
        复制
    
    
        Save document to file
        将文档保存到文件
    
    
        Fold lines
        自动换行
    
    
        Preserve indentation
        保留缩进符
    


    QObject
    
        Global parameters
        全局参数
    
    
        Local parameters
        局部参数
    
    
        <b>Customised subtrees
        <b>自定义的子目录树
    
    
        The list of subdirectories in the indexed hierarchy <br>where some parameters need to be redefined. Default: empty.
        这是已索引的目录树中的一些子目录组成的列表<br>,它们的某些参数需要重定义。默认:空白。
    
    
        <i>The parameters that follow are set either at the top level, if nothing<br>or an empty line is selected in the listbox above, or for the selected subdirectory.<br>You can add or remove directories by clicking the +/- buttons.
        <i>以下的参数,当你在上面的列表中不选中任何条目或者选中一个空行时,<br>就是针对顶级目录起作用的,否则便是对选中的子目录起作用的。<br>你可以点击+/-按钮,以便添加或删除目录。
    
    
        Skipped names
        要略过的文件名
    
    
        These are patterns for file or directory  names which should not be indexed.
        具有这些模式的文件或目录不会被索引。
    
    
        Default character set
        默认字符集
    
    
        This is the character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        这是用来读取那些未标明自身的字符集的文件时所使用的字符集,例如纯文本文件。<br>默认值是空,会使用系统里的自然语言环境参数中的值。
    
    
        Follow symbolic links
        跟踪符号链接
    
    
        Follow symbolic links while indexing. The default is no, to avoid duplicate indexing
        在索引时跟踪符号链接。默认是不跟踪的,以避免重复索引
    
    
        Index all file names
        对所有文件名进行索引
    
    
        Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default true
        对那些无法判断或处理其内容(未知类型或其类型不被支持)的文件的名字进行索引。默认为是
    
    
        Beagle web history
        Beagle网页历史
    
    
        Search parameters
        搜索参数
    
    
        Web history
        
    
    
        Default<br>character set
        
    
    
        Character set used for reading files which do not identify the character set internally, for example pure text files.<br>The default value is empty, and the value from the NLS environnement is used.
        
    
    
        Ignored endings
        
    
    
        These are file name endings for files which will be indexed by name only 
(no MIME type identification attempt, no decompression, no content indexing).
        
    


    QWidget
    
        Create or choose save directory
        
    
    
        Choose exactly one directory
        
    
    
        Could not read directory: 
        
    
    
        Unexpected file name collision, cancelling.
        
    
    
        Cannot extract document: 
        
    
    
        &Preview
        预览(&P)
    
    
        &Open
        打开(&O)
    
    
        Open With
        
    
    
        Run Script
        
    
    
        Copy &File Name
        复制文件名(&F)
    
    
        Copy &URL
        复制路径(&U)
    
    
        &Write to File
        写入文件(&W)
    
    
        Save selection to files
        
    
    
        Preview P&arent document/folder
        预览上一级文档/目录(&a)
    
    
        &Open Parent document/folder
        打开上一级文档/目录(&O)
    
    
        Find &similar documents
        查找类似的文档(&s)
    
    
        Open &Snippets window
        
    
    
        Show subdocuments / attachments
        
    


    RTIToolW
    
        Real time indexing automatic start
        实时索引自动启动
    
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
        <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T21:00:38" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T21:02:43" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css">
	@page {  }
	table { border-collapse:collapse; border-spacing:0; empty-cells:show }
	td, th { vertical-align:top; font-size:12pt;}
	h1, h2, h3, h4, h5, h6 { clear:both }
	ol, ul { margin:0; padding:0;}
	li { list-style: none; margin:0; padding:0;}
	<!-- "li span.odfLiEnd" - IE 7 issue-->
	li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
	span.footnodeNumber { padding-right:1em; }
	span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000;  margin:0; border:0; padding:0;  }
	* { margin:0;}
	.P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; }
	.T1 { font-weight:bold; }
	<!-- ODF styles with no properties representable as CSS -->
	{ }
	</style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> 索引程序可以以守护进程的方式运行,在文件发生变化时便实时更新索引。这样你的索引一直是与文件同步的,但是会占用一定的系统资源。</p></body></html>

    
    
        Start indexing daemon with my desktop session.
        在我的桌面会话启动时便启动索引进程。
    
    
        Also start indexing daemon right now.
        同时此次也立即启动索引进程。
    
    
        Replacing: 
        正在替换:
    
    
        Replacing file
        正在替换文件
    
    
        Can't create: 
        无法创建:
    
    
        Warning
        警告
    
    
        Could not execute recollindex
        无法执行recollindex
    
    
        Deleting: 
        正在删除:
    
    
        Deleting file
        正在删除文件
    
    
        Removing autostart
        正在删除自动启动项
    
    
        Autostart file deleted. Kill current process too ?
        自动启动文件已经删除。也要杀死当前进程吗?
    


    RclMain
    
        (no stemming)
        (不进行词根计算)
    
    
        (all languages)
        (对全部语言进行词根计算)
    
    
        error retrieving stemming languages
        提取词根语言时出错
    
    
        Indexing in progress: 
        正在索引:
    
    
        Purge
        删除
    
    
        Stemdb
        Stem数据库
    
    
        Closing
        正在关闭
    
    
        Unknown
        未知
    
    
        Query results
        查询结果
    
    
        Cannot retrieve document info from database
        无法从数据库获取文档信息
    
    
        Warning
        警告
    
    
        Can't create preview window
        无法创建预览窗口
    
    
        This search is not active any more
        这个查询已经不是活跃的了
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeconf file
        针对%1的查看命令[%2]配置出错
请检查mimeconf文件
    
    
        Cannot extract document or create temporary file
        无法提取文档或创建临时文件
    
    
        Executing: [
        正在执行:[
    
    
        About Recoll
        Recoll说明
    
    
        History data
        历史数据
    
    
        Document history
        文档历史
    
    
        Update &Index
        更新索引(&I)
    
    
        Stop &Indexing
        停止索引(&I)
    
    
        All
        全部
    
    
        media
        多媒体文件
    
    
        message
        邮件
    
    
        other
        其它
    
    
        presentation
        演示文档
    
    
        spreadsheet
        电子表格
    
    
        text
        文本文件
    
    
        sorted
        已排序
    
    
        filtered
        已过滤
    
    
        External applications/commands needed and not found for indexing your file types:


        需要用来辅助对你的文件进行索引,却又找不到的外部程序/命令:


    
    
        No helpers found missing
        目前不缺少任何辅助程序
    
    
        Missing helper programs
        未找到的辅助程序
    
    
        Document category filter
        文档分类过滤器
    
    
        No external viewer configured for mime type [
        针对此种文件类型没有配置外部查看器[
    
    
        The viewer specified in mimeview for %1: %2 is not found.
Do you want to start the  preferences dialog ?
        没有找到mimeview中为%1: %2配置的查看器。
是否要打开选项对话框?
    
    
        Can't access file: 
        无法访问文件:
    
    
        Can't uncompress file: 
        无法解压缩此文件:
    
    
        Save file
        保存文件
    
    
        Result count (est.)
        结果数(估计值)
    
    
        Query details
        查询语句细节
    
    
        Could not open external index. Db not open. Check external indexes list.
        无法打开外部索引。数据库未打开。请检查外部索引列表。
    
    
        No results found
        未找到结果
    
    
        None
        
    
    
        Updating
        正在更新
    
    
        Done
        已完成
    
    
        Monitor
        监视器
    
    
        Indexing failed
        索引失败
    
    
        The current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it alone
        当前索引进程不是由此界面启动的。点击确定以杀死它,或者点击取消以让它自由运行
    
    
        Erasing index
        正在删除索引
    
    
        Reset the index and start from scratch ?
        从头重新开始索引吗?
    
    
        Query in progress.<br>Due to limitations of the indexing library,<br>cancelling will exit the program
        查询正在进行中。<br>由于索引库的某些限制,<br>取消的话会导致程序退出
    
    
        Error
        错误
    
    
        Index not open
        索引未打开
    
    
        Index query error
        索引查询出错
    
    
        Content has been indexed for these mime types:
        已经为这些文件类型索引其内容:
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. Click Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.
        此文件的索引已过时。程序拒绝显示错误的条目。请点击确定以更新此文件的索引,等待索引完成之后再查询。或者,取消。
    
    
        Can't update index: indexer running
        无法更新索引:索引程序已在运行
    
    
        Indexed MIME Types
        已索引的文件类型
    
    
        Bad viewer command line for %1: [%2]
Please check the mimeview file
        
    
    
        Viewer command line for %1 specifies both file and parent file value: unsupported
        
    
    
        Cannot find parent document
        
    
    
        Indexing did not run yet
        
    
    
        External applications/commands needed for your file types and not found, as stored by the last indexing pass in 
        
    
    
        Sub-documents and attachments
        
    
    
        Document filter
        
    
    
        Index not up to date for this file. Refusing to risk showing the wrong entry. 
        
    
    
        Click Ok to update the index for this file, then you will need to re-run the query when indexing is done. 
        
    
    
        The indexer is running so things should improve when it's done. 
        
    
    
        The document belongs to an external indexwhich I can't update. 
        
    
    
        Click Cancel to return to the list. Click Ignore to show the preview anyway. 
        
    
    
        Duplicate documents
        
    
    
        These Urls ( | ipath) share the same content:
        
    
    
        Bad desktop app spec for %1: [%2]
Please check the desktop file
        
    
    
        Indexing interrupted
        
    


    RclMainBase
    
        Recoll
        Recoll
    
    
        Search tools
        搜索工具
    
    
        Result list
        结果列表
    
    
        &File
        文件(&F)
    
    
        &Tools
        工具(&T)
    
    
        &Preferences
        选项(&P)
    
    
        &Help
        帮助(&H)
    
    
        E&xit
        退出(&x)
    
    
        Ctrl+Q
        Ctrl+Q
    
    
        Update &index
        更新索引(&i)
    
    
        &Erase document history
        删除文档历史(&E)
    
    
        &About Recoll
        Recoll说明(&A)
    
    
        &User manual
        用户手册(&U)
    
    
        Document &History
        文档历史(&H)
    
    
        Document  History
        文档历史
    
    
        &Advanced Search
        高端搜索(&A)
    
    
        Advanced/complex  Search
        高端/复杂搜索
    
    
        &Sort parameters
        排序参数(&S)
    
    
        Sort parameters
        排序参数
    
    
        Term &explorer
        词语探索器(&e)
    
    
        Term explorer tool
        词语探索器
    
    
        Next page
        下一页
    
    
        Next page of results
        下一页结果
    
    
        First page
        第一页
    
    
        Go to first page of results
        跳转到结果的第一页
    
    
        Previous page
        上一页
    
    
        Previous page of results
        上一页结果
    
    
        &Query configuration
        查询配置(&Q)
    
    
        External index dialog
        外部索引对话框
    
    
        &Indexing configuration
        索引配置(&I)
    
    
        All
        全部
    
    
        &Show missing helpers
        显示缺少的辅助程序列表(&S)
    
    
        PgDown
        向下翻页
    
    
        PgUp
        向上翻页
    
    
        &Full Screen
        全屏(&F)
    
    
        F11
        F11
    
    
        Full Screen
        全屏
    
    
        &Erase search history
        删除搜索历史(&E)
    
    
        sortByDateAsc
        按日期升序排列
    
    
        Sort by dates from oldest to newest
        按日期排列,最旧的在前面
    
    
        sortByDateDesc
        按日期降序排列
    
    
        Sort by dates from newest to oldest
        按日期排列,最新的在前面
    
    
        Show Query Details
        显示查询语句细节
    
    
        Show results as table
        以表格的形式显示结果
    
    
        &Rebuild index
        重新构造索引(&R)
    
    
        &Show indexed types
        显示已索引的文件类型(&S)
    
    
        Shift+PgUp
        Shift+向上翻页
    
    
        &Indexing schedule
        定时索引(&I)
    
    
        E&xternal index dialog
        外部索引对话框(&x)
    
    
        &Index configuration
        
    
    
        &GUI configuration
        
    
    
        &Results
        
    
    
        Sort by date, oldest first
        
    
    
        Sort by date, newest first
        
    
    
        Show as table
        
    
    
        Show results in a spreadsheet-like table
        
    
    
        Save as CSV (spreadsheet) file
        
    
    
        Saves the result into a file which you can load in a spreadsheet
        
    
    
        Next Page
        
    
    
        Previous Page
        
    
    
        First Page
        
    
    
        Query Fragments
        
    
    
            With failed files retrying
        
    
    
        Next update will retry previously failed files
        
    


    RclTrayIcon
    
        Restore
        
    
    
        Quit
        
    


    RecollModel
    
        Abstract
        摘要
    
    
        Author
        作者
    
    
        Document size
        文档尺寸
    
    
        Document date
        文档日期
    
    
        File size
        文件尺寸
    
    
        File name
        文件名
    
    
        File date
        文件日期
    
    
        Keywords
        关键词
    
    
        Original character set
        原字符集
    
    
        Relevancy rating
        相关度
    
    
        Title
        标题
    
    
        URL
        路径
    
    
        Mtime
        修改时间
    
    
        Date
        日期
    
    
        Date and time
        日期及时间
    
    
        Ipath
        内部路径
    
    
        MIME type
        文件类型
    


    ResList
    
        Result list
        结果列表
    
    
        (show query)
        (显示查询语句细节)
    
    
        &Preview
        预览(&P)
    
    
        Copy &File Name
        复制文件名(&F)
    
    
        Copy &URL
        复制路径(&U)
    
    
        Find &similar documents
        查找类似的文档(&s)
    
    
        Document history
        文档历史
    
    
        <p><b>No results found</b><br>
        <p><b>未找到结果</b><br>
    
    
        Previous
        上一页
    
    
        Next
        下一页
    
    
        Unavailable document
        无法访问文档
    
    
        Preview
        预览
    
    
        Open
        打开
    
    
        <p><i>Alternate spellings (accents suppressed): </i>
        <p><i>其它拼写形式(忽视口音):</i>
    
    
        &Write to File
        写入文件(&W)
    
    
        Preview P&arent document/folder
        预览上一级文档/目录(&a)
    
    
        &Open Parent document/folder
        打开上一级文档/目录(&O)
    
    
        &Open
        打开(&O)
    
    
        Documents
        
    
    
        out of at least
        个文档,最少共有
    
    
        for
        个文档,查询条件:
    
    
        <p><i>Alternate spellings: </i>
        
    
    
        Result count (est.)
        结果数(估计值)
    
    
        Query details
        查询语句细节
    
    
        Snippets
        
    


    ResTable
    
        &Reset sort
        重置排序条件(&R)
    
    
        &Delete column
        删除此列(&D)
    
    
        Save table to CSV file
        将表格保存成CSV文件
    
    
        Can't open/create file: 
        无法打开/创建文件:
    
    
        &Preview
        预览(&P)
    
    
        &Open
        打开(&O)
    
    
        Copy &File Name
        复制文件名(&F)
    
    
        Copy &URL
        复制路径(&U)
    
    
        &Write to File
        写入文件(&W)
    
    
        Find &similar documents
        查找类似的文档(&s)
    
    
        Preview P&arent document/folder
        预览上一级文档/目录(&a)
    
    
        &Open Parent document/folder
        打开上一级文档/目录(&O)
    
    
        &Save as CSV
        保存为CSV(&S)
    
    
        Add "%1" column
        添加"%1"列
    


    ResTableDetailArea
    
        &Preview
        预览(&P)
    
    
        &Open
        打开(&O)
    
    
        Copy &File Name
        复制文件名(&F)
    
    
        Copy &URL
        复制路径(&U)
    
    
        &Write to File
        写入文件(&W)
    
    
        Find &similar documents
        查找类似的文档(&s)
    
    
        Preview P&arent document/folder
        预览上一级文档/目录(&a)
    
    
        &Open Parent document/folder
        打开上一级文档/目录(&O)
    


    ResultPopup
    
        &Preview
        预览(&P)
    
    
        &Open
        打开(&O)
    
    
        Copy &File Name
        复制文件名(&F)
    
    
        Copy &URL
        复制路径(&U)
    
    
        &Write to File
        写入文件(&W)
    
    
        Preview P&arent document/folder
        预览上一级文档/目录(&a)
    
    
        &Open Parent document/folder
        打开上一级文档/目录(&O)
    
    
        Find &similar documents
        查找类似的文档(&s)
    


    SSearch
    
        Any term
        任一词语
    
    
        All terms
        全部词语
    
    
        File name
        文件名
    
    
        Query language
        查询语言
    
    
        Bad query string
        查询语言格式不正确
    
    
        Out of memory
        内存不足
    
    
        Too many completions
        有太多与之相关的补全选项啦
    
    
        Completions
        补全选项
    
    
        Select an item:
        选择一个条目:
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  No actual parentheses allowed.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-23T08:43:25" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-23T09:07:39" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css">
	@page {  }
	table { border-collapse:collapse; border-spacing:0; empty-cells:show }
	td, th { vertical-align:top; font-size:12pt;}
	h1, h2, h3, h4, h5, h6 { clear:both }
	ol, ul { margin:0; padding:0;}
	li { list-style: none; margin:0; padding:0;}
	<!-- "li span.odfLiEnd" - IE 7 issue-->
	li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
	span.footnodeNumber { padding-right:1em; }
	span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000;  margin:0; border:0; padding:0;  }
	* { margin:0;}
	.Standard { font-size:12pt; font-family:Nimbus Roman No9 L; writing-mode:page; }
	.T1 { font-style:italic; }
	.T2 { font-style:italic; }
	.T4 { font-weight:bold; }
	<!-- ODF styles with no properties representable as CSS -->
	{ }
	</style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="Standard">输入查询语言表达式。简要说明:<br/><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2</span> : '词语1'和'词语2'同时出现在任意字段中。<br/><span class="T2">字段</span><span class="T1">:</span><span class="T2">词语</span><span class="T1">1</span> : '词语1'出现在字段'字段'中。<br/>标准字段名/同义名:<br/>title/subject/caption、author/from、recipient/to、filename、ext。<br/>伪字段名:dir、mime/format、type/rclcat、date。<br/>日期段的两个示例:2009-03-01/2009-05-20 2009-03-01/P2M。<br/><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2 OR </span><span class="T2">词语</span><span class="T1">3</span> : 词语1 <span class="T4">与</span> (词语2 <span class="T4">或</span> 词语3)。<br/>不允许用真正的括号来表示逻辑关系。<br/><span class="T1">"</span><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2"</span> : 词组(必须按原样出现)。可用的修饰词:<br/><span class="T1">"</span><span class="T2">词语</span><span class="T1">1 </span><span class="T2">词语</span><span class="T1">2"p</span> : 以默认距离进行的无序近似搜索。<br/>有疑问时可使用<span class="T4">显示查询语句细节</span>链接来查看查询语句的细节,另外请查看手册(&lt;F1&gt;)以了解更多内容。</p></body></html>

    
    
        Enter file name wildcard expression.
        输入文件名通配符表达式。
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        在此输入要搜索的词语。按Esc 空格来查看针对当前词语的补全选项。
    
    
        Enter query language expression. Cheat sheet:<br>
<i>term1 term2</i> : 'term1' and 'term2' in any field.<br>
<i>field:term1</i> : 'term1' in field 'field'.<br>
 Standard field names/synonyms:<br>
  title/subject/caption, author/from, recipient/to, filename, ext.<br>
 Pseudo-fields: dir, mime/format, type/rclcat, date, size.<br>
 Two date interval exemples: 2009-03-01/2009-05-20  2009-03-01/P2M.<br>
<i>term1 term2 OR term3</i> : term1 AND (term2 OR term3).<br>
  You can use parentheses to make things clearer.<br>
<i>"term1 term2"</i> : phrase (must occur exactly). Possible modifiers:<br>
<i>"term1 term2"p</i> : unordered proximity search with default distance.<br>
Use <b>Show Query</b> link when in doubt about result and see manual (&lt;F1>) for more detail.

        
    


    SSearchBase
    
        SSearchBase
        SSearchBase
    
    
        Clear
        清空
    
    
        Ctrl+S
        Ctrl+S
    
    
        Erase search entry
        删除搜索条目
    
    
        Search
        搜索
    
    
        Start query
        开始查询
    
    
        Enter search terms here. Type ESC SPC for completions of current term.
        在此输入要搜索的词语。按Esc 空格来查看针对当前词语的补全选项。
    
    
        Choose search type.
        选择搜索类型。
    


    SearchClauseW
    
        Select the type of query that will be performed with the words
        选择要对右边的词语进行的查询类型
    
    
        Number of additional words that may be interspersed with the chosen ones
        允许在选中的词语之间出现的额外词语的个数
    
    
        No field
        不限字段
    
    
        Any
        任意
    
    
        All
        全部
    
    
        None
        
    
    
        Phrase
        词组
    
    
        Proximity
        近似
    
    
        File name
        文件名
    


    Snippets
    
        Snippets
        
    
    
        Find:
        
    
    
        Next
        下一页
    
    
        Prev
        
    


    SnippetsW
    
        Search
        搜索
    
    
        <p>Sorry, no exact match was found within limits. Probably the document is very big and the snippets generator got lost in a maze...</p>
        
    


    SpellBase
    
        Term Explorer
        词语探索器
    
    
        &Expand 
        展开(&E)
    
    
        Alt+E
        Alt+E
    
    
        &Close
        关闭(&C)
    
    
        Alt+C
        Alt+C
    
    
        No db info.
        未找到数据库信息。
    
    
        Match
        
    
    
        Case
        
    
    
        Accents
        
    


    SpellW
    
        Wildcards
        通配符
    
    
        Regexp
        正则表达式
    
    
        Stem expansion
        词根扩展
    
    
        Spelling/Phonetic
        拼写/发音检查
    
    
        error retrieving stemming languages
        提取词根语言时出错
    
    
        Aspell init failed. Aspell not installed?
        Aspell初始化失败。是否未安装Aspell?
    
    
        Aspell expansion error. 
        Aspell扩展出错。
    
    
        No expansion found
        未找到扩展
    
    
        Term
        词语
    
    
        Doc. / Tot.
        文档数/总数
    
    
        Index: %1 documents, average length %2 terms
        索引:%1个文档,平均长度为%2个词语
    
    
        Index: %1 documents, average length %2 terms.%3 results
        
    
    
        %1 results
        
    
    
        List was truncated alphabetically, some frequent 
        
    
    
        terms may be missing. Try using a longer root.
        
    
    
        Show index statistics
        
    
    
        Number of documents
        
    
    
        Average terms per document
        
    
    
        Smallest document length
        
    
    
        Longest document length
        
    
    
        Database directory size
        
    
    
        MIME types:
        
    
    
        Item
        
    
    
        Value
        
    


    UIPrefsDialog
    
        error retrieving stemming languages
        提取词根语言时出错
    
    
        The selected directory does not appear to be a Xapian index
        选中的目录不是Xapian索引
    
    
        This is the main/local index!
        这是主要/本地索引!
    
    
        The selected directory is already in the index list
        选中的目录已经在索引列表中
    
    
        Select xapian index directory (ie: /home/buddy/.recoll/xapiandb)
        选择xapian索引目录(例如:/home/buddy/.recoll/xapiandb)
    
    
        Choose
        选择
    
    
        Result list paragraph format (erase all to reset to default)
        
    
    
        Result list header (default is empty)
        
    
    
        Select recoll config directory or xapian index directory (e.g.: /home/me/.recoll or /home/me/.recoll/xapiandb)
        
    
    
        The selected directory looks like a Recoll configuration directory but the configuration could not be read
        
    
    
        At most one index should be selected
        
    
    
        Cant add index with different case/diacritics stripping option
        
    
    
        Default QtWebkit font
        
    


    ViewAction
    
        Changing actions with different current values
        正在针对不同的当前值而改变动作
    
    
        Command
        命令
    
    
        MIME type
        文件类型
    
    
        Desktop Default
        
    
    
        Changing entries with different current values
        
    


    ViewActionBase
    
        Native Viewers
        本地查看器
    
    
        Select one or several file types, then click Change Action to modify the program used to open them
        选中一个或多个文件类型,然后点击“修改动作”来修改用来打开这些文件的程序
    
    
        Change Action
        修改动作
    
    
        Close
        关闭
    
    
        Select one or several mime types then click "Change Action"<br>You can also close this dialog and check "Use desktop preferences"<br>in the main panel to ignore this list and use your desktop defaults.
        选中一个或多个文件类型祟点击“修改动作”<br>或者可以关闭这个对话框,而在主面板中选中“使用桌面默认设置”<br>那样就会无视这个列表而使用桌面的默认设置。
    
    
        Select one or several mime types then use the controls in the bottom frame to change how they are processed.
        
    
    
        Use Desktop preferences by default
        
    
    
        Select one or several file types, then use the controls in the frame below to change how they are processed
        
    
    
        Exception to Desktop preferences
        
    
    
        Action (empty -> recoll default)
        
    
    
        Apply to current selection
        
    
    
        Recoll action:
        
    
    
        current value
        
    
    
        Select same
        
    
    
        <b>New Values:</b>
        
    


    confgui::ConfBeaglePanelW
    
        Steal Beagle indexing queue
        窃取Beagle索引队列
    
    
        Beagle MUST NOT be running. Enables processing the beagle queue to index Firefox web history.<br>(you should also install the Firefox Beagle plugin)
        不可运行Beagle。启用对beagle队列的处理,以索引火狐网页历史。<br>(你还需要安装火狐Beagle插件)
    
    
        Entries will be recycled once the size is reached
        当尺寸达到设定值时,这些条目会被循环使用
    
    
        Web page store directory name
        网页储存目录名
    
    
        The name for a directory where to store the copies of visited web pages.<br>A non-absolute path is taken relative to the configuration directory.
        用来储存复制过来的已访问网页的目录名。<br>如果使用相对路径,则会相对于配置目录的路径进行处理。
    
    
        Max. size for the web store (MB)
        网页存储的最大尺寸(MB)
    
    
        Process the WEB history queue
        
    
    
        Enables indexing Firefox visited pages.<br>(you need also install the Firefox Recoll plugin)
        
    


    confgui::ConfIndexW
    
        Can't write configuration file
        无法写入配置文件
    


    confgui::ConfParamFNW
    
        Choose
        选择
    


    confgui::ConfParamSLW
    
        +
        +
    
    
        -
        -
    


    confgui::ConfSearchPanelW
    
        Automatic diacritics sensitivity
        
    
    
        <p>Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the <i>D</i> modifier to specify diacritics sensitivity.
        
    
    
        Automatic character case sensitivity
        
    
    
        <p>Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the <i>C</i> modifier to specify character-case sensitivity.
        
    
    
        Maximum term expansion count
        
    
    
        <p>Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.
        
    
    
        Maximum Xapian clauses count
        
    
    
        <p>Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.
        
    


    confgui::ConfSubPanelW
    
        Global
        全局
    
    
        Max. compressed file size (KB)
        压缩文件最大尺寸(KB)
    
    
        This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.
        尺寸大于这个值的压缩文件不会被处理。设置成-1以表示不加任何限制,设置成0以表示根本不处理压缩文件。
    
    
        Max. text file size (MB)
        文本文件最大尺寸(MB)
    
    
        This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. 
This is for excluding monster log files from the index.
        尺寸大于这个值的文本文件不会被处理。设置成-1以表示不加限制。
其作用是从索引中排除巨型的记录文件。
    
    
        Text file page size (KB)
        文本文件单页尺寸(KB)
    
    
        If this value is set (not equal to -1), text files will be split in chunks of this size for indexing.
This will help searching very big text  files (ie: log files).
        如果设置咯这个值(不等于-1),则文本文件会被分割成这么大的块,并且进行索引。
这是用来搜索大型文本文件的(例如记录文件)。
    
    
        Max. filter exec. time (S)
        过滤器的最长执行时间(S)
    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loopSet to -1 for no limit.

        外部过滤器的执行时间如果超过这个值,则会被强行中断。在罕见的情况下,某些文档(例如postscript)会导致过滤器陷入死循环。设置成-1以表示不加限制。

    
    
        External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit.

        
    
    
        Only mime types
        
    
    
        An exclusive list of indexed mime types.<br>Nothing else will be indexed. Normally empty and inactive
        
    
    
        Exclude mime types
        
    
    
        Mime types not to be indexed
        
    


    confgui::ConfTopPanelW
    
        Top directories
        顶级目录
    
    
        The list of directories where recursive indexing starts. Default: your home.
        索引从这个列表中的目录开始,递归地进行。默认:你的家目录。
    
    
        Skipped paths
        略过的路径
    
    
        These are names of directories which indexing will not enter.<br> May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
        索引进程不会进入具有这些名字的目录。<br>可以包含通配符。必须匹配索引进程自身所见到的路径(例如:如果topdirs包含'/home/me',而实际上'/home'是到'/usr/home'的链接,则正确的skippedPath条目应当是'/home/me/tmp*',而不是'/usr/home/me/tmp*')
    
    
        Stemming languages
        词根语言
    
    
        The languages for which stemming expansion<br>dictionaries will be built.
        将会针对这些语言<br>构造词根扩展词典。
    
    
        Log file name
        记录文件名
    
    
        The file where the messages will be written.<br>Use 'stderr' for terminal output
        程序输出的消息会被保存到这个文件。<br>使用'stderr'以表示将消息输出到终端
    
    
        Log verbosity level
        记录的话痨级别
    
    
        This value adjusts the amount of messages,<br>from only errors to a lot of debugging data.
        这个值调整的是输出的消息的数量,<br>其级别从仅输出报错信息到输出一大堆调试信息。
    
    
        Index flush megabytes interval
        刷新索引的间隔,兆字节
    
    
        This value adjust the amount of data which is indexed between flushes to disk.<br>This helps control the indexer memory usage. Default 10MB 
        这个值调整的是,当积累咯多少索引数据时,才将数据刷新到硬盘上去。<br>用来控制索引进程的内存占用情况。默认为10MB
    
    
        Max disk occupation (%)
        最大硬盘占用率(%)
    
    
        This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).<br>0 means no limit (this is the default).
        当硬盘的占用率达到这个数时,索引会失败并且停止(以避免塞满你的硬盘)。<br>设为0则表示不加限制(这是默认值)。
    
    
        No aspell usage
        不使用aspell
    
    
        Aspell language
        Aspell语言
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works.To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        aspell词典的语言。表示方式是'en'或'fr'……<br>如果不设置这个值,则会使用系统环境中的自然语言设置信息,而那个通常是正确的。要想查看你的系统中安装咯哪些语言的话,就执行'aspell config',再在'data-dir'目录中找.dat文件。
    
    
        Database directory name
        数据库目录名
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the  configuration directory. The default is 'xapiandb'.
        用来储存索引数据的目录的名字<br>如果使用相对路径,则路径会相对于配置目录进行计算。默认值是'xapiandb'。
    
    
        Use system's 'file' command
        使用系统里的'file'命令
    
    
        Use the system's 'file' command if internal<br>mime type identification fails.
        当内部的文件类型识别功能失效时<br>使用系统里的'file'命令。
    
    
        Disables use of aspell to generate spelling approximation in the term explorer tool.<br> Useful if aspell is absent or does not work. 
        禁止在词语探索器中使用aspell来生成拼写相近的词语。<br>在没有安装aspell或者它工作不正常时使用这个选项。
    
    
        The language for the aspell dictionary. This should look like 'en' or 'fr' ...<br>If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. 
        
    
    
        The name for a directory where to store the index<br>A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
        
    
    
        Unac exceptions
        
    
    
        <p>These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.
        
    


    uiPrefsDialogBase
    
        User preferences
        用户选项
    
    
        User interface
        用户界面
    
    
        Number of entries in a result page
        一个结果页面中显示的结果条数
    
    
        If checked, results with the same content under different names will only be shown once.
        如果选中这个,则拥有相同文件内容的不同文件名只会显示一个。
    
    
        Hide duplicate results.
        隐藏重复结果。
    
    
        Highlight color for query terms
        查询词语的高亮颜色
    
    
        Result list font
        结果列表字体
    
    
        Opens a dialog to select the result list font
        打开一个对话框,以选择用于结果列表的字体
    
    
        Helvetica-10
        文泉驿微米黑-12
    
    
        Resets the result list font to the system default
        将结果列表中的字体重设为系统默认值
    
    
        Reset
        重置
    
    
        Texts over this size will not be highlighted in preview (too slow).
        超过这个长度的文本不会在预览窗口里高亮显示(太慢)。
    
    
        Maximum text size highlighted for preview (megabytes)
        在预览中对其进行高亮显示的最大文本尺寸(兆字节)
    
    
        Use desktop preferences to choose document editor.
        使用桌面系统的设置来选择文档编辑器。
    
    
        Choose editor applications
        选择编辑器程序
    
    
        Display category filter as toolbar instead of button panel (needs restart).
        将文件类型过滤器显示成工具条,而不是按钮面板(需要重启程序)。
    
    
        Auto-start simple search on whitespace entry.
        输入空格时自动开始进行简单搜索。
    
    
        Start with advanced search dialog open.
        启动时打开高端搜索对话框。
    
    
        Remember sort activation state.
        记住排序状态。
    
    
        Prefer Html to plain text for preview.
        预览中优先使用Html。
    
    
        Search parameters
        搜索参数
    
    
        Stemming language
        词根语言
    
    
        A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.
        对[滚 石] (2个词语)的搜索会变成[滚 or 石 or (滚 2个词语 石)]。
对于那些搜索词语在其中按照原样出现的结果,其优先级会高一些。
    
    
        Automatically add phrase to simple searches
        自动将词组添加到简单搜索中
    
    
        Do we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.
        是否要使用查询词语周围的上下文来构造结果列表条目中的摘要?
对于大的文档可能会很慢。
    
    
        Dynamically build abstracts
        动态构造摘要
    
    
        Do we synthetize an abstract even if the document seemed to have one?
        即使文档本身拥有一个摘要,我们仍然自行合成摘要信息?
    
    
        Replace abstracts from documents
        取代文档中自带的摘要
    
    
        Synthetic abstract size (characters)
        合成摘要长度(字符个数)
    
    
        Synthetic abstract context words
        合成摘要上下文
    
    
        The words in the list will be automatically turned to ext:xxx clauses in the query language entry.
        这个列表中的词语会在查询语言输入框里自动变成ext:xxx语句。
    
    
        Query language magic file name suffixes.
        查询语言神奇文件名后缀。
    
    
        Enable
        启用
    
    
        External Indexes
        外部索引
    
    
        Toggle selected
        切换选中项
    
    
        Activate All
        全部激活
    
    
        Deactivate All
        全部禁用
    
    
        Remove from list. This has no effect on the disk index.
        从列表中删除。这不会对硬盘上的索引造成损害。
    
    
        Remove selected
        删除选中项
    
    
        Click to add another index directory to the list
        点击这里,以将另一个索引目录添加到列表中
    
    
        Add index
        添加索引
    
    
        Apply changes
        使改变生效
    
    
        &OK
        确定(&O)
    
    
        Discard changes
        放弃这些改变
    
    
        &Cancel
        取消(&C)
    
    
        Abstract snippet separator
        摘要中的片段的分隔符
    
    
        Style sheet
        样式单
    
    
        Opens a dialog to select the style sheet file
        打开一个对话框,以选择样式单文件
    
    
        Choose
        选择
    
    
        Resets the style sheet to default
        将样式单重置为默认值
    
    
        Lines in PRE text are not folded. Using BR loses some indentation.
        PRE中的文字不会换行。使用BR的话会使一些缩进失效。
    
    
        Use <PRE> tags instead of <BR>to display plain text as html in preview.
        在将纯文本显示成html预览的时候,使用<PRE>标签,而不是<BR>标签。
    
    
        Result List
        结果列表
    
    
        Edit result paragraph format string
        编辑结果段落的格式字符串
    
    
        Edit result page html header insert
        编辑结果页面的html头部插入项
    
    
        Date format (strftime(3))
        日期格式(strftime(3))
    
    
        Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). 
        这是一个频率阈值,超过这个值的话,我们就不会把词语放到自动词组中。
高频词语是词组中性能问题的主要来源。
略过的词语会增加词组的空缺值,因此会降低自动词组功能的效率。
默认值是2(百分比)。
    
    
        Autophrase term frequency threshold percentage
        自动词组频率阈值百分比
    
    
        Plain text to HTML line style
        
    
    
        Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.
        
    
    
        <BR>
        
    
    
        <PRE>
        
    
    
        <PRE> + wrap
        
    
    
        Disable Qt autocompletion in search entry.
        
    
    
        Search as you type.
        
    
    
        Paths translations
        
    
    
        Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.
        
    
    
        Snippets window CSS file
        
    
    
        Opens a dialog to select the Snippets window CSS style sheet file
        
    
    
        Resets the Snippets window style
        
    
    
        Decide if document filters are shown as radio buttons, toolbar combobox, or menu.
        
    
    
        Document filter choice style:
        
    
    
        Buttons Panel
        
    
    
        Toolbar Combobox
        
    
    
        Menu
        
    
    
        Show system tray icon.
        
    
    
        Close to tray instead of exiting.
        
    


recoll-1.21.5/qtgui/i18n/recoll_de.qm0000644000175000017500000026775212602163537016611 0ustar  dockesdockes.cvTDo2NXMLX5`^-h8clt!npwwI~Hܷv8kvLcxCpxͺ	V
LASI؅*
vp#vƺvww5w5͐w5wU}.ֳ6f3uͼuMkggl
׸~w;U7XUmSe_y!DWN&B`.Nyk7-=dW?dVG$JUYJUYxY][uo?_nڐ[uDʷ3ʗfʗO^HL>2JxJgC~AM%AB e<.hrd;[_<:LNBe2*vh*(Pb$"3,ZQI9Ikniߤff]f;(,9TW7Wgy%4y%D΄::	#D]X|W3̔
iǗi\
-Zzػ-5)TVkB9[BSkoӁr?)Ur|k}T,G<"YtՓASkâ1
R׾gutǢ}I^Y~C5>fZ`M;$"	7:1UKXBp
h8u9R+v2mT#oBkrK$	%En(74c^[aXanDe!ޯw)ӵ1C9!v#+[7I^S<~FW#ҏFN@H:"|_guOqap$f9|N'w}ϗWnå8C4}lÓtÓtfȍɆt_$]88#  #!3g,y:uQsGXJnQt}}tT;Eb[]0%Uc@tiƊ2c
A䴥Y:?m=_	H	-(8	9Zyl	;30	D	K	]#	cC	kp?	lMg	]	~	qDُ		J	?	9R	ü>R	3l	qS	:v
*Nn?
:^
c

*R6:
+<^
6
>Vp
G.~N
`Pq
`
aE
cE
d8
yl
I3

VT
C~4

G
Oԅ
	ye4THGj,x36=!T"Kj©T|chj[t9),oΣr~"ٷK۷;f?J	Vd
'И^+bC/9ɝCL*P֙RVT#yV\iCT]`Fhșv{lR#!Y!YW.[iZ7~INe
m
'RO
-?
84
F3
OEN
]:
]W
mCI
u0
y
y~
3
ȩ=
u(
P
Pq
5dN

3
7c
;
Ւ7
Hg
Q5
£qHA%n/.8bݾ9y<\< Q~SdW"|"Y~s[s\5
e3	g3Lp~c /F>!7Jcmc	U|x|Y#'g
loLi`1alle AusdrckeAll clauses	AdvSearch(irgendeinen Ausdruck
Any clause	AdvSearch`Ungltiger Multiplikator-Suffix im Gren-Filter$Bad multiplier suffix in size filter	AdvSearchMedienmedia	AdvSearchNachrichtmessage	AdvSearchAndereother	AdvSearchPrsentationpresentation	AdvSearchTabellespreadsheet	AdvSearchTexttext	AdvSearch<---- Alle
<----- All
AdvSearchBase<---- Auswahl
<----- Sel
AdvSearchBase&Ausdruck hinzufgen
Add clause
AdvSearchBase Erweiterte SucheAdvanced search
AdvSearchBaseAlle ---->	All ---->
AdvSearchBase`Alle nicht-leeren Felder rechts werden mit UND ("alle Ausdrcke") oder ODER ("irgendeinen Ausdruck") verknpft. <br>Felder des Typs "Irgendeines", "Alle" und "Keines" knnen eine Mischung aus Wrtern und in Anfhrungszeichen eingeschlossenen Phrasen enthalten. <br>Nicht gefllte Felder werden ignoriert.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. 
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBaseDurchsuchenBrowse AdvSearchBaseNach Kategorien By categories AdvSearchBase`Auswhlen, um Filterung nach Datum einzuschalten'Check this to enable filtering on dates AdvSearchBasejAuswhlen, um Filterung nach Dateitypen einzuschalten,Check this to enable filtering on file types AdvSearchBasejAuswhlen, um Filterung nach Dateigre einzuschalten'Check this to enable filtering on sizes AdvSearchBasevAuswhlen, um Dateikategorien statt Mime-Typen zu verwenden;Check this to use file categories instead of raw mime types AdvSearchBaseSchlieenClose AdvSearchBase$Ausdruck entfernen Delete clause AdvSearchBasebGeben Sie das Basisverzeichnis fr die Suche ein.Enter top directory for search AdvSearchBaseFilternFilter AdvSearchBase$Nach Datum filtern Filter dates AdvSearchBase$Nach Gre filtern Filter sizes AdvSearchBase FindenFind AdvSearchBasevonFrom AdvSearchBase8Nicht durchsuchte DateitypenIgnored file types AdvSearchBaseInvertierenInvert AdvSearchBaseMax. Gre: Max. Size AdvSearchBaseMaximale Gre. Sie knnen k/K, m/M, g/G als Multiplikatoren verwenden.4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBaseMin. Gre: Min. Size AdvSearchBaseMinimale Gre. Sie knnen k/K, m/M, g/G als Multiplikatoren verwenden.4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase.Dateitypen einschrnkenRestrict file types AdvSearchBaseErgebnisse auf Dateien in folgendem Verzeichnisbaum einschrnken:%Restrict results to files in subtree: AdvSearchBase,Als Standard speichernSave as default AdvSearchBasedSuche nach Dokumenten, <br>die Folgendes erfllen:'Search for
documents
satisfying: AdvSearchBase,Durchsuchte DateitypenSearched file types AdvSearchBaseAuswahl ----> Sel -----> AdvSearchBaseSuche starten Start Search AdvSearchBasebisTo AdvSearchBase<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Zeitplan fr periodische Indizierung (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Jedes Feld kann eine Wildcard (*), eine einzelne Zahl, eine mit Kommata getrennte Liste (1,3,5) oder einen Bereich (1-7) enthalten. Die Felder werden <span style=" font-style:italic;">so wie sie sind</span> in der crontab-Datei verwendet und die gesamte crontab Syntax kann verwendet werden, siehe crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />Beispielsweise startet die Eingabe <span style=" font-family:'Courier New,courier';">*</span> in <span style=" font-style:italic;">Wochentage, </span><span style=" font-family:'Courier New,courier';">12,19</span> in <span style=" font-style:italic;">Stunden</span> und <span style=" font-family:'Courier New,courier';">15</span> in <span style=" font-style:italic;">Minuten</span> recollindex jeden Tag um 12:15 Uhr und 19:15 Uhr.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ein Zeitplan mit sehr hufigen Aktivierungen ist wahrscheinlich weniger effizient als Echtzeit-Indizierung.</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolW<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Whlen Sie <span style=" font-style:italic;">Deaktivieren</span>, um die periodische Indizierung auszuschalten, <span style=" font-style:italic;">Aktivieren</span>, um sie einzuschalten, <span style=" font-style:italic;">Abbruch</span>, um nichts zu verndern.</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolWCron-Zeitplan Cron Dialog CronToolWPWochentage (* oder 0-7, 0/7 ist Sonntag))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWDeaktivierenDisable CronToolWAktivierenEnable CronToolWFehler beim Erstellen des cron Eintrags. Falsche Syntax in Feldern?3Error installing cron entry. Bad syntax in fields ? CronToolW*Stunden (* oder 0-23)Hours (* or 0-23) CronToolWOffenbar gibt es manuelle Eintrge fr recollindex, crontab kann nicht angepasst werden.PIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWMinuten (0-59)Minutes (0-59) CronToolW DialogDialog EditDialog(Konfigurationsfehler Config error EditTransLokaler Pfad Local path EditTransOriginalpfad Original path EditTransQuellpfad Source path EditTransHinzufgenAdd EditTransBaseAbbrechenCancel EditTransBaseEntfernenDelete EditTransBase PfadumwandlungenPath Translations EditTransBaseSpeichernSave EditTransBaseWhlen Sie einen oder mehrere Dateitypen aus. Nutzen Sie dann die Bedienelemente unten, um einzustellen wie sie verarbeitet werden.kSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBase4Setze Pfadumwandlungen frSetting path translations for  EditTransBase R<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Es existiert noch kein Index fr diese Konfiguration.</span><br /><br />Wenn Sie nur Ihr Home-Verzeichnis mit sinnvollen Voreinstellungen indizieren wollen, whlen Sie die Schaltflche <span style=" font-style:italic;">Indizierung jetzt starten</span>. Sie knnen die Details spter anpassen.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Wenn Sie das Verhalten genauer festlegen wollen, verwenden Sie die folgenden Verknpfungen, um Einstellungen und Zeitplan fr die Indizierung anzupassen.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Diese Werkzeuge knnen Sie spter im Men <span style=" font-style:italic;">Einstellungen</span> erreichen.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialogHEinrichten fr die erste IndizierungFirst indexing setupFirstIdxDialog:Einstellungen fr IndizierungIndexing configurationFirstIdxDialog0Zeitplan fr IndizierungIndexing scheduleFirstIdxDialog2Indizierung jetzt startenStart indexing nowFirstIdxDialog<Hier knnen Sie die zu indizierenden Verzeichnisse und andere Einstellungen (wie auszuschlieende Dateipfade oder -namen, Standard-Zeichensatz usw.) anpassen.This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialogTHier knnen Sie zwischen regelmiger Indizierung und Echtzeit-Indizierung whlen und einen automatischen Zeitplan fr die regelmige Indizierung einrichten (mit cron). This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Indizierung kann stndig laufen und Datein indizieren sobald sie verndert werden, oder aber nur zu bestimmten Zeitpunkten ablaufen.</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Im Handbuch finden Sie Informationen, anhand derer Sie sich fr einen der Anstze entscheiden knnen (drcken Sie F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Dieses Werkzeug hilft Ihnen, einen Zeitplan fr periodische Indizierungs-Lufe einzurichten oder die Echtzeit-Indizierung zu starten, wenn Sie sich anmelden (oder beides, was aber selten sinnvoll sein drfte). </p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedWCron-ZeitplanCron scheduling IdxSchedWEntscheiden Sie, ob die Echtzeit-Indizierung beim Anmelden gestartet wird (nur fr den Standard-Index).ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedWZEinrichtung des Zeitplans fr die IndizierungIndex scheduling setup IdxSchedW<Start der Echtzeit-IndizierungReal time indexing start up IdxSchedWMit diesem Werkzeug knnen Sie festlegen, zu welchen Zeiten die Indizierung laufen soll, und einen crontab Eintrag anlegen._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedW DialogDialog ListDialogGruppenBoxGroupBox ListDialog"history" Datei ist beschdigt oder nicht les-/schreibbar, bitte berprfen oder entfernen Sie sie: K"history" file is damaged or un(read)writeable, please check or remove it: MainLKein Datenbankverzeichnis konfiguriert No db directory in configurationMain&Nchstes&NextPreview&Vorheriges &PreviousPreview&Suche nach: &Search for:Previewjberfhrung in interne Darstellung nicht mglich fr 0Can't turn doc into internal representation for PreviewAbbrechenCancelPreview LeerenClearPreviewTab schlieen Close TabPreview(Erzeuge VorschautextCreating preview textPreview6Fehler beim Lesen der DateiError while loading filePreview>Lade Vorschautext in den Editor Loading preview text into editorPreview>Gro-/Kleinschreibung &beachten Match &CasePreview2Fehlendes Hilfsprogramm: Missing helper program: PreviewKopierenCopyPreviewTextEdit Zeilen umbrechen Fold linesPreviewTextEdit&Einrckung erhaltenPreserve indentationPreviewTextEditDruckenPrintPreviewTextEdit2Aktuelle Vorschau druckenPrint Current PreviewPreviewTextEdit2Dokument in Datei sichernSave document to filePreviewTextEditAlles auswhlen Select AllPreviewTextEditFelder zeigen Show fieldsPreviewTextEditZeige Bild Show imagePreviewTextEdit&Vorschautext zeigenShow main textPreviewTextEditH<b>Angepasste<br> UnterverzeichnisseCustomised subtreesQObject<i>Die folgenden Parameter werden entweder global gesetzt (wenn nichts oder eine leere<br> Zeile in der Liste oben ausgewhlt ist) oder fr das ausgewhlte Unterverzeichnis.<br> Sie knnen Verzeichnisse durch Anklicken von +/- hinzufgen oder entfernen.<br>The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject0Folge symbolischen LinksFollow symbolic linksQObjectFolge symbolischen Links bei der Indizierung. Der Standardwert ist "Nein", um doppelte Indizierung zu vermeiden.TFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject"Globale ParameterGlobal parametersQObject2Indiziere alle DateinamenIndex all file namesQObject:Indiziere die Namen von Dateien, deren Inhalt nicht erkannt oder verarbeitet werden kann (kein oder nicht untersttzter Mime-Typ). Der Standardwert ist "Ja".}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject Lokale ParameterLocal parametersQObjectSuchparameterSearch parametersQObject&Auszulassende Namen Skipped namesQObjectDie Liste der Unterverzeichnisse in der indizierten Hierarchie, in denen einige Parameter anders gesetzt werden mssen. Voreinstellung: leer.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectDies sind Muster fr Dateien oder Verzeichnisse, die nicht indiziert werden sollen.LThese are patterns for file or directory names which should not be indexed.QObjectWeb-Chronik Web historyQObject&ffnen&OpenQWidgetX&ffnen des bergeordneten Dokuments/Ordners&Open Parent document/folderQWidget&Vorschau&PreviewQWidget$&Schreibe in Datei&Write to FileQWidget(&Dateinamen kopierenCopy &File NameQWidget&URL kopieren Copy &URLQWidget4&hnliche Dokumente findenFind &similar documentsQWidget0ffne &Schnipsel-FensterOpen &Snippets windowQWidget\Vorschau des &bergeordneten Dokuments/OrdnersPreview P&arent document/folderQWidget4Auswahl in Dateien sichernSave selection to filesQWidgetVUntergeordnete Dokumente / Anhnge anzeigenShow subdocuments / attachmentsQWidget<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> Indizierung kann im Hintergrund laufen und den Index in Echtzeit aktualisieren sobald sich Dateien ndern. Sie erhalten so einen Index, der stets aktuell ist, aber die System-Resourcen werden ununterbrochen beansprucht.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></htm.

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWNIndizierungs-Dmon jetzt sofort starten%Also start indexing daemon right now.RTIToolWAutotstart-Datei wurde entfernt. Soll auch der laufende Prozess beendet werden?2Autostart file deleted. Kill current process too ?RTIToolW4Fehler beim Erzeugen von: Can't create: RTIToolWJFehler beim Ausfhren von recollindexCould not execute recollindexRTIToolWLsche Datei Deleting fileRTIToolWLsche:  Deleting: RTIToolWXAutomatischer Start der Echtzeit-Indizierung"Real time indexing automatic startRTIToolW.Autostart wird entferntRemoving autostartRTIToolWErsetze DateiReplacing fileRTIToolWErsetze:  Replacing: RTIToolW\Indizierungs-Dmon mit Desktop-Sitzung starten.Start indexing daemon with my desktop session.RTIToolWWarnungWarningRTIToolW(alle Sprachen)(all languages)RclMain(kein Stemming) (no stemming)RclMainber Recoll About RecollRclMainAlleAllRclMainFehlerhafter Anzeigebefehl fr %1: [%2] berprfen Sie die Datei mimeview.CBad viewer command line for %1: [%2] Please check the mimeview fileRclMain>Fehler beim Zugriff auf Datei: Can't access file: RclMainRFehler beim Erzeugen des VorschaufenstersCan't create preview windowRclMainLFehler beim Dekomprimieren von Datei: Can't uncompress file: RclMainlFehler beim Aktualisieren des Index: Indizierung luft#Can't update index: indexer runningRclMainFehler beim Extrahieren des Dokuments oder beim Erzeugen der temporren Datei0Cannot extract document or create temporary fileRclMainLbergeordnetes Dokument nicht gefundenCannot find parent documentRclMainbKeine Informationen zum Dokument in der Datenbank+Cannot retrieve document info from databaseRclMainSchlieenClosingRclMain^Inhalte mit diesen Mime-Typen wurden indiziert:.Content has been indexed for these mime types:RclMainExterner Index konnte nicht geffnet werden. Datenbank nicht offen. berprfen Sie die Liste der externen Indizes.HCould not open external index. Db not open. Check external indexes list.RclMain$Dokumenten-ChronikDocument historyRclMain FertigDoneRclMain$Doppelte DokumenteDuplicate documentsRclMainLsche Index Erasing indexRclMain FehlerErrorRclMainAusfhren: [ Executing: [RclMain:Externe Anwendungen/Befehle, die zur Indizierung Ihrer Dateitypen gebraucht werden und nicht gefunden wurden - vom letzten Indizierungslauf hinterlegt unter pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMainChronik-Daten History dataRclMain(Index nicht geffnetIndex not openRclMain<Fehler beim Abfragen des IndexIndex query errorRclMain*Indizierte Mime-TypenIndexed MIME TypesRclMain\Indizierung ist noch nicht durchgefhrt wordenIndexing did not run yetRclMain.Indizierung gescheitertIndexing failedRclMain&Indizierung luft: Indexing in progress: RclMain.Fehlende HilfsprogrammeMissing helper programsRclMainberwachenMonitorRclMainrKein externes Anzeigeprogramm konfiguriert fr Mime-Typ [-No external viewer configured for mime type [RclMain<Keine fehlenden HilfsprogrammeNo helpers found missingRclMain2Keine Ergebnisse gefundenNo results foundRclMain KeineNoneRclMainSubernPurgeRclMainSuche luft.<br>Aufgrund von Einschrnkungen der Indizierungs-Bibliothek<br>fhrt ein Abbruch zur Beendigung des Programms.eQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMainSuchergebnisse Query resultsRclMainRIndex zurcksetzen und ganz neu aufbauen?(Reset the index and start from scratch ?RclMain.Anzahl Ergebnisse (ca.)Result count (est.)RclMainDatei sichern Save fileRclMainWortstmmeStemdbRclMain(&Indizierung stoppenStop &IndexingRclMainHUntergeordnete Dokumente und AnhngeSub-documents and attachmentsRclMainHDer laufende Indizierungs-Prozess wurde nicht aus diesem Programm gestartet. Drcken SIe OK, um ihn dennoch zu stoppen oder Abbrechen, um ihn unverndert zu lassen.yThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainDas in mimeview angegebene Anzeigeprogramm fr %1: %2 wurde nicht gefunden. Wollen Sie den Einstellungs-Dialog starten?hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainRDiese URLs ( | ipath) sind inhaltsgleich:-These Urls ( | ipath) share the same content:RclMain@Diese Suche ist nicht mehr aktiv"This search is not active any moreRclMainUnbekanntUnknownRclMain(Index &aktualisieren Update &IndexRclMainAktualisiereUpdatingRclMainAnzeigebefehl fr %1 legt Datei und bergeordnete Datei fest: nicht untersttzt QViewer command line for %1 specifies both file and parent file value: unsupportedRclMainWarnungWarningRclMainNFehler beim Holen der Stemming-Sprachen#error retrieving stemming languagesRclMaingefiltertfilteredRclMain MedienmediaRclMainNachrichtmessageRclMain AndereotherRclMainPrsentation presentationRclMainsortiertsortedRclMainTabelle spreadsheetRclMainTexttextRclMain&ber Recoll &About Recoll RclMainBase"&Erweiterte Suche&Advanced Search RclMainBase4Lsche &Dokumenten-Chronik&Erase document history RclMainBase(Lsche &Such-Chronik&Erase search history RclMainBase &Datei&File RclMainBase&Vollbild &Full Screen RclMainBase$&GUI-Einstellungen&GUI configuration RclMainBase &Hilfe&Help RclMainBase(&Index-Einstellungen&Index configuration RclMainBase2&Zeitplan fr Indizierung&Indexing schedule RclMainBase&Einstellungen &Preferences RclMainBase&Index &neu aufbauen&Rebuild index RclMainBase&Ergebnisse&Results RclMainBase.Zeige indizierte &Typen&Show indexed types RclMainBase<Zeige fehlende &Hilfsprogramme&Show missing helpers RclMainBase"&Sortierparameter&Sort parameters RclMainBase&Werkzeuge&Tools RclMainBase"&Benutzerhandbuch &User manual RclMainBase2Erweiterte/komplexe SucheAdvanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase$Dokumenten-ChronikDocument History RclMainBase&&Dokumenten-ChronikDocument &History RclMainBase&BeendenE&xit RclMainBase6Dialog fr externe &IndizesE&xternal index dialog RclMainBase4Dialog fr externe IndizesExternal index dialog RclMainBaseF11F11 RclMainBaseErste Seite First Page RclMainBaseErste Seite First page RclMainBaseVollbild Full Screen RclMainBase:Gehe zur ersten ErgebnisseiteGo to first page of results RclMainBaseNchste Seite Next Page RclMainBaseNchste Seite Next page RclMainBase*Nchste ErgebnisseiteNext page of results RclMainBase PgDownPgDown RclMainBasePgUpPgUp RclMainBaseVorherige Seite Previous Page RclMainBaseVorherige Seite Previous page RclMainBase.Vorherige ErgebnisseitePrevious page of results RclMainBase RecollRecoll RclMainBase>Tabelle als CSV Datei speichernSave as CSV (spreadsheet) file RclMainBaseSpeichert Resultate als Tabellenkalkulations-kompatible CSV-Datei ab@Saves the result into a file which you can load in a spreadsheet RclMainBaseShift+PgUp Shift+PgUp RclMainBase:Zeige Details zur SuchanfrageShow Query Details RclMainBase(Als Tabelle anzeigen Show as table RclMainBase>Zeigt Ergebnisse als Tabelle an(Show results in a spreadsheet-like table RclMainBaseNNach Datum sortieren (von neu nach alt)Sort by date, newest first RclMainBaseNNach Datum sortieren (von alt nach neu)Sort by date, oldest first RclMainBaseNNach Datum sortieren (von neu nach alt)#Sort by dates from newest to oldest RclMainBaseNNach Datum sortieren (von alt nach neu)#Sort by dates from oldest to newest RclMainBase SortierparameterSort parameters RclMainBase$&Ausdruck-ExplorerTerm &explorer RclMainBase4Ausdruck-Explorer-WerkzeugTerm explorer tool RclMainBase(&Index aktualisieren Update &index RclMainBase AuszugAbstract RecollModel AutorAuthor RecollModel DatumDate RecollModel"Datum und Uhrzeit Date and time RecollModel&Datum des Dokuments Document date RecollModel&Gre des Dokuments Document size RecollModelDatum der Datei File date RecollModelDateiname File name RecollModelGre der Datei File size RecollModelInterner PfadIpath RecollModelSchlagworteKeywords RecollModelMime-Typ MIME type RecollModel$nderungszeitpunktMtime RecollModel4Ursprnglicher ZeichensatzOriginal character set RecollModel$Relevanz-BewertungRelevancy rating RecollModel TitelTitle RecollModelURLURL RecollModel((Suchanfrage zeigen) (show query)ResListN<p><b>Keine Ergebnisse gefunden</b><br>

No results found
ResListv<p><i>Alternative Schreibweisen (Akzente unterdrckt): </i>4

Alternate spellings (accents suppressed): ResListJ<p><i>Alternative Schreibweisen: </i>

Alternate spellings: ResList$Dokumenten-ChronikDocument historyResListDokumente DocumentsResList WeiterNextResList ffnenOpenResListVorschauPreviewResList ZurckPreviousResListSuchdetails Query detailsResList.Anzahl Ergebnisse (ca.)Result count (est.)ResListErgebnisliste Result listResListSchnipselSnippetsResList0Dokument nicht verfgbarUnavailable documentResListfrforResListvon mindestensout of at leastResListSpalte &lschen&Delete columnResTable0Sortierung &zurcksetzen &Reset sortResTable$Als CSV &speichern &Save as CSVResTable,Spalte "%1" hinzufgenAdd "%1" columnResTableNFehler beim ffnen/Erzeugen von Datei: Can't open/create file: ResTable>Tabelle als CSV Datei speichernSave table to CSV fileResTableAlle Ausdrcke All termsSSearch$Irgendein AusdruckAny termSSearch.Fehlerhafte SuchanfrageBad query stringSSearchjGeben Sie einen Wildcard-Ausdruck fr Dateinamen ein.$Enter file name wildcard expression.SSearchSuchbegriffe hier eingeben. Drcken Sie ESC+Leerzeichen fr Vervollstndigungen des aktuellen Begriffs.FEnter search terms here. Type ESC SPC for completions of current term.SSearchDateiname File nameSSearch8Kein Speicher mehr verfgbar Out of memorySSearchSuchspracheQuery languageSSearch8Whlen Sie die Art der SucheChoose search type. SSearchBaseLschenClear SSearchBase Ctrl+SCtrl+S SSearchBaseSuchbegriffe hier eingeben. Drcken Sie ESC+Leerzeichen fr Vervollstndigungen des aktuellen Begriffs.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase&Sucheintrag lschenErase search entry SSearchBaseSSearchBase SSearchBase SSearchBase SuchenSearch SSearchBaseSuche starten Start query SSearchBaseAlleAll SearchClauseWIrgendeinesAny SearchClauseWDateiname File name SearchClauseWKein FeldNo field SearchClauseW KeinesNone SearchClauseWAnzahl der Wrter, die sich zwischen den angegebenen befinden drfenHNumber of additional words that may be interspersed with the chosen ones SearchClauseW PhrasePhrase SearchClauseWNhe Proximity SearchClauseWWhlen Sie die Art der Suche aus, die mit den Wrtern gestartet wird.>Select the type of query that will be performed with the words SearchClauseWFinden:Find:Snippets WeiterNextSnippets ZurckPrevSnippetsSchnipselSnippetsSnippets SuchenSearch SnippetsW&Schlieen&Close SpellBase"&Vervollstndigen&Expand  SpellBase BetonungszeichenAccents SpellBase Alt+SAlt+C SpellBase Alt+VAlt+E SpellBase*Gro-/KleinschreibungCase SpellBaseBeachteMatch SpellBase6Keine Datenbank-Information No db info. SpellBase"Ausdruck-Explorer Term Explorer SpellBase%1 Ergebnisse %1 resultsSpellW>Aspell VervollstndigungsfehlerAspell expansion error. SpellWFehler bei der Initialisierung von Aspell. Ist Aspell nicht installiert?)Aspell init failed. Aspell not installed?SpellWfDurchschnittliche Zahl von Ausdrcken pro DokumentAverage terms per documentSpellW4Gre des DatenbankordnersDatabase directory sizeSpellWDok. / Ges. Doc. / Tot.SpellWIndex: %1 Dokumente mit durchschnittlicher Lnge von %2 Begriffen. %3 Ergebnisse7Index: %1 documents, average length %2 terms.%3 resultsSpellWEintragItemSpellWListe wurde alphabetisch abgeschnitten, einige hufige Begriffe 1List was truncated alphabetically, some frequent SpellW8Maximale Zahl von AusdrckenLongest document lengthSpellWMime-Typen: MIME types:SpellW4Keine Erweiterung gefundenNo expansion foundSpellWDokumentenzahlNumber of documentsSpellW$Regulrer AusdruckRegexpSpellW2Indexstatistiken anzeigenShow index statisticsSpellW8Minimale Zahl von AusdrckenSmallest document lengthSpellWPhonetischSpelling/PhoneticSpellW*Wortstamm-ErweiterungStem expansionSpellWBegriffTermSpellWWertValueSpellWWildcards WildcardsSpellWNFehler beim Holen der Stemming-Sprachen#error retrieving stemming languagesSpellWtknnen fehlen. Versuchen Sie es mit einer lngeren Wurzel..terms may be missing. Try using a longer root.SpellWPBitte whlen Sie maximal einen Index aus$At most one index should be selected UIPrefsDialogIndices mit unterschiedlichen Einstellungen zum Umgang mit Gro/-Kleinschreibung und diakritischen Zeichen knnen nicht hinzugefgt werden>Cant add index with different case/diacritics stripping option UIPrefsDialogAuswhlenChoose UIPrefsDialogXHeader der Ergebnisliste (Standard ist leer)%Result list header (default is empty) UIPrefsDialogFormat fr Ergebnis-Absatz (alles lschen, um auf Standard zurck zu setzen)Neuer Wert</b>New Values:ViewActionBaseJAktion (leer ! Recoll-Voreinstellung) Action (empty -> recoll default)ViewActionBase:Auf aktuelle Auswahl anwendenApply to current selectionViewActionBaseSchlieenCloseViewActionBase`Von Desktopvoreinstellungen abweichende Ausnahme Exception to Desktop preferencesViewActionBase AnzeigeprogrammeNative ViewersViewActionBaseRecoll-Aktion:Recoll action:ViewActionBaseWhlen Sie einen oder mehrere Dateitypen aus. Nutzen Sie dann die Bedienelemente unten, um das Programm zum ffnen anzupassenkSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseWhlen Sie einen oder mehrere MIME-Typen aus und nutzen Sie dann die Bedienelemente unten, um das Programm zum ffnen anzupassen.lSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBase Das Selbe whlen Select sameViewActionBaseXStandardmig Desktopvoreinstellungen nutzen"Use Desktop preferences by defaultViewActionBaseaktueller Wert current valueViewActionBase\Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelW|Eintrge werden wiederverwendet sobald die Gre erreicht ist.1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWXMaximale Gre fr Ablage von Webseiten (MB) Max. size for the web store (MB)confgui::ConfBeaglePanelWWeb-ChronikProcess the WEB history queueconfgui::ConfBeaglePanelWXDer Name eines Verzeichnisses, in dem Kopien der besuchten Webseiten gespeichert werden sollen.<br>Ein nicht-absoluter Pfad ist dabei relativ zum Konfigurationsverzeichnis.The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWHVerzeichnis zur Ablage von WebseitenWeb page store directory nameconfgui::ConfBeaglePanelWZFehler beim Schreiben der KonfigurationsdateiCan't write configuration fileconfgui::ConfIndexWAuswhlenChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW<p> Automatisch die Beachtung von Gro-/Kleinschreibung einschalten, wenn der Eintrag Grobuchstaben enthlt (auer an erster Stelle). Ansonsten mssen Sie dafr die Suchsprache und den <i>C</i> Modifikator verwenden.

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW<p> Automatisch die Beachtung von diakritischen Zeichen einschalten, wenn der Suchbegriff Zeichen mit Akzenten enthlt (nicht in unac_except_trans). Ansonsten mssen Sie dafr die Suchsprache und den <i>D</i> Modifikator verwenden.

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelW<p>Maximale Anzahl von Erweiterungen fr einen einzelnen Ausdruck (z.B. bei der Verwendung von Wildcards). Der Standardwert 10 000 ist vernnftig und verhindert, dass Suchanfragen scheinbar einfrieren, whrend die Liste der Begriffe durchlaufen wird.

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelW<p>Maximale Anzahl von elementaren Ausdrcken, die wir zu einer einzelnen Xapian Abfrage hinzufgen. In manchen Fllen knnen die Ergebnisse von Ausdruck-Erweiterungen sich ausmultiplizieren, und wir wollen bermigen Speicherverbrauch vermeiden. Der Standardwert 100 000 sollte in den meisten Fllen hoch genug sein und zugleich zu typischen derzeitigen Hardware-Ausstattungen passen.5

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWTAutomatisch Gro-/Kleinschreibung beachten$Automatic character case sensitivityconfgui::ConfSearchPanelWRAutomatisch diakritische Zeichen beachten Automatic diacritics sensitivityconfgui::ConfSearchPanelWJMaximale Anzahl von Xapian-AusdrckenMaximum Xapian clauses countconfgui::ConfSearchPanelWTMaximale Anzahl von Ausdruck-ErweiterungenMaximum term expansion countconfgui::ConfSearchPanelWExterne Filter, die lnger als diese Zeit laufen, werden abgebrochen. Das ist fr den seltenen Fall (Postscript), in dem ein Dokument eine unendliche Schleife auslst. Auf -1 setzen, um keine Obergrenze zu haben.External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelW GlobalGlobalconfgui::ConfSubPanelWpWenn dieser Wert gesetzt ist (ungleich -1), werden Textdateien zur Indizierung in Stcke dieser Gre aufgeteilt. Das hilft bei der Suche in sehr groen Textdateien (z.B. Log-Dateien).If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelW<Max. Gre kompr. Dateien (kB)Max. compressed file size (KB)confgui::ConfSubPanelW0Max. Zeit fr Filter (s)Max. filter exec. time (S)confgui::ConfSubPanelW6Max. Gre Textdateien (MB)Max. text file size (MB)confgui::ConfSubPanelW8Seitengre Textdateien (kB)Text file page size (KB)confgui::ConfSubPanelWXDies ist eine Obergrenze; komprimierte Dateien jenseits dieser Gre werden nicht verarbeitet. Auf -1 setzen, um keine Obergrenze zu haben, auf 0, um nie zu dekomprimieren.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelWDies ist eine Obergrenze; Textdateien jenseits dieser Gre werden nicht verarbeitet Auf -1 setzen, um keine Obergrenze zu haben. Dies dient dazu, riesige Log-Dateien vom Index auszuschlieen.This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelWT<p>Dies sind Ausnahmen fr den unac Mechanismus, der standardmig alle diakritischen Zeichen entfernt und sie durch kanonische Entsprechungen ersetzt. Sie knnen (abhngig von Ihrer Sprache) dieses Entfernen von Akzenten fr einige Zeichen bersteuern und zustzliche Ersetzungen angeben, z.B. fr Ligaturen. Bei jedem durch Leerzeichen getrennten Eintrag ist das erste Zeichen das Ausgangszeichen und der Rest die Ersetzung.l

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelW$Sprache fr AspellAspell languageconfgui::ConfTopPanelW>Verzeichnis fr Index-DatenbankDatabase directory nameconfgui::ConfTopPanelWtDeaktiviert die Verwendung von Aspell fr die Erzeugung von Schreibweisen-Nherungen im Ausdruck-Explorer-Werkzeug. <br>Ntzlich, wenn Aspell nicht vorhanden ist oder nicht funktioniert.Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelWBInterval (MB) fr SpeicherleerungIndex flush megabytes intervalconfgui::ConfTopPanelWLog-Datei Log file nameconfgui::ConfTopPanelW0Ausfhrlichkeit des LogsLog verbosity levelconfgui::ConfTopPanelW8Max. Festplattenbelegung (%)Max disk occupation (%)confgui::ConfTopPanelW*Aspell nicht benutzenNo aspell usageconfgui::ConfTopPanelW&Auszulassende Pfade Skipped pathsconfgui::ConfTopPanelW"Stemming-SprachenStemming languagesconfgui::ConfTopPanelWDie Datei, in die Ausgaben geschrieben werden.<br>Fr Ausgaben auf dem Terminal 'stderr' benutzen.PThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWDie Sprache des Aspell-Wrterbuchs (z.B. 'en' oder 'de' ...)<br>Wenn dieser Wert nicht gesetzt ist, wird die NLS-Umgebung verwendet, um die Sprache festzustellen, was im Allgemeinen funktioniert. Um eine Vorstellung zu bekommen, was auf Ihrem System installiert ist, geben Sie 'aspell config' ein und schauen Sie nach .dat Dateien im Verzeichnis 'data-dir'.3The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelWDie Sprachen, fr die Worstammerweiterungsverzeichnisse erstellt werden.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelWDie Liste der Verzeichnisse, in denen die rekursive Indizierung startet. Standard: Home-Verzeichnis.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWdDer Name eines Verzeichnisses, in dem der Index gespeichert werden soll.<br>Ein nicht-absoluter Pfad ist dabei relativ zum Konfigurationsverzeichnis. Der Standard ist 'xapiandb'.The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelWDie Namen der Verzeichnisse, die nicht indiziert werden.<br>Kann Wildcards enthalten. Muss den Pfaden entsprechen, die der Indizierer sieht (d.h.. wenn '/home/me' in den Start-Verzeichnissen steht und '/home' eigentlich ein Link zu '/usr/home' ist, dann wre ein korrekter Eintrag '/home/me/tmp*' und nicht '/usr/home/me/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelW|Dies ist der Prozentsatz der Festplattenbelegung, ab dem die Indizierung gestoppt wird (um das Fllen der Festplatte zu vermeiden).<br>0 bedeutet keine Begrenzung (das ist der Standardwert).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelWDieser Wert steuert, wieviel Daten indiziert werden bevor die Indexinformationen auf Festplatte geschrieben werden.<br>Hierdurch kann der Speicherverbrauch des Indizierers gesteuert werden. Standardwert: 10MBThis value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWDieser Wert steuert die Menge der Meldungen<br>(nur Fehler oder viele Debugging Ausgaben).ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW&Start-VerzeichnisseTop directoriesconfgui::ConfTopPanelWUnac AusnahmenUnac exceptionsconfgui::ConfTopPanelW&Abbrechen&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBase<BR>
uiPrefsDialogBase <PRE>

uiPrefsDialogBase<PRE> + Umbruch
 + wrapuiPrefsDialogBaseEine Suche nach [Rolling Stones] wird gendert zu [Rolling OR Stones OR (Rolling PHRASE 2 Stones)].
Dadurch sollten Ergebnisse, in denen die Suchworte genau wie eingegeben auftreten, strker gewichtet werden.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBaseDTrenner fr Zusammenfassungs-TeileAbstract snippet separatoruiPrefsDialogBaseAlle auswhlenActivate AlluiPrefsDialogBase Index hinzufgen	Add indexuiPrefsDialogBase*nderungen bernehmen
Apply changesuiPrefsDialogBaseAutomatisch eine einfache Suche starten, wenn ein Worttrenner eingegeben wird-Auto-start simple search on whitespace entry.uiPrefsDialogBasepAutomatisches Hinzufgen von Phrasen zu einfachen Suchen+Automatically add phrase to simple searchesuiPrefsDialogBase^Hufigkeitsschwellwert fr automatische Phrasen.Autophrase term frequency threshold percentageuiPrefsDialogBaseAuswhlenChooseuiPrefsDialogBase:Standardanwendungen auswhlenChoose editor applicationsuiPrefsDialogBase>Klicken Sie hier um einen weiteren Indexordner zur Liste hinzuzufgen. Sie knnen entweder einen Recoll-Konfigurationsordner oder einen Xapian-Index auswhlen.{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBase4Datumsformat (strftime(3))Date format (strftime(3))uiPrefsDialogBaseAlle abwhlenDeactivate AlluiPrefsDialogBasehQt-Autovervollstndigung in Suchleiste deaktivieren.*Disable Qt autocompletion in search entry.uiPrefsDialogBase(nderungen verwerfenDiscard changesuiPrefsDialogBaseErzeugen wir eine Zusammenfassung auch dann, wenn das Dokument schon eine Zusammenfassung enthlt?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseVersuchen wir, Zusammenfassungen fr Ergebnisse aus den Fundstellen zu erzeugen?
Dies kann bei groen Dokumenten langsam sein.zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBaseHZusammenfassungen dynamisch erzeugenDynamically build abstractsuiPrefsDialogBaseLHTML-Header der Ergebnisseite ergnzen#Edit result page html header insertuiPrefsDialogBaseVFormat-String fr Ergebnis-Absatz editieren#Edit result paragraph format stringuiPrefsDialogBaseAktivierenEnableuiPrefsDialogBaseExterne IndizesExternal IndexesuiPrefsDialogBaselHufigkeitsschwellwert in Prozent, ber dem Begriffe nicht beim automatischen
Hinzufgen von Phrasen verwendet werden. Hufige Begriffe beeintrchtigen die
Performance bei Phrasen stark. Weggelassene Begriffe erhhen den Phrasen-Slack
und vermindern den Nutzender automatischen Phrasen. Der Standardwert ist 2.Frequency percentage threshold over which we do not use terms inside autophrase. 
Frequent terms are a major performance issue with phrases. 
Skipped terms augment the phrase slack, and reduce the autophrase efficiency.
The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10Helvetica-10uiPrefsDialogBase:Verstecke doppelte ErgebnisseHide duplicate results.uiPrefsDialogBasePFarbe zur Hervorhebung von SuchbegriffenHighlight color for query termsuiPrefsDialogBaseBei Auswahl werden Ergebnisse mit dem gleichen Inhalt unter verschiedenen Namen nur einmal gezeigt.XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBaseNZeilen in PRE-Text werden nicht umgebrochen. Bei Verwendung von BR gehen manche Einrckungen verloren. Mglicherweise ist der Stil 'PRE + Umbruch' das, was Sie wollen.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBaseXMaximale Textgre fr Vorschau-Hervorhebung5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBase>Anzahl der Ergebnisse pro Seite"Number of entries in a result pageuiPrefsDialogBaseffnet einen Dialog zur Auswahl der Schnipsel-Fenster CSS Style Sheet DateiAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBaseffnet einen Dialog zur Auswahl der Schriftart fr die Ergebnisliste-Opens a dialog to select the result list fontuiPrefsDialogBasejffnet einen Dialog zur Auswahl der Style Sheet Datei-Opens a dialog to select the style sheet fileuiPrefsDialogBasePfadumwandlungPaths translationsuiPrefsDialogBaseVZeilen-Stil fr Umwandlung von Text in HTMLPlain text to HTML line styleuiPrefsDialogBasedBei Vorschau HTML gegenber reinem Text bevorzugen&Prefer Html to plain text for preview.uiPrefsDialogBasebMagische Dateinamen-Erweiterungen fr Suchsprache(Query language magic file name suffixes.uiPrefsDialogBaseLSpeichern, ob Sortierung aktiviert istRemember sort activation state.uiPrefsDialogBaseAus der Liste entfernen. Dies hat keinen Einfluss auf den gespeicherten Index.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase*Ausgewhlte entfernenRemove selecteduiPrefsDialogBaseZErsetzen der Zusammenfassungen aus Dokumenten Replace abstracts from documentsuiPrefsDialogBaseZurcksetzenResetuiPrefsDialogBaseSetzt das Schnipsel-Fenster Style Sheet auf den Standardwert zurck Resets the Snippets window styleuiPrefsDialogBaseSetzt die Schriftart fr die Ergebnisliste auf den Standardwert zurck1Resets the result list font to the system defaultuiPrefsDialogBasebSetzt das Style Sheet auf den Standardwert zurck!Resets the style sheet to defaultuiPrefsDialogBaseErgebnislisteResult ListuiPrefsDialogBase8Schriftart fr ErgebnislisteResult list fontuiPrefsDialogBase:Suche beim Eintippen starten.Search as you type.uiPrefsDialogBaseSuchparameterSearch parametersuiPrefsDialogBase6Schnipsel-Fenster CSS DateiSnippets window CSS fileuiPrefsDialogBaseNach dem Start automatisch den Dialog fr die erweiterte Suche ffnen'Start with advanced search dialog open.uiPrefsDialogBase Stemming-SpracheStemming languageuiPrefsDialogBaseStyle SheetStyle sheetuiPrefsDialogBase\Anzahl der Kontextworte in der Zusammenfassung Synthetic abstract context wordsuiPrefsDialogBase`Lnge der erzeugten Zusammenfassung (in Zeichen)$Synthetic abstract size (characters)uiPrefsDialogBaseTexte ber dieser Gre werden in der Vorschau nicht mit Hervorhebungen versehen (zu langsam).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBaseDie Worte in dieser Liste werden automatisch zu ext:xxx Ausdrcken im Suchsprachen-Eintrag umgewandelt.bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase Auswahl umkehrenToggle selecteduiPrefsDialogBase$BenutzeroberflcheUser interfaceuiPrefsDialogBase*BenutzereinstellungenUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_pl.qm0000644000175000017500000026541712602163537016630 0ustar  dockesdockes)j!00ŃJM(fS0*a0wnxgt
:N

\EnE.0,;s>.cq}Do2N'Vsn4XMJX2h5[ltإnjwwax%~H5v8.q,bsͺ
)~H
LSIԵ؅
qA"p#vvw5w5zw5dwU.Mֳ6-wf3T/wyͼuKmggfH;U:4BUgyexZ!DS( N>x&A=dS?d?dG$JUYJUYYY[uiQ_nbzn*W[uDʷvP3ʗHʗM^GkL=3ނx;JgBAK%B `0C.3<.':d@;[ݭ<LNBe2vh(P0bY"3Z
I6"IeQnEߤ@ff;f:,6VW4Way%1y%C΄:
#CX|(W0̔;i
-Zz-j)TR-.tn64BBSng2j.("k	l9or?):rs%w|kG,o<"U"׉AS%â
ȗRguǢŕI^W~C=k>`V#`M8`$"	׻:jUKSp
h7u9NMv2hT#jBe	%Cn37wN[XnD!Kw)/C96!v#+Vv7I^j<~FW#FN@ZH:"ďM>_guKapf6wϗ8ܙ1lÓtÓtiȍɆtZ*]85#t3bR:uNG;.jGT`Qo4kzu}}n;EAV0'R%BcH@Iqid6kKD2c䴥:? 0Z	H	-(5	9Zy	;3	D
	K	]#	cC	kjK	lMb!	X		qDߋ		B	?u	9P	ü>O	!y	3	9
*Nha
:^%
c	R
*R3.
6j
>V
G.~KT
`P
`
aE
cE
d8
yg 
I3e
k
VTz
C)

G
cԅy	ye1TH?do,x3
=!PKjT|chdiΣrƒyn<ٷg۷:?IS	Vd'ИQ+bCt/L*—P֙>RVYT#t/V \iCQj]`F
hRvf{lO9!Y!YMWUYiZ7~H]Nya
m~
'RL#
-<
.!N-
84
F3
OEJ
]7
]?
mCG
u0d
y
y<
8
3G
ȩ<
u
P
P(
5dL
~
L
1

7^}
;?
Ւ4
H
_
Q5
£qG!%ny/.5b@8b:9<W8Q~PZW"ykY~s{[s\2e3g3`p~^=!7ndcmzc|s|T'
l_Li[
Ka|dy warunekAll clauses	AdvSearchKtry[ warunek
Any clause	AdvSearchHBBdna jednostka we filtrze rozmiaru$Bad multiplier suffix in size filter	AdvSearchmultimediamedia	AdvSearchwiadomo[cimessage	AdvSearchpozostaBeother	AdvSearchprezentacjepresentation	AdvSearcharkuszespreadsheet	AdvSearchtekstowetext	AdvSearch <----- Wszystkie
<----- All
AdvSearchBase"<----- Zaznaczone
<----- Sel
AdvSearchBaseDodaj warunek
Add clause
AdvSearchBase"DokBadne szukanieAdvanced search
AdvSearchBaseWszystkie ---->	All ---->
AdvSearchBase.Podane warunki (pola z prawej strony) bd u|yte razem (dla zaznaczonego "Ka|dy warunek") lub oddzielnie (dla zaznaczonego "Ktry[ warunek"). <br>Pola "Ktre[", "Wszystkie" i "{adne" przyjmuj pojedyDcze wyrazy lub frazy w cudzysBowiu.<br>Pola bez danych s ignorowane.</br></br>All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions. 
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored.

 AdvSearchBasePrzegldajBrowse AdvSearchBaseJako kategoria By categories AdvSearchBase2Zaznacz, by okre[li dat'Check this to enable filtering on dates AdvSearchBase<Zaznacz, by okre[li typ pliku,Check this to enable filtering on file types AdvSearchBase8Zaznacz, by okre[li rozmiar'Check this to enable filtering on sizes AdvSearchBase4Zaznacz, by u|y kategorii;Check this to use file categories instead of raw mime types AdvSearchBaseZamknijClose AdvSearchBaseUsuD warunek Delete clause AdvSearchBase<Podaj szczyt katalogu szukaniaEnter top directory for search AdvSearchBase FiltryFilter AdvSearchBasePo dacie Filter dates AdvSearchBasePo rozmiarze Filter sizes AdvSearchBase ZnajdzFind AdvSearchBasePo:From AdvSearchBasePomiD plikiIgnored file types AdvSearchBaseLE{CE POZAInvert AdvSearchBaseMniejszy od: Max. Size AdvSearchBaseJDopuszczalne jednostki: k/K, m/M, g/G4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBaseWikszy od: Min. Size AdvSearchBaseJDopuszczalne jednostki: k/K, m/M, g/G4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase Okre[l typ plikuRestrict file types AdvSearchBase<Tylko pliki LE{CE W katalogu:%Restrict results to files in subtree: AdvSearchBase.Zapamitaj wybrane typySave as default AdvSearchBase^Znajdz <br>dokumenty<br>speBniacjce:</br></br>1Search for
documents
satisfying:

 AdvSearchBasePrzeszukaj plikSearched file types AdvSearchBase"Zaznaczone -----> Sel -----> AdvSearchBase Szukaj Start Search AdvSearchBase Przed:To AdvSearchBase<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indeksuj cyklicznie (cron) </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ka|de pole mo|e zawiera wieloznacznik (*), pojdyDcz warto[, list po przecinku (1,3,5) oraz zakres (1-7). Tak samo<span style=" font-style:italic;">jak</span>gdyby to byB plik Crontab. Dlatego mo|liwe jest u|ycie skBadni Crontab. (zobacz crontab(5).</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br />PrzykBadowo wpisujc <span style=" font-family:'Courier New,courier';">*</span> w <span style=" font-style:italic;">"Dni tygodnia", </span><span style=" font-family:'Courier New,courier';">12,19</span> w <span style=" font-style:italic;">"Godziny"</span> oraz <span style=" font-family:'Courier New,courier';">15</span> w <span style=" font-style:italic;">"Minuty"</span> uruchomili by[my indeksowanie (recollindex) ka|dego dnia o 00:15 oraz 19:15</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Indeksowanie cykliczne (nawet te bardzo czste) jest mniej efektowne ni| indeksowanie w czasie rzeczywistym.</p></body></html>

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolWZ<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Kliknij <span style=" font-style:italic;">WyBcz</span>, aby zatrzyma automatyczne indeksowanie. <span style=" font-style:italic;">WBcz</span>, aby je rozpocz. <span style=" font-style:italic;">Anuluj</span>, aby utrzyma obecny stan.</p></body></html>

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolW"Ustaw cykl (CRON) Cron Dialog CronToolWZDni tygodnia (* or 0-7, 0 lub 7 to Niedziela))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolW WyBczDisable CronToolW WBczEnable CronToolWpBBd przy rejestrowaniu cyklu. BBdna skBadnia w polach?3Error installing cron entry. Bad syntax in fields ? CronToolW(Godziny (* lub 0-23)Hours (* or 0-23) CronToolWNie mo|na zmieni crontab. Wyglda na to, |e istniej rczne wpisy dla recollindex.PIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWMinuty (0-59)Minutes (0-59) CronToolWOkno dialogoweDialog EditDialog"BBd konfiguracji Config error EditTransZcie|ka lokalna Local path EditTrans$Zcie|ka oryginalna Original path EditTrans Zcie|ka zrdBowa Source path EditTrans DodajAdd EditTransBase AnulujCancel EditTransBaseUsuDDelete EditTransBase&Zcie|ka tBumaczeniaPath Translations EditTransBase ZapiszSave EditTransBaseWybierz jeden lub kilka typw pliku, nastpnie wska| w ramce poni|ej jak maj zosta przetworzonekSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBaseDUstawienie [cie|ki translacji dla Setting path translations for  EditTransBase <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Indeks dla tej konfiguracji nie istnieje.</span><br /><br />Je[li tylko chcesz indeksowa swj katalog domowy u|wyajc fabrcznych ustawieD, wci[nij przycisk <span style=" font-style:italic;">Rozpocznij indeksowanie </span>. SzczegBy mo|esz ustawi rwnie| pzniej. </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Je[li chesz mie wiksz kontrol, u|yj nastpujcych odno[nikw w celu konfiguracji indeksowania oraz jego harmonogramu.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">To samo mo|esz rwnie| otrzyma pozniej wybierajc <span style=" font-style:italic;">Ustawienia</span> z menu.</p></body></html>

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialogHPocztkowa konfiguracja indeksowaniaFirst indexing setupFirstIdxDialog2Konfiguracja indeksowaniaIndexing configurationFirstIdxDialog0Harmonogram indeksowaniaIndexing scheduleFirstIdxDialog.Rozpocznij indeksowanieStart indexing nowFirstIdxDialogTutaj mo|esz wybra katalogi do indeksowania, oraz inne parametry tj. wyBczenie [cie|ek plikw czy ich nazw, domy[lny zestaw znakw, etc.This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialog"Tutaj mo|esz wybra midzy indeksowaniem w kolejce, a indeksowaniem nabierzco, jak i ustaleniem automatycznej kolejki indeksowania (dziki Cron)This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Indeksowanie <span style=" font-weight:600;">Recoll</span> mo|e by uruchomione na staBe (indeksujc ka|d zmian) lub w okre[lonych cyklach.</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Instrukcja obsBugi (EN) mo|e pomc wybra rozwizanie dla Ciebie (wci[nij F1). </p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Narzdzie to pomo|e Ci zaplanowa indeksowanie cykliczne lub wybierzesz indeksowanie "na bie|co" po zalogowaniu (lub jedno i drugie, co rzadko jest sendowne).</p></body></html>

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedW2Planowanie z u|yciem CronCron scheduling IdxSchedW\Pozwala uruchomi indeksowanie po zalogowaniu.ZDecide if real time indexing will be started when you log in (only for the default index). IdxSchedWLKonfiguracja harmonogramu indeksowaniaIndex scheduling setup IdxSchedWBUruchom indeksowanie "na bie|co"Real time indexing start up IdxSchedWTutaj zdecydujesz o jakim czasie indeksowanie ma by uruchamiane (po przez wpis do crontab)._The tool will let you decide at what time indexing should run and will install a crontab entry. IdxSchedWOkno dialogoweDialog ListDialog GrupaGroupBox ListDialogPlik "history" jest uszkodzony lub brak mo|liwo[ci jego odczytu/zapisu, zmieD to lub go usuD: K"history" file is damaged or un(read)writeable, please check or remove it: MainXBrak katalogu dla bazy danych w konfiguracji No db directory in configurationMain&Nastpny&NextPreview&Poprzedni &PreviousPreview&Szukaj: &Search for:Preview^Nie mog przemieni dokumentu na wBadny format 0Can't turn doc into internal representation for Preview AnulujCancelPreviewWyczy[ClearPreviewZamknij kart Close TabPreview*Tworz podgld tekstuCreating preview textPreview(BBd Badowania plikuError while loading filePreview@Aaduj podgld tekstu do edytora Loading preview text into editorPreview2Sprawdzaj &wielko[ liter Match &CasePreview>Brak programu usprawniajcego: Missing helper program: Preview KopiujCopyPreviewTextEditZwiD linie Fold linesPreviewTextEdit Zachowaj wciciaPreserve indentationPreviewTextEdit DrukujPrintPreviewTextEdit*Drukuj obecny podgldPrint Current PreviewPreviewTextEdit0Zapisz dokument do plikuSave document to filePreviewTextEdit Zaznacz wszystko Select AllPreviewTextEditPoka| pola Show fieldsPreviewTextEditPoka| obraz Show imagePreviewTextEdit$Poka| tekst gBwnyShow main textPreviewTextEdit0<b>Dostosowana gaBz</b>Customised subtreesQObject <i>Poni|sze parametry tycz s pod[wietlonego katalogu z powy|szej listy.<br> Je[li powy|sza lista jest pusta lub pod[wietla pust lini poni|sze ustawienia tycz si najpBytszego katalogu.<br>Mo|esz doda lub usun katalog klikajc przyciski +/-</br></br></i> The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.

QObject,Domy[lny zestaw znakwDefault character setQObjectBIdz za dowizaniami symbolicznymiFollow symbolic linksQObjectFollow symbolic links while indexing. The default is no, to avoid duplicate indexing Indeksujc, idz za dowizaniami symbolicznymi. Domy[lnia warto[ to NIE, chroni przed zduplikowanymi indeksami.TFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject$Parametry globalneGlobal parametersQObject>Indeksuj wszystkie nazwy plikwIndex all file namesQObject Indeksuj nazwy plikw dla ktrych zawarto[ nie mo|e by rozpoznana lub przetworzona (Nie lub nieobsBugiwany typ MIME). Domy[lnie Tak.}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject"Parametry lokalneLocal parametersQObject$Parametry szukaniaSearch parametersQObjectWykluczenia Skipped namesQObjectLista podkatalogw w zaindeksowanej hierarchii <br> dla ktrych cz[ parametrw musi by ustalona ponownie. Domy[lnie: pusty.</br>xThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.
QObjectTutaj ustawiasz reguBy wykluczajce indeksowanie plikw i katalogw.LThese are patterns for file or directory names which should not be indexed.QObjectTo jest zestaw znakw sBu|cy do odczytu plikw i nie jest to|samy z ustawieniami wewntrznymi (np: czyste pliki tesktowe)<br>Domy[lnie jest pusty, a u|yta jest warto[ ze [rodowiska NLS.</br>This is the character set used for reading files which do not identify the character set internally, for example pure text files.
The default value is empty, and the value from the NLS environnement is used.
QObjectHistoria sieci Web historyQObject.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Recoll</span> indeksacja mo|e by uruchomiona w tle (daemon), aktualizujc indeks nabierzco. Zyskujesz zawsze aktualny indeks, tracc cz[ zasobw systemowych.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html> .

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWbDodatkowo natychmiast uruchom indeksowanie w tle.%Also start indexing daemon right now.RTIToolWrUsunito plik autostartu. Zamkn rwnie| bie|cy proces?2Autostart file deleted. Kill current process too ?RTIToolW$Nie mog utworzy:Can't create: RTIToolW:Nie mo|na wykona recollindexCould not execute recollindexRTIToolWUsuwanie pliku Deleting fileRTIToolWUsuwanie: Deleting: RTIToolWjAutomatyczny start indeksowania w czasie rzeczywistym"Real time indexing automatic startRTIToolW&Usuwanie autostartuRemoving autostartRTIToolWPodmiana plikuReplacing fileRTIToolWPodmiana: Replacing: RTIToolWlUruchom indeksowanie w tle razem ze startem komputera..Start indexing daemon with my desktop session.RTIToolWOstrze|enieWarningRTIToolW(ka|dy jzyk)(all languages)RclMain>wyBcz ciosanie (ang. stemming) (no stemming)RclMainKarta Recoll About RecollRclMainWszystkoAllRclMainBBdna komenda przegldarki dla typu %1: [%2] Sprawdz plik widoku MIMECBad viewer command line for %1: [%2] Please check the mimeview fileRclMainFNie mog uzyska dostpu do pliku: Can't access file: RclMain@Nie mo|na utworzy okna podglduCan't create preview windowRclMain4Nie mog wypakowa pliku: Can't uncompress file: RclMaindNie mog zaktualizowa indeksu: pracujcy indekser#Can't update index: indexer runningRclMaintNie mo|na wypakowa dokumentu lub stworzy plik tymczasowy0Cannot extract document or create temporary fileRclMainHNie mo|na odszuka rodzica dokumentuCannot find parent documentRclMain|Brak mo|liwo[ci pobrania informacji o dokumencie z bazy danych+Cannot retrieve document info from databaseRclMainKliknij Ok by uaktualni indeks tego pliku, po zakoDczeniu ponw zapytanie lub Anuluj.fClick Ok to update the index for this file, then re-run the query when indexing is done. Else, Cancel.RclMainZamykanieClosingRclMainhZawarto[ zostaBa zaindeksowana dla tych typw MIME:.Content has been indexed for these mime types:RclMainNie mog otworzyc zewntrznego indeksu. Nie otwarta baza danych. Sprawdz list zewntrznych indeksw.HCould not open external index. Db not open. Check external indexes list.RclMain2Filtr kategorii dokumentuDocument category filterRclMain&Historia dokumentwDocument historyRclMainZakoDczoneDoneRclMain Usuwanie indeksu Erasing indexRclMainBBdErrorRclMainWykonuj: [ Executing: [RclMainBrak zewntrznych aplikacji|komend wymaganych przez twoje typy plikw.pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMainHistoria danych History dataRclMain*Indeks jest zamknityIndex not openRclMainIndeks tego pliku jest nieaktualny. Odmawiam podania bBdnych wynikw.MIndex not up to date for this file. Refusing to risk showing the wrong entry.RclMain,BBd odpytania indeksuIndex query errorRclMain.Zaindeksowane typy MIMEIndexed MIME TypesRclMainvIndeksowanie w trakcie, spodziewana poprawa po zakoDczeniu.7Indexer running so things should improve when it's doneRclMainXIndeksowanie nie zostaBo jeszcze uruchomioneIndexing did not run yetRclMain(Pora|ka indeksowaniaIndexing failedRclMain.Indeksowanie w tracie: Indexing in progress: RclMain,Brakujce rozszerzeniaMissing helper programsRclMainSprawdzanieMonitorRclMainvBrak skonfigurowanej zewntrzenej przegldarki typw MIME [-No external viewer configured for mime type [RclMainBWszystkie rozszerzenia znalezionoNo helpers found missingRclMainBrak wynikwNo results foundRclMainNicNoneRclMainWyczy[PurgeRclMainTrwa odpytywanie.<br>z powodu ograniczeD biblioteki indeksowania,<br>anulowanie zamknie program</br></br>oQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the program

RclMainWynik zapytania Query resultsRclMain>Ponownie spisa indeks od zera?(Reset the index and start from scratch ?RclMain,Liczba wynikw (szac.)Result count (est.)RclMainZapisz plik Save fileRclMain StemdbStemdbRclMain.Zatrzymaj &IndeksowanieStop &IndexingRclMain2Poddokumenty i zaBcznikiSub-documents and attachmentsRclMainObecny proces indeksowania uruchomiono z innego okna. Kliknij Ok, by zamkn proces.yThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainBrak przegldarki dla typu MIME %1: %2 . Chcesz to ustawi teraz?hThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMainFTo wyszukanie przestaBo by aktywne"This search is not active any moreRclMainNieznaneUnknownRclMainOd[wie| &Indeks Update &IndexRclMainOd[wie|anieUpdatingRclMainPolecenie czytnika dla %1 podaje zarwno plik jak i warto[ pliku rodzica: niewspieraneQViewer command line for %1 specifies both file and parent file value: unsupportedRclMainOstrze|enieWarningRclMaintBBd pobierania "reguB ciosania" (ang. stemming languages)#error retrieving stemming languagesRclMainprzefiltrowanefilteredRclMainmultimediamediaRclMainwiadomo[cimessageRclMainpozostaBeotherRclMainprezentacje presentationRclMainposortowanesortedRclMainarkusze spreadsheetRclMaintekstowetextRclMain&Karta Recoll &About Recoll RclMainBase,&Zaawansowane szukanie&Advanced Search RclMainBase0&UsuD histori dokumentu&Erase document history RclMainBase.&UsuD histori szukania&Erase search history RclMainBase &Plik&File RclMainBasePeBen &Ekran &Full Screen RclMainBase"Konfiguracja &GUI&GUI configuration RclMainBase &Pomoc&Help RclMainBase*&Konfiguracja indeksu&Index configuration RclMainBase$&Plan indeksowania&Indexing schedule RclMainBase&Ustawienia &Preferences RclMainBase&Odnw indeks&Rebuild index RclMainBase&Wyniki&Results RclMainBase2Poka| zaindeksowane &typy&Show indexed types RclMainBase:Poka| &brakujcych pomocnikw&Show missing helpers RclMainBase*Parametry &sortowania&Sort parameters RclMainBase&Narzdzia&Tools RclMainBase&Instrukcja &User manual RclMainBase ZBo|one szukanieAdvanced/complex Search RclMainBaseWszystkoAll RclMainBase Ctrl+QCtrl+Q RclMainBase$Historia DokumentuDocument History RclMainBase&&Historia dokumentuDocument &History RclMainBase&ZakoDczE&xit RclMainBase"Zewntrzny indeksE&xternal index dialog RclMainBase"Zewntrzny indeksExternal index dialog RclMainBaseF11F11 RclMainBasePierwsza strona First Page RclMainBasePierwsza strona First page RclMainBasePeBen ekran Full Screen RclMainBaseFPrzejdz do pierwszej strony wynikwGo to first page of results RclMainBaseNastpna strona Next Page RclMainBaseNastpna strona Next page RclMainBase.Nastpna strona wynikwNext page of results RclMainBase PgDownPgDown RclMainBasePgUpPgUp RclMainBase"Poprzednia strona Previous Page RclMainBase"Poprzednia strona Previous page RclMainBase2Poprzednia strona wynikwPrevious page of results RclMainBase RecollRecoll RclMainBase Wyniki Result list RclMainBase:Zapisz jako plik CSV (arkusz)Save as CSV (spreadsheet) file RclMainBase\Zapisz wyniki do pliku czytelnego przez arkusz@Saves the result into a file which you can load in a spreadsheet RclMainBase,Narzdzia wyszukiwania Search tools RclMainBaseShift+PgUp Shift+PgUp RclMainBase2Poka| szczegBy zapytaniaShow Query Details RclMainBase"Poka| jako tabela Show as table RclMainBase0Poka| wyniki jako arkusz(Show results in a spreadsheet-like table RclMainBase>Sortuj po dacie: od najnowszegoSort by date, newest first RclMainBase@Sortuj po dacie: od najstarszegoSort by date, oldest first RclMainBase>Sortuj po dacie: od najnowszego#Sort by dates from newest to oldest RclMainBase@Sortuj po dacie: od najstarszego#Sort by dates from oldest to newest RclMainBase(Parametry sortowaniaSort parameters RclMainBase"Przej|yj &terminyTerm &explorer RclMainBase*Przegldanie terminwTerm explorer tool RclMainBase*&Aktualizacja indeksu Update &index RclMainBaseAbstrakcjaAbstract RecollModel AutorAuthor RecollModelDataDate RecollModelData i czas Date and time RecollModelData dokumentu Document date RecollModel"Rozmiar dokumentu Document size RecollModelData pliku File date RecollModelNazwa pliku File name RecollModelRozmiar pliku File size RecollModel IpathIpath RecollModelSBowa kluczeKeywords RecollModelTyp MIME MIME type RecollModel Czas modyfikacjiMtime RecollModel0Oryginalny zestaw znakwOriginal character set RecollModelTrafno[Relevancy rating RecollModel TytuBTitle RecollModelURLURL RecollModel"(Poka| zapytanie) (show query)ResList@<p><b>Brak wynikw</b><br /></p>$

No results found

ResListx<p><i>Aleternatywna pisowania (ignorowane akcenty): </i></p>8

Alternate spellings (accents suppressed):

ResListJ<p><i>Alternatywna pisownia: </i></p>#

Alternate spellings:

ResList$Historia dokumentuDocument historyResListDokumenty DocumentsResList(Duplikaty dokumentwDuplicate documentsResListNastpnyNextResList OtwrzOpenResListPoprzedniPreviewResListPoprzedniPreviousResList&SzczegBy zapytania Query detailsResList6Liczba wynikw (oszacowana)Result count (est.)ResListLista wynikw Result listResListTTe URLe ( | ipath) maj t sam zawarto[:-These Urls ( | ipath) share the same content:ResList(Dokument niedostpnyUnavailable documentResListdlaforResListz co najmniejout of at leastResList&UsuD kolumn&Delete columnResTable"&Reset sortowania &Reset sortResTable &Zapisz jako CSV &Save as CSVResTable$Dodaj "%1" kolumnAdd "%1" columnResTableDNie mo|na otworzy|utworzy pliku:Can't open/create file: ResTable6Zapisz tabel jako plik CSVSave table to CSV fileResTable&Otwrz&Open ResultPopup@&Otwrz dokument|katalog rodzica&Open Parent document/folder ResultPopup&Poprzedni&Preview ResultPopup Zapisz &do pliku&Write to File ResultPopup&&Kopiuj nazw plikuCopy &File Name ResultPopupKopiuj &URL Copy &URL ResultPopup2Znajdz &podobne dokumentyFind &similar documents ResultPopup*Otwrz okno &snipetwOpen &Snippets window ResultPopupDPodgld rodzica dokumentu|kataloguPreview P&arent document/folder ResultPopup6Zapisz zaznaczenie do plikuSave selection to files ResultPopup:Poka| poddokumenty|zaBcznikiShow subdocuments / attachments ResultPopupKa|dy termin All termsSSearchKtry[ terminAny termSSearch BBdne zapytanieBad query stringSSearchlWprowadz wieloznakowe (wildcard) wyra|enie nazwy pliku$Enter file name wildcard expression.SSearchWprowadz wyra|enie pytajce. Zciga:<br> <i>termin1 termin2</i> : 'termin1' i 'termin2' w ktrym[ polu.<br> <i>pole:termin1</i> : 'termin1' w polu 'pole'.<br> Standardowe pola nazwy|synonimy:<br> tytuB/przedmiot/napis, autor/od, odbiorca/do, nazwa pliku, ext.<br> Pseudo-pola: katalog, mime/format, typ/rclcat, data.<br> PrzykBad przedziaBu dat: 2009-03-01/2009-05-20 2009-03-01/P2M.<br> <i>termin1 termin2 LUB termin3</i> : termin1 LUB (termin2 LUB termin3).<br> Nawiasy aktualnie niedozwolone.<br> <i>"termin1 termin2"</i> : fraza (wystpienie dokBadne). Dostpne modyfikatory:<br> <i>"termin1 termin2"p</i> : nieuporzdkowane ssiednie szukanie z domy[ln odlegBo[ci.<br> U|yj <b>Poka| zapytanie</b> je[li jeste[ niepewny wynikw i sprawdz je z instrukcj (<F1>) . </br></br></br></br></br></br></br></br></br></br></br>Enter query language expression. Cheat sheet:
term1 term2 : 'term1' and 'term2' in any field.
field:term1 : 'term1' in field 'field'.
Standard field names/synonyms:
title/subject/caption, author/from, recipient/to, filename, ext.
Pseudo-fields: dir, mime/format, type/rclcat, date.
Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.
term1 term2 OR term3 : term1 AND (term2 OR term3).
No actual parentheses allowed.
"term1 term2" : phrase (must occur exactly). Possible modifiers:
"term1 term2"p : unordered proximity search with default distance.
Use Show Query link when in doubt about result and see manual () for more detail.










SSearchWprowadz tutaj szkane terminy. Wpisz ESC SPC by uzupeBni bie|cy termin.FEnter search terms here. Type ESC SPC for completions of current term.SSearchNazwa pliku File nameSSearchBrak pamici Out of memorySSearchJzyk zapytaDQuery languageSSearch*Wybierz typ szukania.Choose search type. SSearchBaseWyczy[Clear SSearchBase Ctrl+SCtrl+S SSearchBaseWprowadz tutaj szkane terminy. Wpisz ESC SPC by uzupeBni bie|cy termin.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase"UsuD szukany wpisErase search entry SSearchBaseSSearchBase SSearchBase SSearchBase SzukajSearch SSearchBaseStart zapytania Start query SSearchBase Ka|dyAll SearchClauseW Ktry[Any SearchClauseWNazwa pliku File name SearchClauseWBez polaNo field SearchClauseW {adenNone SearchClauseWLiczba dodatkowych wyrazw, ktre mog by przeplatane z wybranymiHNumber of additional words that may be interspersed with the chosen ones SearchClauseW FrazaPhrase SearchClauseWSsiedztwo Proximity SearchClauseWhWybierz typ zapytania, ktry bdzie u|yty z wyrazami>Select the type of query that will be performed with the words SearchClauseWZnajdz:Find:SnippetsNastpnyNextSnippetsPoprzedniPrevSnippetsSnipetySnippetsSnippets SzukajSearch SnippetsW&Zamknij&Close SpellBase&Rozszerz&Expand  SpellBaseAkcentyAccents SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBase,Wielko[ znakw (Case)Case SpellBaseDopasowanieMatch SpellBase&Brak informacji bd. No db info. SpellBase"Przegld terminw Term Explorer SpellBase%1 wynikw %1 resultsSpellW2BBd rozszerzenia Aspell.Aspell expansion error. SpellW`Nieudany start Aspell. Nie zainstalowano Aspell?)Aspell init failed. Aspell not installed?SpellW8Zrednia terminw na dokumentAverage terms per documentSpellW8Rozmiar katalogu bazy danychDatabase directory sizeSpellWDok. / Razem Doc. / Tot.SpellWxIndeks: %1 dokumenty, [rednia dBugo[ %2 terminw.%3 wynikw7Index: %1 documents, average length %2 terms.%3 resultsSpellWElementItemSpellWRLista obcita alfabetycznie, cz[ czsta1List was truncated alphabetically, some frequent SpellW8Najwiksza dBugo[ dokumentuLongest document lengthSpellWTypy MIME: MIME types:SpellW4Nieznalezione rozszerzenieNo expansion foundSpellW"Liczba dokumentwNumber of documentsSpellW6Wyra|enie reguBowe (regexp)RegexpSpellW:Poka| statystyki indeksowaniaShow index statisticsSpellW:Najmniejsza dBugo[ dokumentuSmallest document lengthSpellW*Pisownia/Fonetyczno[Spelling/PhoneticSpellWHRoszerzenie rdzenia (Stem expansion)Stem expansionSpellW TerminTermSpellWWarto[ValueSpellW4Wieloznaczniki (wildcards) WildcardsSpellWtBBd pobierania "reguB ciosania" (ang. stemming languages)#error retrieving stemming languagesSpellWVTerminy mog zgin. U|yj dBu|szego rdzenia.terms may be missing. Try using a longer root.SpellW^Co najwy|ej jeden indeks powinnien by wyberany$At most one index should be selected UIPrefsDialogNie mo|na doda indeksu z opcj r|nej wielko[ci-liter/znakach-diakrytycznych>Cant add index with different case/diacritics stripping option UIPrefsDialogWybierzChoose UIPrefsDialogPNagBwek listy wynikw (domy[lnie pusty)%Result list header (default is empty) UIPrefsDialogFormat paragrafu listy wynikw (usuD wszystko by wri do domy[lnych)Nowa warto[:</b>New Values:ViewActionBase@CzyD (pusty -> recoll domy[lnie) Action (empty -> recoll default)ViewActionBase0U|yj dla obecnego wyboruApply to current selectionViewActionBaseZamknijCloseViewActionBase8Wyjtki dla ustawieD Pulpitu Exception to Desktop preferencesViewActionBase"Systemowy czytnikNative ViewersViewActionBase$Recoll zachowanie:Recoll action:ViewActionBaseWybierz jeden lub kilka typw pliku, nastpnie wska| w ramce poni|ej jak maj zosta przetworzonekSelect one or several file types, then use the controls in the frame below to change how they are processedViewActionBaseWybierz jedno lub kilka typw MIME po czym okre[l jak maj by przetwarzane u|ywajc kontrolek na dole ramkilSelect one or several mime types then use the controls in the bottom frame to change how they are processed.ViewActionBaseWybierz to samo Select sameViewActionBase@U|yj domy[lnie ustawieD Pulpitu "Use Desktop preferences by defaultViewActionBaseobecna warto[ current valueViewActionBaseWBcz ineksowanie odwiedzonych stron w Firefox.<br>(Wymagana instalacja dodatku Firefox Recoll)</br>aEnables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)
confgui::ConfBeaglePanelWRWpisy bd odnowione gdy osignie rozmiar1Entries will be recycled once the size is reachedconfgui::ConfBeaglePanelWNMaks. rozmiar dla schowka webowego (MB) Max. size for the web store (MB)confgui::ConfBeaglePanelW>Przejdz do kolejki historii webProcess the WEB history queueconfgui::ConfBeaglePanelWNazwa katalogu w ktrym trzymane s kopie odwiedzonych stron.<br>Nieabsolutna [cie|ka jest brana wzgldnie do katalogu konfiguracji.</br>The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.
confgui::ConfBeaglePanelWLNazwa katalogu dla trzymania stron webWeb page store directory nameconfgui::ConfBeaglePanelWHNie mo|na pisa w pliku konfiguracjiCan't write configuration fileconfgui::ConfIndexWWybierzChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW<p>Automatycznie uruchom rozr|nianie wielko[ci znakw je[li wpis ma wielkie litery (poza pierwszym znakiem). Inaczej musisz u|y jzyka zapytaD oraz modyfikatora <i>C</i> by wskaza rozr|nianie wielko[ci liter.</p>

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.

confgui::ConfSearchPanelW<p>Automatycznie uruchom czuBo[ diakrytykw je[li szukana fraza zawiera "ogonki" (nie w unac_except_trans). Inaczej musisz u|y jzyka zapytaD oraz modyfikator<i>D</i> by wskaza czuBo[ diakrytykw.</p>

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.

confgui::ConfSearchPanelW<p>Maksymalna liczba rozszerzeD dla pojedyDczego terminu (np.: u|ywajc wieloznacznikw). Domy[lne 10 000 jest warto[ci rozsdn oraz strze|e przed zawieszeniem zapytania podczas gdy przeszukiwana jest lista terminw</p>

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.

confgui::ConfSearchPanelWl<p>Maksymalna liczba pocztkowych klauzuli dodawanych do zapytania Xapian. W niektrych przypadkach, wynik rozszerzeD terminu mo|e by pomno|ony, zwikszajc zu|ycie pamici. Domy[lne 100 000 powinno by dostatecznie wysokie dla wikszo[ci przypadkw oraz dziaBajce na obecnych konfiguracjach sprztowych.</p>9

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.

confgui::ConfSearchPanelWJAutomatyczna czuBo[ wielko[ci znakw$Automatic character case sensitivityconfgui::ConfSearchPanelWDAutomatyczna czuBo[ na diakrytyki Automatic diacritics sensitivityconfgui::ConfSearchPanelWDMaksymalna liczba klauzuli Xapian Maximum Xapian clauses countconfgui::ConfSearchPanelWHMaksymalna liczba rozszerzeD terminuMaximum term expansion countconfgui::ConfSearchPanelWDPrzerywa po tym czasie zewntrzne filtrowanie. Dla rzadkich przypadkw (np.: postscript) kiedy dokument mo|e spowodowa zaptlenie filtrowania. Brak limitu to -1.External filters working longer than this will be aborted. This is for the rare case (ie: postscript) where a document could cause a filter to loop. Set to -1 for no limit. confgui::ConfSubPanelWGlobalnieGlobalconfgui::ConfSubPanelWIndeksujc dzieli plik tekstowy na podane kawaBki (je[li r|ne od -1). Pomocne przy szukaniu w wielkich plikach (np.: dzienniki systemowe).If this value is set (not equal to -1), text files will be split in chunks of this size for indexing. This will help searching very big text files (ie: log files).confgui::ConfSubPanelWPMaks. rozmiar skompresowanego pliku (KB)Max. compressed file size (KB)confgui::ConfSubPanelW4Maks. czas filtrowania (s)Max. filter exec. time (S)confgui::ConfSubPanelWHMaks. rozmiar plikw tekstowych (MB)Max. text file size (MB)confgui::ConfSubPanelWHRozmiar strony pliku tekstowego (KB)Text file page size (KB)confgui::ConfSubPanelWWarto[ progowa od ktrej skompresowane pliki przestaj by przetwarzane. Brak limitu to -1, 0 wyBcza przetwarzanie plikw skompresowanych.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelW@Warto[ progowa po ktrej pliki tekstowe przestaj by przetwarzane. Brak limitu to -1. U|ywaj do wykluczenia gigantycznych plikw dziennika systemowego (logs).This value sets a threshold beyond which text files will not be processed. Set to -1 for no limit. This is for excluding monster log files from the index.confgui::ConfSubPanelW<p>To s wyjtki mechaniki unac., ktra domy[lnie usuwa wszystkie diakrytyki oraz wykonuj dekompozycj kanoniczn. Mo|liwe nadpisanie nieakcentowania dla pewnych znakw, w zale|no[ci od twojego jzyka oraz wyszczeglnienie dodatkowych dekompozycji, np.: ligatur. Dla ka|dego wpisu (oddzielony spacjami) pierwszy znak to zrdBo, pozostaBe to tBumaczenie</p>p

These are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.

confgui::ConfTopPanelWJzyk AspellAspell languageconfgui::ConfTopPanelW4Nazwa katalogu bazy danychDatabase directory nameconfgui::ConfTopPanelWWyBcz u|ywanie Aspell do tworzenia przybli|eD w narzdziu przegldania terminw.<br> U|yteczne, gdy brak Aspell lub jest zepsuty. </br>Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work.
confgui::ConfTopPanelWZInterwaB (megabajty) opr|niania indeksowaniaIndex flush megabytes intervalconfgui::ConfTopPanelW8Nazwa pliku dziennika (logs) Log file nameconfgui::ConfTopPanelW4Poziom st|enia komunikatuLog verbosity levelconfgui::ConfTopPanelW.Maks. zu|ycie dysku (%)Max disk occupation (%)confgui::ConfTopPanelW$Brak u|ycia AspellNo aspell usageconfgui::ConfTopPanelW$Wykluczone [cie|ki Skipped pathsconfgui::ConfTopPanelWRReguBy ciosania (ang. stemming languages)Stemming languagesconfgui::ConfTopPanelWPlik w ktrym zapisywane s komunikaty.<br>U|yj "stderr" by skorzysta z konsoli</br>UThe file where the messages will be written.
Use 'stderr' for terminal output
confgui::ConfTopPanelWJzyk dla katalogu Aspell, wygldajcy jak "en" lub "pl" ..<br>Gdy brak, warto[ [rodowiska NLS zostanie u|yta (zwykle dziaBa). By sprawdzi, co posiadasz zainstalowane, wpisz "aspell config" po czym znajdz pliki .dat w katalogu "data-dir". </br>8The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory.
confgui::ConfTopPanelWJzyki dla ktrych sBownik rozszerzenia ciosania<br> (stemming) bdzie zbudowany.</br>NThe languages for which stemming expansion
dictionaries will be built.
confgui::ConfTopPanelWLista katalogw rekursywnego indeksowania. Domy[lnie: Twj katalog domowy.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWNazwa katalogu przechowania indeksu<br>Nieabsolutna [cie|ka jest brana wzgldnie do katalogu konfiguracji. Domy[lnie jest to "xapiandb".</br>The name for a directory where to store the index
A non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.
confgui::ConfTopPanelWDTe katalogi s wykluczone z indeksowania.<br> Dozwolone wieloznaczniki. Musz odpowiada [cie|kom znanym indekserowi (np.: je[li szczytowy katalog zawiera "/home/ja" i "/home" jest linkiem do "/usr/home", to poprawna [cie|ka to "/home/ja/tmp*", natomiast bBdna to "/usr/home/ja/tmp*")</br>(These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')
confgui::ConfTopPanelWProcent zu|ycia dysku po ktrym indeksowanie zostanie przerwane (chroni przed zapeBnieniem dysku).<br>0 oznacz brak limitu (domy[lnie).</br>This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).
confgui::ConfTopPanelW$Ustawia prg indeksowania danych zanim zostan wysBane na dysk.<br>Odpowiada za kontrolowanie zu|ycia pamici przez indekser. Domy[lnie: 10MB</br>This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB
confgui::ConfTopPanelWWarto[ ta ustawia ilo[ komunikatw,<br>od prostych bBdw a| po mnogie informacje diagnostyczne.</br>_This value adjusts the amount of messages,
from only errors to a lot of debugging data.
confgui::ConfTopPanelW$Szczytowe katalogiTop directoriesconfgui::ConfTopPanelWUnac exceptionsUnac exceptionsconfgui::ConfTopPanelW&Anuluj&CanceluiPrefsDialogBase&Ok&OKuiPrefsDialogBase <BR />
uiPrefsDialogBase<PRE />
uiPrefsDialogBase*<PRE> + zawijaj</PRE>
 + wrap
uiPrefsDialogBase|Wyszukanie dla [rolling stones] (2 terminy) zostanie zamienione na [rolling or stones or (rolling phrase 2 stones)]. To powinno da pierwszeDstwo wynikom, dokBadnie tak jak zostaBy wpisane.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBase>Oddzielacz snipetu streszczeniaAbstract snippet separatoruiPrefsDialogBase Aktywuj wszystko Activate AlluiPrefsDialogBaseDodaj indeks Add indexuiPrefsDialogBaseZastosuj zmiany Apply changesuiPrefsDialogBasedProste szukanie gdy u|yto biBych znakw we wpisie.-Auto-start simple search on whitespace entry.uiPrefsDialogBase\Automatycznie dodaj fraz do szukania prostego+Automatically add phrase to simple searchesuiPrefsDialogBase^Procentowy prg czsto[ci dla terminu Autofrazy.Autophrase term frequency threshold percentageuiPrefsDialogBaseWybierzChooseuiPrefsDialogBase0Wybierz edytor aplikacjiChoose editor applicationsuiPrefsDialogBaseKliknij by doda kolejny katalog do listy. Mo|esz wybra zarwno katalog konfiguracji Recoll jak i indeks Xapian.{Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index.uiPrefsDialogBase2Format daty (strftime(3))Date format (strftime(3))uiPrefsDialogBase$Deaktywuj wszystkoDeactivate AlluiPrefsDialogBaseNWyBcz podpowiedz Qt dla wpisu szukania*Disable Qt autocompletion in search entry.uiPrefsDialogBasePorzu zmianyDiscard changesuiPrefsDialogBaseWy[wietl filtr kategorii jako pasek zamiast panelu (wymagany restart).KDisplay category filter as toolbar instead of button panel (needs restart).uiPrefsDialogBasezTworzy sztuczne streszczenie nawet je[li dokument ma wBasne?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseMam budowa streszczenie dla wynikw po przez u|ycie kontekstu teminw zapytania? Mo|e zwalnia dla du|ych dokumentw.zDo we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents.uiPrefsDialogBase<Buduj streszczenia dynamicznieDynamically build abstractsuiPrefsDialogBaseLZmieD nagBwek HTML dla strony wynikw#Edit result page html header insertuiPrefsDialogBaseBZmieD format paragrafu dla wyniku#Edit result paragraph format stringuiPrefsDialogBase WBczEnableuiPrefsDialogBase$Zewntrzne indeksyExternal IndexesuiPrefsDialogBasePrg czstotliow[ci procentowej dla ktrej terminy wew. autofrazy nie s u|ywane. Czste terminy s powodem sBabej wydajno[ci fraz. Pominite terminy zwikszaj rozlu|nienie frazy oraz zmniejszanj wydajno[ autofrazy. Domy[lna warto[ to 2 (%).Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). uiPrefsDialogBaseHelvetica-10 Helvetica-10uiPrefsDialogBase6Ukryj duplikaty w wynikach.Hide duplicate results.uiPrefsDialogBase:Pod[wietl terminy z zapytaniaHighlight color for query termsuiPrefsDialogBasexWy[wietl tylko raz gdy tak sama zawarto[ (cho r|ne nazwy)XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBaseLinie w PRE nie s zwijane. U|ycie BR zaciera wcicia. PRE + Zawijaj styl mo|e by tym co szukasz.iLines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want.uiPrefsDialogBaselMaks. rozmiar tekstu dla wyr|nienia w podgldzie (MB)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBase2Liczba wynikw na stronie"Number of entries in a result pageuiPrefsDialogBase@Otwrz okno by wybra snipet CSSAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBase8Otwiera okno wyboru czcionek-Opens a dialog to select the result list fontuiPrefsDialogBaseDOtwiera okno wyboru arkusza stylw-Opens a dialog to select the style sheet fileuiPrefsDialogBase"Zcie|ki tBumaczeDPaths translationsuiPrefsDialogBaseDStyl linii czystego tekstu do HTMLPlain text to HTML line styleuiPrefsDialogBase\U|yj HTML (zamiast czysty tekst) dla podgldu.&Prefer Html to plain text for preview.uiPrefsDialogBase\Magiczne przyrostki nazw plikw jzyka zapytaD(Query language magic file name suffixes.uiPrefsDialogBase2Pamitaj stan sortowania.Remember sort activation state.uiPrefsDialogBase^UsuD z listy. Brak skutku dla indeksu na dysku.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase UsuD zaznaczenieRemove selecteduiPrefsDialogBase@ZamieD streszczenia z dokumentw Replace abstracts from documentsuiPrefsDialogBase ResetResetuiPrefsDialogBase Reset stylu okna Resets the Snippets window styleuiPrefsDialogBaseFReset czcionki wynikw do domy[lnej1Resets the result list font to the system defaultuiPrefsDialogBaseDReset arkusza stylw do domy[lnych!Resets the style sheet to defaultuiPrefsDialogBaseLista wynikw Result ListuiPrefsDialogBase,Czcionka listy wynikwResult list fontuiPrefsDialogBase.Szukaj podczas pisania.Search as you type.uiPrefsDialogBase$Parametry szukaniaSearch parametersuiPrefsDialogBase$Okno snippetw CSSSnippets window CSS fileuiPrefsDialogBaseRRozpocznij oknem zaawansowanego szukania.'Start with advanced search dialog open.uiPrefsDialogBaseJzyk ciosaniaStemming languageuiPrefsDialogBaseArkusz stylw Style sheetuiPrefsDialogBaseTKontekstowe wyrazy sztucznego streszczenia Synthetic abstract context wordsuiPrefsDialogBaseVRozmiar sztucznego streszczenia (w znakach)$Synthetic abstract size (characters)uiPrefsDialogBaseTeksty powy|ej tego rozmiaru bd ukryte w podgldzie (zbyt wolne).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBaseWyrazy z listy zostan automatycznie zmienione w klauzule ext:xxx we wpisach jzyka zapytaD.bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase$Odwrc zaznaczenieToggle selecteduiPrefsDialogBase WygldUser interfaceuiPrefsDialogBaseUstawieniaUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_uk.qm0000644000175000017500000007160312602163537016624 0ustar dockesdockes.cXMaQnvX{4c nxC LSI3D p#Uv0w 5.aw 53w 57lUDLֳ<69f3'ͼubgg$;UhUe L kQ&^.Nt7O?d0JUYJUY/RY;i/ʗʗ$B^_'LZ:xFA-"4sL@EX4I I nf=fA&fZ&(4#^X|A -Z z:--v)Tf]B9DBS8r?).rI,,<<(69|AS â! 2!R:GǢ~C +h^`,%" 6UKfp hX2T#?BHKJ %9?710X SCY{FW#7FN\Nwϗ09n.X$ ,Ót\Ót%Ɇtj:ucMQ2}}h0K6 0lTcHz k H% 9Zy6' K+f ]# [e 9B ü>c \ c@ +<I 6 `P ` cE*N yx IT Cm / ) ) )] TH  T|c'! h  t9L Σ*  ۷+ Zb 'И(f / Z P֙ RV" T#+ VH \iCe `F* < W ~` 9 8UY Fp mC_ y> y~ 3 u43 P P#) 5db Hs £<7^/.<i=&G7J4b&zc13.23.5/=P -G"˓I>;@Q~dzY~s'x[s,g3+ Q||g^'! l%wLikAV ?>;O All clauses AdvSearchC4L-O:5 ?>;5 Any clause AdvSearch<C;LB8<54V0media AdvSearch?>2V4><;5==Omessage AdvSearchV=H5other AdvSearch?@575=B0FVW presentation AdvSearchB01;8FV spreadsheet AdvSearch B5:ABtext AdvSearch<----- AV <----- All AdvSearchBase<----- 81 <----- Sel AdvSearchBase>40B8 ?>;5 Add clause AdvSearchBase!:;04=89 ?>HC:Advanced search AdvSearchBaseAV -----> All ----> AdvSearchBaseAV =5?CABV ?>;O 1C45 >1'T4=0=> 70 4>?><>3>N  ("CAV A;>20") 01> " ("1C4L-O:V A;>20").<br>>;O B8?C "1C4L-O:V A;>20", "CAV A;>20" B0 "157 F8E A;V2" ?@89<0NBL AC<VH A;V2 B0 D@07 C ?>42V9=8E ;0?:0E.<br>>;O 157 40=8E =5 15@CBLAO 4> C2038.All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions.
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBase5@53;O4Browse AdvSearchBase> :0B53>@VOE By categories AdvSearchBaseT8:>@8AB>2C20B8 DV;LB@0FVN ?> B8?0E D09;V2,Check this to enable filtering on file types AdvSearchBaseX8:>@8AB>2C20B8 :0B53>@VW 70<VABL B8?V2 MIME;Check this to use file categories instead of raw mime types AdvSearchBase0:@8B8Close AdvSearchBase@81@0B8 ?>;5 Delete clause AdvSearchBase0(C:0B8 BV;L:8 C :0B0;>7VEnter top directory for search AdvSearchBase3=>@>20=VIgnored file types AdvSearchBase(1<568B8 B8?8 D09;V2Restrict file types AdvSearchBaseJ1<568B8 ?>HC: ?> D09;0E 7 ?V445@520:%Restrict results to files in subtree: AdvSearchBase$15@53B8 O: B8?>2VSave as default AdvSearchBaseT(C:0B8<br>4>:C<5=B8,</br>I> 704>2V;L=ONBL:'Search for
documents
satisfying: AdvSearchBase 060=VSearched file types AdvSearchBase81 -----> Sel -----> AdvSearchBase (C:0B8 Start Search AdvSearchBaseV4<V=8B8Cancel EditTransBaseB :>=DV3C@0FVW =5<0T :0B0;>3C   No db directory in configurationMain&0ABC?=5&NextPreview&>?5@54=T &PreviousPreview&(C:0B8: &Search for:Preview|5<>6;82> ?5@5B2>@8B8 4>:C<5=B =0 2=CB@VH=T ?@54AB02;5==O 4;O 0Can't turn doc into internal representation for PreviewV4<V=8B8CancelPreview !B5@B8ClearPreview0:@8B8 2:;04:C Close TabPreview6!B2>@NN B5:AB 4;O ?5@53;O4CCreating preview textPreviewJ020=B06CN B5:AB ?5@53;O4C 2 @540:B>@ Loading preview text into editorPreview,&'CB;82VABL 4> @5TAB@C Match &CasePreview@5 7=0945=> 4>?><V6=C ?@>3@0<C: Missing helper program: Preview>:07C20B8 ?>;O Show fieldsPreviewTextEdit2>:07C20B8 >A=>2=89 B5:ABShow main textPreviewTextEdit:<b>V445@520 7 =0;0HBC20==O<8Customised subtreesQObjecth<i>86G5=02545=V ?0@0<5B@8 7<V=NNBLAO 01> =0 25@E=L><C @V2=V, O:I><br>=5 281@0=> =VG>3> 01> ?CAB89 @O4>:, 01> 4;O 281@0=>W B5:8.<br>8 <>65B5 4>40B8 01> ?@81@0B8 B5:8 :=>?:0<8 +/-.The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject> >7:@820B8 A8<2>;VG=V ?>A8;0==OFollow symbolic linksQObject%>48B8 ?> A8<;V=:0E ?@8 V=45:A0FVW. "8?>2> "=V" 4;O C=8:=5==O 4C1;V:0BV2TFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObject$030;L=V ?0@0<5B@8Global parametersQObject8=45:AC20B8 2AV =0728 D09;V2Index all file namesQObject =45:AC20B8 B0:>6 =0728 D09;V2, 2<VAB O:8E =5 <>65 1CB8 2?V7=0=> G8 >1@>1;5=> (=52V4><89 01> =5?V4B@8<C20=89 B8? MIME). "8?>2> "B0:"}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject"VAF52V ?0@0<5B@8Local parametersQObject 0@0<5B@8 ?>HC:CSearch parametersQObject @>?CA:0B8 =0728 Skipped namesQObject!?8A>: B5: C V=45:A>20=V9 VT@0@EVW,<br>4;O O:8E 45O:V ?0@0<5B@8 ?>B@V1=> 7<V=8B8. "8?>2>: ?CAB89.sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObjectj(01;>=8 =072 D09;V2 01> B5:, O:V =5 1C45 V=45:A>20=>.LThese are patterns for file or directory names which should not be indexed.QObject&5@53;O=CB8&PreviewQWidget,>?VN20B8 &=072C D09;0Copy &File NameQWidget>?VN20B8 &URL Copy &URLQWidget.=09B8 &AE>6V 4>:C<5=B8Find &similar documentsQWidget>?5@5465==OWarningRTIToolW(2AV <>28)(all languages)RclMain(157 A;>2>D>@<) (no stemming)RclMain@> Recoll About RecollRclMain2AVAllRclMain@5 <>6C AB2>@8B8 2V:=> ?5@53;O4CCan't create preview windowRclMainl5<>6;82> 74>1CB8 4>:C<5=B G8 AB2>@8B8 B8<G0A>289 D09;0Cannot extract document or create temporary fileRclMainJ5 <>6C 74>1CB8 4>:C<5=B 7 1078 40=8E+Cannot retrieve document info from databaseRclMain0:@820NClosingRclMain$AB>@VO 4>:C<5=BV2Document historyRclMain8:>=CN: [ Executing: [RclMain0=V VAB>@VW History dataRclMain=45:ACTBLAO: Indexing in progress: RclMain,=45:AC20==O ?5@5@20=>Indexing interruptedRclMain6V4ACB=V 4>40B:>2V ?@>3@0<8Missing helper programsRclMain:AV 4>40B:>2V ?@>3@0<8 =0O2=VNo helpers found missingRclMainG8AB8B8PurgeRclMain" 57C;LB0B8 70?8BC Query resultsRclMain070 :>@5=V2StemdbRclMain.5&@5@20B8 V=45:AC20==OStop &IndexingRclMain0&59 ?>HC: 265 =50:B82=89"This search is not active any moreRclMain52V4><>UnknownRclMain >=>28B8 &V=45:A Update &IndexRclMain>?5@5465==OWarningRclMain:?><8;:0 74>1C20==O A?8A:C <>2#error retrieving stemming languagesRclMainDV;LB@>20=5filteredRclMain <54V0mediaRclMain?>2V4><;5==OmessageRclMainV=H5otherRclMain?@575=B0FVW presentationRclMainA>@B>20=5sortedRclMainB01;8FV spreadsheetRclMain B5:ABtextRclMain@> &Recoll &About Recoll RclMainBase&!:;04=89 ?>HC:&Advanced Search RclMainBase8&G8AB8B8 VAB>@VN 4>:C<5=BV2&Erase document history RclMainBase &$09;&File RclMainBase&>2V4:0&Help RclMainBase&0;0HBC20==O &Preferences RclMainBase"V4ACB=V ?@>3@0<8&Show missing helpers RclMainBase*&0@0<5B@8 A>@BC20==O&Sort parameters RclMainBase&=AB@C<5=B8&Tools RclMainBase*&>2V4=8: :>@8ABC20G0 &User manual RclMainBase8!:;04=89 (?>3;81;5=89) ?>HC:Advanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBase$AB>@VO 4>:C<5=BV2Document History RclMainBase&&AB>@VO 4>:C<5=BV2Document &History RclMainBase &8EV4E&xit RclMainBase4V0;>3 7>2=VH=L>3> V=45:ACExternal index dialog RclMainBase5@H0 AB>@V=:0 First page RclMainBaseL5@59B8 4> ?5@H>W AB>@V=:8 @57C;LB0BV2Go to first page of results RclMainBase"0ABC?=0 AB>@V=:0 Next page RclMainBase:0ABC?=0 AB>@V=:0 @57C;LB0BV2Next page of results RclMainBase$>?5@54=O AB>@V=:0 Previous page RclMainBase<>?5@54=O AB>@V=:0 @57C;LB0BV2Previous page of results RclMainBase RecollRecoll RclMainBase(0@0<5B@8 A>@BC20==OSort parameters RclMainBase&&02V0B>@ B5@<V=V2Term &explorer RclMainBase@=AB@C<5=B 4;O 282G0==O B5@<V=V2Term explorer tool RclMainBase &>=>28B8 V=45:A Update &index RclMainBase0B0Date RecollModel<'O D09;C File name RecollModel (?>:070B8 70?8B) (show query)ResList2<p><b>5 7=0945=></b><br>

No results found
ResList$AB>@VO 4>:C<5=BV2Document historyResList>:C<5=B8 DocumentsResList0ABC?=0NextResListV4:@8B8OpenResList5@53;O4PreviewResList>?5@54=OPreviousResList5B0;V 70?8BC Query detailsResList$!?8A>: @57C;LB0BV2 Result listResList&>:C<5=B =54>AO6=89Unavailable documentResList?>forResList7 ?@8=09<=Vout of at leastResList#AV A;>20 All termsSSearchC4L-O:5 A;>2>Any termSSearch*52V@=89 @O4>: 70?8BCBad query stringSSearch254VBL ?>HC:>2V A;>20. >6=0 28:>@8AB>2C20B8 Esc-?@>1V; 4;O 4>?>2=5==O.FEnter search terms here. Type ESC SPC for completions of current term.SSearch<'O D09;C File nameSSearch&54>AB0B=L> ?0<'OBV Out of memorySSearch>20 70?8BCQuery languageSSearch&15@VBL B8? ?>HC:C.Choose search type. SSearchBase !B5@B8Clear SSearchBase Ctrl+SCtrl+S SSearchBase254VBL ?>HC:>2V A;>20. >6=0 28:>@8AB>2C20B8 Esc-?@>1V; 4;O 4>?>2=5==O.FEnter search terms here. Type ESC SPC for completions of current term. SSearchBase2!B5@B8 2<VAB @O4:0 70?8B0Erase search entry SSearchBaseSSearchBase SSearchBase SSearchBase =09B8Search SSearchBase>G0B8 70?8B Start query SSearchBase2AVAll SearchClauseW<'O D09;C File name SearchClauseWlV;L:VABL 4>40B:>28E A;V2, I> <>6CBL 1CB8 <V6 >1@0=8<8HNumber of additional words that may be interspersed with the chosen ones SearchClauseWj815@VBL B8? 70?8BC, O:89 1C45 7@>1;5=> ?> F8E A;>20E>Select the type of query that will be performed with the words SearchClauseW0ABC?=0NextSnippets =09B8Search SnippetsW&0:@8B8&Close SpellBase& >7:@8B8 &Expand  SpellBase Alt+CAlt+C SpellBase$02V0B>@ B5@<V=V2 Term Explorer SpellBase4><8;:0 @>7:@8BBO aspell. Aspell expansion error. SpellWn5 240;>AO 70?CAB8B8 aspell. >=> 27030;V 2AB0=>2;5=5?)Aspell init failed. Aspell not installed?SpellW* >7:@8BBO =5 7=0945=5No expansion foundSpellW 5328@07RegexpSpellW0?8A/72CG0==OSpelling/PhoneticSpellW& >7:@8BBO A;>2>D>@<Stem expansionSpellW !;>2>TermSpellW(01;>=8 WildcardsSpellW:?><8;:0 74>1C20==O A?8A:C <>2#error retrieving stemming languagesSpellW5@53;O4Choose UIPrefsDialogJ1@0=0 B5:0 =5 AE>60 =0 V=45:A Xapian;The selected directory does not appear to be a Xapian index UIPrefsDialogB1@0=0 B5:0 265 C A?8A:C V=45:AV23The selected directory is already in the index list UIPrefsDialog:&5 >A=>2=89/;>:0;L=89 V=45:A!This is the main/local index! UIPrefsDialog:?><8;:0 74>1C20==O A?8A:C <>2#error retrieving stemming languages UIPrefsDialog0:@8B8CloseViewActionBase" V4=V ?5@53;O40GVNative ViewersViewActionBaseH5<>6;82> 70?8A0B8 D09; :>=DVC@0FVWCan't write configuration fileconfgui::ConfIndexW5@53;O4Chooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW;>10;L=VGlobalconfgui::ConfSubPanelWD560 @>7<V@C AB8A=5=8E D09;V2 (KB)Max. compressed file size (KB)confgui::ConfSubPanelW &5 7=0G5==O 2AB0=>2;NT ?>@V3 @>7<V@C AB8A=5=8E D09;V2, 1V;LHV 70 =L>3> =5 1C45 >?@0FL>20=>. -1 28<8:0T ;V<VB, 0 28<8:0T 45:><?@5AVN.This value sets a threshold beyond which compressedfiles will not be processed. Set to -1 for no limit, to 0 for no decompression ever.confgui::ConfSubPanelW>20 aspellAspell languageconfgui::ConfTopPanelW"5:0 1078 40=8EDatabase directory nameconfgui::ConfTopPanelW8<8:0T 28:>@8AB0==O aspell 4;O 35=5@0FVW =01;865=L C =0?8A0==O 2 =02V0B>@V B5@<V=V2.<br>>@8A=5, :>;8 aspell 2V4ACB=V9 01> 7;0<0=89. Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelW<=B5@20; A:840==O V=45:AC (1)Index flush megabytes intervalconfgui::ConfTopPanelW$09; 6C@=0;C Log file nameconfgui::ConfTopPanelW&>:;04=VABL 6C@=0;CLog verbosity levelconfgui::ConfTopPanelWD0:A8<0;L=5 28:>@8AB0==O 48A:C (%)Max disk occupation (%)confgui::ConfTopPanelW25 28:>@8AB>2C20B8 aspellNo aspell usageconfgui::ConfTopPanelW @>?CA:0B8 H;OE8 Skipped pathsconfgui::ConfTopPanelW(>28 7V A;>2>D>@<0<8Stemming languagesconfgui::ConfTopPanelWr$09;, :C48 ?V4CBL ?>2V4><;5==O.<br>'stderr' 4;O B5@<V=0;CPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelW~>28, 4;O O:8E 1C45 ?>1C4>20=><br>A;>2=8:8 @>7:@8BBO A;>2>D>@<.IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelW!?8A>: B5:, 7 O:8E ?>G8=0TBLAO @5:C@A82=5 V=45:AC20==O. "8?>2>: 4><0H=O B5:0.LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelW&5 =0728 B5:, C O:V V=45:AC20==O =5 ?>B@0?8BL.<br> >65 <VAB8B8 H01;>=8. 0T A?V2?040B8 V7 H;OE0<8, I> 10G8BL V=45:A0B>@ (=0?@8:;04, O:I> topdirs <VAB8BL '/home/me' B0 '/home' T ?>A8;0==O< =0 '/usr/home', B> 2V@=89 70?8A 1C45 '/home/me/tmp*', 0 =5 '/usr/home/me/tmp*')#These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWV4A>B>: 709=OB>3> 48A:C, :>;8 V=45:AC20==O 1C45 7C?8=5=> (I>1 C=8:=CB8 70?>2=5==O 4>ABC?=>3> ?@>AB>@C).<br>"8?>2>: 0 (157 ;V<VBC).This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelW!:V;L:8 40=8E 1C45 ?@>V=45:A>20=> <V6 A:840==O<8 V=45:AC =0 48A:.<br>>?><030T :>=B@>;N20B8 28:>@8AB0==O ?0<'OBV V=45:A0B>@><. "8?>2>: 101 This value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWAB0=>28B8 >1AO3 ?>2V4><;5=L,<br>2V4 ?><8;>: 4> 40=8E 7=520465==O.ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelW5@E=V B5:8Top directoriesconfgui::ConfTopPanelW&V4<V=0&CanceluiPrefsDialogBase&OK&OKuiPrefsDialogBase>HC: [rolling stones] (2 A;>20) 1C45 7<V=5=> =0 [rolling or stones or (rolling phrase 2 stones)]. &5 <>65 ?V4=OB8 @57C;LB0B8, 2 O:8E ?>HC:>2V A;>20 7CAB@VG0NBLAO A0<5 2 B0:V9 ?>A;V4>2=>ABV, O: 2 70?8BV.A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBase:;NG8B8 2A5 Activate AlluiPrefsDialogBase>40B8 V=45:A Add indexuiPrefsDialogBase"0AB>AC20B8 7<V=8 Apply changesuiPrefsDialogBaseX>G8=0B8 ?@>AB89 ?>HC: ?@8 22545==V ?@>1V;C.-Auto-start simple search on whitespace entry.uiPrefsDialogBaseZ2B><0B8G=> 4>4020B8 D@07C 4> ?@>AB8E ?>HC:V2+Automatically add phrase to simple searchesuiPrefsDialogBase5@53;O4ChooseuiPrefsDialogBase"15@VBL @540:B>@8Choose editor applicationsuiPrefsDialogBase8:;NG8B8 2A5Deactivate AlluiPrefsDialogBaseV4<V=8B8 7<V=8Discard changesuiPrefsDialogBase~'8 @>18B8 =>289 :>=A?5:B, =02VBL O:I> O:89AL 265 T 2 4>:C<5=BV?EDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBase '8 =0<030B8AO 1C4C20B8 :>=A?5:B8 4;O @57C;LB0BV2 ?>HC:C, 28:>@8AB>2CNGV :>=B5:AB 7=0945=8E A;V2? >65 ?@0FN20B8 ?>2V;L=> 4;O 25;8:8E 4>:C<5=BV2.zDo we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents.uiPrefsDialogBase88=0<VG=> 1C4C20B8 :>=A?5:B8Dynamically build abstractsuiPrefsDialogBase >2=VH=V V=45:A8External IndexesuiPrefsDialogBaseHelvetica-10 Helvetica-10uiPrefsDialogBase %>20B8 4C1;V:0B8Hide duplicate results.uiPrefsDialogBase:>;V@ 284V;5==O :;NG>28E A;V2Highlight color for query termsuiPrefsDialogBase/:I> C2V<:=5=5, @57C;LB0B8 A B0:8< A0<8< 7<VAB>< B0 @V7=8<8 =0720<8 1C45 ?>:070=> =5 1V;LH5 >4=>3> @07C.XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBaseb0:A8<0;L=89 @>7<V@ B5:ABC V7 ?V4A2VGC20==O< (1)5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseBV;L:VABL @57C;LB0BV2 =0 AB>@V=:C"Number of entries in a result pageuiPrefsDialogBasebV4:@820T 4V0;>3 281>@C H@8DBC A?8A:C @57C;LB0BV2-Opens a dialog to select the result list fontuiPrefsDialogBasedV44020B8 ?5@5203C HTML =04 B5:AB>< 4;O ?5@53;O4C.&Prefer Html to plain text for preview.uiPrefsDialogBase80?0<'OB0B8 AB0= A>@BC20==O.Remember sort activation state.uiPrefsDialogBasef840;8B8 7V A?8A:C. 5 2?;820T =0 48A:>289 V=45:A.7Remove from list. This has no effect on the disk index.uiPrefsDialogBase 840;8B8 281@0=5Remove selecteduiPrefsDialogBaseL0<V=OB8 =0O2=V C 4>:C<5=B0E :>=A?5:B8 Replace abstracts from documentsuiPrefsDialogBase!:8=CB8ResetuiPrefsDialogBaseD>25@B0T H@8DB C B8?>289 A8AB5<=891Resets the result list font to the system defaultuiPrefsDialogBase0(@8DB A?8A:C @57C;LB0BV2Result list fontuiPrefsDialogBase 0@0<5B@8 ?>HC:CSearch parametersuiPrefsDialogBase\V4:@820B8 4V0;>3 A:;04=>3> ?>HC:C ?@8 AB0@BV.'Start with advanced search dialog open.uiPrefsDialogBase>20 A;>2>D>@<Stemming languageuiPrefsDialogBase8>=B5:AB=8E A;V2 C :>=A?5:BV Synthetic abstract context wordsuiPrefsDialogBaseT >7<V@ A8=B5B8G=>3> :>=A?5:BC (C A8<2>;0E)$Synthetic abstract size (characters)uiPrefsDialogBase"5:AB8 V7 @>7<V@><, 1V;LH8< 70 2:070=89, =5 1C45 ?V4A2VG5=> C ?>?5@54=L><C ?5@53;O4V (?>2V;L=>).CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBase&5@5:;NG8B8 281@0=5Toggle selecteduiPrefsDialogBase=B5@D59AUser interfaceuiPrefsDialogBase?>4>10==OUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/i18n/recoll_zh_CN.qm0000644000175000017500000024130512602163537017204 0ustar dockesdockes.cDo2WNIXM'VXE`^%hGUltܭnYwgw'~HÏvwwc xCͺ LSI٧؅ p#vv{w 5Ьw 5|w 5|wU9.ֳ6;f3#ͼu'g>g^D׸~;;UFUe : 2!D-&!`.N}7P=d.?djG$JUYJUYY[uq_nX0u"ʷZg36ʗʗ)W^% Lx Jg"AΣ(E%AB "<. Ͷd;[o<LNBe 2vh(Pbψ"3 \Z IGInߤffft,H WFW,y%Dy%"w΄:#"X|rWD!̔iՙi -Z zW-)T-3B9BSkoݙr?)҉r`|ak,<J"/AS â RguFǢ I^~C >g/`ʙMIn$" :UK.@p h@u9gv2T#BKA %1n5l7^Q[X EnD!w)C'!v#+07I^W<~TFW#FN lH:"N_guf9ap4f H8|Nwϗԥnߝ IlÓtpÓtȍRɆt2Z]8G%  #-3,y:u*mG.JnQ}};Eנ0?0,@cی@c䴥:?  ; 2 HR -(G 9ZyN ;3 Dl Kɛ ]#V cC k# lMW 1 qD \ ~  9 ü>+7 3H   *N :^# c~ *RE +<  6 >V G.~e `PA ` aEa cEȑ d8 y I  VT C~ 4 ǩ  7 ԅ ) yeD THi  ,x =!h Kj T|cŅ h t9 A S Σ r d ٷ3 ۷f , ?&e Vd  'ИƆ +bCc /} 9ɝ L*֤ P֙ RV T#F V \iC,R ]0 `F: hi v {l* !Ys !Y+ W̪  o Z  i o d  ~% N k m9 'Rfy - 8) F OEe ]H ]_ mC%V u0 yk y~ 3 ȩ{ u P PE 5d( DX 7 z ՒF Hq Q5 £* q$%n/.8bJ9 <0fu˓ 1o!5^y;m=>IQ~+W"Y~s[sl\Ee3=g3lp~. !c<mWc||.' l Li3QhgaN All clauses AdvSearchNagaN Any clause AdvSearcheN\:[nVhvTSUOMN kcxn$Bad multiplier suffix in size filter AdvSearch YZOSeNmedia AdvSearchNmessage AdvSearchQv[other AdvSearchoy:ehc presentation AdvSearchu5[Phh< spreadsheet AdvSearcheg,text AdvSearch !yRQh <----- All AdvSearchBase !yR N-y <----- Sel AdvSearchBasemRgaN Add clause AdvSearchBasezd}"Advanced search AdvSearchBase yRQh! All ----> AdvSearchBaseSvb@g ^zz[WkOc qg;N QhgaN  y b;b NagaN  y ge~T0<br> Na  Qh T e N y[Wk|{WcS׏Qe{SU͋TS_S_u(v~v~T0<br>zzvQehFO_ue0All non empty fields on the right will be combined with AND ("All clauses" choice) or OR ("Any clause" choice) conjunctions.
"Any" "All" and "None" field types can accept a mix of simple words, and phrases enclosed in double quotes.
Fields with no data are ignored. AdvSearchBasemOBrowse AdvSearchBase c Y'|{gen By categories AdvSearchBase N-N* NO[egۈLn'Check this to enable filtering on dates AdvSearchBase" N-N* NO[eN|{WۈLn,Check this to enable filtering on file types AdvSearchBase" N-N* NO[eN\:[ۈLn'Check this to enable filtering on sizes AdvSearchBase4 N-N* NOOu(Y'vR|{ N Ou(QwOSveN|{W;Check this to use file categories instead of raw mime types AdvSearchBaseQsClose AdvSearchBaseR dgaN Delete clause AdvSearchBaseQed}"vgN \Bv_UEnter top directory for search AdvSearchBasenFilter AdvSearchBaseneg Filter dates AdvSearchBasen\:[ Filter sizes AdvSearchBasegb~Find AdvSearchBaseNFrom AdvSearchBase_ueveN|{WIgnored file types AdvSearchBase S͏lngaNInvert AdvSearchBasegY'\:[ Max. Size AdvSearchBase0gY'\:[0O`SOu(k/K0m/M0g/GO\N:SUOM4Maximum size. You can use k/K,m/M,g/G as multipliers AdvSearchBaseg\\:[ Min. Size AdvSearchBase0g\\:[0O`SOu(k/K0m/M0g/GO\N:SUOM4Minimum size. You can use k/K,m/M,g/G as multipliers AdvSearchBase P[eN|{WRestrict file types AdvSearchBase"\~gN-veNP[W(kd[Pv_UhN-%Restrict results to files in subtree: AdvSearchBase O[XN:؋P<Save as default AdvSearchBase(d}"<br>n፳NN gaN<br>vehc'Search for
documents
satisfying: AdvSearchBase\d}"veN|{WSearched file types AdvSearchBase yR N-y! Sel -----> AdvSearchBase_Yd}" Start Search AdvSearchBaseR0To AdvSearchBase<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T19:47:37" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T19:56:53" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } .T3 { font-style:italic; } .T4 { font-family:Courier New,courier; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> by}"_RNR(cron) </p><p class="P1">kN*[WkSNSbNN*M{&(*)0SUN*ep[WP<0SRvRh(1,3,5)TV(1-7)0fQxnW0 N[WkO<span class="T3">c Sh7</span>QR0crontab eNN- VkdّSNOu(crontab vb@g l S€crontab(5)0</p><p class="P1"><br/>OY W(<span class="T3">eg</span>N-Qe<span class="T4">*</span> <span class="T3">\e</span>N-Qe<span class="T4">12,19</span> <span class="T3">R</span>N-Qe<span class="T4">15 </span>v OW(kY)v12:15 AM T7:15 PMT/Rrecollindex0</p><p class="P1">NN*~AbgLvRNR Qv`'SkN N [e}"_0</p></body></html> 

Recoll batch indexing schedule (cron)

Each field can contain a wildcard (*), a single numeric value, comma-separated lists (1,3,5) and ranges (1-7). More generally, the fields will be used as is inside the crontab file, and the full crontab syntax can be used, see crontab(5).


For example, entering * in Days, 12,19 in Hours and 15 in Minutes would start recollindex every day at 12:15 AM and 7:15 PM

A schedule with very frequent activations is probably less efficient than real time indexing.

 CronToolW<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:08:00" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:11:47" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T2 { font-style:italic; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1">pQ<span class="T2">yu(</span>NP\kbۈLRSvby}"_ pQ<span class="T2">T/u(</span>NT/u(kdR pQ<span class="T2">Sm</span>RN e9SNOUN0</p></body></html> 

Click Disable to stop automatic batch indexing, Enable to activate it, Cancel to change nothing.

 CronToolWRNR[hF Cron Dialog CronToolW&fge(*b0-7 0b7f/cfgY)))Days of week (* or 0-7, 0 or 7 is Sunday) CronToolWyu(Disable CronToolWT/u(Enable CronToolW$cQecrongaveQ0hgl03Error installing cron entry. Bad syntax in fields ? CronToolW\e(*b0-23)Hours (* or 0-23) CronToolWPw wge]~g bKRvrecollindexgavN VkdelcrontabPIt seems that manually edited entries exist for recollindex, cannot edit crontab CronToolWR(0-59)Minutes (0-59) CronToolW[hFDialog EditDialogMn Config error EditTransg,W0_ Local path EditTransSYˍ_ Original path EditTransn_ Source path EditTransmRAdd EditTransBaseSmCancel EditTransBaseR dDelete EditTransBase_ScbPath Translations EditTransBaseO[XSave EditTransBaseD N-NN*bYN*eN|{W q6TOu(N bhFhFN-vcNgenYOUYt[NkSelect one or several file types, then use the controls in the frame below to change how they are processed EditTransBase[SONRn_ScbSetting path translations for  EditTransBase<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:14:44" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:23:13" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T2 { font-weight:bold; } .T4 { font-style:italic; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T2">g*b~R0[^NkdMn[Ov}"_epcn0</span><br/><br/>YgO`S`NN~Ttv؋Sepge}"_O`v[v_Uv \1vcc <span class="T4">zSs_Y}"_</span>c 0NTSNetMnSepv0</p><p class="P1">YgO``etgNNv \1Ou(N bvcgeetQvN-v}"_MnT[eRT'0</p><p class="P1">N]QwSW(NT<span class="T4"> y</span>SU0</p></body></html> 

It appears that the index for this configuration does not exist.

If you just want to index your home directory with a set of reasonable defaults, press the Start indexing now button. You will be able to adjust the details later.

If you want more control, use the following links to adjust the indexing configuration and schedule.

These tools can be accessed later from the Preferences menu.

FirstIdxDialog{,Nk!}"_nFirst indexing setupFirstIdxDialog}"_MnIndexing configurationFirstIdxDialog [e}"_NRIndexing scheduleFirstIdxDialog zSs_Y}"_Start indexing nowFirstIdxDialog^W(ّSNetO``[QvۈL}"_vv_U NSQv[Sep OYcdT_bT [W0؋[W{& & &This will let you adjust the directories you want to index, and other parameters like excluded file paths or names, default character sets, etc.FirstIdxDialogdW(ّSN bf/ۈLby}"_f/[e}"_ SN勾nNN*RSv[eOu(cron by}"_NR0This will let you chose between batch and real-time indexing, and set up an automatic schedule for batch indexing (using cron).FirstIdxDialogJ<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T20:27:11" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T20:30:49" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> }"_z ^Sc~ЈL^vNW(eNSuSSe[QvۈL}"_ N_SNN[eЈLNk!0</p><p class="P1">O`SNNN bKQ NOfY}W0PZQbbc F1 0</p><p class="P1">N*]QwS^.RO`nNN*RۈLby}"_v[eNR bnb_SO`v{_UeOT/R[e}"_bN$T eۈL _Sq6QNNlg aNI 0</p></body></html> 

Recoll indexing can run permanently, indexing files as they change, or run at discrete intervals.

Reading the manual may help you to decide between these approaches (press F1).

This tool can help you set up a schedule to automate batch indexing runs, or start real time indexing when you log in (or both, which rarely makes sense).

 IdxSchedW[eNRCron scheduling IdxSchedWy:[Wk Show fieldsPreviewTextEditf>y:VrG Show imagePreviewTextEdit f>y:N;eg,Show main textPreviewTextEdit<b>[NIv[Pv_UhCustomised subtreesQObject<i>NN vSep _SO`W(N bvRhN-N N-NOUgavb N-NN*zzLe <br>\1f/[v~v_UwO\u(v T&ROf/[ N-v[Pv_UwO\u(v0<br>O`SNpQ+/-c NOmRbR dv_U0The parameters that follow are set either at the top level, if nothing
or an empty line is selected in the listbox above, or for the selected subdirectory.
You can add or remove directories by clicking the +/- buttons.QObject ߎ*{&ScFollow symbolic linksQObject4W(}"_eߎ*{&Sc0؋f/N ߎ*v NQMY }"_TFollow symbolic links while indexing. The default is no, to avoid duplicate indexingQObjectQh\@SepGlobal parametersQObject[b@g eNT ۈL}"_Index all file namesQObjectT[NelR$ebYtQvQ[g*w|{WbQv|{WN e/c veNvT [WۈL}"_0؋N:f/}Index the names of files for which the contents cannot be identified or processed (no or unsupported mime type). Default trueQObject\@SepLocal parametersQObjectd}"SepSearch parametersQObjectueveNT  Skipped namesQObjectZf/]}"_vv_UhN-vNN[Pv_U~bvRh<br> [NvgNSep[NI0؋zzv}0sThe list of subdirectories in the indexed hierarchy
where some parameters need to be redefined. Default: empty.QObject$Qwg Nj!_veNbv_UN O}"_0LThese are patterns for file or directory names which should not be indexed.QObjectQuSS Web historyQObject bS_&O &OpenQWidgetbS_N N~ehc/v_U&O &Open Parent document/folderQWidget &P &PreviewQWidgetQQeeN&W &Write to FileQWidgetY R6eNT &F Copy &File NameQWidgetY R6_&U  Copy &URLQWidgetgb~|{Oy:[Pehc/DNShow subdocuments / attachmentsQWidget~<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/><title xmlns:ns_1="http://www.w3.org/XML/1998/namespace" ns_1:lang="en-US">- no title specified</title><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.title" content="" ns_1:lang="en-US"/><meta name="DCTERMS.language" content="en-US" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2012-03-22T21:00:38" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.modified" content="2012-03-22T21:02:43" scheme="DCTERMS.W3CDTF"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.provenance" content="" ns_1:lang="en-US"/><meta xmlns:ns_1="http://www.w3.org/XML/1998/namespace" name="DCTERMS.subject" content="," ns_1:lang="en-US"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; font-size:12pt;} h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { margin:0; padding:0;} li { list-style: none; margin:0; padding:0;} <!-- "li span.odfLiEnd" - IE 7 issue--> li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; } span.footnodeNumber { padding-right:1em; } span.annotation_style_by_filter { font-size:95%; font-family:Arial; background-color:#fff000; margin:0; border:0; padding:0; } * { margin:0;} .P1 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; font-family:Nimbus Roman No9 L; writing-mode:page; margin-left:0cm; margin-right:0cm; text-indent:0cm; } .T1 { font-weight:bold; } <!-- ODF styles with no properties representable as CSS --> { } </style></head><body dir="ltr" style="max-width:21.001cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; writing-mode:lr-tb; "><p class="P1"><span class="T1">Recoll</span> }"_z ^SNN[bz ve_ЈL W(eNSuSSeO[efe}"_0h7O`v}"_Nvf/NeNT kev OFf/OS`u(N[v|~ߍDn0</p></body></html> .

Recoll indexing can be set up to run as a daemon, updating the index as files change, in real time. You gain an always up to date index, but system resources are used permanently.

RTIToolWT ekdk!N_zSsT/R}"_z 0%Also start indexing daemon right now.RTIToolW*RT/ReN]~R d0N_g@k{_SRMz T2Autostart file deleted. Kill current process too ?RTIToolW elR^Can't create: RTIToolWelbgLrecollindexCould not execute recollindexRTIToolW kcW(R deN Deleting fileRTIToolW kcW(R d Deleting: RTIToolW[e}"_RT/R"Real time indexing automatic startRTIToolWkcW(R dRT/RyRemoving autostartRTIToolW kcW(fcbeNReplacing fileRTIToolW kcW(fcb Replacing: RTIToolW$W(bvhLbOT/ReOT/R}"_z 0.Start indexing daemon with my desktop session.RTIToolWfTJWarningRTIToolW[QhۈLh9{ (all languages)RclMainN ۈLh9{  (no stemming)RclMainRecollf About RecollRclMainQhAllRclMain<[%1vgw z ^T}NN [%2 hgmimevieweNCBad viewer command line for %1: [%2] Please check the mimeview fileRclMainelՋeNCan't access file: RclMainelR^zSCan't create preview windowRclMainelՉS)kdeNCan't uncompress file: RclMainelfe}"_}"_z ^]W(ЈL#Can't update index: indexer runningRclMainelcSehcbR^N4eeN0Cannot extract document or create temporary fileRclMainelb~R0NNehcCannot find parent documentRclMainelNepcn^SehcO`o+Cannot retrieve document info from databaseRclMainkcW(QsClosingRclMain]~N:NeN|{W}"_QvQ[.Content has been indexed for these mime types:RclMain4elbS_Y}"_0epcn^g*bS_0hgY}"_Rh0HCould not open external index. Db not open. Check external indexes list.RclMainehcSSDocument historyRclMain][bDoneRclMainY ehcDuplicate documentsRclMain kcW(R d}"_ Erasing indexRclMainErrorRclMain kcW(bgL[ Executing: [RclMainZW(N k!v}"_z N-Ss [YveN|{W :\NNYvz ^/T}N [NP[XW(SOeNN-pExternal applications/commands needed for your file types and not found, as stored by the last indexing pass in RclMainSSepcn History dataRclMain }"_g*bS_Index not openRclMain }"_gQIndex query errorRclMain]}"_veN|{WIndexed MIME TypesRclMain g*_Y}"_Indexing did not run yetRclMain}"_Y1%Indexing failedRclMain kcW(}"_Indexing in progress: RclMaing*b~R0vRz ^Missing helper programsRclMainvщVhMonitorRclMain$[kdyeN|{Wlg MnYgw Vh[-No external viewer configured for mime type [RclMainvRMN :\NOURz ^No helpers found missingRclMain g*b~R0~gNo results foundRclMaineNoneRclMainR dPurgeRclMainLgkcW(ۈLN-0<br>u1N}"_^vgNPR6 <br>SmvO[z ^QeQuery in progress.
Due to limitations of the indexing library,
cancelling will exit the programRclMaing~g Query resultsRclMainNY4e_Y}"_T(Reset the index and start from scratch ?RclMain~gepO0P< Result count (est.)RclMainO[XeN Save fileRclMainStemepcn^StemdbRclMainP\kb}"_&I Stop &IndexingRclMain [PehcSʖDNSub-documents and attachmentsRclMainL_SRM}"_z N f/u1kduLbT/Rv0pQxn[Ng@k{[ bpQSmN勩[u1ЈLyThe current indexing process was not started from this interface. Click Ok to kill it anyway, or Cancel to leave it aloneRclMainNlg b~R0mimeviewN-N:%1: %2Mnvgw Vh0 f/T&bS_ y[hFhThe viewer specified in mimeview for %1: %2 is not found. Do you want to start the preferences dialog ?RclMain,NN _|Q_ NKQqNw@vT vQ[-These Urls ( | ipath) share the same content:RclMainN*g]~N f/m;vN"This search is not active any moreRclMaing*wUnknownRclMainfe}"_&I  Update &IndexRclMainkcW(feUpdatingRclMain@[%1vgw z ^T}NN-T ec[NeNSNNeNP<f/N e/cvQViewer command line for %1 specifies both file and parent file value: unsupportedRclMainfTJWarningRclMaincS֋h9eQ#error retrieving stemming languagesRclMain]nfilteredRclMain YZOSeNmediaRclMainNmessageRclMainQv[otherRclMainoy:ehc presentationRclMain]c^sortedRclMainu5[Phh< spreadsheetRclMaineg,eNtextRclMainRecollf&A  &About Recoll RclMainBasezd}"&A &Advanced Search RclMainBaseR dehcSS&E &Erase document history RclMainBaseR dd}"SS&E &Erase search history RclMainBase eN&F &File RclMainBase Qh\O&F  &Full Screen RclMainBaseuLbn&G &GUI configuration RclMainBase ^.R&H &Help RclMainBase}"_n&I &Index configuration RclMainBase[e}"_&I &Indexing schedule RclMainBase y&P  &Preferences RclMainBaseeg }"_&R &Rebuild index RclMainBase ~g&R &Results RclMainBasef>y:]}"_veN|{W&S &Show indexed types RclMainBasef>y::\vRz ^Rh&S &Show missing helpers RclMainBasec^Sep&S &Sort parameters RclMainBase ]Qw&T &Tools RclMainBaseu(b7bKQ&U  &User manual RclMainBasez/Y gBd}"Advanced/complex Search RclMainBase Ctrl+QCtrl+Q RclMainBaseehcSSDocument History RclMainBaseehcSS&H Document &History RclMainBase Q&x E&xit RclMainBaseY}"_[hF&x E&xternal index dialog RclMainBaseY}"_[hFExternal index dialog RclMainBaseF11F11 RclMainBase{,Nu First Page RclMainBase{,Nu First page RclMainBaseQh\O Full Screen RclMainBaselR0~gv{,NuGo to first page of results RclMainBaseN Nu Next Page RclMainBaseN Nu Next page RclMainBase N Nu~gNext page of results RclMainBaseTN uPgDown RclMainBaseTN uPgUp RclMainBaseN Nu Previous Page RclMainBaseN Nu Previous page RclMainBase N Nu~gPrevious page of results RclMainBase RecollRecoll RclMainBaseO[XN:CSVu5[Phh< eNSave as CSV (spreadsheet) file RclMainBase(\~gO[XR0NN*Su(u5[Phhy:gS~ƂShow Query Details RclMainBaseNhh<_b_f>y: Show as table RclMainBase$NNN*|{Oy:~g(Show results in a spreadsheet-like table RclMainBasec egc^ eehcW(RMSort by date, newest first RclMainBasec egc^ eehcW(RMSort by date, oldest first RclMainBasec egcR gevW(RMb#Sort by dates from newest to oldest RclMainBasec egcR gevW(RMb#Sort by dates from oldest to newest RclMainBasec^SepSort parameters RclMainBase͋c}"Vh&e Term &explorer RclMainBase ͋c}"VhTerm explorer tool RclMainBasefe}"_&i  Update &index RclMainBasedXAbstract RecollModelO\Author RecollModelegDate RecollModel egSe Date and time RecollModelehceg Document date RecollModelehc\:[ Document size RecollModeleNeg File date RecollModeleNT  File name RecollModeleN\:[ File size RecollModelQ_Ipath RecollModelQs.Keywords RecollModeleN|{W MIME type RecollModelOe9eMtime RecollModelS[W{&Original character set RecollModelvQs^Relevancy rating RecollModelhTitle RecollModel_URL RecollModelf>y:gS~Ƃ  (show query)ResList&<p><b>g*b~R0~g</b><br>

No results found
ResList.<p><i>Qv[bQ_b__S </i>4

Alternate spellings (accents suppressed): ResList"<p><i>Qv[bQ_b_</i>

Alternate spellings: ResListehcSSDocument historyResList{, DocumentsResListN NN*NextResListbS_OpenResListPreviewResListN NN*PreviousResList gS~Ƃ Query detailsResList~gepO0P< Result count (est.)ResList~gRh Result listResListrGeSnippetsResList elՋehcUnavailable documentResListN*ehc ggaNforResListN*ehc g\Qqg out of at leastResListR dkdR&D &Delete columnResTablenc^gaN&R  &Reset sortResTableO[XN:CSV&S  &Save as CSVResTablemR"%1"RAdd "%1" columnResTableelbS_/R^eNCan't open/create file: ResTable\hhSelect the type of query that will be performed with the words SearchClauseWgb~Find:SnippetsN NN*NextSnippetsN NN*PrevSnippetsrGeSnippetsSnippetsd}"Search SnippetsW Qs&C &Close SpellBase \U_&E &Expand  SpellBaseSAccents SpellBase Alt+CAlt+C SpellBase Alt+EAlt+E SpellBaseY'\QCase SpellBaseS9MMatch SpellBaseg*b~R0epcn^O`o0 No db info. SpellBase ͋c}"Vh Term Explorer SpellBase %1N*~g %1 resultsSpellWAspellbi\UQ0Aspell expansion error. SpellW0AspellRYSY1%0f/T&g*[Aspell)Aspell init failed. Aspell not installed?SpellWkN*ehcN-v^sWGSUN*epAverage terms per documentSpellWepcn^v_U\:[Database directory sizeSpellW ehcep/`;ep Doc. / Tot.SpellW2}"_%1N*ehc ^sWG^N:%2N*SU0%3N*~g7Index: %1 documents, average length %2 terms.%3 resultsSpellWgavItemSpellWRh]c [Wk͘z^b*e gN*^81List was truncated alphabetically, some frequent SpellW gY'ehc^Longest document lengthSpellWYZOSehc|{WRh MIME types:SpellW g*b~R0bi\UNo expansion foundSpellWehcN*epNumber of documentsSpellW kcRh_RegexpSpellWf>y:}"_~ߋO`oShow index statisticsSpellW g\ehc^Smallest document lengthSpellWbQ/SїhgSpelling/PhoneticSpellWh9bi\UStem expansionSpellW͋TermSpellWP<ValueSpellWM{& WildcardsSpellWcS֋h9eQ#error retrieving stemming languagesSpellW,vSUSO:Y10\Ou(NN*fvh90.terms may be missing. Try using a longer root.SpellWgY^_S N-NN*}"_$At most one index should be selected UIPrefsDialog0elmR^&g N T vY'\Q/eO`oRje_v}"_>Cant add index with different case/diacritics stripping option UIPrefsDialog bChoose UIPrefsDialog~gRhhY4؋N:zz %Result list header (default is empty) UIPrefsDialog4~gRhvk=h<_R dQhQ[SsSnN:؋r` evP<</b>New Values:ViewActionBase*RO\zzv}Rhy:Ou(recollv؋P<  Action (empty -> recoll default)ViewActionBase^u(R0_SRM N-yN Apply to current selectionViewActionBaseQsCloseViewActionBase[hLb؋PYؗ[pkrvRecollcN \Enables indexing Firefox visited pages.
(you need also install the Firefox Recoll plugin)confgui::ConfBeaglePanelW(_S\:[R0[PYgOu(v[_ ROv[NMnv_Uv_ۈLYt0The name for a directory where to store the copies of visited web pages.
A non-absolute path is taken relative to the configuration directory.confgui::ConfBeaglePanelWQuP[Xv_UT Web page store directory nameconfgui::ConfBeaglePanelWelQQeMneNCan't write configuration fileconfgui::ConfIndexW bChooseconfgui::ConfParamFNW++confgui::ConfParamSLW--confgui::ConfParamSLW<p>Ygd}"SN-d[WkNKYST+g Y'Q[Wkv RRSY'\QvR$e0T&R YOu(gT<i>C</i>Op{&gec[[Y'\QvR$e0

Automatically trigger character case sensitivity if the entry has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity.confgui::ConfSearchPanelW<p>Ygd}"SN-ST+^&g Sry_(N W(unac_except_transN-)v RRSY'\QvR$e0T&R YOu(gT<i>D</i>Op{&gec[[Y'\QvR$e0

Automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity.confgui::ConfSearchPanelW<p>[SUN*SUvgY'h9bi\Uepv(OYkd yW(Ou(M{&eOueH)0؋v10000f/NN*rTtvP< YQM_S_dΐMSh9Rhe_wguLbPGk{0

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10 000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.confgui::ConfSearchPanelW<p>bNTSUN*XapiangSN-RQevgY'v[PSepv0gN`QN h9bi\Uv~gOf/P Xv bN`󉁐QMOu(YQ[X0؋v100000^_Sen፳e^8vY'RlB SȀN_SRMvQxWxlNMnvQ|[05

Maximum number of elementary clauses we add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.confgui::ConfSearchPanelWRet[W{&vY'\QeOa`'$Automatic character case sensitivityconfgui::ConfSearchPanelWRR$eY'\Q Automatic diacritics sensitivityconfgui::ConfSearchPanelWgY'vXapian[PSepvMaximum Xapian clauses countconfgui::ConfSearchPanelWgY'h9bi\UepvMaximum term expansion countconfgui::ConfSearchPanelW]O\eNN*Pf/[unacg:R6vOY ؋`QN g:R6OR db@g vR$eO`o ^vۈLkcvR0YSNc qg]vvryp[gN*[W{&vcSdn NSc[YvROY [Y ep 0W(kN*u1zzhThese are exceptions to the unac mechanism which, by default, removes all diacritics, and performs canonic decomposition. You can override unaccenting for some characters, depending on your language, and specify additional decompositions, e.g. for ligatures. In each space-separated entry, the first character is the source one, and the rest is the translation.confgui::ConfTopPanelWAspellAspell languageconfgui::ConfTopPanelW epcn^v_UT Database directory nameconfgui::ConfTopPanelWvykbW(͋c}"VhN-Ou(aspellgeubbQvv͋0<br>W(lg [aspellb[]O\N kc^8eOu(N* y0Disables use of aspell to generate spelling approximation in the term explorer tool.
Useful if aspell is absent or does not work. confgui::ConfTopPanelWR7e}"_v QF[WIndex flush megabytes intervalconfgui::ConfTopPanelW _UeNT  Log file nameconfgui::ConfTopPanelW_Uvu~R+Log verbosity levelconfgui::ConfTopPanelWgY'xlvS`u(s% Max disk occupation (%)confgui::ConfTopPanelWN Ou(aspellNo aspell usageconfgui::ConfTopPanelW uev_ Skipped pathsconfgui::ConfTopPanelWh9Stemming languagesconfgui::ConfTopPanelWTz ^Qvm`oOO[XR0N*eN0<br>Ou('stderr'Nhy:\m`oQR0~zPThe file where the messages will be written.
Use 'stderr' for terminal outputconfgui::ConfTopPanelWaspellQxv0hy:e_f/'en'b'fr' & &<br>YgN nN*P< ROOu(|~sXN-vq6nO`o N*^8f/kcxnv0`gw O`v|~N-[TTNv \1bgL'aspell config' QW('data-dir'v_UN-b~.dateN03The language for the aspell dictionary. This should look like 'en' or 'fr' ...
If this value is not set, the NLS environment will be used to compute it, which usually works. To get an idea of what is installed on your system, type 'aspell config' and look for .dat files inside the 'data-dir' directory. confgui::ConfTopPanelW*\O[N<br>g h9bi\UQx0IThe languages for which stemming expansion
dictionaries will be built.confgui::ConfTopPanelW:}"_NΏN*RhN-vv_U_Y _RW0ۈL0؋O`v[v_U0LThe list of directories where recursive indexing starts. Default: your home.confgui::ConfTopPanelWtu(geP[X}"_epcnvv_UvT [W<br>YgOu(v[_ R_Ov[NMnv_UۈL{0؋PA non-absolute path is taken relative to the configuration directory. The default is 'xapiandb'.confgui::ConfTopPanelW>}"_z N OQeQwg NT [Wvv_U0<br>SNST+M{&0_Ř{S9M}"_z ꎫb@R0v_OYYgtopdirsST+'/home/me' [EN '/home'f/R0'/usr/home'vc RkcxnvskippedPathgav^_Sf/'/home/me/tmp*' N f/'/usr/home/me/tmp*' #These are names of directories which indexing will not enter.
May contain wildcards. Must match the paths seen by the indexer (ie: if topdirs includes '/home/me' and '/home' is actually a link to '/usr/home', a correct skippedPath entry would be '/home/me/tmp*', not '/usr/home/me/tmp*')confgui::ConfTopPanelWr_SxlvvS`u(sR0N*epe }"_OY1%^vNP\kbNQMX^nO`vxlv 0<br>N:0Rhy:N RPR6f/؋P< 0This is the percentage of disk occupation where indexing will fail and stop (to avoid filling up your disk).
0 means no limit (this is the default).confgui::ConfTopPanelWvN*P<etvf/ _Sy}/TY\}"_epcne bM\epcnR7eR0xlvN S0<br>u(gecR6}"_z vQ[XS`u(`Q0؋N:10MBThis value adjust the amount of data which is indexed between flushes to disk.
This helps control the indexer memory usage. Default 10MB confgui::ConfTopPanelWTN*P<etvf/Qvm`ovep <br>Qv~R+NNŏQbO`oR0QNY'XO`o0ZThis value adjusts the amount of messages,
from only errors to a lot of debugging data.confgui::ConfTopPanelWv~v_UTop directoriesconfgui::ConfTopPanelW UnacOYUnac exceptionsconfgui::ConfTopPanelW Sm&C &CanceluiPrefsDialogBase xn[&O &OKuiPrefsDialogBase<BR>
uiPrefsDialogBase <PRE>

uiPrefsDialogBase<PRE>+cbL
 + wrapuiPrefsDialogBase[[n w] (2N*͋)vd}"OSb[n or w or (n 2N*͋ w)]0
[NNd}"͋W(QvN-c	qgSh7Qsv~gQvOQH~ONN0A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. 
This should give higher precedence to the results where the search terms appear exactly as entered.uiPrefsDialogBasedXN-vrGkvR{&Abstract snippet separatoruiPrefsDialogBaseQhom;Activate AlluiPrefsDialogBasemR}"_	Add indexuiPrefsDialogBase
Oe9SueH
Apply changesuiPrefsDialogBase Qezzh_Ne9SDiscard changesuiPrefsDialogBase4SsOehcg,bg	NN*dXbNNq6LTbdXO`oEDo we synthetize an abstract even if the document seemed to have one?uiPrefsDialogBaseTf/T&Ou(g͋ThVvN
Negeg ~gRhgavN-vdX
[NY'vehcSO_ab0zDo we try to build abstracts for result list entries by using the context of query terms ? 
May be slow for big documents.uiPrefsDialogBaseR`g dXDynamically build abstractsuiPrefsDialogBase ~gubvhtmlY4cQey#Edit result page html header insertuiPrefsDialogBase~gk=vh<_[W{&N2#Edit result paragraph format stringuiPrefsDialogBaseT/u(EnableuiPrefsDialogBaseY}"_External IndexesuiPrefsDialogBasef/NN*sP<ǏN*PR0R~N-0
ؘ͋f/~N-`'vN;gen0
uev͋OXR~vzz:P<VkdOMONR~RveHs0
؋Py:NN*0XIf checked, results with the same content under different names will only be shown once.uiPrefsDialogBasebPREeg,N-vNLf/N
ObSv0Ou(BRON"Y1NN)O`o0PRE+cbLhy:vgY'eg,\:[QF[W	5Maximum text size highlighted for preview (megabytes)uiPrefsDialogBaseNN*~gubN-f>y:v~ggaep"Number of entries in a result pageuiPrefsDialogBase0bS_NN*[hFN	brGezSvCSSh7_SUeNAOpens a dialog to select the Snippets window CSS style sheet fileuiPrefsDialogBase(bS_NN*[hFN	bu(N~gRhv[WOS-Opens a dialog to select the result list fontuiPrefsDialogBase bS_NN*[hFN	bh7_SUeN-Opens a dialog to select the style sheet fileuiPrefsDialogBase_ScbPaths translationsuiPrefsDialogBase ~eg,lcbN:HTMLcbL{&vh<Plain text to HTML line styleuiPrefsDialogBaseN-OQHOu(Html0&Prefer Html to plain text for preview.uiPrefsDialogBasegy^YGeNT
T0(Query language magic file name suffixes.uiPrefsDialogBaseOOc^r`0Remember sort activation state.uiPrefsDialogBase,NRhN-R d0N
O[xlvN
v}"_ bc_[07Remove from list. This has no effect on the disk index.uiPrefsDialogBase
R d	N-yRemove selecteduiPrefsDialogBaseSNehcN-^&vdX Replace abstracts from documentsuiPrefsDialogBasenResetuiPrefsDialogBasenrGezSvh7_ Resets the Snippets window styleuiPrefsDialogBase"\~gRhN-v[WOS͋N:|~ߞ؋P<1Resets the result list font to the system defaultuiPrefsDialogBase\h7_SUnN:؋P<!Resets the style sheet to defaultuiPrefsDialogBase~gRhResult ListuiPrefsDialogBase~gRh[WOSResult list fontuiPrefsDialogBaseW(QevTeۈLd}"0Search as you type.uiPrefsDialogBased}"SepSearch parametersuiPrefsDialogBaserGezSvCSSeNSnippets window CSS fileuiPrefsDialogBaseT/RebS_zd}"[hF0'Start with advanced search dialog open.uiPrefsDialogBaseh9Stemming languageuiPrefsDialogBaseh7_SUStyle sheetuiPrefsDialogBaseTbdXN
Ne Synthetic abstract context wordsuiPrefsDialogBaseTbdX^[W{&N*ep	$Synthetic abstract size (characters)uiPrefsDialogBase4ǏN*^veg,N
OW(zS̚Nf>y:Y*ab	0CTexts over this size will not be highlighted in preview (too slow).uiPrefsDialogBase@N*RhN-v͋OW(gQehF́RSbext:xxxS0bThe words in the list will be automatically turned to ext:xxx clauses in the query language entry.uiPrefsDialogBase
Rcb	N-yToggle selecteduiPrefsDialogBaseu(b7uLbUser interfaceuiPrefsDialogBaseu(b7	yUser preferencesuiPrefsDialogBaserecoll-1.21.5/qtgui/recoll.h0000644000175000017500000000326112602163537015153 0ustar  dockesdockes/* Copyright (C) 2004 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
#ifndef _RECOLL_H_INCLUDED_
#define _RECOLL_H_INCLUDED_

#include 

#include "rclconfig.h"
#include "rcldb.h"
#include "ptmutex.h"

#include 

// Misc declarations in need of sharing between the UI files

// Open the database if needed. We now force a close/open by default
extern bool maybeOpenDb(std::string &reason, bool force = true, 
			bool *maindberror = 0);

/** Retrieve configured stemming languages */
bool getStemLangs(vector& langs);

extern RclConfig *theconfig;

extern void rememberTempFile(TempFile);
extern void forgetTempFile(string &fn);

extern Rcl::Db *rcldb;
extern int recollNeedsExit;
extern void startManual(const string& helpindex);

extern void applyStyleSheet(const QString&);

#ifdef RCL_USE_ASPELL
class Aspell;
extern Aspell *aspell;
#endif

inline std::string qs2utf8s(const QString& qs)
{
    return std::string((const char *)qs.toUtf8());
}
#endif /* _RECOLL_H_INCLUDED_ */
recoll-1.21.5/qtgui/idxsched.h0000644000175000017500000000223712602163537015470 0ustar  dockesdockes/*
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
#ifndef _IDXSCHED_H_INCLUDED_
#define _IDXSCHED_H_INCLUDED_

#include "ui_idxsched.h"
#include "rclhelp.h"

class IdxSchedW : public QDialog, public Ui::IdxSchedW {
    Q_OBJECT
    public:
    IdxSchedW(QWidget * parent = 0) 
	: QDialog(parent)
    {
	setupUi(this);
	(void)new HelpClient(this);
	HelpClient::installMap((const char *)this->objectName().toUtf8(), 
			   "RCL.INDEXING");
    }
};


#endif /* _IDXSCHED_H_INCLUDED_ */
recoll-1.21.5/qtgui/advsearch_w.h0000644000175000017500000000447512602163571016167 0ustar  dockesdockes/* Copyright (C) 2005 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
#ifndef _ADVSEARCH_W_H_INCLUDED_
#define _ADVSEARCH_W_H_INCLUDED_

#include 

#include 
#include 

#include "searchclause_w.h"
#include "recoll.h"
#include "refcntr.h"
#include "searchdata.h"
#include "advshist.h"

class QDialog;

#include "ui_advsearch.h"

class AdvSearch : public QDialog, public Ui::AdvSearchBase
{
    Q_OBJECT

public:
    AdvSearch(QDialog* parent = 0) 
	: QDialog(parent)
    {
	setupUi(this);
	init();
    }
    ~AdvSearch(){}

public slots:
    virtual void delFiltypPB_clicked();
    virtual void delAFiltypPB_clicked();
    virtual void addFiltypPB_clicked();
    virtual void addAFiltypPB_clicked();
    virtual void guiListsToIgnTypes();
    virtual void filterDatesCB_toggled(bool);
    virtual void filterSizesCB_toggled(bool);
    virtual void restrictFtCB_toggled(bool);
    virtual void restrictCtCB_toggled(bool);
    virtual void runSearch();
    virtual void fromSearch(RefCntr sdata);
    virtual void browsePB_clicked();
    virtual void saveFileTypes();
    virtual void delClause();
    virtual void addClause();
    virtual void addClause(int);
    virtual bool close();
    virtual void slotHistoryNext();
    virtual void slotHistoryPrev();

signals:
    void startSearch(RefCntr, bool);

private:
    virtual void init();
    std::vector m_clauseWins;
    QStringList                m_ignTypes;
    bool                       m_ignByCats;
    void saveCnf();
    void fillFileTypes();
    size_t stringToSize(QString);
};


#endif /* _ADVSEARCH_W_H_INCLUDED_ */
recoll-1.21.5/qtgui/multisave.cpp0000644000175000017500000001135012602163572016234 0ustar  dockesdockes/* Copyright (C) 2005 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
#include "autoconfig.h"

#include 

#include 
#include 
#include 
using namespace std;

#include 
#include 
#include 

#include "recoll.h"
#include "multisave.h"
#include "smallut.h"
#include "debuglog.h"
#include "pathut.h"
#include "internfile.h"

const unsigned int maxlen = 200;

void multiSave(QWidget *p, vector& docs)
{
    QFileDialog fdialog(p, QWidget::tr("Create or choose save directory"));
    fdialog.setAcceptMode(QFileDialog::AcceptSave);
    fdialog.setFileMode(QFileDialog::Directory);
    fdialog.setOption(QFileDialog::ShowDirsOnly);
    if (fdialog.exec() == 0) 
	return;
    QStringList dirl = fdialog.selectedFiles();
    if (dirl.size() != 1) {
	// Can't happen ?
	QMessageBox::warning(0, "Recoll",
			     QWidget::tr("Choose exactly one directory"));
	return;
    }
    string dir((const char *)dirl[0].toLocal8Bit());
    LOGDEB2(("multiSave: got dir %s\n", dir.c_str()));

    /* Save doc to files in target directory. Issues:
       - It is quite common to have docs in the array with the save
         file names, e.g. all messages in a folder have the save file
         name (the folder's).
       - There is no warranty that the ipath is going to be acceptable
         as a file name or interesting at all. We don't use it. 
       - We have to make sure the names don't end up too long.

       If collisions occur, we add a numeric infix (e.g. somefile.23.pdf).

       We never overwrite existing files and don't give the user an
       option to do it (they can just as well save to an empty
       directory and use the file manager to accomplish whatever they
       want).

       We don't try hard to protect against race-conditions
       though. The existing file names are read before beginning the
       save sequence, and collisions appearing after this are handled
       by aborting. There is a window between existence check and creation
       because idoctofile does not use O_EXCL
    */
    set existingNames;
    string reason;
    if (!readdir(dir, reason, existingNames)) {
	QMessageBox::warning(0, "Recoll",
			     QWidget::tr("Could not read directory: ") +
			     QString::fromLocal8Bit(reason.c_str()));
	return;
    }

    set toBeCreated;
    vector filenames;
    for (vector::iterator it = docs.begin(); it != docs.end(); it++) {
	string utf8fn;
	it->getmeta(Rcl::Doc::keyfn, &utf8fn);
	string suffix = path_suffix(utf8fn);
	LOGDEB(("Multisave: [%s] suff [%s]\n", utf8fn.c_str(), suffix.c_str()));
	if (suffix.empty() || suffix.size() > 10) {
	    suffix = theconfig->getSuffixFromMimeType(it->mimetype);
	    LOGDEB(("Multisave: suff from config [%s]\n", suffix.c_str()));
	}
	string simple = path_basename(utf8fn, string(".") + suffix);
	LOGDEB(("Multisave: simple [%s]\n", simple.c_str()));
	if (simple.empty())
	    simple = "rclsave";
	if (simple.size() > maxlen) {
	    simple = simple.substr(0, maxlen);
	}
	for  (int vers = 0; ; vers++) {
	    ostringstream ss;
	    ss << simple;
	    if (vers)
		ss << "." << vers;
	    if (!suffix.empty()) 
		ss << "." << suffix;

	    string fn = 
		(const char *)QString::fromUtf8(ss.str().c_str()).toLocal8Bit();
	    if (existingNames.find(fn) == existingNames.end() &&
		toBeCreated.find(fn) == toBeCreated.end()) {
		toBeCreated.insert(fn);
		filenames.push_back(fn);
		break;
	    }
	}
    }
    
    for (unsigned int i = 0; i != docs.size(); i++) {
	string fn = path_cat(dir, filenames[i]);
	if (access(fn.c_str(), 0) == 0) {
	    QMessageBox::warning(0, "Recoll",
				 QWidget::tr("Unexpected file name collision, "
				       "cancelling."));
	    return;
	}
	// There is still a race condition here, should we care ?
	TempFile temp;// not used
	if (!FileInterner::idocToFile(temp, fn, theconfig, docs[i])) {
	    QMessageBox::warning(0, "Recoll",
				 QWidget::tr("Cannot extract document: ") +
				 QString::fromLocal8Bit(docs[i].url.c_str()) +
				 " | " +
				 QString::fromLocal8Bit(docs[i].ipath.c_str())
		);
	}
    }
}
recoll-1.21.5/qtgui/uiprefs_w.cpp0000644000175000017500000004440012645207740016233 0ustar  dockesdockes/* Copyright (C) 2005 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
#include "autoconfig.h"

#include 

#include 
#include 
#include 

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#include "recoll.h"
#include "guiutils.h"
#include "rcldb.h"
#include "rclconfig.h"
#include "pathut.h"
#include "uiprefs_w.h"
#include "viewaction_w.h"
#include "debuglog.h"
#include "editdialog.h"
#include "rclmain_w.h"
#include "ptrans_w.h"

void UIPrefsDialog::init()
{
    m_viewAction = 0;

    // See enum above and keep in order !
    ssearchTypCMB->addItem(tr("Any term"));
    ssearchTypCMB->addItem(tr("All terms"));
    ssearchTypCMB->addItem(tr("File name"));
    ssearchTypCMB->addItem(tr("Query language"));
    ssearchTypCMB->addItem(tr("Value from previous program exit"));

    connect(viewActionPB, SIGNAL(clicked()), this, SLOT(showViewAction()));
    connect(reslistFontPB, SIGNAL(clicked()), this, SLOT(showFontDialog()));
    connect(resetFontPB, SIGNAL(clicked()), this, SLOT(resetReslistFont()));

    connect(stylesheetPB, SIGNAL(clicked()),this, SLOT(showStylesheetDialog()));
    connect(resetSSPB, SIGNAL(clicked()), this, SLOT(resetStylesheet()));
    connect(snipCssPB, SIGNAL(clicked()),this, SLOT(showSnipCssDialog()));
    connect(resetSnipCssPB, SIGNAL(clicked()), this, SLOT(resetSnipCss()));

    connect(idxLV, SIGNAL(itemSelectionChanged()),
	    this, SLOT(extradDbSelectChanged()));
    connect(ptransPB, SIGNAL(clicked()),
	    this, SLOT(extraDbEditPtrans()));
    connect(addExtraDbPB, SIGNAL(clicked()), 
	    this, SLOT(addExtraDbPB_clicked()));
    connect(delExtraDbPB, SIGNAL(clicked()), 
	    this, SLOT(delExtraDbPB_clicked()));
    connect(togExtraDbPB, SIGNAL(clicked()), 
	    this, SLOT(togExtraDbPB_clicked()));
    connect(actAllExtraDbPB, SIGNAL(clicked()), 
	    this, SLOT(actAllExtraDbPB_clicked()));
    connect(unacAllExtraDbPB, SIGNAL(clicked()), 
	    this, SLOT(unacAllExtraDbPB_clicked()));
    connect(CLEditPara, SIGNAL(clicked()), this, SLOT(editParaFormat()));
    connect(CLEditHeader, SIGNAL(clicked()), this, SLOT(editHeaderText()));
    connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
    connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
    connect(buildAbsCB, SIGNAL(toggled(bool)), 
	    replAbsCB, SLOT(setEnabled(bool)));
    connect(ssAutoAllCB, SIGNAL(toggled(bool)), 
	    ssAutoSpaceCB, SLOT(setDisabled(bool)));
    connect(ssAutoAllCB, SIGNAL(toggled(bool)), 
	    ssAutoSpaceCB, SLOT(setChecked(bool)));
    setFromPrefs();
}

// Update dialog state from stored prefs
void UIPrefsDialog::setFromPrefs()
{
    // Entries per result page spinbox
    pageLenSB->setValue(prefs.respagesize);
    collapseDupsCB->setChecked(prefs.collapseDuplicates);
    maxHLTSB->setValue(prefs.maxhltextmbs);

    if (prefs.ssearchTypSav) {
	ssearchTypCMB->setCurrentIndex(4);
    } else {
	ssearchTypCMB->setCurrentIndex(prefs.ssearchTyp);
    }
	
    switch (prefs.filterCtlStyle) {
    case PrefsPack::FCS_MN:
	filterMN_RB->setChecked(1);
	break;
    case PrefsPack::FCS_CMB:
	filterCMB_RB->setChecked(1);
	break;
    case PrefsPack::FCS_BT:
    default:
	filterBT_RB->setChecked(1);
	break;
    }
    ssAutoSpaceCB->setChecked(prefs.ssearchOnWS);
    ssNoCompleteCB->setChecked(prefs.ssearchNoComplete);
    ssAutoAllCB->setChecked(prefs.ssearchAsYouType);
    syntlenSB->setValue(prefs.syntAbsLen);
    syntctxSB->setValue(prefs.syntAbsCtx);

    initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);

    keepSortCB->setChecked(prefs.keepSort);
    showTrayIconCB->setChecked(prefs.showTrayIcon);
    closeToTrayCB->setChecked(prefs.closeToTray);
    showTempFileWarningCB->setChecked(prefs.showTempFileWarning == -1);
    previewHtmlCB->setChecked(prefs.previewHtml);
    switch (prefs.previewPlainPre) {
    case PrefsPack::PP_BR:
	plainBRRB->setChecked(1);
	break;
    case PrefsPack::PP_PRE:
	plainPRERB->setChecked(1);
	break;
    case PrefsPack::PP_PREWRAP:
    default:
	plainPREWRAPRB->setChecked(1);
	break;
    }
    // Query terms color
    qtermColorLE->setText(prefs.qtermcolor);
    // Abstract snippet separator string
    abssepLE->setText(prefs.abssep);
    dateformatLE->setText(prefs.reslistdateformat);

    // Result list font family and size
    reslistFontFamily = prefs.reslistfontfamily;
    reslistFontSize = prefs.reslistfontsize;
    setupReslistFontPB();

    // Style sheet
    qssFile = prefs.qssFile;
    if (qssFile.isEmpty()) {
	stylesheetPB->setText(tr("Choose"));
    } else {
	string nm = path_getsimple((const char *)qssFile.toLocal8Bit());
	stylesheetPB->setText(QString::fromLocal8Bit(nm.c_str()));
    }

    snipCssFile = prefs.snipCssFile;
    if (snipCssFile.isEmpty()) {
	snipCssPB->setText(tr("Choose"));
    } else {
	string nm = path_getsimple((const char *)snipCssFile.toLocal8Bit());
	snipCssPB->setText(QString::fromLocal8Bit(nm.c_str()));
    }

    paraFormat = prefs.reslistformat;
    headerText = prefs.reslistheadertext;

    // Stemming language combobox
    stemLangCMB->clear();
    stemLangCMB->addItem(g_stringNoStem);
    stemLangCMB->addItem(g_stringAllStem);
    vector langs;
    if (!getStemLangs(langs)) {
	QMessageBox::warning(0, "Recoll", 
			     tr("error retrieving stemming languages"));
    }
    int cur = prefs.queryStemLang == ""  ? 0 : 1;
    for (vector::const_iterator it = langs.begin(); 
	 it != langs.end(); it++) {
	stemLangCMB->
	    addItem(QString::fromUtf8(it->c_str(), it->length()));
	if (cur == 0 && !strcmp((const char*)prefs.queryStemLang.toUtf8(), 
				it->c_str())) {
	    cur = stemLangCMB->count();
	}
    }
    stemLangCMB->setCurrentIndex(cur);

    autoPhraseCB->setChecked(prefs.ssearchAutoPhrase);
    autoPThreshSB->setValue(prefs.ssearchAutoPhraseThreshPC);

    buildAbsCB->setChecked(prefs.queryBuildAbstract);
    replAbsCB->setEnabled(prefs.queryBuildAbstract);
    replAbsCB->setChecked(prefs.queryReplaceAbstract);

    autoSuffsCB->setChecked(prefs.autoSuffsEnable);
    autoSuffsLE->setText(prefs.autoSuffs);

    // Initialize the extra indexes listboxes
    idxLV->clear();
    for (list::iterator it = prefs.allExtraDbs.begin(); 
	 it != prefs.allExtraDbs.end(); it++) {
	QListWidgetItem *item = 
	    new QListWidgetItem(QString::fromLocal8Bit(it->c_str()), 
				idxLV);
	if (item) 
	    item->setCheckState(Qt::Unchecked);
    }
    for (list::iterator it = prefs.activeExtraDbs.begin(); 
	 it != prefs.activeExtraDbs.end(); it++) {
	QListitems =
	     idxLV->findItems (QString::fromLocal8Bit(it->c_str()), 
			       Qt::MatchFixedString|Qt::MatchCaseSensitive);
	for (QList::iterator it = items.begin(); 
	     it != items.end(); it++) {
	    (*it)->setCheckState(Qt::Checked);
	}
    }
    idxLV->sortItems();
}

void UIPrefsDialog::setupReslistFontPB()
{
    QString s;
    if (reslistFontFamily.length() == 0) {
	reslistFontPB->setText(tr("Default QtWebkit font"));
    } else {
	reslistFontPB->setText(reslistFontFamily + "-" +
			       s.setNum(reslistFontSize));
    }
}

void UIPrefsDialog::accept()
{
    prefs.ssearchOnWS = ssAutoSpaceCB->isChecked();
    prefs.ssearchNoComplete = ssNoCompleteCB->isChecked();
    prefs.ssearchAsYouType = ssAutoAllCB->isChecked();

    if (ssearchTypCMB->currentIndex() == 4) {
	prefs.ssearchTypSav = true;
	// prefs.ssearchTyp will be set from the current value when
	// exiting the program
    } else {
	prefs.ssearchTypSav = false;
	prefs.ssearchTyp = ssearchTypCMB->currentIndex();
    }

    if (filterMN_RB->isChecked()) {
	prefs.filterCtlStyle = PrefsPack::FCS_MN;
    } else if (filterCMB_RB->isChecked()) {
	prefs.filterCtlStyle = PrefsPack::FCS_CMB;
    } else {
	prefs.filterCtlStyle = PrefsPack::FCS_BT;
    }
    m_mainWindow->setFilterCtlStyle(prefs.filterCtlStyle);

    prefs.respagesize = pageLenSB->value();
    prefs.collapseDuplicates = collapseDupsCB->isChecked();
    prefs.maxhltextmbs = maxHLTSB->value();

    prefs.qtermcolor = qtermColorLE->text();
    prefs.abssep = abssepLE->text();
    prefs.reslistdateformat = dateformatLE->text();
    prefs.creslistdateformat = (const char*)prefs.reslistdateformat.toUtf8();

    prefs.reslistfontfamily = reslistFontFamily;
    prefs.reslistfontsize = reslistFontSize;
    prefs.qssFile = qssFile;
    QTimer::singleShot(0, m_mainWindow, SLOT(applyStyleSheet()));
    prefs.snipCssFile = snipCssFile;
    prefs.reslistformat =  paraFormat;
    prefs.reslistheadertext =  headerText;
    if (prefs.reslistformat.trimmed().isEmpty()) {
	prefs.reslistformat = prefs.dfltResListFormat;
	paraFormat = prefs.reslistformat;
    }

    prefs.creslistformat = (const char*)prefs.reslistformat.toUtf8();

    if (stemLangCMB->currentIndex() == 0) {
	prefs.queryStemLang = "";
    } else if (stemLangCMB->currentIndex() == 1) {
	prefs.queryStemLang = "ALL";
    } else {
	prefs.queryStemLang = stemLangCMB->currentText();
    }
    prefs.ssearchAutoPhrase = autoPhraseCB->isChecked();
    prefs.ssearchAutoPhraseThreshPC = autoPThreshSB->value();
    prefs.queryBuildAbstract = buildAbsCB->isChecked();
    prefs.queryReplaceAbstract = buildAbsCB->isChecked() && 
	replAbsCB->isChecked();

    prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();

    prefs.keepSort = keepSortCB->isChecked();
    prefs.showTrayIcon = showTrayIconCB->isChecked();
    prefs.closeToTray = closeToTrayCB->isChecked();
    prefs.showTempFileWarning = showTempFileWarningCB->isChecked() ?
        -1 : 1024;
    prefs.previewHtml = previewHtmlCB->isChecked();

    if (plainBRRB->isChecked()) {
	prefs.previewPlainPre = PrefsPack::PP_BR;
    } else if (plainPRERB->isChecked()) {
	prefs.previewPlainPre = PrefsPack::PP_PRE;
    } else {
	prefs.previewPlainPre = PrefsPack::PP_PREWRAP;
    }

    prefs.syntAbsLen = syntlenSB->value();
    prefs.syntAbsCtx = syntctxSB->value();

    
    prefs.autoSuffsEnable = autoSuffsCB->isChecked();
    prefs.autoSuffs = autoSuffsLE->text();

    prefs.allExtraDbs.clear();
    prefs.activeExtraDbs.clear();
    for (int i = 0; i < idxLV->count(); i++) {
	QListWidgetItem *item = idxLV->item(i);
	if (item) {
	    prefs.allExtraDbs.push_back((const char *)item->text().toLocal8Bit());
	    if (item->checkState() == Qt::Checked) {
		prefs.activeExtraDbs.push_back((const char *)
					       item->text().toLocal8Bit());
	    }
	}
    }

    rwSettings(true);
    string reason;
    maybeOpenDb(reason, true);
    emit uiprefsDone();
    QDialog::accept();
}

void UIPrefsDialog::editParaFormat()
{
    EditDialog dialog(this);
    dialog.setWindowTitle(tr("Result list paragraph format "
			     "(erase all to reset to default)"));
    dialog.plainTextEdit->setPlainText(paraFormat);
    int result = dialog.exec();
    if (result == QDialog::Accepted)
	paraFormat = dialog.plainTextEdit->toPlainText();
}

void UIPrefsDialog::editHeaderText()
{
    EditDialog dialog(this);
    dialog.setWindowTitle(tr("Result list header (default is empty)"));
    dialog.plainTextEdit->setPlainText(headerText);
    int result = dialog.exec();
    if (result == QDialog::Accepted)
	headerText = dialog.plainTextEdit->toPlainText();
}

void UIPrefsDialog::reject()
{
    setFromPrefs();
    QDialog::reject();
}

void UIPrefsDialog::setStemLang(const QString& lang)
{
    int cur = 0;
    if (lang == "") {
	cur = 0;
    } else if (lang == "ALL") {
	cur = 1;
    } else {
	for (int i = 1; i < stemLangCMB->count(); i++) {
	    if (lang == stemLangCMB->itemText(i)) {
		cur = i;
		break;
	    }
	}
    }
    stemLangCMB->setCurrentIndex(cur);
}

void UIPrefsDialog::showFontDialog()
{
    bool ok;
    QFont font;
    if (prefs.reslistfontfamily.length()) {
	font.setFamily(prefs.reslistfontfamily);
	font.setPointSize(prefs.reslistfontsize);
    }

    font = QFontDialog::getFont(&ok, font, this);
    if (ok) {
	// We used to check if the default font was set, in which case
	// we erased the preference, but this would result in letting
	// webkit make a choice of default font which it usually seems
	// to do wrong. So now always set the font. There is still a
	// way for the user to let webkit choose the default though:
	// click reset, then the font name and size will be empty.
        reslistFontFamily = font.family();
        reslistFontSize = font.pointSize();
        setupReslistFontPB();
    }
}

void UIPrefsDialog::showStylesheetDialog()
{
    qssFile = myGetFileName(false, "Select stylesheet file", true);
    string nm = path_getsimple((const char *)qssFile.toLocal8Bit());
    stylesheetPB->setText(QString::fromLocal8Bit(nm.c_str()));
}

void UIPrefsDialog::resetStylesheet()
{
    qssFile = "";
    stylesheetPB->setText(tr("Choose"));
}
void UIPrefsDialog::showSnipCssDialog()
{
    snipCssFile = myGetFileName(false, "Select snippets window CSS file", true);
    string nm = path_getsimple((const char *)snipCssFile.toLocal8Bit());
    snipCssPB->setText(QString::fromLocal8Bit(nm.c_str()));
}
void UIPrefsDialog::resetSnipCss()
{
    snipCssFile = "";
    snipCssPB->setText(tr("Choose"));
}

void UIPrefsDialog::resetReslistFont()
{
    reslistFontFamily = "";
    reslistFontSize = 0;
    setupReslistFontPB();
}

void UIPrefsDialog::showViewAction()
{
    if (m_viewAction== 0) {
	m_viewAction = new ViewAction(0);
    } else {
	// Close and reopen, in hope that makes us visible...
	m_viewAction->close();
    }
    m_viewAction->show();
}
void UIPrefsDialog::showViewAction(const QString& mt)
{
    showViewAction();
    m_viewAction->selectMT(mt);
}

////////////////////////////////////////////
// External / extra search indexes setup

void UIPrefsDialog::extradDbSelectChanged()
{
    if (idxLV->selectedItems().size() <= 1) 
	ptransPB->setEnabled(true);
    else
	ptransPB->setEnabled(false);
}

void UIPrefsDialog::extraDbEditPtrans()
{
    string dbdir;
    if (idxLV->selectedItems().size() == 0) {
	dbdir = theconfig->getDbDir();
    } else if (idxLV->selectedItems().size() == 1) {
	QListWidgetItem *item = idxLV->selectedItems()[0];
	QString qd = item->data(Qt::DisplayRole).toString();
	dbdir = (const char *)qd.toLocal8Bit();
    } else {
	QMessageBox::warning(
	    0, "Recoll", tr("At most one index should be selected"));
	return;
    }
    dbdir = path_canon(dbdir);
    EditTrans *etrans = new EditTrans(dbdir, this);
    etrans->show();
}

void UIPrefsDialog::togExtraDbPB_clicked()
{
    for (int i = 0; i < idxLV->count(); i++) {
	QListWidgetItem *item = idxLV->item(i);
	if (item->isSelected()) {
	    if (item->checkState() == Qt::Checked) {
		item->setCheckState(Qt::Unchecked);
	    } else {
		item->setCheckState(Qt::Checked);
	    }
	}
    }
}
void UIPrefsDialog::actAllExtraDbPB_clicked()
{
    for (int i = 0; i < idxLV->count(); i++) {
	QListWidgetItem *item = idxLV->item(i);
	    item->setCheckState(Qt::Checked);
    }
}
void UIPrefsDialog::unacAllExtraDbPB_clicked()
{
    for (int i = 0; i < idxLV->count(); i++) {
	QListWidgetItem *item = idxLV->item(i);
	    item->setCheckState(Qt::Unchecked);
    }
}

void UIPrefsDialog::delExtraDbPB_clicked()
{
    QList items = idxLV->selectedItems();
    for (QList::iterator it = items.begin(); 
	 it != items.end(); it++) {
	delete *it;
    }
}

static bool samedir(const string& dir1, const string& dir2)
{
    struct stat st1, st2;
    if (stat(dir1.c_str(), &st1))
	return false;
    if (stat(dir2.c_str(), &st2))
	return false;
    if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) {
	return true;
    }
    return false;
}

void UIPrefsDialog::on_showTrayIconCB_clicked()
{
    closeToTrayCB->setEnabled(showTrayIconCB->checkState());
}

/** 
 * Browse to add another index.
 * We do a textual comparison to check for duplicates, except for
 * the main db for which we check inode numbers. 
 */
void UIPrefsDialog::addExtraDbPB_clicked()
{
    QString input = myGetFileName(true, 
				  tr("Select recoll config directory or "
				     "xapian index directory "
				     "(e.g.: /home/me/.recoll or "
				     "/home/me/.recoll/xapiandb)"));

    if (input.isEmpty())
	return;
    string dbdir = (const char *)input.toLocal8Bit();
    if (access(path_cat(dbdir, "recoll.conf").c_str(), 0) == 0) {
	// Chosen dir is config dir.
	RclConfig conf(&dbdir);
	dbdir = conf.getDbDir();
	if (dbdir.empty()) {
	    QMessageBox::warning(
		0, "Recoll", tr("The selected directory looks like a Recoll "
				"configuration directory but the configuration "
				"could not be read"));
	    return;
	}
    }

    LOGDEB(("ExtraDbDial: got: [%s]\n", dbdir.c_str()));
    path_catslash(dbdir);
    bool stripped;
    if (!Rcl::Db::testDbDir(dbdir, &stripped)) {
	QMessageBox::warning(0, "Recoll", 
        tr("The selected directory does not appear to be a Xapian index"));
	return;
    }
    if (o_index_stripchars != stripped) {
	QMessageBox::warning(0, "Recoll", 
			     tr("Cant add index with different case/diacritics"
				" stripping option"));
	return;
    }
    if (samedir(dbdir, theconfig->getDbDir())) {
	QMessageBox::warning(0, "Recoll", 
			     tr("This is the main/local index!"));
	return;
    }

    for (int i = 0; i < idxLV->count(); i++) {
	QListWidgetItem *item = idxLV->item(i);
	string existingdir = (const char *)item->text().toLocal8Bit();
	if (samedir(dbdir, existingdir)) {
	    QMessageBox::warning(
		0, "Recoll", tr("The selected directory is already in the "
				"index list"));
	    return;
	}
    }

    QListWidgetItem *item = 
	new QListWidgetItem(QString::fromLocal8Bit(dbdir.c_str()), idxLV);
    item->setCheckState(Qt::Checked);
    idxLV->sortItems();
}
recoll-1.21.5/qtgui/mtpics/0000755000175000017500000000000012602163537015017 5ustar  dockesdockesrecoll-1.21.5/qtgui/mtpics/License_sidux.txt0000644000175000017500000000176312602163537020365 0ustar  dockesdockesFor sidux-book.png:
_________________________________________________________________
Coloured Sidux Book Icons (type2)

Copyright (C) 2007  by spacepenguin, cako and cathbard (http://sidux.com)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
I suggest a copy be kept in your sources for safe keeping
__________________________________________________________________________

recoll-1.21.5/qtgui/mtpics/soffice.png0000644000175000017500000001240012602163537017140 0ustar  dockesdockesPNG


IHDR@@iqgAMA7IDATx՚itՕuޭ}k-^M166;%9L d	,3d29'BB LJ!d!@-KdRkmՋ[T|hܖe6LN~իww߻ưiӦ%IZkF*SgFez&~b9S6cӿ'B2>cxSv5^{],u2# ASb.Cdm'۵M68aN}zn`an`iB
}CO?Sz22hcmɔ`d=YxJV144Ty	uv?$W^Yjhjj3$h?g 3
GY{28J1LY;0V3SB
N{Y Ll'y mvR),P$zT4A}}#pe@`tźh n fb,MEpI	0$sD>HH7Dq
OTJ4M'Ѵ4QmmC\*J]@@wj]&05n̙SsAOODBkfN_2αM38qbEFUe}}#hfO12bzFLhg&I-139 y>θtA'i7,*#Hq\Ty\$:@j7ԸIS0Ѝ1K2f`p&ƙ衏(L&m(Y\44MM%1wr=?םuO7,Fǁ̙n{N4dYrbLX otR<0[Nn:M/:~r,Vb>)iڤ8'
ovHҪB
\,t8ʉAy9D?W[0R9J4-vinӁ羸"Y~C޵]K빺t}꺎aS\T-bOk)koC,e	f)]; WSi_k*bQffy
M(>Oz j~?_>1>ܦ
٘,I3	ȕ~B(

1/ ZUKk9~IP[/g,KS1	y[7B8N۷Q[M7Q4T^?Jo~ծ14D Wk7`pa3;Ԓ4Fc)?7wNnR#'hT2ʶSF&h?cپsׅGSz~֬чcՊ*?UKFz
*5#K7(P7Cuux'MD~Q@0mn|8ժwynti/G`PNlep|g
7d
3Li2٢g\(wQne#ڬi%.fO<c߉qBgNN<Ų9 P26	p .-/p?{҉$lX BWs?VB4b	RGx૟b`  %:tp3ؾ}N,_`\#c[pv0;HGa1n&a($K˫[V̖".( wUO~歝|)6="uFԎYYr5,Qѻ\PGl:JB(&V]n\T]VIXN^A"v̒ȒŔbfo4Rbv[XBb6T$fZ#02RA#q`GV^J;H.V6*eFV%Apv&'" *_J,rpUk$<cdž#6+J8A@UU?nڵkkwww7®pssVuS4J2
f8aBj˩YZɲ:Xo=E^Rt/_o
0'rtwRXikanw_,6Xs&% cX,#YAW^1N7+0
.sݧgM,aʗc.ⳋhS԰jxTI=;#WװdJdʊ>אǮ9@RT
Q$	IB+3+8)50c|{@[oYn$"M3J*e'RR?b50pRs(*PVzMߑN!)mNf/pݽ."㹬͊lBŏ3KYgٹk>aoy/}E %)Xyg(RI`NW(c[-T
	$MAcռQ*Ԯ[9s+c
CeĴ.bZ;
ʾXz]7e1@,xk׶s+n@ȱ}Hïِl4qh$\U$0H:?]΅M5cX }zJ-/Oqy~{z6Xw#8$|2-̱
b(X.KAـmx>BMKh,4:!7pC}XRZf?ůܰ^FT*ZёX[EDLŢ"d0
_=sgqYL&~y;S[篣qY
=*؋zlgX۸Ξ>v0;;RD_VA$shSD$I;yf]2.@7?>7w]A(CQ:kW5P3b7,ob^b}ZԹ+/k%Q߯_K̻UUBKb U\He&Ÿ^a{ݍDGvEx(bRJ&VTq?oancaYA(6R1ubhuG  L!se*].Vp8,LI		GC,܂æbQUSń[PUDp?8ȝȬEhWj*[ng(0;be2g;;;qH4'
*+,2|G===CLuR4	>:V&DADUtn 9D큿gǮ*t+=x%jpS8
uw̦Ƥ(c>V(,]Y/hE"6lݼy3-LHE@CĴɄl&o7^/
TcsYPӿg.uu
Ue&6N `Z\/'Ϸq&Yk|0OF6m>ٚ'F(FD(2l޼8\, /B_$ٲeK/0_Hz@f,,ٲe'xvLCT&@I$a/U`$ᗿeO>%8uԾǞT*%]\ۥ $Iz7}>_+ߑ[,K
ڀ8;&ɀOh' >v]R/,?^IENDB`recoll-1.21.5/qtgui/mtpics/aptosid-manual.png0000644000175000017500000001061012602163537020441 0ustar  dockesdockesPNG


IHDR00WsBIT|d	pHYs11(RtEXtSoftwarewww.inkscape.org<IDATh͚y]U?.o%~/I:kLȒ!hGG-3?,Pq)f)
42cH2 F"hH{exKntʪUϹs{~90?0׺^
T֪(JjRqTZzj^w!p.̉{>_iSccLѺ7ZF3Z:dB1mPWcloGySNc	^[xkABt~SUJASQdpq*+,+"34ѣ4z+іVM"ntw7noO=;޳to/M7LOPw5 ,N}q+*XoxRJk$a7@;о[ɎoÎFYvN>-e~cZ?~8S)_8ShM165┕儫5A*Eʕ90z⩅JUiJ$ݸ
yEƏ%d#u7mh_K&1VdpHkƎκ{e
$:NWæcc97a{$`ip$S)޳4#Xrh-鳽q^*q+ONih 32̹B=rfi)WD%ZIm2 t_xZO_ضPC4ZIF_]ŗn$BrԴ֘ @Jv\-6j6W}0:'<)KR
TC͉
c\\*/Ը֚@(JsN^4@ۡCP{DЁOL''v&32\X͐RH²VYiU|~#P@6ԨҚD"dE*^PzeF^~|DGF]8{78њm̹矧R#@dkYjB@0!ǂT8Db_Z]4Z3?pO7A$g=PwUx#gr$Dz6
!n\ ``=FG	]Kr||րoFZnt_>Jڵ\/_ORj+pM
z"Dqb16=0g]idz܂JByBݾNcLVDB?ȉyaTKcy#kir]O╝@A(*>`	.>~կ2[xYJeN_t:t&q,qhھ6J1~83?NM67s'8k2PL"eY9'%Vj*'"|mY9uav܉SQ{0kRop^CRz{L?`&}/|ຨ ZLAkh@RV9>NWh?@;L7Ne%$7BUU&}?xp&(I359OcEc."~Brl\kMzdɩ$n4BMr
&Nʫh޾}քӧ;xl/t] ikyCy" `EUвUU4l9`Y#ƠKu}	x#BЀ?%p!FG	_r	zpDjkYQ{$~{d]{ҷЉ/P!=\u]
y_eH%ѯBPu?\27(>57Se
[PFh]I&U|Jƪ*yRR~c^&&ZeIRĚ~$Μr~ôu[6*Ke_"ɽ{y{~YB/-D@4Zu٥(cR߲%Kؿm-ӟ=Cqddw7|QOys3eTRl
6Ѱi￟|O=5c'cYksU(֓A-Y>14t=4A33liƙIR):zO^yzzr'aE&zzxGxxf}}mzhb޽5>G@q5qf14)I
?|oď~D6r>=>|ok>Qhu5=(M^-ļEyݒ@6Ԙ֚D2IjlhShޜ}w܁755n@2q[◟ZJH?5+VT4'ZJHOMin.M^KU}p}a1w>vL.T*u2ʺ:?UTʽw]B#&rUv5VmKH(	.뢕`Yhp$Bus'0u	Äù9au]AnB]X7-dR^W
nlltcG,lƶm @km[EpBLx<*S^^N8Ʋ,qB;doHHy{~	^ژ.G5kB,aa9ZkT~3e֚i,AaC6ŶmBPQzB⼾>ujґy",gDJBڕŏtSJyޗRT(#8RJ9m9K`$&N:J]4৔	bK㠵&RH)ZcYPh4ZyLRVVV\D"Q8NQ
B`JJntڵ *}=O멬1Sc&=cƧa4itSi`ϑɈmk
Ym:;xoWaIۤR!!Tc<&Ok=rx\ʡnI ;Hr;//^m[|Qx|Iy]Is@ TF뉴iFRJ
PPAsۅE,|BʿmhdiaT@5OF
L1HWIsd*UxIäͤuu &؆HSI%"mRl&kn|vR"
e!~^4,vC ƧWȚr+
0k3=b<ҿ2atz33I0<LqGgwx{2!־3
FjtMSaV1?985F,,t"0xA#s}ңeesZ_YYA&Ú00:`U?<ܓ0dV]]_vx޹X307a圭X0lI$Zn``Xu{$&~0q-*yx793+ #1}fePzJS9<\)`mx!`X)4\;RD	nv|%j4Yrz~I	Nu ϓW<\XbF6, Usp^`6]P<&5BE)
kvxMgT->#oɻ	D9AƆ]>:%	6]a?}EP3fؿn0i(Q=OՇ\/dޝ)p^-g2+2W`d*Ŕ]ťPQ-7e-CsdXS-^0Ks6@>Fk9LI~tl|cʲ]ai/cuu.Ƈ,(p9MzΖ ]u|
/>\Ŀ(
ge,^#ۗcr$l`Nѽ5&	cu@Xrbv53'\\6ODvgO[GKx
sԆC=JU~JBg6HXaw\xJ8p@mc1t'%'*7ðDvqWan\+lР{5ds=Bkg%1u9]d/٦{mk^7Vy^y_#{ø~t<{쯬%ƎV*&|2e;@B~%6hP$߁mu4jo6ҎmY@cCF6Qϟ?^xK[Ifrr[}[eoEx0gޢpUaecDy5<'y/ŋo>sr %`SWaQ0VG5ēz^g)xCޞ_ p
I566HqիW/>?O|ɽ*P=73lC"GKmb]\{WB8Ѐdf7E1%h[yeOهo!ps>PXu|||'|r()eҢI7?2-&R_GC`Ta*=HpC͎mĈem|ex'H-eKaq7a7͡3(t
ׁn4BIT /I1~nn.ϿDOL.*ƻƜ}Y;3,,	EJX~/)]95
5FJ9.Nڋ/]va|@r
;~-i|aJgѢR	$$'W˝,̞{{k[l͵Ns9SOb/bp0sv0{R㏿Hxl|6~$@ ɻ4.'	!Ń/Ts?K=(Dld?p{%
y`=c%XKޢ&VO;q_ R'}|Vao$`3ުM0nG}A6~Un+	QI)No;?w>/-ϒfHK.`Xk9WT?5s[-aYeas(Y	fآw^L+wuyN,D,n-K *%ٹ
?.^@j-OgIENDB`recoll-1.21.5/qtgui/mtpics/video.png0000644000175000017500000001143412602163537016636 0ustar  dockesdockesPNG


IHDR@@iqsRGBbKGD	pHYs7]7]F]tIME5
RIDATx{\}?{;~ژ]y/ub0&@6B EPhӴ
8R(і$MHDHRR $!$j	q@`1``׻8qνsgm]V318o[fi \o#zT[).i =7ۇ!blsK)|Ǻ[B`a^_ކ]G(H)ύu
\wn[(!eZ^k?oK4{w6+P ((,n,`A Z㵂W\>FFF1ڠ2̓?W_A()	N+҉0GH'}kx#Oޞ8KNg4Mj*{OüE٤l7FεIHC _a^|a;V-[Ky/A)U>(Zβ֮AGSk!M4+dhvǓKё۶mcݺu׏Oe˖|Kv;JH=d 0nPB67sd("ݏR+3Z;Z$I3i	Xmࢋテ'NcccWcppAh0kVJR-
pGef;wHIZZfq;Z[@c4ZTU/0gnC>x׮]\veJJU7͛ŗ\۱,9O>S7܁i]RvP
fw;
*SD\QT4aysvoe.uNӔZkk9sg`A.d,_lΝ4%nTv
.FDQdi
 -cˏei.G؀/ؿ͛7uVvUz%6aRUT"49H)VkYHUV\:=_TH."DQU֮UV08sy;.>==h8Fi0i6~-8mS揢U8Ŏ)	(
;--
gy&L8x+a/pem#r
CCCqrʩ<u==
?~EN`h.]ʺu7o.Fwu7OOOZ6ȫB l6-``+XL-ZD޽!'U+YzB؁1ͻ9ᄓK6֬Y!qs뭷s≧2>>>.`-LLt@tM#QJRJI]u8FK̟?PG)ŧndaDV峟2}}k4sLqME|_e[]$GdG晢*K\?cKGg׮=ԫu_)6\=z3<?8Nh¶x
͐0֮e箮s9'%>䵑YYt),X$ɰ"
eX.diU
0
J!2w'ng"h'E7L3`'?yM$d%J%A4o8[X%iB>+r]mpd(	Z~iN.U<ϵz9U@JcEp˷SS3[8O;Nk4F=IYc^~EZ$CEw,NjF!z,_~?͛8kJJD9L*tFb]SFJOD
MH&82ZwœiΎwaK1׵Lg1ƒ)yϻi|햛9Sț6{檫_t/s]bm}g^e]O1K/}^_F
x&Nb/>ENQdԴ8:(:A|9B0D!2tuA.5d!8
!cnj<Zˊgqy+xu<&7Y16>(Kܰ=Ě+}J;Qp*~gsXI,EwM~C|[0g\WnO
vf/
񩧉B?Ï\ŵ~0"Ȕv4t@|@6aVJ~W4a/~Xk+n$D [ƸI1unf}N5N׼;kZ4%Ivbbbpb嘒!5SG"D^;0zmM*Q$qS]ֺzO~S6mz7XR@ʀ,c[ٴ	)܁AFFFXx%XQtz5uQqARt($kgcOFk $YZ(^k1(hZ|W?>Q=y駿YpA1y0_v^AK^fϙC 	h*T%I>~|sR	Qb~RŨCFOysx񉜵,}6OoܸyU[cAXRvC XUDU`ArtRE!?y5#Ջ䒿-1Z՗=Y=|hXk׶$~Vӂ>pQ\k4E(7N1,#cZïK
!֎^ju#
#Is,hcG|0u"hQl5Ge|0j={{|HZ;:@w~dO/t
 |0:'D"ԩ,wf
l1cJC\!ų,#q9\%i?m](fs8|9%MDD>? Fhg6ݻsϽZt}(\(nVvLĤLedBkǝWwL1{ٳҞ`+lzʕG݁c1~z1h %X_Q>C˔BeY1Yj7w.K."4IL:S|$OsTE1#${dhGy.[zfiĬ;eM}}K)u4?wHwG5DZ[$4TځAYYŴ$LLW9<澔/RGQ$c(*̚,L|8hM8{o 5Ke!7i*@o\AF8˖#%XȨAd7lTFc)2䲥"]KupUn&㨪ڱnx8Mڍdq_e`N+w(W|=EmaGBn#i_sg?|lG$'EAUUJz-_ 8P˲W
T*J8x GEvc,?dkk]3ò,>8theeUlܼyTH#,"qQ.](H+)-R[:A7\
vz)B>GJO?W*F4͖
Pr011iLLLpe/i67sfܟ0gdd#{y^366F,4ML$[gϞ`dR,da2a&7L&C*¶m-MZo`-Uf25r: Z=N߁YE\9B0BbHZ*f};J0\亥먪iuhp\CiB
-U	.X,r\.S.9v؝@r~^??4ZmnTU0pHy%cc	b:b ~d@(qlۦRPשjj5:j{mjۄ.\ہ(m)JD"2Ͽ5¨2,Mb{FP.[:Vʷ
W`r[]2ضM,#ˑNdbboۼ
YSd"1j}JN>/@V#JyVm˲(
Kmwe9]^HUU2qE!gyygya>lZ۶C!,fggIضT*`!ŃI?-9hիW9~8m2rH$>55ug;R|$G}rƍs>jj}٭s'-
_-J)uHuecc#WT.ѨwEy_4 OՀ]WWẮL&R6+oЩ
	#qXar#65V(8_J!Բ5%JE$mK1lMq+
*,^{/F"CQLK^Qמ 7/!JO%%[K#\j
o&Q3Ŕgޚ?EUtwZSdvmާ;#5쩤U(29kYZ%2h|sgW	d\5PQ-OPjL^naN	%G)%25{Px7|N"k70;B=kq@Jz&۽(gl?3}-JT'Rv 6FÙ1O#e?]p(FHf|%02BTPC2	F'|~ZP	$299h.ƶA
 yK3cw,}˲T`ztT{UOƍz>1Q;/F%@N"vϟP+;\jwy i TPt|N-.Yʛw?O-g_A߼ĘX=( ]068QꝻwnAHtZ^S]ՠ|/e-(*/i'Q5)Ll]XC#hZ[nEX3~!/B>*ꄟE3Ahoi`6zW5:Ě]WI`KR$.DijV'=8Ʃ!jmޅ
O?=:ES}ar{Bwg
ƙ۽oQ3R-|	Si3A8UժFYsuOYV]AN0&8&OEb=Rq{>uLng$+/OAl&eDUA4	eȪ
5Y2XbZJY^<d]ƙ_^s̱Ώ:Pc zu2oԼج4SAo.^T@E!G_~,5bxxĢ6H,`!Ln=_ԃkCi&̢5c+JiֵoJ,T
(714al,+BB 55˩X4x-VTgl{$NpD۶mFFpQEY+YUUH/bI2+Vc8p.w2ivm


?{	988FM.+55NϾ%jWriinnx'{	
Bf-QSsG8}[,y_I̫Byyp^x&9|pF3/
ȑS\wz!ò;Ow͸a蔗D",˚#XId~&sj@Q v-m;VeM+ʛe6sinnכO&e0RԷ5{xUj
	sɦ477ٳ'oK.t!r赗PLFSBN:EKKK̗C9ZU[	2]]]ݻ`KvJ ĵކ@@Q3 cǎ|& T
C qY>`	^1ۡgC%@rĉ~d}k-.===aߘW_̣'O%c̙3m>>?inGGGH0R^ve___.jb~n@ʁZ"
\}F҅/@>緝.imgA*IENDB`recoll-1.21.5/qtgui/mtpics/wordprocessing.png0000644000175000017500000001304012602163537020573 0ustar  dockesdockesPNG


IHDR@@iqgAMA7IDATx՛o\יn/,$RRl-=1:hc`fy`>pYy`^02(eKIE)[XC=*F7w9=w;|i4i0CEst6@Yza_[>1nxam`z|e#Q-C׃}6#G=GAG?x@uxQ@SDOH@!R2D"?2D DHAIHkdHva#	)jð7oǓ\K_<鹿R RRF7<-djL	_Ŭ9rU.$-HO?DB	1E?{Q۶dR3},#|;keKaMj6جIkwbsg鳶롅Mg?)5	R	A^vGhi@]N	g,]	0,O#+>LdXqO씉!nA"D]$-vXe.݆̏Y/0ug)	0{]heuC.Z3:yղ?mqu!m]/*~;wYԓr:oA4vH8Ǘtm1}Rpm@BSx8j֎#78]4qr]"Cv+ȞTV"%23.&4E<
/9?G1)!Ym40M>##4
up0&t$Out:uPu4]juH y0C	|A{@R{$S)\%JOXd~~O?'x1|si6[qz-LÇZM:\۶I&SLi:;;;K&azZ-BhR)jt+W0668*>!=H'#@4pzfidpbibY1癟Dz,4MCu68DT*DX,F6!GJ8XZVyhF\tT*u=R# VWW)JlllL&`rrBϟǶm<}a@,#Cu:miL&RR՘#H 3=EFиyl6 ָ|24MbIwc`&U\EEEDuX,v}=m!6 ℈geI)Gclzw+ˣGx"#cnl CbJbloocY<q(
4M0IJ,Ǐ#Q.u p]Yb؉6D#|ߧlb&fYH$ߧlR(}d2ɓ'Ozfk*+
[[[,,,PiZ
JOurWI$u+6kkkR׉ErB
N)%|uu}{JyK\Nׯ_Gu<AtgD6?N}]ו8D?!?p]M(!()B½{,9qIu]Ǚ>}N:ER7`iimJSSS+vMTZ\nqy1Ll6_WfffRܑNիܽ{W^yEqW:Z(J'ǹx"qΟ?Ri-ƶm}8LF)4!e1999ByXTT*n9{,XO&t~z!(

l*R(L&ӧO+mex|dY&''U0r߿8?rLTѣGXD鰸H H"(cY֡#3=y>NѠ\.s9?~imPh6ضd^311q,'"@v4S騘|8\U	l^|Y)U)%d28õkVNLyGqY\U:qz'MaGpTlpQn+"hD	O۶i68ju]9-hiwRQ_'oN.#NZdFm!;>SB zXFa8R)fggY^^l̒8RkG/#	o76#фWMӔr]WoDmH&j5LӤh099Bj,--QVR۶ccc'e C:&83 Ad2AJ$0*xk׮fI$*Ѣ}*
lT*Eyh'X83 s;<ݩ=JɁ/T*LMMQTt:mfffҥKLMMs%ܹrx<>Z277O~4MOWGT؏nqW^yTRP(0CA" Hꫯ255oiGOR908<0jTUUo{XZZU[\_)]&RxhaLOOd2lmmfIӤi4MSr6ի*U6771MӧO#8`ؾ[S$SipIфFբZ
#	%j
3gΰ{ܹWd㣚E=s挪>#c	0iP,ISCξ^]XXX80KJIZu݁I(yyޡ({ǁi4MVVVHʉI^guuT8<APՔ:
4͞8{6\~똞JQ `kk[n-@D8ѩ,@0q	-~_,onEm&,(0Aomm_rwڣ?@rtQҟD?!߿A^Eg0͛˿կ>!0-2VKyTQxii|$LOO:kkkd2bX-Q~ﳱYݻdYvwwUg"Db1>}͛7n޼mxx#9n_ QVY__'JyL˲ NSӧHK%IUd2ܻw)vwwy:83==M\t:]0"gcc{o͛]w$ .޸qvBtdebb+Wi;;;Xŏ~#677d2!ͲeYj5aQ)?b{4Y^^ƶmeho^~>mG`mm;wP*#pU>|*fX,F:ƶm_G  ϳͅpUp]7np}4KKKLNN=Ν;G"n+./yY&o^}ve!?\~ TnX,.viI&t:RuZVq
uE
F3g`YJzD\.iUǡh˲7[>##a\.:AZUah=D,0.^H^qvvvTԩSjL] Pٟ.l6ꫯ_0,RiFakk_׏nݺ)ϋH,믐Y]]e||iZOVcssD"aT*S*믿fssK.
oVcbbqTj!d||JBTbeel6NJ)1m>۷oЇIRx7ծED"ӧOI&\ru)JR)u>c&ϟWi8t[eqܹCarUݻ#`{{>h֭[u]Ν; on
Mon,  9 Apr 2007 13:54:11 +1000.

It was downloaded from http://developer.berlios.de/projects/fullstory/

Files: lib/*
Copyright: © 2006-2010 Trevor Walkley (bluewater) 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: bg/*
Copyright: © 2008-2009 manul 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: da/*
Copyright: © 2006-2009 Rasmus Pørksen 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: de/*
Copyright: © 2006-2010 Markus Huber 
           © 2006-2009 Markus Müller 
           © 2006-2009 Philipp Rudolph 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License.. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: el/*
Copyright: © 2008-2008 Gregory Gretri (grigris) siduxgr@gmail.com
           © 2008-2010 Nikolas Poniros (edhunter)edhunter@TBA.com
           © 2007-2008 mixalis (miles) georgiou mechmg93@gmail.com
           © 2007-2008 Pavlos (lathspell) fubar.ath@gmail.com
           © 2007-2008 Lazaros (riddle3)lazarost@gmail.com
           © 2007-2008 spyros melcher (xouzouris) 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: en/*
Copyright: © 2006-2010 Trevor Walkley 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: es/*
Copyright: © 2006-2009 Richard Holt 
           © 2009-2010 Luis_P
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: fr/*
Copyright: © 2006-2009 Philippe Masson 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: hr/*
Copyright: © 2006-2009  Dinko Sabo 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: hu/*
Copyright: © 2008-2009 mrowl Bagoj Ur 
           © 2008-2009 ruess reuss@chello.hu
           © 2008-2009 Siposs Zoltan 
	   © 2008-2009 honorshark honorshark@gmail.com
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License.Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: it/*
Copyright: © 2008-2009  Renato Zanotti zenren@tiscali.it
           © 2008-2009  speedygeo speedygeo@email.it
           © 2007-2009  Stefano Tombolini dedo.tombolini@gmail.com
           © 2008-2010  Alessio Giustini alessio@alessiogiustini.com
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: ja/*
Copyright: © 2006-2009 Mutsumu Nomura 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: nl/*
Copyright: © 2006-2010 S R Eissens 
           © 2007-2009 Ronald Stam 
           © 2007-2009 HarzG 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: pl/*
Copyright: © 2006-2008 Marcin Słotwiński 
		© 2008-2009 Michael R' Tokarczyk 
		© 2009 dongle
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: pt-br/*
Copyright: © 2006-2010 Jose Tadeu Barros 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: ro/*
Copyright: © 2006-2008 Gabriel Palade 
	   © 2009-2010 Dorin Vatavu 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: ru/*
Copyright: © 2006-2010 Roland Engert 
           © 2006-2007 Dmytro Kychenko 
           © 2006-2007 Mikhail Burov 
	   © 2009 kostiagol

License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: menu/*
Copyright: © 2006-2010 Trevor Walkley 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: debian/*
Copyright: © 2007, Kel Modderman 
License: GPL-2+
  The Debian packaging information is licensed under the GNU General
  Public License, version 2 or later.

Files: menu/*
Copyright: © 2006-2010 Trevor Walkley 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License.. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: menu/icons/*
Copyright: © 2010 Rick Battle 
	   © 2008-2010 Bernard Gray 
           © 2008 David Creedy 
           © 2007 David Vignoni 
           © 2007 Johann Ollivier Lapeyre 
           © 2007 Kenneth Wimer 
           © 2007 Nuno Fernades Pinheiro 
           © 2007 Riccardo Iaconelli 
           © 2007 David Miller 
License: CC-ASA-3.0 | LGPL-2+ | GPL-2+
  aptosid-manual.svg also includes elements from The Oxygen Icon Theme.
  Licensed under the Creative Common Attribution-ShareAlike 3.0
  license, as found here:

    http://creativecommons.org/licenses/by-sa/3.0/

  or the GNU Library General Public License (with following clarification).

  Clarification:
  The GNU Lesser General Public License or LGPL is written for
  software libraries in the first place. We expressly want the LGPL to
  be valid for this artwork library too.

  KDE Oxygen theme icons is a special kind of software library, it is an
  artwork library, it's elements can be used in a Graphical User Interface, or
  GUI.

  Source code, for this library means:
   - where they exist, SVG;
   - otherwise, if applicable, the multi-layered formats xcf or psd, or
  otherwise png.

  The LGPL in some sections obliges you to make the files carry
  notices. With images this is in some cases impossible or hardly useful.

  With this library a notice is placed at a prominent place in the directory
  containing the elements. You may follow this practice.

  The exception in section 6 of the GNU Lesser General Public License covers
  the use of elements of this art library in a GUI.

Files: *
Copyright: © 2006-2010 Trevor Walkley 
License: GFDL-1.2+
  All content is © 2006-2010 and released
  under GNU Free Documentation License. Permission is granted to copy,
  distribute and/or modify this document under the terms of the GNU
  Free Documentation License, Version 1.2 or any later version
  published by the Free Software Foundation; with no Invariant
  Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Files: *Coloured sidux Book Icons (type2)

Copyright (C) 2007  by spacepenguin, cako and cathbard (http://sidux.com)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
I suggest a copy be kept in your sources for safe keeping
________________________________________________________________________________
On Debian systems, the complete text of the GNU Free Documentation License,
version 2, can be found in `/usr/share/common-licenses/GFDL-1.2'.

On Debian systems, the complete text of the GNU General Public License,
version 2, can be found in `/usr/share/common-licenses/GPL-2'.

On Debian systems, the complete text of the GNU Lesser General Public License,
version 2, can be found in `/usr/share/common-licenses/LGPL-2'.

The Debian packaging is © 2007--2010, Kel Modderman  and
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
recoll-1.21.5/qtgui/mtpics/bookchap.png0000644000175000017500000000557712602163537017331 0ustar  dockesdockesPNG


IHDR@@iqsRGBbKGD	pHYs7]7]F]tIME'٣Z
IDATx[Ϗ\Gw%`d%C/Ed",+>)b@PĿ?č'nD\@/-,?zwg^wWgvfw֖Ef5zy~|~6BN84('sA/ȧO5ĉN`P;92qڹ'/133=dýQ=#S㈢Q"cc!3ՌJ5k='}ϥb`,07NFoGwsX5΁Ҿ|#D1P@kQ Z8GHEPP2TtlPAͮ "@$\֔qOFQt\C8""B]o@g™Y1v..skP应YGp;s
ɘhg8B@ؘC(7|ϹK!c2F>7.:(
ߝ;ЭTzEy_%Hg9j1L"Y"@glN303[-
X`>cyo
oTmCt0(㜰j:[D
hj|5L3>!t l4K+B7
UD|VpBu|Թ,R8,BqhX6^TGD
@8q]v;NO.F,Fؙg0s֡ALg
4=6TGt`Рo2o^rVk(˶>&`rm4.]>OlTNYǦfH rC,!6}+SomlnnݻpUO1&w,@	!$Ò4̾96Q`-ui0)zso.IƴU6j? <$̥|ަ*|(_YYY.Jqo>ckIlZ Y
em驳gi9?MmGHg~^>X&.rmLx`-ܻ/Ξ}Y*6XR,;0aC'\@uܾszGIOcWXqO_Xg*qMl<\:>^b!1{|˗;82dfx'1^yա%fN`F>9Cދ/]۷/_)Ib+C̦dlB73 j|L|$~ᇿx5kwzxMkqqիW??n?t*= T^5A_g9	fin{Eg;Vk"IENDB`recoll-1.21.5/qtgui/mtpics/aptosid-book.png0000755000175000017500000001061012602163537020121 0ustar  dockesdockesPNG


IHDR00WsBIT|d	pHYs11(RtEXtSoftwarewww.inkscape.org<IDATh͚y]U?.o%~/I:kLȒ!hGG-3?,Pq)f)
42cH2 F"hH{exKntʪUϹs{~90?0׺^
T֪(JjRqTZzj^w!p.̉{>_iSccLѺ7ZF3Z:dB1mPWcloGySNc	^[xkABt~SUJASQdpq*+,+"34ѣ4z+іVM"ntw7noO=;޳to/M7LOPw5 ,N}q+*XoxRJk$a7@;о[ɎoÎFYvN>-e~cZ?~8S)_8ShM165┕儫5A*Eʕ90z⩅JUiJ$ݸ
yEƏ%d#u7mh_K&1VdpHkƎκ{e
$:NWæcc97a{$`ip$S)޳4#Xrh-鳽q^*q+ONih 32̹B=rfi)WD%ZIm2 t_xZO_ضPC4ZIF_]ŗn$BrԴ֘ @Jv\-6j6W}0:'<)KR
TC͉
c\\*/Ը֚@(JsN^4@ۡCP{DЁOL''v&32\X͐RH²VYiU|~#P@6ԨҚD"dE*^PzeF^~|DGF]8{78њm̹矧R#@dkYjB@0!ǂT8Db_Z]4Z3?pO7A$g=PwUx#gr$Dz6
!n\ ``=FG	]Kr||րoFZnt_>Jڵ\/_ORj+pM
z"Dqb16=0g]idz܂JByBݾNcLVDB?ȉyaTKcy#kir]O╝@A(*>`	.>~կ2[xYJeN_t:t&q,qhھ6J1~83?NM67s'8k2PL"eY9'%Vj*'"|mY9uav܉SQ{0kRop^CRz{L?`&}/|ຨ ZLAkh@RV9>NWh?@;L7Ne%$7BUU&}?xp&(I359OcEc."~Brl\kMzdɩ$n4BMr
&Nʫh޾}քӧ;xl/t] ikyCy" `EUвUU4l9`Y#ƠKu}	x#BЀ?%p!FG	_r	zpDjkYQ{$~{d]{ҷЉ/P!=\u]
y_eH%ѯBPu?\27(>57Se
[PFh]I&U|Jƪ*yRR~c^&&ZeIRĚ~$Μr~ôu[6*Ke_"ɽ{y{~YB/-D@4Zu٥(cR߲%Kؿm-ӟ=Cqddw7|QOys3eTRl
6Ѱi￟|O=5c'cYksU(֓A-Y>14t=4A33liƙIR):zO^yzzr'aE&zzxGxxf}}mzhb޽5>G@q5qf14)I
?|oď~D6r>=>|ok>Qhu5=(M^-ļEyݒ@6Ԙ֚D2IjlhShޜ}w܁755n@2q[◟ZJH?5+VT4'ZJHOMin.M^KU}p}a1w>vL.T*u2ʺ:?UTʽw]B#&rUv5VmKH(	.뢕`Yhp$Bus'0u	Äù9au]AnB]X7-dR^W
nlltcG,lƶm @km[EpBLx<*S^^N8Ʋ,qB;doHHy{~	^ژ.G5kB,aa9ZkT~3e֚i,AaC6ŶmBPQzB⼾>ujґy",gDJBڕŏtSJyޗRT(#8RJ9m9K`$&N:J]4৔	bK㠵&RH)ZcYPh4ZyLRVVV\D"Q8NQ
B`JJntڵ *}=O멬1Sc&=cƧa4itSi`ϑɈmk
Ym:;xoWaIۤR!!Tc<&Ok=rx\ʡnI ;Hr;//^m[|Qx|Iy]Is@ TF뉴iFRJ
PPAsۅE,|Bʿmh&`ܳ7cwyPRЌ7gWH7mlvWUYY@Hb	axT[uN]s<h?̓NMa#+Nb36
@~~f^RB.Dv\Ta4UBՃV!g0ߏW돗1iWjF/mAk9ϏN/}:N|2s<=yFCc$h|29
N_jXS9/Ts|`#wcUs2Q$@>
DiWtZF.v	yWfc~*(?o73qWoԹ4jѠ*gOȩwcZK8y'xsBKXsCCE>uV~c?0d=XKra`U~`Pkz[v5jF]`IȇU8'@Gߏ97
:S#eÇ"@Pa$B1b(To:Q[--#cFS8ś
9#IOjs  IvɌL`0Ɓ^(M/Y@(v
!Ԃcb֒
2|p:{SUЏe5Zk\*ҶR[A(
C%.bN/Z]".\X5[C iAƫch컑i3PbDZR@3 -x_3V*c~/k˳C--`3ڲA`07ζXS#p_geaz[Lx/
EIT,BUվ5r#i.lCx`8;Pח yO~!
|Q5TB7"1ۆYhZFbG&թtN1mEp)GxA' 
yrzcGv*֒$	qA[YZ9'_aE0\6unavٱs|qvґ1^&~EY%qlf@<(}OU|Cbz{ޛ1@uP*ù|գw6/9CB3	(Rv*RvPkywR01r٫ࣁSݥR2گ$nۡRPiJye
}#0c*4b!)}9Ғ\[N]|Z#x~`jA<>"ȡaũa@VTT}bC"e, 
wCj`'@w[Fl`FZӰP3Bh¯/}EfdTjwkWěC.^iDHwq@뼉7SM7GT7>UU029wık1Xr)pyW;SUaj01XKKtޑЪCl?"&ι5JƘ08֕c|ui/BN	
D_jB),ՅZSh42HB2EК'}ƑXhO#Cs,//-
:|춄9t@14B=BZ1N@;'ih_1ʟ<4ξ0wV=*<-zfLFIcj!`j`"R@%̺0WWfg~OLL'DN1rMBah)*0%Tpad.\T6){o[駟?3Һ.@0XR6=TW-Kȇ<Ͼ {zbUw[Du;1#
z'n$
eY`2V)ʷSEWL3O~~GQDZرc_6ez@:)M-bL*,C*
75)p[^=$"aHZ[|Fz.Z@~
}>nt3/iqXkhĉ/}KLMM`> "TUo|+_%#$WZ_W}>2ÐZ/p3%XQK/4},ۜ6
9{,aA2%k-ӼN8&KΝkq\1O>up>jQnfZ.lGR
IENDB`recoll-1.21.5/qtgui/mtpics/folder.png0000644000175000017500000001363312602163537017006 0ustar  dockesdockesPNG


IHDR@@iq	pHYsgAMA|Q cHRMz%u0`:o_FIDATxbdb@2<{20쿁_~s_2H	2g`epbGR(0gd_@{ؔ~[xZ`mI`;=߿e67?ӭ)bOtgHvb8,KQ_Pn%зaHW윐##8	l810J8ZQ`?)zd7+#67
'_6^``Nf4 UvnՕD2E}e`X
L_ќ_#3|!L.Ta70es?C_Am>67~B?OFVAqB@<3|n*p3|0%50C2p
ߟߘY8mo*5N)2<sXӡs\!j I2
1gbfn[)Nl#v_-$"h*3ebx	-XR0>$Y8ٙ	XdӃfVtc9|03u(i@%cM% x'HzA
Vv`$MX;DĂYC)Q!=`*	f?etc-P^US
M+682rr*y}>4qM &hW$!@8zw?Ē>_cR<a}p!g!@O:3+U*FA9y̘Gz74Wӟ?c}Å6]6
ߞx?B/7KO}(Ey@E6\@=mǑ0>3$*ѣ.gXta6ykAÓPb X_t(Úx^o~3Ǟar %Pq|~c/_1ܹ읟OcϷ6}~F<ހ*4-}{q{pK?=HM	6Sޡ+hغh-!_,?
Ǐ_2{aW02}
+:5vmZ-Kk`		ғPbfX1 ʇGuA&ah\r'OpY2=a8y;òVX<?;knw&?cu:%	't},{l1+4%R0s%*bWnfXxsXs%lS>b<,Q`#d@@lpo$qP 6;!,=tIJxP^_{=?^~
3_g=h |ÿ~cÕW\jhJ3ؘDi!lU@.oAX;?3xXGz:e3ggÕ{gȁ	a.F2[3,vO~|tgsZM^{b6_>:uy`ґdbВTLodp3bg
xr쫈20D=/	)XKwA[+^1Lڣ:2 b6W/1O`_}	0/6h~Txi20H չ2!u=AyԨYu-Ê~Et	O bVE,.кR&]W>Wy^ q8v_|k_1\jקI;w'0;jjUi?aU!S``z
2~0l=ǧ\ji\Ng.SB&4n<`AT#OdA?~2<|aG2\ϻ:ljg~r*209AAYwHK4Y}W<3|{ue>q(
jpg03^V%Cl{y;0-~o-ʄ`z
C{뎾eϧ&~y<4?EXGD$G'=FaߍjB$ag0{&лtud@΄q+< +!do'ðCU*5}ΓO0K?]Kh@X3#ço`̆7/aWrc	3(ru?W͇+Fs!O2bv)g8wC0:Ӌu\ (Y,hD?25O߽ta':IE+a?=C>X+;++"'zt3Cƌξc{'||hP:2 jY?K\.N(:Ҩ0es)۞1K˗~4,D`OӍ=-"(	Oomz-oh}]J۵:qK(Dg>^]w[# O|e 9B l+o	
g'kaIENDB`recoll-1.21.5/qtgui/mtpics/pidgin.png0000644000175000017500000000675412602163537017013 0ustar  dockesdockesPNG


IHDR00WsBIT|d	pHYs

B(xtEXtSoftwarewww.inkscape.org<
iIDAThՙ{tUU~?{sν7$%$H!5::vvtPWβkڪbNRhr|"`P;*G !qs_ǹJD';cY1ȝOq"JrQ7u֢zZpXcw5Xq 0>-cj;paQD.%#+E;-srdr>;$n|j7z~<On_ҕcN1L.o^NC-pϋl>{&%qo4v3^۫uo9AEc7ܩn77vPX0~

Sj"G΃SB5$6=#vΘAD(E	=	Nm|5u_7[4vQ-HrCKZ`ְTt@UTW7,u;91?|KK>/I3nz]ʒۥ:ft$Ncf^{ԝ58h͗&cϥ,QU9jSU=MT%c4r`_#e_&?e¹>|9atmdM͌]wM"d:dyZw%9o$BuuuDv{9nƄ8i"<9ΘqRJ!%BB !RPQ='*Y
M0vi_Ya~k?SqB'ѢoxĉcgXcQKQ b!XkiwXYW]s%?->@a> xw)٦XcJ B9ǕHGr'Ql*ǁm^?r^|9E6'& ɨں	gv6K(G*:Fpv.eWl۞RNq6O4r]WϏ5noBkC[[tBIi	C8RᲑJ5b#ŧ[>+xj̽xE^M/9aB\3zWE{s'M1kQ77f{I/P4fœy4wx'sCFZcչm͝*F⺻[pT'
XB1*8@ js.d{ƾ/|]f\uW"`	|@3>1b(4,gϞU7}4ϣeߑp)w<:#Yl~k|Q6ispp~VS89z^C`촰\vT
湿ZK![H8s.z,_&g#ך%,O]cqHMW9
k,Q'J$
@Gs/!ՖAxyH!κrU
.7%ϒMK=BhO" д7NcPfU$Dp"
>PJQ^Sʮw1Ɍ
[7Nж<?".vx~¨sif]7HZ}ŕ1(f\>G4Zheb4~
]ٗeO/|LN7˳~&J/cUBHD:)V̼~
Uel}{^F#	X, xGs^b]r,VQQ׶h!&>%R@U*v<>	6Ƹ¦*#X~X"=IѠK}23u&o}97-bxyWpş_¤@Z-YĉzǺ2y>klIut>^-SoT\
pVj}(#00voHJMJF:w%F
&\36Kc_zG34_NS{qL6C/*+1ڄíʊ}EZ7+CmU+J%!̞E67Osefe2"0cl856\„!
P9s#L2d[_,LrpcM1|XoRIg u,Xae>9Fv6!C%HKYIe&&
HNaRСD`z@}A
êq850k:0@}Sa%ëZ9hL`|M&cIHpym՘35:@݀9n
@cKgks&S>0k!HΨ<+޼.
aсF"؋\lI1r_8ZIgӷq}߭"'&Ž]rxd-wz)T~6RB=%5W1tL%MYꊮT[Ӹj pE:[RHG ]٫TJB݉G/	2M;7NJ g_:tDbDH)uQFYim*=qRIB!݃vgUa	Act&FΧM<6~oSf_A!2(2tIOx8u]ᛀXX(%m&
kdl4Gƶis<2"Afut6u/z'-hZ@5tx"%oA\VIENDB`recoll-1.21.5/qtgui/mtpics/sownd.png0000755000175000017500000001122412602163537016662 0ustar  dockesdockesPNG


IHDR@@iqgAMA7tEXtSoftwareAdobe ImageReadyqe<&IDATxb?H0@ s2/&P%*̀GCAR">5 Ǐ#")'㰔@YtFfff?GyAAHÇg
(	bF2:Z?(`|t9tO#!lW)\oO,)@
 ߿ Bnxit>3|,5,c2%@T)aIzefyjjP1 0z$5HJ0ʊ3S{r'4'9@LT*}R&EE)qq!p 88x,9@C.ki)Avv22He(030330
g涵u]^FR 5c^e#<CGGX.R벴R T0[r@ȁ %֮RRJ
bV̜e==.]ǀ a`ggBVe5P  2+#VVˀJ@1@ fg04e`b
-@

Jh
8E>~eم'Ξ=r HM
@O=edPӁπ@Å&< _!V8!V2AWP`j@@xSʣGW13:u( -zq8p08F+|Sa0iΩ-Π˫It!ԣO0ep%_0s$@tLjZQnMӧo0}!<kß?СY|Zoo"b~AJ2=e8ruWXU&--iccHdCldf?|ړ5AST!{`A4t3<(Vpp ,0a!aq`Ob2i-N2\
BJ;Ap
M`8 g`&d<ÝwJ-X1ʀ˗#~qXYghhd 0>mk962cG8|daaMI;_ߟOϏ{2?dRRVVH ()13c[%䔀B}-(%B@=&1LXͶa9^_sh}PS`fpJ,Cɦ"_1t^jfdf6//7ȁ1v;#e
Ṕ\tf08|`aLT<wb/\0c(;VP{\’ASQفe
	0"7	KMr@ϟe`{@{VMK,<9dϰZ39c
%HpC1KpR{ֻ[6~pG|x2$$3461Ha?zB GU:!+>8X.gX±ƿkeJ$*A090072,xL
2xvafE	Y/cW!@LX3f>5ln|;%


39ǠϨp5->/_~>lkt>*>L7!~`gz:!bN=,(]0##_J:RzbO1DI0pP3ûwP'' kLokcŲa`"0(yRd00̹1!J9AWM#iy&.;`/ebl-Ylc^A;B~쳿;;; J8,Y#
qls'ч<͠$-I@MȢb!0pm2ÇИ{^
vdff6|.(NvL42_X1<`(b0~{@ 0Ž|ZZpk̃߾}ArLԅac>}ec;60a˃:@)U	09gTw0t:8W^|||߿cNN`L~ܜŒ@c?;&_j>ȩA`aqN`Vw_?;i`ޗ{ \#}v4!rȓ00z@00|[bb!QCN *g&芋+ݻw}X=?~cPu7odPSSy)0Y2,`3H=/p5޽{YnnnP`޺vMdMA>bz@ٳgVB/^<J,_#P렂r(<
4PF0sWJJ0Zpy@@R7sA%2(=$ԃ
UPkp1Rɝý{@K|}${@UER=0hnj>|K˃rIJJ2HHH0h%iP @ hXWRQQcz\XC=Hn  bVRhD'Ġ*(J$'^Æ`XFFщ,81$'`]bt@.'

7L3@(P50(

,PX"%M-:{ R§˗//z
X}yc*@bX?q0|`etuaĨAa J<{4`Ci``)}^#EAA!`n`dd,/;\WH	R@Qf])+ 
jq>@QX_yNGG~;uWS Z?~R\ ۇj7jy[pǷD A\yMnD^GkJܹs>~|+l"bFI|bK5o8]	 le,i
TеO,cCW~d?*00=U,YIENDB`recoll-1.21.5/qtgui/mtpics/sidux-book.png0000644000175000017500000000345312602163537017616 0ustar  dockesdockesPNG


IHDR00`	sRGBPLTE$//$/$$/CN:::$:$$:.$DD99O99OC9OCCZZ$ZCCZNNZXCZXXd9.dNNdXNdXXdXcoocXoccommzC9zcXzcczmmzxx$9.C9XXccx$$$.$mcxx$$$..99CCN9NNx.9.x$$.$9$C9NCNNXXccmm$xx$CCNCXNXXccxmxxĂmė.$9.C9NCςύύϗϗϢϬϷ.9$N.X9XXmcxxڍڗڢڬ$.$xcxm䷷.$NCX9XNcC$.9$C.C9N9cXmcxcx6tRNS@fbKGDH	pHYstIMEKV{IDATHDž[D[qFe2UT0@Qk+W
Qp)Zs((KuUՔ1q-I]m<}r{َ	n㸷mdž !tw#Yj>AiߌP,kDCQ1VUԬYܸøz`IMI"PoEP!/ ȄI!9arѸ(	\I@^ QCLy&ʢ,+r^q"@ETbseb&Lӧ.Ų	&4VG=]atq""M	zM.ЀI@&+!`iLl	,<<@IiaY~b󍍍ĥ$xZ
2 4K[$67ow!i, 8(p޼{w޷/)MBuu50s}sk$gyRL@kgiڽ}jة6v<ᅱsz!ν5e!&}_|{-䡥^8mCw.
Sgj;Gt72m^~3i4@t&R:ٓ|ei676BfF^
F~~z^Z
¾z\=%<<Ͼ#!l]|'`1DѥYoH[
Q"<~P*3<;‡?-BliNu!ɭٕZlj˳dh@"t=$=iihc=xY~2c;zF&/
R.w
S)Ot]」OHHZ&ӴkHI)\.{9%GsCEb*LIR|lr=Jɐ"_=
Hw9SH]7"BKD=`qG,ZW.AQn輼HV$Z(8:"3WH@EH陙gXX| +@|lz	++jB]҅4`#>Wys=E
A&\JBIq\*mbY(,W
9Xl,H[Ow '-Rq(0$ZIENDB`recoll-1.21.5/qtgui/mtpics/document.png0000644000175000017500000001242212602163537017344 0ustar  dockesdockesPNG


IHDR@@iqgAMA7IDATx՛Iodǵw7G2$dEU*d[j[-W
w
Æ!xnY^'{`-Yx,U,8s`ɈJ&y3"ndgA1z7m4%	@&wQ8qjvu@r[q=Hda[Aw9:G"Hp8~ LoMAtDB-I6k	iiDݐz'fy`dUne+ht#%AD%O{pLIw!(I$ $􂄔_%I0&7|B 0::nBe
/z|z?.AP4Cժ{7"t]Cz2b'k#b
1Ic0`&0FZc')lb>3?}e~ڠ;˟؆bbq_>q{wH0
md2~хk,
%PLȸeFN38WOƼEǜx~k1	CꝘdjk>7uoȗq5p'N QC#gjyQ,0uk,4, 39Ex䉿q%(FK.TYH-#Cd|Ndƣ@%\['0R:ǬoBȳo8?jOr*M7
SƩhPd2DQDEIFaAŘIX$RhF躎aLOt:z=`6ainl6Cgoo {.>il6IR\|۶}6Z
0bqqpȕ+WڢP(jmRa`Y/Yitp9c XXX@44M#"VVV4l6eYm …P(#cqT*DQW^0$I0Mq3DZ333N8in޼aEZJzNErpp@'"t]l"h0;;˵kHRǘƳ=iCӴ3癄G:/^R#]׏-ڵkhF$Jڲ00$I\%"(Bij8>swdzs	`x
=ƅb6mi@	Yvm|NkL
<#vt:d2jt]I*qy!T
]zdY8&ct]'I m4@id2!hLMM>rm4Mj	`RjFNCf(hPTHRt]$\.S($	j\.Ggee4	M˲Wbu]g I(l,rM*fMӘ^#矧lh4HRJwvvT*N6Eu677^Gy4MjQVY[[S#@
;J8NnKXΝ;R)`0P(`&nWٛeYʛr9]Fr9&|q4juE("133ÃrTU-(#cQ1]׹wRtX\\d{{˲){l,--aaaA `0X, C"&Rmq|DQtk'`~
!(
tH?77G\4Mvvv0^dz>KWC:t:p2^E	ZEUSV}۶yg?$J! C\ץZ29^R1
L&CAvIRضJx9"|>O<2wXYY!"B4MU(4MemJcAt1xxx4#5S&BrҙNPp0AVl255E.cggGem.v>]&TghEmZ^^f{{NC.c8bYzjeYܻwe:nY|իHX+Sq:iyA`&)0"zudLv]\.8!Kf"2Fuáu1B@*²,<\Uz,Ȅ²,ez=}666I8Rhkkz*E;;;*ؠlb&IfBFU>AZ\.jhZ|'GL4:	
`zzqDz,PŎL&m۔J%n$c|&al&!\ץT*l(!cMӔ߰,K2W
Zfy233?eYJCF$IXXX`iiHʊ.`ii$	jx*yQX@vYS *	L^dyDyh'@λFN*vC
0u?S*h4.R礭¤8βC:4M^y<{PIT(,`ff_~YU~duuL&lYe%##‘vi"v$ 5rq樂$U>
OIX},das4M677_Ny{/^TGi/K&assSvJ۶|2wޥVc,]YZZlrmli2~jd~ssS3IJTؔ5g@\Ʋ,2a(mr
NE2 !L&tݦNd2r99|uq%i_O:T
߀L۟aG8.{{{|K_b5uMӸ|2z7n(+OnLӤP("eJl6׾F^O>Q^K/1??žJoV7|ƍh0qT'Bggg,K.)tw]_~uRREy'C/:G~۶LOOg}v[ tmq[o^{73GT:<`kk=}_U>~묯nq]VK/DO?UWU{=u4^\㘩)}YݻGu]߿/x1e|2㘟g1O oP I_VKjT:<*_Un뺊wPU';캮U:4>^@
C~qG1LɐԀ?R>R0YYYᣏ>ʕ+jc瀯r4o(3b˰É6Pa
)cZIuYeIP\+5suwUCu޻ʰШzwԫW%xSmB䝵o{޶t` e}mCg7c9_VU;n$ntiX,P  BLv{?떩`1DɅ+E['
m-X"XrN:i랍{`uqjQO<ZK#4\5ϗ? h~ԉad2bS z!bF`Y_P	F#])RMWytlZF0m,Z2{c1mHNW''}N3ZPmjYVjgi,J0УX'T'5ݒ7B>ysJh2sMc]?R2 
TAw!ܳ-wwƀI[ Ic 39020#u
_	Ʀi9ITPtoIQ R;C8_Hp&1x
|R
X`aF(n6ǮUxR4G,fMsoT@s7h%Pj^EAP؎YUyMX9@{Ƕu2:~aS",*aK=wuag{o,\{1X#鯳umjc vdu
y`-,$fj;li}X2զAJCiKݵ3"Wx;9_f`jPbB@6h7:YkySsMJjӶb'H6ytewf~klZmwuZkZX0J>^3
)ޟg=_K!gFC^JLM~zϾ37[d}cO5UkGK/Ky]d?>aj2zfF'SJط#ÍWfxe~1ᚍ~a&\Zˡ
@#4|c?S+*r,AoM6Nk-Ţs˺W)r_>T24m~rQKhn/q?Ϻ^KSzo_tP5}w^}GJ{247΅a%ek@-phɦ$̫X$J6x|nwb`!~{}wG.iǼ	A!;VBC/GC
عgȆ>r	,w/Wِea$$f*:dR:e:hVdsVY{y?}"VPn޷.)NZ4Xeޜsˆ,
A,!R	p̠\T&N$%A|)0<*SU>'w4W7[SujYiO-H+@;/ǦC N+<)P%T[\X*^xvz(I\:}L7J){R
DJIX\KhRi.BcRwI&yT-P̹O=jM}A܊C/
D0PG<1RYC`i95ܤ\
g3l^!lL5
m€aV6J!Aʕۧ?@Ix12!0/Ȱ 4ibiJ3|MK4┶50+aAZHM\Zٻֲit-3Gt`ؽiuydT;:.+HΏ\ZBd)d$zU%6O?M&<'y/^$@Г{{_-huÍص=6D*Ia*|rh^f+yJ)
]5>KȔdd>Nj
\櫺hDkmHoGLcSV4z6f"}=>YE!+ɥ܊K.%VFYEo̓%i_I+}>qOij/PH3Rbsggwv1u
sܽp~Sܺa?^[ػe-}'^(^dxjvƼ>`>@NYzo#x1Z>z^
X|2cٽ@ȹngy+;tad(*in=w%;˾}[`K^2^K''8F|LqMqBՏC9!ɟ9ɁI	<a`x{5WB5|"Ů"}{_B+:`,d{|揶_kӬVlRp0/;%[*1^X0[=B96M;ƚlg}c{~[(yT!lZw4Гl
|pկ~zA`|6?+!A099IE_Nc]?_MsyMYvlʒNIJTJ22tI~iLNufPd,xz(׾SO=uxR&bNP)E:niBbւFtlaó/xto59yNƒysSMg7
$).@Cw~3tOxEr((
cu씒1>Um[`Qij1ϒZ(aj1$$S*f0䥔>|8:xಘr)يJRs' cPzc6q(;ϖp\frrrȑ#:440q1`k,;izK٩]'?rHt}u2Y񣲫E	Q%)y,y=fJGm~[_~:MPJaGCO>䃴m~EE{=~xy8;^
p`ks'8X9+ʥ7$-nDʾ*8G;O$'^ǁ-@pWoYMq & O $פsŋ2t]dbhiwE]GśJa"#ކm2hCX68Btm~_Al` U;%JYy1
xױzktIr1Jt?LHmV	Ɉlۏ`pV9p$AƸ}3J8Y쬣vqS3EU8NqO\5\t5Ա!_N-s@t!c3034EmHŤ0H-g	9IHiXfZ^qa>DxrN\:2rI CyD0L$:u!X/+h)$"
d@Dm/V݄qM1LRWj[
A-pi|*..l	1uЀbJYߘqeΛ?1'0O|iG^*AGY?Tu"HM\*@0Qk}ev\ȕKh'Njk_([︋㷞`h84u*AxTG"R~cU/Zq#6>sxU,A
׎Рh*ϿͻK_:	f&mhmpʱov7n1tj/ҸEA'x5B5,m2kgsxѶ
JEDiۖ/opG~ףKOُ&ziJ*k) }Cpo-A5Ibc6xw99ξ.o=[^Ƶx5v:?r۸	>n~^~>9}+QJ±նwY+\]]ED~/`pe2)MARFE,[>zy\_佋Fq
A.~tAq"4ƎWct}w/_Cᅣ]0~Jc%ν=ӥiJ!|/3*).{,5J#{.o?in}Y)2nQ%6nma((*#LРX"Ls΀%2A|
X1Y'"pny
 bZ}N5OK2&J3jQ3ljL-ոKXC1LK2@5jx#o?>cz$.DS!
-W_1GK5ܰԈIPiFq-ִ28߬jREZ\m9`XL;^drk2^
iV_V(6Oן{;Z?d0[':n^
"e(pn?#Os_?^O+r1-5׎Ťx!Տ1Y?3_qo:;_귁1p3UT΍3r 
8a$b?;ACEf3|駿;*dRC@ky^Ts]?~W~k_{)9Km 2?'B۶m5ʂBNE'SG7#x?^ T_p"+LƮ5E
q`:ryW?_-E
?=:0b݋I㜳:sg.ֲkx^kk]Y]]=9NNx.I8SKq@q2YM¦4w,~^"zOIENDB`recoll-1.21.5/qtgui/mtpics/book.png0000644000175000017500000001126012602163537016457 0ustar  dockesdockesPNG


IHDR@@iqsRGBbKGD	pHYs7]7]F]tIME9O	0IDATxێّά6m{d!x$c WȌOmUEķlv[JܧoŊ!ֆ~;}=#n?93ɗ0pOR??y{r{Ƿ蓏pw XjtOhksG1sD]؄:j4V$ g띩8ct̂m;a|/xDՍߴO?=oֿ?qpԌ>6tݽ?o1wiB=pwZ4BppwzoDPχZzz~>ۑx/cD׭7`RWxRsg6[曯x'\FAM#q,P*(
3#26hMKMc` QAq":}t@59zc_ڣdE$Z"1jR̍"K`No20^dI ։=NHִG5'DD.\!"D8k-zW.{pzSĂ͆_/Ɩ)ZCdTkYVE9iB]Ȓ3@s x	@}tœl_ ;cڡ
R5UADp&
J3KD]QD˦c(ljХݯ%r4MpWL{A‚ёw/"c4=a^jE.ڬ[E'krŚO޽<0SFY\"3C$L_}u},*>?#QՄW'<(:ܤ`nYk!^>Öћ$ey;vdzW|BhQ`/ܞ&7/>I1e@xBVjA\}w·oHֈ/嶟T^>7KwDܠ朶!~ʻ/'/w/zԂʒй/cc].ܽyǼ}3:{wϟO){>9O|uw-w?ܷۤsÏ/g|_|/^|׌m Yr 0\
\pnG!?K菿~ʳϾKo~>uKљ|3xJy%jx^~0x}<{1x7';ϞWPrʁݽc|LI
K~SZKo\ּ/G݅mtZobBG)[4pF̅vKo0C貧
@qK	4US h=nXS$!}s*'Zxu}w\'0Q}
KYQo`KqdDq0
DNk 7<_';B>?VzHu42j  MTAo梵̞$5QB"ŷF7CѻKd]JX^3֨,4"`M՚m4R9V)/X5QE0TX/0E.qURhI5w.Eo,1\'eqiUG2Kq:!9XO6:wtx^-(>M^[kM-:@g]Fj8W-nTLsf ;̊a!wa#hya|nX$}h4H{oZplQT~ F_"eu!@
xM[PIyYD$Gd|AIk|]GL˜G:b߬H	\9Hqe}Fa96S}1gRW"rzC4B@h,O*ܗ"DBsNu-ַaS9	RXKMM޸Zㇻ;QnE&Wna~K״?vZ"Ȝʶ	s&dY5eqg^:niˁh*Ĥ¦	!r+]=ߤD$
@yd4gnRÉJpz!UM,Mrm$Tk	*-K\=q*إGVl'(o<]Bݾ95BgiiW?a+4ov,й(m'U[<.IQGCm>pF9CI
"iK\'#=Ulc4I	7AA=XEvq:!u6c!M[l[KZ48mz0})]8Is]McG:V}c݋L=qxԇ='8R	9.6
DQ;VOPQvB_ڝm"CvSRacT5)"r|>8[twiq糰7X+H11L&r`yeeF;DyV.0Oǐ+
	'CR	˪Xm\K\ijď<37<]JԅGz}Ko],`0'S~IbiW0:H}:-IjZS'N`;}LZ
wo.7j~J~{u/	IENDB`recoll-1.21.5/qtgui/mtpics/mozilla_doc.png0000644000175000017500000001053212602163537020022 0ustar  dockesdockesPNG


IHDR@@iqsBIT|dtEXtTitleMade with Sodipodi/'tEXtAuthorUnknown!zTXtDescriptionxKT(L.)-J_~
,IDATxݛytTE?vN:;{ Y!$F=%8@1;8c^1HD"`6BFN[iӝM|Ϲկ~UWU={wmN+SUՓ+}+kl6W̝;wFsZ) 44wbb#%%GϴhT@UAU@QPӪrOo~UEQ9߫]YiAB>t/,E>sl?Pm/.GK䊋}h@\T<ɫA>w&1B@4H4"wA0p

D.@gTLD؇mVV|J}5B:7 AuI.'bX4O	l{7޼V_TT"4wF):>sFoϡZc'xl?G_6:2XPʋP˱I]0/vHс#;f)I`G;~
VH*fzyh"
@Lsq_&{Ef~/4xF&fʹfڐݾAqB45Wn{Gi׃rm B;]8Z˻Q,i3^ON˼rvtG7溼'7Qb}EQPոvc?ڍT$ImĀ6kWUm{ڳ>Vt֚餥QXXHQQ$a2		q_ h͛dž
ڍ1:7D^%D$k)q|u]'Z$''_[o1{lDQ";ׂ,l2֯_όtx(fAG]*ؒy9 0&b
5<:Gyvg'/QQQARR_}k֬owQC+kx*"//c7ՌY&2Rd3 DFF5ءd
̜\NI&++dzeeooft.l_*s򟳦1;7$^RZ2^Q񮇹7v('M^M7onu[NUYYYbjӅ_JK>|8>w.%< :A!C:J/`uJ<<_+Oe,XfoS5ŀ.3{lJKKˣ	<\]ݻyfq
!B'2o!-w DXY2Wڶŋc2x'n\ܹM6(
!@R`(
MqB,Ezv>Ep!:5ME”*$%%a2xG\8z(ywxn>j Jt5`0r8l{(Wt/dC0Vi:?%o[${&Ni_gǎ71+~usPGHN4`0*`0Dv2ebO&
U.]=2!|{رcINN|Ҹ|:Ubaĉo-&HZG`
1RN]NPSZ9'v!]љfx!Z9|'\c""FS^{|fvMAƶJ
]/Ywg-:3/][BjDzp+oӦMa"""v֯_4֘J֎T#7ٗs''R8
շ(~(>#qU7Êt_hy?\!VVw9eW"u6t38tyyyL<Ǐ'faZq:n>}ڋWm
m^?+4򛎷.cnj|}]9m]jKh5݉!++^z2-ZV,Ȳ@RW4bza7arB
f̶:&103?LGSA>hGZ|9$''3g22|o;e٭CdP5"ڵk?>?8۶msQ$P_&yl++F0RZ]qgbj`\eEIpƬ_D۷hqJ!tÆ
L>Lx[U`̛77"byX)PQ$hQTš:*ݼCxfpYQEG,t9
%Eȼ b̙3L:ݻw{nRSSl^nΝG'O|noLm۶bX4j$cv-)8xsyrssο'ɟ7"koؐlfڴiX@PP)))?N:uT3UAAGL6;vp	`0v[7}Ay;<[neʕ{m{|4,E%~Tp	/DIlhA#55uyMÒ$!˲z_x{-J&
aUd
F2*ދ+3YBh@HH$Nh(..8wܘf
;mlܸŋzjRyI_u-G1d<:+&#oD:[pSBZZVJos0tPxnG67zEG猌֮]k׮߷W\'2W8w:ŔSuXpLpEV^k׮$<ZBEt:mvc3U`FdkAGU{쿿u߀\
腽)Q@\q;zzai+39Ν;^4\@;is {Ndղ1)?lݷ8pOKt%wG%#3ft/c/-"s^e
#EحPA'N1{ŴQ+AA()=7	U`D@쟎cti{J>}hnz;||;~M[D[שn'##{JVSosQx)u:] 	 ˲`6



o-X`^SdT_IENDB`recoll-1.21.5/qtgui/mtpics/postscript.png0000644000175000017500000000624312602163537017744 0ustar  dockesdockesPNG


IHDR@@iq	pHYsgAMA|Q cHRMz%u0`:o_FIDATxb?,\0098LD"PK?C/!!Y}v] X`'gg0fVV"FF!003cz86䰈1_-[&dwJ)c`x󆁁b?~00AĞ=c`"/&<6
Nj/'h_n4 dt*D/_a`D8tR
L( >ƅqc73?PbHĂ 4(sr20._f```xADEp2CĄPAd>+p`ZBY &utc`8
tu!CJR  >,2eƍ

@0\@`>}$KP`8)DEMȁb;6q(F]К :%/ |T~G
pRC o5aD,mmgYj!Ž+ȥ=)d1\4SVDGbC-Tf6 qpOM@4Xc$Al`-af9c	XdTDx,?NMv`mOȎ
,TTT+c&0x8@@F19O>ePSS#( P
LBBBD9H -Rؑ sѪ lIZVHA{9@L$6%F@L1r4rޅIH)@P3kJ<>rGJ@T/m
lu<:Ʀ `)
_yr1B؇޽c+j<	:3/`˗+hk6%T**YhP'͛(Urb#c?~0}Y  `bb &&==='-Dq
UBB!..<c5Pٳg`@rĶ	ٝ!<G)1F/YJQgΜarF6@dW^1ܸq۷o\\\222am}./kjjS۷0p$7p>0j2HJI2QH(޽p1م!@_fa-c'F,
K@eEX
DR
z**ÿ?ߚp:zz֣$<Ç59 Aϟyl7d! ' :0͠,s'&F-(H#lqrr|V"CJ;;3ï?>r3	jPoF'P=AU7 jms defeXm0V	&A51# X5l`qPjaPT߃zP6ɃV3LE
Ϣ&ayqȩia-/P	
(q5_alX5`|XJS1zX{w09 
"=

Eȃ9c Xs}ݺu?1gqy݃pmAfG{@4XSr$AD {_$d[%Y&;s~soJ%| _fs ?Ͽyq=u @ Ĝ}/u斟+;3=xA?\FCt?TeU=Lie d 9ZXM/MR{!H0̱3™Uq™%VvPB.Y&諣+X>KvQ5Ɔ"(.o ,q)Lˤ5GUxU%Reu u^?m**`m"WGUq+nzֆ`QIS#56#IR#'CȒt^hɩ"and^MN40-Uu Tr!e]trL!ǔ^$EVy HDo$1{-0˦+\g[<^Hҫzy {|+5Km۸\U`ƪ~/Vv! O.YFuy[4^J,6d9#-Yq/)+Ur!`8]r?p jb$|V^:t9.eXmy޹UtOh;pxQ}fXK ZxƦ\Pfi"I҂^}IXɾ?sL Pn>/p XW?GΎG«Zyχp\KDzY뿭g}++0Lٗ`?B Z a}qT* _gw(Q/7~?o7`!XUfNI&LNNhhh  Ԧ˱OOxIi(ʼ۶g.V aR)&''4 0Fb1Ӳ*yFsZ裏gq̼sz@r}}}eڈbvI=ߧ?!-냂OHl޼7MsY\*:BBPj'N`׮] O 8ȗ![bt.P| jKt{]|5UemxY LD[9gNx Z P.S:zA /mhhh@ ,UcP8tDeZ(ຈ`;T/Xz5^H ?墪 K~xhm ( < dhhW$QdC#&lpS?#/Qo&RzBL1װ,9Aa|}FwaTU]qs$ SiX fjxYܕ"$C(EEzLn- `CT o:<5B'|[/"( bFapy[tvua#8[8*D(z4.rci$#fӜ >Vڂ1~Ӝrg~B T=W)1>۷mg```< z@\FeTUEUY8XE0ım K`6R$O;>cI86.|IڍRQtzTvP.z#/ UbJhq7Ո Dx;?dHMn| OѧBvxxxohɒ3O~h J# #9t2RDAc2} uKem;((h 2f•wx}`#)p%>pk6l]un^$fll֕{\Ȳel<"Q!dImg3s(BCewM@7VH5e X.ES6A! ӾEgLcH"Q/($"  * t.D!v6xg@(tW QP`keOkb$gSሁ;0n!(te:eB> *ئA&cddl6K>'peN\>ϐXrAشi+zֵ"%0u~jRf i;!p ) %+u:4H%Ez$YY_9x-J\FI!G$RKW f F-: s?(BQ(wM.H.d#BIr9"R sp 0Ј5- Po@5jM-8<Qhůi/IR 2008477֭[FȲ7 YW^g즛nz|YM gh@1H?h~SpCڛk#.fۙ 4Mm{V$,Dܲ%-;::xWouUc57 R[,/-C^CSTAPw' /ӛco*?߳{w޻S~AE,c"=Lqo yED?J4 J;H**TPxR' c'cey{iiiYJa1[oZ$k8SEFʟFBȿNh~Ѐ*H~#X#gW~~,DW֯_-[xof|bAW`Ovf Dh3X͟ߵx D,|Aۗ<,8pJj5X U"WڪNӆimm?I$Y1^?tuu-Ky";v`ǎN*"͙͞;eai&]]]wqR!`|tvvٹܾ෿m:;;W<\CR3|λ?Hy?JmݻRVS;{^gJ/yU,?<WoC}}wycB-M$fIENDB`recoll-1.21.5/qtgui/mtpics/spreadsheet.png0000644000175000017500000000646612602163537020050 0ustar dockesdockesPNG  IHDR@@iqgAMA7 IDATx՛Ml\UJblDZ11H DChZ,Pou/z5Ҍۙ͞CDHfĎ0IQP6nq &݄;.W>}_UqHwssMG4*]꥔[[ȝz)B7RR"b@JwaWλp]Wr;w.5+_1@(RPW` p(bbw@_R;ѐݞYfonٳEvEH<- `;Ux}L=F/G֩zܧ Ѹz/Nv* J J.o<߆R}3l/LPY2]_ RJ"բmT$ '@hnUvZ5hz*{P՚yO{`j#  7JA/ZD5 ݶHy.Ҹ~ԺvUm>q\`@3ȶ#uC C[ApG핿Y%Wi Z'@h+v]4xqnOF '@  +=USo?vPJ+ )%Tl' D@:i~-6(l%.BWO Y„ =OvЅ WAx]m8C;CvbbhYE<4;Mmci۹$URǙ$7Ƞ61VaY㡼J)#"Ắ0 {4CCCa!R0 ) 85?M !Vkil]A=h&)%!( P_ ~Q{AK^G)ȈRe8b6RJN:嵷,+4M^|E`h آ۶YMu40}|(( ,,, ( R*BAPA>P( z0Euuj$I<'CQ(!D4Ɠ(ۄD]{)%gA)&RJ뺜:u*-b``PN89ѫDwm@0iX%xNݡP*BtI,¶УE[ױ, 4^f֏Gepp%2 !ADiXh}?R4˲묯j}qqkbmm7nD+++dYVVV"CRWͤZvtpj|X^B0 / P. 0t!FFFBCx0 = 9C&JpM{2dhh)%mH( Fx&a``P G u-^@bT\BqFh;:>4W;vs=H$HR^F`?'''q`WFa93"3;;yd2O?VdD`Ri.kTJnOՅmE޹s~3Çs̙H78==scO9x3ҥK3h4۶)(ja-"Gb@VT*Q,CCRDZessA˛D/^tzsssj h{s9" E,n LzRZ*rK7\߬ .osss_+Κn+AJ?i<ze8q^(L{StwY-C <ܼyJ/ܐtIX$;D 恃DVömDJ?G^[aqC{RD"hXmz iqݗIsEx. ,//"NNY]]lnn?Fb@.> ss6o5!|#;G&& Bয়~:MN!FO&V^4>\|9{333~e$H$hメvB@_8ΝZx#D]x<tU?ܓ?ojFD^* 5igjjꓹ>"?iELOOSSS] p= A9*]l\N0r=55׵ }Ԣ\.?,K˗/_~yAxɍ-:(7`dySFO@ϣvH[&](@@%,=PIENDB`recoll-1.21.5/qtgui/mtpics/README0000644000175000017500000000025212602163537015676 0ustar dockesdockesMost icons thanks to KDE crystalsvg Oxygen (www.oxygen-icons.org) (GPL): archive.png book.png bookchap.png text-x-python.png The Pidgin project (GPL): pidgin.png recoll-1.21.5/qtgui/mtpics/source.png0000755000175000017500000001003612602163537017030 0ustar dockesdockesPNG  IHDR@@iqgAMA7IDATx͛[l\Uws=vc7;@U%TE/HH\_҇O}hyD48DH 4Ji#4 v$؞9g>̙9풎Ι{m}F~HK Mʻ\m+ntC:x*GpЋqݑ|^{u聧zw̑_(0rM ;P (.TB ۥ_ F(NZLޱBd,Iڒ(R)DJڀB2-1m!B"$"R&\-kmbm<å\JBӲ^~VDijx0CM:~]a{,@GTGHɯqo#t6,kŜ,!mmmK,)5qYlɃ-W lPɓcU flA}H=3XL<BנA_ȾClh,,(27wi4%ڽ mQjJPrjcih,ZB2. +4֪,Yܸcq B( !I(<MUS +ۥ?MnԹ~d9a/bW~ët̰۫`~:c f<_å&ʞ OiL["kߖ^8mB-P nՀeKRYyW;"* %awG!${)ڒ $7n[( ]/^r.h!<} wo6Y);l[@D'TKe\Cn3O>^=5&8)NB'!טxR@@ejFB^z.&7z|l$Ӧ9vlƶmy.9vyW^%KMMMIEQP  BI)y;;;illD+4_BرcH<g޽EBmǏ@__x! 6A̩( L'NL&ikkݻwD6X'N`ii^زe mmmضRI)#t}L&Cgg'D"fSip * n!LrQyǨի騪G:李ۭv`=^Q*8Exbvvl6K0tU_g}!]]]qL$ )x{moJ4McӦM-655%BaŐRb6PnCu?Z[]R ֭[n_ (X˲&0;;\ (\ηrܷB]H&R)TU-ۣ(w&N$9լekjj@':++ "?&#UpP.&; we mn,q0oJA8{ tvva͋ixy۩hK9OMML,1??۷iii)9o)H$1{(=y$Νq)(Rz+_|A<Iimm-xGUUN:ťK`bb-[Յ'8uuuuݙ#?9㶵a&emh=:b!0MN$0 WH  a&d2XE6u4蠣q2KQq,/?+:fffR7Bdzz4 UbW[bYf]"ߊ000@*r|=۶m#NJmw7oV(UKSp{*NOUU[n<ܪW~JύHS7j I (pT~)ij:25M[ ﷂL@u.\ٳgeppiD3gΐJx衇ؾ}{Q0 ]alݺ6ʆAEQ0 .W_m6usssn(/|'ʾ}( 3>>g}Foo/{!L233S0RUB~|IyL$XsxgRGjNI r1ٳ۷cY$iD];&Z 3Pmm-n2 Dlڴ <~0dӦMn4+۷3wSFY^^.J Mt]gκewNb{( `6088{¬i!Y4M0 t]/P|!8ڹ4MҥKSPdE&000ܜt/k. D""n6===B!ܹCss3aTtٱcǺx^ѣ;vHBOeKd+L444%rxmmmOm۾7o;t?x~JcFyں<Ç1+(n}#rNr[kNy6 Wo|ΐc>7Br>ZPU!ضMKK o}!A ˼[WK1_R&_^^O?ukej@Qr_?~ܭEQFFF\;d0 \oʯ+g]o 6y(O<,@ נa 4IENDB`recoll-1.21.5/qtgui/mtpics/emblem-symbolic-link.png0000644000175000017500000000354312602163537021545 0ustar dockesdockesPNG  IHDR@@iqsBIT|d pHYsu85tEXtSoftwarewww.inkscape.org<IDATx[]LTG>3"B)6% }PMS6 >ib&w񯼩b*ҘJ+@H1H(;s땕=̽3wΙ;wwI)a)G(P`ZQFfDZf ?L"<!m(GDXO"fӈ- #!V!m,B!,AGL"F #spާpWVVuttl inn}||SRJN'ySo6nXL&jr+**{D}}/x؋E_*Mί"y238.< 3QLyjf2Y@O>-Y{3tlgwt#AХ]R=6o4]#eee'^yfZM&{h0 :2z0$ ;zxjEIbޖÙp# _{nWI;) Rji)<X j GU{ܮJ#ԣG\w+_}H48R,pLh[ą! C&[Kԭ"&:%0|?R]VbA޶(s^vamܐXR![AĹ H0Dpp">!:Bs]3t)Pя YGx(o›C9u&φz bI玴TQ`y'aJ^RD_ tY BeVضu[R@9ak7>FIk:tyZneL̄}'r @cnG{_ǚ5k`߾,pw laO())\s@< hcÆ/-4PeiYÇp`UĴ4,Я'H`LTF؜8qz}5$9r$2HD AHeSSS066jkoI=}/w"Ė\BMڵ ʎ?gΝSq9 \( \& x-Fɞ8x .1իWzio.k***"5[. ۱c,Rsc hLN&&&V,y;o-sD=~ގFuװڍ\gC)f<䩙df$ǐgFcEd˰{]BL.}/df ?*, (T=P@8sIENDB`recoll-1.21.5/qtgui/mtpics/presentation.png0000644000175000017500000000706712602163537020252 0ustar dockesdockesPNG  IHDR@@iqgAMA a pHYs  ~tIME 1  IDATx{pSם?^m 1B%I[M6dK3%]Yi:m&ݶMJ44tCٖ4L3ly4㘇1cc[ez{=Ǖ,alyw~+,GQf1%``c ١XQEnnGNb&""gYY`arcLhJFZ5Xfc,[ni}oW,$`pYY \;Cۅ7p>:~OkEN9\5?qI0YNN^z7T kOqq^Wtc@(:DOP jI##BQ.;[OKw8_(^}w}xV}:{Sp0?y'&fs&O$<5r3Ht@y}zL&nRcч2 xG|wepSb 0/zo f͚r =Ә jXXAUF˳B|%lm@ De2(Rr󓍊 0cƧ9_eK iL$!!򔣯iZO*FFCFC9yv^Iu%ڱc ug(FM5mpb0Lv?MH<)!J` uK;u=QQ㥐Вuu`M@S54E~1pW?lRzz])!F#0a5\$?3ԙ)X%+^f{3Ͷ 7塌tMN,/?ώݧXzF#F*&@SS;j - e":q~4 d`|/?T[,s$]~ A wp/ǎWTʙD%oҐ5&@'4oo{X֜mtU=u=@o 1;[ͤmΚ Bo"'!ǟ+9뷨AK*" 2v^@@P J.q5a浙Ji8t 5vБ \dj,Z1BB@UT&ԉɊNks. +W[x3CO"" JBAR$]X\٣2\3 Ƽz@ 7 ސ7GgArer.Zb*W?DD"aL#`J H a& Z &kɽ æk7l9jS -Z$Qh5'mВw +Qq( VÄ ZrDj% ?Ul6-t,P%g "I@S44Q˽HQ@@@:dGfI "$I j8 I嚅`c%W) GEdYAeQ,Ald̽HdAF贇1[^v&EC`;X,j"c(a". 2QiY6mn u a# PpY 8+RP&> Ȃ]r:&4%Vъ,&e.Lä< &!*X1S -K˭Brֳ V̂@_]g@$w,#BE;J<@19ƛ'ɏ1y3rbr 9uu9]N RkzaL~f ||YyK*yHEIر$%[OO6Yup 3چߔ}tR=;?vzdd7;:aӪ.S)(75cop{"e1ӵKp9NTVAjӚ`ۻxk(~% ܗ<"@H܌ZBMx,Gw+$@FNItW'dٯ㷧Y)̺-o.\DRJ](y] RP)`4fF3O:jS#>|g٭$&*' caǁ\ǒb(X,,CGc=N½ܘ^S#"["/?^ pv~_R[a=Wybg>Dݼ:ŔGPv]za:ooݺӹ![VY:}='>|eh'`aB@^HruV暇&@$|RV>shļQ; D94[K)(J,ϛ2 o_C~W[r^{˶mFKKf= hِeZ(mǺlR< [OҲ{Qn4EUUuo6ǷAu`5fϾrkzIx'YlYIJS@$1{=EBo>|)֓ϐZE= ~~ꩧXl 64z0L4ܸ~g  F>btu葰}v2ftlhhhv.QHł3SP;Sq/=JLA-[nZk fG  < tvw Ǐ{B1bd"O;Fu*et5f*baWBk+<'X6)x 3dby|xax}w/N; ZZ=o ~1Z{=_K=_px`x1'WJkڥK,G8Nmp](pᅞҫVy)) |p_X+egz)B+`=A^`3@);.jpuq砒~ޡzB]tM,'x֩$gkH˪((0YVB&<7RLBJPԯka̙, qv-3Oɧкh !=֠T)s]1Ih.2P(ІgC?D 1P]odn{2;nX 6[w'jlY|> z(^ϧ Lt|An7'SUZUw-:Ao `+R1>ޟgSDUao!H#f|N]׭0qJci50p[N*)Uﰨ%1#*pYp(FQ 1d`t>u qap&?-_<B+x3nC#F!>Ŵ0ϯ~ 3Be>nS+~s|u3`1 Gӗ/A>Za?L5 ! -0Mw=`S}zH0+ @ D&GӰ ~T}Sf7շLށޛd vwKP@Q Sb@5/mXX=]4> ɑ}P(N O%\? !8&ڴ=Ghğ}[dQN}g u`Jԗ+/^ RUA_joNp:J]C[`hd?$yA(;L@#iRj+JQ4@=ye3s'嵨~<23Bw:'R[*gqg!ѩ$z Y焓[FY6#vR<1/_.!Pi]nE`p0sPv0 K1`L}Y{9L0֚d2I6m뢾!aNHQg4 l!pZc~;CG{PiB@:&LJ9 }>{q7)Ӱ@LܧN!)QEぽHz=B~-k!NJHRil9izD98ߣd1E ɦq/ex;: ݇~1DZ#YP."AHcFP\f (&,5/ZFdzؽ=P٫@JBDa>trRva ଽk^L0R "Ȁі $[t ض B"Lsdaɋ=h!z?GKh *aiyrkmⰨE_f"0kj#+.@5kDDA*oB|J ІW| b/=G3#5dxx8aUt۪Ė-dǯQͭ ]pF(LP/?G>(}d  ]t*_J3ߑC}}ym+ɇpc R+^2;K Ic_АYv62c|琇Ц T/Zy_ze.Pp4 x-c-audE40FW*G/A&^AG6Vk.#b2gD[@$roП_Cw":n5kDL暿.W¸(nh[D67A6~+Ԫq,nhղX&rl`Ac(i-ό0-oH7lE>s#g$ o_@m`[X]e+uqY)GNJGJaYaM0] "w}?6:EHAmޝfZa]'T?G#?{;=kYtuuĽTSv\1xe O$f- ~,W} i`N&&pB3Hpwl߾!`# בw߂hf菮aOCS1\ ICCCmZ*gvׯ{}/S;|b;AvCfy}(̣M<8mO3_ /V]' nQo PB`ܳڷ' }Ghܼapݍ䗶 DS_ m&D[o8L$fYy׿Z&kmn%KH~*/!ijj28,]0lذZg &0[~R2p_1ZZ{ sMrsH߷n h3gҏ }P(ġCذaþ-[TX@ Chӿ Dri`//1w>4cB3u ! ^ǩV( ?sA-whwoUaƛD8ָW6 eq!Ύ{jUje@>.BOi[rG}j)px,iY:BD7vlݺwQy' (8bBUDƖ˲!(KpضMgg'w} [n{.<`tFHB M2?,"HiӦ #include #include "qxtconfirmationmessage.h" #include "debuglog.h" #include "fileudi.h" #include "execmd.h" #include "transcode.h" #include "docseqhist.h" #include "docseqdb.h" #include "internfile.h" #include "rclmain_w.h" #include "rclzg.h" using namespace std; // Start native viewer or preview for input Doc. This is used to allow // using recoll from another app (e.g. Unity Scope) to view embedded // result docs (docs with an ipath). . We act as a proxy to extract // the data and start a viewer. The Url are encoded as // file://path#ipath void RclMain::viewUrl() { if (m_urltoview.isEmpty() || !rcldb) return; QUrl qurl(m_urltoview); LOGDEB(("RclMain::viewUrl: Path [%s] fragment [%s]\n", (const char *)qurl.path().toLocal8Bit(), (const char *)qurl.fragment().toLocal8Bit())); /* In theory, the url might not be for a file managed by the fs indexer so that the make_udi() call here would be wrong(). When/if this happens we'll have to hide this part inside internfile and have some url magic to indicate the appropriate indexer/identification scheme */ string udi; make_udi((const char *)qurl.path().toLocal8Bit(), (const char *)qurl.fragment().toLocal8Bit(), udi); Rcl::Doc doc; Rcl::Doc idxdoc; // idxdoc.idxi == 0 -> works with base index only if (!rcldb->getDoc(udi, idxdoc, doc) || doc.pc == -1) return; // StartNativeViewer needs a db source to call getEnclosing() on. Rcl::Query *query = new Rcl::Query(rcldb); DocSequenceDb *src = new DocSequenceDb(RefCntr(query), "", RefCntr(new Rcl::SearchData)); m_source = RefCntr(src); // Start a native viewer if the mimetype has one defined, else a // preview. string apptag; doc.getmeta(Rcl::Doc::keyapptg, &apptag); string viewer = theconfig->getMimeViewerDef(doc.mimetype, apptag, prefs.useDesktopOpen); if (viewer.empty()) { startPreview(doc); } else { hide(); startNativeViewer(doc); // We have a problem here because xdg-open will exit // immediately after starting the command instead of waiting // for it, so we can't wait either and we don't know when we // can exit (deleting the temp file). As a bad workaround we // sleep some time then exit. The alternative would be to just // prevent the temp file deletion completely, leaving it // around forever. Better to let the user save a copy if he // wants I think. sleep(30); fileExit(); } } /* Look for html browser. We make a special effort for html because it's * used for reading help. This is only used if the normal approach * (xdg-open etc.) failed */ static bool lookForHtmlBrowser(string &exefile) { static const char *htmlbrowserlist = "opera google-chrome chromium-browser konqueror iceweasel firefox " "mozilla netscape epiphany"; vector blist; stringToTokens(htmlbrowserlist, blist, " "); const char *path = getenv("PATH"); if (path == 0) path = "/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin"; // Look for each browser for (vector::const_iterator bit = blist.begin(); bit != blist.end(); bit++) { if (ExecCmd::which(*bit, exefile, path)) return true; } exefile.clear(); return false; } void RclMain::openWith(Rcl::Doc doc, string cmdspec) { LOGDEB(("RclMain::openWith: %s\n", cmdspec.c_str())); // Split the command line vector lcmd; if (!stringToStrings(cmdspec, lcmd)) { QMessageBox::warning(0, "Recoll", tr("Bad desktop app spec for %1: [%2]\n" "Please check the desktop file") .arg(QString::fromUtf8(doc.mimetype.c_str())) .arg(QString::fromLocal8Bit(cmdspec.c_str()))); return; } // Look for the command to execute in the exec path and the filters // directory string execname = lcmd.front(); lcmd.erase(lcmd.begin()); string url = doc.url; string fn = fileurltolocalpath(doc.url); // Try to keep the letters used more or less consistent with the reslist // paragraph format. map subs; subs["F"] = fn; subs["f"] = fn; subs["U"] = url; subs["u"] = url; execViewer(subs, false, execname, lcmd, cmdspec, doc); } void RclMain::startNativeViewer(Rcl::Doc doc, int pagenum, QString term) { string apptag; doc.getmeta(Rcl::Doc::keyapptg, &apptag); LOGDEB(("RclMain::startNativeViewer: mtype [%s] apptag [%s] page %d " "term [%s] url [%s] ipath [%s]\n", doc.mimetype.c_str(), apptag.c_str(), pagenum, (const char *)(term.toUtf8()), doc.url.c_str(), doc.ipath.c_str() )); // Look for appropriate viewer string cmdplusattr = theconfig->getMimeViewerDef(doc.mimetype, apptag, prefs.useDesktopOpen); if (cmdplusattr.empty()) { QMessageBox::warning(0, "Recoll", tr("No external viewer configured for mime type [") + doc.mimetype.c_str() + "]"); return; } // Separate command string and viewer attributes (if any) ConfSimple viewerattrs; string cmd; theconfig->valueSplitAttributes(cmdplusattr, cmd, viewerattrs); bool ignoreipath = false; if (viewerattrs.get("ignoreipath", cmdplusattr)) ignoreipath = stringToBool(cmdplusattr); // Split the command line vector lcmd; if (!stringToStrings(cmd, lcmd)) { QMessageBox::warning(0, "Recoll", tr("Bad viewer command line for %1: [%2]\n" "Please check the mimeview file") .arg(QString::fromUtf8(doc.mimetype.c_str())) .arg(QString::fromLocal8Bit(cmd.c_str()))); return; } // Look for the command to execute in the exec path and the filters // directory string execpath; if (!ExecCmd::which(lcmd.front(), execpath)) { execpath = theconfig->findFilter(lcmd.front()); // findFilter returns its input param if the filter is not in // the normal places. As we already looked in the path, we // have no use for a simple command name here (as opposed to // mimehandler which will just let execvp do its thing). Erase // execpath so that the user dialog will be started further // down. if (!execpath.compare(lcmd.front())) execpath.erase(); // Specialcase text/html because of the help browser need if (execpath.empty() && !doc.mimetype.compare("text/html") && apptag.empty()) { if (lookForHtmlBrowser(execpath)) { lcmd.clear(); lcmd.push_back(execpath); lcmd.push_back("%u"); } } } // Command not found: start the user dialog to help find another one: if (execpath.empty()) { QString mt = QString::fromUtf8(doc.mimetype.c_str()); QString message = tr("The viewer specified in mimeview for %1: %2" " is not found.\nDo you want to start the " " preferences dialog ?") .arg(mt).arg(QString::fromLocal8Bit(lcmd.front().c_str())); switch(QMessageBox::warning(0, "Recoll", message, "Yes", "No", 0, 0, 1)) { case 0: showUIPrefs(); if (uiprefs) uiprefs->showViewAction(mt); break; case 1: break; } // The user will have to click on the link again to try the // new command. return; } // Get rid of the command name. lcmd is now argv[1...n] lcmd.erase(lcmd.begin()); // Process the command arguments to determine if we need to create // a temporary file. // If the command has a %i parameter it will manage the // un-embedding. Else if ipath is not empty, we need a temp file. // This can be overridden with the "ignoreipath" attribute bool groksipath = (cmd.find("%i") != string::npos) || ignoreipath; // wantsfile: do we actually need a local file ? The only other // case here is an url %u (ie: for web history). bool wantsfile = cmd.find("%f") != string::npos && urlisfileurl(doc.url); bool wantsparentfile = cmd.find("%F") != string::npos && urlisfileurl(doc.url); if (wantsfile && wantsparentfile) { QMessageBox::warning(0, "Recoll", tr("Viewer command line for %1 specifies both " "file and parent file value: unsupported") .arg(QString::fromUtf8(doc.mimetype.c_str()))); return; } string url = doc.url; string fn = fileurltolocalpath(doc.url); Rcl::Doc pdoc; if (wantsparentfile) { // We want the path for the parent document. For example to // open the chm file, not the internal page. Note that we just // override the other file name in this case. if (m_source.isNull() || !m_source->getEnclosing(doc, pdoc)) { QMessageBox::warning(0, "Recoll", tr("Cannot find parent document")); return; } // Override fn with the parent's : fn = fileurltolocalpath(pdoc.url); // If the parent document has an ipath too, we need to create // a temp file even if the command takes an ipath // parameter. We have no viewer which could handle a double // embedding. Will have to change if such a one appears. if (!pdoc.ipath.empty()) { groksipath = false; } } bool enterHistory = false; bool istempfile = false; LOGDEB(("RclMain::startNV: groksipath %d wantsf %d wantsparentf %d\n", groksipath, wantsfile, wantsparentfile)); // If the command wants a file but this is not a file url, or // there is an ipath that it won't understand, we need a temp file: theconfig->setKeyDir(path_getfather(fn)); if (!doc.isFsFile() || ((wantsfile || wantsparentfile) && fn.empty()) || (!groksipath && !doc.ipath.empty()) ) { TempFile temp; Rcl::Doc& thedoc = wantsparentfile ? pdoc : doc; if (!FileInterner::idocToFile(temp, string(), theconfig, thedoc)) { QMessageBox::warning(0, "Recoll", tr("Cannot extract document or create " "temporary file")); return; } enterHistory = true; istempfile = true; rememberTempFile(temp); fn = temp->filename(); url = string("file://") + fn; } // If using an actual file, check that it exists, and if it is // compressed, we may need an uncompressed version if (!fn.empty() && theconfig->mimeViewerNeedsUncomp(doc.mimetype)) { if (access(fn.c_str(), R_OK) != 0) { QMessageBox::warning(0, "Recoll", tr("Can't access file: ") + QString::fromLocal8Bit(fn.c_str())); return; } TempFile temp; if (FileInterner::isCompressed(fn, theconfig)) { if (!FileInterner::maybeUncompressToTemp(temp, fn, theconfig, doc)) { QMessageBox::warning(0, "Recoll", tr("Can't uncompress file: ") + QString::fromLocal8Bit(fn.c_str())); return; } } if (!temp.isNull()) { istempfile = true; rememberTempFile(temp); fn = temp->filename(); url = string("file://") + fn; } } if (istempfile) { QxtConfirmationMessage confirm( QMessageBox::Warning, "Recoll", tr("Opening a temporary copy. Edits will be lost if you don't save" "
them to a permanent location."), "Do not show this warning next time " "(open GUI preferences to restore)"); confirm.setSettingsPath("Recoll/prefs"); confirm.setOverrideSettingsKey("showTempFileWarning"); confirm.exec(); } // If we are not called with a page number (which would happen for a call // from the snippets window), see if we can compute a page number anyway. if (pagenum == -1) { pagenum = 1; string lterm; if (m_source.isNotNull()) pagenum = m_source->getFirstMatchPage(doc, lterm); if (pagenum == -1) pagenum = 1; else // We get the match term used to compute the page term = QString::fromUtf8(lterm.c_str()); } char cpagenum[20]; sprintf(cpagenum, "%d", pagenum); // Substitute %xx inside arguments string efftime; if (!doc.dmtime.empty() || !doc.fmtime.empty()) { efftime = doc.dmtime.empty() ? doc.fmtime : doc.dmtime; } else { efftime = "0"; } // Try to keep the letters used more or less consistent with the reslist // paragraph format. map subs; subs["D"] = efftime; subs["f"] = fn; subs["F"] = fn; subs["i"] = FileInterner::getLastIpathElt(doc.ipath); subs["M"] = doc.mimetype; subs["p"] = cpagenum; subs["s"] = (const char*)term.toLocal8Bit(); subs["U"] = url; subs["u"] = url; // Let %(xx) access all metadata. for (map::const_iterator it = doc.meta.begin(); it != doc.meta.end(); it++) { subs[it->first] = it->second; } execViewer(subs, enterHistory, execpath, lcmd, cmd, doc); } void RclMain::execViewer(const map& subs, bool enterHistory, const string& execpath, const vector& _lcmd, const string& cmd, Rcl::Doc doc) { string ncmd; vector lcmd; for (vector::const_iterator it = _lcmd.begin(); it != _lcmd.end(); it++) { pcSubst(*it, ncmd, subs); LOGDEB(("%s->%s\n", it->c_str(), ncmd.c_str())); lcmd.push_back(ncmd); } // Also substitute inside the unsplitted command line and display // in status bar pcSubst(cmd, ncmd, subs); ncmd += " &"; QStatusBar *stb = statusBar(); if (stb) { string fcharset = theconfig->getDefCharset(true); string prcmd; transcode(ncmd, prcmd, fcharset, "UTF-8"); QString msg = tr("Executing: [") + QString::fromUtf8(prcmd.c_str()) + "]"; stb->showMessage(msg, 10000); } if (!enterHistory) historyEnterDoc(g_dynconf, doc.meta[Rcl::Doc::keyudi]); // Do the zeitgeist thing zg_send_event(ZGSEND_OPEN, doc); // We keep pushing back and never deleting. This can't be good... ExecCmd *ecmd = new ExecCmd; m_viewers.push_back(ecmd); ecmd->startExec(execpath, lcmd, false, false); } void RclMain::startManual() { startManual(string()); } void RclMain::startManual(const string& index) { Rcl::Doc doc; doc.url = "file://"; doc.url = path_cat(doc.url, theconfig->getDatadir()); doc.url = path_cat(doc.url, "doc"); doc.url = path_cat(doc.url, "usermanual.html"); LOGDEB(("RclMain::startManual: help index is %s\n", index.empty()?"(null)":index.c_str())); if (!index.empty()) { doc.url += "#"; doc.url += index; } doc.mimetype = "text/html"; startNativeViewer(doc); } recoll-1.21.5/qtgui/recoll.qrc0000644000175000017500000000103112602163537015502 0ustar dockesdockes images/asearch.png images/cancel.png images/close.png images/code-block.png images/history.png images/nextpage.png images/prevpage.png images/firstpage.png images/sortparms.png images/spell.png images/table.png images/up.png images/down.png images/recoll.png recoll-1.21.5/qtgui/xmltosd.cpp0000644000175000017500000002412512602163572015721 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include "ssearch_w.h" #include "guiutils.h" #include "debuglog.h" #include "xmltosd.h" #include "smallut.h" #include "recoll.h" using namespace std; using namespace Rcl; class SDHXMLHandler : public QXmlDefaultHandler { public: SDHXMLHandler() : isvalid(false) { resetTemps(); } bool startElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName, const QXmlAttributes &attributes); bool endElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName); bool characters(const QString &str) { currentText += str; return true; } // The object we set up RefCntr sd; bool isvalid; private: void resetTemps() { currentText = whatclause = ""; text.clear(); field.clear(); slack = 0; d = m = y = di.d1 = di.m1 = di.y1 = di.d2 = di.m2 = di.y2 = 0; hasdates = false; exclude = false; } // Temporary data while parsing. QString currentText; QString whatclause; string field, text; int slack; int d, m, y; DateInterval di; bool hasdates; bool exclude; }; bool SDHXMLHandler::startElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName, const QXmlAttributes &attrs) { LOGDEB2(("SDHXMLHandler::startElement: name [%s]\n", (const char *)qName.toUtf8())); if (qName == "SD") { // Advanced search history entries have no type. So we're good // either if type is absent, or if it's searchdata int idx = attrs.index("type"); if (idx >= 0 && attrs.value(idx).compare("searchdata")) { LOGDEB(("XMLTOSD: bad type\n")) return false; } resetTemps(); // A new search descriptor. Allocate data structure sd = RefCntr(new SearchData); if (sd.isNull()) { LOGERR(("SDHXMLHandler::startElement: out of memory\n")); return false; } } return true; } bool SDHXMLHandler::endElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName) { LOGDEB2(("SDHXMLHandler::endElement: name [%s]\n", (const char *)qName.toUtf8())); if (qName == "CLT") { if (currentText == "OR") { sd->setTp(SCLT_OR); } } else if (qName == "CT") { whatclause = currentText.trimmed(); } else if (qName == "NEG") { exclude = true; } else if (qName == "F") { field = base64_decode(qs2utf8s(currentText.trimmed())); } else if (qName == "T") { text = base64_decode(qs2utf8s(currentText.trimmed())); } else if (qName == "S") { slack = atoi((const char *)currentText.toUtf8()); } else if (qName == "C") { SearchDataClause *c; if (whatclause == "AND" || whatclause.isEmpty()) { c = new SearchDataClauseSimple(SCLT_AND, text, field); c->setexclude(exclude); } else if (whatclause == "OR") { c = new SearchDataClauseSimple(SCLT_OR, text, field); c->setexclude(exclude); } else if (whatclause == "EX") { // Compat with old hist. We don't generete EX (SCLT_EXCL) anymore // it's replaced with OR + exclude flag c = new SearchDataClauseSimple(SCLT_OR, text, field); c->setexclude(true); } else if (whatclause == "FN") { c = new SearchDataClauseFilename(text); c->setexclude(exclude); } else if (whatclause == "PH") { c = new SearchDataClauseDist(SCLT_PHRASE, text, slack, field); c->setexclude(exclude); } else if (whatclause == "NE") { c = new SearchDataClauseDist(SCLT_NEAR, text, slack, field); c->setexclude(exclude); } else { LOGERR(("Bad clause type [%s]\n", qs2utf8s(whatclause).c_str())); return false; } sd->addClause(c); whatclause = ""; text.clear(); field.clear(); slack = 0; exclude = false; } else if (qName == "D") { d = atoi((const char *)currentText.toUtf8()); } else if (qName == "M") { m = atoi((const char *)currentText.toUtf8()); } else if (qName == "Y") { y = atoi((const char *)currentText.toUtf8()); } else if (qName == "DMI") { di.d1 = d; di.m1 = m; di.y1 = y; hasdates = true; } else if (qName == "DMA") { di.d2 = d; di.m2 = m; di.y2 = y; hasdates = true; } else if (qName == "MIS") { sd->setMinSize(atoll((const char *)currentText.toUtf8())); } else if (qName == "MAS") { sd->setMaxSize(atoll((const char *)currentText.toUtf8())); } else if (qName == "ST") { string types = (const char *)currentText.toUtf8(); vector vt; stringToTokens(types, vt); for (unsigned int i = 0; i < vt.size(); i++) sd->addFiletype(vt[i]); } else if (qName == "IT") { string types(qs2utf8s(currentText)); vector vt; stringToTokens(types, vt); for (unsigned int i = 0; i < vt.size(); i++) sd->remFiletype(vt[i]); } else if (qName == "YD") { string d; base64_decode(qs2utf8s(currentText.trimmed()), d); sd->addClause(new SearchDataClausePath(d)); } else if (qName == "ND") { string d; base64_decode(qs2utf8s(currentText.trimmed()), d); sd->addClause(new SearchDataClausePath(d, true)); } else if (qName == "SD") { // Closing current search descriptor. Finishing touches... if (hasdates) sd->setDateSpan(&di); resetTemps(); isvalid = true; } currentText.clear(); return true; } RefCntr xmlToSearchData(const string& xml) { SDHXMLHandler handler; QXmlSimpleReader reader; reader.setContentHandler(&handler); reader.setErrorHandler(&handler); QXmlInputSource xmlInputSource; xmlInputSource.setData(QString::fromUtf8(xml.c_str())); if (!reader.parse(xmlInputSource) || !handler.isvalid) { LOGERR(("xmlToSearchData: parse failed for [%s]\n", xml.c_str())); return RefCntr(); } return handler.sd; } // Handler for parsing saved simple search data class SSHXMLHandler : public QXmlDefaultHandler { public: SSHXMLHandler() : isvalid(false) { resetTemps(); } bool startElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName, const QXmlAttributes &attributes); bool endElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName); bool characters(const QString &str) { currentText += str; return true; } // The object we set up SSearchDef data; bool isvalid; private: void resetTemps() { currentText = whatclause = ""; text.clear(); } // Temporary data while parsing. QString currentText; QString whatclause; string text; }; bool SSHXMLHandler::startElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName, const QXmlAttributes &attrs) { LOGDEB2(("SSHXMLHandler::startElement: name [%s]\n", (const char *)qName.toUtf8())); if (qName == "SD") { // Simple search saved data has a type='ssearch' attribute. int idx = attrs.index("type"); if (idx < 0 && attrs.value(idx).compare("ssearch")) { LOGDEB(("XMLTOSSS: bad type\n")); return false; } resetTemps(); } return true; } bool SSHXMLHandler::endElement(const QString & /* namespaceURI */, const QString & /* localName */, const QString &qName) { LOGDEB2(("SSHXMLHandler::endElement: name [%s]\n", (const char *)qName.toUtf8())); currentText = currentText.trimmed(); if (qName == "SL") { stringToStrings(qs2utf8s(currentText), data.stemlangs); } else if (qName == "T") { base64_decode(qs2utf8s(currentText), data.text); } else if (qName == "EX") { data.extindexes.push_back(base64_decode(qs2utf8s(currentText))); } else if (qName == "SM") { if (!currentText.compare("QL")) { data.mode = SSearch::SST_LANG; } else if (!currentText.compare("FN")) { data.mode = SSearch::SST_FNM; } else if (!currentText.compare("OR")) { data.mode = SSearch::SST_ANY; } else if (!currentText.compare("AND")) { data.mode = SSearch::SST_ALL; } else { LOGERR(("BAD SEARCH MODE: [%s]\n", qs2utf8s(currentText).c_str())); return false; } } else if (qName == "AS") { stringToStrings(qs2utf8s(currentText), data.autosuffs); } else if (qName == "AP") { data.autophrase = true; } else if (qName == "SD") { // Closing current search descriptor. Finishing touches... resetTemps(); isvalid = true; } currentText.clear(); return true; } bool xmlToSSearch(const string& xml, SSearchDef& data) { SSHXMLHandler handler; QXmlSimpleReader reader; reader.setContentHandler(&handler); reader.setErrorHandler(&handler); QXmlInputSource xmlInputSource; xmlInputSource.setData(QString::fromUtf8(xml.c_str())); if (!reader.parse(xmlInputSource) || !handler.isvalid) { LOGERR(("xmlToSSearch: parse failed for [%s]\n", xml.c_str())); return false; } data = handler.data; return true; } recoll-1.21.5/qtgui/guiutils.cpp0000644000175000017500000003675512645207740016113 0ustar dockesdockes/* Copyright (C) 2005 Jean-Francois Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "recoll.h" #include "debuglog.h" #include "smallut.h" #include "guiutils.h" #include "pathut.h" #include "base64.h" #include "advshist.h" #include #include #include #include RclDynConf *g_dynconf; AdvSearchHist *g_advshistory; RclConfig *theconfig; // The table should not be necessary, but I found no css way to get // qt 4.6 qtextedit to clear the margins after the float img without // introducing blank space. const char *PrefsPack::dfltResListFormat = "\n" "\n" "\n" "\n" "
%L  %S   %T
\n" "%M %D    %U %i
\n" "%A %K
\n" ; // The global preferences structure PrefsPack prefs; // Using the same macro to read/write a setting. insurance against typing // mistakes #define PARS(X) (X) #define SETTING_RW(var, nm, tp, def) \ if (writing) { \ settings.setValue(nm , var); \ } else { \ var = settings.value(nm, def).to##tp \ (); \ } /** * Saving and restoring user preferences. These are stored in a global * structure during program execution and saved to disk using the QT * settings mechanism */ /* Remember if settings were actually read (to avoid writing them if * we stopped before reading them (else some kinds of errors would reset * the qt/recoll settings to defaults) */ static bool havereadsettings; void rwSettings(bool writing) { LOGDEB1(("rwSettings: write %d\n", int(writing))); if (writing && !havereadsettings) return; QSettings settings("Recoll.org", "recoll"); SETTING_RW(prefs.mainwidth, "/Recoll/geometry/width", Int, 0); SETTING_RW(prefs.mainheight, "/Recoll/geometry/height", Int, 0); SETTING_RW(prefs.pvwidth, "/Recoll/geometry/pvwidth", Int, 0); SETTING_RW(prefs.pvheight, "/Recoll/geometry/pvheight", Int, 0); SETTING_RW(prefs.toolArea, "/Recoll/geometry/toolArea", Int, 0); SETTING_RW(prefs.resArea, "/Recoll/geometry/resArea", Int, 0); SETTING_RW(prefs.ssearchTypSav, "/Recoll/prefs/ssearchTypSav", Bool, 0); SETTING_RW(prefs.ssearchTyp, "/Recoll/prefs/simpleSearchTyp", Int, 3); SETTING_RW(prefs.startWithAdvSearchOpen, "/Recoll/prefs/startWithAdvSearchOpen", Bool, false); SETTING_RW(prefs.previewHtml, "/Recoll/prefs/previewHtml", Bool, true); QString advSearchClauses; QString ascdflt; if (writing) { for (vector::iterator it = prefs.advSearchClauses.begin(); it != prefs.advSearchClauses.end(); it++) { char buf[20]; sprintf(buf, "%d ", *it); advSearchClauses += QString::fromUtf8(buf); } } SETTING_RW(advSearchClauses, "/Recoll/prefs/adv/clauseList", String, ascdflt); if (!writing) { list clauses; stringToStrings((const char *)advSearchClauses.toUtf8(), clauses); for (list::iterator it = clauses.begin(); it != clauses.end(); it++) { prefs.advSearchClauses.push_back(atoi(it->c_str())); } } SETTING_RW(prefs.ssearchOnWS, "/Recoll/prefs/reslist/autoSearchOnWS", Bool, false); SETTING_RW(prefs.ssearchNoComplete, "/Recoll/prefs/ssearch/noComplete", Bool, false); SETTING_RW(prefs.ssearchAsYouType, "/Recoll/prefs/ssearch/asYouType", Bool, false); SETTING_RW(prefs.filterCtlStyle, "/Recoll/prefs/filterCtlStyle", Int, 0); SETTING_RW(prefs.ssearchAutoPhrase, "/Recoll/prefs/ssearchAutoPhrase", Bool, true); SETTING_RW(prefs.ssearchAutoPhraseThreshPC, "/Recoll/prefs/ssearchAutoPhraseThreshPC", Double, 2.0); SETTING_RW(prefs.respagesize, "/Recoll/prefs/reslist/pagelen", Int, 8); SETTING_RW(prefs.collapseDuplicates, "/Recoll/prefs/reslist/collapseDuplicates", Bool, false); SETTING_RW(prefs.showResultsAsTable, "/Recoll/prefs/showResultsAsTable", Bool, false); SETTING_RW(prefs.maxhltextmbs, "/Recoll/prefs/preview/maxhltextmbs", Int, 3); SETTING_RW(prefs.previewPlainPre, "/Recoll/prefs/preview/plainPre", Int, PrefsPack::PP_PREWRAP); SETTING_RW(prefs.qtermcolor, "/Recoll/prefs/qtermcolor", String, "blue"); if (!writing && prefs.qtermcolor == "") prefs.qtermcolor = "blue"; // Abstract snippet separator SETTING_RW(prefs.abssep, "/Recoll/prefs/reslist/abssep", String,"…"); if (!writing && prefs.abssep == "") prefs.abssep = "…"; SETTING_RW(prefs.reslistdateformat, "/Recoll/prefs/reslist/dateformat", String," %Y-%m-%d %H:%M:%S %z"); if (!writing && prefs.reslistdateformat == "") prefs.reslistdateformat = " %Y-%m-%d %H:%M:%S %z"; prefs.creslistdateformat = (const char*)prefs.reslistdateformat.toUtf8(); SETTING_RW(prefs.reslistfontfamily, "/Recoll/prefs/reslist/fontFamily", String, ""); SETTING_RW(prefs.reslistfontsize, "/Recoll/prefs/reslist/fontSize", Int, 10); prefs.fontcolor = QApplication::palette().text().color().name(); QString rlfDflt = QString::fromUtf8(prefs.dfltResListFormat); if (writing) { if (prefs.reslistformat.compare(rlfDflt)) { settings.setValue("/Recoll/prefs/reslist/format", prefs.reslistformat); } else { settings.remove("/Recoll/prefs/reslist/format"); } } else { prefs.reslistformat = settings.value("/Recoll/prefs/reslist/format", rlfDflt).toString(); prefs.creslistformat = qs2utf8s(prefs.reslistformat); } SETTING_RW(prefs.reslistheadertext, "/Recoll/prefs/reslist/headertext", String, ""); SETTING_RW(prefs.qssFile, "/Recoll/prefs/stylesheet", String, ""); SETTING_RW(prefs.snipCssFile, "/Recoll/prefs/snippets/cssfile", String, ""); SETTING_RW(prefs.queryStemLang, "/Recoll/prefs/query/stemLang", String, "english"); SETTING_RW(prefs.useDesktopOpen, "/Recoll/prefs/useDesktopOpen", Bool, true); SETTING_RW(prefs.keepSort, "/Recoll/prefs/keepSort", Bool, false); SETTING_RW(prefs.sortField, "/Recoll/prefs/sortField", String, ""); SETTING_RW(prefs.sortActive, "/Recoll/prefs/sortActive", Bool, false); SETTING_RW(prefs.sortDesc, "/Recoll/prefs/query/sortDesc", Bool, 0); if (!writing) { // Handle transition from older prefs which did not store sortColumn // (Active always meant sort by date). if (prefs.sortActive && prefs.sortField.isNull()) prefs.sortField = "mtime"; } SETTING_RW(prefs.queryBuildAbstract, "/Recoll/prefs/query/buildAbstract", Bool, true); SETTING_RW(prefs.queryReplaceAbstract, "/Recoll/prefs/query/replaceAbstract", Bool, false); SETTING_RW(prefs.syntAbsLen, "/Recoll/prefs/query/syntAbsLen", Int, 250); SETTING_RW(prefs.syntAbsCtx, "/Recoll/prefs/query/syntAbsCtx", Int, 4); SETTING_RW(prefs.autoSuffs, "/Recoll/prefs/query/autoSuffs", String, ""); SETTING_RW(prefs.autoSuffsEnable, "/Recoll/prefs/query/autoSuffsEnable", Bool, false); SETTING_RW(prefs.termMatchType, "/Recoll/prefs/query/termMatchType", Int, 0); // This is not really the current program version, just a value to // be used in case we have incompatible changes one day SETTING_RW(prefs.rclVersion, "/Recoll/prefs/rclVersion", Int, 1009); // Ssearch combobox history list if (writing) { settings.setValue("/Recoll/prefs/query/ssearchHistory", prefs.ssearchHistory); } else { prefs.ssearchHistory = settings.value("/Recoll/prefs/query/ssearchHistory").toStringList(); } // Ignored file types (advanced search) if (writing) { settings.setValue("/Recoll/prefs/query/asearchIgnFilTyps", prefs.asearchIgnFilTyps); } else { prefs.asearchIgnFilTyps = settings.value("/Recoll/prefs/query/asearchIgnFilTyps").toStringList(); } // Field list for the restable if (writing) { settings.setValue("/Recoll/prefs/query/restableFields", prefs.restableFields); } else { prefs.restableFields = settings.value("/Recoll/prefs/query/restableFields").toStringList(); if (prefs.restableFields.empty()) { prefs.restableFields.push_back("date"); prefs.restableFields.push_back("title"); prefs.restableFields.push_back("filename"); prefs.restableFields.push_back("author"); prefs.restableFields.push_back("url"); } } // restable col widths QString rtcw; if (writing) { for (vector::iterator it = prefs.restableColWidths.begin(); it != prefs.restableColWidths.end(); it++) { char buf[20]; sprintf(buf, "%d ", *it); rtcw += QString::fromUtf8(buf); } } SETTING_RW(rtcw, "/Recoll/prefs/query/restableWidths", String, "83 253 132 172 130 "); if (!writing) { vector widths; stringToStrings((const char *)rtcw.toUtf8(), widths); for (vector::iterator it = widths.begin(); it != widths.end(); it++) { prefs.restableColWidths.push_back(atoi(it->c_str())); } } SETTING_RW(prefs.fileTypesByCats, "/Recoll/prefs/query/asearchFilTypByCat", Bool, false); SETTING_RW(prefs.showTrayIcon, "/Recoll/prefs/showTrayIcon", Bool, false); SETTING_RW(prefs.closeToTray, "/Recoll/prefs/closeToTray", Bool, false); SETTING_RW(prefs.showTempFileWarning, "Recoll/prefs/showTempFileWarning", Int, -1); if (g_dynconf == 0) { // Happens return; } // The extra databases settings. These are stored as a list of // xapian directory names, encoded in base64 to avoid any // binary/charset conversion issues. There are 2 lists for all // known dbs and active (searched) ones. // When starting up, we also add from the RECOLL_EXTRA_DBS environment // variable. // This are stored inside the dynamic configuration file (aka: history), // as they are likely to depend on RECOLL_CONFDIR. if (writing) { g_dynconf->eraseAll(allEdbsSk); for (list::const_iterator it = prefs.allExtraDbs.begin(); it != prefs.allExtraDbs.end(); it++) { g_dynconf->enterString(allEdbsSk, *it); } g_dynconf->eraseAll(actEdbsSk); for (list::const_iterator it = prefs.activeExtraDbs.begin(); it != prefs.activeExtraDbs.end(); it++) { g_dynconf->enterString(actEdbsSk, *it); } } else { prefs.allExtraDbs = g_dynconf->getStringList(allEdbsSk); const char *cp; if ((cp = getenv("RECOLL_EXTRA_DBS")) != 0) { vector dbl; stringToTokens(cp, dbl, ":"); for (vector::iterator dit = dbl.begin(); dit != dbl.end(); dit++) { string dbdir = path_canon(*dit); path_catslash(dbdir); if (std::find(prefs.allExtraDbs.begin(), prefs.allExtraDbs.end(), dbdir) != prefs.allExtraDbs.end()) continue; bool stripped; if (!Rcl::Db::testDbDir(dbdir, &stripped)) { LOGERR(("Not a xapian index: [%s]\n", dbdir.c_str())); continue; } if (stripped != o_index_stripchars) { LOGERR(("Incompatible character stripping: [%s]\n", dbdir.c_str())); continue; } prefs.allExtraDbs.push_back(dbdir); } } // Get the remembered "active external indexes": prefs.activeExtraDbs = g_dynconf->getStringList(actEdbsSk); // Clean up the list: remove directories which are not // actually there: useful for removable volumes. for (list::iterator it = prefs.activeExtraDbs.begin(); it != prefs.activeExtraDbs.end();) { bool stripped; if (!Rcl::Db::testDbDir(*it, &stripped) || stripped != o_index_stripchars) { LOGINFO(("Not a Xapian index or char stripping differs: [%s]\n", it->c_str())); it = prefs.activeExtraDbs.erase(it); } else { it++; } } // Get active db directives from the environment. This can only add to // the remembered and cleaned up list const char *cp4Act; if ((cp4Act = getenv("RECOLL_ACTIVE_EXTRA_DBS")) != 0) { vector dbl; stringToTokens(cp4Act, dbl, ":"); for (vector::iterator dit = dbl.begin(); dit != dbl.end(); dit++) { string dbdir = path_canon(*dit); path_catslash(dbdir); if (std::find(prefs.activeExtraDbs.begin(), prefs.activeExtraDbs.end(), dbdir) != prefs.activeExtraDbs.end()) continue; bool strpd; if (!Rcl::Db::testDbDir(dbdir, &strpd) || strpd != o_index_stripchars) { LOGERR(("Not a Xapian dir or diff. char stripping: [%s]\n", dbdir.c_str())); continue; } prefs.activeExtraDbs.push_back(dbdir); } //for } //if } #if 0 { list::const_iterator it; fprintf(stderr, "All extra Dbs:\n"); for (it = prefs.allExtraDbs.begin(); it != prefs.allExtraDbs.end(); it++) { fprintf(stderr, " [%s]\n", it->c_str()); } fprintf(stderr, "Active extra Dbs:\n"); for (it = prefs.activeExtraDbs.begin(); it != prefs.activeExtraDbs.end(); it++) { fprintf(stderr, " [%s]\n", it->c_str()); } } #endif const string asbdSk = "asearchSbd"; if (writing) { while (prefs.asearchSubdirHist.size() > 20) prefs.asearchSubdirHist.pop_back(); g_dynconf->eraseAll(asbdSk); for (QStringList::iterator it = prefs.asearchSubdirHist.begin(); it != prefs.asearchSubdirHist.end(); it++) { g_dynconf->enterString(asbdSk, (const char *)((*it).toUtf8())); } } else { list tl = g_dynconf->getStringList(asbdSk); for (list::iterator it = tl.begin(); it != tl.end(); it++) prefs.asearchSubdirHist.push_front(QString::fromUtf8(it->c_str())); } if (!writing) havereadsettings = true; } string PrefsPack::stemlang() { string stemLang(qs2utf8s(prefs.queryStemLang)); if (stemLang == "ALL") { if (theconfig) theconfig->getConfParam("indexstemminglanguages", stemLang); else stemLang = ""; } return stemLang; } QString myGetFileName(bool isdir, QString caption, bool filenosave) { LOGDEB1(("myFileDialog: isdir %d\n", isdir)); QFileDialog dialog(0, caption); if (isdir) { dialog.setFileMode(QFileDialog::Directory); dialog.setOptions(QFileDialog::ShowDirsOnly); } else { dialog.setFileMode(QFileDialog::AnyFile); if (filenosave) dialog.setAcceptMode(QFileDialog::AcceptOpen); else dialog.setAcceptMode(QFileDialog::AcceptSave); } dialog.setViewMode(QFileDialog::List); QFlags flags = QDir::NoDotAndDotDot | QDir::Hidden; if (isdir) flags |= QDir::Dirs; else flags |= QDir::Dirs | QDir::Files; dialog.setFilter(flags); if (dialog.exec() == QDialog::Accepted) { return dialog.selectedFiles().value(0); } return QString(); } recoll-1.21.5/qtgui/uiprefs.ui0000644000175000017500000010166712645207740015551 0ustar dockesdockes uiPrefsDialogBase 0 0 542 449 User preferences true 0 User interface Highlight color for query terms false 50 0 Style sheet false Opens a dialog to select the style sheet file Choose Resets the style sheet to default Reset 1 0 Texts over this size will not be highlighted in preview (too slow). Maximum text size highlighted for preview (megabytes) false 1 3 Prefer Html to plain text for preview. false Lines in PRE text are not folded. Using BR loses some indentation. PRE + Wrap style may be what you want. Plain text to HTML line style <BR> buttonGroup <PRE> buttonGroup <PRE> + wrap buttonGroup Choose editor applications Decide if document filters are shown as radio buttons, toolbar combobox, or menu. Document filter choice style: Buttons Panel buttonGroup_2 Toolbar Combobox buttonGroup_2 Menu buttonGroup_2 Start with simple search mode false Disable Qt autocompletion in search entry. false Auto-start simple search on whitespace entry. false Search as you type. false Start with advanced search dialog open. false Remember sort activation state. false Show system tray icon. false Close to tray instead of exiting. false Show warning when opening temporary file. true Qt::Vertical QSizePolicy::Expanding 20 70 Result List 1 0 Number of entries in a result page false 1 9999 8 Result list font false Opens a dialog to select the result list font Helvetica-10 Resets the result list font to the system default Reset Edit result paragraph format string Edit result page html header insert Date format (strftime(3)) false 30 0 Abstract snippet separator false 30 0 User style to apply to the snippets window.<br> Note: the result page header insert is also included in the snippets window header. Snippets window CSS file false Opens a dialog to select the Snippets window CSS style sheet file Choose Resets the Snippets window style Reset Qt::Vertical 20 40 Search parameters If checked, results with the same content under different names will only be shown once. Hide duplicate results. false Stemming language false QFrame::HLine QFrame::Sunken A search for [rolling stones] (2 terms) will be changed to [rolling or stones or (rolling phrase 2 stones)]. This should give higher precedence to the results where the search terms appear exactly as entered. Automatically add phrase to simple searches 1 0 Frequency percentage threshold over which we do not use terms inside autophrase. Frequent terms are a major performance issue with phrases. Skipped terms augment the phrase slack, and reduce the autophrase efficiency. The default value is 2 (percent). Autophrase term frequency threshold percentage false 0.200000000000000 2.000000000000000 QFrame::HLine QFrame::Sunken Do we try to build abstracts for result list entries by using the context of query terms ? May be slow for big documents. Dynamically build abstracts Do we synthetize an abstract even if the document seemed to have one? Replace abstracts from documents 2 0 Synthetic abstract size (characters) false 1 0 80 100000 10 250 1 0 Synthetic abstract context words false 2 20000 4 QFrame::HLine QFrame::Sunken 1 0 The words in the list will be automatically turned to ext:xxx clauses in the query language entry. Query language magic file name suffixes. false Enable 30 0 Qt::Vertical QSizePolicy::Expanding 20 70 External Indexes QAbstractItemView::ExtendedSelection Toggle selected Activate All Deactivate All Paths translations QFrame::HLine QFrame::Sunken Remove from list. This has no effect on the disk index. Remove selected Qt::Horizontal QSizePolicy::Expanding 16 20 true Click to add another index directory to the list. You can select either a Recoll configuration directory or a Xapian index. Add index Qt::Horizontal QSizePolicy::Expanding 210 20 Apply changes &OK true true Discard changes &Cancel true recoll-1.21.5/qtgui/ssearchb.ui0000644000175000017500000000526712602163537015663 0ustar dockesdockes SSearchBase 0 0 593 48 SSearchBase 2 4 false Erase search entry Clear Ctrl+S false Start query Search Qt::TabFocus Choose search type. 8 0 155 0 Enter search terms here. Type ESC SPC for completions of current term. true 200 QComboBox::NoInsert false recoll-1.21.5/qtgui/systray.h0000644000175000017500000000230112602163537015403 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SYSTRAY_H_INCLUDED_ #define _SYSTRAY_H_INCLUDED_ #include #include class RclMain; class RclTrayIcon : public QSystemTrayIcon { Q_OBJECT public: RclTrayIcon(RclMain *mainw, const QIcon& icon, QObject* parent = 0) : QSystemTrayIcon(icon, parent), m_mainw(mainw) { init(); } public slots: void onRestore(); private: void init(); RclMain *m_mainw; }; #endif /* _SYSTRAY_H_INCLUDED_ */ recoll-1.21.5/qtgui/searchclause_w.h0000644000175000017500000000276012602163537016666 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef SEARCHCLAUSE_H #define SEARCHCLAUSE_H // A class for entry of a search clause: type (OR/AND/etc.), distance // for PHRASE or NEAR, and text #include #include #include "searchdata.h" class QVBoxLayout; class QHBoxLayout; class QComboBox; class QSpinBox; class QLineEdit; class SearchClauseW : public QWidget { Q_OBJECT public: SearchClauseW(QWidget* parent = 0); ~SearchClauseW(); Rcl::SearchDataClause *getClause(); void setFromClause(Rcl::SearchDataClauseSimple *cl); void clear(); QComboBox* sTpCMB; QComboBox* fldCMB; QSpinBox* proxSlackSB; QLineEdit* wordsLE; public slots: virtual void tpChange(int); protected slots: virtual void languageChange(); }; #endif // SEARCHCLAUSE_H recoll-1.21.5/qtgui/spell.ui0000644000175000017500000000764112602163537015206 0ustar dockesdockes SpellBase 0 0 520 465 0 0 100 100 Term Explorer 100 0 Match Case Accents false Qt::NoFocus &Expand Alt+E true Qt::NoFocus &Close Alt+C 7 No db info. 2 2 false false baseWordLE expandPB dismissPB stemLangCMB recoll-1.21.5/qtgui/xmltosd.h0000644000175000017500000000553012602163572015365 0ustar dockesdockes/* Copyright (C) 2014 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** Parsing XML from saved queries or advanced search history. * * Here is how the schemas looks like: * * For advanced search * * * * AND|OR * * [] * AND|OR|FN|PH|NE * [base64data] * [base64data] * slack * * * [base64 path] * [base64 path] * * * 162014 <--! datemin --> * 3062014 <--! datemax --> * minsize * maxsize * space-sep mtypes * space-sep mtypes * * * * For Simple search: * * * base64-encoded query text * OR|AND|FN|QL * space-separated lang list * * space-separated suffix list * base64-encoded config path>/EX> * */ #include "refcntr.h" #include "searchdata.h" // Parsing XML from advanced search history or saved advanced search to to // SearchData structure: RefCntr xmlToSearchData(const string& xml); // Parsing XML from saved simple search to ssearch parameters struct SSearchDef { SSearchDef() : autophrase(false), mode(0) {} std::vector stemlangs; std::vector autosuffs; std::vector extindexes; std::string text; bool autophrase; int mode; }; bool xmlToSSearch(const string& xml, SSearchDef&); recoll-1.21.5/qtgui/rclzg.h0000644000175000017500000000210112602163537015004 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RCLZG_H_INCLUDED_ #define _RCLZG_H_INCLUDED_ #include "rcldoc.h" enum ZgSendType {ZGSEND_PREVIEW, ZGSEND_OPEN}; #ifndef USE_ZEITGEIST inline void zg_send_event(ZgSendType, const Rcl::Doc&){} #else extern void zg_send_event(ZgSendType tp, const Rcl::Doc& doc); #endif #endif // _RCLZG_H_INCLUDED_ recoll-1.21.5/qtgui/restable.ui0000644000175000017500000000360712602163537015666 0ustar dockesdockes ResTable 0 0 640 480 0 0 Qt::Vertical 0 2 QAbstractItemView::NoEditTriggers false true true false false false false 0 0 recoll-1.21.5/qtgui/ssearch_w.cpp0000644000175000017500000005715512602163572016216 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "debuglog.h" #include "guiutils.h" #include "searchdata.h" #include "ssearch_w.h" #include "refcntr.h" #include "textsplit.h" #include "wasatorcl.h" #include "rclhelp.h" #include "xmltosd.h" #include "smallut.h" using namespace std; // Typing interval after which we consider starting autosearch: no sense to do // this is user is typing fast and continuously static const int strokeTimeoutMS = 250; void SSearch::init() { // See enum above and keep in order ! searchTypCMB->addItem(tr("Any term")); searchTypCMB->addItem(tr("All terms")); searchTypCMB->addItem(tr("File name")); searchTypCMB->addItem(tr("Query language")); // We'd like to use QComboBox::InsertAtTop but it doesn't do lru // (existing item stays at its place instead of jumping at top) queryText->setInsertPolicy(QComboBox::NoInsert); queryText->addItems(prefs.ssearchHistory); queryText->setEditText(""); connect(queryText->lineEdit(), SIGNAL(returnPressed()), this, SLOT(startSimpleSearch())); connect(queryText->lineEdit(), SIGNAL(textChanged(const QString&)), this, SLOT(searchTextChanged(const QString&))); connect(clearqPB, SIGNAL(clicked()), queryText->lineEdit(), SLOT(clear())); connect(searchPB, SIGNAL(clicked()), this, SLOT(startSimpleSearch())); connect(searchTypCMB, SIGNAL(activated(int)), this, SLOT(searchTypeChanged(int))); queryText->installEventFilter(this); queryText->view()->installEventFilter(this); queryText->setInsertPolicy(QComboBox::NoInsert); // Note: we can't do the obvious and save the completer instead because // the combobox lineedit will delete the completer on setCompleter(0). // But the model does not belong to the completer so it's not deleted... m_savedModel = queryText->completer()->model(); if (prefs.ssearchNoComplete) queryText->completer()->setModel(0); // Recoll searches are always case-sensitive because of the use of // capitalization to suppress stemming queryText->completer()->setCaseSensitivity(Qt::CaseSensitive); m_displayingCompletions = false; m_escape = false; m_disableAutosearch = true; m_stroketimeout = new QTimer(this); m_stroketimeout->setSingleShot(true); connect(m_stroketimeout, SIGNAL(timeout()), this, SLOT(timerDone())); m_keystroke = false; } void SSearch::takeFocus() { LOGDEB2(("SSearch: take focus\n")); queryText->setFocus(Qt::ShortcutFocusReason); // If the focus was already in the search entry, the text is not selected. // Do it for consistency queryText->lineEdit()->selectAll(); } void SSearch::timerDone() { QString qs = queryText->currentText(); LOGDEB1(("SSearch::timerDone: qs [%s]\n", qs2utf8s(qs).c_str())); searchTextChanged(qs); } void SSearch::searchTextChanged(const QString& text) { QString qs = queryText->currentText(); LOGDEB1(("SSearch::searchTextChanged. ks %d qs [%s]\n", m_keystroke, qs2utf8s(text).c_str())); if (text.isEmpty()) { searchPB->setEnabled(false); clearqPB->setEnabled(false); queryText->setFocus(); emit clearSearch(); } else { searchPB->setEnabled(true); clearqPB->setEnabled(true); if (m_keystroke) { m_tstartqs = qs; } if (prefs.ssearchAsYouType && !m_disableAutosearch && !m_keystroke && m_tstartqs == qs) { m_disableAutosearch = true; string s; int cs = partialWord(s); LOGDEB1(("SSearch::searchTextChanged: autosearch. cs %d s [%s]\n", cs, s.c_str())); if (cs < 0) { startSimpleSearch(); } else if (!m_stroketimeout->isActive() && s.size() >= 2) { s = qs2utf8s(queryText->currentText()); s += "*"; startSimpleSearch(s, 20); } } } m_keystroke = false; } void SSearch::searchTypeChanged(int typ) { LOGDEB(("Search type now %d\n", typ)); // Adjust context help if (typ == SST_LANG) HelpClient::installMap((const char *)this->objectName().toUtf8(), "RCL.SEARCH.LANG"); else HelpClient::installMap((const char *)this->objectName().toUtf8(), "RCL.SEARCH.SIMPLE"); // Also fix tooltips switch (typ) { case SST_LANG: queryText->setToolTip(tr( "Enter query language expression. Cheat sheet:
\n" "term1 term2 : 'term1' and 'term2' in any field.
\n" "field:term1 : 'term1' in field 'field'.
\n" " Standard field names/synonyms:
\n" " title/subject/caption, author/from, recipient/to, filename, ext.
\n" " Pseudo-fields: dir, mime/format, type/rclcat, date, size.
\n" " Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.
\n" "term1 term2 OR term3 : term1 AND (term2 OR term3).
\n" " You can use parentheses to make things clearer.
\n" "\"term1 term2\" : phrase (must occur exactly). Possible modifiers:
\n" "\"term1 term2\"p : unordered proximity search with default distance.
\n" "Use Show Query link when in doubt about result and see manual (<F1>) for more detail.\n" )); break; case SST_FNM: queryText->setToolTip(tr("Enter file name wildcard expression.")); break; case SST_ANY: case SST_ALL: default: queryText->setToolTip(tr( "Enter search terms here. Type ESC SPC for completions of current term." )); } } void SSearch::startSimpleSearch() { QString qs = queryText->currentText(); LOGDEB(("SSearch::startSimpleSearch(): qs [%s]\n", qs2utf8s(qs).c_str())); if (qs.length() == 0) return; string u8 = (const char *)queryText->currentText().toUtf8(); trimstring(u8); if (u8.length() == 0) return; if (!startSimpleSearch(u8)) return; LOGDEB(("startSimpleSearch: updating history\n")); // Search terms history: // We want to have the new text at the top and any older identical // entry to be erased. There is no standard qt policy to do this ? // So do it by hand. QString txt = queryText->currentText(); QString txtt = txt.trimmed(); int index = queryText->findText(txtt); if (index > 0) { queryText->removeItem(index); } if (index != 0) { queryText->insertItem(0, txtt); queryText->setEditText(txt); } m_disableAutosearch = true; m_stroketimeout->stop(); // Save the current state of the listbox list to the prefs (will // go to disk) prefs.ssearchHistory.clear(); for (int index = 0; index < queryText->count(); index++) { prefs.ssearchHistory.push_back(queryText->itemText(index)); } } void SSearch::setPrefs() { if (prefs.ssearchNoComplete) { queryText->completer()->setModel(0); } else { queryText->completer()->setModel(m_savedModel); } } string SSearch::asXML() { return m_xml; } bool SSearch::startSimpleSearch(const string& u8, int maxexp) { LOGDEB(("SSearch::startSimpleSearch(%s)\n", u8.c_str())); string stemlang = prefs.stemlang(); ostringstream xml; xml << "\n"; xml << " " << stemlang << "\n"; xml << " " << base64_encode(u8) << "\n"; SSearchType tp = (SSearchType)searchTypCMB->currentIndex(); Rcl::SearchData *sdata = 0; if (tp == SST_LANG) { xml << " QL\n"; string reason; if (prefs.autoSuffsEnable) { sdata = wasaStringToRcl(theconfig, stemlang, u8, reason, (const char *)prefs.autoSuffs.toUtf8()); if (!prefs.autoSuffs.isEmpty()) { xml << " " << qs2utf8s(prefs.autoSuffs) << "\n"; } } else { sdata = wasaStringToRcl(theconfig, stemlang, u8, reason); } if (sdata == 0) { QMessageBox::warning(0, "Recoll", tr("Bad query string") + ": " + QString::fromUtf8(reason.c_str())); return false; } } else { sdata = new Rcl::SearchData(Rcl::SCLT_OR, stemlang); if (sdata == 0) { QMessageBox::warning(0, "Recoll", tr("Out of memory")); return false; } Rcl::SearchDataClause *clp = 0; if (tp == SST_FNM) { xml << " FN\n"; clp = new Rcl::SearchDataClauseFilename(u8); } else { // ANY or ALL, several words. if (tp == SST_ANY) { xml << " OR\n"; clp = new Rcl::SearchDataClauseSimple(Rcl::SCLT_OR, u8); } else { xml << " AND\n"; clp = new Rcl::SearchDataClauseSimple(Rcl::SCLT_AND, u8); } } sdata->addClause(clp); } if (prefs.ssearchAutoPhrase && rcldb) { xml << " \n"; sdata->maybeAddAutoPhrase(*rcldb, prefs.ssearchAutoPhraseThreshPC / 100.0); } if (maxexp != -1) { sdata->setMaxExpand(maxexp); } for (list::const_iterator it = prefs.activeExtraDbs.begin(); it != prefs.activeExtraDbs.end(); it++) { xml << " " << base64_encode(*it) << ""; } xml << "\n"; m_xml = xml.str(); LOGDEB(("SSearch::startSimpleSearch:xml:[%s]\n", m_xml.c_str())); RefCntr rsdata(sdata); emit startSearch(rsdata, true); return true; } bool SSearch::fromXML(const SSearchDef& fxml) { string asString; set cur; set stored; // Retrieve current list of stemlangs. prefs returns a // space-separated list Warn if stored differs from current, // but don't change the latter. stringToStrings(prefs.stemlang(), cur); stored = set(fxml.stemlangs.begin(), fxml.stemlangs.end()); stringsToString(fxml.stemlangs, asString); if (cur != stored) { QMessageBox::warning( 0, "Recoll", tr("Stemming languages for stored query: ") + QString::fromUtf8(asString.c_str()) + tr(" differ from current preferences (kept)")); } // Same for autosuffs stringToStrings(qs2utf8s(prefs.autoSuffs), cur); stored = set(fxml.autosuffs.begin(), fxml.autosuffs.end()); stringsToString(fxml.stemlangs, asString); if (cur != stored) { QMessageBox::warning( 0, "Recoll", tr("Auto suffixes for stored query: ") + QString::fromUtf8(asString.c_str()) + tr(" differ from current preferences (kept)")); } cur = set(prefs.activeExtraDbs.begin(), prefs.activeExtraDbs.end()); stored = set(fxml.extindexes.begin(), fxml.extindexes.end()); stringsToString(fxml.extindexes, asString); if (cur != stored) { QMessageBox::warning( 0, "Recoll", tr("External indexes for stored query: ") + QString::fromUtf8(asString.c_str()) + tr(" differ from current preferences (kept)")); } if (prefs.ssearchAutoPhrase && !fxml.autophrase) { QMessageBox::warning( 0, "Recoll", tr("Autophrase is set but it was unset for stored query")); } else if (!prefs.ssearchAutoPhrase && fxml.autophrase) { QMessageBox::warning( 0, "Recoll", tr("Autophrase is unset but it was set for stored query")); } setSearchString(QString::fromUtf8(fxml.text.c_str())); searchTypCMB->setCurrentIndex(prefs.ssearchTyp); return true; } void SSearch::setSearchString(const QString& txt) { m_disableAutosearch = true; m_stroketimeout->stop(); queryText->setEditText(txt); } bool SSearch::hasSearchString() { return !queryText->lineEdit()->text().isEmpty(); } // Add term to simple search. Term comes out of double-click in // reslist or preview. // It would probably be better to cleanup in preview.ui.h and // reslist.cpp and do the proper html stuff in the latter case // (which is different because it format is explicit richtext // instead of auto as for preview, needed because it's built by // fragments?). static const char* punct = " \t()<>\"'[]{}!^*.,:;\n\r"; void SSearch::addTerm(QString term) { LOGDEB(("SSearch::AddTerm: [%s]\n", (const char *)term.toUtf8())); string t = (const char *)term.toUtf8(); string::size_type pos = t.find_last_not_of(punct); if (pos == string::npos) return; t = t.substr(0, pos+1); pos = t.find_first_not_of(punct); if (pos != string::npos) t = t.substr(pos); if (t.empty()) return; term = QString::fromUtf8(t.c_str()); QString text = queryText->currentText(); text += QString::fromLatin1(" ") + term; queryText->setEditText(text); m_disableAutosearch = true; m_stroketimeout->stop(); } void SSearch::onWordReplace(const QString& o, const QString& n) { LOGDEB(("SSearch::onWordReplace: o [%s] n [%s]\n", qs2utf8s(o).c_str(), qs2utf8s(n).c_str())); QString txt = queryText->currentText(); QRegExp exp = QRegExp(QString("\\b") + o + QString("\\b")); exp.setCaseSensitivity(Qt::CaseInsensitive); txt.replace(exp, n); queryText->setEditText(txt); m_disableAutosearch = true; m_stroketimeout->stop(); Qt::KeyboardModifiers mods = QApplication::keyboardModifiers (); if (mods == Qt::NoModifier) startSimpleSearch(); } void SSearch::setAnyTermMode() { searchTypCMB->setCurrentIndex(SST_ANY); } // If text does not end with space, return last (partial) word and >0 // else return -1 int SSearch::partialWord(string& s) { // Extract last word in text QString txt = queryText->currentText(); int cs = txt.lastIndexOf(" "); if (cs == -1) cs = 0; else cs++; if (txt.size() == 0 || cs == txt.size()) { return -1; } s = qs2utf8s(txt.right(txt.size() - cs)); return cs; } // Create completion list for term by adding a joker at the end and calling // rcldb->termMatch(). int SSearch::completionList(string s, QStringList& lst, int max) { if (!rcldb) return -1; if (s.empty()) return 0; // Query database for completions s += "*"; Rcl::TermMatchResult tmres; if (!rcldb->termMatch(Rcl::Db::ET_WILD, "", s, tmres, max) || tmres.entries.size() == 0) { return 0; } for (vector::iterator it = tmres.entries.begin(); it != tmres.entries.end(); it++) { lst.push_back(QString::fromUtf8(it->term.c_str())); } return lst.size(); } // Complete last word in input by querying db for all possible terms. void SSearch::completion() { LOGDEB(("SSearch::completion\n")); m_disableAutosearch = true; m_stroketimeout->stop(); if (!rcldb) return; if (searchTypCMB->currentIndex() == SST_FNM) { // Filename: no completion QApplication::beep(); return; } // Extract last word in text string s; int cs = partialWord(s); if (cs < 0) { QApplication::beep(); return; } // Query database for completions QStringList lst; const int maxdpy = 80; const int maxwalked = 10000; if (completionList(s, lst, maxwalked) <= 0) { QApplication::beep(); return; } if (lst.size() >= maxdpy) { LOGDEB0(("SSearch::completion(): truncating list\n")); lst = lst.mid(0, maxdpy); lst.append("[...]"); } // If list from db is single word, insert it, else popup the listview if (lst.size() == 1) { QString txt = queryText->currentText(); txt.truncate(cs); txt.append(lst[0]); queryText->setEditText(txt); } else { m_savedEditText = queryText->currentText(); m_displayingCompletions = true; m_chosenCompletion.clear(); m_completedWordStart = cs; queryText->clear(); queryText->addItems(lst); queryText->showPopup(); connect(queryText, SIGNAL(activated(const QString&)), this, SLOT(completionTermChosen(const QString&))); } } void SSearch::completionTermChosen(const QString& text) { if (text != "[...]") m_chosenCompletion = text; else m_chosenCompletion.clear(); } void SSearch::wrapupCompletion() { LOGDEB(("SSearch::wrapupCompletion\n")); queryText->clear(); queryText->addItems(prefs.ssearchHistory); if (!m_chosenCompletion.isEmpty()) { m_savedEditText.truncate(m_completedWordStart); m_savedEditText.append(m_chosenCompletion); } queryText->setEditText(m_savedEditText); m_disableAutosearch = true; m_savedEditText.clear(); m_chosenCompletion.clear(); m_displayingCompletions = false; disconnect(queryText, SIGNAL(activated(const QString&)), this, SLOT(completionTermChosen(const QString&))); } #undef SHOWEVENTS #if defined(SHOWEVENTS) const char *eventTypeToStr(int tp) { switch (tp) { case 0: return "None"; case 1: return "Timer"; case 2: return "MouseButtonPress"; case 3: return "MouseButtonRelease"; case 4: return "MouseButtonDblClick"; case 5: return "MouseMove"; case 6: return "KeyPress"; case 7: return "KeyRelease"; case 8: return "FocusIn"; case 9: return "FocusOut"; case 10: return "Enter"; case 11: return "Leave"; case 12: return "Paint"; case 13: return "Move"; case 14: return "Resize"; case 15: return "Create"; case 16: return "Destroy"; case 17: return "Show"; case 18: return "Hide"; case 19: return "Close"; case 20: return "Quit"; case 21: return "ParentChange"; case 131: return "ParentAboutToChange"; case 22: return "ThreadChange"; case 24: return "WindowActivate"; case 25: return "WindowDeactivate"; case 26: return "ShowToParent"; case 27: return "HideToParent"; case 31: return "Wheel"; case 33: return "WindowTitleChange"; case 34: return "WindowIconChange"; case 35: return "ApplicationWindowIconChange"; case 36: return "ApplicationFontChange"; case 37: return "ApplicationLayoutDirectionChange"; case 38: return "ApplicationPaletteChange"; case 39: return "PaletteChange"; case 40: return "Clipboard"; case 42: return "Speech"; case 43: return "MetaCall"; case 50: return "SockAct"; case 132: return "WinEventAct"; case 52: return "DeferredDelete"; case 60: return "DragEnter"; case 61: return "DragMove"; case 62: return "DragLeave"; case 63: return "Drop"; case 64: return "DragResponse"; case 68: return "ChildAdded"; case 69: return "ChildPolished"; case 70: return "ChildInserted"; case 72: return "LayoutHint"; case 71: return "ChildRemoved"; case 73: return "ShowWindowRequest"; case 74: return "PolishRequest"; case 75: return "Polish"; case 76: return "LayoutRequest"; case 77: return "UpdateRequest"; case 78: return "UpdateLater"; case 79: return "EmbeddingControl"; case 80: return "ActivateControl"; case 81: return "DeactivateControl"; case 82: return "ContextMenu"; case 83: return "InputMethod"; case 86: return "AccessibilityPrepare"; case 87: return "TabletMove"; case 88: return "LocaleChange"; case 89: return "LanguageChange"; case 90: return "LayoutDirectionChange"; case 91: return "Style"; case 92: return "TabletPress"; case 93: return "TabletRelease"; case 94: return "OkRequest"; case 95: return "HelpRequest"; case 96: return "IconDrag"; case 97: return "FontChange"; case 98: return "EnabledChange"; case 99: return "ActivationChange"; case 100: return "StyleChange"; case 101: return "IconTextChange"; case 102: return "ModifiedChange"; case 109: return "MouseTrackingChange"; case 103: return "WindowBlocked"; case 104: return "WindowUnblocked"; case 105: return "WindowStateChange"; case 110: return "ToolTip"; case 111: return "WhatsThis"; case 112: return "StatusTip"; case 113: return "ActionChanged"; case 114: return "ActionAdded"; case 115: return "ActionRemoved"; case 116: return "FileOpen"; case 117: return "Shortcut"; case 51: return "ShortcutOverride"; case 30: return "Accel"; case 32: return "AccelAvailable"; case 118: return "WhatsThisClicked"; case 120: return "ToolBarChange"; case 121: return "ApplicationActivated"; case 122: return "ApplicationDeactivated"; case 123: return "QueryWhatsThis"; case 124: return "EnterWhatsThisMode"; case 125: return "LeaveWhatsThisMode"; case 126: return "ZOrderChange"; case 127: return "HoverEnter"; case 128: return "HoverLeave"; case 129: return "HoverMove"; case 119: return "AccessibilityHelp"; case 130: return "AccessibilityDescription"; case 150: return "EnterEditFocus"; case 151: return "LeaveEditFocus"; case 152: return "AcceptDropsChange"; case 153: return "MenubarUpdated"; case 154: return "ZeroTimerEvent"; case 155: return "GraphicsSceneMouseMove"; case 156: return "GraphicsSceneMousePress"; case 157: return "GraphicsSceneMouseRelease"; case 158: return "GraphicsSceneMouseDoubleClick"; case 159: return "GraphicsSceneContextMenu"; case 160: return "GraphicsSceneHoverEnter"; case 161: return "GraphicsSceneHoverMove"; case 162: return "GraphicsSceneHoverLeave"; case 163: return "GraphicsSceneHelp"; case 164: return "GraphicsSceneDragEnter"; case 165: return "GraphicsSceneDragMove"; case 166: return "GraphicsSceneDragLeave"; case 167: return "GraphicsSceneDrop"; case 168: return "GraphicsSceneWheel"; case 169: return "KeyboardLayoutChange"; case 170: return "DynamicPropertyChange"; case 171: return "TabletEnterProximity"; case 172: return "TabletLeaveProximity"; default: return "UnknownEvent"; } } #endif bool SSearch::eventFilter(QObject *target, QEvent *event) { #if defined(SHOWEVENTS) if (event->type() == QEvent::Timer || event->type() == QEvent::UpdateRequest || event->type() == QEvent::Paint) return false; LOGDEB2(("SSearch::eventFilter: target %p (%p) type %s\n", target, queryText->lineEdit(), eventTypeToStr(event->type()))); #endif if (target == queryText->view()) { if (event->type() == QEvent::Hide) { // List was closed. If we were displaying completions, need // to reset state. if (m_displayingCompletions) { QTimer::singleShot(0, this, SLOT(wrapupCompletion())); } } return false; } if (event->type() == QEvent::KeyPress) { QKeyEvent *ke = (QKeyEvent *)event; LOGDEB1(("SSearch::eventFilter: keyPress (m_escape %d) key %d\n", m_escape, ke->key())); if (ke->key() == Qt::Key_Escape) { LOGDEB(("Escape\n")); m_escape = true; m_disableAutosearch = true; m_stroketimeout->stop(); return true; } else if (m_escape && ke->key() == Qt::Key_Space) { LOGDEB(("Escape space\n")); ke->accept(); completion(); m_escape = false; m_disableAutosearch = true; m_stroketimeout->stop(); return true; } else if (ke->key() == Qt::Key_Space) { if (prefs.ssearchOnWS) startSimpleSearch(); } else { m_escape = false; m_keystroke = true; if (prefs.ssearchAsYouType) { m_disableAutosearch = false; QString qs = queryText->currentText(); LOGDEB0(("SSearch::eventFilter: start timer, qs [%s]\n", qs2utf8s(qs).c_str())); m_stroketimeout->start(strokeTimeoutMS); } } } return false; } recoll-1.21.5/qtgui/snippets.ui0000644000175000017500000001012612602163537015724 0ustar dockesdockes Snippets 0 0 640 400 Snippets 1 0 QFrame::StyledPanel QFrame::Raised 1 1 0 0 X Qt::ToolButtonTextOnly Find: 0 0 0 0 Next 0 0 Prev Qt::Horizontal QDialogButtonBox::Close searchClosePB clicked() searchFM hide() 33 414 328 414 recoll-1.21.5/qtgui/respopup.cpp0000644000175000017500000001453412602163572016107 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include "debuglog.h" #include "smallut.h" #include "recoll.h" #include "docseq.h" #include "respopup.h" #include "appformime.h" namespace ResultPopup { QMenu *create(QWidget *me, int opts, RefCntr source, Rcl::Doc& doc) { QMenu *popup = new QMenu(me); LOGDEB(("ResultPopup::create: opts %x haspages %d %s %s\n", opts, doc.haspages, source.isNull() ? "Source is Null" : "Source not null", source.isNull() ? "" : source->snippetsCapable() ? "snippetsCapable" : "not snippetsCapable")); string apptag; doc.getmeta(Rcl::Doc::keyapptg, &apptag); popup->addAction(QWidget::tr("&Preview"), me, SLOT(menuPreview())); if (!theconfig->getMimeViewerDef(doc.mimetype, apptag, 0).empty()) { popup->addAction(QWidget::tr("&Open"), me, SLOT(menuEdit())); } bool needopenwith = true; if (!doc.ipath.empty()) needopenwith = false; if (needopenwith) { string backend; doc.getmeta(Rcl::Doc::keybcknd, &backend); if (!backend.empty() && backend.compare("FS")) needopenwith = false; } if (needopenwith) { vector aps; DesktopDb *ddb = DesktopDb::getDb(); if (ddb && ddb->appForMime(doc.mimetype, &aps) && !aps.empty()) { QMenu *sub = popup->addMenu(QWidget::tr("Open With")); if (sub) { for (vector::const_iterator it = aps.begin(); it != aps.end(); it++) { QAction *act = new QAction(QString::fromUtf8(it->name.c_str()), me); QVariant v(QString::fromUtf8(it->command.c_str())); act->setData(v); sub->addAction(act); } sub->connect(sub, SIGNAL(triggered(QAction *)), me, SLOT(menuOpenWith(QAction *))); } } // See if there are any desktop files in $RECOLL_CONFDIR/scripts // and possibly create a "run script" menu. aps.clear(); ddb = new DesktopDb(path_cat(theconfig->getConfDir(), "scripts")); if (ddb && ddb->allApps(&aps) && !aps.empty()) { QMenu *sub = popup->addMenu(QWidget::tr("Run Script")); if (sub) { for (vector::const_iterator it = aps.begin(); it != aps.end(); it++) { QAction *act = new QAction(QString::fromUtf8(it->name.c_str()), me); QVariant v(QString::fromUtf8(it->command.c_str())); act->setData(v); sub->addAction(act); } sub->connect(sub, SIGNAL(triggered(QAction *)), me, SLOT(menuOpenWith(QAction *))); } } delete ddb; } popup->addAction(QWidget::tr("Copy &File Name"), me, SLOT(menuCopyFN())); popup->addAction(QWidget::tr("Copy &URL"), me, SLOT(menuCopyURL())); if ((opts&showSaveOne) && (!doc.isFsFile() || !doc.ipath.empty())) popup->addAction(QWidget::tr("&Write to File"), me, SLOT(menuSaveToFile())); if ((opts&showSaveSel)) popup->addAction(QWidget::tr("Save selection to files"), me, SLOT(menuSaveSelection())); Rcl::Doc pdoc; if (source.isNotNull() && source->getEnclosing(doc, pdoc)) { popup->addAction(QWidget::tr("Preview P&arent document/folder"), me, SLOT(menuPreviewParent())); } // Open parent is useful even if there is no parent because we open // the enclosing folder. if (doc.isFsFile()) popup->addAction(QWidget::tr("&Open Parent document/folder"), me, SLOT(menuOpenParent())); if (opts & showExpand) popup->addAction(QWidget::tr("Find &similar documents"), me, SLOT(menuExpand())); if (doc.haspages && source.isNotNull() && source->snippetsCapable()) popup->addAction(QWidget::tr("Open &Snippets window"), me, SLOT(menuShowSnippets())); if ((opts & showSubs) && rcldb && rcldb->hasSubDocs(doc)) popup->addAction(QWidget::tr("Show subdocuments / attachments"), me, SLOT(menuShowSubDocs())); return popup; } Rcl::Doc getParent(RefCntr source, Rcl::Doc& doc) { Rcl::Doc pdoc; if (source.isNull() || !source->getEnclosing(doc, pdoc)) { // No parent doc: show enclosing folder with app configured for // directories pdoc.url = url_parentfolder(doc.url); pdoc.meta[Rcl::Doc::keychildurl] = doc.url; pdoc.meta[Rcl::Doc::keyapptg] = "parentopen"; pdoc.mimetype = "inode/directory"; } return pdoc; } void copyFN(const Rcl::Doc &doc) { // Our urls currently always begin with "file://" // // Problem: setText expects a QString. Passing a (const char*) // as we used to do causes an implicit conversion from // latin1. File are binary and the right approach would be no // conversion, but it's probably better (less worse...) to // make a "best effort" tentative and try to convert from the // locale's charset than accept the default conversion. QString qfn = QString::fromLocal8Bit(doc.url.c_str()+7); QApplication::clipboard()->setText(qfn, QClipboard::Selection); QApplication::clipboard()->setText(qfn, QClipboard::Clipboard); } void copyURL(const Rcl::Doc &doc) { string url = url_encode(doc.url, 7); QApplication::clipboard()->setText(url.c_str(), QClipboard::Selection); QApplication::clipboard()->setText(url.c_str(), QClipboard::Clipboard); } } recoll-1.21.5/qtgui/systray.cpp0000644000175000017500000000261512602163537015746 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "systray.h" #include "rclmain_w.h" void RclTrayIcon::init() { QAction *restoreAction = new QAction(tr("Restore"), this); QAction *quitAction = new QAction(tr("Quit"), this); connect(restoreAction, SIGNAL(triggered()), this, SLOT(onRestore())); connect(quitAction, SIGNAL(triggered()), m_mainw, SLOT(fileExit())); QMenu *trayIconMenu = new QMenu(0); trayIconMenu->addAction(restoreAction); trayIconMenu->addAction(quitAction); setContextMenu(trayIconMenu); } void RclTrayIcon::onRestore() { // Hide and show to restore on current desktop m_mainw->hide(); m_mainw->show(); } recoll-1.21.5/qtgui/images/0000755000175000017500000000000012602163537014765 5ustar dockesdockesrecoll-1.21.5/qtgui/images/code-block.png0000644000175000017500000000100012602163537017464 0ustar dockesdockesPNG  IHDRj sRGB pHYs cytIME/6;CPLTEUUUֈVVVWWWXXX[[[]]]___aaacccdddgggiiijjjkkkmmmnnnooo)> tRNS{{}}`ubKGD=mQYIDATxڝ@ EqAE@\TqO]rHW ib٤ <:dHg8t6֞kmGf2,Γ鬈^ƨQ?ZQ^ ,&K82m1d^(ѐܗ%P%\Y귁Z9i&IENDB`recoll-1.21.5/qtgui/images/cancel.png0000755000175000017500000000156312602163537016730 0ustar dockesdockesPNG  IHDRĴl;gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxb?-@1҅A3/3(\c@7 " 5?ay T Ph_?0m823" P N_W@4PYA qySQOC  3\_?~}gra T|Ca8  `b4###(LAd(p_?>l@ aπз1?Ёf. SA.QNj(@PX A   ;Wfk(`0@a r&` þ4f0@a5* ǰ_[KWB^290W:FȆ2|o3@1Ja 66EEpR<Ǝ=ď_30|33(?Ɗi8@1.Ca>ȥ C1/"`B"  \*h7נd1܆AleFP)EL⇆~e&#nhb8(S@?G_c /AYqo|Dv,ޟ]lef08%] d?-@fJS`K)  ԥ3 0&Py DWM@`.EyH 4IENDB`recoll-1.21.5/qtgui/images/sortparms.png0000644000175000017500000000140012602163537017520 0ustar dockesdockesPNG  IHDRĴl;bKGD pHYs  d_tIMEIDAT8˭KA?;;{A/"SA;:DƤQHU\H.QCHHq9l]~av7{1c0Ԅaֆ?*ϧ[1ưwPq+~TQ㟥C%*gA42<Fnt GGc"p]ܪ6C/#Iz^߻ӑ\ėb1&\"Ap< 71re7U1&X`W&1RW޼dvYqOI/}FOm]$ 5euQ 4a,(\WR)*տ8'Xgы*eT|jAR͠AJV:ɒ.hqiQ\Ӣemr)V9E6qz\^[ۦq-ϊ7{2IFiZMuXSennAOfIENDB`recoll-1.21.5/qtgui/images/firstpage.png0000644000175000017500000000245412602163537017464 0ustar dockesdockesPNG  IHDRĴl;bKGD pHYs ,tIME ';]ȯIDATxڕK\E{o$v0=3$FC A"jwĕ;])ĕ  DhıG0Nb2==}UM49S)Xmϼftcr`c{/m? AB'kC̯8p!+_9Qk3lu'~nhMNC<{y u˂k{@#Uھ,wTd:것%GN-|Ph}'3?Bt[ģePH;(1x@qH)(lrXs醙Ɩo͞"r}sY:Ö,GO3SO!! |Sg\Cc%]J6VߞLۭŽF<}&-Ҙ,gv~9?=*1ڊĀ(1#2m+.9feSOT6PADQG?RstJ+ Hm*X |ΉY4 `[o{lcd:+4EB8,u Z!S< 6,ʐ+R>T6F/gC=D/%?m+#ߏ7`a2GBA`TCjoQ: ڱ U|a{fogS佰z !Fk )[! N/Hd ]Gu(g&C:+/ :3 /=)YWP)xT sꠃQKǬpOM=3$W;D\'-cTЌٰ6E6-I;CV(򩄼`3[^f@#˜k c-R Ҏ! ͐4}ӧ3F1 9ӭvwn\WCj\׷7t1簪hr$)[%#'}Z-p,X=eٛLW"^vLVٍ$R"hu<CKp+Sg^@)3!>x#v=نc Ax,A (S￈І^;0]C%ա/_>'Rˏ0!D6Jb:}b֝/_ڶ-ho^T_/κdSHm{O*2rW Jho/|IENDB`recoll-1.21.5/qtgui/images/up.png0000755000175000017500000000666612602163537016140 0ustar dockesdockesPNG  IHDRĴl; pHYs   OiCCPPhotoshop ICC profilexڝSgTS=BKKoR RB&*! J!QEEȠQ, !{kּ> H3Q5 B.@ $pd!s#~<<+"x M0B\t8K@zB@F&S`cbP-`'{[! eDh;VEX0fK9-0IWfH  0Q){`##xFW<+*x<$9E[-qWW.(I+6aa@.y24x6_-"bbϫp@t~,/;m%h^ uf@Wp~<5j>{-]cK'Xto(hw?G%fIq^D$.Tʳ?D*A, `6B$BB dr`)B(Ͱ*`/@4Qhp.U=pa( Aa!ڈbX#!H$ ɈQ"K5H1RT UH=r9\F;2G1Q= C7F dt1r=6Ыhڏ>C03l0.B8, c˱" VcϱwE 6wB aAHXLXNH $4 7 Q'"K&b21XH,#/{C7$C2'ITFnR#,4H#dk9, +ȅ3![ b@qS(RjJ4e2AURݨT5ZBRQ4u9̓IKhhitݕNWGw Ljg(gwLӋT071oUX**| J&*/Tު UUT^S}FU3S ԖUPSSg;goT?~YYLOCQ_ cx,!k u5&|v*=9C3J3WRf?qtN (~))4L1e\kXHQG6EYAJ'\'GgSSݧ M=:.kDwn^Loy}/TmG X $ <5qo</QC]@Caaᄑ.ȽJtq]zۯ6iܟ4)Y3sCQ? 0k߬~OCOg#/c/Wװwa>>r><72Y_7ȷOo_C#dz%gA[z|!?:eAAA!h쐭!ΑiP~aa~ 'W?pX15wCsDDDޛg1O9-J5*>.j<74?.fYXXIlK9.*6nl {/]py.,:@LN8A*%w% yg"/6шC\*NH*Mz쑼5y$3,幄'L Lݛ:v m2=:1qB!Mggfvˬen/kY- BTZ(*geWf͉9+̳ې7ᒶKW-X潬j9(xoʿܔĹdff-[n ڴ VE/(ۻCɾUUMfeI?m]Nmq#׹=TR+Gw- 6 U#pDy  :v{vg/jBFS[b[O>zG499?rCd&ˮ/~јѡ򗓿m|x31^VwwO| (hSЧc3-gAMA|Q cHRMz%u0`:o_FIDATxڬoTUy0+hhTBDwn cۙ?Vf#qk , `TЪ-൯LƩwry{92haE1:HUf/p+mV dL70 ׉?.glZCfv[A-| FRPw UnW0Zj7{l8bV'G*VF?o09?|V6rrsHyb# ~u-V{!җ @*!N,u<|N'X^jt~瀃yAP q KyPwFwl7:5?ηa;wG=MġJ]XT=)ڽYPTI)2]\u_gedYBGefQЬJއMtu,yczxi' >;{éN o^]dpجНyKBzgT НV'ceޛ}b'ά߫ọQtgð@.`Y1@ ~  Ģ e7ⁱ-\GJT$,o˞jl3\#F{g.`7[f"boo_3}[ɢ[IENDB`recoll-1.21.5/qtgui/images/down.png0000755000175000017500000000676012602163537016456 0ustar dockesdockesPNG  IHDRĴl; pHYs   OiCCPPhotoshop ICC profilexڝSgTS=BKKoR RB&*! J!QEEȠQ, !{kּ> H3Q5 B.@ $pd!s#~<<+"x M0B\t8K@zB@F&S`cbP-`'{[! eDh;VEX0fK9-0IWfH  0Q){`##xFW<+*x<$9E[-qWW.(I+6aa@.y24x6_-"bbϫp@t~,/;m%h^ uf@Wp~<5j>{-]cK'Xto(hw?G%fIq^D$.Tʳ?D*A, `6B$BB dr`)B(Ͱ*`/@4Qhp.U=pa( Aa!ڈbX#!H$ ɈQ"K5H1RT UH=r9\F;2G1Q= C7F dt1r=6Ыhڏ>C03l0.B8, c˱" VcϱwE 6wB aAHXLXNH $4 7 Q'"K&b21XH,#/{C7$C2'ITFnR#,4H#dk9, +ȅ3![ b@qS(RjJ4e2AURݨT5ZBRQ4u9̓IKhhitݕNWGw Ljg(gwLӋT071oUX**| J&*/Tު UUT^S}FU3S ԖUPSSg;goT?~YYLOCQ_ cx,!k u5&|v*=9C3J3WRf?qtN (~))4L1e\kXHQG6EYAJ'\'GgSSݧ M=:.kDwn^Loy}/TmG X $ <5qo</QC]@Caaᄑ.ȽJtq]zۯ6iܟ4)Y3sCQ? 0k߬~OCOg#/c/Wװwa>>r><72Y_7ȷOo_C#dz%gA[z|!?:eAAA!h쐭!ΑiP~aa~ 'W?pX15wCsDDDޛg1O9-J5*>.j<74?.fYXXIlK9.*6nl {/]py.,:@LN8A*%w% yg"/6шC\*NH*Mz쑼5y$3,幄'L Lݛ:v m2=:1qB!Mggfvˬen/kY- BTZ(*geWf͉9+̳ې7ᒶKW-X潬j9(xoʿܔĹdff-[n ڴ VE/(ۻCɾUUMfeI?m]Nmq#׹=TR+Gw- 6 U#pDy  :v{vg/jBFS[b[O>zG499?rCd&ˮ/~јѡ򗓿m|x31^VwwO| (hSЧc3-gAMA|Q cHRMz%u0`:o_F IDATxڔMoUsSG"j+"TE*l@bς5B|P>HaU(P[Z8 "q&{Xx#]͝?>nmmUW/xloWDfG{{\k#k);'YtzE{cj1_'/*z0+?O9~V;\k. `LIENDB`recoll-1.21.5/qtgui/images/prevpage.png0000644000175000017500000000240212602163537017302 0ustar dockesdockesPNG  IHDRĴl;gAMA7IDATx[lUgn;;v/[J\*"E@҂! HD ꋆ/#JH$"P)5`7*mi–vw;3> tA.zeΜ sl"ؚl%HjC|*j^F֟“WUH'Ҙ%ѹ6)"pSxUS1;Ą&/BwD>QA>d//{~*^ZlXҐ,\/s:s9 ߚ#k~wa쇄B%> SQ?6bkng./kxj/^A& s&D㐶 O+8h=${X{s=y;mU `d h TBI N[|҄0\1'1Ѵ1֙kZɂ'\ K*CuuP# r1seUB +-ZV@{ͤ >?h*ưmzBRtؘZn8uڌ _b4aQ5]BWsÂaS F\:n}+ @W::60| V{*>&$} Y߼-I}UhYsè282D-,-Z6dY@8_Cufa(jv 纈 V6ɹk\ .,Oq$7d"h͓α;z`j|˦2+;x2Rp]?kaCy_/xU8e<p@Ilho-ʡ TfLq~}&^a9YƩA\>}g ?gW(UO- Q[E~&r@N8K7=2]>Z#|[yu%%q{'XHh4˩7<{i>xǝ 5_aiC'ΡGЯOڄus\$L/^s| VWz|AwT2M|<Le~؉u'uxf" %}_j* @B E>zё)}E0q,XIENDB`recoll-1.21.5/qtgui/images/table.png0000755000175000017500000000642712602163537016576 0ustar dockesdockesPNG  IHDRĴl; pHYs  ~ OiCCPPhotoshop ICC profilexڝSgTS=BKKoR RB&*! J!QEEȠQ, !{kּ> H3Q5 B.@ $pd!s#~<<+"x M0B\t8K@zB@F&S`cbP-`'{[! eDh;VEX0fK9-0IWfH  0Q){`##xFW<+*x<$9E[-qWW.(I+6aa@.y24x6_-"bbϫp@t~,/;m%h^ uf@Wp~<5j>{-]cK'Xto(hw?G%fIq^D$.Tʳ?D*A, `6B$BB dr`)B(Ͱ*`/@4Qhp.U=pa( Aa!ڈbX#!H$ ɈQ"K5H1RT UH=r9\F;2G1Q= C7F dt1r=6Ыhڏ>C03l0.B8, c˱" VcϱwE 6wB aAHXLXNH $4 7 Q'"K&b21XH,#/{C7$C2'ITFnR#,4H#dk9, +ȅ3![ b@qS(RjJ4e2AURݨT5ZBRQ4u9̓IKhhitݕNWGw Ljg(gwLӋT071oUX**| J&*/Tު UUT^S}FU3S ԖUPSSg;goT?~YYLOCQ_ cx,!k u5&|v*=9C3J3WRf?qtN (~))4L1e\kXHQG6EYAJ'\'GgSSݧ M=:.kDwn^Loy}/TmG X $ <5qo</QC]@Caaᄑ.ȽJtq]zۯ6iܟ4)Y3sCQ? 0k߬~OCOg#/c/Wװwa>>r><72Y_7ȷOo_C#dz%gA[z|!?:eAAA!h쐭!ΑiP~aa~ 'W?pX15wCsDDDޛg1O9-J5*>.j<74?.fYXXIlK9.*6nl {/]py.,:@LN8A*%w% yg"/6шC\*NH*Mz쑼5y$3,幄'L Lݛ:v m2=:1qB!Mggfvˬen/kY- BTZ(*geWf͉9+̳ې7ᒶKW-X潬j9(xoʿܔĹdff-[n ڴ VE/(ۻCɾUUMfeI?m]Nmq#׹=TR+Gw- 6 U#pDy  :v{vg/jBFS[b[O>zG499?rCd&ˮ/~јѡ򗓿m|x31^VwwO| (hSЧc3-gAMA|Q cHRMz%u0`:o_F2IDATxڴkTAwmv7Y5"X X,m^,$6ve!ELLM{og c8o3waΈq_{rb*Q S#Fŀ pN9$af$>IoL}k+kO<*!D1(1*!1F)$8&\ħ %1266J~;NsTq 7IG28C&d6rӋ8> uGf 7>dh5w~ D;]l233_xR}5GۥW vrtur" Uuh(!DJQ4_'k "}Wo?@!P=,5>({q;<kZ̻1cZN1YzZǍFcƧXODpb''?yШ,or!t?_ո?J*5ګt__fuqԗH}JzW:L^lI \֦ʳmo>j``E91~' ! 8IENDB`recoll-1.21.5/qtgui/images/recoll.icns0000644000175000017500000002156612602163537017135 0ustar dockesdockesicns#vis32h쾐㙓뾑⚔𾌎嗐ӵǩӎﮔԍ쾾½{ss斎|tt嗐||Ϭӏ쩏ґ嬖З㙙羕ޞ䘒쾐㙓_ܙ}ۚ~ߗ{z|~ܙĮ¿|z{օ}}~zxy؃{}mkz|nl|~ĝ÷|z{օ}~߮|~ԇخό֛ݙ~|~ܙ}ffh@10LihY226cgfVh@10LihY226cgfhhj@/.MkjY/04eih@@?SZZM??FZYWB@@11/[lmN./@jie40100/R``G..?kje4/0LMIvGML>ije`nZ./4ejihid`mY/04eihYZVR\S?@BWYY220UdeJ00@ihd512M0ZjkM/0@hhd512665WeeM44Bdc`956ccdB44MeeW569`dcggi@0/MjiY115dhgffh@10MihY226cgfs8mkil32 Kޞ嗓ޞ嗓ޞ嗓ޞ嗓ݟ䘔ᛎ蔏󼋐뿐콑쿏뿏켑𽎓ṋ⽛߁ނx{zzy~ۡsuty斑tvuz䘔tvuz嗓tvuz䘔rtsw铎 ¤򼌑뿏켑쿏쿏/迒꽔偗ܠ⚖ߝ斒ޞ嗓ޞ嗓ޞ嗓ޞ嗓ݯ|߬~څݯ|߬~څݯ|߬~څݯ|߬~ځفܯ}ެف؁x~{z~~}ށ݃|}xӈy}|}vۀ{|΍~Ն~ύ|Ն΍}Ն|ы~zׄŔˏѩ}Ҭρ΁lustp|܁ہܩqxwxtެف؁ݩpwvws߬~ځفܩqxwxtݭف؁irpqm}x}||{߃~zҊ{~xق}~΍}Ն~Ό|Ն~ύ|Ն}ό{օ̐҉دڬցՁޯ{}ہځݯ|߬~څݯ|߬~څݯ|߬~څݯ|߬~ځقfhM043329`gffeiL1325dgfhM043329`gffeiL1325dgfhM043329`gffeiL1325dgfhM043329`gffeiL1325dgfhM043329`gffeiL1325dgfhjM-21108bihhglL/103fihMLMLM01-Kmhiijb7.001,Nlhiijg2/042Lhdeef_:34451Mgefc63431Lieffg`923340Mhfgd5231Mjfggha923340Mhfgd52320Jfbccd]81223/Nighe4129:6Vxsttvm@799:6Mb`^;9`a[m]a`_cL79;^`ghbudhgfjK0214ehgfgatcgfeiL1325dgfgatcgfeiL1325dgfef`sbfedhL2436cfeijdxfjihmK-100/2gjiL MHtVJMLML1/Hd`aab[70112-Mjhif30131Mjfggha:23340Mhfgd5231Lieffg`923340Mhfgd5231Lieffg`923340Mhfgd52320Ljfggh`81223/Mighe41253Lgcdde_;45562Mfdeb745dfM26554:^eddcgL3547bedgiM/32219ahggfjL0214ehgfhM043329`gffeiL1325dgfhM043329`gffeiL1325dgfhM043329`gffeiL1325dgfhM043329`gffeiL1325dgfl8mkih32 ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ膔Ȇӆӆӆӆӆӆӆӆӆӆ膾vӆ菔vӆ菔vӆ菔vӆ菔vӆ菔vӆ菔vӆ菔vӆ菔vӆ膔ӆӆӆӆӆӆӆӆӆӆ膔ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ菔ӆ膔ÆÆÆÆÆÆÆÆÆنÆÆُÆُÆُÆُÆُÆُÆُÆُÆن vvvvvvvvvنÆÆُÆُÆُÆُÆُÆُÆُÆُÆنÆÆÆÆÆÆÆÆÆنfY3Lf@3fY3Lf@3fY3Mf@3fY3Lf@3fY3Lf@3fY3Mf@3fY3Lf@3fY3Mf@3fY3Mf@3fYS@LYF@Y3@fM3Yf3@fM3Yf3@fL3Yf3@fL3Yf3@fM3Yf3@fL3Yf3@fL3Yf3@fM3Yf3@fL3Yf3LavLff@3ff@3ff@3ff@3ff@3ff@3ff@3ff@3ff@3f@Qb@SY@3@fL3Yf3@fM3Yf3@fM3Yf3@fL3Yf3@fM3Yf3@fM3Yf3@fL3Yf3@fM3Yf3@fM3Yf3fY3Lf@3fY3Mf@3fY3Mf@3fY3Lf@3fY3Mf@3fY3Mf@3fY3Lf@3fY3Mf@3fY3Mf@3fh8mk recoll-1.21.5/qtgui/images/close.png0000755000175000017500000000213712602163537016606 0ustar dockesdockesPNG  IHDRĴl;gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxb?-@FFF  8.= 5& Rgdd`eea`cckï_?f"Plk? @ 5R󙘘 LM45j_̰kq͛3Ќ3g]@6 P _HHH0A]]o8>~a@\x 0n0 $%̄P?1ܺuds> d] y1pp] *g+mm`0!&Ɵh`0bB˿|eA >}e*dg'%%)vv60ˇ@,$}eeyFx=2'-%% L .\` go6m: A,J޽غ(0Eȃ ` dW;0 @LXdeee pr.+`D6CAf0}Ðӧ1=xP+ pz=BKKcT? däIPĿ}w$@(`lffC.0Y y *P@yecCaMM3O_pe]]mXXX| .?] 6 3#,?-| Cob`aod8y:XD9sW`3` R1^6PSS}!Pn VsO/ů\ @YzL @B&&Al_ZZV@KKPt*0BׯBQl e̶K;w2\x? K 3 DXóg޼y L=P  y\5,qUMH `IENDB`recoll-1.21.5/qtgui/images/history.png0000644000175000017500000000275312602163537017203 0ustar dockesdockesPNG  IHDRĴl; pHYs  #ugAMA|Q cHRMz%u0`:o_FaIDATxbd (l?{ɶ#. o@ Ca {O|}"6aZ>]_WYACEAUO Ooax|>YϿQ|@(% @Z!Z!@WdY|~gfX!yGt O3Дn(Ơ# 6/P   b B  ?+ߟ@p 3xD2 01123* 2p888!w?_m@`Uu C+Pk  K",^<{` 𒟗+v8 @ f6 h2B+/0y:2Ι× ?j(0KRL>L_0XoQ-dhE B >32x᧟ Z$7d&@(EnSU!~ `Z4 fn^ LXMق/v(e.+X$@L`0%~AAN+1l~@@2|.&5Pō <@ۛnn< "- `0 ('/?02p2|u5ŷ=``g0aÎtt7o }bf rt1(q3|-ފh@uJ j M 0p01 2Gav^ p(xzo'`dζ 9A4"Fo;3 +6`D 00O;ǰ~0 8U]ɇ@C dh+#/#| \l@q&0@|eyq@@A R`xv8!ek˸XAj2n" /^ς5ӎ0zN .f63 5 \,W =~}.+G&Ȱ}ǟ2\ " ??`h{0nө@E߃//-et1( gy)T\ pVM\@ в?rT`?@c",L@1S2 >0^@w6`BaIENDB`recoll-1.21.5/qtgui/images/spell.png0000644000175000017500000000052312602163537016612 0ustar dockesdockesPNG  IHDRĴl;gAMA abKGD pHYs  #utIME IDATxR 0}6=J>0 @An4"986d,<3GRF4/9Lmi&,ZQ.mL "af!URuLDUkK56Bgzڂ&*8|1bHEι ˢu<,f$vqy\\`qLGqI0΄P[IENDB`recoll-1.21.5/qtgui/fragbuts.h0000644000175000017500000000330712602163537015511 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FRAGBUTS_H_INCLUDED_ #define _FRAGBUTS_H_INCLUDED_ #include #include #include #include class QAbstractButton; /* * Display a series of user-defined buttons which activate query * language fragments to augment the current search */ class FragButs : public QWidget { Q_OBJECT; public: FragButs(QWidget* parent = 0); virtual ~FragButs(); struct ButFrag { QAbstractButton *button; std::string fragment; ButFrag(QAbstractButton *but, const std::string& frag) : button(but), fragment(frag) { } }; void getfrags(std::vector&); bool ok() {return m_ok;} bool isStale(time_t *reftime); private slots: void onButtonClicked(bool); signals: void fragmentsChanged(); private: std::vector m_buttons; std::string m_fn; time_t m_reftime; bool m_ok; }; #endif /* _FRAGBUTS_H_INCLUDED_ */ recoll-1.21.5/qtgui/rclm_preview.cpp0000644000175000017500000002010712602163572016721 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include "debuglog.h" #include "internfile.h" #include "rclzg.h" #include "rclmain_w.h" static const QKeySequence quitKeySeq("Ctrl+q"); // If a preview (toplevel) window gets closed by the user, we need to // clean up because there is no way to reopen it. And check the case // where the current one is closed void RclMain::previewClosed(Preview *w) { LOGDEB(("RclMain::previewClosed(%p)\n", w)); if (w == curPreview) { LOGDEB(("Active preview closed\n")); curPreview = 0; } else { LOGDEB(("Old preview closed\n")); } delete w; } // Document up to date check. The main problem we try to solve is // displaying the wrong message from a compacted mail folder. // // Also we should re-run the query after updating the index because // the ipaths may be wrong in the current result list. For now, the // user does this by clicking search again once the indexing is done // // We only do this for the main index, else jump and prey (cant update // anyway, even the makesig() call might not make sense for our base // config) bool RclMain::containerUpToDate(Rcl::Doc& doc) { // If ipath is empty, we decide we don't care. Also, we need an index, if (doc.ipath.empty() || rcldb == 0) return true; string udi; doc.getmeta(Rcl::Doc::keyudi, &udi); if (udi.empty()) { // Whatever... return true; } string sig; if (!FileInterner::makesig(theconfig, doc, sig)) { QMessageBox::warning(0, "Recoll", tr("Can't access file: ") + QString::fromLocal8Bit(doc.url.c_str())); // Let's try the preview anyway... return true; } if (!rcldb->needUpdate(udi, sig)) { // Alles ist in ordnung return true; } // We can only run indexing on the main index (dbidx 0) bool ismainidx = rcldb->whatDbIdx(doc) == 0; // Indexer already running? bool ixnotact = (m_indexerState == IXST_NOTRUNNING); QString msg = tr("Index not up to date for this file. " "Refusing to risk showing the wrong entry. "); if (ixnotact && ismainidx) { msg += tr("Click Ok to update the " "index for this file, then you will need to " "re-run the query when indexing is done. "); } else if (ismainidx) { msg += tr("The indexer is running so things should " "improve when it's done. "); } else if (ixnotact) { // Not main index msg += tr("The document belongs to an external index" "which I can't update. "); } msg += tr("Click Cancel to return to the list. " "Click Ignore to show the preview anyway. "); QMessageBox::StandardButtons bts = QMessageBox::Ignore | QMessageBox::Cancel; if (ixnotact &&ismainidx) bts |= QMessageBox::Ok; int rep = QMessageBox::warning(0, tr("Warning"), msg, bts, (ixnotact && ismainidx) ? QMessageBox::Cancel : QMessageBox::NoButton); if (m_indexerState == IXST_NOTRUNNING && rep == QMessageBox::Ok) { LOGDEB(("Requesting index update for %s\n", doc.url.c_str())); vector docs(1, doc); updateIdxForDocs(docs); } if (rep != QMessageBox::Ignore) return false; return true; } /** * Open a preview window for a given document, or load it into new tab of * existing window. * * @param docnum db query index * @param mod keyboards modifiers like ControlButton, ShiftButton */ void RclMain::startPreview(int docnum, Rcl::Doc doc, int mod) { LOGDEB(("startPreview(%d, doc, %d)\n", docnum, mod)); if (!containerUpToDate(doc)) return; // Do the zeitgeist thing zg_send_event(ZGSEND_PREVIEW, doc); if (mod & Qt::ShiftModifier) { // User wants new preview window curPreview = 0; } if (curPreview == 0) { HighlightData hdata; m_source->getTerms(hdata); curPreview = new Preview(reslist->listId(), hdata); if (curPreview == 0) { QMessageBox::warning(0, tr("Warning"), tr("Can't create preview window"), QMessageBox::Ok, QMessageBox::NoButton); return; } connect(new QShortcut(quitKeySeq, curPreview), SIGNAL (activated()), this, SLOT (fileExit())); connect(curPreview, SIGNAL(previewClosed(Preview *)), this, SLOT(previewClosed(Preview *))); connect(curPreview, SIGNAL(wordSelect(QString)), sSearch, SLOT(addTerm(QString))); connect(curPreview, SIGNAL(showNext(Preview *, int, int)), this, SLOT(previewNextInTab(Preview *, int, int))); connect(curPreview, SIGNAL(showPrev(Preview *, int, int)), this, SLOT(previewPrevInTab(Preview *, int, int))); connect(curPreview, SIGNAL(previewExposed(Preview *, int, int)), this, SLOT(previewExposed(Preview *, int, int))); connect(curPreview, SIGNAL(saveDocToFile(Rcl::Doc)), this, SLOT(saveDocToFile(Rcl::Doc))); curPreview->setWindowTitle(getQueryDescription()); curPreview->show(); } curPreview->makeDocCurrent(doc, docnum); } /** * Open a preview window for a given document, no linking to result list * * This is used to show ie parent documents, which have no corresponding * entry in the result list. * */ void RclMain::startPreview(Rcl::Doc doc) { Preview *preview = new Preview(0, HighlightData()); if (preview == 0) { QMessageBox::warning(0, tr("Warning"), tr("Can't create preview window"), QMessageBox::Ok, QMessageBox::NoButton); return; } connect(new QShortcut(quitKeySeq, preview), SIGNAL (activated()), this, SLOT (fileExit())); connect(preview, SIGNAL(wordSelect(QString)), sSearch, SLOT(addTerm(QString))); // Do the zeitgeist thing zg_send_event(ZGSEND_PREVIEW, doc); preview->show(); preview->makeDocCurrent(doc, 0); } // Show next document from result list in current preview tab void RclMain::previewNextInTab(Preview * w, int sid, int docnum) { previewPrevOrNextInTab(w, sid, docnum, true); } // Show previous document from result list in current preview tab void RclMain::previewPrevInTab(Preview * w, int sid, int docnum) { previewPrevOrNextInTab(w, sid, docnum, false); } // Combined next/prev from result list in current preview tab void RclMain::previewPrevOrNextInTab(Preview * w, int sid, int docnum, bool nxt) { LOGDEB(("RclMain::previewNextInTab sid %d docnum %d, listId %d\n", sid, docnum, reslist->listId())); if (w == 0) // ?? return; if (sid != reslist->listId()) { QMessageBox::warning(0, "Recoll", tr("This search is not active any more")); return; } if (nxt) docnum++; else docnum--; if (docnum < 0 || m_source.isNull() || docnum >= m_source->getResCnt()) { QApplication::beep(); return; } Rcl::Doc doc; if (!reslist->getDoc(docnum, doc)) { QMessageBox::warning(0, "Recoll", tr("Cannot retrieve document info from database")); return; } w->makeDocCurrent(doc, docnum, true); } // Preview tab exposed: if the preview comes from the currently // displayed result list, tell reslist (to color the paragraph) void RclMain::previewExposed(Preview *, int sid, int docnum) { LOGDEB2(("RclMain::previewExposed: sid %d docnum %d, m_sid %d\n", sid, docnum, reslist->listId())); if (sid != reslist->listId()) { return; } reslist->previewExposed(docnum); } recoll-1.21.5/qtgui/firstidx.h0000644000175000017500000000204012602163537015521 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FIRSTIDX_H_INCLUDED_ #define _FIRSTIDX_H_INCLUDED_ #include "ui_firstidx.h" class FirstIdxDialog : public QDialog, public Ui::FirstIdxDialog { Q_OBJECT public: FirstIdxDialog(QWidget * parent = 0) : QDialog(parent) { setupUi(this); } }; #endif /* _FIRSTIDX_H_INCLUDED_ */ recoll-1.21.5/qtgui/reslist.h0000644000175000017500000001165612602163572015366 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RESLIST_H_INCLUDED_ #define _RESLIST_H_INCLUDED_ #include #include #ifndef NO_NAMESPACES using std::list; using std::pair; #endif #ifdef RESLIST_TEXTBROWSER #include #define RESLIST_PARENTCLASS QTextBrowser #else #include #define RESLIST_PARENTCLASS QWebView #endif #include "docseq.h" #include "sortseq.h" #include "filtseq.h" #include "refcntr.h" #include "rcldoc.h" #include "reslistpager.h" class RclMain; class QtGuiResListPager; /** * Display a list of document records. The data can be out of the history * manager or from an index query, both abstracted as a DocSequence. */ class ResList : public RESLIST_PARENTCLASS { Q_OBJECT; friend class QtGuiResListPager; public: ResList(QWidget* parent = 0, const char* name = 0); virtual ~ResList(); // Return document for given docnum. We mostly act as an // intermediary to the docseq here, but this has also the // side-effect of making the entry current (visible and // highlighted), and only works if the num is inside the current // page or its immediate neighbours. bool getDoc(int docnum, Rcl::Doc &); bool displayingHistory(); int listId() const {return m_listId;} int pageFirstDocNum(); void setFont(); void setRclMain(RclMain *m, bool ismain); public slots: virtual void setDocSource(RefCntr nsource); virtual void resetList(); // Erase current list virtual void resPageUpOrBack(); // Page up pressed virtual void resPageDownOrNext(); // Page down pressed virtual void resultPageBack(); // Previous page of results virtual void resultPageFirst(); // First page of results virtual void resultPageNext(); // Next (or first) page of results virtual void resultPageFor(int docnum); // Page containing docnum virtual void menuPreview(); virtual void menuSaveToFile(); virtual void menuEdit(); virtual void menuOpenWith(QAction *); virtual void menuCopyFN(); virtual void menuCopyURL(); virtual void menuExpand(); virtual void menuPreviewParent(); virtual void menuOpenParent(); virtual void menuShowSnippets(); virtual void menuShowSubDocs(); virtual void previewExposed(int); virtual void append(const QString &text); virtual void readDocSource(); virtual void highlighted(const QString& link); virtual void createPopupMenu(const QPoint& pos); virtual void showQueryDetails(); signals: void nextPageAvailable(bool); void prevPageAvailable(bool); void docPreviewClicked(int, Rcl::Doc, int); void docSaveToFileClicked(Rcl::Doc); void previewRequested(Rcl::Doc); void showSnippets(Rcl::Doc); void showSubDocs(Rcl::Doc); void editRequested(Rcl::Doc); void openWithRequested(Rcl::Doc, string cmd); void docExpand(Rcl::Doc); void wordSelect(QString); void wordReplace(const QString&, const QString&); void hasResults(int); protected: void keyPressEvent(QKeyEvent *e); void mouseReleaseEvent(QMouseEvent *e); void mouseDoubleClickEvent(QMouseEvent*); protected slots: virtual void languageChange(); virtual void linkWasClicked(const QUrl &); private: QtGuiResListPager *m_pager; RefCntr m_source; int m_popDoc; // Docnum for the popup menu. int m_curPvDoc;// Docnum for current preview int m_lstClckMod; // Last click modifier. int m_listId; // query Id for matching with preview windows #ifdef RESLIST_TEXTBROWSER // Translate from textedit paragraph number to relative // docnum. Built while we insert text into the qtextedit std::map m_pageParaToReldocnums; virtual int docnumfromparnum(int); virtual pair parnumfromdocnum(int); #else // Webview makes it more difficult to append text incrementally, // so we store the page and display it when done. QString m_text; #endif RclMain *m_rclmain; bool m_ismainres; virtual void displayPage(); // Display current page static int newListId(); void resetView(); bool scrollIsAtTop(); bool scrollIsAtBottom(); void setupArrows(); }; #endif /* _RESLIST_H_INCLUDED_ */ recoll-1.21.5/qtgui/rclhelp.h0000644000175000017500000000232012602163537015317 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef RCLHELP_H #define RCLHELP_H #include #include #include using std::map; using std::string; class HelpClient : public QObject { Q_OBJECT public: HelpClient(QObject *parent, const char *name = 0); // Install mapping from widget name to manual section static void installMap(string wname, string section); protected: bool eventFilter(QObject *obj, QEvent *event); static map helpmap; }; #endif // RCLHELP_H recoll-1.21.5/qtgui/ptrans_w.h0000644000175000017500000000275512602163537015537 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PTRANS_W_H_INCLUDED_ #define _PTRANS_W_H_INCLUDED_ #include #include #include #include "ui_ptrans.h" class QTableWidgetItem; class EditTrans : public QDialog, public Ui::EditTransBase { Q_OBJECT public: EditTrans(const std::string& dbdir, QWidget* parent = 0) : QDialog(parent) { setupUi(this); init(dbdir); } public slots: virtual void onItemDoubleClicked(QTableWidgetItem *); virtual void on_savePB_clicked(); virtual void on_addPB_clicked(); virtual void on_delPB_clicked(); virtual void on_transTW_itemSelectionChanged(); private: virtual void init(const std::string& dbdir); std::string m_dbdir; }; #endif /* _PTRANS_W_H_INCLUDED_ */ recoll-1.21.5/qtgui/confgui/0000755000175000017500000000000012614726010015144 5ustar dockesdockesrecoll-1.21.5/qtgui/confgui/main.cpp0000644000175000017500000000671512602163537016613 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include using namespace std; #include #include #include #include #include #include #include #include #include #include #include #include #include #include "pathut.h" #include "confguiindex.h" #include "debuglog.h" #include "rclconfig.h" #include "execmd.h" #include "conflinkrcl.h" using namespace confgui; static const char *thisprog; static int op_flags; #define OPT_MOINS 0x1 #define OPT_h 0x4 #define OPT_c 0x20 static const char usage [] = "\n" "trconf\n" " -h : Print help and exit\n" ; //" -c : specify config directory, overriding $RECOLL_CONFDIR\n" //; static void Usage(void) { FILE *fp = (op_flags & OPT_h) ? stdout : stderr; fprintf(fp, "%s: Usage: %s", thisprog, usage); exit((op_flags & OPT_h)==0); } static RclConfig *config; int main(int argc, char **argv) { QApplication app(argc, argv); // fprintf(stderr, "Application created\n"); thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) Usage(); while (**argv) switch (*(*argv)++) { case 'h': op_flags |= OPT_h; Usage();break; } // b1: argc--; argv++; } DebugLog::getdbl()->setloglevel(DEBDEB1); DebugLog::setfilename("stderr"); string a_config = "tstconfdir"; config = new RclConfig(&a_config); if (config == 0 || !config->ok()) { cerr << "Cant read configuration in: " << a_config << endl; exit(1); } cerr << "Working with configuration file in: " << config->getConfDir() << endl; // Translation file for Qt QTranslator qt( 0 ); qt.load( QString( "qt_" ) + QTextCodec::locale(), "." ); app.installTranslator( &qt ); // Translations for Recoll string translatdir = path_cat(config->getDatadir(), "translations"); QTranslator translator( 0 ); // QTextCodec::locale() returns $LANG translator.load( QString("recoll_") + QTextCodec::locale(), translatdir.c_str() ); app.installTranslator( &translator ); // fprintf(stderr, "Translations installed\n"); ConfIndexW w(0, config); QSize size(0, 0); size = size.expandedTo(w.minimumSizeHint()); w.resize(size); //w.setSizeGripEnabled(true); w.show(); // Connect exit handlers etc.. Beware, apparently this must come // after mainWindow->show() , else the QMessageBox above never // returns. app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit())); // fprintf(stderr, "Go\n"); // Let's go return app.exec(); } recoll-1.21.5/qtgui/confgui/confguiindex.cpp0000644000175000017500000005443512614726010020345 0ustar dockesdockes/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include #include #include #include #include #include using std::list; #include "confgui.h" #include "recoll.h" #include "confguiindex.h" #include "smallut.h" #include "debuglog.h" #include "rcldb.h" #include "conflinkrcl.h" #include "execmd.h" #include "rclconfig.h" namespace confgui { static const int spacing = 3; static const int margin = 3; ConfIndexW::ConfIndexW(QWidget *parent, RclConfig *config) : QDialog(parent), m_rclconf(config) { setWindowTitle(QString::fromLocal8Bit(config->getConfDir().c_str())); tabWidget = new QTabWidget; reloadPanels(); buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); QVBoxLayout *mainLayout = new QVBoxLayout; mainLayout->addWidget(tabWidget); mainLayout->addWidget(buttonBox); setLayout(mainLayout); resize(QSize(600, 450).expandedTo(minimumSizeHint())); connect(buttonBox, SIGNAL(accepted()), this, SLOT(acceptChanges())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(rejectChanges())); } void ConfIndexW::acceptChanges() { LOGDEB(("ConfIndexW::acceptChanges()\n")); if (!m_conf) { LOGERR(("ConfIndexW::acceptChanges: no config\n")); return; } // Let the changes to disk if (!m_conf->holdWrites(false)) { QMessageBox::critical(0, "Recoll", tr("Can't write configuration file")); } // Delete local copy and update the main one from the file delete m_conf; m_conf = 0; m_rclconf->updateMainConfig(); hide(); } void ConfIndexW::rejectChanges() { LOGDEB(("ConfIndexW::rejectChanges()\n")); // Discard local changes. delete m_conf; m_conf = 0; hide(); } void ConfIndexW::reloadPanels() { if ((m_conf = m_rclconf->cloneMainConfig()) == 0) return; m_conf->holdWrites(true); tabWidget->clear(); m_widgets.clear(); QWidget *w = new ConfTopPanelW(this, m_conf); m_widgets.push_back(w); tabWidget->addTab(w, QObject::tr("Global parameters")); w = new ConfSubPanelW(this, m_conf, m_rclconf); m_widgets.push_back(w); tabWidget->addTab(w, QObject::tr("Local parameters")); w = new ConfBeaglePanelW(this, m_conf); m_widgets.push_back(w); tabWidget->addTab(w, QObject::tr("Web history")); w = new ConfSearchPanelW(this, m_conf); m_widgets.push_back(w); tabWidget->addTab(w, QObject::tr("Search parameters")); } ConfBeaglePanelW::ConfBeaglePanelW(QWidget *parent, ConfNull *config) : QWidget(parent) { QVBoxLayout *vboxLayout = new QVBoxLayout(this); vboxLayout->setSpacing(spacing); vboxLayout->setMargin(margin); ConfLink lnk1(new ConfLinkRclRep(config, "processwebqueue")); ConfParamBoolW* cp1 = new ConfParamBoolW(this, lnk1, tr("Process the WEB history queue"), tr("Enables indexing Firefox visited pages.
" "(you need also install the Firefox Recoll plugin)" )); vboxLayout->addWidget(cp1); ConfLink lnk2(new ConfLinkRclRep(config, "webcachedir")); ConfParamFNW* cp2 = new ConfParamFNW(this, lnk2, tr("Web page store directory name"), tr("The name for a directory where to store the copies " "of visited web pages.
" "A non-absolute path is taken relative to the " "configuration directory."), true); cp2->setEnabled(cp1->m_cb->isChecked()); connect(cp1->m_cb, SIGNAL(toggled(bool)), cp2, SLOT(setEnabled(bool))); vboxLayout->addWidget(cp2); ConfLink lnk3(new ConfLinkRclRep(config, "webcachemaxmbs")); ConfParamIntW *cp3 = new ConfParamIntW(this, lnk3, tr("Max. size for the web store (MB)"), tr("Entries will be recycled once the size is reached"), -1, 1000*1000); // Max 1TB... cp3->setEnabled(cp1->m_cb->isChecked()); connect(cp1->m_cb, SIGNAL(toggled(bool)), cp3, SLOT(setEnabled(bool))); vboxLayout->addWidget(cp3); vboxLayout->insertStretch(-1); } ConfSearchPanelW::ConfSearchPanelW(QWidget *parent, ConfNull *config) : QWidget(parent) { QVBoxLayout *vboxLayout = new QVBoxLayout(this); vboxLayout->setSpacing(spacing); vboxLayout->setMargin(margin); if (!o_index_stripchars) { ConfLink lnk1(new ConfLinkRclRep(config, "autodiacsens")); ConfParamBoolW* cp1 = new ConfParamBoolW(this, lnk1, tr("Automatic diacritics sensitivity"), tr("

Automatically trigger diacritics sensitivity " "if the search term has accented characters " "(not in unac_except_trans). Else you need to " "use the query language and the D " "modifier to specify " "diacritics sensitivity." )); vboxLayout->addWidget(cp1); ConfLink lnk2(new ConfLinkRclRep(config, "autocasesens")); ConfParamBoolW* cp2 = new ConfParamBoolW(this, lnk2, tr("Automatic character case sensitivity"), tr("

Automatically trigger character case " "sensitivity if the entry has upper-case " "characters in any but the first position. " "Else you need to use the query language and " "the C modifier to specify character-case " "sensitivity." )); vboxLayout->addWidget(cp2); } ConfLink lnk3(new ConfLinkRclRep(config, "maxTermExpand")); ConfParamIntW* cp3 = new ConfParamIntW(this, lnk3, tr("Maximum term expansion count"), tr("

Maximum expansion count for a single term " "(e.g.: when using wildcards). The default " "of 10 000 is reasonable and will avoid " "queries that appear frozen while the engine is " "walking the term list." )); vboxLayout->addWidget(cp3); ConfLink lnk4(new ConfLinkRclRep(config, "maxXapianClauses")); ConfParamIntW* cp4 = new ConfParamIntW(this, lnk4, tr("Maximum Xapian clauses count"), tr("

Maximum number of elementary clauses we " "add to a single Xapian query. In some cases, " "the result of term expansion can be " "multiplicative, and we want to avoid using " "excessive memory. The default of 100 000 " "should be both high enough in most cases " "and compatible with current typical hardware " "configurations." )); vboxLayout->addWidget(cp4); vboxLayout->insertStretch(-1); } ConfTopPanelW::ConfTopPanelW(QWidget *parent, ConfNull *config) : QWidget(parent) { QWidget *w = 0; QGridLayout *gl1 = new QGridLayout(this); gl1->setSpacing(spacing); gl1->setMargin(margin); int gridrow = 0; w = new ConfParamDNLW(this, ConfLink(new ConfLinkRclRep(config, "topdirs")), tr("Top directories"), tr("The list of directories where recursive " "indexing starts. Default: your home.")); setSzPol(w, QSizePolicy::Preferred, QSizePolicy::Preferred, 1, 3); gl1->addWidget(w, gridrow++, 0, 1, 2); ConfParamSLW *eskp = new ConfParamSLW(this, ConfLink(new ConfLinkRclRep(config, "skippedPaths")), tr("Skipped paths"), tr("These are names of directories which indexing " "will not enter.
May contain wildcards. " "Must match " "the paths seen by the indexer (ie: if topdirs " "includes '/home/me' and '/home' is actually a link " "to '/usr/home', a correct skippedPath entry " "would be '/home/me/tmp*', not '/usr/home/me/tmp*')")); eskp->setFsEncoding(true); setSzPol(eskp, QSizePolicy::Preferred, QSizePolicy::Preferred, 1, 3); gl1->addWidget(eskp, gridrow++, 0, 1, 2); vector cstemlangs = Rcl::Db::getStemmerNames(); QStringList stemlangs; for (vector::const_iterator it = cstemlangs.begin(); it != cstemlangs.end(); it++) { stemlangs.push_back(QString::fromUtf8(it->c_str())); } w = new ConfParamCSLW(this, ConfLink(new ConfLinkRclRep(config, "indexstemminglanguages")), tr("Stemming languages"), tr("The languages for which stemming expansion
" "dictionaries will be built."), stemlangs); setSzPol(w, QSizePolicy::Preferred, QSizePolicy::Preferred, 1, 1); gl1->addWidget(w, gridrow, 0); w = new ConfParamFNW(this, ConfLink(new ConfLinkRclRep(config, "logfilename")), tr("Log file name"), tr("The file where the messages will be written.
" "Use 'stderr' for terminal output"), false); gl1->addWidget(w, gridrow++, 1); w = new ConfParamIntW(this, ConfLink(new ConfLinkRclRep(config, "loglevel")), tr("Log verbosity level"), tr("This value adjusts the amount of " "messages,
from only errors to a " "lot of debugging data."), 0, 6); gl1->addWidget(w, gridrow, 0); w = new ConfParamIntW(this, ConfLink(new ConfLinkRclRep(config, "idxflushmb")), tr("Index flush megabytes interval"), tr("This value adjust the amount of " "data which is indexed between flushes to disk.
" "This helps control the indexer memory usage. " "Default 10MB "), 0, 1000); gl1->addWidget(w, gridrow++, 1); w = new ConfParamIntW(this, ConfLink(new ConfLinkRclRep(config, "maxfsoccuppc")), tr("Max disk occupation (%)"), tr("This is the percentage of disk occupation where " "indexing will fail and stop (to avoid filling up " "your disk).
0 means no limit " "(this is the default)."), 0, 100); gl1->addWidget(w, gridrow++, 0); ConfParamBoolW* cpasp = new ConfParamBoolW(this, ConfLink(new ConfLinkRclRep(config, "noaspell")), tr("No aspell usage"), tr("Disables use of aspell to generate spelling " "approximation in the term explorer tool.
" "Useful if aspell is absent or does not work. ")); gl1->addWidget(cpasp, gridrow, 0); ConfParamStrW* cpaspl = new ConfParamStrW(this, ConfLink(new ConfLinkRclRep(config, "aspellLanguage")), tr("Aspell language"), tr("The language for the aspell dictionary. " "This should look like 'en' or 'fr' ...
" "If this value is not set, the NLS environment " "will be used to compute it, which usually works. " "To get an idea of what is installed on your system, " "type 'aspell config' and look for .dat files inside " "the 'data-dir' directory. ")); cpaspl->setEnabled(!cpasp->m_cb->isChecked()); connect(cpasp->m_cb, SIGNAL(toggled(bool)), cpaspl,SLOT(setDisabled(bool))); gl1->addWidget(cpaspl, gridrow++, 1); w = new ConfParamFNW(this, ConfLink(new ConfLinkRclRep(config, "dbdir")), tr("Database directory name"), tr("The name for a directory where to store the index
" "A non-absolute path is taken relative to the " "configuration directory. The default is 'xapiandb'." ), true); gl1->addWidget(w, gridrow++, 0, 1, 2); w = new ConfParamStrW(this, ConfLink(new ConfLinkRclRep(config, "unac_except_trans")), tr("Unac exceptions"), tr("

These are exceptions to the unac mechanism " "which, by default, removes all diacritics, " "and performs canonic decomposition. You can override " "unaccenting for some characters, depending on your " "language, and specify additional decompositions, " "e.g. for ligatures. In each space-separated entry, " "the first character is the source one, and the rest " "is the translation." )); gl1->addWidget(w, gridrow++, 0, 1, 2); } ConfSubPanelW::ConfSubPanelW(QWidget *parent, ConfNull *config, RclConfig *rclconf) : QWidget(parent), m_config(config) { QVBoxLayout *vboxLayout = new QVBoxLayout(this); vboxLayout->setSpacing(spacing); vboxLayout->setMargin(margin); m_subdirs = new ConfParamDNLW(this, ConfLink(new ConfLinkNullRep()), QObject::tr("Customised subtrees"), QObject::tr("The list of subdirectories in the indexed " "hierarchy
where some parameters need " "to be redefined. Default: empty.")); m_subdirs->getListBox()->setSelectionMode(QAbstractItemView::SingleSelection); connect(m_subdirs->getListBox(), SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(subDirChanged(QListWidgetItem *, QListWidgetItem *))); connect(m_subdirs, SIGNAL(entryDeleted(QString)), this, SLOT(subDirDeleted(QString))); // We only retrieve the subkeys from the user's config (shallow), // no use to confuse the user by showing the subtrees which are // customized in the system config like .thunderbird or // .purple. This doesn't prevent them to add and customize them // further. vector allkeydirs = config->getSubKeys(true); QStringList qls; for (vector::const_iterator it = allkeydirs.begin(); it != allkeydirs.end(); it++) { qls.push_back(QString::fromUtf8(it->c_str())); } m_subdirs->getListBox()->insertItems(0, qls); vboxLayout->addWidget(m_subdirs); QFrame *line2 = new QFrame(this); line2->setFrameShape(QFrame::HLine); line2->setFrameShadow(QFrame::Sunken); vboxLayout->addWidget(line2); QLabel *explain = new QLabel(this); explain->setText( QObject:: tr("The parameters that follow are set either at the " "top level, if nothing
" "or an empty line is selected in the listbox above, " "or for the selected subdirectory.
" "You can add or remove directories by clicking " "the +/- buttons.")); vboxLayout->addWidget(explain); m_groupbox = new QGroupBox(this); setSzPol(m_groupbox, QSizePolicy::Preferred, QSizePolicy::Preferred, 1, 3); QGridLayout *gl1 = new QGridLayout(m_groupbox); gl1->setSpacing(spacing); gl1->setMargin(margin); int gridy = 0; ConfParamSLW *eskn = new ConfParamSLW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "skippedNames", &m_sk)), QObject::tr("Skipped names"), QObject::tr("These are patterns for file or directory " " names which should not be indexed.")); eskn->setFsEncoding(true); m_widgets.push_back(eskn); gl1->addWidget(eskn, gridy, 0); vector amimes = rclconf->getAllMimeTypes(); QStringList amimesq; for (vector::const_iterator it = amimes.begin(); it != amimes.end(); it++) { amimesq.push_back(QString::fromUtf8(it->c_str())); } ConfParamCSLW *eincm = new ConfParamCSLW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "indexedmimetypes", &m_sk)), tr("Only mime types"), tr("An exclusive list of indexed mime types.
Nothing " "else will be indexed. Normally empty and inactive"), amimesq); m_widgets.push_back(eincm); gl1->addWidget(eincm, gridy++, 1); ConfParamCSLW *eexcm = new ConfParamCSLW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "excludedmimetypes", &m_sk)), tr("Exclude mime types"), tr("Mime types not to be indexed"), amimesq); m_widgets.push_back(eexcm); gl1->addWidget(eexcm, gridy, 0); ConfParamSLW *encs = new ConfParamSLW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "noContentSuffixes", &m_sk)), QObject::tr("Ignored endings"), QObject::tr("These are file name endings for files which will be " "indexed by name only \n(no MIME type identification " "attempt, no decompression, no content indexing).")); encs->setFsEncoding(true); m_widgets.push_back(encs); gl1->addWidget(encs, gridy++, 1); vector args; args.push_back("-l"); ExecCmd ex; string icout; string cmd = "iconv"; int status = ex.doexec(cmd, args, 0, &icout); if (status) { LOGERR(("Can't get list of charsets from 'iconv -l'")); } icout = neutchars(icout, ","); list ccsets; stringToStrings(icout, ccsets); QStringList charsets; charsets.push_back(""); for (list::const_iterator it = ccsets.begin(); it != ccsets.end(); it++) { charsets.push_back(QString::fromUtf8(it->c_str())); } ConfParamCStrW *e21 = new ConfParamCStrW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "defaultcharset", &m_sk)), QObject::tr("Default
character set"), QObject::tr("Character set used for reading files " "which do not identify the character set " "internally, for example pure text files.
" "The default value is empty, " "and the value from the NLS environnement is used." ), charsets); m_widgets.push_back(e21); gl1->addWidget(e21, gridy++, 0); ConfParamBoolW *e3 = new ConfParamBoolW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "followLinks", &m_sk)), QObject::tr("Follow symbolic links"), QObject::tr("Follow symbolic links while " "indexing. The default is no, " "to avoid duplicate indexing")); m_widgets.push_back(e3); gl1->addWidget(e3, gridy, 0); ConfParamBoolW *eafln = new ConfParamBoolW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "indexallfilenames", &m_sk)), QObject::tr("Index all file names"), QObject::tr("Index the names of files for which the contents " "cannot be identified or processed (no or " "unsupported mime type). Default true")); m_widgets.push_back(eafln); gl1->addWidget(eafln, gridy++, 1); ConfParamIntW *ezfmaxkbs = new ConfParamIntW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "compressedfilemaxkbs", &m_sk)), tr("Max. compressed file size (KB)"), tr("This value sets a threshold beyond which compressed" "files will not be processed. Set to -1 for no " "limit, to 0 for no decompression ever."), -1, 1000000, -1); m_widgets.push_back(ezfmaxkbs); gl1->addWidget(ezfmaxkbs, gridy, 0); ConfParamIntW *etxtmaxmbs = new ConfParamIntW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "textfilemaxmbs", &m_sk)), tr("Max. text file size (MB)"), tr("This value sets a threshold beyond which text " "files will not be processed. Set to -1 for no " "limit. \nThis is for excluding monster " "log files from the index."), -1, 1000000); m_widgets.push_back(etxtmaxmbs); gl1->addWidget(etxtmaxmbs, gridy++, 1); ConfParamIntW *etxtpagekbs = new ConfParamIntW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "textfilepagekbs", &m_sk)), tr("Text file page size (KB)"), tr("If this value is set (not equal to -1), text " "files will be split in chunks of this size for " "indexing.\nThis will help searching very big text " " files (ie: log files)."), -1, 1000000); m_widgets.push_back(etxtpagekbs); gl1->addWidget(etxtpagekbs, gridy, 0); ConfParamIntW *efiltmaxsecs = new ConfParamIntW( m_groupbox, ConfLink(new ConfLinkRclRep(config, "filtermaxseconds", &m_sk)), tr("Max. filter exec. time (S)"), tr("External filters working longer than this will be " "aborted. This is for the rare case (ie: postscript) " "where a document could cause a filter to loop. " "Set to -1 for no limit.\n"), -1, 10000); m_widgets.push_back(efiltmaxsecs); gl1->addWidget(efiltmaxsecs, gridy++, 1); vboxLayout->addWidget(m_groupbox); subDirChanged(0, 0); } void ConfSubPanelW::reloadAll() { for (list::iterator it = m_widgets.begin(); it != m_widgets.end(); it++) { (*it)->loadValue(); } } void ConfSubPanelW::subDirChanged(QListWidgetItem *current, QListWidgetItem *) { LOGDEB(("ConfSubPanelW::subDirChanged\n")); if (current == 0 || current->text() == "") { m_sk = ""; m_groupbox->setTitle(tr("Global")); } else { m_sk = (const char *) current->text().toUtf8(); m_groupbox->setTitle(current->text()); } LOGDEB(("ConfSubPanelW::subDirChanged: now [%s]\n", m_sk.c_str())); reloadAll(); } void ConfSubPanelW::subDirDeleted(QString sbd) { LOGDEB(("ConfSubPanelW::subDirDeleted(%s)\n", (const char *)sbd.toUtf8())); if (sbd == "") { // Can't do this, have to reinsert it QTimer::singleShot(0, this, SLOT(restoreEmpty())); return; } // Have to delete all entries for submap m_config->eraseKey((const char *)sbd.toUtf8()); } void ConfSubPanelW::restoreEmpty() { LOGDEB(("ConfSubPanelW::restoreEmpty()\n")); m_subdirs->getListBox()->insertItem(0, ""); } } // Namespace confgui recoll-1.21.5/qtgui/confgui/confgui.h0000644000175000017500000001663312602163571016764 0ustar dockesdockes/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _confgui_h_included_ #define _confgui_h_included_ /** * This file defines a number of simple classes (virtual base: ConfParamW) * which let the user input configuration parameters. * * Subclasses are defined for entering different kind of data, ie a string, * a file name, an integer, etc. * * Each configuration gui object is linked to the configuration data through * a "link" object which knows the details of interacting with the actual * configuration data, like the parameter name, the actual config object, * the method to call etc. * * The link object is set when the input widget is created and cannot be * changed. * * The widgets are typically linked to a temporary configuration object, which * is then copied to the actual configuration if the data is accepted, or * destroyed and recreated as a copy if Cancel is pressed (you have to * delete/recreate the widgets in this case as the links are no longer valid). */ #include #include #include #include #include #include "refcntr.h" using std::string; class QHBoxLayout; class QLineEdit; class QListWidget; class QSpinBox; class QComboBox; class QCheckBox; class QPushButton; namespace confgui { // A class to isolate the gui widget from the config storage mechanism class ConfLinkRep { public: virtual ~ConfLinkRep() {} virtual bool set(const string& val) = 0; virtual bool get(string& val) = 0; }; typedef RefCntr ConfLink; // Useful to store/manage data which has no direct representation in // the config, ie list of subkey directories class ConfLinkNullRep : public ConfLinkRep { public: virtual ~ConfLinkNullRep() {} virtual bool set(const string&) { return true; } virtual bool get(string& val) {val = ""; return true;} }; // A widget to let the user change one configuration // parameter. Subclassed for specific parameter types. Basically // has a label and some kind of entry widget class ConfParamW : public QWidget { Q_OBJECT public: ConfParamW(QWidget *parent, ConfLink cflink) : QWidget(parent), m_cflink(cflink), m_fsencoding(false) { } virtual void loadValue() = 0; virtual void setFsEncoding(bool onoff) {m_fsencoding = onoff;} protected: ConfLink m_cflink; QHBoxLayout *m_hl; // File names are encoded as local8bit in the config files. Other // are encoded as utf-8 bool m_fsencoding; virtual bool createCommon(const QString& lbltxt, const QString& tltptxt); public slots: virtual void setEnabled(bool) = 0; protected slots: void setValue(const QString& newvalue); void setValue(int newvalue); void setValue(bool newvalue); }; // Widgets for setting the different types of configuration parameters: // Int class ConfParamIntW : public ConfParamW { Q_OBJECT public: // The default value is only used if none exists in the sample // configuration file. Defaults are normally set in there. ConfParamIntW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt, int minvalue = INT_MIN, int maxvalue = INT_MAX, int defaultvalue = 0); virtual void loadValue(); public slots: virtual void setEnabled(bool i) {if(m_sb) ((QWidget*)m_sb)->setEnabled(i);} protected: QSpinBox *m_sb; int m_defaultvalue; }; // Arbitrary string class ConfParamStrW : public ConfParamW { Q_OBJECT public: ConfParamStrW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt); virtual void loadValue(); public slots: virtual void setEnabled(bool i) {if(m_le) ((QWidget*)m_le)->setEnabled(i);} protected: QLineEdit *m_le; }; // Constrained string: choose from list class ConfParamCStrW : public ConfParamW { Q_OBJECT public: ConfParamCStrW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt, const QStringList& sl); virtual void loadValue(); public slots: virtual void setEnabled(bool i) {if(m_cmb) ((QWidget*)m_cmb)->setEnabled(i);} protected: QComboBox *m_cmb; }; // Boolean class ConfParamBoolW : public ConfParamW { Q_OBJECT public: ConfParamBoolW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt); virtual void loadValue(); public slots: virtual void setEnabled(bool i) {if(m_cb) ((QWidget*)m_cb)->setEnabled(i);} public: QCheckBox *m_cb; }; // File name class ConfParamFNW : public ConfParamW { Q_OBJECT public: ConfParamFNW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt, bool isdir = false); virtual void loadValue(); protected slots: void showBrowserDialog(); public slots: virtual void setEnabled(bool i) { if(m_le) ((QWidget*)m_le)->setEnabled(i); if(m_pb) ((QWidget*)m_pb)->setEnabled(i); } protected: QLineEdit *m_le; QPushButton *m_pb; bool m_isdir; }; // String list class ConfParamSLW : public ConfParamW { Q_OBJECT public: ConfParamSLW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt); virtual void loadValue(); QListWidget *getListBox() {return m_lb;} public slots: virtual void setEnabled(bool i) {if(m_lb) ((QWidget*)m_lb)->setEnabled(i);} protected slots: virtual void showInputDialog(); void deleteSelected(); signals: void entryDeleted(QString); protected: QListWidget *m_lb; void listToConf(); }; // Dir name list class ConfParamDNLW : public ConfParamSLW { Q_OBJECT public: ConfParamDNLW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt) : ConfParamSLW(parent, cflink, lbltxt, tltptxt) { m_fsencoding = true; } protected slots: virtual void showInputDialog(); }; // Constrained string list (chose from predefined) class ConfParamCSLW : public ConfParamSLW { Q_OBJECT public: ConfParamCSLW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt, const QStringList& sl) : ConfParamSLW(parent, cflink, lbltxt, tltptxt), m_sl(sl) { } protected slots: virtual void showInputDialog(); protected: const QStringList m_sl; }; extern void setSzPol(QWidget *w, QSizePolicy::Policy hpol, QSizePolicy::Policy vpol, int hstretch, int vstretch); } #endif /* _confgui_h_included_ */ recoll-1.21.5/qtgui/confgui/conflinkrcl.h0000644000175000017500000000371312602163537017633 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CONFLINKRCL_H_INCLUDED_ #define _CONFLINKRCL_H_INCLUDED_ /** * A Gui-to-Data link class for ConfTree * Has a subkey pointer member which makes it easy to change the * current subkey for a number at a time. */ #include "confgui.h" #include "conftree.h" #include "debuglog.h" namespace confgui { class ConfLinkRclRep : public ConfLinkRep { public: ConfLinkRclRep(ConfNull *conf, const string& nm, string *sk = 0) : m_conf(conf), m_nm(nm), m_sk(sk) { } virtual ~ConfLinkRclRep() {} virtual bool set(const string& val) { if (!m_conf) return false; LOGDEB1(("Setting [%s] value to [%s]\n", m_nm.c_str(), val.c_str())); bool ret = m_conf->set(m_nm, val, m_sk?*m_sk:""); if (!ret) LOGERR(("Value set failed\n")); return ret; } virtual bool get(string& val) { if (!m_conf) return false; bool ret = m_conf->get(m_nm, val, m_sk?*m_sk:""); LOGDEB1(("ConfLinkRcl::get: [%s] sk [%s] -> [%s]\n", m_nm.c_str(), m_sk?m_sk->c_str():"", ret ? val.c_str() : "no value")); return ret; } private: ConfNull *m_conf; const string m_nm; const string *m_sk; }; } // Namespace confgui #endif /* _CONFLINKRCL_H_INCLUDED_ */ recoll-1.21.5/qtgui/confgui/trconf.pro0000644000175000017500000000122312602163537017165 0ustar dockesdockesTEMPLATE = app LANGUAGE = C++ CONFIG += qt warn_on thread release debug HEADERS += confgui.h confguiindex.h SOURCES += main.cpp confgui.cpp confguiindex.cpp #FORMS = unix { UI_DIR = .ui MOC_DIR = .moc OBJECTS_DIR = .obj DEFINES += RECOLL_DATADIR='\\"/usr/local/share/recoll\\"' LIBS += ../../lib/librcl.a -lxapian -liconv -lz INCLUDEPATH += ../../common ../../utils ../../rcldb #../index ../internfile ../query ../unac \ # ../aspell ../rcldb POST_TARGETDEPS = ../../lib/librcl.a } UNAME = $$system(uname -s) contains( UNAME, [lL]inux ) { LIBS -= -liconv } #The following line was inserted by qt3to4 QT += qt3support recoll-1.21.5/qtgui/confgui/confguiindex.h0000644000175000017500000000530012602163537020003 0ustar dockesdockes/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _confguiindex_h_included_ #define _confguiindex_h_included_ /** * Classes to handle the gui for the indexing configuration. These group * confgui elements, linked to configuration parameters, into panels. */ #include #include #include #include #include #include #include #include #include using std::string; using std::list; class ConfNull; class RclConfig; class ConfParamW; class ConfParamDNLW; namespace confgui { class ConfIndexW : public QDialog { Q_OBJECT public: ConfIndexW(QWidget *parent, RclConfig *config); public slots: void acceptChanges(); void rejectChanges(); void reloadPanels(); private: RclConfig *m_rclconf; ConfNull *m_conf; list m_widgets; QTabWidget *tabWidget; QDialogButtonBox *buttonBox; }; /** * A panel with the top-level parameters which can't be redefined in * subdirectoriess: */ class ConfTopPanelW : public QWidget { Q_OBJECT public: ConfTopPanelW(QWidget *parent, ConfNull *config); }; /** * A panel for the parameters that can be changed in subdirectories: */ class ConfSubPanelW : public QWidget { Q_OBJECT public: ConfSubPanelW(QWidget *parent, ConfNull *config, RclConfig *rclconf); private slots: void subDirChanged(QListWidgetItem *, QListWidgetItem *); void subDirDeleted(QString); void restoreEmpty(); private: string m_sk; ConfParamDNLW *m_subdirs; list m_widgets; ConfNull *m_config; QGroupBox *m_groupbox; void reloadAll(); }; class ConfBeaglePanelW : public QWidget { Q_OBJECT public: ConfBeaglePanelW(QWidget *parent, ConfNull *config); }; class ConfSearchPanelW : public QWidget { Q_OBJECT public: ConfSearchPanelW(QWidget *parent, ConfNull *config); }; } // Namespace confgui #endif /* _confguiindex_h_included_ */ recoll-1.21.5/qtgui/confgui/confgui.cpp0000644000175000017500000003057212602163537017317 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "confgui.h" #include "smallut.h" #include "debuglog.h" #include "rcldb.h" #include "guiutils.h" #include #include using std::list; using std::vector; namespace confgui { static const int spacing = 2; static const int margin = 2; void ConfParamW::setValue(const QString& value) { if (m_fsencoding) m_cflink->set(string((const char *)value.toLocal8Bit())); else m_cflink->set(string((const char *)value.toUtf8())); } void ConfParamW::setValue(int value) { char buf[30]; sprintf(buf, "%d", value); m_cflink->set(string(buf)); } void ConfParamW::setValue(bool value) { char buf[30]; sprintf(buf, "%d", value); m_cflink->set(string(buf)); } void setSzPol(QWidget *w, QSizePolicy::Policy hpol, QSizePolicy::Policy vpol, int hstretch, int vstretch) { QSizePolicy policy(hpol, vpol); policy.setHorizontalStretch(hstretch); policy.setVerticalStretch(vstretch); policy.setHeightForWidth(w->sizePolicy().hasHeightForWidth()); w->setSizePolicy(policy); } bool ConfParamW::createCommon(const QString& lbltxt, const QString& tltptxt) { m_hl = new QHBoxLayout(this); m_hl->setSpacing(spacing); QLabel *tl = new QLabel(this); setSzPol(tl, QSizePolicy::Preferred, QSizePolicy::Fixed, 0, 0); tl->setText(lbltxt); tl->setToolTip(tltptxt); m_hl->addWidget(tl); return true; } ConfParamIntW::ConfParamIntW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt, int minvalue, int maxvalue, int defaultvalue) : ConfParamW(parent, cflink), m_defaultvalue(defaultvalue) { if (!createCommon(lbltxt, tltptxt)) return; m_sb = new QSpinBox(this); m_sb->setMinimum(minvalue); m_sb->setMaximum(maxvalue); setSzPol(m_sb, QSizePolicy::Fixed, QSizePolicy::Fixed, 0, 0); m_hl->addWidget(m_sb); QFrame *fr = new QFrame(this); setSzPol(fr, QSizePolicy::Preferred, QSizePolicy::Fixed, 0, 0); m_hl->addWidget(fr); loadValue(); QObject::connect(m_sb, SIGNAL(valueChanged(int)), this, SLOT(setValue(int))); } void ConfParamIntW::loadValue() { string s; if (m_cflink->get(s)) m_sb->setValue(atoi(s.c_str())); else m_sb->setValue(m_defaultvalue); } ConfParamStrW::ConfParamStrW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt) : ConfParamW(parent, cflink) { if (!createCommon(lbltxt, tltptxt)) return; m_le = new QLineEdit(this); setSzPol(m_le, QSizePolicy::Preferred, QSizePolicy::Fixed, 1, 0); m_hl->addWidget(m_le); loadValue(); QObject::connect(m_le, SIGNAL(textChanged(const QString&)), this, SLOT(setValue(const QString&))); } void ConfParamStrW::loadValue() { string s; m_cflink->get(s); if (m_fsencoding) m_le->setText(QString::fromLocal8Bit(s.c_str())); else m_le->setText(QString::fromUtf8(s.c_str())); } ConfParamCStrW::ConfParamCStrW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt, const QStringList &sl ) : ConfParamW(parent, cflink) { if (!createCommon(lbltxt, tltptxt)) return; m_cmb = new QComboBox(this); m_cmb->setEditable(false); m_cmb->insertItems(0, sl); setSzPol(m_cmb, QSizePolicy::Preferred, QSizePolicy::Fixed, 1, 0); m_hl->addWidget(m_cmb); loadValue(); QObject::connect(m_cmb, SIGNAL(activated(const QString&)), this, SLOT(setValue(const QString&))); } void ConfParamCStrW::loadValue() { string s; m_cflink->get(s); QString cs; if (m_fsencoding) cs = QString::fromLocal8Bit(s.c_str()); else cs = QString::fromUtf8(s.c_str()); for (int i = 0; i < m_cmb->count(); i++) { if (!cs.compare(m_cmb->itemText(i))) { m_cmb->setCurrentIndex(i); break; } } } ConfParamBoolW::ConfParamBoolW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt) : ConfParamW(parent, cflink) { // No createCommon because the checkbox has a label m_hl = new QHBoxLayout(this); m_hl->setSpacing(spacing); m_cb = new QCheckBox(lbltxt, this); setSzPol(m_cb, QSizePolicy::Fixed, QSizePolicy::Fixed, 0, 0); m_cb->setToolTip(tltptxt); m_hl->addWidget(m_cb); QFrame *fr = new QFrame(this); setSzPol(fr, QSizePolicy::Preferred, QSizePolicy::Fixed, 1, 0); m_hl->addWidget(fr); loadValue(); QObject::connect(m_cb, SIGNAL(toggled(bool)), this, SLOT(setValue(bool))); } void ConfParamBoolW::loadValue() { string s; m_cflink->get(s); m_cb->setChecked(stringToBool(s)); } ConfParamFNW::ConfParamFNW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt, bool isdir ) : ConfParamW(parent, cflink), m_isdir(isdir) { if (!createCommon(lbltxt, tltptxt)) return; m_fsencoding = true; m_le = new QLineEdit(this); m_le->setMinimumSize(QSize(150, 0 )); setSzPol(m_le, QSizePolicy::Preferred, QSizePolicy::Fixed, 1, 0); m_hl->addWidget(m_le); m_pb = new QPushButton(this); QString text = tr("Choose"); m_pb->setText(text); int width = m_pb->fontMetrics().boundingRect(text).width() + 15; m_pb->setMaximumWidth(width); setSzPol(m_pb, QSizePolicy::Minimum, QSizePolicy::Fixed, 0, 0); m_hl->addWidget(m_pb); loadValue(); QObject::connect(m_pb, SIGNAL(clicked()), this, SLOT(showBrowserDialog())); QObject::connect(m_le, SIGNAL(textChanged(const QString&)), this, SLOT(setValue(const QString&))); } void ConfParamFNW::loadValue() { string s; m_cflink->get(s); m_le->setText(QString::fromLocal8Bit(s.c_str())); } void ConfParamFNW::showBrowserDialog() { QString s = myGetFileName(m_isdir); if (!s.isEmpty()) m_le->setText(s); } class SmallerListWidget: public QListWidget { public: SmallerListWidget(QWidget *parent) : QListWidget(parent) {} virtual QSize sizeHint() const {return QSize(150, 40);} }; ConfParamSLW::ConfParamSLW(QWidget *parent, ConfLink cflink, const QString& lbltxt, const QString& tltptxt) : ConfParamW(parent, cflink) { // Can't use createCommon here cause we want the buttons below the label m_hl = new QHBoxLayout(this); m_hl->setSpacing(spacing); QVBoxLayout *vl1 = new QVBoxLayout(); QHBoxLayout *hl1 = new QHBoxLayout(); QLabel *tl = new QLabel(this); setSzPol(tl, QSizePolicy::Preferred, QSizePolicy::Fixed, 0, 0); tl->setText(lbltxt); tl->setToolTip(tltptxt); vl1->addWidget(tl); QPushButton *pbA = new QPushButton(this); QString text = tr("+"); pbA->setText(text); int width = pbA->fontMetrics().boundingRect(text).width() + 15; pbA->setMaximumWidth(width); setSzPol(pbA, QSizePolicy::Minimum, QSizePolicy::Fixed, 0, 0); hl1->addWidget(pbA); QPushButton *pbD = new QPushButton(this); text = tr("-"); pbD->setText(text); width = pbD->fontMetrics().boundingRect(text).width() + 15; pbD->setMaximumWidth(width); setSzPol(pbD, QSizePolicy::Minimum, QSizePolicy::Fixed, 0, 0); hl1->addWidget(pbD); vl1->addLayout(hl1); m_hl->addLayout(vl1); m_lb = new SmallerListWidget(this); m_lb->setSelectionMode(QAbstractItemView::ExtendedSelection); setSzPol(m_lb, QSizePolicy::Preferred, QSizePolicy::Preferred, 1, 1); m_hl->addWidget(m_lb); setSzPol(this, QSizePolicy::Preferred, QSizePolicy::Preferred, 1, 1); loadValue(); QObject::connect(pbA, SIGNAL(clicked()), this, SLOT(showInputDialog())); QObject::connect(pbD, SIGNAL(clicked()), this, SLOT(deleteSelected())); } void ConfParamSLW::loadValue() { string s; m_cflink->get(s); list ls; stringToStrings(s, ls); QStringList qls; for (list::const_iterator it = ls.begin(); it != ls.end(); it++) { if (m_fsencoding) qls.push_back(QString::fromLocal8Bit(it->c_str())); else qls.push_back(QString::fromUtf8(it->c_str())); } m_lb->clear(); m_lb->insertItems(0, qls); } void ConfParamSLW::showInputDialog() { bool ok; QString s = QInputDialog::getText (this, "", // title "", // label, QLineEdit::Normal, // EchoMode mode "", // const QString & text &ok); if (ok && !s.isEmpty()) { QListitems = m_lb->findItems(s, Qt::MatchFixedString|Qt::MatchCaseSensitive); if (items.empty()) { m_lb->insertItem(0, s); m_lb->sortItems(); listToConf(); } } } void ConfParamSLW::listToConf() { list ls; for (int i = 0; i < m_lb->count(); i++) { // General parameters are encoded as utf-8. File names as // local8bit There is no hope for 8bit file names anyway // except for luck: the original encoding is unknown. QString text = m_lb->item(i)->text(); if (m_fsencoding) ls.push_back((const char *)(text.toLocal8Bit())); else ls.push_back((const char *)(text.toUtf8())); } string s; stringsToString(ls, s); m_cflink->set(s); } void ConfParamSLW::deleteSelected() { // We used to repeatedly go through the list and delete the first // found selected item (then restart from the beginning). But it // seems (probably depends on the qt version), that, when deleting // a selected item, qt will keep the selection active at the same // index (now containing the next item), so that we'd end up // deleting the whole list. // // Instead, we now build a list of indices, and delete it starting // from the top so as not to invalidate lower indices vector idxes; for (int i = 0; i < m_lb->count(); i++) { if (m_lb->item(i)->isSelected()) { idxes.push_back(i); } } for (vector::reverse_iterator it = idxes.rbegin(); it != idxes.rend(); it++) { LOGDEB0(("deleteSelected: %d was selected\n", *it)); QListWidgetItem *item = m_lb->takeItem(*it); emit entryDeleted(item->text()); delete item; } listToConf(); } // "Add entry" dialog for a file name list void ConfParamDNLW::showInputDialog() { QString s = myGetFileName(true); if (!s.isEmpty()) { QListitems = m_lb->findItems(s, Qt::MatchFixedString|Qt::MatchCaseSensitive); if (items.empty()) { m_lb->insertItem(0, s); m_lb->sortItems(); QListitems = m_lb->findItems(s, Qt::MatchFixedString|Qt::MatchCaseSensitive); if (m_lb->selectionMode() == QAbstractItemView::SingleSelection && !items.empty()) m_lb->setCurrentItem(*items.begin()); listToConf(); } } } // "Add entry" dialog for a constrained string list void ConfParamCSLW::showInputDialog() { bool ok; QString s = QInputDialog::getItem (this, // parent "", // title "", // label, m_sl, // items, 0, // current = 0 false, // editable = true, &ok); if (ok && !s.isEmpty()) { QListitems = m_lb->findItems(s, Qt::MatchFixedString|Qt::MatchCaseSensitive); if (items.empty()) { m_lb->insertItem(0, s); m_lb->sortItems(); listToConf(); } } } } // Namespace confgui recoll-1.21.5/qtgui/rtitool.h0000644000175000017500000000220412602163537015363 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RTITOOL_W_H_INCLUDED_ #define _RTITOOL_W_H_INCLUDED_ #include "ui_rtitool.h" class QPushButton; class RTIToolW : public QDialog, public Ui::RTIToolW { Q_OBJECT public: RTIToolW(QWidget * parent = 0) : QDialog(parent) { setupUi(this); init(); } public slots: void sesclicked(bool); void accept(); private: void init(); }; #endif /* _RTITOOL_W_H_INCLUDED_ */ recoll-1.21.5/qtgui/advsearch_w.cpp0000644000175000017500000004141612602167237016521 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "advsearch_w.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #include "recoll.h" #include "rclconfig.h" #include "debuglog.h" #include "searchdata.h" #include "guiutils.h" #include "rclhelp.h" static const int initclausetypes[] = {1, 3, 0, 2, 5}; static const unsigned int iclausescnt = sizeof(initclausetypes) / sizeof(int); static map cat_translations; static map cat_rtranslations; void AdvSearch::init() { (void)new HelpClient(this); HelpClient::installMap((const char *)objectName().toUtf8(), "RCL.SEARCH.COMPLEX"); // signals and slots connections connect(delFiltypPB, SIGNAL(clicked()), this, SLOT(delFiltypPB_clicked())); connect(searchPB, SIGNAL(clicked()), this, SLOT(runSearch())); connect(filterDatesCB, SIGNAL(toggled(bool)), this, SLOT(filterDatesCB_toggled(bool))); connect(filterSizesCB, SIGNAL(toggled(bool)), this, SLOT(filterSizesCB_toggled(bool))); connect(restrictFtCB, SIGNAL(toggled(bool)), this, SLOT(restrictFtCB_toggled(bool))); connect(restrictCtCB, SIGNAL(toggled(bool)), this, SLOT(restrictCtCB_toggled(bool))); connect(dismissPB, SIGNAL(clicked()), this, SLOT(close())); connect(browsePB, SIGNAL(clicked()), this, SLOT(browsePB_clicked())); connect(addFiltypPB, SIGNAL(clicked()), this, SLOT(addFiltypPB_clicked())); connect(delAFiltypPB, SIGNAL(clicked()), this, SLOT(delAFiltypPB_clicked())); connect(addAFiltypPB, SIGNAL(clicked()), this, SLOT(addAFiltypPB_clicked())); connect(saveFileTypesPB, SIGNAL(clicked()), this, SLOT(saveFileTypes())); connect(addClausePB, SIGNAL(clicked()), this, SLOT(addClause())); connect(delClausePB, SIGNAL(clicked()), this, SLOT(delClause())); new QShortcut(QKeySequence(Qt::Key_Up), this, SLOT(slotHistoryNext()));; new QShortcut(QKeySequence(Qt::Key_Down), this, SLOT(slotHistoryPrev())); conjunctCMB->insertItem(1, tr("All clauses")); conjunctCMB->insertItem(2, tr("Any clause")); // Create preconfigured clauses for (unsigned int i = 0; i < iclausescnt; i++) { addClause(initclausetypes[i]); } // Tune initial state according to last saved { vector::iterator cit = m_clauseWins.begin(); for (vector::iterator it = prefs.advSearchClauses.begin(); it != prefs.advSearchClauses.end(); it++) { if (cit != m_clauseWins.end()) { (*cit)->tpChange(*it); cit++; } else { addClause(*it); } } } (*m_clauseWins.begin())->wordsLE->setFocus(); // Initialize min/max mtime from extrem values in the index int minyear, maxyear; if (rcldb) { rcldb->maxYearSpan(&minyear, &maxyear); minDateDTE->setDisplayFormat("yyyy-MM-dd"); maxDateDTE->setDisplayFormat("yyyy-MM-dd"); minDateDTE->setDate(QDate(minyear, 1, 1)); maxDateDTE->setDate(QDate(maxyear, 12, 31)); } // Initialize lists of accepted and ignored mime types from config // and settings m_ignTypes = prefs.asearchIgnFilTyps; m_ignByCats = prefs.fileTypesByCats; restrictCtCB->setEnabled(false); restrictCtCB->setChecked(m_ignByCats); fillFileTypes(); subtreeCMB->insertItems(0, prefs.asearchSubdirHist); subtreeCMB->setEditText(""); // The clauseline frame is needed to force designer to accept a // vbox to englobe the base clauses grid and 'something else' (the // vbox is so that we can then insert SearchClauseWs), but we // don't want to see it. clauseline->close(); bool calpop = 0; minDateDTE->setCalendarPopup(calpop); maxDateDTE->setCalendarPopup(calpop); // Translations for known categories cat_translations[QString::fromUtf8("texts")] = tr("text"); cat_rtranslations[tr("texts")] = QString::fromUtf8("text"); cat_translations[QString::fromUtf8("spreadsheet")] = tr("spreadsheet"); cat_rtranslations[tr("spreadsheets")] = QString::fromUtf8("spreadsheet"); cat_translations[QString::fromUtf8("presentation")] = tr("presentation"); cat_rtranslations[tr("presentation")] =QString::fromUtf8("presentation"); cat_translations[QString::fromUtf8("media")] = tr("media"); cat_rtranslations[tr("media")] = QString::fromUtf8("media"); cat_translations[QString::fromUtf8("message")] = tr("message"); cat_rtranslations[tr("message")] = QString::fromUtf8("message"); cat_translations[QString::fromUtf8("other")] = tr("other"); cat_rtranslations[tr("other")] = QString::fromUtf8("other"); } void AdvSearch::saveCnf() { // Save my state prefs.advSearchClauses.clear(); for (vector::iterator cit = m_clauseWins.begin(); cit != m_clauseWins.end(); cit++) { prefs.advSearchClauses.push_back((*cit)->sTpCMB->currentIndex()); } } bool AdvSearch::close() { saveCnf(); return QWidget::close(); } void AdvSearch::addClause() { addClause(0); } void AdvSearch::addClause(int tp) { SearchClauseW *w = new SearchClauseW(clauseFRM); m_clauseWins.push_back(w); ((QVBoxLayout *)(clauseFRM->layout()))->addWidget(w); w->show(); w->tpChange(tp); if (m_clauseWins.size() > iclausescnt) { delClausePB->setEnabled(true); } else { delClausePB->setEnabled(false); } } void AdvSearch::delClause() { if (m_clauseWins.size() <= iclausescnt) return; delete m_clauseWins.back(); m_clauseWins.pop_back(); if (m_clauseWins.size() > iclausescnt) { delClausePB->setEnabled(true); } else { delClausePB->setEnabled(false); } } void AdvSearch::delAFiltypPB_clicked() { yesFiltypsLB->selectAll(); delFiltypPB_clicked(); } // Move selected file types from the searched to the ignored box void AdvSearch::delFiltypPB_clicked() { QList items = yesFiltypsLB->selectedItems(); for (QList::iterator it = items.begin(); it != items.end(); it++) { int row = yesFiltypsLB->row(*it); QListWidgetItem *item = yesFiltypsLB->takeItem(row); noFiltypsLB->insertItem(0, item); } guiListsToIgnTypes(); } // Move selected file types from the ignored to the searched box void AdvSearch::addFiltypPB_clicked() { QList items = noFiltypsLB->selectedItems(); for (QList::iterator it = items.begin(); it != items.end(); it++) { int row = noFiltypsLB->row(*it); QListWidgetItem *item = noFiltypsLB->takeItem(row); yesFiltypsLB->insertItem(0, item); } guiListsToIgnTypes(); } // Compute list of ignored mime type from widget lists void AdvSearch::guiListsToIgnTypes() { yesFiltypsLB->sortItems(); noFiltypsLB->sortItems(); m_ignTypes.clear(); for (int i = 0; i < noFiltypsLB->count();i++) { QListWidgetItem *item = noFiltypsLB->item(i); m_ignTypes.append(item->text()); } } void AdvSearch::addAFiltypPB_clicked() { noFiltypsLB->selectAll(); addFiltypPB_clicked(); } // Activate file type selection void AdvSearch::restrictFtCB_toggled(bool on) { restrictCtCB->setEnabled(on); yesFiltypsLB->setEnabled(on); delFiltypPB->setEnabled(on); addFiltypPB->setEnabled(on); delAFiltypPB->setEnabled(on); addAFiltypPB->setEnabled(on); noFiltypsLB->setEnabled(on); saveFileTypesPB->setEnabled(on); } // Activate file type selection void AdvSearch::filterSizesCB_toggled(bool on) { minSizeLE->setEnabled(on); maxSizeLE->setEnabled(on); } // Activate file type selection void AdvSearch::filterDatesCB_toggled(bool on) { minDateDTE->setEnabled(on); maxDateDTE->setEnabled(on); } void AdvSearch::restrictCtCB_toggled(bool on) { m_ignByCats = on; // Only reset the list if we're enabled. Else this is init from prefs if (restrictCtCB->isEnabled()) m_ignTypes.clear(); fillFileTypes(); } void AdvSearch::fillFileTypes() { noFiltypsLB->clear(); yesFiltypsLB->clear(); noFiltypsLB->insertItems(0, m_ignTypes); QStringList ql; if (m_ignByCats == false) { vector types = theconfig->getAllMimeTypes(); rcldb->getAllDbMimeTypes(types); sort(types.begin(), types.end()); types.erase(unique(types.begin(), types.end()), types.end()); for (vector::iterator it = types.begin(); it != types.end(); it++) { QString qs = QString::fromUtf8(it->c_str()); if (m_ignTypes.indexOf(qs) < 0) ql.append(qs); } } else { vector cats; theconfig->getMimeCategories(cats); for (vector::const_iterator it = cats.begin(); it != cats.end(); it++) { map::const_iterator it1; QString cat; if ((it1 = cat_translations.find(QString::fromUtf8(it->c_str()))) != cat_translations.end()) { cat = it1->second; } else { cat = QString::fromUtf8(it->c_str()); } if (m_ignTypes.indexOf(cat) < 0) ql.append(cat); } } yesFiltypsLB->insertItems(0, ql); } // Save current set of ignored file types to prefs void AdvSearch::saveFileTypes() { prefs.asearchIgnFilTyps = m_ignTypes; prefs.fileTypesByCats = m_ignByCats; rwSettings(true); } void AdvSearch::browsePB_clicked() { QString dir = myGetFileName(true); subtreeCMB->setEditText(dir); } size_t AdvSearch::stringToSize(QString qsize) { size_t size = size_t(-1); qsize.replace(QRegExp("[\\s]+"), ""); if (!qsize.isEmpty()) { string csize(qs2utf8s(qsize)); char *cp; size = strtoll(csize.c_str(), &cp, 10); if (*cp != 0) { switch (*cp) { case 'k': case 'K': size *= 1E3;break; case 'm': case 'M': size *= 1E6;break; case 'g': case 'G': size *= 1E9;break; case 't': case 'T': size *= 1E12;break; default: QMessageBox::warning(0, "Recoll", tr("Bad multiplier suffix in size filter")); size = size_t(-1); } } } return size; } using namespace Rcl; void AdvSearch::runSearch() { string stemLang = prefs.stemlang(); RefCntr sdata(new SearchData(conjunctCMB->currentIndex() == 0 ? SCLT_AND : SCLT_OR, stemLang)); bool hasclause = false; for (vector::iterator it = m_clauseWins.begin(); it != m_clauseWins.end(); it++) { SearchDataClause *cl; if ((cl = (*it)->getClause())) { sdata->addClause(cl); hasclause = true; } } if (!hasclause) return; if (restrictFtCB->isChecked() && noFiltypsLB->count() > 0) { for (int i = 0; i < yesFiltypsLB->count(); i++) { if (restrictCtCB->isChecked()) { QString qcat = yesFiltypsLB->item(i)->text(); map::const_iterator qit; string cat; if ((qit = cat_rtranslations.find(qcat)) != cat_rtranslations.end()) { cat = qs2utf8s(qit->second); } else { cat = qs2utf8s(qcat); } vector types; theconfig->getMimeCatTypes(cat, types); for (vector::const_iterator it = types.begin(); it != types.end(); it++) { sdata->addFiletype(*it); } } else { sdata->addFiletype(qs2utf8s(yesFiltypsLB->item(i)->text())); } } } if (filterDatesCB->isChecked()) { QDate mindate = minDateDTE->date(); QDate maxdate = maxDateDTE->date(); DateInterval di; di.y1 = mindate.year(); di.m1 = mindate.month(); di.d1 = mindate.day(); di.y2 = maxdate.year(); di.m2 = maxdate.month(); di.d2 = maxdate.day(); sdata->setDateSpan(&di); } if (filterSizesCB->isChecked()) { size_t size = stringToSize(minSizeLE->text()); sdata->setMinSize(size); size = stringToSize(maxSizeLE->text()); sdata->setMaxSize(size); } if (!subtreeCMB->currentText().isEmpty()) { QString current = subtreeCMB->currentText(); Rcl::SearchDataClausePath *pathclause = new Rcl::SearchDataClausePath((const char*)current.toLocal8Bit(), direxclCB->isChecked()); if (sdata->getTp() == SCLT_AND) { sdata->addClause(pathclause); } else { RefCntr nsdata(new SearchData(SCLT_AND, stemLang)); nsdata->addClause(new Rcl::SearchDataClauseSub(sdata)); nsdata->addClause(pathclause); sdata = nsdata; } // Keep history clean and sorted. Maybe there would be a // simpler way to do this list entries; for (int i = 0; i < subtreeCMB->count(); i++) { entries.push_back(subtreeCMB->itemText(i)); } entries.push_back(subtreeCMB->currentText()); entries.sort(); entries.unique(); LOGDEB(("Subtree list now has %d entries\n", entries.size())); subtreeCMB->clear(); for (list::iterator it = entries.begin(); it != entries.end(); it++) { subtreeCMB->addItem(*it); } subtreeCMB->setCurrentIndex(subtreeCMB->findText(current)); prefs.asearchSubdirHist.clear(); for (int index = 0; index < subtreeCMB->count(); index++) prefs.asearchSubdirHist.push_back(subtreeCMB->itemText(index)); } saveCnf(); g_advshistory && g_advshistory->push(sdata); emit startSearch(sdata, false); } // Set up fields from existing search data, which must be compatible // with what we can do... void AdvSearch::fromSearch(RefCntr sdata) { if (sdata->m_tp == SCLT_OR) conjunctCMB->setCurrentIndex(1); else conjunctCMB->setCurrentIndex(0); while (sdata->m_query.size() > m_clauseWins.size()) { addClause(); } subtreeCMB->setEditText(""); direxclCB->setChecked(0); for (unsigned int i = 0; i < sdata->m_query.size(); i++) { // Set fields from clause if (sdata->m_query[i]->getTp() == SCLT_SUB) { LOGERR(("AdvSearch::fromSearch: SUB clause found !\n")); continue; } if (sdata->m_query[i]->getTp() == SCLT_PATH) { SearchDataClausePath *cs = dynamic_cast(sdata->m_query[i]); // We can only use one such clause. There should be only one too // if this is sfrom aved search data. QString qdir = QString::fromLocal8Bit(cs->gettext().c_str()); subtreeCMB->setEditText(qdir); direxclCB->setChecked(cs->getexclude()); continue; } SearchDataClauseSimple *cs = dynamic_cast(sdata->m_query[i]); m_clauseWins[i]->setFromClause(cs); } for (unsigned int i = sdata->m_query.size(); i < m_clauseWins.size(); i++) { m_clauseWins[i]->clear(); } restrictCtCB->setChecked(0); if (!sdata->m_filetypes.empty()) { restrictFtCB_toggled(1); delAFiltypPB_clicked(); for (unsigned int i = 0; i < sdata->m_filetypes.size(); i++) { QString ft = QString::fromUtf8(sdata->m_filetypes[i].c_str()); QList lst = noFiltypsLB->findItems(ft, Qt::MatchExactly); if (!lst.isEmpty()) { int row = noFiltypsLB->row(lst[0]); QListWidgetItem *item = noFiltypsLB->takeItem(row); yesFiltypsLB->insertItem(0, item); } } yesFiltypsLB->sortItems(); } else { addAFiltypPB_clicked(); restrictFtCB_toggled(0); } if (sdata->m_haveDates) { filterDatesCB->setChecked(1); DateInterval &di(sdata->m_dates); QDate mindate(di.y1, di.m1, di.d1); QDate maxdate(di.y2, di.m2, di.d2); minDateDTE->setDate(mindate); maxDateDTE->setDate(maxdate); } else { filterDatesCB->setChecked(0); QDate date; minDateDTE->setDate(date); maxDateDTE->setDate(date); } if (sdata->m_maxSize != (size_t)-1 || sdata->m_minSize != (size_t)-1) { filterSizesCB->setChecked(1); QString sz; if (sdata->m_minSize != (size_t)-1) { sz.setNum(sdata->m_minSize); minSizeLE->setText(sz); } else { minSizeLE->setText(""); } if (sdata->m_maxSize != (size_t)-1) { sz.setNum(sdata->m_maxSize); maxSizeLE->setText(sz); } else { maxSizeLE->setText(""); } } else { filterSizesCB->setChecked(0); minSizeLE->setText(""); maxSizeLE->setText(""); } } void AdvSearch::slotHistoryNext() { if (g_advshistory == 0) return; RefCntr sd = g_advshistory->getnewer(); if (sd.isNull()) return; fromSearch(sd); } void AdvSearch::slotHistoryPrev() { if (g_advshistory == 0) return; RefCntr sd = g_advshistory->getolder(); if (sd.isNull()) return; fromSearch(sd); } recoll-1.21.5/qtgui/ui_rclmain.h-4.50000644000175000017500000003411612602163537016324 0ustar dockesdockes/******************************************************************************** ** Form generated from reading ui file 'rclmain.ui' ** ** Created: Mon Jan 25 20:45:26 2010 ** by: Qt User Interface Compiler version 4.4.0 ** ** WARNING! All changes made in this file will be lost when recompiling ui file! ********************************************************************************/ #ifndef UI_RCLMAIN_H #define UI_RCLMAIN_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include "reslist.h" #include "ssearch_w.h" QT_BEGIN_NAMESPACE class Ui_RclMainBase { public: QAction *fileExitAction; QAction *fileToggleIndexingAction; QAction *fileEraseDocHistoryAction; QAction *showMissingHelpers_Action; QAction *helpAbout_RecollAction; QAction *userManualAction; QAction *toolsDoc_HistoryAction; QAction *toolsAdvanced_SearchAction; QAction *toolsSort_parametersAction; QAction *toolsSpellAction; QAction *nextPageAction; QAction *firstPageAction; QAction *prevPageAction; QAction *indexConfigAction; QAction *queryPrefsAction; QAction *extIdxAction; QWidget *widget; QVBoxLayout *vboxLayout; QVBoxLayout *vboxLayout1; SSearch *sSearch; Q3ButtonGroup *catgBGRP; QRadioButton *allRDB; ResList *resList; Q3ToolBar *Toolbar; Q3ToolBar *Toolbar1; QMenuBar *MenuBar; QMenu *fileMenu; QMenu *toolsMenu; QMenu *preferencesMenu; QMenu *helpMenu; void setupUi(Q3MainWindow *RclMainBase) { if (RclMainBase->objectName().isEmpty()) RclMainBase->setObjectName(QString::fromUtf8("RclMainBase")); RclMainBase->resize(800, 600); QSizePolicy sizePolicy(static_cast(5), static_cast(5)); sizePolicy.setHorizontalStretch(0); sizePolicy.setVerticalStretch(0); sizePolicy.setHeightForWidth(RclMainBase->sizePolicy().hasHeightForWidth()); RclMainBase->setSizePolicy(sizePolicy); fileExitAction = new QAction(RclMainBase); fileExitAction->setObjectName(QString::fromUtf8("fileExitAction")); fileExitAction->setName("fileExitAction"); fileToggleIndexingAction = new QAction(RclMainBase); fileToggleIndexingAction->setObjectName(QString::fromUtf8("fileToggleIndexingAction")); fileToggleIndexingAction->setName("fileToggleIndexingAction"); fileEraseDocHistoryAction = new QAction(RclMainBase); fileEraseDocHistoryAction->setObjectName(QString::fromUtf8("fileEraseDocHistoryAction")); fileEraseDocHistoryAction->setName("fileEraseDocHistoryAction"); showMissingHelpers_Action = new QAction(RclMainBase); showMissingHelpers_Action->setObjectName(QString::fromUtf8("showMissingHelpers_Action")); showMissingHelpers_Action->setName("showMissingHelpers_Action"); helpAbout_RecollAction = new QAction(RclMainBase); helpAbout_RecollAction->setObjectName(QString::fromUtf8("helpAbout_RecollAction")); helpAbout_RecollAction->setName("helpAbout_RecollAction"); userManualAction = new QAction(RclMainBase); userManualAction->setObjectName(QString::fromUtf8("userManualAction")); userManualAction->setName("userManualAction"); toolsDoc_HistoryAction = new QAction(RclMainBase); toolsDoc_HistoryAction->setObjectName(QString::fromUtf8("toolsDoc_HistoryAction")); toolsDoc_HistoryAction->setName("toolsDoc_HistoryAction"); toolsAdvanced_SearchAction = new QAction(RclMainBase); toolsAdvanced_SearchAction->setObjectName(QString::fromUtf8("toolsAdvanced_SearchAction")); toolsAdvanced_SearchAction->setName("toolsAdvanced_SearchAction"); toolsSort_parametersAction = new QAction(RclMainBase); toolsSort_parametersAction->setObjectName(QString::fromUtf8("toolsSort_parametersAction")); toolsSort_parametersAction->setName("toolsSort_parametersAction"); toolsSpellAction = new QAction(RclMainBase); toolsSpellAction->setObjectName(QString::fromUtf8("toolsSpellAction")); toolsSpellAction->setName("toolsSpellAction"); nextPageAction = new QAction(RclMainBase); nextPageAction->setObjectName(QString::fromUtf8("nextPageAction")); nextPageAction->setName("nextPageAction"); nextPageAction->setEnabled(false); firstPageAction = new QAction(RclMainBase); firstPageAction->setObjectName(QString::fromUtf8("firstPageAction")); firstPageAction->setName("firstPageAction"); firstPageAction->setEnabled(false); prevPageAction = new QAction(RclMainBase); prevPageAction->setObjectName(QString::fromUtf8("prevPageAction")); prevPageAction->setName("prevPageAction"); prevPageAction->setEnabled(false); indexConfigAction = new QAction(RclMainBase); indexConfigAction->setObjectName(QString::fromUtf8("indexConfigAction")); indexConfigAction->setName("indexConfigAction"); queryPrefsAction = new QAction(RclMainBase); queryPrefsAction->setObjectName(QString::fromUtf8("queryPrefsAction")); queryPrefsAction->setName("queryPrefsAction"); extIdxAction = new QAction(RclMainBase); extIdxAction->setObjectName(QString::fromUtf8("extIdxAction")); extIdxAction->setName("extIdxAction"); widget = new QWidget(RclMainBase); widget->setObjectName(QString::fromUtf8("widget")); vboxLayout = new QVBoxLayout(widget); vboxLayout->setSpacing(2); vboxLayout->setMargin(4); vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); vboxLayout->setContentsMargins(0, 0, 0, 0); vboxLayout1 = new QVBoxLayout(); vboxLayout1->setSpacing(2); vboxLayout1->setMargin(2); vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); sSearch = new SSearch(widget); sSearch->setObjectName(QString::fromUtf8("sSearch")); QSizePolicy sizePolicy1(static_cast(7), static_cast(0)); sizePolicy1.setHorizontalStretch(0); sizePolicy1.setVerticalStretch(0); sizePolicy1.setHeightForWidth(sSearch->sizePolicy().hasHeightForWidth()); sSearch->setSizePolicy(sizePolicy1); vboxLayout1->addWidget(sSearch); catgBGRP = new Q3ButtonGroup(widget); catgBGRP->setObjectName(QString::fromUtf8("catgBGRP")); QSizePolicy sizePolicy2(static_cast(5), static_cast(0)); sizePolicy2.setHorizontalStretch(0); sizePolicy2.setVerticalStretch(0); sizePolicy2.setHeightForWidth(catgBGRP->sizePolicy().hasHeightForWidth()); catgBGRP->setSizePolicy(sizePolicy2); catgBGRP->setFrameShape(Q3GroupBox::GroupBoxPanel); catgBGRP->setFrameShadow(Q3GroupBox::Sunken); catgBGRP->setProperty("selectedId", QVariant(0)); allRDB = new QRadioButton(catgBGRP); allRDB->setObjectName(QString::fromUtf8("allRDB")); vboxLayout1->addWidget(catgBGRP); resList = new ResList(widget); resList->setObjectName(QString::fromUtf8("resList")); QSizePolicy sizePolicy3(static_cast(5), static_cast(5)); sizePolicy3.setHorizontalStretch(2); sizePolicy3.setVerticalStretch(0); sizePolicy3.setHeightForWidth(resList->sizePolicy().hasHeightForWidth()); resList->setSizePolicy(sizePolicy3); vboxLayout1->addWidget(resList); vboxLayout->addLayout(vboxLayout1); RclMainBase->setCentralWidget(widget); Toolbar = new Q3ToolBar(RclMainBase); Toolbar->setObjectName(QString::fromUtf8("Toolbar")); Toolbar1 = new Q3ToolBar(RclMainBase); Toolbar1->setObjectName(QString::fromUtf8("Toolbar1")); MenuBar = new QMenuBar(RclMainBase); MenuBar->setObjectName(QString::fromUtf8("MenuBar")); fileMenu = new QMenu(MenuBar); fileMenu->setObjectName(QString::fromUtf8("fileMenu")); toolsMenu = new QMenu(MenuBar); toolsMenu->setObjectName(QString::fromUtf8("toolsMenu")); preferencesMenu = new QMenu(MenuBar); preferencesMenu->setObjectName(QString::fromUtf8("preferencesMenu")); helpMenu = new QMenu(MenuBar); helpMenu->setObjectName(QString::fromUtf8("helpMenu")); Toolbar->addAction(toolsAdvanced_SearchAction); Toolbar->addAction(toolsSort_parametersAction); Toolbar->addAction(toolsDoc_HistoryAction); Toolbar->addAction(toolsSpellAction); Toolbar1->addAction(firstPageAction); Toolbar1->addAction(prevPageAction); Toolbar1->addAction(nextPageAction); MenuBar->addAction(fileMenu->menuAction()); MenuBar->addAction(toolsMenu->menuAction()); MenuBar->addAction(preferencesMenu->menuAction()); MenuBar->addSeparator(); MenuBar->addAction(helpMenu->menuAction()); fileMenu->addAction(fileToggleIndexingAction); fileMenu->addSeparator(); fileMenu->addAction(fileEraseDocHistoryAction); fileMenu->addAction(showMissingHelpers_Action); fileMenu->addSeparator(); fileMenu->addAction(fileExitAction); toolsMenu->addAction(toolsDoc_HistoryAction); toolsMenu->addAction(toolsAdvanced_SearchAction); toolsMenu->addAction(toolsSort_parametersAction); toolsMenu->addAction(toolsSpellAction); preferencesMenu->addAction(indexConfigAction); preferencesMenu->addSeparator(); preferencesMenu->addAction(queryPrefsAction); preferencesMenu->addAction(extIdxAction); preferencesMenu->addSeparator(); helpMenu->addAction(userManualAction); helpMenu->addAction(showMissingHelpers_Action); helpMenu->addSeparator(); helpMenu->addAction(helpAbout_RecollAction); retranslateUi(RclMainBase); QMetaObject::connectSlotsByName(RclMainBase); } // setupUi void retranslateUi(Q3MainWindow *RclMainBase) { RclMainBase->setWindowTitle(QApplication::translate("RclMainBase", "Recoll", 0, QApplication::UnicodeUTF8)); fileExitAction->setText(QApplication::translate("RclMainBase", "E&xit", 0, QApplication::UnicodeUTF8)); fileExitAction->setShortcut(QApplication::translate("RclMainBase", "Ctrl+Q", 0, QApplication::UnicodeUTF8)); fileToggleIndexingAction->setText(QApplication::translate("RclMainBase", "Update &index", 0, QApplication::UnicodeUTF8)); fileEraseDocHistoryAction->setText(QApplication::translate("RclMainBase", "&Erase document history", 0, QApplication::UnicodeUTF8)); showMissingHelpers_Action->setText(QApplication::translate("RclMainBase", "&Show missing helpers", 0, QApplication::UnicodeUTF8)); helpAbout_RecollAction->setText(QApplication::translate("RclMainBase", "&About Recoll", 0, QApplication::UnicodeUTF8)); userManualAction->setText(QApplication::translate("RclMainBase", "&User manual", 0, QApplication::UnicodeUTF8)); toolsDoc_HistoryAction->setText(QApplication::translate("RclMainBase", "Document &History", 0, QApplication::UnicodeUTF8)); #ifndef QT_NO_TOOLTIP toolsDoc_HistoryAction->setToolTip(QApplication::translate("RclMainBase", "Document History", 0, QApplication::UnicodeUTF8)); #endif // QT_NO_TOOLTIP toolsAdvanced_SearchAction->setText(QApplication::translate("RclMainBase", "&Advanced Search", 0, QApplication::UnicodeUTF8)); #ifndef QT_NO_TOOLTIP toolsAdvanced_SearchAction->setToolTip(QApplication::translate("RclMainBase", "Advanced/complex Search", 0, QApplication::UnicodeUTF8)); #endif // QT_NO_TOOLTIP toolsSort_parametersAction->setText(QApplication::translate("RclMainBase", "&Sort parameters", 0, QApplication::UnicodeUTF8)); #ifndef QT_NO_TOOLTIP toolsSort_parametersAction->setToolTip(QApplication::translate("RclMainBase", "Sort parameters", 0, QApplication::UnicodeUTF8)); #endif // QT_NO_TOOLTIP toolsSpellAction->setText(QApplication::translate("RclMainBase", "Term &explorer", 0, QApplication::UnicodeUTF8)); #ifndef QT_NO_TOOLTIP toolsSpellAction->setToolTip(QApplication::translate("RclMainBase", "Term explorer tool", 0, QApplication::UnicodeUTF8)); #endif // QT_NO_TOOLTIP nextPageAction->setIconText(QApplication::translate("RclMainBase", "Next page", 0, QApplication::UnicodeUTF8)); #ifndef QT_NO_TOOLTIP nextPageAction->setToolTip(QApplication::translate("RclMainBase", "Next page of results", 0, QApplication::UnicodeUTF8)); #endif // QT_NO_TOOLTIP firstPageAction->setIconText(QApplication::translate("RclMainBase", "First page", 0, QApplication::UnicodeUTF8)); #ifndef QT_NO_TOOLTIP firstPageAction->setToolTip(QApplication::translate("RclMainBase", "Go to first page of results", 0, QApplication::UnicodeUTF8)); #endif // QT_NO_TOOLTIP prevPageAction->setIconText(QApplication::translate("RclMainBase", "Previous page", 0, QApplication::UnicodeUTF8)); #ifndef QT_NO_TOOLTIP prevPageAction->setToolTip(QApplication::translate("RclMainBase", "Previous page of results", 0, QApplication::UnicodeUTF8)); #endif // QT_NO_TOOLTIP indexConfigAction->setText(QApplication::translate("RclMainBase", "&Indexing configuration", 0, QApplication::UnicodeUTF8)); queryPrefsAction->setText(QApplication::translate("RclMainBase", "&Query configuration", 0, QApplication::UnicodeUTF8)); extIdxAction->setIconText(QApplication::translate("RclMainBase", "External index dialog", 0, QApplication::UnicodeUTF8)); extIdxAction->setText(QApplication::translate("RclMainBase", "External index dialog", 0, QApplication::UnicodeUTF8)); catgBGRP->setTitle(QString()); allRDB->setText(QApplication::translate("RclMainBase", "All", 0, QApplication::UnicodeUTF8)); Toolbar->setLabel(QApplication::translate("RclMainBase", "Search tools", 0, QApplication::UnicodeUTF8)); Toolbar1->setLabel(QApplication::translate("RclMainBase", "Result list", 0, QApplication::UnicodeUTF8)); fileMenu->setTitle(QApplication::translate("RclMainBase", "&File", 0, QApplication::UnicodeUTF8)); toolsMenu->setTitle(QApplication::translate("RclMainBase", "&Tools", 0, QApplication::UnicodeUTF8)); preferencesMenu->setTitle(QApplication::translate("RclMainBase", "&Preferences", 0, QApplication::UnicodeUTF8)); helpMenu->setTitle(QApplication::translate("RclMainBase", "&Help", 0, QApplication::UnicodeUTF8)); } // retranslateUi }; namespace Ui { class RclMainBase: public Ui_RclMainBase {}; } // namespace Ui QT_END_NAMESPACE #endif // UI_RCLMAIN_H recoll-1.21.5/qtgui/rclmain.ui0000644000175000017500000003644012603155721015510 0ustar dockesdockes RclMainBase 0 0 800 600 0 0 Recoll 0 4 2 4 2 0 0 2 0 0 0 800 25 &File &Tools &Preferences &Help &Results E&xit Ctrl+Q fileExitAction Update &index fileToggleIndexingAction &Rebuild index fileRebuildIndexAction &Erase document history fileEraseDocHistoryAction &Erase search history fileEraseSearchHistoryAction &Show missing helpers showMissingHelpers_Action &Show indexed types showActiveTypes_Action &About Recoll helpAbout_RecollAction &User manual userManualAction :/images/history.png:/images/history.png Document &History Document History toolsDoc_HistoryAction :/images/asearch.png:/images/asearch.png &Advanced Search Advanced/complex Search toolsAdvanced_SearchAction &Sort parameters Sort parameters toolsSort_parametersAction :/images/spell.png:/images/spell.png Term &explorer Term explorer tool toolsSpellAction false :/images/nextpage.png:/images/nextpage.png Next page Next page of results PgDown nextPageAction false :/images/firstpage.png:/images/firstpage.png First page Go to first page of results Shift+PgUp firstPageAction false :/images/prevpage.png:/images/prevpage.png Previous page Previous page of results PgUp prevPageAction &Index configuration indexConfigAction &Indexing schedule indexScheduleAction &GUI configuration queryPrefsAction E&xternal index dialog External index dialog extIdxAction &Full Screen Full Screen F11 toggleFullScreenAction true false :/images/up.png:/images/up.png Sort by date, oldest first Sort by dates from oldest to newest true false :/images/down.png:/images/down.png Sort by date, newest first Sort by dates from newest to oldest Show Query Details true :/images/table.png:/images/table.png Show as table Show results in a spreadsheet-like table Save as CSV (spreadsheet) file Saves the result into a file which you can load in a spreadsheet Next Page Previous Page First Page :/images/code-block.png:/images/code-block.png Query Fragments true With failed files retrying Next update will retry previously failed files fileToggleIndexingAction Save last query Load saved query Special Indexing Indexing with special options SSearch QWidget

ssearch_w.h
ResList QWidget
reslist.h
ssearch_w.h reslist.h recoll-1.21.5/INSTALL0000644000175000017500000016160412652665303013433 0ustar dockesdockes More documentation can be found in the doc/ directory or at http://www.recoll.org Link: home: Recoll user manual Link: up: Recoll user manual Link: prev: 4.3. API Link: next: 5.2. Supporting packages Chapter 5. Installation and configuration Prev Next ---------------------------------------------------------------------- Chapter 5. Installation and configuration 5.1. Installing a binary copy Recoll binary copies are always distributed as regular packages for your system. They can be obtained either through the system's normal software distribution framework (e.g. Debian/Ubuntu apt, FreeBSD ports, etc.), or from some type of "backports" repository providing versions newer than the standard ones, or found on the Recoll WEB site in some cases. There used to exist another form of binary install, as pre-compiled source trees, but these are just less convenient than the packages and don't exist any more. The package management tools will usually automatically deal with hard dependancies for packages obtained from a proper package repository. You will have to deal with them by hand for downloaded packages (for example, when dpkg complains about missing dependancies). In all cases, you will have to check or install supporting applications for the file types that you want to index beyond those that are natively processed by Recoll (text, HTML, email files, and a few others). You should also maybe have a look at the configuration section (but this may not be necessary for a quick test with default parameters). Most parameters can be more conveniently set from the GUI interface. ---------------------------------------------------------------------- Prev Next 4.3. API Home 5.2. Supporting packages Link: home: Recoll user manual Link: up: Chapter 5. Installation and configuration Link: prev: Chapter 5. Installation and configuration Link: next: 5.3. Building from source 5.2. Supporting packages Prev Chapter 5. Installation and configuration Next ---------------------------------------------------------------------- 5.2. Supporting packages Recoll uses external applications to index some file types. You need to install them for the file types that you wish to have indexed (these are run-time optional dependencies. None is needed for building or running Recoll except for indexing their specific file type). After an indexing pass, the commands that were found missing can be displayed from the recoll File menu. The list is stored in the missing text file inside the configuration directory. A list of common file types which need external commands follows. Many of the handlers need the iconv command, which is not always listed as a dependancy. Please note that, due to the relatively dynamic nature of this information, the most up to date version is now kept on http://www.recoll.org/features.html along with links to the home pages or best source/patches pages, and misc tips. The list below is not updated often and may be quite stale. For many Linux distributions, most of the commands listed can be installed from the package repositories. However, the packages are sometimes outdated, or not the best version for Recoll, so you should take a look at http://www.recoll.org/features.html if a file type is important to you. As of Recoll release 1.14, a number of XML-based formats that were handled by ad hoc handler code now use the xsltproc command, which usually comes with libxslt. These are: abiword, fb2 (ebooks), kword, openoffice, svg. Now for the list: o Openoffice files need unzip and xsltproc. o PDF files need pdftotext which is part of Poppler (usually comes with the poppler-utils package). Avoid the original one from Xpdf. o Postscript files need pstotext. The original version has an issue with shell character in file names, which is corrected in recent packages. See http://www.recoll.org/features.html for more detail. o MS Word needs antiword. It is also useful to have wvWare installed as it may be be used as a fallback for some files which antiword does not handle. o MS Excel and PowerPoint are processed by internal Python handlers. o MS Open XML (docx) needs xsltproc. o Wordperfect files need wpd2html from the libwpd (or libwpd-tools on Ubuntu) package. o RTF files need unrtf, which, in its older versions, has much trouble with non-western character sets. Many Linux distributions carry outdated unrtf versions. Check http://www.recoll.org/features.html for details. o TeX files need untex or detex. Check http://www.recoll.org/features.html for sources if it's not packaged for your distribution. o dvi files need dvips. o djvu files need djvutxt and djvused from the DjVuLibre package. o Audio files: Recoll releases 1.14 and later use a single Python handler based on mutagen for all audio file types. o Pictures: Recoll uses the Exiftool Perl package to extract tag information. Most image file formats are supported. Note that there may not be much interest in indexing the technical tags (image size, aperture, etc.). This is only of interest if you store personal tags or textual descriptions inside the image files. o chm: files in Microsoft help format need Python and the pychm module (which needs chmlib). o ICS: up to Recoll 1.13, iCalendar files need Python and the icalendar module. icalendar is not needed for newer versions, which use internal code. o Zip archives need Python (and the standard zipfile module). o Rar archives need Python, the rarfile Python module and the unrar utility. o Midi karaoke files need Python and the Midi module o Konqueror webarchive format with Python (uses the Tarfile module). o Mimehtml web archive format (support based on the email handler, which introduces some mild weirdness, but still usable). Text, HTML, email folders, and Scribus files are processed internally. Lyx is used to index Lyx files. Many handlers need iconv and the standard sed and awk. ---------------------------------------------------------------------- Prev Up Next Chapter 5. Installation and configuration Home 5.3. Building from source Link: home: Recoll user manual Link: up: Chapter 5. Installation and configuration Link: prev: 5.2. Supporting packages Link: next: 5.4. Configuration overview 5.3. Building from source Prev Chapter 5. Installation and configuration Next ---------------------------------------------------------------------- 5.3. Building from source 5.3.1. Prerequisites If you can install any or all of the following through the package manager for your system, all the better. Especially Qt is a very big piece of software, but you will most probably be able to find a binary package. You may have to compile Xapian but this is easy. The shopping list: o C++ compiler. Up to Recoll version 1.13.04, its absence can manifest itself by strange messages about a missing iconv_open. o Development files for Xapian core. Important If you are building Xapian for an older CPU (before Pentium 4 or Athlon 64), you need to add the --disable-sse flag to the configure command. Else all Xapian application will crash with an illegal instruction error. o Development files for Qt 4 . Recoll has not been tested with Qt 5 yet. Recoll 1.15.9 was the last version to support Qt 3. If you do not want to install or build the Qt Webkit module, Recoll has a configuration option to disable its use (see further). o Development files for X11 and zlib. o You may also need libiconv. On Linux systems, the iconv interface is part of libc and you should not need to do anything special. Check the Recoll download page for up to date version information. 5.3.2. Building Recoll has been built on Linux, FreeBSD, Mac OS X, and Solaris, most versions after 2005 should be ok, maybe some older ones too (Solaris 8 is ok). If you build on another system, and need to modify things, I would very much welcome patches. Configure options: o --without-aspell will disable the code for phonetic matching of search terms. o --with-fam or --with-inotify will enable the code for real time indexing. Inotify support is enabled by default on recent Linux systems. o --with-qzeitgeist will enable sending Zeitgeist events about the visited search results, and needs the qzeitgeist package. o --disable-webkit is available from version 1.17 to implement the result list with a Qt QTextBrowser instead of a WebKit widget if you do not or can't depend on the latter. o --disable-idxthreads is available from version 1.19 to suppress multithreading inside the indexing process. You can also use the run-time configuration to restrict recollindex to using a single thread, but the compile-time option may disable a few more unused locks. This only applies to the use of multithreading for the core index processing (data input). The Recoll monitor mode always uses at least two threads of execution. o --disable-python-module will avoid building the Python module. o --disable-xattr will prevent fetching data from file extended attributes. Beyond a few standard attributes, fetching extended attributes data can only be useful is some application stores data in there, and also needs some simple configuration (see comments in the fields configuration file). o --enable-camelcase will enable splitting camelCase words. This is not enabled by default as it has the unfortunate side-effect of making some phrase searches quite confusing: ie, "MySQL manual" would be matched by "MySQL manual" and "my sql manual" but not "mysql manual" (only inside phrase searches). o --with-file-command Specify the version of the 'file' command to use (ie: --with-file-command=/usr/local/bin/file). Can be useful to enable the gnu version on systems where the native one is bad. o --disable-qtgui Disable the Qt interface. Will allow building the indexer and the command line search program in absence of a Qt environment. o --disable-x11mon Disable X11 connection monitoring inside recollindex. Together with --disable-qtgui, this allows building recoll without Qt and X11. o --disable-pic will compile Recoll with position-dependant code. This is incompatible with building the KIO or the Python or PHP extensions, but might yield very marginally faster code. o Of course the usual autoconf configure options, like --prefix apply. Normal procedure: cd recoll-xxx ./configure make (practices usual hardship-repelling invocations) There is little auto-configuration. The configure script will mainly link one of the system-specific files in the mk directory to mk/sysconf. If your system is not known yet, it will tell you as much, and you may want to manually copy and modify one of the existing files (the new file name should be the output of uname -s). 5.3.2.1. Building on Solaris We did not test building the GUI on Solaris for recent versions. You will need at least Qt 4.4. There are some hints on an old web site page, they may still be valid. Someone did test the 1.19 indexer and Python module build, they do work, with a few minor glitches. Be sure to use GNU make and install. 5.3.3. Installation Either type make install or execute recollinstall prefix, in the root of the source tree. This will copy the commands to prefix/bin and the sample configuration files, scripts and other shared data to prefix/share/recoll. If the installation prefix given to recollinstall is different from either the system default or the value which was specified when executing configure (as in configure --prefix /some/path), you will have to set the RECOLL_DATADIR environment variable to indicate where the shared data is to be found (ie for (ba)sh: export RECOLL_DATADIR=/some/path/share/recoll). You can then proceed to configuration. ---------------------------------------------------------------------- Prev Up Next 5.2. Supporting packages Home 5.4. Configuration overview Link: home: Recoll user manual Link: up: Chapter 5. Installation and configuration Link: prev: 5.3. Building from source 5.4. Configuration overview Prev Chapter 5. Installation and configuration ---------------------------------------------------------------------- 5.4. Configuration overview Most of the parameters specific to the recoll GUI are set through the Preferences menu and stored in the standard Qt place ($HOME/.config/Recoll.org/recoll.conf). You probably do not want to edit this by hand. Recoll indexing options are set inside text configuration files located in a configuration directory. There can be several such directories, each of which defines the parameters for one index. The configuration files can be edited by hand or through the Index configuration dialog (Preferences menu). The GUI tool will try to respect your formatting and comments as much as possible, so it is quite possible to use both ways. The most accurate documentation for the configuration parameters is given by comments inside the default files, and we will just give a general overview here. By default, for each index, there are two sets of configuration files. System-wide configuration files are kept in a directory named like /usr/[local/]share/recoll/examples, and define default values, shared by all indexes. For each index, a parallel set of files defines the customized parameters. In addition (as of Recoll version 1.19.7), it is possible to specify two additional configuration directories which will be stacked before and after the user configuration directory. These are defined by the RECOLL_CONFTOP and RECOLL_CONFMID environment variables. Values from configuration files inside the top directory will override user ones, values from configuration files inside the middle directory will override system ones and be overriden by user ones. These two variables may be of use to applications which augment Recoll functionality, and need to add configuration data without disturbing the user's files. Please note that the two, currently single, values will probably be interpreted as colon-separated lists in the future: do not use colon characters inside the directory paths. The default location of the configuration is the .recoll directory in your home. Most people will only use this directory. This location can be changed, or others can be added with the RECOLL_CONFDIR environment variable or the -c option parameter to recoll and recollindex. If the .recoll directory does not exist when recoll or recollindex are started, it will be created with a set of empty configuration files. recoll will give you a chance to edit the configuration file before starting indexing. recollindex will proceed immediately. To avoid mistakes, the automatic directory creation will only occur for the default location, not if -c or RECOLL_CONFDIR were used (in the latter cases, you will have to create the directory). All configuration files share the same format. For example, a short extract of the main configuration file might look as follows: # Space-separated list of directories to index. topdirs = ~/docs /usr/share/doc [~/somedirectory-with-utf8-txt-files] defaultcharset = utf-8 There are three kinds of lines: o Comment (starts with #) or empty. o Parameter affectation (name = value). o Section definition ([somedirname]). Depending on the type of configuration file, section definitions either separate groups of parameters or allow redefining some parameters for a directory sub-tree. They stay in effect until another section definition, or the end of file, is encountered. Some of the parameters used for indexing are looked up hierarchically from the current directory location upwards. Not all parameters can be meaningfully redefined, this is specified for each in the next section. When found at the beginning of a file path, the tilde character (~) is expanded to the name of the user's home directory, as a shell would do. White space is used for separation inside lists. List elements with embedded spaces can be quoted using double-quotes. Encoding issues. Most of the configuration parameters are plain ASCII. Two particular sets of values may cause encoding issues: o File path parameters may contain non-ascii characters and should use the exact same byte values as found in the file system directory. Usually, this means that the configuration file should use the system default locale encoding. o The unac_except_trans parameter should be encoded in UTF-8. If your system locale is not UTF-8, and you need to also specify non-ascii file paths, this poses a difficulty because common text editors cannot handle multiple encodings in a single file. In this relatively unlikely case, you can edit the configuration file as two separate text files with appropriate encodings, and concatenate them to create the complete configuration. 5.4.1. Environment variables RECOLL_CONFDIR Defines the main configuration directory. RECOLL_TMPDIR, TMPDIR Locations for temporary files, in this order of priority. The default if none of these is set is to use /tmp. Big temporary files may be created during indexing, mostly for decompressing, and also for processing, e.g. email attachments. RECOLL_CONFTOP, RECOLL_CONFMID Allow adding configuration directories with priorities below and above the user directory (see above the Configuration overview section for details). RECOLL_EXTRA_DBS, RECOLL_ACTIVE_EXTRA_DBS Help for setting up external indexes. See this paragraph for explanations. RECOLL_DATADIR Defines replacement for the default location of Recoll data files, normally found in, e.g., /usr/share/recoll). RECOLL_FILTERSDIR Defines replacement for the default location of Recoll filters, normally found in, e.g., /usr/share/recoll/filters). ASPELL_PROG aspell program to use for creating the spelling dictionary. The result has to be compatible with the libaspell which Recoll is using. VARNAME Blabla 5.4.2. The main configuration file, recoll.conf recoll.conf is the main configuration file. It defines things like what to index (top directories and things to ignore), and the default character set to use for document types which do not specify it internally. The default configuration will index your home directory. If this is not appropriate, start recoll to create a blank configuration, click Cancel, and edit the configuration file before restarting the command. This will start the initial indexing, which may take some time. Most of the following parameters can be changed from the Index Configuration menu in the recoll interface. Some can only be set by editing the configuration file. 5.4.2.1. Parameters affecting what documents we index: topdirs Specifies the list of directories or files to index (recursively for directories). You can use symbolic links as elements of this list. See the followLinks option about following symbolic links found under the top elements (not followed by default). skippedNames A space-separated list of wilcard patterns for names of files or directories that should be completely ignored. The list defined in the default file is: skippedNames = #* bin CVS Cache cache* caughtspam tmp .thumbnails .svn \ *~ .beagle .git .hg .bzr loop.ps .xsession-errors \ .recoll* xapiandb recollrc recoll.conf The list can be redefined at any sub-directory in the indexed area. The top-level directories are not affected by this list (that is, a directory in topdirs might match and would still be indexed). The list in the default configuration does not exclude hidden directories (names beginning with a dot), which means that it may index quite a few things that you do not want. On the other hand, email user agents like thunderbird usually store messages in hidden directories, and you probably want this indexed. One possible solution is to have .* in skippedNames, and add things like ~/.thunderbird or ~/.evolution in topdirs. Not even the file names are indexed for patterns in this list. See the noContentSuffixes variable for an alternative approach which indexes the file names. noContentSuffixes This is a list of file name endings (not wildcard expressions, nor dot-delimited suffixes). Only the names of matching files will be indexed (no attempt at MIME type identification, no decompression, no content indexing). This can be redefined for subdirectories, and edited from the GUI. The default value is: noContentSuffixes = .md5 .map \ .o .lib .dll .a .sys .exe .com \ .mpp .mpt .vsd \ .img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz \ .dat .bak .rdf .log.gz .log .db .msf .pid \ ,v ~ # skippedPaths and daemSkippedPaths A space-separated list of patterns for paths of files or directories that should be skipped. There is no default in the sample configuration file, but the code always adds the configuration and database directories in there. skippedPaths is used both by batch and real time indexing. daemSkippedPaths can be used to specify things that should be indexed at startup, but not monitored. Example of use for skipping text files only in a specific directory: skippedPaths = ~/somedir/*.txt skippedPathsFnmPathname The values in the *skippedPaths variables are matched by default with fnmatch(3), with the FNM_PATHNAME flag. This means that '/' characters must be matched explicitely. You can set skippedPathsFnmPathname to 0 to disable the use of FNM_PATHNAME (meaning that /*/dir3 will match /dir1/dir2/dir3). zipSkippedNames A space-separated list of patterns for names of files or directories that should be ignored inside zip archives. This is used directly by the zip handler, and has a function similar to skippedNames, but works independantly. Can be redefined for filesystem subdirectories. For versions up to 1.19, you will need to update the Zip handler and install a supplementary Python module. The details are described on the Recoll wiki. followLinks Specifies if the indexer should follow symbolic links while walking the file tree. The default is to ignore symbolic links to avoid multiple indexing of linked files. No effort is made to avoid duplication when this option is set to true. This option can be set individually for each of the topdirs members by using sections. It can not be changed below the topdirs level. indexedmimetypes Recoll normally indexes any file which it knows how to read. This list lets you restrict the indexed MIME types to what you specify. If the variable is unspecified or the list empty (the default), all supported types are processed. Can be redefined for subdirectories. excludedmimetypes This list lets you exclude some MIME types from indexing. Can be redefined for subdirectories. compressedfilemaxkbs Size limit for compressed (.gz or .bz2) files. These need to be decompressed in a temporary directory for identification, which can be very wasteful if 'uninteresting' big compressed files are present. Negative means no limit, 0 means no processing of any compressed file. Defaults to -1. textfilemaxmbs Maximum size for text files. Very big text files are often uninteresting logs. Set to -1 to disable (default 20MB). textfilepagekbs If set to other than -1, text files will be indexed as multiple documents of the given page size. This may be useful if you do want to index very big text files as it will both reduce memory usage at index time and help with loading data to the preview window. A size of a few megabytes would seem reasonable (default: 1MB). membermaxkbs This defines the maximum size in kilobytes for an archive member (zip, tar or rar at the moment). Bigger entries will be skipped. indexallfilenames Recoll indexes file names in a special section of the database to allow specific file names searches using wild cards. This parameter decides if file name indexing is performed only for files with MIME types that would qualify them for full text indexing, or for all files inside the selected subtrees, independently of MIME type. usesystemfilecommand Decide if we execute a system command (file -i by default) as a final step for determining the MIME type for a file (the main procedure uses suffix associations as defined in the mimemap file). This can be useful for files with suffix-less names, but it will also cause the indexing of many bogus "text" files. systemfilecommand Command to use for mime for mime type determination if usesystefilecommand is set. Recent versions of xdg-mime sometimes work better than file. processwebqueue If this is set, process the directory where Web browser plugins copy visited pages for indexing. webqueuedir The path to the web indexing queue. This is hard-coded in the Firefox plugin as ~/.recollweb/ToIndex so there should be no need to change it. 5.4.2.2. Parameters affecting how we generate terms: Changing some of these parameters will imply a full reindex. Also, when using multiple indexes, it may not make sense to search indexes that don't share the values for these parameters, because they usually affect both search and index operations. indexStripChars Decide if we strip characters of diacritics and convert them to lower-case before terms are indexed. If we don't, searches sensitive to case and diacritics can be performed, but the index will be bigger, and some marginal weirdness may sometimes occur. The default is a stripped index (indexStripChars = 1) for now. When using multiple indexes for a search, this parameter must be defined identically for all. Changing the value implies an index reset. maxTermExpand Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. maxXapianClauses Maximum number of elementary clauses we can add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. nonumbers If this set to true, no terms will be generated for numbers. For example "123", "1.5e6", 192.168.1.4, would not be indexed ("value123" would still be). Numbers are often quite interesting to search for, and this should probably not be set except for special situations, ie, scientific documents with huge amounts of numbers in them. This can only be set for a whole index, not for a subtree. nocjk If this set to true, specific east asian (Chinese Korean Japanese) characters/word splitting is turned off. This will save a small amount of cpu if you have no CJK documents. If your document base does include such text but you are not interested in searching it, setting nocjk may be a significant time and space saver. cjkngramlen This lets you adjust the size of n-grams used for indexing CJK text. The default value of 2 is probably appropriate in most cases. A value of 3 would allow more precision and efficiency on longer words, but the index will be approximately twice as large. indexstemminglanguages A list of languages for which the stem expansion databases will be built. See recollindex(1) or use the recollindex -l command for possible values. You can add a stem expansion database for a different language by using recollindex -s, but it will be deleted during the next indexing. Only languages listed in the configuration file are permanent. defaultcharset The name of the character set used for files that do not contain a character set definition (ie: plain text files). This can be redefined for any sub-directory. If it is not set at all, the character set used is the one defined by the nls environment ( LC_ALL, LC_CTYPE, LANG), or iso8859-1 if nothing is set. unac_except_trans This is a list of characters, encoded in UTF-8, which should be handled specially when converting text to unaccented lowercase. For example, in Swedish, the letter a with diaeresis has full alphabet citizenship and should not be turned into an a. Each element in the space-separated list has the special character as first element and the translation following. The handling of both the lowercase and upper-case versions of a character should be specified, as appartenance to the list will turn-off both standard accent and case processing. Example for Swedish: unac_except_trans = aaaa AAaa a:a: A:a: o:o: O:o: Note that the translation is not limited to a single character, you could very well have something like u:ue in the list. The default value set for unac_except_trans can't be listed here because I have trouble with SGML and UTF-8, but it only contains ligature decompositions: german ss, oe, ae, fi, fl. This parameter can't be defined for subdirectories, it is global, because there is no way to do otherwise when querying. If you have document sets which would need different values, you will have to index and query them separately. maildefcharset This can be used to define the default character set specifically for email messages which don't specify it. This is mainly useful for readpst (libpst) dumps, which are utf-8 but do not say so. localfields This allows setting fields for all documents under a given directory. Typical usage would be to set an "rclaptg" field, to be used in mimeview to select a specific viewer. If several fields are to be set, they should be separated with a semi-colon (';') character, which there is currently no way to escape. Also note the initial semi-colon. Example: localfields= ;rclaptg=gnus;other = val, then select specifier viewer with mimetype|tag=... in mimeview. testmodifusemtime If true, use mtime instead of default ctime to determine if a file has been modified (in addition to size, which is always used). Setting this can reduce re-indexing on systems where extended attributes are modified (by some other application), but not indexed (changing extended attributes only affects ctime). Notes: o This may prevent detection of change in some marginal file rename cases (the target would need to have the same size and mtime). o You should probably also set noxattrfields to 1 in this case, except if you still prefer to perform xattr indexing, for example if the local file update pattern makes it of value (as in general, there is a risk for pure extended attributes updates without file modification to go undetected). Perform a full index reset after changing the value of this parameter. noxattrfields Recoll versions 1.19 and later automatically translate file extended attributes into document fields (to be processed according to the parameters from the fields file). Setting this variable to 1 will disable the behaviour. metadatacmds This allows executing external commands for each file and storing the output in Recoll document fields. This could be used for example to index external tag data. The value is a list of field names and commands, don't forget an initial semi-colon. Example: [/some/area/of/the/fs] metadatacmds = ; tags = tmsu tags %f; otherfield = somecmd -xx %f As a specially disgusting hack brought by Recoll 1.19.7, if a "field name" begins with rclmulti, the data returned by the command is expected to contain multiple field values, in configuration file format. This allows setting several fields by executing a single command. Example: metadatacmds = ; rclmulti1 = somecmd %f If somecmd returns data in the form of: field1 = value1 field2 = value for field2 field1 and field2 will be set inside the document metadata. 5.4.2.3. Parameters affecting where and how we store things: dbdir The name of the Xapian data directory. It will be created if needed when the index is initialized. If this is not an absolute path, it will be interpreted relative to the configuration directory. The value can have embedded spaces but starting or trailing spaces will be trimmed. You cannot use quotes here. idxstatusfile The name of the scratch file where the indexer process updates its status. Default: idxstatus.txt inside the configuration directory. maxfsoccuppc Maximum file system occupation before we stop indexing. The value is a percentage, corresponding to what the "Capacity" df output column shows. The default value is 0, meaning no checking. mboxcachedir The directory where mbox message offsets cache files are held. This is normally $RECOLL_CONFDIR/mboxcache, but it may be useful to share a directory between different configurations. mboxcacheminmbs The minimum mbox file size over which we cache the offsets. There is really no sense in caching offsets for small files. The default is 5 MB. webcachedir This is only used by the web browser plugin indexing code, and defines where the cache for visited pages will live. Default: $RECOLL_CONFDIR/webcache webcachemaxmbs This is only used by the web browser plugin indexing code, and defines the maximum size for the web page cache. Default: 40 MB. Quite unfortunately, this is only taken into account when creating the cache file. You need to delete the file for a change to be taken into account. idxflushmb Threshold (megabytes of new text data) where we flush from memory to disk index. Setting this can help control memory usage. A value of 0 means no explicit flushing, letting Xapian use its own default, which is flushing every 10000 (or XAPIAN_FLUSH_THRESHOLD) documents, which gives little memory usage control, as memory usage also depends on average document size. The default value is 10, and it is probably a bit low. If your system usually has free memory, you can try higher values between 20 and 80. In my experience, values beyond 100 are always counterproductive. 5.4.2.4. Parameters affecting multithread processing The Recoll indexing process recollindex can use multiple threads to speed up indexing on multiprocessor systems. The work done to index files is divided in several stages and some of the stages can be executed by multiple threads. The stages are: 1. File system walking: this is always performed by the main thread. 2. File conversion and data extraction. 3. Text processing (splitting, stemming, etc.) 4. Xapian index update. You can also read a longer document about the transformation of Recoll indexing to multithreading. The threads configuration is controlled by two configuration file parameters. thrQSizes This variable defines the job input queues configuration. There are three possible queues for stages 2, 3 and 4, and this parameter should give the queue depth for each stage (three integer values). If a value of -1 is used for a given stage, no queue is used, and the thread will go on performing the next stage. In practise, deep queues have not been shown to increase performance. A value of 0 for the first queue tells Recoll to perform autoconfiguration (no need for the two other values in this case) - this is the default configuration. thrTCounts This defines the number of threads used for each stage. If a value of -1 is used for one of the queue depths, the corresponding thread count is ignored. It makes no sense to use a value other than 1 for the last stage because updating the Xapian index is necessarily single-threaded (and protected by a mutex). The following example would use three queues (of depth 2), and 4 threads for converting source documents, 2 for processing their text, and one to update the index. This was tested to be the best configuration on the test system (quadri-processor with multiple disks). thrQSizes = 2 2 2 thrTCounts = 4 2 1 The following example would use a single queue, and the complete processing for each document would be performed by a single thread (several documents will still be processed in parallel in most cases). The threads will use mutual exclusion when entering the index update stage. In practise the performance would be close to the precedent case in general, but worse in certain cases (e.g. a Zip archive would be performed purely sequentially), so the previous approach is preferred. YMMV... The 2 last values for thrTCounts are ignored. thrQSizes = 2 -1 -1 thrTCounts = 6 1 1 The following example would disable multithreading. Indexing will be performed by a single thread. thrQSizes = -1 -1 -1 5.4.2.5. Miscellaneous parameters: autodiacsens IF the index is not stripped, decide if we automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity. Default is no. autocasesens IF the index is not stripped, decide if we automatically trigger character case sensitivity if the search term has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity. Default is yes. loglevel,daemloglevel Verbosity level for recoll and recollindex. A value of 4 lists quite a lot of debug/information messages. 2 only lists errors. The daemversion is specific to the indexing monitor daemon. logfilename, daemlogfilename Where the messages should go. 'stderr' can be used as a special value, and is the default. The daemversion is specific to the indexing monitor daemon. checkneedretryindexscript This defines the name for a command executed by recollindex when starting indexing. If the exit status of the command is 0, recollindex retries to index all files which previously could not be indexed because of data extraction errors. The default value is a script which checks if any of the common bin directories have changed (indicating that a helper program may have been installed). mondelaypatterns This allows specify wildcard path patterns (processed with fnmatch(3) with 0 flag), to match files which change too often and for which a delay should be observed before re-indexing. This is a space-separated list, each entry being a pattern and a time in seconds, separated by a colon. You can use double quotes if a path entry contains white space. Example: mondelaypatterns = *.log:20 "this one has spaces*:10" monixinterval Minimum interval (seconds) for processing the indexing queue. The real time monitor does not process each event when it comes in, but will wait this time for the queue to accumulate to diminish overhead and in order to aggregate multiple events to the same file. Default 30 S. monauxinterval Period (in seconds) at which the real time monitor will regenerate the auxiliary databases (spelling, stemming) if needed. The default is one hour. monioniceclass, monioniceclassdata These allow defining the ionice class and data used by the indexer (default class 3, no data). filtermaxseconds Maximum handler execution time, after which it is aborted. Some postscript programs just loop... filtermaxmbytes Recoll 1.20.7 and later. Maximum handler memory utilisation. This uses setrlimit(RLIMIT_AS) on most systems (total virtual memory space size limit). Some programs may start with 500 MBytes of mapped shared libraries, so take this into account when choosing a value. The default is a liberal 2000MB. filtersdir A directory to search for the external input handler scripts used to index some types of files. The value should not be changed, except if you want to modify one of the default scripts. The value can be redefined for any sub-directory. iconsdir The name of the directory where recoll result list icons are stored. You can change this if you want different images. idxabsmlen Recoll stores an abstract for each indexed file inside the database. The text can come from an actual 'abstract' section in the document or will just be the beginning of the document. It is stored in the index so that it can be displayed inside the result lists without decoding the original file. The idxabsmlen parameter defines the size of the stored abstract. The default value is 250 bytes. The search interface gives you the choice to display this stored text or a synthetic abstract built by extracting text around the search terms. If you always prefer the synthetic abstract, you can reduce this value and save a little space. idxmetastoredlen Maximum stored length for metadata fields. This does not affect indexing (the whole field is processed anyway), just the amount of data stored in the index for the purpose of displaying fields inside result lists or previews. The default value is 150 bytes which may be too low if you have custom fields. aspellLanguage Language definitions to use when creating the aspell dictionary. The value must match a set of aspell language definition files. You can type "aspell config" to see where these are installed (look for data-dir). The default if the variable is not set is to use your desktop national language environment to guess the value. noaspell If this is set, the aspell dictionary generation is turned off. Useful for cases where you don't need the functionality or when it is unusable because aspell crashes during dictionary generation. mhmboxquirks This allows definining location-related quirks for the mailbox handler. Currently only the tbird flag is defined, and it should be set for directories which hold Thunderbird data, as their folder format is weird. 5.4.3. The fields file This file contains information about dynamic fields handling in Recoll. Some very basic fields have hard-wired behaviour, and, mostly, you should not change the original data inside the fields file. But you can create custom fields fitting your data and handle them just like they were native ones. The fields file has several sections, which each define an aspect of fields processing. Quite often, you'll have to modify several sections to obtain the desired behaviour. We will only give a short description here, you should refer to the comments inside the default file for more detailed information. Field names should be lowercase alphabetic ASCII. [prefixes] A field becomes indexed (searchable) by having a prefix defined in this section. [stored] A field becomes stored (displayable inside results) by having its name listed in this section (typically with an empty value). [aliases] This section defines lists of synonyms for the canonical names used inside the [prefixes] and [stored] sections [queryaliases] This section also defines aliases for the canonic field names, with the difference that the substitution will only be used at query time, avoiding any possibility that the value would pick-up random metadata from documents. handler-specific sections Some input handlers may need specific configuration for handling fields. Only the email message handler currently has such a section (named [mail]). It allows indexing arbitrary email headers in addition to the ones indexed by default. Other such sections may appear in the future. Here follows a small example of a personal fields file. This would extract a specific email header and use it as a searchable field, with data displayable inside result lists. (Side note: as the email handler does no decoding on the values, only plain ascii headers can be indexed, and only the first occurrence will be used for headers that occur several times). [prefixes] # Index mailmytag contents (with the given prefix) mailmytag = XMTAG [stored] # Store mailmytag inside the document data record (so that it can be # displayed - as %(mailmytag) - in result lists). mailmytag = [queryaliases] filename = fn containerfilename = cfn [mail] # Extract the X-My-Tag mail header, and use it internally with the # mailmytag field name x-my-tag = mailmytag 5.4.3.1. Extended attributes in the fields file Recoll versions 1.19 and later process user extended file attributes as documents fields by default. Attributes are processed as fields of the same name, after removing the user prefix on Linux. The [xattrtofields] section of the fields file allows specifying translations from extended attributes names to Recoll field names. An empty translation disables use of the corresponding attribute data. 5.4.4. The mimemap file mimemap specifies the file name extension to MIME type mappings. For file names without an extension, or with an unknown one, the system's file -i command will be executed to determine the MIME type (this can be switched off inside the main configuration file). The mappings can be specified on a per-subtree basis, which may be useful in some cases. Example: gaim logs have a .txt extension but should be handled specially, which is possible because they are usually all located in one place. The recoll_noindex mimemap variable has been moved to recoll.conf and renamed to noContentSuffixes, while keeping the same function, as of Recoll version 1.21. For older Recoll versions, see the documentation for noContentSuffixes but use recoll_noindex in mimemap. 5.4.5. The mimeconf file mimeconf specifies how the different MIME types are handled for indexing, and which icons are displayed in the recoll result lists. Changing the parameters in the [index] section is probably not a good idea except if you are a Recoll developer. The [icons] section allows you to change the icons which are displayed by recoll in the result lists (the values are the basenames of the png images inside the iconsdir directory (specified in recoll.conf). 5.4.6. The mimeview file mimeview specifies which programs are started when you click on an Open link in a result list. Ie: HTML is normally displayed using firefox, but you may prefer Konqueror, your openoffice.org program might be named oofice instead of openoffice etc. Changes to this file can be done by direct editing, or through the recoll GUI preferences dialog. If Use desktop preferences to choose document editor is checked in the Recoll GUI preferences, all mimeview entries will be ignored except the one labelled application/x-all (which is set to use xdg-open by default). In this case, the xallexcepts top level variable defines a list of MIME type exceptions which will be processed according to the local entries instead of being passed to the desktop. This is so that specific Recoll options such as a page number or a search string can be passed to applications that support them, such as the evince viewer. As for the other configuration files, the normal usage is to have a mimeview inside your own configuration directory, with just the non-default entries, which will override those from the central configuration file. All viewer definition entries must be placed under a [view] section. The keys in the file are normally MIME types. You can add an application tag to specialize the choice for an area of the filesystem (using a localfields specification in mimeconf). The syntax for the key is mimetype|tag The nouncompforviewmts entry, (placed at the top level, outside of the [view] section), holds a list of MIME types that should not be uncompressed before starting the viewer (if they are found compressed, ie: mydoc.doc.gz). The right side of each assignment holds a command to be executed for opening the file. The following substitutions are performed: o %D. Document date o %f. File name. This may be the name of a temporary file if it was necessary to create one (ie: to extract a subdocument from a container). o %i. Internal path, for subdocuments of containers. The format depends on the container type. If this appears in the command line, Recoll will not create a temporary file to extract the subdocument, expecting the called application (possibly a script) to be able to handle it. o %M. MIME type o %p. Page index. Only significant for a subset of document types, currently only PDF, Postscript and DVI files. Can be used to start the editor at the right page for a match or snippet. o %s. Search term. The value will only be set for documents with indexed page numbers (ie: PDF). The value will be one of the matched search terms. It would allow pre-setting the value in the "Find" entry inside Evince for example, for easy highlighting of the term. o %u. Url. In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for the document. This could be used in combination with field customisation to help with opening the document. 5.4.7. The ptrans file ptrans specifies query-time path translations. These can be useful in multiple cases. The file has a section for any index which needs translations, either the main one or additional query indexes. The sections are named with the Xapian index directory names. No slash character should exist at the end of the paths (all comparisons are textual). An exemple should make things sufficiently clear [/home/me/.recoll/xapiandb] /this/directory/moved = /to/this/place [/path/to/additional/xapiandb] /server/volume1/docdir = /net/server/volume1/docdir /server/volume2/docdir = /net/server/volume2/docdir 5.4.8. Examples of configuration adjustments 5.4.8.1. Adding an external viewer for an non-indexed type Imagine that you have some kind of file which does not have indexable content, but for which you would like to have a functional Open link in the result list (when found by file name). The file names end in .blob and can be displayed by application blobviewer. You need two entries in the configuration files for this to work: o In $RECOLL_CONFDIR/mimemap (typically ~/.recoll/mimemap), add the following line: .blob = application/x-blobapp Note that the MIME type is made up here, and you could call it diesel/oil just the same. o In $RECOLL_CONFDIR/mimeview under the [view] section, add: application/x-blobapp = blobviewer %f We are supposing that blobviewer wants a file name parameter here, you would use %u if it liked URLs better. If you just wanted to change the application used by Recoll to display a MIME type which it already knows, you would just need to edit mimeview. The entries you add in your personal file override those in the central configuration, which you do not need to alter. mimeview can also be modified from the Gui. 5.4.8.2. Adding indexing support for a new file type Let us now imagine that the above .blob files actually contain indexable text and that you know how to extract it with a command line program. Getting Recoll to index the files is easy. You need to perform the above alteration, and also to add data to the mimeconf file (typically in ~/.recoll/mimeconf): o Under the [index] section, add the following line (more about the rclblob indexing script later): application/x-blobapp = exec rclblob o Under the [icons] section, you should choose an icon to be displayed for the files inside the result lists. Icons are normally 64x64 pixels PNG files which live in /usr/[local/]share/recoll/images. o Under the [categories] section, you should add the MIME type where it makes sense (you can also create a category). Categories may be used for filtering in advanced search. The rclblob handler should be an executable program or script which exists inside /usr/[local/]share/recoll/filters. It will be given a file name as argument and should output the text or html contents on the standard output. The filter programming section describes in more detail how to write an input handler. ---------------------------------------------------------------------- Prev Up 5.3. Building from source Home recoll-1.21.5/COPYING0000644000175000017500000004311012602163536013420 0ustar dockesdockes GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. recoll-1.21.5/desktop/0000755000175000017500000000000012602163537014040 5ustar dockesdockesrecoll-1.21.5/desktop/recoll.svg0000644000175000017500000001570412602163537016050 0ustar dockesdockes image/svg+xml recoll-1.21.5/desktop/recoll.png0000644000175000017500000000071112602163537016025 0ustar dockesdockesPNG  IHDR00`n pHYs  tIME tEXtCommentCreated with The GIMPd%n?IDATXcr3}~-\t$iKᒵKg\kqI11 2@l!4آq4ʆZ)z-Ƌ'ƀ[//px:պ\3\x&dّG тq4ʆf1[KѫM h kר_u\.\6kZ?kh.# ] tih4/p%K.Y7%PA+7/9|1vǸ$޾£$6(A~hWz4Fl#ڒx1, # Copyright 2006, Jeremy White # # LICENSE: # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. # #--------------------------------------------- manualpage() { cat << _MANUALPAGE Name xdg-desktop-menu - command line tool for (un)installing desktop menu items Synopsis xdg-desktop-menu install [--noupdate] [--novendor] [--mode mode] directory-file (s) desktop-file(s) xdg-desktop-menu uninstall [--noupdate] [--mode mode] directory-file(s) desktop-file(s) xdg-desktop-menu forceupdate [--mode mode] xdg-desktop-menu { --help | --manual | --version } Description The xdg-desktop-menu program can be used to install new menu entries to the desktop's application menu. The application menu works according to the XDG Desktop Menu Specification at http://www.freedesktop.org/Standards/menu-spec Commands install Install one or more applications in a submenu of the desktop menu system. desktop-file: A desktop file represents a single menu entry in the menu. Desktop files are defined by the freedesktop.org Desktop Entry Specification. The most important aspects of *.desktop files are summarized below. Menu entries can be added to the menu system in two different ways. They can either be added to a predefined submenu in the menu system based on one or more category keywords, or they can be added to a new submenu. To add a menu entry to a predefined submenu the desktop file that represents the menu entry must have a Categories= entry that lists one or more keywords. The menu item will be included in an appropriate submenu based on the included keywords. To add menu items to a new submenu the desktop-files must be preceded by a directory-file that describes the submenu. If multiple desktop-files are specified, all entries will be added to the same menu. If entries are installed to a menu that has been created with a previous call to xdg-desktop-menu the entries will be installed in addition to any already existing entries. directory-file: The *.directory file indicated by directory-file represents a submenu. The directory file provides the name and icon for a submenu. The name of the directory file is used to identify the submenu. If multiple directory files are provided each file will represent a submenu within the menu that preceeds it, creating a nested menu hierarchy (sub-sub-menus). The menu entries themselves will be added to the last submenu. Directory files follow the syntax defined by the freedesktop.org Desktop Entry Specification. uninstall Remove applications or submenus from the desktop menu system previously installed with xdg-desktop-menu install. A submenu and the associated directory file is only removed when the submenu no longer contains any menu entries. forceupdate Force an update of the menu system. This command is only useful if the last call to xdg-desktop-menu included the --noupdate option. Options --noupdate Postpone updating the menu system. If multiple updates to the menu system are made in sequence this flag can be used to indicate that additional changes will follow and that it is not necassery to update the menu system right away. --novendor Normally, xdg-desktop-menu checks to ensure that any *.directory and *.desktop files to be installed has a vendor prefix. This option can be used to disable that check. A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated with a dash ("-"). Companies and organizations are encouraged to use a word or phrase, preferably the organizations name, for which they hold a trademark as their vendor prefix. The purpose of the vendor prefix is to prevent name conflicts. --mode mode mode can be user or system. In user mode the file is (un)installed for the current user only. In system mode the file is (un)installed for all users on the system. Usually only root is allowed to install in system mode. The default is to use system mode when called by root and to use user mode when called by a non-root user. --help Show command synopsis. --manual Show this manualpage. --version Show the xdg-utils version information. Desktop Files An application item in the application menu is represented by a *.desktop file. A *.desktop file consists of a [Desktop Entry] header followed by several Key= Value lines. A *.desktop file can provide a name and description for an application in several different languages. This is done by adding a language code as used by LC_MESSAGES in square brackets behind the Key. This way one can specify different values for the same Key depending on the currently selected language. The following keys are often used: Value=1.0 This is a mandatory field to indicate that the *.desktop file follows the 1.0 version of the specification. Type=Application This is a mandatory field that indicates that the *.desktop file describes an application launcher. Name=Application Name The name of the application. For example Mozilla GenericName=Generic Name A generic description of the application. For example Web Browser Comment=Comment Optional field to specify a tooltip for the application. For example Visit websites on the Internet Icon=Icon File The icon to use for the application. This can either be an absolute path to an image file or an icon-name. If an icon-name is provided an image lookup by name is done in the user's current icon theme. The xdg-icon-resource command can be used to install image files into icon themes. The advantage of using an icon-name instead of an absolute path is that with an icon-name the application icon can be provided in several different sizes as well as in several differently themed styles. Exec=Command Line The command line to start the application. If the application can open files the %f placeholder should be specified. When a file is dropped on the application launcher the %f is replaced with the file path of the dropped file. If multiple files can be specified on the command line the %F placeholder should be used instead of %f. If the application is able to open URLs in addition to local files then %u or %U can be used instead of %f or %F. Categories=Categories A list of categories separated by semi-colons. A category is a keyword that describes and classifies the application. By default applications are organized in the application menu based on category. When menu entries are explicitly assigned to a new submenu it is not necassery to list any categories. When using categories it is recommended to include one of the following categories: AudioVideo, Development, Education, Game, Graphics, Network, Office, Settings, System, Utility. See Appendix A of the XDG Desktop Menu Specification for information about additional categories. http://standards.freedesktop.org/menu-spec/ menu-spec-1.0.html MimeType=Mimetypes A list of mimetypes separated by semi-colons. This field is used to indicate which file types the application is able to open. For a complete oveview of the *.desktop file format please visit http:// www.freedesktop.org/wiki/Standards/desktop-entry-spec Directory Files The appearance of submenu in the application menu is provided by a *.directory file. In particular it provides the title of the submenu and a possible icon. A *.directory file consists of a [Desktop Entry] header followed by several Key= Value lines. A *.directory file can provide a title (name) for the submenu in several different languages. This is done by adding a language code as used by LC_MESSAGES in square brackets behind the Key. This way one can specify different values for the same Key depending on the currently selected language. The following keys are relevqnt for submenus: Value=1.0 This is a mandatory field to indicate that the *.directory file follows the 1.0 version of the Desktop Entry specification. Type=Directory This is a mandatory field that indicates that the *.directory file describes a submenu. Name=Menu Name The title of submenu. For example Mozilla Comment=Comment Optional field to specify a tooltip for the submenu. Icon=Icon File The icon to use for the submenu. This can either be an absolute path to an image file or an icon-name. If an icon-name is provided an image lookup by name is done in the user's current icon theme. The xdg-icon-resource command can be used to install image files into icon themes. The advantage of using an icon-name instead of an absolute path is that with an icon-name the submenu icon can be provided in several different sizes as well as in several differently themed styles. Environment Variables xdg-desktop-menu honours the following environment variables: XDG_UTILS_DEBUG_LEVEL Setting this environment variable to a non-zero numerical value makes xdg-desktop-menu do more verbose reporting on stderr. Setting a higher value increases the verbosity. XDG_UTILS_INSTALL_MODE This environment variable can be used by the user or administrator to override the installation mode. Valid values are user and system. Exit Codes An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: 1 Error in command line syntax. 2 One of the files passed on the command line did not exist. 3 A required tool could not be found. 4 The action failed. 5 No permission to read one of the files passed on the command line. See Also xdg-desktop-icon(1), xdg-icon-resource(1), xdg-mime(1) Examples The company ShinyThings Inc. has developed an application named "WebMirror" and would like to add it to the application menu. The company will use "shinythings" as its vendor id. In order to add the application to the menu there needs to be a .desktop file with a suitable Categories entry: shinythings-webmirror.desktop: [Desktop Entry] Encoding=UTF-8 Type=Application Exec=webmirror Icon=webmirror Name=WebMirror Name[nl]=WebSpiegel Categories=Network;WebDevelopment; Now the xdg-desktop-menu tool can be used to add the shinythings-webmirror.desktop file to the desktop application menu: xdg-desktop-menu install ./shinythings-webmirror.desktop Note that for the purpose of this example the menu items are available in two languages, English and Dutch. The language code for Dutch is nl. In the next example the company ShinyThings Inc. will add its own submenu to the desktop application menu consisting of a "WebMirror" menu item and a "WebMirror Admin Tool" menu item. First the company needs to create two .desktop files that describe the two menu items. Since the items are to be added to a new submenu it is not necassery to include a Categories= line: shinythings-webmirror.desktop: [Desktop Entry] Encoding=UTF-8 Type=Application Exec=webmirror Icon=shinythings-webmirror Name=WebMirror Name[nl]=WebSpiegel shinythings-webmirror-admin.desktop: [Desktop Entry] Encoding=UTF-8 Type=Application Exec=webmirror-admintool Icon=shinythings-webmirror-admintool Name=WebMirror Admin Tool Name[nl]=WebSpiegel Administratie Tool In addition a .directory file needs to be created to provide a title and icon for the sub-menu itself: shinythings-webmirror.directory: [Desktop Entry] Encoding=UTF-8 Icon=shinythings-webmirror-menu Name=WebMirror Name[nl]=WebSpiegel These file can now be installed with: xdg-desktop-menu install ./shinythings-webmirror.directory \ ./shinythings-webmirror.desktop ./shinythings-webmirror-admin.desktop The menu entries could also be installed one by one: xdg-desktop-menu install --noupdate ./shinythings-webmirror.directory \ ./shinythings-webmirror.desktop xdg-desktop-menu install --noupdate ./shinythings-webmirror.directory \ ./shinythings-webmirror-admin.desktop xdg-desktop-menu forceupdate Although the result is the same it is slightly more efficient to install all files at the same time. The *.desktop and *.directory files reference icons with the names webmirror, webmirror-admin and webmirror-menu which should also be installed. In this example the icons are installed in two different sizes, once with a size of 22x22 pixels and once with a size of 64x64 pixels: xdg-icon-resource install --size 22 ./wmicon-22.png shinythings-webmirror xdg-icon-resource install --size 22 ./wmicon-menu-22.png shinythings-webmirror-menu xdg-icon-resource install --size 22 ./wmicon-admin-22.png shinythings-webmirror-admin xdg-icon-resource install --size 64 ./wmicon-64.png shinythings-webmirror xdg-icon-resource install --size 64 ./wmicon-menu-64.png shinythings-webmirror-menu xdg-icon-resource install --size 64 ./wmicon-admin-64.png shinythings-webmirror-admin _MANUALPAGE } usage() { cat << _USAGE xdg-desktop-menu - command line tool for (un)installing desktop menu items Synopsis xdg-desktop-menu install [--noupdate] [--novendor] [--mode mode] directory-file (s) desktop-file(s) xdg-desktop-menu uninstall [--noupdate] [--mode mode] directory-file(s) desktop-file(s) xdg-desktop-menu forceupdate [--mode mode] xdg-desktop-menu { --help | --manual | --version } _USAGE } #@xdg-utils-common@ #---------------------------------------------------------------------------- # Common utility functions included in all XDG wrapper scripts #---------------------------------------------------------------------------- DEBUG() { [ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && return 0; [ ${XDG_UTILS_DEBUG_LEVEL} -lt $1 ] && return 0; shift echo "$@" >&2 } #------------------------------------------------------------- # Exit script on successfully completing the desired operation exit_success() { if [ $# -gt 0 ]; then echo "$@" echo fi exit 0 } #----------------------------------------- # Exit script on malformed arguments, not enough arguments # or missing required option. # prints usage information exit_failure_syntax() { if [ $# -gt 0 ]; then echo "xdg-desktop-menu: $@" >&2 echo "Try 'xdg-desktop-menu --help' for more information." >&2 else usage echo "Use 'man xdg-desktop-menu' or 'xdg-desktop-menu --manual' for additional info." fi exit 1 } #------------------------------------------------------------- # Exit script on missing file specified on command line exit_failure_file_missing() { if [ $# -gt 0 ]; then echo "xdg-desktop-menu: $@" >&2 fi exit 2 } #------------------------------------------------------------- # Exit script on failure to locate necessary tool applications exit_failure_operation_impossible() { if [ $# -gt 0 ]; then echo "xdg-desktop-menu: $@" >&2 fi exit 3 } #------------------------------------------------------------- # Exit script on failure returned by a tool application exit_failure_operation_failed() { if [ $# -gt 0 ]; then echo "xdg-desktop-menu: $@" >&2 fi exit 4 } #------------------------------------------------------------ # Exit script on insufficient permission to read a specified file exit_failure_file_permission_read() { if [ $# -gt 0 ]; then echo "xdg-desktop-menu: $@" >&2 fi exit 5 } #------------------------------------------------------------ # Exit script on insufficient permission to read a specified file exit_failure_file_permission_write() { if [ $# -gt 0 ]; then echo "xdg-desktop-menu: $@" >&2 fi exit 6 } check_input_file() { if [ ! -e "$1" ]; then exit_failure_file_missing "file '$1' does not exist" fi if [ ! -r "$1" ]; then exit_failure_file_permission_read "no permission to read file '$1'" fi } check_vendor_prefix() { file_label="$2" [ -n "$file_label" ] || file_label="filename" file=`basename "$1"` case "$file" in [a-zA-Z]*-*) return ;; esac echo "xdg-desktop-menu: $file_label '$file' does not have a proper vendor prefix" >&2 echo 'A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated' >&2 echo 'with a dash ("-"). An example '"$file_label"' is '"'example-$file'" >&2 echo "Use --novendor to override or 'xdg-desktop-menu --manual' for additional info." >&2 exit 1 } check_output_file() { # if the file exists, check if it is writeable # if it does not exists, check if we are allowed to write on the directory if [ -e "$1" ]; then if [ ! -w "$1" ]; then exit_failure_file_permission_write "no permission to write to file '$1'" fi else DIR=`dirname "$1"` if [ ! -w "$DIR" -o ! -x "$DIR" ]; then exit_failure_file_permission_write "no permission to create file '$1'" fi fi } #---------------------------------------- # Checks for shared commands, e.g. --help check_common_commands() { while [ $# -gt 0 ] ; do parm="$1" shift case "$parm" in --help) usage echo "Use 'man xdg-desktop-menu' or 'xdg-desktop-menu --manual' for additional info." exit_success ;; --manual) manualpage exit_success ;; --version) echo "xdg-desktop-menu 1.0.1" exit_success ;; esac done } check_common_commands "$@" [ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && unset XDG_UTILS_DEBUG_LEVEL; if [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt 1 ]; then # Be silent xdg_redirect_output=" > /dev/null 2> /dev/null" else # All output to stderr xdg_redirect_output=" >&2" fi #-------------------------------------- # Checks for known desktop environments # set variable DE to the desktop environments name, lowercase detectDE() { if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; fi } #---------------------------------------------------------------------------- # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 # It also always returns 1 in KDE 3.4 and earlier # Simply return 0 in such case kfmclient_fix_exit_code() { version=`kde-config --version 2>/dev/null | grep KDE` major=`echo $version | sed 's/KDE: \([0-9]\).*/\1/'` minor=`echo $version | sed 's/KDE: [0-9]*\.\([0-9]\).*/\1/'` release=`echo $version | sed 's/KDE: [0-9]*\.[0-9]*\.\([0-9]\).*/\1/'` test "$major" -gt 3 && return $1 test "$minor" -gt 5 && return $1 test "$release" -gt 4 && return $1 return 0 } update_desktop_database() { # echo Update desktop database: $mode if [ "$mode" = "system" ] ; then for x in `echo $PATH | sed 's/:/ /g'` /opt/gnome/bin; do if [ -x $x/update-desktop-database ] ; then DEBUG 1 "Running $x/update-desktop-database" eval '$x/update-desktop-database'$xdg_redirect_output return fi done fi } fixup_mandriva_categories() { DEBUG 1 "fixup_mandriva_categories $1" awk ' BEGIN { xlat["AudioVideo"]="X-Mandrakelinux-Multimedia;X-MandrivaLinux-Multimedia" xlat["Development"]="X-Mandrakelinux-MoreApplications-Development;X-MandrivaLinux-MoreApplications-Development" xlat["Education"]="X-Mandrakelinux-MoreApplications;X-MandrivaLinux-MoreApplications-Education" xlat["Game"]="X-Mandrakelinux-MoreApplications;X-MandrivaLinux-MoreApplications-Games" xlat["Graphics"]="X-Mandrakelinux-Multimedia-Graphics" xlat["Network"]="X-Mandrakelinux-Internet;X-MandrivaLinux-Internet" xlat["Office"]="X-Mandrakelinux-Office;X-MandrivaLinux-Office" xlat["System"]="X-Mandrakelinux-System;X-MandrivaLinux-System" xlat["Utility"]="X-Mandrakelinux-Office-Accessories;X-MandrivaLinux-Office-Accessories" } { if (match($0,/Categories=/)) { split(substr($0,RSTART+11),categories,";") result="" for (n in categories) { if (categories[n] in xlat) categories[n]=categories[n] ";" xlat[categories[n]] if (categories[n]) result=result categories[n] ";" } print "Categories=" result } else { print $0 } }' $1 > $1.new mv $1.new $1 } # Make application $1/$2 the default for all the mimetypes it support, # iff such mimetype didn't had a default application already. # $1 Install dir for desktop file # $2 base name of desktop file make_lazy_default() { local mimetypes local xdg_user_dir local xdg_default_dirs DEBUG 1 "make_lazy_default $1/$2" mimetypes=`awk ' { if (match($0,/MimeType=/)) { split(substr($0,RSTART+9),mimetypes,";") for (n in mimetypes) { if (mimetypes[n]) print mimetypes[n] } } }' "$1/$2" 2> /dev/null` for MIME in $mimetypes ; do xdg_default_dirs="$XDG_DATA_DIRS" [ -n "$xdg_default_dirs" ] || xdg_default_dirs=/usr/local/share/:/usr/share/ if [ x"$mode" = x"user" ] ; then xdg_user_dir="$XDG_DATA_HOME" [ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.local/share" xdg_default_dirs="$xdg_user_dir:$xdg_default_dirs" fi local default_app for x in `echo "$xdg_default_dirs" | sed 's/:/ /g'`; do DEBUG 2 "Checking $x/applications/defaults.list" default_app=`grep "$MIME=" $x/applications/defaults.list 2> /dev/null | cut -d '=' -f 2` if [ -n "$default_app" ] ; then DEBUG 2 "Found default apps for $MIME: $default_app" default_app="$default_app;" break; fi done DEBUG 2 "Current default apps for $MIME: $default_app" if echo "$default_app" | grep "$2" > /dev/null 2> /dev/null; then # App already listed as default continue; fi default_file="$1/defaults.list" DEBUG 1 "Updating $default_file" grep -v "$MIME=" $default_file > ${default_file}.new 2> /dev/null if ! grep "[Default Applications]" ${default_file}.new > /dev/null; then echo "[Default Applications]" >> ${default_file}.new fi echo $MIME="$default_app$2" >> ${default_file}.new mv ${default_file}.new $default_file done } update_submenu() { DEBUG 1 "update_submenu $1" menu_file="$1" xdg_dir_name=menus xdg_user_dir="$XDG_CONFIG_HOME" [ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.config" xdg_user_dir="$xdg_user_dir/$xdg_dir_name" xdg_system_dirs="$XDG_CONFIG_DIRS" [ -n "$xdg_system_dirs" ] || xdg_system_dirs=/etc/xdg xdg_global_dir= for x in `echo $xdg_system_dirs | sed 's/:/ /g'` ; do if [ -w $x/$xdg_dir_name ] ; then xdg_global_dir="$x/$xdg_dir_name" break fi done xdg_user_dir="$xdg_user_dir/applications-merged" xdg_global_dir="$xdg_global_dir/applications-merged" DEBUG 3 "Install locations for *.menu file:" DEBUG 3 "xdg_user_dir: $xdg_user_dir" DEBUG 3 "xdg_global_dir: $xdg_global_dir" DEBUG 3 "kde_user_dir: $kde_user_dir" DEBUG 3 "kde_global_dir: $kde_global_dir" DEBUG 3 "gnome_user_dir: $gnome_user_dir" DEBUG 3 "gnome_global_dir: $gnome_global_dir" if [ x"$mode" = x"user" ] ; then xdg_dir="$xdg_user_dir" kde_dir="$kde_user_dir" gnome_dir="$gnome_user_dir" my_umask=077 my_chmod=0600 else xdg_dir="$xdg_global_dir" kde_dir="$kde_global_dir" gnome_dir="$gnome_global_dir" my_umask=022 my_chmod=0644 if [ -z "${xdg_dir}${kde_dir}${gnome_dir}" ] ; then exit_failure_operation_impossible "No writable system menu directory found." fi fi if [ -z "$menu_file" ] ; then # Work around for SUSE/gnome 2.12 to pick up new ~/.local/share/applications save_umask=`umask` umask $my_umask mkdir -p $xdg_dir touch $xdg_dir/xdg-desktop-menu-dummy.menu umask $save_umask return fi if [ $action = "install" -a -f "/etc/xdg/menus/gnome-applications.menu" ] ; then # Work around for Debian Gnome gnome_xdg_dir=`echo "$xdg_dir" | sed -e 's^/applications-merged^/gnome-applications-merged^'` if [ ! -e "$gnome_xdg_dir" ] ; then DEBUG 1 "Debian Workaround: Link '$xdg_dir' to '$gnome_xdg_dir'" mkdir -p `dirname "$gnome_xdg_dir"` eval 'ln -s "applications-merged" "$gnome_xdg_dir"'$xdg_redirect_output fi fi if [ $action = "install" -a -f "/etc/mandrake-release" ] ; then # Work around for Mandriva 2006 mandrake_xdg_dir=`echo "$xdg_dir" | sed -e 's^/applications-merged^/applications-mdk-merged^'` if [ ! -e "$mandrake_xdg_dir" ] ; then DEBUG 1 "Mandriva Workaround: Link '$xdg_dir' to '$mandrake_xdg_dir'" mkdir -p `dirname "$mandrake_xdg_dir"` eval 'ln -s "applications-merged" "$mandrake_xdg_dir"'$xdg_redirect_output fi fi if [ $action = "install" -a x"$mode" = x"user" -a -d "/etc/xdg/menus/kde-applications-merged" ] ; then # Work around for Fedora Core 5 + patched KDE kde_xdg_dir=`echo "$xdg_dir" | sed -e 's^/applications-merged^/kde-applications-merged^'` if [ ! -e "$kde_xdg_dir" ] ; then DEBUG 1 "Fedora Workaround: Link '$xdg_dir' to '$kde_xdg_dir'" mkdir -p `dirname "$kde_xdg_dir"` eval 'ln -s "applications-merged" "$kde_xdg_dir"'$xdg_redirect_output fi fi if [ $action = "install" -a x"$mode" = x"system" -a -d "/etc/xdg/menus/kde-applications-merged" -a ! -d "/etc/xdg/menus/applications-merged" ] ; then # Work around for Kubuntu 6.06 kde_xdg_dir=`echo "$xdg_dir" | sed -e 's^/applications-merged^/kde-applications-merged^'` DEBUG 1 "Kubuntu Workaround: Link '$xdg_dir' to 'kde-applications-merged'" eval 'ln -s "kde-applications-merged" "$xdg_dir"'$xdg_redirect_output fi orig_menu_file=$xdg_dir/$menu_file DEBUG 1 "Updating $orig_menu_file ($action)" tmpfile=`mktemp` orig_desktop_files= if [ -r "$orig_menu_file" ] ; then awk ' # List all files within tags BEGIN { RS="<" } /^Filename/ { if (match($0,/>/)) { print substr($0,RSTART+1) } }' $orig_menu_file > $tmpfile fi orig_desktop_files=`cat $tmpfile` new_desktop_files= if [ $action = "install" ] ; then for desktop_file in $desktop_files; do basefile=`basename $desktop_file` if ! grep '^'$basefile'$' $tmpfile > /dev/null 2> /dev/null ; then # Append echo "$basefile" >> $tmpfile fi done new_desktop_files=`cat $tmpfile` fi if [ $action = "uninstall" ] ; then echo > $tmpfile for desktop_file in $desktop_files; do echo "$desktop_file" >> $tmpfile done # Files to uninstall are listed in $tmpfile # Existing files are in $orig_desktop_files for desktop_file in $orig_desktop_files; do if ! grep '^'$desktop_file'$' $tmpfile > /dev/null 2> /dev/null; then # Keep this file, it's not in the uninstall list new_desktop_files="$new_desktop_files $desktop_file" fi done fi rm -f "$tmpfile" DEBUG 3 "Files to list in $menu_file: $new_desktop_files" if [ -n "$new_desktop_files" ] ; then # Install/update tmpfile=`mktemp` ( echo '' echo '' echo '' echo ' Applications' for desktop_file in $directory_files; do basefile=`basename $desktop_file` basefilename=`echo "$basefile"|cut -d '.' -f 1` echo "" echo " $basefilename" echo " $basefile" done echo " " for desktop_file in $new_desktop_files; do echo " $desktop_file" done echo " " for desktop_file in $directory_files; do echo "" done echo '' ) > $tmpfile chmod $my_chmod $tmpfile save_umask=`umask` umask $my_umask mkdir -p $xdg_dir eval 'cp $tmpfile $xdg_dir/$menu_file'$xdg_redirect_output umask $save_umask rm -f "$tmpfile" else # Uninstall rm -f $xdg_dir/$menu_file fi # Uninstall .directory files only if no longer referenced if [ $action = "uninstall" ] ; then tmpfile=`mktemp` for menu_file in $xdg_dir/*; do if grep 'generated and managed by xdg-desktop-menu' $menu_file > /dev/null 2> /dev/null; then awk ' # List all files within tags BEGIN { RS="<" } /^Directory/ { if (match($0,/>/)) { print substr($0,RSTART+1) } }' $menu_file >> $tmpfile fi done orig_directory_files="$directory_files" directory_files= for desktop_file in $orig_directory_files; do if ! grep '^'$desktop_file'$' $tmpfile > /dev/null 2> /dev/null; then # No longer in use, safe to delete directory_files="$directory_files $desktop_file" fi done rm -f "$tmpfile" fi } [ x"$1" != x"" ] || exit_failure_syntax mode= action= update=yes desktop_files= directory_files= case $1 in install) action=install ;; uninstall) action=uninstall ;; forceupdate) action=forceupdate ;; *) exit_failure_syntax "unknown command '$1'" ;; esac shift vendor=true while [ $# -gt 0 ] ; do parm="$1" shift case "$parm" in --noupdate) update=no ;; --mode) if [ -z "$1" ] ; then exit_failure_syntax "mode argument missing for --mode" fi case "$1" in user) mode="user" ;; system) mode="system" ;; *) exit_failure_syntax "unknown mode '$1'" ;; esac shift ;; --novendor) vendor=false ;; -*) exit_failure_syntax "unexpected option '$parm'" ;; *) if [ "$action" = "install" ] ; then check_input_file "$parm" fi case "$parm" in *.directory) if [ -n "$desktop_files" ] ; then exit_failure_syntax "'$parm' must preceed any *.desktop file" fi directory_files="$directory_files $parm" ;; *.desktop) desktop_files="$desktop_files $parm" ;; *) exit_failure_syntax "file to $action must be a *.directory or *.desktop file" ;; esac ;; esac done # Shouldn't happen if [ -z "$action" ] ; then exit_failure_syntax "command argument missing" fi if [ -n "$XDG_UTILS_INSTALL_MODE" ] ; then if [ "$XDG_UTILS_INSTALL_MODE" = "system" ] ; then mode="system" elif [ "$XDG_UTILS_INSTALL_MODE" = "user" ] ; then mode="user" fi fi if [ -z "$mode" ] ; then if [ `whoami` = "root" ] ; then mode="system" else mode="user" fi fi if [ x"$action" = x"forceupdate" ] ; then update_desktop_database exit_success fi if [ -z "$desktop_files" ] ; then exit_failure_syntax "desktop-file argument missing" fi menu_name= for desktop_file in $directory_files; do if [ "$vendor" = "true" -a "$action" = "install" ] ; then check_vendor_prefix "$desktop_file" fi basefilename=`basename "$desktop_file"|cut -d '.' -f 1` if [ -z "$menu_name" ] ; then menu_name="$basefilename" else menu_name="$menu_name-$basefilename" fi done if [ -n "$menu_name" ] ; then if [ x"$mode" = x"user" ] ; then update_submenu "user-$menu_name.menu" else update_submenu "$menu_name.menu" fi else # Work around for SUSE/gnome 2.12 to pick up new ~/.local/share/applications if [ x"$mode" = x"user" ] ; then update_submenu fi fi # Install *.directory files xdg_dir_name=desktop-directories xdg_user_dir="$XDG_DATA_HOME" [ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.local/share" xdg_user_dir="$xdg_user_dir/$xdg_dir_name" xdg_system_dirs="$XDG_DATA_DIRS" [ -n "$xdg_system_dirs" ] || xdg_system_dirs=/usr/local/share/:/usr/share/ xdg_global_dir= for x in `echo $xdg_system_dirs | sed 's/:/ /g'` ; do if [ -w $x/$xdg_dir_name ] ; then xdg_global_dir="$x/$xdg_dir_name" break fi done DEBUG 3 "Install locations for *.directory files:" DEBUG 3 "xdg_user_dir: $xdg_user_dir" DEBUG 3 "xdg_global_dir: $xdg_global_dir" DEBUG 3 "kde_user_dir: $kde_user_dir" DEBUG 3 "kde_global_dir: $kde_global_dir" DEBUG 3 "gnome_user_dir: $gnome_user_dir" DEBUG 3 "gnome_global_dir: $gnome_global_dir" if [ x"$mode" = x"user" ] ; then xdg_dir="$xdg_user_dir" kde_dir="$kde_user_dir" gnome_dir="$gnome_user_dir" my_umask=077 else xdg_dir="$xdg_global_dir" kde_dir="$kde_global_dir" gnome_dir="$gnome_global_dir" my_umask=022 if [ -z "${xdg_dir}${kde_dir}${gnome_dir}" ] ; then exit_failure_operation_impossible "No writable system menu directory found." fi fi for desktop_file in $directory_files; do basefile=`basename $desktop_file` DEBUG 1 "$action $desktop_file in $xdg_dir $kde_dir $gnome_dir" case $action in install) save_umask=`umask` umask $my_umask for x in $xdg_dir $kde_dir $gnome_dir ; do mkdir -p $x eval 'cp $desktop_file $x/$basefile'$xdg_redirect_output done umask $save_umask ;; uninstall) for x in $xdg_dir $kde_dir $gnome_dir ; do rm -f $x/$basefile done ;; esac done # Install *.desktop files xdg_dir_name=applications xdg_user_dir="$XDG_DATA_HOME" [ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.local/share" xdg_user_dir="$xdg_user_dir/$xdg_dir_name" xdg_system_dirs="$XDG_DATA_DIRS" [ -n "$xdg_system_dirs" ] || xdg_system_dirs=/usr/local/share/:/usr/share/ xdg_global_dir= for x in `echo $xdg_system_dirs | sed 's/:/ /g'` ; do if [ -w $x/$xdg_dir_name ] ; then xdg_global_dir="$x/$xdg_dir_name" break fi done kde_user_dir="$HOME/.kde/share/applnk" kde_global_dir="/usr/share/applnk" [ -w $kde_global_dir ] || kde_global_dir= gnome_user_dir="$HOME/.gnome/apps" gnome_global_dir="/usr/share/gnome/apps" [ -w $gnome_global_dir ] || gnome_global_dir= [ -f /etc/mandriva-release ] && need_mandriva_fix=true [ -n "$need_mandriva_fix" ] && DEBUG 1 "Fixing up .desktop categories (Mandriva work around)" DEBUG 3 "Install locations for *.desktop files:" DEBUG 3 "xdg_user_dir: $xdg_user_dir" DEBUG 3 "xdg_global_dir: $xdg_global_dir" DEBUG 3 "kde_user_dir: $kde_user_dir" DEBUG 3 "kde_global_dir: $kde_global_dir" DEBUG 3 "gnome_user_dir: $gnome_user_dir" DEBUG 3 "gnome_global_dir: $gnome_global_dir" if [ x"$mode" = x"user" ] ; then xdg_dir="$xdg_user_dir" kde_dir="$kde_user_dir" gnome_dir="$gnome_user_dir" my_umask=077 else xdg_dir="$xdg_global_dir" kde_dir="$kde_global_dir" gnome_dir="$gnome_global_dir" my_umask=022 if [ -z "${xdg_dir}${kde_dir}${gnome_dir}" ] ; then exit_failure_operation_impossible "No writable system menu directory found." fi fi for desktop_file in $desktop_files; do if [ "$vendor" = "true" -a "$action" = "install" ] ; then check_vendor_prefix "$desktop_file" fi basefile=`basename $desktop_file` DEBUG 1 "$action $desktop_file in $xdg_dir $kde_dir $gnome_dir" case $action in install) save_umask=`umask` umask $my_umask for x in $xdg_dir $kde_dir $gnome_dir ; do mkdir -p $x eval 'cp $desktop_file $x/$basefile'$xdg_redirect_output done if [ -n "$need_mandriva_fix" ] ; then fixup_mandriva_categories $xdg_dir/$basefile fi if [ -f $kde_dir/$basefile ] ; then echo "OnlyShowIn=Old;" >> $kde_dir/$basefile fi if [ -f $gnome_dir/$basefile ] ; then echo "OnlyShowIn=Old;" >> $gnome_dir/$basefile fi make_lazy_default "$xdg_dir" "$basefile" umask $save_umask ;; uninstall) for x in $xdg_dir $kde_dir $gnome_dir ; do rm -f $x/$basefile done ;; esac done if [ x"$update" = x"yes" ] ; then update_desktop_database fi exit_success recoll-1.21.5/desktop/xdg-utils-1.0.1/scripts/xdg-icon-resource0000755000175000017500000005711412602163537023375 0ustar dockesdockes#!/bin/sh #--------------------------------------------- # xdg-icon-resource # # Utility script to install icons on a Linux desktop. # # Refer to the usage() function below for usage. # # Copyright 2006, Kevin Krammer # Copyright 2006, Jeremy White # # LICENSE: # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. # #--------------------------------------------- manualpage() { cat << _MANUALPAGE Name xdg-icon-resource - command line tool for (un)installing icon resources Synopsis xdg-icon-resource install [--noupdate] [--novendor] [--theme theme] [--context context] [--mode mode] --size size icon-file [icon-name] xdg-icon-resource uninstall [--noupdate] [--theme theme] [--context context] [--mode mode] --size size icon-name xdg-icon-resource forceupdate [--theme theme] [--mode mode] xdg-icon-resource { --help | --manual | --version } Description The xdg-icon-resource program can be used to install icon resources into the desktop icon system in order to illustrate menu entries, to depict desktop icons or to graphically represent file types. The desktop icon system identifies icons by name. Depending on the required size, the choice of icon theme and the context in which the icon is used, the desktop icon system locates an appropriate icon resource to depict an icon. Icon resources can be XPM files, PNG files or SVG files. The desktop icon system works according to the XDG Icon Theme Specification at http://www.freedesktop.org/Standards/icon-theme-spec Commands install Installs the icon file indicated by icon-file to the desktop icon system under the name icon-name. Icon names do not have an extension. If icon-name is not provided the name is derived from icon-file. The icon file must have .png or .xpm as extension. If a corresponding .icon file exists in the same location as icon-file it will be installed as well. uninstall Removes the icon indicated by icon-name from the desktop icon system. Note that icon names do not have an extension. forceupdate Force an update of the desktop icon system. This is only useful if the last call to xdg-icon-resource included the --noupdate option. Options --noupdate Postpone updating the desktop icon system. If multiple icons are added in sequence this flag can be used to indicate that additional changes will follow and that it is not necassery to update the desktop icon system right away. --novendor Normally, xdg-icon-resource checks to ensure that an icon file to be installed in the apps context has a proper vendor prefix. This option can be used to disable that check. A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated with a dash ("-"). Companies and organizations are encouraged to use a word or phrase, preferably the organizations name, for which they hold a trademark as their vendor prefix. The purpose of the vendor prefix is to prevent name conflicts. --theme theme Installs or removes the icon file as part of theme. If no theme is specified the icons will be installed as part of the default hicolor theme. Applications may install icons under multiple themes but should at least install icons for the default hicolor theme. --context context Specifies the context for the icon. Icons to be used in the application menu and as desktop icon should use apps as context which is the default context. Icons to be used as file icons should use mimetypes as context. Other common contexts are actions, devices, emblems, filesystems and stock. --size size Specifies the size of the icon. All icons must be square. Common sizes for icons in the apps context are: 16, 22, 32, 48, 64 and 128. Common sizes for icons in the mimetypes context are: 16, 22, 32, 48, 64 and 128 --mode mode mode can be user or system. In user mode the file is (un)installed for the current user only. In system mode the file is (un)installed for all users on the system. Usually only root is allowed to install in system mode. The default is to use system mode when called by root and to use user mode when called by a non-root user. --help Show command synopsis. --manual Show this manualpage. --version Show the xdg-utils version information. Environment Variables xdg-icon-resource honours the following environment variables: XDG_UTILS_DEBUG_LEVEL Setting this environment variable to a non-zero numerical value makes xdg-icon-resource do more verbose reporting on stderr. Setting a higher value increases the verbosity. XDG_UTILS_INSTALL_MODE This environment variable can be used by the user or administrator to override the installation mode. Valid values are user and system. Exit Codes An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: 1 Error in command line syntax. 2 One of the files passed on the command line did not exist. 3 A required tool could not be found. 4 The action failed. 5 No permission to read one of the files passed on the command line. See Also xdg-desktop-icon(1), xdg-desktop-menu(1), xdg-mime(1) Examples To install an icon resource to depict a launcher for the application myfoobar, the company ShinyThings Inc. can use: xdg-icon-resource install --size 64 shinythings-myfoobar.png To install an icon for a new application/x-foobar file type one can use: xdg-icon-resource install --context mimetypes --size 48 ./mime-foobar-48.png application-x-foobar xdg-icon-resource install --context mimetypes --size 64 ./mime-foobar-64.png application-x-foobar This will install two icons with the name application-x-foobar but with different sizes. _MANUALPAGE } usage() { cat << _USAGE xdg-icon-resource - command line tool for (un)installing icon resources Synopsis xdg-icon-resource install [--noupdate] [--novendor] [--theme theme] [--context context] [--mode mode] --size size icon-file [icon-name] xdg-icon-resource uninstall [--noupdate] [--theme theme] [--context context] [--mode mode] --size size icon-name xdg-icon-resource forceupdate [--theme theme] [--mode mode] xdg-icon-resource { --help | --manual | --version } _USAGE } #@xdg-utils-common@ #---------------------------------------------------------------------------- # Common utility functions included in all XDG wrapper scripts #---------------------------------------------------------------------------- DEBUG() { [ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && return 0; [ ${XDG_UTILS_DEBUG_LEVEL} -lt $1 ] && return 0; shift echo "$@" >&2 } #------------------------------------------------------------- # Exit script on successfully completing the desired operation exit_success() { if [ $# -gt 0 ]; then echo "$@" echo fi exit 0 } #----------------------------------------- # Exit script on malformed arguments, not enough arguments # or missing required option. # prints usage information exit_failure_syntax() { if [ $# -gt 0 ]; then echo "xdg-icon-resource: $@" >&2 echo "Try 'xdg-icon-resource --help' for more information." >&2 else usage echo "Use 'man xdg-icon-resource' or 'xdg-icon-resource --manual' for additional info." fi exit 1 } #------------------------------------------------------------- # Exit script on missing file specified on command line exit_failure_file_missing() { if [ $# -gt 0 ]; then echo "xdg-icon-resource: $@" >&2 fi exit 2 } #------------------------------------------------------------- # Exit script on failure to locate necessary tool applications exit_failure_operation_impossible() { if [ $# -gt 0 ]; then echo "xdg-icon-resource: $@" >&2 fi exit 3 } #------------------------------------------------------------- # Exit script on failure returned by a tool application exit_failure_operation_failed() { if [ $# -gt 0 ]; then echo "xdg-icon-resource: $@" >&2 fi exit 4 } #------------------------------------------------------------ # Exit script on insufficient permission to read a specified file exit_failure_file_permission_read() { if [ $# -gt 0 ]; then echo "xdg-icon-resource: $@" >&2 fi exit 5 } #------------------------------------------------------------ # Exit script on insufficient permission to read a specified file exit_failure_file_permission_write() { if [ $# -gt 0 ]; then echo "xdg-icon-resource: $@" >&2 fi exit 6 } check_input_file() { if [ ! -e "$1" ]; then exit_failure_file_missing "file '$1' does not exist" fi if [ ! -r "$1" ]; then exit_failure_file_permission_read "no permission to read file '$1'" fi } check_vendor_prefix() { file_label="$2" [ -n "$file_label" ] || file_label="filename" file=`basename "$1"` case "$file" in [a-zA-Z]*-*) return ;; esac echo "xdg-icon-resource: $file_label '$file' does not have a proper vendor prefix" >&2 echo 'A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated' >&2 echo 'with a dash ("-"). An example '"$file_label"' is '"'example-$file'" >&2 echo "Use --novendor to override or 'xdg-icon-resource --manual' for additional info." >&2 exit 1 } check_output_file() { # if the file exists, check if it is writeable # if it does not exists, check if we are allowed to write on the directory if [ -e "$1" ]; then if [ ! -w "$1" ]; then exit_failure_file_permission_write "no permission to write to file '$1'" fi else DIR=`dirname "$1"` if [ ! -w "$DIR" -o ! -x "$DIR" ]; then exit_failure_file_permission_write "no permission to create file '$1'" fi fi } #---------------------------------------- # Checks for shared commands, e.g. --help check_common_commands() { while [ $# -gt 0 ] ; do parm="$1" shift case "$parm" in --help) usage echo "Use 'man xdg-icon-resource' or 'xdg-icon-resource --manual' for additional info." exit_success ;; --manual) manualpage exit_success ;; --version) echo "xdg-icon-resource 1.0.1" exit_success ;; esac done } check_common_commands "$@" [ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && unset XDG_UTILS_DEBUG_LEVEL; if [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt 1 ]; then # Be silent xdg_redirect_output=" > /dev/null 2> /dev/null" else # All output to stderr xdg_redirect_output=" >&2" fi #-------------------------------------- # Checks for known desktop environments # set variable DE to the desktop environments name, lowercase detectDE() { if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; fi } #---------------------------------------------------------------------------- # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 # It also always returns 1 in KDE 3.4 and earlier # Simply return 0 in such case kfmclient_fix_exit_code() { version=`kde-config --version 2>/dev/null | grep KDE` major=`echo $version | sed 's/KDE: \([0-9]\).*/\1/'` minor=`echo $version | sed 's/KDE: [0-9]*\.\([0-9]\).*/\1/'` release=`echo $version | sed 's/KDE: [0-9]*\.[0-9]*\.\([0-9]\).*/\1/'` test "$major" -gt 3 && return $1 test "$minor" -gt 5 && return $1 test "$release" -gt 4 && return $1 return 0 } # Set GTK_UPDATE_ICON_CACHE to gtk-update-icon-cache executable path or # to "-" if not found. GTK_UPDATE_ICON_CACHE= find_gtk_update_icon_cache() { [ -n "$GTK_UPDATE_ICON_CACHE" ] && return; GTK_UPDATE_ICON_CACHE="-" for x in `echo "$PATH:/opt/gnome/bin" | sed 's/:/ /g'`; do DEBUG 3 "Checking $x for gtk-update-icon-cache" if [ -x "$x/gtk-update-icon-cache" ] ; then DEBUG 1 "Found $x/gtk-update-icon-cache" GTK_UPDATE_ICON_CACHE="$x/gtk-update-icon-cache" return fi done } # Start GNOME legacy workaround section need_dot_icon_path() { # GTK < 2.6 uses ~/.icons but not XDG_DATA_HOME/icons # The availability of gtk-update-icon-cache is used as indication # of whether the system is using GTK 2.6 or later find_gtk_update_icon_cache [ "$GTK_UPDATE_ICON_CACHE" != "-" ] && return 1; return 0; } update_icon_database() { # Touch me, I'm dirty touch "$1/.xdg-icon-resource-dummy" rm -f "$1/.xdg-icon-resource-dummy" # Don't create a cache if there wan't one already if [ -f "$1/icon-theme.cache" ] ; then find_gtk_update_icon_cache if [ "$GTK_UPDATE_ICON_CACHE" != "-" ] ; then DEBUG 1 "Running $GTK_UPDATE_ICON_CACHE -f -t \"$1\"" eval '$GTK_UPDATE_ICON_CACHE -f -t "$1"'$xdg_redirect_output return fi fi } [ x"$1" != x"" ] || exit_failure_syntax mode= action= update=yes size= theme=hicolor context=apps icon_file= icon_name= case $1 in install) action=install ;; uninstall) action=uninstall ;; forceupdate) action=forceupdate ;; *) exit_failure_syntax "unknown command '$1'" ;; esac shift vendor=true while [ $# -gt 0 ] ; do parm="$1" shift case $parm in --noupdate) update=no ;; --mode) if [ -z "$1" ] ; then exit_failure_syntax "mode argument missing for --mode" fi case "$1" in user) mode="user" ;; system) mode="system" ;; *) exit_failure_syntax "unknown mode '$1'" ;; esac shift ;; --theme) if [ -z "$1" ] ; then exit_failure_syntax "theme argument missing for --theme" fi theme="$1" shift ;; --size) if [ -z "$1" ] ; then exit_failure_syntax "size argument missing for --size" fi if echo "$1" | grep '[^0-9]' > /dev/null 2> /dev/null; then exit_failure_syntax "size argument must be numeric" fi size="$1" shift ;; --context) if [ -z "$1" ] ; then exit_failure_syntax "context argument missing for --context" fi context="$1" shift ;; --novendor) vendor=false ;; -*) exit_failure_syntax "unexpected option '$parm'" ;; *) if [ -n "$icon_name" ] ; then exit_failure_syntax "unexpected argument '$parm'" elif [ -n "$icon_file" ] ; then icon_name="$parm" else if [ "$action" = "install" ] ; then check_input_file "$parm" fi icon_file="$parm" fi ;; esac done # Shouldn't happen if [ -z "$action" ] ; then exit_failure_syntax "command argument missing" fi # Shouldn't happen if [ -z "$context" ] ; then exit_failure_syntax "context argument missing" fi if [ -n "$XDG_UTILS_INSTALL_MODE" ] ; then if [ "$XDG_UTILS_INSTALL_MODE" = "system" ] ; then mode="system" elif [ "$XDG_UTILS_INSTALL_MODE" = "user" ] ; then mode="user" fi fi if [ -z "$mode" ] ; then if [ `whoami` = "root" ] ; then mode="system" else mode="user" fi fi xdg_dir_name="icons/$theme" xdg_user_dir="$XDG_DATA_HOME" [ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.local/share" xdg_user_prefix="$xdg_user_dir/icons" xdg_user_dir="$xdg_user_dir/$xdg_dir_name" xdg_global_dir= xdg_global_prefix= xdg_system_dirs="$XDG_DATA_DIRS" [ -n "$xdg_system_dirs" ] || xdg_system_dirs="/usr/local/share/:/usr/share/" for x in `echo "$xdg_system_dirs" | sed 's/:/ /g'`; do if [ -w $x/$xdg_dir_name ] ; then xdg_global_prefix="$x/icons" xdg_global_dir="$x/$xdg_dir_name" break fi done [ -w $xdg_global_dir ] || xdg_global_dir= dot_icon_dir= dot_base_dir= if [ x"$mode" = x"user" ] ; then xdg_base_dir="$xdg_user_dir" #Gnome 2.8 supports ~/.icons but not XDG_DATA_HOME if need_dot_icon_path ; then dot_icon_dir="$HOME/.icons" dot_base_dir="$dot_icon_dir/$theme" fi else xdg_base_dir="$xdg_global_dir" if [ -z "$xdg_base_dir" ] ; then exit_failure_operation_impossible "No writable system icon directory found." fi fi if [ x"$action" = x"forceupdate" ] ; then if [ -n "$icon_file" ] ; then exit_failure_syntax "unexpected argument '$icon_file'" fi update_icon_database $xdg_base_dir if [ -n "$dot_icon_dir" ] ; then if [ -d "$dot_icon_dir/" -a ! -L "$dot_icon_dir" ] ; then update_icon_database $dot_base_dir fi fi exit_success fi if [ -z "$icon_file" ] ; then if [ x"$action" = x"install" ] ; then exit_failure_syntax "icon-file argument missing" else exit_failure_syntax "icon-name argument missing" fi fi xdg_size_name= extension= if [ -z "$size" ] ; then exit_failure_syntax "the icon size must be specified with --size" fi xdg_size_name="${size}x${size}" if [ x"$action" = x"install" ] ; then case $icon_file in *.xpm) extension="xpm" ;; *.png) extension="png" ;; *) exit_failure_syntax "icon file to install must be a *.png or *.xpm file" ;; esac fi if [ -n "$icon_name" ] ; then case $icon_name in *.png) exit_failure_syntax "icon name should not include an extension" ;; *.xpm) exit_failure_syntax "icon name should not include an extension" ;; esac fi # Start KDE legacy workaround section need_kde_icon_path() { local path path=`readlink -f "$1" 2> /dev/null` # Normalize path DEBUG 2 "need_kde_icon_path $path" if [ -z "$path" ] ; then DEBUG 2 "need_kde_icon_path RETURN 1 (not needed, no xdg icon dir)" return 1; # Not needed fi # if kde-config not found... return 0 kde_icon_dirs=`kde-config --path icon 2> /dev/null |sed 's/:/ /g'` DEBUG 3 "kde_icon_dirs: $kde_icon_dirs" if [ -z "$kde_icon_dirs" ] ; then DEBUG 3 "no result from kde-config --path icon" DEBUG 2 "need_kde_icon_path RETURN 1 (not needed, no kde icon path)" return 1; # Not needed fi needed=0 # Needed for y in $kde_icon_dirs ; do x=`readlink -f "$y"` # Normalize path DEBUG 3 "Normalize $y --> $x" if [ -n "$x" ] ; then if [ "$x" = "$path" ] ; then needed=1 # Not needed fi if [ -w "$x" ] ; then kde_global_prefix="$x" # Take last writable dir fi fi done DEBUG 2 "kde_global_prefix: $kde_global_prefix" [ $needed -eq "1" ] && DEBUG 2 "need_kde_icon_path RETURN $needed (not needed)" [ $needed -eq "0" ] && DEBUG 2 "need_kde_icon_path RETURN $needed (needed)" return $needed } kde_dir= if [ x"$mode" = x"user" ] ; then xdg_dir="$xdg_base_dir/$xdg_size_name/$context" #KDE 3.x doesn't support XDG_DATA_HOME for icons #Check if xdg_dir prefix is listed by kde-config --path icon #If not, install additional symlink to kdedir if need_kde_icon_path "$xdg_user_prefix" ; then kde_user_dir="$HOME/.kde/share/icons/$theme" kde_dir="$kde_user_dir/$xdg_size_name/$context" fi #Gnome 2.8 supports ~/.icons but not XDG_DATA_HOME if [ -n "$dot_icon_dir" ] ; then if [ -L "$dot_icon_dir" ] ; then # Don't do anything dot_icon_dir= elif [ ! -d "$dot_icon_dir/" ] ; then # Symlink if it doesn't exist eval 'ln -s ".local/share/icons" "$dot_icon_dir"'$xdg_redirect_output dot_icon_dir= else dot_icon_dir="$dot_icon_dir/$theme/$xdg_size_name/$context" fi fi my_umask=077 else xdg_dir="$xdg_base_dir/$xdg_size_name/$context" #KDE 3.x doesn't support XDG_DATA_DIRS for icons #Check if xdg_dir prefix is listed by kde-config --path icon #If not, install additional symlink to kdedir if need_kde_icon_path "$xdg_global_prefix" ; then kde_global_dir="$kde_global_prefix/$theme" kde_dir="$kde_global_dir/$xdg_size_name/$context" fi my_umask=022 fi # End KDE legacy workaround section # Start GNOME legacy workaround section need_gnome_mime= [ $context = "mimetypes" ] && need_gnome_mime=true # End GNOME legacy workaround section [ -n "$icon_name" ] || icon_name=`basename $icon_file | sed 's/\.[a-z][a-z][a-z]$//'` if [ "$vendor" = "true" -a "$action" = "install" -a "$context" = "apps" ] ; then check_vendor_prefix "$icon_name" "icon name" fi icon_icon_file=`echo "$icon_file" | sed 's/\.[a-z][a-z][a-z]$/.icon/'` icon_icon_name="$icon_name.icon" DEBUG 1 "$action icon in $xdg_dir" [ $action = "install" -a -f $icon_icon_file ] && DEBUG 1 "install $icon_icon_name meta file in $xdg_dir" [ -n "$kde_dir" ] && DEBUG 1 "$action symlink in $kde_dir (KDE 3.x support)" [ -n "$need_gnome_mime" ] && DEBUG 1 "$action gnome-mime-$icon_name symlink (GNOME 2.x support)" [ $action = "install" -a -n "$dot_icon_dir" ] && DEBUG 1 "$action ~/.icons symlink (GNOME 2.8 support)" case $action in install) save_umask=`umask` umask $my_umask for icon_dir in $xdg_dir $dot_icon_dir; do mkdir -p $icon_dir eval 'cp "$icon_file" "$icon_dir/$icon_name.$extension"'$xdg_redirect_output if [ -f "$icon_icon_file" ] ; then eval 'cp "$icon_icon_file" "$icon_dir/$icon_icon_name"'$xdg_redirect_output fi if [ -n "$need_gnome_mime" ] ; then eval 'ln -s "$icon_name.$extension" "$icon_dir/gnome-mime-$icon_name.$extension"'$xdg_redirect_output fi done if [ -n "$kde_dir" ] ; then mkdir -p $kde_dir eval 'ln -s "$xdg_dir/$icon_name.$extension" "$kde_dir/$icon_name.$extension"'$xdg_redirect_output fi umask $save_umask ;; uninstall) for icon_dir in $xdg_dir $dot_icon_dir; do rm -f "$icon_dir/$icon_name.xpm" "$icon_dir/$icon_name.png" rm -f "$icon_dir/$icon_icon_name" if [ -n "$need_gnome_mime" ] ; then rm -f "$icon_dir/gnome-mime-$icon_name.xpm" rm -f "$icon_dir/gnome-mime-$icon_name.png" fi done if [ -n "$kde_dir" ] ; then rm -f "$kde_dir/$icon_name.xpm" "$kde_dir/$icon_name.png" fi ;; esac if [ x"$update" = x"yes" ] ; then update_icon_database "$xdg_base_dir" if [ -n "$dot_icon_dir" ] ; then if [ -d "$dot_icon_dir/" -a ! -L "$dot_icon_dir" ] ; then update_icon_database $dot_base_dir fi fi fi exit_success recoll-1.21.5/desktop/xdg-utils-1.0.1/scripts/xdg-open0000755000175000017500000002362312602163537021557 0ustar dockesdockes#!/bin/sh #--------------------------------------------- # xdg-open # # Utility script to open a URL in the registered default application. # # Refer to the usage() function below for usage. # # Copyright 2006, Kevin Krammer # Copyright 2006, Jeremy White # # LICENSE: # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. # #--------------------------------------------- manualpage() { cat << _MANUALPAGE Name xdg-open - opens a file or URL in the user's preferred application Synopsis xdg-open { file | URL } xdg-open { --help | --manual | --version } Description xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp, http and https URLs. xdg-open is for use inside a desktop session only. It is not recommended to use xdg-open as root. Options --help Show command synopsis. --manual Show this manualpage. --version Show the xdg-utils version information. Exit Codes An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: 1 Error in command line syntax. 2 One of the files passed on the command line did not exist. 3 A required tool could not be found. 4 The action failed. Examples xdg-open 'http://www.freedesktop.org/' Opens the Freedesktop.org website in the user's default browser xdg-open /tmp/foobar.png Opens the PNG image file /tmp/foobar.png in the user's default image viewing application. _MANUALPAGE } usage() { cat << _USAGE xdg-open - opens a file or URL in the user's preferred application Synopsis xdg-open { file | URL } xdg-open { --help | --manual | --version } _USAGE } #@xdg-utils-common@ #---------------------------------------------------------------------------- # Common utility functions included in all XDG wrapper scripts #---------------------------------------------------------------------------- DEBUG() { [ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && return 0; [ ${XDG_UTILS_DEBUG_LEVEL} -lt $1 ] && return 0; shift echo "$@" >&2 } #------------------------------------------------------------- # Exit script on successfully completing the desired operation exit_success() { if [ $# -gt 0 ]; then echo "$@" echo fi exit 0 } #----------------------------------------- # Exit script on malformed arguments, not enough arguments # or missing required option. # prints usage information exit_failure_syntax() { if [ $# -gt 0 ]; then echo "xdg-open: $@" >&2 echo "Try 'xdg-open --help' for more information." >&2 else usage echo "Use 'man xdg-open' or 'xdg-open --manual' for additional info." fi exit 1 } #------------------------------------------------------------- # Exit script on missing file specified on command line exit_failure_file_missing() { if [ $# -gt 0 ]; then echo "xdg-open: $@" >&2 fi exit 2 } #------------------------------------------------------------- # Exit script on failure to locate necessary tool applications exit_failure_operation_impossible() { if [ $# -gt 0 ]; then echo "xdg-open: $@" >&2 fi exit 3 } #------------------------------------------------------------- # Exit script on failure returned by a tool application exit_failure_operation_failed() { if [ $# -gt 0 ]; then echo "xdg-open: $@" >&2 fi exit 4 } #------------------------------------------------------------ # Exit script on insufficient permission to read a specified file exit_failure_file_permission_read() { if [ $# -gt 0 ]; then echo "xdg-open: $@" >&2 fi exit 5 } #------------------------------------------------------------ # Exit script on insufficient permission to read a specified file exit_failure_file_permission_write() { if [ $# -gt 0 ]; then echo "xdg-open: $@" >&2 fi exit 6 } check_input_file() { if [ ! -e "$1" ]; then exit_failure_file_missing "file '$1' does not exist" fi if [ ! -r "$1" ]; then exit_failure_file_permission_read "no permission to read file '$1'" fi } check_vendor_prefix() { file_label="$2" [ -n "$file_label" ] || file_label="filename" file=`basename "$1"` case "$file" in [a-zA-Z]*-*) return ;; esac echo "xdg-open: $file_label '$file' does not have a proper vendor prefix" >&2 echo 'A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated' >&2 echo 'with a dash ("-"). An example '"$file_label"' is '"'example-$file'" >&2 echo "Use --novendor to override or 'xdg-open --manual' for additional info." >&2 exit 1 } check_output_file() { # if the file exists, check if it is writeable # if it does not exists, check if we are allowed to write on the directory if [ -e "$1" ]; then if [ ! -w "$1" ]; then exit_failure_file_permission_write "no permission to write to file '$1'" fi else DIR=`dirname "$1"` if [ ! -w "$DIR" -o ! -x "$DIR" ]; then exit_failure_file_permission_write "no permission to create file '$1'" fi fi } #---------------------------------------- # Checks for shared commands, e.g. --help check_common_commands() { while [ $# -gt 0 ] ; do parm="$1" shift case "$parm" in --help) usage echo "Use 'man xdg-open' or 'xdg-open --manual' for additional info." exit_success ;; --manual) manualpage exit_success ;; --version) echo "xdg-open 1.0.1" exit_success ;; esac done } check_common_commands "$@" [ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && unset XDG_UTILS_DEBUG_LEVEL; if [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt 1 ]; then # Be silent xdg_redirect_output=" > /dev/null 2> /dev/null" else # All output to stderr xdg_redirect_output=" >&2" fi #-------------------------------------- # Checks for known desktop environments # set variable DE to the desktop environments name, lowercase detectDE() { if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; fi } #---------------------------------------------------------------------------- # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 # It also always returns 1 in KDE 3.4 and earlier # Simply return 0 in such case kfmclient_fix_exit_code() { version=`kde-config --version 2>/dev/null | grep KDE` major=`echo $version | sed 's/KDE: \([0-9]\).*/\1/'` minor=`echo $version | sed 's/KDE: [0-9]*\.\([0-9]\).*/\1/'` release=`echo $version | sed 's/KDE: [0-9]*\.[0-9]*\.\([0-9]\).*/\1/'` test "$major" -gt 3 && return $1 test "$minor" -gt 5 && return $1 test "$release" -gt 4 && return $1 return 0 } open_kde() { kfmclient exec "$1" kfmclient_fix_exit_code $? if [ $? -eq 0 ]; then exit_success else exit_failure_operation_failed fi } open_gnome() { gnome-open "$1" if [ $? -eq 0 ]; then exit_success else exit_failure_operation_failed fi } open_xfce() { exo-open "$1" if [ $? -eq 0 ]; then exit_success else exit_failure_operation_failed fi } open_generic() { IFS=":" for browser in $BROWSER; do if [ x"$browser" != x"" ]; then browser_with_arg=`echo "$browser" | sed s#%s#"$1"#` if [ x"$browser_with_arg" = x"$browser" ]; then "$browser" "$1"; else $browser_with_arg; fi if [ $? -eq 0 ]; then exit_success; fi fi done exit_failure_operation_impossible "no method available for opening '$1'" } [ x"$1" != x"" ] || exit_failure_syntax url= while [ $# -gt 0 ] ; do parm="$1" shift case "$parm" in -*) exit_failure_syntax "unexpected option '$parm'" ;; *) if [ -n "$url" ] ; then exit_failure_syntax "unexpected argument '$parm'" fi url="$parm" ;; esac done if [ -z "${url}" ] ; then exit_failure_syntax "file or URL argument missing" fi detectDE if [ x"$DE" = x"" ]; then # if BROWSER variable is not set, check some well known browsers instead if [ x"$BROWSER" = x"" ]; then BROWSER=firefox:mozilla:netscape fi DE=generic fi case "$DE" in kde) open_kde "$url" ;; gnome) open_gnome "$url" ;; xfce) open_xfce "$url" ;; generic) open_generic "$url" ;; *) exit_failure_operation_impossible "no method available for opening '$url'" ;; esac recoll-1.21.5/desktop/xdg-utils-1.0.1/LICENSE0000644000175000017500000000207712602163537017426 0ustar dockesdockes# # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. recoll-1.21.5/desktop/recollindex.desktop0000644000175000017500000000054012602163537017742 0ustar dockesdockes[Desktop Entry] Name=Recoll real time indexer Comment=Runs in background to extract and index text from modified documents Icon=system-run Exec=recollindex -w 60 -m Terminal=false TerminalOptions= Type=Application Categories=Utility;Filesystem;Database; NoDisplay=true X-GNOME-Autostart-enabled=true X-KDE-autostart-after=panel X-KDE-UniqueApplet=true recoll-1.21.5/desktop/recoll.appdata.xml0000644000175000017500000000173112602163537017455 0ustar dockesdockes recoll.desktop CC0-1.0 GPL-2.0+ Recoll Find documents by specifying search terms

Recoll finds keywords inside documents text as well as file names.

  • It can search most document formats.
  • It can reach any storage place: files, archive members, email attachments, transparently handling decompression.
  • One click will open the document inside a native editor or display an even quicker text preview.
http://www.recoll.org/files/recoll-mainwin-h-1248x702.png http://www.recoll.org/ contact@recoll.org
recoll-1.21.5/desktop/recoll-searchgui.desktop0000644000175000017500000000034712602163537020667 0ustar dockesdockes[Desktop Entry] Categories=Utility;Filesystem;Database; Comment=Find documents by specifying search terms Exec=recoll GenericName=Local Text Search Icon=recoll Name=Recoll Terminal=false Type=Application Keywords=Search;Full Text; recoll-1.21.5/desktop/recoll.xcf0000644000175000017500000000736112602163537016031 0ustar dockesdockesgimp xcf fileBBS gimp-commentCreated with The GIMPgimp-image-grid(style intersections) (fgcolor (color-rgba 0.000000 0.000000 0.000000 1.000000)) (bgcolor (color-rgba 1.000000 1.000000 1.000000 1.000000)) (xspacing 10.000000) (yspacing 10.000000) (spacing-unit inches) (xoffset 0.000000) (yoffset 0.000000) (offset-unit inches)  Background     i %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% v%v%v%v%v%v%v%v%v%v%v%v %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% v%v%v%v%v%v%v%v%v%v%v%v f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3 f3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f 3f%f%f%f%f%f%f%f%f%f%f%f f %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%% f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3f 3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f3 f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3fv%v%v%v%v%v%v%v%v%v%v%v%v%v %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%% v%v%v%v%v%v%v%v%v%v%v%v%v%v %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%% f%f%f%f%f%f%f%f%f%f%f%f%f%f f3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f 3f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3 f %%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%% f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3f 3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f%3f3 f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3%f3f@@recoll-1.21.5/desktop/recoll_index_on_ac.sh0000755000175000017500000000404212602163537020205 0ustar dockesdockes#!/bin/sh # This is a shell script that starts and stops the recollindex daemon # depending on whether or not the power supply is plugged in. It should be # called from the file ~/.config/autostart/recollindex.desktop. # # That is: make the script executable (chmod +x) and replace in # recollindex.desk the line: # Exec=recollindex -w 60 -m # With # Exec=/path/to/recoll_index_on_ac.sh # # # By: The Doctor (drwho at virtadpt dot net) # License: GPLv3 # # Modifications by J.F Dockes # - replaced "acpi" usage with "on_ac_power" which seems to be both # more common and more universal. # - Changed the default to be that we run recollindex if we can't determine # power status (ie: on_ac_power not installed or not working: we're most # probably not running on a laptop). INDEXER="recollindex -w 60 -m" ACPI=`which on_ac_power` # If the on_ac_power script isn't installed, warn, but run anyway. Maybe # this is not a laptop or not linux. if test "x$ACPI" = "x" ; then echo "on_ac_power utility not found. Starting recollindex anyway." fi while true; do # Determine whether or not the power supply is plugged in. if test "x$ACPI" != "x" ; then on_ac_power STATUS=$? else STATUS=0 fi # Get the PID of the indexing daemon. if test -f ~/.recoll/index.pid ; then PID=`cat ~/.recoll/index.pid` # Make sure that this is recollindex running. pid could have # been reallocated ps ax | egrep "^[ \t]*$PID " | grep -q recollindex || PID="" fi # echo "Recollindex pid is $PID" if test $STATUS -eq 1 ; then # The power supply is not plugged in. See if the indexing daemon is # running, and if it is, kill it. The indexing daemon will not be # started. if test x"$PID" != x; then kill $PID fi else # The power supply is plugged in or we just don't know. # See if the indexing daemon is running, and if it's not start it. if test -z "$PID" ; then $INDEXER fi fi # Go to sleep for a while. sleep 120 continue done recoll-1.21.5/desktop/hotrecoll.py0000755000175000017500000000420712602163537016413 0ustar dockesdockes#!/usr/bin/python # # This script should be linked to a keyboard shortcut. Under gnome, # you can do this from the main preferences menu, or directly execute # "gnome-keybinding-properties" # # Make the script executable. Install it somewhere in the executable # path ("echo $PATH" to check what's in there), and then just enter # its name as the action to perform, or copy it anywhere and copy the # full path as the action. import gtk import wnck import os import sys from optparse import OptionParser def main(): parser = OptionParser() parser.add_option("-m", "--move-away", action="store_true", default=False, dest="clear_workspace", help="iconify to other workspace to avoid crowding panel") (options, args) = parser.parse_args() screen = wnck.screen_get_default() while gtk.events_pending(): gtk.main_iteration() recollMain = "" recollwins = []; for window in screen.get_windows(): if window.get_class_group().get_name() == "Recoll": if window.get_name() == "Recoll": recollMain = window recollwins.append(window) if not recollMain: os.system("recoll&") sys.exit(0) # Check the main window state, and either activate or minimize all # recoll windows. workspace = screen.get_active_workspace() if not recollMain.is_visible_on_workspace(workspace): for win in recollwins: win.move_to_workspace(workspace) if win != recollMain: win.unminimize(gtk.get_current_event_time()) recollMain.activate(gtk.get_current_event_time()) else: otherworkspace = None if options.clear_workspace: # We try to minimize to another workspace wkspcs = screen.get_workspaces() for wkspc in wkspcs: if wkspc.get_number() != workspace.get_number(): otherworkspace = wkspc break for win in recollwins: if otherworkspace: win.move_to_workspace(otherworkspace) win.minimize() if __name__ == '__main__': main() recoll-1.21.5/makestaticdist.sh0000644000175000017500000000363612602163571015742 0ustar dockesdockes#!/bin/sh #set -x # A shell-script to make a recoll static binary distribution: fatal() { echo $*;exit 1 } TAR=tar targetdir=${targetdir-/tmp} if test ! -d qtgui;then echo "Should be executed in the master recoll directory" exit 1 fi version=`cat VERSION` sys=`uname -s` sysrel=`uname -r` qtguiassign=`egrep '^QTGUI=' recollinstall` stripassign=`egrep '^STRIP=' recollinstall` test ! -z "$qtguiassign" || fatal "Can't find qt version" test ! -z "$stripassign" || fatal "Can't find strip string" eval $qtguiassign eval $stripassign echo "QTGUI: " $QTGUI "STRIP: " $STRIP topdirsimple=recoll-${version}-${sys}-${sysrel} topdir=$targetdir/$topdirsimple tarfile=$targetdir/recoll-${version}-${sys}-${sysrel}.tgz if test ! -d $topdir ; then mkdir $topdir || exit 1 else echo "Removing everything under $topdir Ok ? (y/n)" read rep if test $rep = 'y';then rm -rf $topdir/* else exit 1 fi fi rm -f index/recollindex ${QTGUI}/recoll make static || exit 1 ${STRIP} index/recollindex ${QTGUI}/recoll files=" COPYING INSTALL Makefile README VERSION desktop desktop/recoll-searchgui.desktop desktop/recoll.png doc/man doc/user filters index/rclmon.sh index/recollindex qtgui/i18n/*.qm qtgui/images qtgui/mtpics/*.png qtgui/recoll recollinstall sampleconf " $TAR chf - $files | (cd $topdir; $TAR xf -) # Remove any install dependancy chmod +w $topdir/Makefile || exit 1 sed -e '/^install:/c\ install: ' < $topdir/Makefile > $topdir/toto && \ mv $topdir/toto $topdir/Makefile # Clean up .svn directories from target. This would be easier with a # --exclude tar option, but we want this to work with non-gnu tars cd $topdir || exit 1 svndirs=`find . -name .svn -print` echo "In: `pwd`. Removing $svndirs ok ?" read rep test "$rep" = 'y' -o "$rep" = 'Y' && rm -rf $svndirs cd $targetdir (cd $targetdir ; \ $TAR chf - $topdirsimple | \ gzip > $tarfile) echo $tarfile created recoll-1.21.5/index/0000755000175000017500000000000012652665251013503 5ustar dockesdockesrecoll-1.21.5/index/mimetype.h0000644000175000017500000000257612602163571015510 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MIMETYPE_H_INCLUDED_ #define _MIMETYPE_H_INCLUDED_ #include class RclConfig; struct stat; /** * Try to determine a mime type for file. * * If stp is not null, this may imply more than matching the suffix, * the name must be usable to actually access file data. * @param filename file/path name to use * @param stp if not null use st_mode bits for directories etc. * @param cfg recoll config * @param usfc Use system's 'file' command as last resort (or not) */ string mimetype(const std::string &filename, const struct stat *stp, RclConfig *cfg, bool usfc); #endif /* _MIMETYPE_H_INCLUDED_ */ recoll-1.21.5/index/rclmonrcv.cpp0000644000175000017500000005450712602163571016220 0ustar dockesdockes#include "autoconfig.h" #ifdef RCL_MONITOR /* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "debuglog.h" #include "rclmon.h" #include "rclinit.h" #include "fstreewalk.h" #include "pathut.h" /** * Recoll real time monitor event receiver. This file has code to interface * to FAM or inotify and place events on the event queue. */ /** A small virtual interface for monitors. Lets * either fam/gamin or raw imonitor hide behind */ class RclMonitor { public: RclMonitor() : saved_errno(0) { } virtual ~RclMonitor() { } virtual bool addWatch(const string& path, bool isDir) = 0; virtual bool getEvent(RclMonEvent& ev, int msecs = -1) = 0; virtual bool ok() const = 0; // Does this monitor generate 'exist' events at startup? virtual bool generatesExist() const = 0; // Save significant errno after monitor calls int saved_errno; }; // Monitor factory. We only have one compiled-in kind at a time, no // need for a 'kind' parameter static RclMonitor *makeMonitor(); /** * Create directory watches during the initial file system tree walk. * * This class is a callback for the file system tree walker * class. The callback method alternatively creates the directory * watches and flushes the event queue (to avoid a possible overflow * while we create the watches) */ class WalkCB : public FsTreeWalkerCB { public: WalkCB(RclConfig *conf, RclMonitor *mon, RclMonEventQueue *queue, FsTreeWalker& walker) : m_config(conf), m_mon(mon), m_queue(queue), m_walker(walker) {} virtual ~WalkCB() {} virtual FsTreeWalker::Status processone(const string &fn, const struct stat *st, FsTreeWalker::CbFlag flg) { MONDEB(("rclMonRcvRun: processone %s m_mon %p m_mon->ok %d\n", fn.c_str(), m_mon, m_mon?m_mon->ok():0)); if (flg == FsTreeWalker::FtwDirEnter || flg == FsTreeWalker::FtwDirReturn) { m_config->setKeyDir(fn); // Set up skipped patterns for this subtree. m_walker.setSkippedNames(m_config->getSkippedNames()); } if (flg == FsTreeWalker::FtwDirEnter) { // Create watch when entering directory, but first empty // whatever events we may already have on queue while (m_queue->ok() && m_mon->ok()) { RclMonEvent ev; if (m_mon->getEvent(ev, 0)) { if (ev.m_etyp != RclMonEvent::RCLEVT_NONE) m_queue->pushEvent(ev); } else { MONDEB(("rclMonRcvRun: no event pending\n")); break; } } if (!m_mon || !m_mon->ok()) return FsTreeWalker::FtwError; // We do nothing special if addWatch fails for a reasonable reason if (!m_mon->addWatch(fn, true)) { if (m_mon->saved_errno != EACCES && m_mon->saved_errno != ENOENT) return FsTreeWalker::FtwError; } } else if (!m_mon->generatesExist() && flg == FsTreeWalker::FtwRegular) { // Have to synthetize events for regular files existence // at startup because the monitor does not do it // Note 2011-09-29: no sure this is actually needed. We just ran // an incremental indexing pass (before starting the // monitor). Why go over the files once more ? The only // reason I can see would be to catch modifications that // happen between the incremental and the start of // monitoring ? There should be another way: maybe start // monitoring without actually handling events (just // queue), then run incremental then start handling // events ? But we also have to do it on a directory // move! So keep it RclMonEvent ev; ev.m_path = fn; ev.m_etyp = RclMonEvent::RCLEVT_MODIFY; m_queue->pushEvent(ev); } return FsTreeWalker::FtwOk; } private: RclConfig *m_config; RclMonitor *m_mon; RclMonEventQueue *m_queue; FsTreeWalker& m_walker; }; /** Main thread routine: create watches, then forever wait for and queue events */ void *rclMonRcvRun(void *q) { RclMonEventQueue *queue = (RclMonEventQueue *)q; LOGDEB(("rclMonRcvRun: running\n")); recoll_threadinit(); // Make a local copy of the configuration as it doesn't like // concurrent accesses. It's ok to copy it here as the other // thread will not work before we have sent events. RclConfig lconfig(*queue->getConfig()); string loglevel; lconfig.getConfParam(string("daemloglevel"), loglevel); if (loglevel.empty()) lconfig.getConfParam(string("loglevel"), loglevel); if (!loglevel.empty()) { int lev = atoi(loglevel.c_str()); DebugLog::getdbl()->setloglevel(lev); } // Create the fam/whatever interface object RclMonitor *mon; if ((mon = makeMonitor()) == 0) { LOGERR(("rclMonRcvRun: makeMonitor failed\n")); queue->setTerminate(); return 0; } // Get top directories from config vector tdl = lconfig.getTopdirs(); if (tdl.empty()) { LOGERR(("rclMonRcvRun:: top directory list (topdirs param.) not" "found in config or Directory list parse error")); queue->setTerminate(); return 0; } // Walk the directory trees to add watches FsTreeWalker walker; walker.setSkippedPaths(lconfig.getDaemSkippedPaths()); WalkCB walkcb(&lconfig, mon, queue, walker); for (vector::iterator it = tdl.begin(); it != tdl.end(); it++) { lconfig.setKeyDir(*it); // Adjust the follow symlinks options bool follow; if (lconfig.getConfParam("followLinks", &follow) && follow) { walker.setOpts(FsTreeWalker::FtwFollow); } else { walker.setOpts(FsTreeWalker::FtwOptNone); } LOGDEB(("rclMonRcvRun: walking %s\n", it->c_str())); if (walker.walk(*it, walkcb) != FsTreeWalker::FtwOk) { LOGERR(("rclMonRcvRun: tree walk failed\n")); goto terminate; } if (walker.getErrCnt() > 0) { LOGINFO(("rclMonRcvRun: fs walker errors: %s\n", walker.getReason().c_str())); } } { bool doweb = false; lconfig.getConfParam("processwebqueue", &doweb); if (doweb) { string webqueuedir = lconfig.getWebQueueDir(); if (!mon->addWatch(webqueuedir, true)) { LOGERR(("rclMonRcvRun: addwatch (webqueuedir) failed\n")); if (mon->saved_errno != EACCES && mon->saved_errno != ENOENT) goto terminate; } } } // Forever wait for monitoring events and add them to queue: MONDEB(("rclMonRcvRun: waiting for events. q->ok() %d\n", queue->ok())); while (queue->ok() && mon->ok()) { RclMonEvent ev; // Note: I could find no way to get the select // call to return when a signal is delivered to the process // (it goes to the main thread, from which I tried to close or // write to the select fd, with no effect). So set a // timeout so that an intr will be detected if (mon->getEvent(ev, 2000)) { // Don't push events for skipped files. This would get // filtered on the processing side anyway, but causes // unnecessary wakeups and messages. Do not test // skippedPaths here, this would be incorrect (because a // topdir can be under a skippedPath and this was handled // while adding the watches). lconfig.setKeyDir(path_getfather(ev.m_path)); walker.setSkippedNames(lconfig.getSkippedNames()); if (walker.inSkippedNames(path_getsimple(ev.m_path))) continue; if (ev.m_etyp == RclMonEvent::RCLEVT_DIRCREATE) { // Recursive addwatch: there may already be stuff // inside this directory. Ie: files were quickly // created, or this is actually the target of a // directory move. This is necessary for inotify, but // it seems that fam/gamin is doing the job for us so // that we are generating double events here (no big // deal as prc will sort/merge). LOGDEB(("rclMonRcvRun: walking new dir %s\n", ev.m_path.c_str())); if (walker.walk(ev.m_path, walkcb) != FsTreeWalker::FtwOk) { LOGERR(("rclMonRcvRun: walking new dir %s: %s\n", ev.m_path.c_str(), walker.getReason().c_str())); goto terminate; } if (walker.getErrCnt() > 0) { LOGINFO(("rclMonRcvRun: fs walker errors: %s\n", walker.getReason().c_str())); } } if (ev.m_etyp != RclMonEvent::RCLEVT_NONE) queue->pushEvent(ev); } } terminate: queue->setTerminate(); LOGINFO(("rclMonRcvRun: monrcv thread routine returning\n")); return 0; } // Utility routine used by both the fam/gamin and inotify versions to get // rid of the id-path translation for a moved dir bool eraseWatchSubTree(map& idtopath, const string& top) { bool found = false; MONDEB(("Clearing map for [%s]\n", top.c_str())); map::iterator it = idtopath.begin(); while (it != idtopath.end()) { if (it->second.find(top) == 0) { found = true; idtopath.erase(it++); } else { it++; } } return found; } // We dont compile both the inotify and the fam interface and inotify // has preference #ifndef RCL_USE_INOTIFY #ifdef RCL_USE_FAM ////////////////////////////////////////////////////////////////////////// /** Fam/gamin -based monitor class */ #include #include #include #include #include /** FAM based monitor class. We have to keep a record of FAM watch request numbers to directory names as the event only contain the request number and file name, not the full path */ class RclFAM : public RclMonitor { public: RclFAM(); virtual ~RclFAM(); virtual bool addWatch(const string& path, bool isdir); virtual bool getEvent(RclMonEvent& ev, int msecs = -1); bool ok() const {return m_ok;} virtual bool generatesExist() const {return true;} private: bool m_ok; FAMConnection m_conn; void close() { FAMClose(&m_conn); m_ok = false; } map m_idtopath; const char *event_name(int code); }; // Translate event code to string (debug) const char *RclFAM::event_name(int code) { static const char *famevent[] = { "", "FAMChanged", "FAMDeleted", "FAMStartExecuting", "FAMStopExecuting", "FAMCreated", "FAMMoved", "FAMAcknowledge", "FAMExists", "FAMEndExist" }; static char unknown_event[30]; if (code < FAMChanged || code > FAMEndExist) { sprintf(unknown_event, "unknown (%d)", code); return unknown_event; } return famevent[code]; } RclFAM::RclFAM() : m_ok(false) { if (FAMOpen2(&m_conn, "Recoll")) { LOGERR(("RclFAM::RclFAM: FAMOpen2 failed, errno %d\n", errno)); return; } m_ok = true; } RclFAM::~RclFAM() { if (ok()) FAMClose(&m_conn); } static jmp_buf jbuf; static void onalrm(int sig) { longjmp(jbuf, 1); } bool RclFAM::addWatch(const string& path, bool isdir) { if (!ok()) return false; bool ret = false; MONDEB(("RclFAM::addWatch: adding %s\n", path.c_str())); // It happens that the following call block forever. // We'd like to be able to at least terminate on a signal here, but // gamin forever retries its write call on EINTR, so it's not even useful // to unblock signals. SIGALRM is not used by the main thread, so at least // ensure that we exit after gamin gets stuck. if (setjmp(jbuf)) { LOGERR(("RclFAM::addWatch: timeout talking to FAM\n")); return false; } signal(SIGALRM, onalrm); alarm(20); FAMRequest req; if (isdir) { if (FAMMonitorDirectory(&m_conn, path.c_str(), &req, 0) != 0) { LOGERR(("RclFAM::addWatch: FAMMonitorDirectory failed\n")); goto out; } } else { if (FAMMonitorFile(&m_conn, path.c_str(), &req, 0) != 0) { LOGERR(("RclFAM::addWatch: FAMMonitorFile failed\n")); goto out; } } m_idtopath[req.reqnum] = path; ret = true; out: alarm(0); return ret; } // Note: return false only for queue empty or error // Return EVT_NONE for bad event to keep queue processing going bool RclFAM::getEvent(RclMonEvent& ev, int msecs) { if (!ok()) return false; MONDEB(("RclFAM::getEvent:\n")); fd_set readfds; int fam_fd = FAMCONNECTION_GETFD(&m_conn); FD_ZERO(&readfds); FD_SET(fam_fd, &readfds); MONDEB(("RclFAM::getEvent: select. fam_fd is %d\n", fam_fd)); // Fam / gamin is sometimes a bit slow to send events. Always add // a little timeout, because if we fail to retrieve enough events, // we risk deadlocking in addwatch() if (msecs == 0) msecs = 2; struct timeval timeout; if (msecs >= 0) { timeout.tv_sec = msecs / 1000; timeout.tv_usec = (msecs % 1000) * 1000; } int ret; if ((ret=select(fam_fd+1, &readfds, 0, 0, msecs >= 0 ? &timeout : 0)) < 0) { LOGERR(("RclFAM::getEvent: select failed, errno %d\n", errno)); close(); return false; } else if (ret == 0) { // timeout MONDEB(("RclFAM::getEvent: select timeout\n")); return false; } MONDEB(("RclFAM::getEvent: select returned %d\n", ret)); if (!FD_ISSET(fam_fd, &readfds)) return false; // ?? 2011/03/15 gamin v0.1.10. There is initially a single null // byte on the connection so the first select always succeeds. If // we then call FAMNextEvent we stall. Using FAMPending works // around the issue, but we did not need this in the past and this // is most weird. if (FAMPending(&m_conn) <= 0) { MONDEB(("RclFAM::getEvent: FAMPending says no events\n")); return false; } MONDEB(("RclFAM::getEvent: call FAMNextEvent\n")); FAMEvent fe; if (FAMNextEvent(&m_conn, &fe) < 0) { LOGERR(("RclFAM::getEvent: FAMNextEvent failed, errno %d\n", errno)); close(); return false; } MONDEB(("RclFAM::getEvent: FAMNextEvent returned\n")); map::const_iterator it; if ((fe.filename[0] != '/') && (it = m_idtopath.find(fe.fr.reqnum)) != m_idtopath.end()) { ev.m_path = path_cat(it->second, fe.filename); } else { ev.m_path = fe.filename; } MONDEB(("RclFAM::getEvent: %-12s %s\n", event_name(fe.code), ev.m_path.c_str())); switch (fe.code) { case FAMCreated: if (path_isdir(ev.m_path)) { ev.m_etyp = RclMonEvent::RCLEVT_DIRCREATE; break; } /* FALLTHROUGH */ case FAMChanged: case FAMExists: // Let the other side sort out the status of this file vs the db ev.m_etyp = RclMonEvent::RCLEVT_MODIFY; break; case FAMMoved: case FAMDeleted: ev.m_etyp = RclMonEvent::RCLEVT_DELETE; // We would like to signal a directory here to enable cleaning // the subtree (on a dir move), but can't test the actual file // which is gone, and fam doesn't tell us if it's a dir or reg. // Let's rely on the fact that a directory should be watched if (eraseWatchSubTree(m_idtopath, ev.m_path)) ev.m_etyp |= RclMonEvent::RCLEVT_ISDIR; break; case FAMStartExecuting: case FAMStopExecuting: case FAMAcknowledge: case FAMEndExist: default: // Have to return something, this is different from an empty queue, // esp if we are trying to empty it... if (fe.code != FAMEndExist) LOGDEB(("RclFAM::getEvent: got other event %d!\n", fe.code)); ev.m_etyp = RclMonEvent::RCLEVT_NONE; break; } return true; } #endif // RCL_USE_FAM #endif // ! INOTIFY #ifdef RCL_USE_INOTIFY ////////////////////////////////////////////////////////////////////////// /** Inotify-based monitor class */ #include #include class RclIntf : public RclMonitor { public: RclIntf() : m_ok(false), m_fd(-1), m_evp(0), m_ep(0) { if ((m_fd = inotify_init()) < 0) { LOGERR(("RclIntf:: inotify_init failed, errno %d\n", errno)); return; } m_ok = true; } virtual ~RclIntf() { close(); } virtual bool addWatch(const string& path, bool isdir); virtual bool getEvent(RclMonEvent& ev, int msecs = -1); bool ok() const {return m_ok;} virtual bool generatesExist() const {return false;} private: bool m_ok; int m_fd; map m_idtopath; // Watch descriptor to name #define EVBUFSIZE (32*1024) char m_evbuf[EVBUFSIZE]; // Event buffer char *m_evp; // Pointer to next event or 0 char *m_ep; // Pointer to end of events const char *event_name(int code); void close() { if (m_fd >= 0) { ::close(m_fd); m_fd = -1; } m_ok = false; } }; const char *RclIntf::event_name(int code) { code &= ~(IN_ISDIR|IN_ONESHOT); switch (code) { case IN_ACCESS: return "IN_ACCESS"; case IN_MODIFY: return "IN_MODIFY"; case IN_ATTRIB: return "IN_ATTRIB"; case IN_CLOSE_WRITE: return "IN_CLOSE_WRITE"; case IN_CLOSE_NOWRITE: return "IN_CLOSE_NOWRITE"; case IN_CLOSE: return "IN_CLOSE"; case IN_OPEN: return "IN_OPEN"; case IN_MOVED_FROM: return "IN_MOVED_FROM"; case IN_MOVED_TO: return "IN_MOVED_TO"; case IN_MOVE: return "IN_MOVE"; case IN_CREATE: return "IN_CREATE"; case IN_DELETE: return "IN_DELETE"; case IN_DELETE_SELF: return "IN_DELETE_SELF"; case IN_MOVE_SELF: return "IN_MOVE_SELF"; case IN_UNMOUNT: return "IN_UNMOUNT"; case IN_Q_OVERFLOW: return "IN_Q_OVERFLOW"; case IN_IGNORED: return "IN_IGNORED"; default: { static char msg[50]; sprintf(msg, "Unknown event 0x%x", code); return msg; } }; } bool RclIntf::addWatch(const string& path, bool) { if (!ok()) return false; MONDEB(("RclIntf::addWatch: adding %s\n", path.c_str())); // CLOSE_WRITE is covered through MODIFY. CREATE is needed for mkdirs uint32_t mask = IN_MODIFY | IN_CREATE | IN_MOVED_FROM | IN_MOVED_TO | IN_DELETE // IN_ATTRIB used to be not needed to receive extattr // modification events, which was a bit weird because only ctime is // set, and now it is... | IN_ATTRIB #ifdef IN_DONT_FOLLOW | IN_DONT_FOLLOW #endif #ifdef IN_EXCL_UNLINK | IN_EXCL_UNLINK #endif ; int wd; if ((wd = inotify_add_watch(m_fd, path.c_str(), mask)) < 0) { saved_errno = errno; LOGERR(("RclIntf::addWatch: inotify_add_watch failed. errno %d\n", saved_errno)); if (errno == ENOSPC) { LOGERR(("RclIntf::addWatch: ENOSPC error may mean that you need" "increase the inotify kernel constants. See inotify(7)\n")); } return false; } m_idtopath[wd] = path; return true; } // Note: return false only for queue empty or error // Return EVT_NONE for bad event to keep queue processing going bool RclIntf::getEvent(RclMonEvent& ev, int msecs) { if (!ok()) return false; ev.m_etyp = RclMonEvent::RCLEVT_NONE; MONDEB(("RclIntf::getEvent:\n")); if (m_evp == 0) { fd_set readfds; FD_ZERO(&readfds); FD_SET(m_fd, &readfds); struct timeval timeout; if (msecs >= 0) { timeout.tv_sec = msecs / 1000; timeout.tv_usec = (msecs % 1000) * 1000; } int ret; MONDEB(("RclIntf::getEvent: select\n")); if ((ret=select(m_fd + 1, &readfds, 0, 0, msecs >= 0 ? &timeout : 0)) < 0) { LOGERR(("RclIntf::getEvent: select failed, errno %d\n", errno)); close(); return false; } else if (ret == 0) { MONDEB(("RclIntf::getEvent: select timeout\n")); // timeout return false; } MONDEB(("RclIntf::getEvent: select returned\n")); if (!FD_ISSET(m_fd, &readfds)) return false; int rret; if ((rret=read(m_fd, m_evbuf, sizeof(m_evbuf))) <= 0) { LOGERR(("RclIntf::getEvent: read failed, %d->%d errno %d\n", sizeof(m_evbuf), rret, errno)); close(); return false; } m_evp = m_evbuf; m_ep = m_evbuf + rret; } struct inotify_event *evp = (struct inotify_event *)m_evp; m_evp += sizeof(struct inotify_event); if (evp->len > 0) m_evp += evp->len; if (m_evp >= m_ep) m_evp = m_ep = 0; map::const_iterator it; if ((it = m_idtopath.find(evp->wd)) == m_idtopath.end()) { LOGERR(("RclIntf::getEvent: unknown wd %d\n", evp->wd)); return true; } ev.m_path = it->second; if (evp->len > 0) { ev.m_path = path_cat(ev.m_path, evp->name); } MONDEB(("RclIntf::getEvent: %-12s %s\n", event_name(evp->mask), ev.m_path.c_str())); if ((evp->mask & IN_MOVED_FROM) && (evp->mask & IN_ISDIR)) { // We get this when a directory is renamed. Erase the subtree // entries in the map. The subsequent MOVED_TO will recreate // them. This is probably not needed because the watches // actually still exist in the kernel, so that the wds // returned by future addwatches will be the old ones, and the // map will be updated in place. But still, this feels safer eraseWatchSubTree(m_idtopath, ev.m_path); } // IN_ATTRIB used to be not needed, but now it is if (evp->mask & (IN_MODIFY|IN_ATTRIB)) { ev.m_etyp = RclMonEvent::RCLEVT_MODIFY; } else if (evp->mask & (IN_DELETE | IN_MOVED_FROM)) { ev.m_etyp = RclMonEvent::RCLEVT_DELETE; if (evp->mask & IN_ISDIR) ev.m_etyp |= RclMonEvent::RCLEVT_ISDIR; } else if (evp->mask & (IN_CREATE | IN_MOVED_TO)) { if (evp->mask & IN_ISDIR) { ev.m_etyp = RclMonEvent::RCLEVT_DIRCREATE; } else { // We used to return null event because we would get a // modify event later, but it seems not to be the case any // more (10-2011). So generate MODIFY event ev.m_etyp = RclMonEvent::RCLEVT_MODIFY; } } else if (evp->mask & (IN_IGNORED)) { if (!m_idtopath.erase(evp->wd)) { LOGDEB0(("Got IGNORE event for unknown watch\n")); } else { eraseWatchSubTree(m_idtopath, ev.m_path); } } else { LOGDEB(("RclIntf::getEvent: unhandled event %s 0x%x %s\n", event_name(evp->mask), evp->mask, ev.m_path.c_str())); return true; } return true; } #endif // RCL_USE_INOTIFY /////////////////////////////////////////////////////////////////////// // The monitor 'factory' static RclMonitor *makeMonitor() { #ifdef RCL_USE_INOTIFY return new RclIntf; #endif #ifndef RCL_USE_INOTIFY #ifdef RCL_USE_FAM return new RclFAM; #endif #endif LOGINFO(("RclMonitor: neither Inotify nor Fam was compiled as " "file system change notification interface\n")); return 0; } #endif // RCL_MONITOR recoll-1.21.5/index/rclmon.sh0000755000175000017500000000357512602163537015341 0ustar dockesdockes#!/bin/sh # Copyright (C) 2006 J.F.Dockes ####################################################### # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ###################################################### ################### # Start/stop a recollindex program running as permanent real time indexer. # The running program writes its pid in $RECOLL_CONFDIR/index.pid # The portability of this script has not been fully tested. # fatal() { echo $* exit 1 } usage() { fatal "Usage: rclmon.sh " } test $# -eq 1 || usage export LANG=C RECOLL_CONFDIR=${RECOLL_CONFDIR:-$HOME/.recoll} #echo RECOLL_CONFDIR = ${RECOLL_CONFDIR} pidfile="${RECOLL_CONFDIR}/index.pid" opid=0 if test -f $pidfile ; then read opid junk < $pidfile fi if test $opid -gt 0; then out=`kill -0 ${opid} 2>&1` if test $? -ne 0 ; then if test `expr "$out" : '.*such *process.*'` -ne 0 ; then opid=0 else fatal cant test existence of running process fi fi fi #echo "Existing pid $opid" case $1 in start) if test "$opid" -ne 0 ; then fatal "Already running process: $opid" fi recollindex -m ;; stop) if test "$opid" -eq 0 ; then fatal "No process running" fi kill $opid ;; *) usage esac recoll-1.21.5/index/checkretryfailed.cpp0000644000175000017500000000322312602163537017512 0ustar dockesdockes/* Copyright (C) 2014 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include "rclconfig.h" #include "execmd.h" #include "debuglog.h" #include "checkretryfailed.h" using namespace std; bool checkRetryFailed(RclConfig *conf, bool record) { string cmd; if (!conf->getConfParam("checkneedretryindexscript", cmd)) { LOGDEB(("checkRetryFailed: 'checkneedretryindexscript' " "not set in config\n")); // We could toss a dice ? Say no retry in this case. return false; } // Look in the filters directory (ies). If not found execpath will // be the same as cmd, and we'll let execvp do its thing. string execpath = conf->findFilter(cmd); vector args; if (record) { args.push_back("1"); } ExecCmd ecmd; int status = ecmd.doexec(execpath, args); if (status == 0) { return true; } return false; } recoll-1.21.5/index/Makefile0000644000175000017500000000255112602163571015137 0ustar dockesdockesdepth = .. include $(depth)/mk/sysconf PROGS = recollindex SRCS = recollindex.cpp rclmonrcv.cpp rclmonprc.cpp all: depend librecoll $(PROGS) RECOLLINDEX_OBJS= recollindex.o rclmonrcv.o rclmonprc.o recollindex : $(RECOLLINDEX_OBJS) $(CXX) $(ALL_CXXFLAGS) $(RECOLL_LDFLAGS) $(LDFLAGS) -o recollindex \ $(RECOLLINDEX_OBJS) \ $(BSTATIC) $(LIBRECOLL) $(LIBXAPIAN) $(LIBXAPIANSTATICEXTRA) \ $(LIBICONV) $(BDYNAMIC) \ $(LIBFAM) \ $(X_LIBS) $(X_PRE_LIBS) $(X_LIBX11) $(X_EXTRA_LIBS) \ $(LIBSYS) $(LIBTHREADS) recollindex.o : recollindex.cpp $(CXX) $(ALL_CXXFLAGS) -c -o recollindex.o $< rclmonrcv.o : rclmonrcv.cpp $(CXX) $(ALL_CXXFLAGS) -c -o rclmonrcv.o $< rclmonprc.o : rclmonprc.cpp $(CXX) $(ALL_CXXFLAGS) -c -o rclmonprc.o $< SUBTREELIST_OBJS= subtreelist.o subtreelist : $(SUBTREELIST_OBJS) $(CXX) $(ALL_CXXFLAGS) -o subtreelist $(SUBTREELIST_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBXAPIAN) $(LIBSYS) subtreelist.o : subtreelist.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_SUBTREELIST -c subtreelist.cpp MIMETYPE_OBJS= trmimetype.o mimetype : $(MIMETYPE_OBJS) $(CXX) $(ALL_CXXFLAGS) -o mimetype $(MIMETYPE_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trmimetype.o : mimetype.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_MIMETYPE -c -o trmimetype.o \ mimetype.cpp include $(depth)/mk/commontargets include alldeps recoll-1.21.5/index/subtreelist.h0000644000175000017500000000243412602163537016217 0ustar dockesdockes/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SUBTREELIST_H_INCLUDED_ #define _SUBTREELIST_H_INCLUDED_ #include #include class RclConfig; // This queries the database with a pure directory-filter query, to // retrieve all the entries below the specified path. This is used by // the real time indexer to purge entries when a top directory is // renamed. This is really convoluted, I'd like a better way. extern bool subtreelist(RclConfig *config, const string& top, std::vector& paths); #endif /* _SUBTREELIST_H_INCLUDED_ */ recoll-1.21.5/index/subtreelist.cpp0000644000175000017500000000611712602163571016552 0ustar dockesdockes/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_SUBTREELIST #include "cstr.h" #include "refcntr.h" #include "rcldb.h" #include "searchdata.h" #include "rclquery.h" #include "subtreelist.h" #include "debuglog.h" bool subtreelist(RclConfig *config, const string& top, vector& paths) { LOGDEB(("subtreelist: top: [%s]\n", top.c_str())); Rcl::Db rcldb(config); if (!rcldb.open(Rcl::Db::DbRO)) { LOGERR(("subtreelist: can't open database in [%s]: %s\n", config->getDbDir().c_str(), rcldb.getReason().c_str())); return false; } Rcl::SearchData *sd = new Rcl::SearchData(Rcl::SCLT_OR, cstr_null); RefCntr rq(sd); sd->addClause(new Rcl::SearchDataClausePath(top, false)); Rcl::Query query(&rcldb); query.setQuery(rq); int cnt = query.getResCnt(); for (int i = 0; i < cnt; i++) { Rcl::Doc doc; if (!query.getDoc(i, doc)) break; string path = fileurltolocalpath(doc.url); if (!path.empty()) paths.push_back(path); } return true; } #else // TEST #include #include #include #include #include #include #include #include using namespace std; #include "subtreelist.h" #include "rclconfig.h" #include "rclinit.h" static char *thisprog; static char usage [] = " : list document paths in this tree\n" ; static void Usage(void) { cerr << thisprog << ": usage:" << endl << usage; exit(1); } static int op_flags; #define OPT_o 0x2 int main(int argc, char **argv) { string top; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { default: Usage(); break; } argc--; argv++; } if (argc < 1) Usage(); top = *argv++;argc--; string reason; RclConfig *config = recollinit(0, 0, reason, 0); if (!config || !config->ok()) { fprintf(stderr, "Recoll init failed: %s\n", reason.c_str()); exit(1); } vector paths; if (!subtreelist(config, top, paths)) { cerr << "subtreelist failed" << endl; exit(1); } for (vector::const_iterator it = paths.begin(); it != paths.end(); it++) { cout << *it << endl; } exit(0); } #endif recoll-1.21.5/index/indexer.h0000644000175000017500000001143612602163571015310 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _INDEXER_H_INCLUDED_ #define _INDEXER_H_INCLUDED_ #include #include #include #include #ifndef NO_NAMESPACES using std::string; using std::list; using std::map; using std::vector; #endif #include "rclconfig.h" #include "rcldb.h" #include "rcldoc.h" #ifdef IDX_THREADS #include "ptmutex.h" #endif class FsIndexer; class BeagleQueueIndexer; class DbIxStatus { public: enum Phase {DBIXS_NONE, DBIXS_FILES, DBIXS_PURGE, DBIXS_STEMDB, DBIXS_CLOSING, DBIXS_MONITOR, DBIXS_DONE}; Phase phase; string fn; // Last file processed int docsdone; // Documents actually updated int filesdone; // Files tested (updated or not) int dbtotdocs; // Doc count in index at start void reset() { phase = DBIXS_FILES; fn.erase(); docsdone = filesdone = dbtotdocs = 0; } DbIxStatus() {reset();} }; /** Callback to say what we're doing. If the update func returns false, we * stop as soon as possible without corrupting state */ class DbIxStatusUpdater { public: #ifdef IDX_THREADS PTMutexInit m_mutex; #endif DbIxStatus status; virtual ~DbIxStatusUpdater(){} // Convenience: change phase/fn and update virtual bool update(DbIxStatus::Phase phase, const string& fn) { #ifdef IDX_THREADS PTMutexLocker lock(m_mutex); #endif status.phase = phase; status.fn = fn; return update(); } // To be implemented by user for sending info somewhere virtual bool update() = 0; }; /** * The top level batch indexing object. Processes the configuration, * then invokes file system walking or other to populate/update the * database(s). */ class ConfIndexer { public: enum runStatus {IndexerOk, IndexerError}; ConfIndexer(RclConfig *cnf, DbIxStatusUpdater *updfunc = 0); virtual ~ConfIndexer(); // Indexer types. Maybe we'll have something more dynamic one day enum ixType {IxTNone, IxTFs=1, IxTBeagleQueue=2, IxTAll = IxTFs | IxTBeagleQueue}; // Misc indexing flags enum IxFlag {IxFNone = 0, IxFIgnoreSkip = 1, // Ignore skipped lists IxFNoWeb = 2, // Do not process the web queue. // First pass: just do the top files so that the user can // try searching asap. IxFQuickShallow = 4, // Do not retry files which previously failed ('+' sigs) IxFNoRetryFailed = 8, }; /** Run indexers */ bool index(bool resetbefore, ixType typestorun, int f = IxFNone); const string &getReason() {return m_reason;} /** Stemming reset to config: create needed, delete unconfigured */ bool createStemmingDatabases(); /** Create stem database for given language */ bool createStemDb(const string &lang); /** Create misspelling expansion dictionary if aspell i/f is available */ bool createAspellDict(); /** List possible stemmer names */ static vector getStemmerNames(); /** Index a list of files. No db cleaning or stemdb updating */ bool indexFiles(list &files, int f = IxFNone); /** Update index for list of documents given as list of docs (out of query) */ bool updateDocs(vector &docs, IxFlag f = IxFNone); static bool docsToPaths(vector &docs, vector &paths); /** Purge a list of files. */ bool purgeFiles(list &files, int f = IxFNone); /** Set in place reset mode */ void setInPlaceReset() {m_db.setInPlaceReset();} private: RclConfig *m_config; Rcl::Db m_db; FsIndexer *m_fsindexer; bool m_dobeagle; BeagleQueueIndexer *m_beagler; DbIxStatusUpdater *m_updater; string m_reason; // The first time we index, we do things a bit differently to // avoid user frustration (make at least some results available // fast by using several passes, the first ones to index common // interesting locations). bool runFirstIndexing(); bool firstFsIndexingSequence(); }; #endif /* _INDEXER_H_INCLUDED_ */ recoll-1.21.5/index/indexer.cpp0000644000175000017500000002544112602163571015644 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #include #include #include #include #include #include "cstr.h" #include "debuglog.h" #include "indexer.h" #include "fsindexer.h" #include "beaglequeue.h" #include "mimehandler.h" #ifdef RCL_USE_ASPELL #include "rclaspell.h" #endif ConfIndexer::ConfIndexer(RclConfig *cnf, DbIxStatusUpdater *updfunc) : m_config(cnf), m_db(cnf), m_fsindexer(0), m_dobeagle(false), m_beagler(0), m_updater(updfunc) { m_config->getConfParam("processwebqueue", &m_dobeagle); } ConfIndexer::~ConfIndexer() { deleteZ(m_fsindexer); deleteZ(m_beagler); } // Determine if this is likely the first time that the user runs // indexing. We don't look at the xapiandb as this may have been // explicitely removed for valid reasons, but at the indexing status // file, which should be unexistant-or-empty only before any indexing // has ever run bool ConfIndexer::runFirstIndexing() { // Indexing status file existing and not empty ? struct stat st; if (stat(m_config->getIdxStatusFile().c_str(), &st) == 0 && st.st_size > 0) { LOGDEB0(("ConfIndexer::runFirstIndexing: no: status file not empty\n")); exit(1); return false; } // And only do this if the user has kept the default topdirs (~). vectortdl = m_config->getTopdirs(); if (tdl.size() != 1 || tdl[0].compare(path_canon(path_tildexpand("~")))) { LOGDEB0(("ConfIndexer::runFirstIndexing: no: not home only\n")); return false; } return true; } bool ConfIndexer::firstFsIndexingSequence() { LOGDEB(("ConfIndexer::firstFsIndexingSequence\n")); deleteZ(m_fsindexer); m_fsindexer = new FsIndexer(m_config, &m_db, m_updater); if (!m_fsindexer) { return false; } int flushmb = m_db.getFlushMb(); m_db.setFlushMb(2); m_fsindexer->index(IxFQuickShallow); m_db.doFlush(); m_db.setFlushMb(flushmb); return true; } bool ConfIndexer::index(bool resetbefore, ixType typestorun, int flags) { Rcl::Db::OpenMode mode = resetbefore ? Rcl::Db::DbTrunc : Rcl::Db::DbUpd; if (!m_db.open(mode)) { LOGERR(("ConfIndexer: error opening database %s : %s\n", m_config->getDbDir().c_str(), m_db.getReason().c_str())); return false; } m_config->setKeyDir(cstr_null); if (typestorun & IxTFs) { if (runFirstIndexing()) { firstFsIndexingSequence(); } deleteZ(m_fsindexer); m_fsindexer = new FsIndexer(m_config, &m_db, m_updater); if (!m_fsindexer || !m_fsindexer->index(flags)) { m_db.close(); return false; } } if (m_dobeagle && (typestorun & IxTBeagleQueue)) { deleteZ(m_beagler); m_beagler = new BeagleQueueIndexer(m_config, &m_db, m_updater); if (!m_beagler || !m_beagler->index()) { m_db.close(); return false; } } if (typestorun == IxTAll) { // Get rid of all database entries that don't exist in the // filesystem anymore. Only if all *configured* indexers ran. if (m_updater && !m_updater->update(DbIxStatus::DBIXS_PURGE, string())) { m_db.close(); return false; } m_db.purge(); } // The close would be done in our destructor, but we want status // here. Makes no sense to check for cancel, we'll have to close // anyway if (m_updater) m_updater->update(DbIxStatus::DBIXS_CLOSING, string()); if (!m_db.close()) { LOGERR(("ConfIndexer::index: error closing database in %s\n", m_config->getDbDir().c_str())); return false; } if (m_updater && !m_updater->update(DbIxStatus::DBIXS_CLOSING, string())) return false; createStemmingDatabases(); if (m_updater && !m_updater->update(DbIxStatus::DBIXS_CLOSING, string())) return false; createAspellDict(); clearMimeHandlerCache(); if (m_updater) m_updater->update(DbIxStatus::DBIXS_DONE, string()); return true; } bool ConfIndexer::indexFiles(list& ifiles, int flag) { list myfiles; string origcwd = m_config->getOrigCwd(); for (list::const_iterator it = ifiles.begin(); it != ifiles.end(); it++) { myfiles.push_back(path_canon(*it, &origcwd)); } myfiles.sort(); if (!m_db.open(Rcl::Db::DbUpd)) { LOGERR(("ConfIndexer: indexFiles error opening database %s\n", m_config->getDbDir().c_str())); return false; } m_config->setKeyDir(cstr_null); bool ret = false; if (!m_fsindexer) m_fsindexer = new FsIndexer(m_config, &m_db, m_updater); if (m_fsindexer) ret = m_fsindexer->indexFiles(myfiles, flag); LOGDEB2(("ConfIndexer::indexFiles: fsindexer returned %d, " "%d files remainining\n", ret, myfiles.size())); if (m_dobeagle && !myfiles.empty() && !(flag & IxFNoWeb)) { if (!m_beagler) m_beagler = new BeagleQueueIndexer(m_config, &m_db, m_updater); if (m_beagler) { ret = ret && m_beagler->indexFiles(myfiles); } else { ret = false; } } // The close would be done in our destructor, but we want status here if (!m_db.close()) { LOGERR(("ConfIndexer::index: error closing database in %s\n", m_config->getDbDir().c_str())); return false; } ifiles = myfiles; clearMimeHandlerCache(); return ret; } bool ConfIndexer::docsToPaths(vector &docs, vector &paths) { for (vector::iterator it = docs.begin(); it != docs.end(); it++) { Rcl::Doc &idoc = *it; string backend; idoc.getmeta(Rcl::Doc::keybcknd, &backend); // This only makes sense for file system files: beagle docs are // always up to date because they can't be updated in the cache, // only added/removed. Same remark as made inside internfile, we // need a generic way to handle backends. if (!backend.empty() && backend.compare("FS")) continue; // Filesystem document. The url has to be like file:// if (idoc.url.find(cstr_fileu) != 0) { LOGERR(("idx::docsToPaths: FS backend and non fs url: [%s]\n", idoc.url.c_str())); continue; } paths.push_back(idoc.url.substr(7, string::npos)); } return true; } // Update index for specific documents. The docs come from an index // query, so the udi, backend etc. fields are filled. bool ConfIndexer::updateDocs(std::vector &docs, IxFlag flag) { vector paths; docsToPaths(docs, paths); list files(paths.begin(), paths.end()); if (!files.empty()) { return indexFiles(files, flag); } return true; } bool ConfIndexer::purgeFiles(std::list &files, int flag) { list myfiles; string origcwd = m_config->getOrigCwd(); for (list::const_iterator it = files.begin(); it != files.end(); it++) { myfiles.push_back(path_canon(*it, &origcwd)); } myfiles.sort(); if (!m_db.open(Rcl::Db::DbUpd)) { LOGERR(("ConfIndexer: purgeFiles error opening database %s\n", m_config->getDbDir().c_str())); return false; } bool ret = false; m_config->setKeyDir(cstr_null); if (!m_fsindexer) m_fsindexer = new FsIndexer(m_config, &m_db, m_updater); if (m_fsindexer) ret = m_fsindexer->purgeFiles(myfiles); if (m_dobeagle && !myfiles.empty() && !(flag & IxFNoWeb)) { if (!m_beagler) m_beagler = new BeagleQueueIndexer(m_config, &m_db, m_updater); if (m_beagler) { ret = ret && m_beagler->purgeFiles(myfiles); } else { ret = false; } } // The close would be done in our destructor, but we want status here if (!m_db.close()) { LOGERR(("ConfIndexer::purgefiles: error closing database in %s\n", m_config->getDbDir().c_str())); return false; } return ret; } // Create stemming databases. We also remove those which are not // configured. bool ConfIndexer::createStemmingDatabases() { string slangs; if (m_config->getConfParam("indexstemminglanguages", slangs)) { if (!m_db.open(Rcl::Db::DbUpd)) { LOGERR(("ConfIndexer::createStemmingDb: could not open db\n")) return false; } vector langs; stringToStrings(slangs, langs); // Get the list of existing stem dbs from the database (some may have // been manually created, we just keep those from the config vector dblangs = m_db.getStemLangs(); vector::const_iterator it; for (it = dblangs.begin(); it != dblangs.end(); it++) { if (find(langs.begin(), langs.end(), *it) == langs.end()) m_db.deleteStemDb(*it); } m_db.createStemDbs(langs); } m_db.close(); return true; } bool ConfIndexer::createStemDb(const string &lang) { if (!m_db.open(Rcl::Db::DbUpd)) return false; vector langs; stringToStrings(lang, langs); return m_db.createStemDbs(langs); } // The language for the aspell dictionary is handled internally by the aspell // module, either from a configuration variable or the NLS environment. bool ConfIndexer::createAspellDict() { LOGDEB2(("ConfIndexer::createAspellDict()\n")); #ifdef RCL_USE_ASPELL // For the benefit of the real-time indexer, we only initialize // noaspell from the configuration once. It can then be set to // true if dictionary generation fails, which avoids retrying // it forever. static int noaspell = -12345; if (noaspell == -12345) { noaspell = false; m_config->getConfParam("noaspell", &noaspell); } if (noaspell) return true; if (!m_db.open(Rcl::Db::DbRO)) { LOGERR(("ConfIndexer::createAspellDict: could not open db\n")); return false; } Aspell aspell(m_config); string reason; if (!aspell.init(reason)) { LOGERR(("ConfIndexer::createAspellDict: aspell init failed: %s\n", reason.c_str())); noaspell = true; return false; } LOGDEB(("ConfIndexer::createAspellDict: creating dictionary\n")); if (!aspell.buildDict(m_db, reason)) { LOGERR(("ConfIndexer::createAspellDict: aspell buildDict failed: %s\n", reason.c_str())); noaspell = true; return false; } #endif return true; } vector ConfIndexer::getStemmerNames() { return Rcl::Db::getStemmerNames(); } recoll-1.21.5/index/fsfetcher.h0000644000175000017500000000240212602163537015616 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FSFETCHER_H_INCLUDED_ #define _FSFETCHER_H_INCLUDED_ #include "fetcher.h" /** * The file-system fetcher: */ class FSDocFetcher : public DocFetcher{ /** FSDocFetcher::fetch always returns a file name */ virtual bool fetch(RclConfig* cnf, const Rcl::Doc& idoc, RawDoc& out); /** Calls stat to retrieve file signature data */ virtual bool makesig(RclConfig* cnf, const Rcl::Doc& idoc, string& sig); virtual ~FSDocFetcher() {} }; #endif /* _FSFETCHER_H_INCLUDED_ */ recoll-1.21.5/index/bglfetcher.h0000644000175000017500000000222212602163537015752 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _BGLFETCHER_H_INCLUDED_ #define _BGLFETCHER_H_INCLUDED_ #include "fetcher.h" /** * The Beagle cache fetcher: */ class BGLDocFetcher : public DocFetcher{ virtual bool fetch(RclConfig* cnf, const Rcl::Doc& idoc, RawDoc& out); virtual bool makesig(RclConfig* cnf, const Rcl::Doc& idoc, string& sig); virtual ~BGLDocFetcher() {} }; #endif /* _BGLFETCHER_H_INCLUDED_ */ recoll-1.21.5/index/fetcher.h0000644000175000017500000000560412602163571015272 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FETCHER_H_INCLUDED_ #define _FETCHER_H_INCLUDED_ #include #include #include "rcldoc.h" class RclConfig; /** * Generic interface to retrieve the data for a document designated by * its index data (udi/ipath/url). This is used to retrieve the data * for previewing. The actual implementation is specific to the kind * of backend (file system, beagle cache, others?...), and the * implementation may of course may share code with the indexing-time * functions from the specific backend. * * This is used to give access the raw document container (either as a * file or as a memory block). The Internfile code will then further * process it to get to the actual document, especially if * de-embedding is involved. */ class DocFetcher { public: /** A RawDoc is the data for a document-holding entity either as a memory block, or pointed to by a file name */ struct RawDoc { enum RawDocKind {RDK_FILENAME, RDK_DATA}; RawDocKind kind; std::string data; // Doc data or file name struct stat st; // Only used if RDK_FILENAME }; /** * Return the data for the requested document, either as a * file-system file or as a memory object (maybe stream too in the * future?) * @param cnf the global config * @param idoc the data gathered from the index for this doc (udi/ipath) * @param out we may return either a file name or the document data. */ virtual bool fetch(RclConfig* cnf, const Rcl::Doc& idoc, RawDoc& out) = 0; /** * Return the signature for the requested document. This is used for * up-to-date tests performed when not indexing (e.g.: verifying that a * document is not stale before previewing it). * @param cnf the global config * @param idoc the data gathered from the index for this doc (udi/ipath) * @param sig output. */ virtual bool makesig(RclConfig* cnf, const Rcl::Doc& idoc, string& sig) = 0; virtual ~DocFetcher() {} }; /** Return an appropriate fetcher object given the backend string identifier */ DocFetcher *docFetcherMake(const Rcl::Doc& idoc); #endif /* _FETCHER_H_INCLUDED_ */ recoll-1.21.5/index/fsindexer.h0000644000175000017500000001173712602163537015647 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _fsindexer_h_included_ #define _fsindexer_h_included_ #include #include "indexer.h" #include "fstreewalk.h" #ifdef IDX_THREADS #include "ptmutex.h" #include "workqueue.h" #endif // IDX_THREADS class DbIxStatusUpdater; class FIMissingStore; struct stat; class DbUpdTask; class InternfileTask; /** Index selected parts of the file system Tree indexing: we inherits FsTreeWalkerCB so that, the processone() method is called by the file-system tree walk code for each file and directory. We keep all state needed while indexing, and finally call the methods to purge the db of stale entries and create the stemming databases. Single file(s) indexing: there are also calls to index or purge lists of files. No database purging or stem db updating in this case. */ class FsIndexer : public FsTreeWalkerCB { public: /** Constructor does nothing but store parameters * * @param cnf Configuration data * @param updfunc Status updater callback */ FsIndexer(RclConfig *cnf, Rcl::Db *db, DbIxStatusUpdater *updfunc = 0); virtual ~FsIndexer(); /** * Top level file system tree index method for updating a given database. * * We open the database, * then call a file system walk for each top-level directory. */ bool index(int flags); /** Index a list of files. No db cleaning or stemdb updating */ bool indexFiles(std::list &files, int f = ConfIndexer::IxFNone); /** Purge a list of files. */ bool purgeFiles(std::list &files); /** Tree walker callback method */ FsTreeWalker::Status processone(const string &fn, const struct stat *, FsTreeWalker::CbFlag); /** Make signature for file up to date checks */ static void makesig(const struct stat *stp, string& out); private: class PurgeCandidateRecorder { public: PurgeCandidateRecorder() : dorecord(false) {} void setRecord(bool onoff) { dorecord = onoff; } void record(const string& udi) { // This test does not need to be protected: the value is set at // init and never changed. if (!dorecord) return; #ifdef IDX_THREADS PTMutexLocker locker(mutex); #endif udis.push_back(udi); } const vector& getCandidates() { return udis; } private: #ifdef IDX_THREADS PTMutexInit mutex; #endif bool dorecord; std::vector udis; }; FsTreeWalker m_walker; RclConfig *m_config; Rcl::Db *m_db; string m_reason; DbIxStatusUpdater *m_updater; // Top/start directories list std::vector m_tdl; // Store for missing filters and associated mime types FIMissingStore *m_missing; // Recorder for files that may need subdoc purging. PurgeCandidateRecorder m_purgeCandidates; // The configuration can set attribute fields to be inherited by // all files in a file system area. Ie: set "rclaptg = thunderbird" // inside ~/.thunderbird. The boolean is set at init to avoid // further wasteful processing if no local fields are set. // This should probably moved to internfile so that the // localfields get exactly the same processing as those generated by the // filters (as was done for metadatacmds fields) bool m_havelocalfields; string m_slocalfields; map m_localfields; // Activate detection of xattr-only document updates. Experimental, so // needs a config option bool m_detectxattronly; // No retry of previously failed files bool m_noretryfailed; #ifdef IDX_THREADS friend void *FsIndexerDbUpdWorker(void*); friend void *FsIndexerInternfileWorker(void*); int m_loglevel; WorkQueue m_iwqueue; WorkQueue m_dwqueue; bool m_haveInternQ; bool m_haveSplitQ; RclConfig *m_stableconfig; #endif // IDX_THREADS bool init(); void localfieldsfromconf(); void setlocalfields(const map& flds, Rcl::Doc& doc); string getDbDir() {return m_config->getDbDir();} FsTreeWalker::Status processonefile(RclConfig *config, const string &fn, const struct stat *, const map& localfields); }; #endif /* _fsindexer_h_included_ */ recoll-1.21.5/index/beaglequeue.cpp0000644000175000017500000003747212602163571016501 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include "cstr.h" #include "pathut.h" #include "debuglog.h" #include "fstreewalk.h" #include "beaglequeue.h" #include "beaglequeuecache.h" #include "circache.h" #include "smallut.h" #include "fileudi.h" #include "internfile.h" #include "wipedir.h" #include "indexer.h" #include "readfile.h" #include "conftree.h" #include "transcode.h" #include "cancelcheck.h" #include #include using namespace std; #include // Beagle creates a file named .xxx (where xxx is the name for the main file // in the queue), to hold external metadata (http or created by Beagle). // This class reads the .xxx, dotfile, and turns it into an Rcl::Doc holder class BeagleDotFile { public: BeagleDotFile(RclConfig *conf, const string& fn) : m_conf(conf), m_fn(fn) {} // Read input line, strip it of eol and return as c++ string bool readLine(string& line) { static const int LL = 2048; char cline[LL]; cline[0] = 0; m_input.getline(cline, LL-1); if (!m_input.good()) { if (m_input.bad()) { LOGERR(("beagleDotFileRead: input.bad()\n")); } return false; } int ll = strlen(cline); while (ll > 0 && (cline[ll-1] == '\n' || cline[ll-1] == '\r')) { cline[ll-1] = 0; ll--; } line.assign(cline, ll); LOGDEB2(("BeagleDotFile:readLine: [%s]\n", line.c_str())); return true; } // Process a beagle dot file and set interesting stuff in the doc bool toDoc(Rcl::Doc& doc) { string line; m_input.open(m_fn.c_str(), ios::in); if (!m_input.good()) { LOGERR(("BeagleDotFile: open failed for [%s]\n", m_fn.c_str())); return false; } // Read the 3 first lines: // - url // - hit type: we only know about Bookmark and WebHistory for now // - content-type. if (!readLine(line)) return false; doc.url = line; if (!readLine(line)) return false; doc.meta[Rcl::Doc::keybght] = line; if (!readLine(line)) return false; doc.mimetype = line; // We set the bookmarks mtype as html (the text is empty // anyway), so that the html viewer will be called on 'Open' bool isbookmark = false; if (!stringlowercmp("bookmark", doc.meta[Rcl::Doc::keybght])) { isbookmark = true; doc.mimetype = "text/html"; } string confstr; string ss(" "); // Read the rest: fields and keywords. We do a little // massaging of the input lines, then use a ConfSimple to // parse, and finally insert the key/value pairs into the doc // meta[] array for (;;) { if (!readLine(line)) { // Eof hopefully break; } if (line.find("t:") != 0) continue; line = line.substr(2); confstr += line + "\n"; } ConfSimple fields(confstr, 1); vector names = fields.getNames(cstr_null); for (vector::iterator it = names.begin(); it != names.end(); it++) { string value; fields.get(*it, value, cstr_null); if (!value.compare("undefined") || !value.compare("null")) continue; string *valuep = &value; string cvalue; if (isbookmark) { // It appears that bookmarks are stored in the users' // locale charset (not too sure). No idea what to do // for other types, would have to check the plugin. string charset = m_conf->getDefCharset(true); transcode(value, cvalue, charset, "UTF-8"); valuep = &cvalue; } string caname = m_conf->fieldCanon(*it); doc.meta[caname].append(ss + *valuep); } // Finally build the confsimple that we will save to the // cache, from the doc fields. This could also be done in // parallel with the doc.meta build above, but simpler this // way. We need it because not all interesting doc fields are // in the meta array (ie: mimetype, url), and we want // something homogenous and easy to save. for (map::const_iterator it = doc.meta.begin(); it != doc.meta.end(); it++) { m_fields.set((*it).first, (*it).second, cstr_null); } m_fields.set(cstr_url, doc.url, cstr_null); m_fields.set(cstr_bgc_mimetype, doc.mimetype, cstr_null); return true; } RclConfig *m_conf; ConfSimple m_fields; string m_fn; ifstream m_input; }; // Initialize. Compute paths and create a temporary directory that will be // used by internfile() BeagleQueueIndexer::BeagleQueueIndexer(RclConfig *cnf, Rcl::Db *db, DbIxStatusUpdater *updfunc) : m_config(cnf), m_db(db), m_cache(0), m_updater(updfunc), m_nocacheindex(false) { m_queuedir = m_config->getWebQueueDir(); path_catslash(m_queuedir); m_cache = new BeagleQueueCache(cnf); } BeagleQueueIndexer::~BeagleQueueIndexer() { LOGDEB(("BeagleQueueIndexer::~\n")); deleteZ(m_cache); } // Index document stored in the cache. bool BeagleQueueIndexer::indexFromCache(const string& udi) { if (!m_db) return false; CancelCheck::instance().checkCancel(); Rcl::Doc dotdoc; string data; string hittype; if (!m_cache || !m_cache->getFromCache(udi, dotdoc, data, &hittype)) { LOGERR(("BeagleQueueIndexer::indexFromCache: cache failed\n")); return false; } if (hittype.empty()) { LOGERR(("BeagleIndexer::index: cc entry has no hit type\n")); return false; } if (!stringlowercmp("bookmark", hittype)) { // Just index the dotdoc dotdoc.meta[Rcl::Doc::keybcknd] = "BGL"; return m_db->addOrUpdate(udi, cstr_null, dotdoc); } else { Rcl::Doc doc; FileInterner interner(data, m_config, FileInterner::FIF_doUseInputMimetype, dotdoc.mimetype); FileInterner::Status fis; try { fis = interner.internfile(doc); } catch (CancelExcept) { LOGERR(("BeagleQueueIndexer: interrupted\n")); return false; } if (fis != FileInterner::FIDone) { LOGERR(("BeagleQueueIndexer: bad status from internfile\n")); return false; } doc.mimetype = dotdoc.mimetype; doc.fmtime = dotdoc.fmtime; doc.url = dotdoc.url; doc.pcbytes = dotdoc.pcbytes; doc.sig.clear(); doc.meta[Rcl::Doc::keybcknd] = "BGL"; return m_db->addOrUpdate(udi, cstr_null, doc); } } void BeagleQueueIndexer::updstatus(const string& udi) { if (m_updater) { ++(m_updater->status.docsdone); if (m_updater->status.dbtotdocs < m_updater->status.docsdone) m_updater->status.dbtotdocs = m_updater->status.docsdone; m_updater->status.fn = udi; m_updater->update(); } } bool BeagleQueueIndexer::index() { if (!m_db) return false; LOGDEB(("BeagleQueueIndexer::processqueue: [%s]\n", m_queuedir.c_str())); m_config->setKeyDir(m_queuedir); if (!makepath(m_queuedir)) { LOGERR(("BeagleQueueIndexer:: can't create queuedir [%s] errno %d\n", m_queuedir.c_str(), errno)); return false; } if (!m_cache || !m_cache->cc()) { LOGERR(("BeagleQueueIndexer: cache initialization failed\n")); return false; } CirCache *cc = m_cache->cc(); // First check/index files found in the cache. If the index was reset, // this actually does work, else it sets the existence flags (avoid // purging). We don't do this when called from indexFiles if (!m_nocacheindex) { bool eof; if (!cc->rewind(eof)) { // rewind can return eof if the cache is empty if (!eof) return false; } int nentries = 0; do { string udi; if (!cc->getCurrentUdi(udi)) { LOGERR(("BeagleQueueIndexer:: cache file damaged\n")); break; } if (udi.empty()) continue; if (m_db->needUpdate(udi, cstr_null)) { try { // indexFromCache does a CirCache::get(). We could // arrange to use a getCurrent() instead, would be more // efficient indexFromCache(udi); updstatus(udi); } catch (CancelExcept) { LOGERR(("BeagleQueueIndexer: interrupted\n")); return false; } } nentries++; } while (cc->next(eof)); } // Finally index the queue FsTreeWalker walker(FsTreeWalker::FtwNoRecurse); walker.addSkippedName(".*"); FsTreeWalker::Status status = walker.walk(m_queuedir, *this); LOGDEB(("BeagleQueueIndexer::processqueue: done: status %d\n", status)); return true; } // Index a list of files (sent by the real time monitor) bool BeagleQueueIndexer::indexFiles(list& files) { LOGDEB(("BeagleQueueIndexer::indexFiles\n")); if (!m_db) { LOGERR(("BeagleQueueIndexer::indexfiles no db??\n")); return false; } for (list::iterator it = files.begin(); it != files.end();) { if (it->empty()) {//?? it++; continue; } string father = path_getfather(*it); if (father.compare(m_queuedir)) { LOGDEB(("BeagleQueueIndexer::indexfiles: skipping [%s] (nq)\n", it->c_str())); it++; continue; } // Pb: we are often called with the dot file, before the // normal file exists, and sometimes never called for the // normal file afterwards (ie for bookmarks where the normal // file is empty). So we perform a normal queue run at the end // of the function to catch older stuff. Still this is not // perfect, sometimes some files will not be indexed before // the next run. string fn = path_getsimple(*it); if (fn.empty() || fn.at(0) == '.') { it++; continue; } struct stat st; if (lstat(it->c_str(), &st) != 0) { LOGERR(("BeagleQueueIndexer::indexfiles: cant stat [%s]\n", it->c_str())); it++; continue; } if (!S_ISREG(st.st_mode)) { LOGDEB(("BeagleQueueIndexer::indexfiles: skipping [%s] (nr)\n", it->c_str())); it++; continue; } processone(*it, &st, FsTreeWalker::FtwRegular); it = files.erase(it); } m_nocacheindex = true; index(); // Note: no need to reset nocacheindex, we're in the monitor now return true; } FsTreeWalker::Status BeagleQueueIndexer::processone(const string &path, const struct stat *stp, FsTreeWalker::CbFlag flg) { if (!m_db) //?? return FsTreeWalker::FtwError; bool dounlink = false; if (flg != FsTreeWalker::FtwRegular) return FsTreeWalker::FtwOk; string dotpath = path_cat(path_getfather(path), string(".") + path_getsimple(path)); LOGDEB(("BeagleQueueIndexer: prc1: [%s]\n", path.c_str())); BeagleDotFile dotfile(m_config, dotpath); Rcl::Doc dotdoc; string udi, udipath; if (!dotfile.toDoc(dotdoc)) goto out; //dotdoc.dump(1); // Have to use the hit type for the udi, because the same url can exist // as a bookmark or a page. udipath = path_cat(dotdoc.meta[Rcl::Doc::keybght], url_gpath(dotdoc.url)); make_udi(udipath, cstr_null, udi); LOGDEB(("BeagleQueueIndexer: prc1: udi [%s]\n", udi.c_str())); char ascdate[30]; sprintf(ascdate, "%ld", long(stp->st_mtime)); if (!stringlowercmp("bookmark", dotdoc.meta[Rcl::Doc::keybght])) { // For bookmarks, we just index the doc that was built from the // metadata. if (dotdoc.fmtime.empty()) dotdoc.fmtime = ascdate; char cbuf[100]; sprintf(cbuf, "%lld", (long long)stp->st_size); dotdoc.pcbytes = cbuf; // Document signature for up to date checks: none. dotdoc.sig.clear(); dotdoc.meta[Rcl::Doc::keybcknd] = "BGL"; if (!m_db->addOrUpdate(udi, cstr_null, dotdoc)) return FsTreeWalker::FtwError; } else { Rcl::Doc doc; // Store the dotdoc fields in the future doc. In case someone wants // to use beagle-generated fields like beagle:inurl doc.meta = dotdoc.meta; FileInterner interner(path, stp, m_config, FileInterner::FIF_doUseInputMimetype, &dotdoc.mimetype); FileInterner::Status fis; try { fis = interner.internfile(doc); } catch (CancelExcept) { LOGERR(("BeagleQueueIndexer: interrupted\n")); goto out; } if (fis != FileInterner::FIDone && fis != FileInterner::FIAgain) { LOGERR(("BeagleQueueIndexer: bad status from internfile\n")); // TOBEDONE: internfile can return FIAgain here if it is // paging a big text file, we should loop. Means we're // only indexing the first page for text/plain files // bigger than the page size (dlft: 1MB) for now. goto out; } if (doc.fmtime.empty()) doc.fmtime = ascdate; dotdoc.fmtime = doc.fmtime; char cbuf[100]; sprintf(cbuf, "%lld", (long long)stp->st_size); doc.pcbytes = cbuf; // Document signature for up to date checks: none. doc.sig.clear(); doc.url = dotdoc.url; doc.meta[Rcl::Doc::keybcknd] = "BGL"; if (!m_db->addOrUpdate(udi, cstr_null, doc)) return FsTreeWalker::FtwError; } // Copy to cache { // doc fields not in meta, needing saving to the cache dotfile.m_fields.set("fmtime", dotdoc.fmtime, cstr_null); // fbytes is used for historical reasons, should be pcbytes, but makes // no sense to change. dotfile.m_fields.set(cstr_fbytes, dotdoc.pcbytes, cstr_null); dotfile.m_fields.set("udi", udi, cstr_null); string fdata; file_to_string(path, fdata); if (!m_cache || !m_cache->cc()) { LOGERR(("BeagleQueueIndexer: cache initialization failed\n")); goto out; } if (!m_cache->cc()->put(udi, &dotfile.m_fields, fdata, 0)) { LOGERR(("BeagleQueueIndexer::prc1: cache_put failed; %s\n", m_cache->cc()->getReason().c_str())); goto out; } } updstatus(udi); dounlink = true; out: if (dounlink) { unlink(path.c_str()); unlink(dotpath.c_str()); } return FsTreeWalker::FtwOk; } recoll-1.21.5/index/rclmonprc.cpp0000644000175000017500000004562412602163571016212 0ustar dockesdockes#include "autoconfig.h" #ifdef RCL_MONITOR /* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** * Recoll real time monitor processing. This file has the code to retrieve * event from the event queue and do the database-side processing. Also the * initialization function. */ #include #include #include #include #include #include #include #include #include #include #include using std::list; using std::vector; #include "debuglog.h" #include "rclmon.h" #include "debuglog.h" #include "execmd.h" #include "recollindex.h" #include "pathut.h" #include "x11mon.h" #include "subtreelist.h" typedef unsigned long mttcast; static pthread_t rcv_thrid; // Seconds between auxiliary db (stem, spell) updates: static const int dfltauxinterval = 60 *60; static int auxinterval = dfltauxinterval; // Seconds between indexing queue processing: for merging events to // fast changing files and saving some of the indexing overhead. static const int dfltixinterval = 30; static int ixinterval = dfltixinterval; static RclMonEventQueue rclEQ; // // Delayed events: this is a special feature for fast changing files. // A list of pattern/delays can be specified in the configuration so // that they don't get re-indexed before some timeout is elapsed. Such // events are kept on a separate queue (m_dqueue) with an auxiliary // list in time-to-reindex order, while the normal events are on // m_iqueue. // Queue management performance: on a typical recoll system there will // be only a few entries on the event queues and no significant time // will be needed to manage them. Even on a busy system, the time used // would most probably be negligible compared to the actual processing // of the indexing events. So this is just for reference. Let I be the // number of immediate events and D the number of delayed ones, N // stands for either. // // Periodic timeout polling: the recollindex process periodically (2S) // wakes up to check for exit requests. At this time it also checks // the queues for new entries (should not happen because the producer // would normally wake up the consumer threads), or ready entries // among the delayed ones. At this time it calls the "empty()" // routine. This has constant time behaviour (checks for stl container // emptiness and the top entry of the delays list). // // Adding a new event (pushEvent()): this performs a search for an // existing event with the same path (O(log(N)), then an insert on the // appropriate queue (O(log(N))) and an insert on the times list (O(D)). // // Popping an event: this is constant time as it just looks at the // tops of the normal and delayed queues. // Indexing event container: a map indexed by file path for fast // insertion of duplicate events to the same file typedef map queue_type; // Entries for delayed events are duplicated (as iterators) on an // auxiliary, sorted by time-to-reindex list. We could get rid of // this, the price would be that the RclEQ.empty() call would have to // walk the whole queue instead of only looking at the first delays // entry. typedef list delays_type; // DelayPat stores a path wildcard pattern and a minimum time between // reindexes, it is read from the recoll configuration struct DelayPat { string pattern; int seconds; DelayPat() : seconds(0) {} }; /** Private part of RclEQ: things that we don't wish to exist in the interface * include file. */ class RclEQData { public: int m_opts; // Queue for normal files (unlimited reindex) queue_type m_iqueue; // Queue for delayed reindex files queue_type m_dqueue; // The delays list stores pointers (iterators) to elements on // m_dqueue. The list is kept in time-to-index order. Elements of // m_dqueue which are also in m_delays can only be deleted while // walking m_delays, so we are certain that the m_dqueue iterators // stored in m_delays remain valid. delays_type m_delays; // Configured intervals for path patterns, read from the configuration. vector m_delaypats; RclConfig *m_config; bool m_ok; pthread_mutex_t m_mutex; pthread_cond_t m_cond; RclEQData() : m_config(0), m_ok(false) { if (!pthread_mutex_init(&m_mutex, 0) && !pthread_cond_init(&m_cond, 0)) m_ok = true; } void readDelayPats(int dfltsecs); DelayPat searchDelayPats(const string& path) { for (vector::iterator it = m_delaypats.begin(); it != m_delaypats.end(); it++) { if (fnmatch(it->pattern.c_str(), path.c_str(), 0) == 0) { return *it; } } return DelayPat(); } void delayInsert(const queue_type::iterator &qit); }; void RclEQData::readDelayPats(int dfltsecs) { if (m_config == 0) return; string patstring; if (!m_config->getConfParam("mondelaypatterns", patstring) || patstring.empty()) return; vector dplist; if (!stringToStrings(patstring, dplist)) { LOGERR(("rclEQData: bad pattern list: [%s]\n", patstring.c_str())); return; } for (vector::iterator it = dplist.begin(); it != dplist.end(); it++) { string::size_type pos = it->find_last_of(":"); DelayPat dp; dp.pattern = it->substr(0, pos); if (pos != string::npos && pos != it->size()-1) { dp.seconds = atoi(it->substr(pos+1).c_str()); } else { dp.seconds = dfltsecs; } m_delaypats.push_back(dp); LOGDEB2(("rclmon::readDelayPats: add [%s] %d\n", dp.pattern.c_str(), dp.seconds)); } } // Insert event (as queue iterator) into delays list, in time order, // We DO NOT take care of duplicate qits. erase should be called first // when necessary. void RclEQData::delayInsert(const queue_type::iterator &qit) { MONDEB(("RclEQData::delayInsert: minclock %lu\n", (mttcast)qit->second.m_minclock)); for (delays_type::iterator dit = m_delays.begin(); dit != m_delays.end(); dit++) { queue_type::iterator qit1 = *dit; if ((*qit1).second.m_minclock > qit->second.m_minclock) { m_delays.insert(dit, qit); return; } } m_delays.push_back(qit); } RclMonEventQueue::RclMonEventQueue() { m_data = new RclEQData; } RclMonEventQueue::~RclMonEventQueue() { delete m_data; } void RclMonEventQueue::setopts(int opts) { if (m_data) m_data->m_opts = opts; } /** Wait until there is something to process on the queue, or timeout. * Must be called with the queue locked */ bool RclMonEventQueue::wait(int seconds, bool *top) { MONDEB(("RclMonEventQueue::wait\n")); if (!empty()) { MONDEB(("RclMonEventQueue:: imm return\n")); return true; } int err; if (seconds > 0) { struct timespec to; to.tv_sec = time(0L) + seconds; to.tv_nsec = 0; if (top) *top = false; if ((err = pthread_cond_timedwait(&m_data->m_cond, &m_data->m_mutex, &to))) { if (err == ETIMEDOUT) { *top = true; MONDEB(("RclMonEventQueue:: timeout\n")); return true; } LOGERR(("RclMonEventQueue::wait:pthread_cond_timedwait failed" "with err %d\n", err)); return false; } } else { if ((err = pthread_cond_wait(&m_data->m_cond, &m_data->m_mutex))) { LOGERR(("RclMonEventQueue::wait: pthread_cond_wait failed" "with err %d\n", err)); return false; } } MONDEB(("RclMonEventQueue:: normal return\n")); return true; } bool RclMonEventQueue::lock() { MONDEB(("RclMonEventQueue:: lock\n")); if (pthread_mutex_lock(&m_data->m_mutex)) { LOGERR(("RclMonEventQueue::lock: pthread_mutex_lock failed\n")); return false; } MONDEB(("RclMonEventQueue:: lock return\n")); return true; } bool RclMonEventQueue::unlock() { MONDEB(("RclMonEventQueue:: unlock\n")); if (pthread_mutex_unlock(&m_data->m_mutex)) { LOGERR(("RclMonEventQueue::lock: pthread_mutex_unlock failed\n")); return false; } return true; } void RclMonEventQueue::setConfig(RclConfig *cnf) { m_data->m_config = cnf; // Don't use ixinterval here, could be 0 ! Base the default // delayed reindex delay on the default ixinterval delay m_data->readDelayPats(10 * dfltixinterval); } RclConfig *RclMonEventQueue::getConfig() { return m_data->m_config; } bool RclMonEventQueue::ok() { if (m_data == 0) { LOGINFO(("RclMonEventQueue: not ok: bad state\n")); return false; } if (stopindexing) { LOGINFO(("RclMonEventQueue: not ok: stop request\n")); return false; } if (!m_data->m_ok) { LOGINFO(("RclMonEventQueue: not ok: queue terminated\n")); return false; } return true; } void RclMonEventQueue::setTerminate() { MONDEB(("RclMonEventQueue:: setTerminate\n")); lock(); m_data->m_ok = false; pthread_cond_broadcast(&m_data->m_cond); unlock(); } // Must be called with the queue locked bool RclMonEventQueue::empty() { if (m_data == 0) { MONDEB(("RclMonEventQueue::empty(): true (m_data==0)\n")); return true; } if (!m_data->m_iqueue.empty()) { MONDEB(("RclMonEventQueue::empty(): false (m_iqueue not empty)\n")); return true; } if (m_data->m_dqueue.empty()) { MONDEB(("RclMonEventQueue::empty(): true (m_Xqueue both empty)\n")); return true; } // Only dqueue has events. Have to check the delays (only the // first, earliest one): queue_type::iterator qit = *(m_data->m_delays.begin()); if (qit->second.m_minclock > time(0)) { MONDEB(("RclMonEventQueue::empty(): true (no delay ready %lu)\n", (mttcast)qit->second.m_minclock)); return true; } MONDEB(("RclMonEventQueue::empty(): returning false (delay expired)\n")); return false; } // Retrieve indexing event for processing. Returns empty event if // nothing interesting is found // Must be called with the queue locked RclMonEvent RclMonEventQueue::pop() { time_t now = time(0); MONDEB(("RclMonEventQueue::pop(), now %lu\n", (mttcast)now)); // Look at the delayed events, get rid of the expired/unactive // ones, possibly return an expired/needidx one. while (!m_data->m_delays.empty()) { delays_type::iterator dit = m_data->m_delays.begin(); queue_type::iterator qit = *dit; MONDEB(("RclMonEventQueue::pop(): in delays: evt minclock %lu\n", (mttcast)qit->second.m_minclock)); if (qit->second.m_minclock <= now) { if (qit->second.m_needidx) { RclMonEvent ev = qit->second; qit->second.m_minclock = time(0) + qit->second.m_itvsecs; qit->second.m_needidx = false; m_data->m_delays.erase(dit); m_data->delayInsert(qit); return ev; } else { // Delay elapsed without new update, get rid of event. m_data->m_dqueue.erase(qit); m_data->m_delays.erase(dit); } } else { // This and following events are for later processing, we // are done with the delayed event list. break; } } // Look for non-delayed event if (!m_data->m_iqueue.empty()) { queue_type::iterator qit = m_data->m_iqueue.begin(); RclMonEvent ev = qit->second; m_data->m_iqueue.erase(qit); return ev; } return RclMonEvent(); } // Add new event (update or delete) to the processing queue. // It seems that a newer event is always correct to override any // older. TBVerified ? // Some conf-designated files, supposedly updated at a high rate get // special processing to limit their reindexing rate. bool RclMonEventQueue::pushEvent(const RclMonEvent &ev) { MONDEB(("RclMonEventQueue::pushEvent for %s\n", ev.m_path.c_str())); lock(); DelayPat pat = m_data->searchDelayPats(ev.m_path); if (pat.seconds != 0) { // Using delayed reindex queue. Need to take care of minclock and also // insert into the in-minclock-order list queue_type::iterator qit = m_data->m_dqueue.find(ev.m_path); if (qit == m_data->m_dqueue.end()) { // Not there yet, insert new qit = m_data->m_dqueue.insert(queue_type::value_type(ev.m_path, ev)).first; // Set the time to next index to "now" as it has not been // indexed recently (otherwise it would still be in the // queue), and add the iterator to the delay queue. qit->second.m_minclock = time(0); qit->second.m_needidx = true; qit->second.m_itvsecs = pat.seconds; m_data->delayInsert(qit); } else { // Already in queue. Possibly update type but save minclock // (so no need to touch m_delays). Flag as needing indexing time_t saved_clock = qit->second.m_minclock; qit->second = ev; qit->second.m_minclock = saved_clock; qit->second.m_needidx = true; } } else { // Immediate event: just insert it, erasing any previously // existing entry m_data->m_iqueue[ev.m_path] = ev; } pthread_cond_broadcast(&m_data->m_cond); unlock(); return true; } static bool checkfileanddelete(const string& fname) { bool ret; ret = access(fname.c_str(), 0) == 0; unlink(fname.c_str()); return ret; } // It's possible to override the normal indexing delay by creating a // file in the config directory (which we then remove). And yes there // is definitely a race condition (we can suppress the delay and file // before the target doc is queued), and we can't be sure that the // delay suppression will be used for the doc the user intended it // for. But this is used for non-critical function and the race // condition should happen reasonably seldom. // We check for the request file in all possible user config dirs // (usually, there is only the main one) static bool expeditedIndexingRequested(RclConfig *conf) { static vector rqfiles; if (rqfiles.empty()) { rqfiles.push_back(path_cat(conf->getConfDir(), "rclmonixnow")); const char *cp; if ((cp = getenv("RECOLL_CONFTOP"))) { rqfiles.push_back(path_cat(cp, "rclmonixnow")); } if ((cp = getenv("RECOLL_CONFMID"))) { rqfiles.push_back(path_cat(cp, "rclmonixnow")); } } bool found = false; for (vector::const_iterator it = rqfiles.begin(); it != rqfiles.end(); it++) { found = found || checkfileanddelete(*it); } return found; } bool startMonitor(RclConfig *conf, int opts) { if (!conf->getConfParam("monauxinterval", &auxinterval)) auxinterval = dfltauxinterval; if (!conf->getConfParam("monixinterval", &ixinterval)) ixinterval = dfltixinterval; rclEQ.setConfig(conf); rclEQ.setopts(opts); if (pthread_create(&rcv_thrid, 0, &rclMonRcvRun, &rclEQ) != 0) { LOGERR(("startMonitor: cant create event-receiving thread\n")); return false; } if (!rclEQ.lock()) { LOGERR(("startMonitor: cant lock queue ???\n")); return false; } LOGDEB(("start_monitoring: entering main loop\n")); bool timedout; time_t lastauxtime = time(0); time_t lastixtime = lastauxtime; bool didsomething = false; list modified; list deleted; // Set a relatively short timeout for better monitoring of exit requests while (rclEQ.wait(2, &timedout)) { // Queue is locked. // x11IsAlive() can't be called from ok() because both threads call it // and Xlib is not multithreaded. bool x11dead = !(opts & RCLMON_NOX11) && !x11IsAlive(); if (x11dead) LOGDEB(("RclMonprc: x11 is dead\n")); if (!rclEQ.ok() || x11dead) { rclEQ.unlock(); break; } // Process event queue for (;;) { // Retrieve event RclMonEvent ev = rclEQ.pop(); if (ev.m_path.empty()) break; switch (ev.evtype()) { case RclMonEvent::RCLEVT_MODIFY: case RclMonEvent::RCLEVT_DIRCREATE: LOGDEB0(("Monitor: Modify/Check on %s\n", ev.m_path.c_str())); modified.push_back(ev.m_path); break; case RclMonEvent::RCLEVT_DELETE: LOGDEB0(("Monitor: Delete on %s\n", ev.m_path.c_str())); // If this is for a directory (which the caller should // tell us because he knows), we should purge the db // of all the subtree, because on a directory rename, // inotify will only generate one event for the // renamed top, not the subentries. This is relatively // complicated to do though, and we currently do not // do it, and just wait for a restart to do a full run and // purge. deleted.push_back(ev.m_path); if (ev.evflags() & RclMonEvent::RCLEVT_ISDIR) { vector paths; if (subtreelist(conf, ev.m_path, paths)) { deleted.insert(deleted.end(), paths.begin(), paths.end()); } } break; default: LOGDEB(("Monitor: got Other on [%s]\n", ev.m_path.c_str())); } } // Unlock queue before processing lists rclEQ.unlock(); // Process. We don't do this every time but let the lists accumulate // a little, this saves processing. Start at once if list is big. time_t now = time(0); if (expeditedIndexingRequested(conf) || (now - lastixtime > ixinterval) || (deleted.size() + modified.size() > 20)) { lastixtime = now; // Used to do the modified list first, but it does seem // smarter to make room first... if (!deleted.empty()) { deleted.sort(); deleted.unique(); if (!purgefiles(conf, deleted)) break; deleted.clear(); didsomething = true; } if (!modified.empty()) { modified.sort(); modified.unique(); if (!indexfiles(conf, modified)) break; modified.clear(); didsomething = true; } } // Recreate the auxiliary dbs every hour at most. if (didsomething && time(0) - lastauxtime > auxinterval) { lastauxtime = time(0); didsomething = false; if (!createAuxDbs(conf)) { // We used to bail out on error here. Not anymore, // because this is most of the time due to a failure // of aspell dictionary generation, which is not // critical. } } // Check for a config change if (!(opts & RCLMON_NOCONFCHECK) && o_reexec && conf->sourceChanged()) { LOGDEB(("Rclmonprc: config changed, reexecuting myself\n")); // We never want to have a -n option after a config // change. -n was added by the reexec after the initial // pass even if it was not given on the command line o_reexec->removeArg("-n"); o_reexec->reexec(); } // Lock queue before waiting again rclEQ.lock(); } LOGDEB(("Rclmonprc: calling queue setTerminate\n")); rclEQ.setTerminate(); // Wait for receiver thread before returning pthread_join(rcv_thrid, 0); LOGDEB(("Monitor: returning\n")); return true; } #endif // RCL_MONITOR recoll-1.21.5/index/rclmon.h0000644000175000017500000000673112602163537015150 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RCLMON_H_INCLUDED_ #define _RCLMON_H_INCLUDED_ #include "autoconfig.h" #ifdef RCL_MONITOR /** * Definitions for the real-time monitoring recoll. * We're interested in file modifications, deletions and renaming. * We use two threads, one to receive events from the source, the * other to perform adequate processing. * * The two threads communicate through an event buffer which is * actually a hash map indexed by file path for easy coalescing of * multiple events to the same file. */ #include #include #include #include "rclconfig.h" #ifndef NO_NAMESPACES using std::string; using std::multimap; #endif /** * Monitoring event: something changed in the filesystem */ class RclMonEvent { public: enum EvType {RCLEVT_NONE= 0, RCLEVT_MODIFY=1, RCLEVT_DELETE=2, RCLEVT_DIRCREATE=3, RCLEVT_ISDIR=0x10}; string m_path; // Type and flags int m_etyp; ///// For fast changing files: minimum time interval before reindex // Minimum interval (from config) int m_itvsecs; // Don't process this entry before: time_t m_minclock; // Changed since put in purgatory after reindex bool m_needidx; RclMonEvent() : m_etyp(RCLEVT_NONE), m_itvsecs(0), m_minclock(0), m_needidx(false) {} EvType evtype() {return EvType(m_etyp & 0xf);} int evflags() {return m_etyp & 0xf0;} }; enum RclMonitorOption {RCLMON_NONE=0, RCLMON_NOFORK=1, RCLMON_NOX11=2, RCLMON_NOCONFCHECK=4}; /** * Monitoring event queue. This is the shared object between the main thread * (which does the actual indexing work), and the monitoring thread which * receives events from FAM / inotify / etc. */ class RclEQData; class RclMonEventQueue { public: RclMonEventQueue(); ~RclMonEventQueue(); /** Unlock queue and wait until there are new events. * Returns with the queue locked */ bool wait(int secs = -1, bool *timedout = 0); /** Unlock queue */ bool unlock(); /** Lock queue. */ bool lock(); /** Lock queue and add event. */ bool pushEvent(const RclMonEvent &ev); void setTerminate(); /* To all threads: end processing */ bool ok(); bool empty(); RclMonEvent pop(); void setopts(int opts); // Convenience function for initially communicating config to mon thr void setConfig(RclConfig *conf); RclConfig *getConfig(); private: RclEQData *m_data; }; /** Start monitoring on the topdirs described in conf */ extern bool startMonitor(RclConfig *conf, int flags); /** Main routine for the event receiving thread */ extern void *rclMonRcvRun(void *); // Specific debug macro for monitor synchronization events #define MONDEB LOGDEB2 #endif // RCL_MONITOR #endif /* _RCLMON_H_INCLUDED_ */ recoll-1.21.5/index/mimetype.cpp0000644000175000017500000001514312602163571016035 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_MIMETYPE #include "autoconfig.h" #include #include #include #include using namespace std; #include "mimetype.h" #include "debuglog.h" #include "execmd.h" #include "rclconfig.h" #include "smallut.h" #include "idfile.h" #include "pxattr.h" /// Identification of file from contents. This is called for files with /// unrecognized extensions. /// /// The system 'file' utility does not always work for us. For exemple /// it will mistake mail folders for simple text files if there is no /// 'Received' header, which would be the case, for exemple in a /// 'Sent' folder. Also "file -i" does not exist on all systems, and /// is quite costly to execute. /// So we first call the internal file identifier, which currently /// only knows about mail, but in which we can add the more /// current/interesting file types. /// As a last resort we execute 'file' (except if forbidden by config) static string mimetypefromdata(RclConfig *cfg, const string &fn, bool usfc) { // First try the internal identifying routine string mime = idFile(fn.c_str()); #ifdef USE_SYSTEM_FILE_COMMAND if (usfc && mime.empty()) { // Last resort: use "file -i", or its configured replacement. vector cmd = create_vector(FILE_PROG) ("-i") (fn); string scommand; if (cfg->getConfParam("systemfilecommand", scommand)) { stringToStrings(scommand, cmd); cmd.push_back(fn); } string result; if (!ExecCmd::backtick(cmd, result)) { LOGERR(("mimetypefromdata: exec %s failed\n", FILE_PROG)); return string(); } LOGDEB2(("mimetype: [%s] \"file\" output [%s]\n", result.c_str(), fn.c_str())); // The normal output from "file -i" looks like the following: // thefilename.xxx: text/plain; charset=us-ascii // Sometimes the semi-colon is missing like in: // mimetype.cpp: text/x-c charset=us-ascii // And sometimes we only get the mime type. This apparently happens // when 'file' believes that the file name is binary trimstring(result, " \t\n\r"); // If there is no colon and there is a slash, this is hopefuly // the mime type if (result.find_first_of(":") == string::npos && result.find_first_of("/") != string::npos) { return result; } // Else the result should begin with the file name. Get rid of it: if (result.find(fn) != 0) { // Garbage "file" output. Maybe the result of a charset // conversion attempt? LOGERR(("mimetype: can't interpret 'file' output: [%s]\n", result.c_str())); return string(); } result = result.substr(fn.size()); // Now should look like ": text/plain; charset=us-ascii" // Split it, and take second field list res; stringToStrings(result, res); if (res.size() <= 1) return string(); list::iterator it = res.begin(); mime = *++it; // Remove possible semi-colon at the end trimstring(mime, " \t;"); // File -i will sometimes return strange stuff (ie: "very small file") if(mime.find("/") == string::npos) mime.clear(); } #endif //USE_SYSTEM_FILE_COMMAND return mime; } /// Guess mime type, first from suffix, then from file data. We also /// have a list of suffixes that we don't touch at all. string mimetype(const string &fn, const struct stat *stp, RclConfig *cfg, bool usfc) { // Use stat data if available to check for non regular files if (stp) { // Note: the value used for directories is different from what // file -i would print on Linux (inode/directory). Probably // comes from bsd. Thos may surprise a user trying to use a // 'mime:' filter with the query language, but it's not work // changing (would force a reindex). if (S_ISDIR(stp->st_mode)) return "inode/directory"; if (S_ISLNK(stp->st_mode)) return "inode/symlink"; if (!S_ISREG(stp->st_mode)) return "inode/x-fsspecial"; // Empty files are just this: avoid further errors with actual filters. if (stp->st_size == 0) return "inode/x-empty"; } string mtype; // Extended attribute has priority on everything, as per: // http://freedesktop.org/wiki/CommonExtendedAttributes if (pxattr::get(fn, "mime_type", &mtype)) { LOGDEB0(("Mimetype: 'mime_type' xattr : [%s]\n", mtype.c_str())); if (mtype.empty()) { LOGDEB0(("Mimetype: getxattr() returned empty mime type !\n")); } else { return mtype; } } if (cfg == 0) { LOGERR(("Mimetype: null config ??\n")); return mtype; } if (cfg->inStopSuffixes(fn)) { LOGDEB(("mimetype: fn [%s] in stopsuffixes\n", fn.c_str())); return mtype; } // Compute file name suffix and search the mimetype map string::size_type dot = fn.find_first_of("."); while (dot != string::npos) { string suff = stringtolower(fn.substr(dot)); mtype = cfg->getMimeTypeFromSuffix(suff); if (!mtype.empty() || dot >= fn.size() - 1) break; dot = fn.find_first_of(".", dot + 1); } // If type was not determined from suffix, examine file data. Can // only do this if we have an actual file (as opposed to a pure // name). if (mtype.empty() && stp) mtype = mimetypefromdata(cfg, fn, usfc); out: return mtype; } #else // TEST-> #include #include #include #include #include "debuglog.h" #include "rclconfig.h" #include "rclinit.h" #include "mimetype.h" using namespace std; int main(int argc, const char **argv) { string reason; RclConfig *config = recollinit(0, 0, reason); if (config == 0 || !config->ok()) { string str = "Configuration problem: "; str += reason; fprintf(stderr, "%s\n", str.c_str()); exit(1); } while (--argc > 0) { string filename = *++argv; struct stat st; if (lstat(filename.c_str(), &st)) { fprintf(stderr, "Can't stat %s\n", filename.c_str()); continue; } cout << filename << " -> " << mimetype(filename, &st, config, true) << endl; } return 0; } #endif // TEST recoll-1.21.5/index/bglfetcher.cpp0000644000175000017500000000425312602163571016311 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #include #include #include "debuglog.h" #include "rcldoc.h" #include "fetcher.h" #include "bglfetcher.h" #include "debuglog.h" #include "ptmutex.h" #include "beaglequeuecache.h" // We use a single beagle cache object to access beagle data. We protect it // against multiple thread access. static PTMutexInit o_beagler_mutex; bool BGLDocFetcher::fetch(RclConfig* cnf, const Rcl::Doc& idoc, RawDoc& out) { string udi; if (!idoc.getmeta(Rcl::Doc::keyudi, &udi) || udi.empty()) { LOGERR(("BGLDocFetcher:: no udi in idoc\n")); return false; } Rcl::Doc dotdoc; { PTMutexLocker locker(o_beagler_mutex); // Retrieve from our webcache (beagle data). The beagler // object is created at the first call of this routine and // deleted when the program exits. static BeagleQueueCache o_beagler(cnf); if (!o_beagler.getFromCache(udi, dotdoc, out.data)) { LOGINFO(("BGLDocFetcher::fetch: failed for [%s]\n", udi.c_str())); return false; } } if (dotdoc.mimetype.compare(idoc.mimetype)) { LOGINFO(("BGLDocFetcher:: udi [%s], mimetp mismatch: in: [%s], bgl " "[%s]\n", idoc.mimetype.c_str(), dotdoc.mimetype.c_str())); } out.kind = RawDoc::RDK_DATA; return true; } bool BGLDocFetcher::makesig(RclConfig* cnf, const Rcl::Doc& idoc, string& sig) { // Bgl sigs are empty sig.clear(); return true; } recoll-1.21.5/index/recollindex.cpp0000644000175000017500000005364712603155765016536 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #include #include #include #include #include #include #include #include #include #include #include using namespace std; #include "debuglog.h" #include "rclinit.h" #include "indexer.h" #include "smallut.h" #include "pathut.h" #include "rclmon.h" #include "x11mon.h" #include "cancelcheck.h" #include "rcldb.h" #include "beaglequeue.h" #include "recollindex.h" #include "fsindexer.h" #include "rclionice.h" #include "execmd.h" #include "checkretryfailed.h" // Command line options static int op_flags; #define OPT_MOINS 0x1 #define OPT_z 0x2 #define OPT_h 0x4 #define OPT_i 0x8 #define OPT_s 0x10 #define OPT_c 0x20 #define OPT_S 0x40 #define OPT_m 0x80 #define OPT_D 0x100 #define OPT_e 0x200 #define OPT_w 0x400 #define OPT_x 0x800 #define OPT_l 0x1000 #define OPT_b 0x2000 #define OPT_f 0x4000 #define OPT_C 0x8000 #define OPT_Z 0x10000 #define OPT_n 0x20000 #define OPT_r 0x40000 #define OPT_k 0x80000 #define OPT_E 0x100000 #define OPT_K 0x200000 ReExec *o_reexec; // Globals for atexit cleanup static ConfIndexer *confindexer; // This is set as an atexit routine, static void cleanup() { deleteZ(confindexer); } // Global stop request flag. This is checked in a number of place in the // indexing routines. int stopindexing; // Receive status updates from the ongoing indexing operation // Also check for an interrupt request and return the info to caller which // should subsequently orderly terminate what it is doing. class MyUpdater : public DbIxStatusUpdater { public: MyUpdater(const RclConfig *config) : m_prevphase(DbIxStatus::DBIXS_NONE) { m_fd = open(config->getIdxStatusFile().c_str(), O_WRONLY|O_CREAT|O_TRUNC, 0600); if (m_fd < 0) LOGERR(("Can't open/create status file: [%s]\n", config->getIdxStatusFile().c_str())); } virtual bool update() { // Update the status file. Avoid doing it too often if (status.phase != m_prevphase || m_chron.millis() > 300) { m_prevphase = status.phase; m_chron.restart(); lseek(m_fd, 0, 0); int fd1 = dup(m_fd); FILE *fp = fdopen(fd1, "w"); fprintf(fp, "phase = %d\n", int(status.phase)); fprintf(fp, "docsdone = %d\n", status.docsdone); fprintf(fp, "filesdone = %d\n", status.filesdone); fprintf(fp, "dbtotdocs = %d\n", status.dbtotdocs); fprintf(fp, "fn = %s\n", status.fn.c_str()); if (ftruncate(m_fd, off_t(ftell(fp))) < 0) { // ? kill compiler warning about ignoring ftruncate return LOGDEB(("Status update: ftruncate failed\n")); } // Flush data and closes fd1. m_fd still valid fclose(fp); } if (stopindexing) { return false; } // If we are in the monitor, we also need to check X11 status // during the initial indexing pass (else the user could log // out and the indexing would go on, not good (ie: if the user // logs in again, the new recollindex will fail). if ((op_flags & OPT_m) && !(op_flags & OPT_x) && !x11IsAlive()) { LOGDEB(("X11 session went away during initial indexing pass\n")); stopindexing = true; return false; } return true; } private: int m_fd; Chrono m_chron; DbIxStatus::Phase m_prevphase; }; static MyUpdater *updater; static void sigcleanup(int sig) { fprintf(stderr, "Got signal, registering stop request\n"); LOGDEB(("Got signal, registering stop request\n")); CancelCheck::instance().setCancel(); stopindexing = 1; } static void makeIndexerOrExit(RclConfig *config, bool inPlaceReset) { if (!confindexer) { confindexer = new ConfIndexer(config, updater); if (inPlaceReset) confindexer->setInPlaceReset(); } if (!confindexer) { cerr << "Cannot create indexer" << endl; exit(1); } } void rclIxIonice(const RclConfig *config) { string clss, classdata; if (!config->getConfParam("monioniceclass", clss) || clss.empty()) clss = "3"; config->getConfParam("monioniceclassdata", classdata); rclionice(clss, classdata); } class MakeListWalkerCB : public FsTreeWalkerCB { public: MakeListWalkerCB(list& files, const vector& selpats) : m_files(files), m_pats(selpats) { } virtual FsTreeWalker::Status processone(const string& fn, const struct stat *, FsTreeWalker::CbFlag flg) { if (flg== FsTreeWalker::FtwDirEnter || flg == FsTreeWalker::FtwRegular){ if (m_pats.empty()) { cerr << "Selecting " << fn << endl; m_files.push_back(fn); } else { for (vector::const_iterator it = m_pats.begin(); it != m_pats.end(); it++) { if (fnmatch(it->c_str(), fn.c_str(), 0) == 0) { m_files.push_back(fn); break; } } } } return FsTreeWalker::FtwOk; } list& m_files; const vector& m_pats; }; // Build a list of things to index, then call purgefiles and/or // indexfiles. This is basically the same as find xxx | recollindex // -i [-e] without the find (so, simpler but less powerfull) bool recursive_index(RclConfig *config, const string& top, const vector& selpats) { list files; MakeListWalkerCB cb(files, selpats); FsTreeWalker walker; walker.walk(top, cb); if (op_flags & OPT_e) { purgefiles(config, files); } return indexfiles(config, files); } // Index a list of files. We just call the top indexer method, which // will sort out what belongs to the indexed trees and call the // appropriate indexers. // // This is called either from the command line or from the monitor. In // this case we're called repeatedly in the same process, and the // confindexer is only created once by makeIndexerOrExit (but the db closed and // flushed every time) bool indexfiles(RclConfig *config, list &filenames) { if (filenames.empty()) return true; makeIndexerOrExit(config, (op_flags & OPT_Z) != 0); // The default is to retry failed files int indexerFlags = ConfIndexer::IxFNone; if (op_flags & OPT_K) indexerFlags |= ConfIndexer::IxFNoRetryFailed; if (op_flags & OPT_f) indexerFlags |= ConfIndexer::IxFIgnoreSkip; return confindexer->indexFiles(filenames, indexerFlags); } // Delete a list of files. Same comments about call contexts as indexfiles. bool purgefiles(RclConfig *config, list &filenames) { if (filenames.empty()) return true; makeIndexerOrExit(config, (op_flags & OPT_Z) != 0); return confindexer->purgeFiles(filenames, ConfIndexer::IxFNone); } // Create stemming and spelling databases bool createAuxDbs(RclConfig *config) { makeIndexerOrExit(config, false); if (!confindexer->createStemmingDatabases()) return false; if (!confindexer->createAspellDict()) return false; return true; } // Create additional stem database static bool createstemdb(RclConfig *config, const string &lang) { makeIndexerOrExit(config, false); return confindexer->createStemDb(lang); } // Check that topdir entries are valid (successfull tilde exp + abs // path) or fail. // In addition, topdirs, skippedPaths, daemSkippedPaths entries should // match existing files or directories. Warn if they don't static bool checktopdirs(RclConfig *config, vector& nonexist) { vector tdl; if (!config->getConfParam("topdirs", &tdl)) { cerr << "No 'topdirs' parameter in configuration\n"; LOGERR(("recollindex:No 'topdirs' parameter in configuration\n"));; return false; } for (vector::iterator it = tdl.begin(); it != tdl.end(); it++) { *it = path_tildexpand(*it); if (!it->size() || (*it)[0] != '/') { if ((*it)[0] == '~') { cerr << "Tilde expansion failed: " << *it << endl; LOGERR(("recollindex: tilde expansion failed: %s\n", it->c_str())); } else { cerr << "Not an absolute path: " << *it << endl; LOGERR(("recollindex: not an absolute path: %s\n", it->c_str())); } return false; } if (access(it->c_str(), 0) < 0) { nonexist.push_back(*it); } } // Check skippedPaths too, but only the user part (shallow==true), not // the default values (e.g. /media, which might not exist). if (config->getConfParam("skippedPaths", &tdl, true)) { for (vector::iterator it = tdl.begin(); it != tdl.end(); it++) { *it = path_tildexpand(*it); if (access(it->c_str(), 0) < 0) { nonexist.push_back(*it); } } } if (config->getConfParam("daemSkippedPaths", &tdl, true)) { for (vector::iterator it = tdl.begin(); it != tdl.end(); it++) { *it = path_tildexpand(*it); if (access(it->c_str(), 0) < 0) { nonexist.push_back(*it); } } } return true; } static const char *thisprog; static const char usage [] = "\n" "recollindex [-h] \n" " Print help\n" "recollindex [-z|-Z] [-k]\n" " Index everything according to configuration file\n" " -z : reset database before starting indexing\n" " -Z : in place reset: consider all documents as changed. Can also\n" " be combined with -i or -r but not -m\n" " -k : retry files on which we previously failed\n" #ifdef RCL_MONITOR "recollindex -m [-w ] -x [-D] [-C]\n" " Perform real time indexing. Don't become a daemon if -D is set.\n" " -w sets number of seconds to wait before starting.\n" " -C disables monitoring config for changes/reexecuting.\n" " -n disables initial incremental indexing (!and purge!).\n" #ifndef DISABLE_X11MON " -x disables exit on end of x11 session\n" #endif /* DISABLE_X11MON */ #endif /* RCL_MONITOR */ "recollindex -e \n" " Purge data for individual files. No stem database updates\n" "recollindex -i [-f] [-Z] \n" " Index individual files. No database purge or stem database updates\n" " -f : ignore skippedPaths and skippedNames while doing this\n" "recollindex -r [-K] [-f] [-Z] [-p pattern] \n" " Recursive partial reindex. \n" " -p : filter file names, multiple instances are allowed, e.g.: \n" " -p *.odt -p *.pdf\n" " -K : skip previously failed files (they are retried by default)\n" "recollindex -l\n" " List available stemming languages\n" "recollindex -s \n" " Build stem database for additional language \n" "recollindex -E\n" " Check configuration file for topdirs and other paths existence\n" #ifdef FUTURE_IMPROVEMENT "recollindex -W\n" " Process the Web queue\n" #endif #ifdef RCL_USE_ASPELL "recollindex -S\n" " Build aspell spelling dictionary.>\n" #endif "Common options:\n" " -c : specify config directory, overriding $RECOLL_CONFDIR\n" ; static void Usage(FILE *where = stderr) { FILE *fp = (op_flags & OPT_h) ? stdout : stderr; fprintf(fp, "%s: Usage: %s", thisprog, usage); fprintf(fp, "Recoll version: %s\n", Rcl::version_string().c_str()); exit((op_flags & OPT_h)==0); } static RclConfig *config; void lockorexit(Pidfile *pidfile) { pid_t pid; if ((pid = pidfile->open()) != 0) { cerr << "Can't become exclusive indexer: " << pidfile->getreason() << ". Return (other pid?): " << pid << endl; exit(1); } if (pidfile->write_pid() != 0) { cerr << "Can't become exclusive indexer: " << pidfile->getreason() << endl; exit(1); } } int main(int argc, char **argv) { string a_config; int sleepsecs = 60; vector selpatterns; // The reexec struct is used by the daemon to shed memory after // the initial indexing pass and to restart when the configuration // changes o_reexec = new ReExec; o_reexec->init(argc, argv); thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) Usage(); while (**argv) switch (*(*argv)++) { case 'b': op_flags |= OPT_b; break; case 'c': op_flags |= OPT_c; if (argc < 2) Usage(); a_config = *(++argv); argc--; goto b1; #ifdef RCL_MONITOR case 'C': op_flags |= OPT_C; break; case 'D': op_flags |= OPT_D; break; #endif case 'E': op_flags |= OPT_E; break; case 'e': op_flags |= OPT_e; break; case 'f': op_flags |= OPT_f; break; case 'h': op_flags |= OPT_h; break; case 'i': op_flags |= OPT_i; break; case 'k': op_flags |= OPT_k; break; case 'K': op_flags |= OPT_K; break; case 'l': op_flags |= OPT_l; break; case 'm': op_flags |= OPT_m; break; case 'n': op_flags |= OPT_n; break; case 'p': if (argc < 2) Usage(); selpatterns.push_back(*(++argv)); argc--; goto b1; case 'r': op_flags |= OPT_r; break; case 's': op_flags |= OPT_s; break; #ifdef RCL_USE_ASPELL case 'S': op_flags |= OPT_S; break; #endif case 'w': op_flags |= OPT_w; if (argc < 2) Usage(); if ((sscanf(*(++argv), "%d", &sleepsecs)) != 1) Usage(); argc--; goto b1; case 'x': op_flags |= OPT_x; break; case 'Z': op_flags |= OPT_Z; break; case 'z': op_flags |= OPT_z; break; default: Usage(); break; } b1: argc--; argv++; } if (op_flags & OPT_h) Usage(stdout); #ifndef RCL_MONITOR if (op_flags & (OPT_m | OPT_w|OPT_x)) { cerr << "Sorry, -m not available: real-time monitoring was not " "configured in this build\n"; exit(1); } #endif if ((op_flags & OPT_z) && (op_flags & (OPT_i|OPT_e|OPT_r))) Usage(); if ((op_flags & OPT_Z) && (op_flags & (OPT_m))) Usage(); if ((op_flags & OPT_E) && (op_flags & ~OPT_E)) { Usage(); } string reason; RclInitFlags flags = (op_flags & OPT_m) && !(op_flags&OPT_D) ? RCLINIT_DAEMON : RCLINIT_NONE; config = recollinit(flags, cleanup, sigcleanup, reason, &a_config); if (config == 0 || !config->ok()) { cerr << "Configuration problem: " << reason << endl; exit(1); } o_reexec->atexit(cleanup); vector nonexist; if (!checktopdirs(config, nonexist)) exit(1); if (nonexist.size()) { ostream& out = (op_flags & OPT_E) ? cout : cerr; if (!(op_flags & OPT_E)) { cerr << "Warning: invalid paths in topdirs, skippedPaths or " "daemSkippedPaths:\n"; } for (vector::const_iterator it = nonexist.begin(); it != nonexist.end(); it++) { out << *it << endl; } } if ((op_flags & OPT_E)) { exit(0); } string rundir; config->getConfParam("idxrundir", rundir); if (!rundir.compare("tmp")) { LOGINFO(("recollindex: changing current directory to [%s]\n", tmplocation().c_str())); if (chdir(tmplocation().c_str()) < 0) { LOGERR(("chdir(%s) failed, errno %d\n", tmplocation().c_str(), errno)); } } else if (!rundir.empty()) { LOGINFO(("recollindex: changing current directory to [%s]\n", rundir.c_str())); if (chdir(rundir.c_str()) < 0) { LOGERR(("chdir(%s) failed, errno %d\n", rundir.c_str(), errno)); } } bool rezero((op_flags & OPT_z) != 0); bool inPlaceReset((op_flags & OPT_Z) != 0); // We do not retry previously failed files by default. If -k is // set, we do. If the checker script says so, we do too. int indexerFlags = ConfIndexer::IxFNoRetryFailed; if (op_flags & OPT_k) { indexerFlags &= ~ConfIndexer::IxFNoRetryFailed; } else { if (checkRetryFailed(config, false)) { indexerFlags &= ~ConfIndexer::IxFNoRetryFailed; } } Pidfile pidfile(config->getPidfile()); updater = new MyUpdater(config); // Log something at LOGINFO to reset the trace file. Else at level // 3 it's not even truncated if all docs are up to date. LOGINFO(("recollindex: starting up\n")); if (setpriority(PRIO_PROCESS, 0, 20) != 0) { LOGINFO(("recollindex: can't setpriority(), errno %d\n", errno)); } // Try to ionice. This does not work on all platforms rclIxIonice(config); if (op_flags & OPT_r) { if (argc != 1) Usage(); string top = *argv++; argc--; bool status = recursive_index(config, top, selpatterns); if (confindexer && !confindexer->getReason().empty()) cerr << confindexer->getReason() << endl; exit(status ? 0 : 1); } else if (op_flags & (OPT_i|OPT_e)) { lockorexit(&pidfile); list filenames; if (argc == 0) { // Read from stdin char line[1024]; while (fgets(line, 1023, stdin)) { string sl(line); trimstring(sl, "\n\r"); filenames.push_back(sl); } } else { while (argc--) { filenames.push_back(*argv++); } } // Note that -e and -i may be both set. In this case we first erase, // then index. This is a slightly different from -Z -i because we // warranty that all subdocs are purged. bool status = true; if (op_flags & OPT_e) { status = purgefiles(config, filenames); } if (status && (op_flags & OPT_i)) { status = indexfiles(config, filenames); } if (confindexer && !confindexer->getReason().empty()) cerr << confindexer->getReason() << endl; exit(status ? 0 : 1); } else if (op_flags & OPT_l) { if (argc != 0) Usage(); vector stemmers = ConfIndexer::getStemmerNames(); for (vector::const_iterator it = stemmers.begin(); it != stemmers.end(); it++) { cout << *it << endl; } exit(0); } else if (op_flags & OPT_s) { if (argc != 1) Usage(); string lang = *argv++; argc--; exit(!createstemdb(config, lang)); #ifdef RCL_USE_ASPELL } else if (op_flags & OPT_S) { makeIndexerOrExit(config, false); exit(!confindexer->createAspellDict()); #endif // ASPELL #ifdef RCL_MONITOR } else if (op_flags & OPT_m) { if (argc != 0) Usage(); lockorexit(&pidfile); if (!(op_flags&OPT_D)) { LOGDEB(("recollindex: daemonizing\n")); if (daemon(0,0) != 0) { fprintf(stderr, "daemon() failed, errno %d\n", errno); LOGERR(("daemon() failed, errno %d\n", errno)); exit(1); } } // Need to rewrite pid, it changed pidfile.write_pid(); // Not too sure if I have to redo the nice thing after daemon(), // can't hurt anyway (easier than testing on all platforms...) if (setpriority(PRIO_PROCESS, 0, 20) != 0) { LOGINFO(("recollindex: can't setpriority(), errno %d\n", errno)); } // Try to ionice. This does not work on all platforms rclIxIonice(config); if (sleepsecs > 0) { LOGDEB(("recollindex: sleeping %d\n", sleepsecs)); for (int i = 0; i < sleepsecs; i++) { sleep(1); // Check that x11 did not go away while we were sleeping. if (!(op_flags & OPT_x) && !x11IsAlive()) { LOGDEB(("X11 session went away during initial sleep period\n")); exit(0); } } } if (!(op_flags & OPT_n)) { makeIndexerOrExit(config, inPlaceReset); LOGDEB(("Recollindex: initial indexing pass before monitoring\n")); if (!confindexer->index(rezero, ConfIndexer::IxTAll, indexerFlags) || stopindexing) { LOGERR(("recollindex, initial indexing pass failed, " "not going into monitor mode\n")); exit(1); } else { // Record success of indexing pass with failed files retries. if (!(indexerFlags & ConfIndexer::IxFNoRetryFailed)) { checkRetryFailed(config, true); } } deleteZ(confindexer); o_reexec->insertArgs(vector(1, "-n")); LOGINFO(("recollindex: reexecuting with -n after initial full pass\n")); // Note that -n will be inside the reexec when we come // back, but the monitor will explicitely strip it before // starting a config change exec to ensure that we do a // purging pass in this case. o_reexec->reexec(); } if (updater) { updater->status.phase = DbIxStatus::DBIXS_MONITOR; updater->status.fn.clear(); updater->update(); } int opts = RCLMON_NONE; if (op_flags & OPT_D) opts |= RCLMON_NOFORK; if (op_flags & OPT_C) opts |= RCLMON_NOCONFCHECK; if (op_flags & OPT_x) opts |= RCLMON_NOX11; bool monret = startMonitor(config, opts); MONDEB(("Monitor returned %d, exiting\n", monret)); exit(monret == false); #endif // MONITOR } else if (op_flags & OPT_b) { cerr << "Not yet" << endl; return 1; } else { lockorexit(&pidfile); makeIndexerOrExit(config, inPlaceReset); bool status = confindexer->index(rezero, ConfIndexer::IxTAll, indexerFlags); // Record success of indexing pass with failed files retries. if (status && !(indexerFlags & ConfIndexer::IxFNoRetryFailed)) { checkRetryFailed(config, true); } if (!status) cerr << "Indexing failed" << endl; if (!confindexer->getReason().empty()) cerr << confindexer->getReason() << endl; if (updater) { updater->status.phase = DbIxStatus::DBIXS_DONE; updater->status.fn.clear(); updater->update(); } return !status; } } recoll-1.21.5/index/checkretryfailed.h0000644000175000017500000000237612602163537017167 0ustar dockesdockes#ifndef _CHECKRETRYFAILED_H_INCLUDED_ #define _CHECKRETRYFAILED_H_INCLUDED_ /* Copyright (C) 2015 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** Check if retrying failed files may be needed. We execute a shell-script for this. The default one checks if any of the common bin directories changed. @param conf the config @param record if true, record the state instead of testing @return true if retrying should be performed */ class RclConfig; bool checkRetryFailed(RclConfig *conf, bool record); #endif /* _CHECKRETRYFAILED_H_INCLUDED_ */ recoll-1.21.5/index/fsindexer.cpp0000644000175000017500000006736112602163571016204 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include #include #include #include #include #include "cstr.h" #include "pathut.h" #include "conftree.h" #include "rclconfig.h" #include "fstreewalk.h" #include "rcldb.h" #include "readfile.h" #include "indexer.h" #include "fsindexer.h" #include "transcode.h" #include "debuglog.h" #include "internfile.h" #include "smallut.h" #include "wipedir.h" #include "fileudi.h" #include "cancelcheck.h" #include "rclinit.h" #include "execmd.h" #include "extrameta.h" using namespace std; #ifdef IDX_THREADS class DbUpdTask { public: // Take some care to avoid sharing string data (if string impl is cow) DbUpdTask(const string& u, const string& p, const Rcl::Doc& d) : udi(u.begin(), u.end()), parent_udi(p.begin(), p.end()) { d.copyto(&doc); } string udi; string parent_udi; Rcl::Doc doc; }; extern void *FsIndexerDbUpdWorker(void*); class InternfileTask { public: // Take some care to avoid sharing string data (if string impl is cow) InternfileTask(const std::string &f, const struct stat *i_stp, map lfields) : fn(f.begin(), f.end()), statbuf(*i_stp) { map_ss_cp_noshr(lfields, &localfields); } string fn; struct stat statbuf; map localfields; }; extern void *FsIndexerInternfileWorker(void*); #endif // IDX_THREADS // Thread safe variation of the "missing helpers" storage. Only the // addMissing method needs protection, the rest are called from the // main thread either before or after the exciting part class FSIFIMissingStore : public FIMissingStore { #ifdef IDX_THREADS PTMutexInit m_mutex; #endif public: virtual void addMissing(const string& prog, const string& mt) { #ifdef IDX_THREADS PTMutexLocker locker(m_mutex); #endif FIMissingStore::addMissing(prog, mt); } }; FsIndexer::FsIndexer(RclConfig *cnf, Rcl::Db *db, DbIxStatusUpdater *updfunc) : m_config(cnf), m_db(db), m_updater(updfunc), m_missing(new FSIFIMissingStore), m_detectxattronly(false), m_noretryfailed(false) #ifdef IDX_THREADS , m_iwqueue("Internfile", cnf->getThrConf(RclConfig::ThrIntern).first), m_dwqueue("Split", cnf->getThrConf(RclConfig::ThrSplit).first) #endif // IDX_THREADS { LOGDEB1(("FsIndexer::FsIndexer\n")); m_havelocalfields = m_config->hasNameAnywhere("localfields"); m_config->getConfParam("detectxattronly", &m_detectxattronly); #ifdef IDX_THREADS m_stableconfig = new RclConfig(*m_config); m_loglevel = DebugLog::getdbl()->getlevel(); m_haveInternQ = m_haveSplitQ = false; int internqlen = cnf->getThrConf(RclConfig::ThrIntern).first; int internthreads = cnf->getThrConf(RclConfig::ThrIntern).second; if (internqlen >= 0) { if (!m_iwqueue.start(internthreads, FsIndexerInternfileWorker, this)) { LOGERR(("FsIndexer::FsIndexer: intern worker start failed\n")); return; } m_haveInternQ = true; } int splitqlen = cnf->getThrConf(RclConfig::ThrSplit).first; int splitthreads = cnf->getThrConf(RclConfig::ThrSplit).second; if (splitqlen >= 0) { if (!m_dwqueue.start(splitthreads, FsIndexerDbUpdWorker, this)) { LOGERR(("FsIndexer::FsIndexer: split worker start failed\n")); return; } m_haveSplitQ = true; } LOGDEB(("FsIndexer: threads: haveIQ %d iql %d iqts %d " "haveSQ %d sql %d sqts %d\n", m_haveInternQ, internqlen, internthreads, m_haveSplitQ, splitqlen, splitthreads)); #endif // IDX_THREADS } FsIndexer::~FsIndexer() { LOGDEB1(("FsIndexer::~FsIndexer()\n")); #ifdef IDX_THREADS void *status; if (m_haveInternQ) { status = m_iwqueue.setTerminateAndWait(); LOGDEB0(("FsIndexer: internfile wrkr status: %ld (1->ok)\n", long(status))); } if (m_haveSplitQ) { status = m_dwqueue.setTerminateAndWait(); LOGDEB0(("FsIndexer: dbupd worker status: %ld (1->ok)\n", long(status))); } delete m_stableconfig; #endif // IDX_THREADS delete m_missing; } bool FsIndexer::init() { if (m_tdl.empty()) { m_tdl = m_config->getTopdirs(); if (m_tdl.empty()) { LOGERR(("FsIndexers: no topdirs list defined\n")); return false; } } return true; } // Recursively index each directory in the topdirs: bool FsIndexer::index(int flags) { bool quickshallow = (flags & ConfIndexer::IxFQuickShallow) != 0; m_noretryfailed = (flags & ConfIndexer::IxFNoRetryFailed) != 0; Chrono chron; if (!init()) return false; if (m_updater) { #ifdef IDX_THREADS PTMutexLocker locker(m_updater->m_mutex); #endif m_updater->status.reset(); m_updater->status.dbtotdocs = m_db->docCnt(); } m_walker.setSkippedPaths(m_config->getSkippedPaths()); if (quickshallow) { m_walker.setOpts(m_walker.getOpts() | FsTreeWalker::FtwSkipDotFiles); m_walker.setMaxDepth(2); } for (vector::const_iterator it = m_tdl.begin(); it != m_tdl.end(); it++) { LOGDEB(("FsIndexer::index: Indexing %s into %s\n", it->c_str(), getDbDir().c_str())); // Set the current directory in config so that subsequent // getConfParams() will get local values m_config->setKeyDir(*it); // Adjust the "follow symlinks" option bool follow; int opts = m_walker.getOpts(); if (m_config->getConfParam("followLinks", &follow) && follow) { opts |= FsTreeWalker::FtwFollow; } else { opts &= ~FsTreeWalker::FtwFollow; } m_walker.setOpts(opts); int abslen; if (m_config->getConfParam("idxabsmlen", &abslen)) m_db->setAbstractParams(abslen, -1, -1); // Walk the directory tree if (m_walker.walk(*it, *this) != FsTreeWalker::FtwOk) { LOGERR(("FsIndexer::index: error while indexing %s: %s\n", it->c_str(), m_walker.getReason().c_str())); return false; } } #ifdef IDX_THREADS if (m_haveInternQ) m_iwqueue.waitIdle(); if (m_haveSplitQ) m_dwqueue.waitIdle(); m_db->waitUpdIdle(); #endif // IDX_THREADS if (m_missing) { string missing; m_missing->getMissingDescription(missing); if (!missing.empty()) { LOGINFO(("FsIndexer::index missing helper program(s):\n%s\n", missing.c_str())); } m_config->storeMissingHelperDesc(missing); } LOGINFO(("fsindexer index time: %d mS\n", chron.ms())); return true; } static bool matchesSkipped(const vector& tdl, FsTreeWalker& walker, const string& path) { // Check path against topdirs and skippedPaths. We go up the // ancestors until we find either a topdirs or a skippedPaths // match. If topdirs is found first-> ok to index (it's possible // and useful to configure a topdir under a skippedPath in the // config). This matches what happens during the normal fs tree // walk. string canonpath = path_canon(path); string mpath = canonpath; string topdir; while (mpath.length() > 1) { for (vector::const_iterator it = tdl.begin(); it != tdl.end(); it++) { // the topdirs members are already canonized. LOGDEB2(("matchesSkipped: comparing ancestor [%s] to " "topdir [%s]\n", mpath.c_str(), it->c_str())); if (!mpath.compare(*it)) { topdir = *it; goto goodpath; } } if (walker.inSkippedPaths(mpath, false)) { LOGDEB(("FsIndexer::indexFiles: skipping [%s] (skpp)\n", path.c_str())); return true; } string::size_type len = mpath.length(); mpath = path_getfather(mpath); // getfather normally returns a path ending with /, canonic // paths don't (except for '/' itself). if (!mpath.empty() && mpath[mpath.size()-1] == '/') mpath.erase(mpath.size()-1); // should not be necessary, but lets be prudent. If the // path did not shorten, something is seriously amiss // (could be an assert actually) if (mpath.length() >= len) { LOGERR(("FsIndexer::indexFile: internal Error: path [%s] did not " "shorten\n", mpath.c_str())); return true; } } // We get there if neither topdirs nor skippedPaths tests matched LOGDEB(("FsIndexer::indexFiles: skipping [%s] (ntd)\n", path.c_str())); return true; goodpath: // Then check all path components up to the topdir against skippedNames mpath = canonpath; while (mpath.length() >= topdir.length() && mpath.length() > 1) { string fn = path_getsimple(mpath); if (walker.inSkippedNames(fn)) { LOGDEB(("FsIndexer::indexFiles: skipping [%s] (skpn)\n", path.c_str())); return true; } string::size_type len = mpath.length(); mpath = path_getfather(mpath); // getfather normally returns a path ending with /, getsimple // would then return '' if (!mpath.empty() && mpath[mpath.size()-1] == '/') mpath.erase(mpath.size()-1); // should not be necessary, but lets be prudent. If the // path did not shorten, something is seriously amiss // (could be an assert actually) if (mpath.length() >= len) return true; } return false; } /** * Index individual files, out of a full tree run. No database purging */ bool FsIndexer::indexFiles(list& files, int flags) { LOGDEB(("FsIndexer::indexFiles\n")); m_noretryfailed = (flags & ConfIndexer::IxFNoRetryFailed) != 0; int ret = false; if (!init()) return false; int abslen; if (m_config->getConfParam("idxabsmlen", &abslen)) m_db->setAbstractParams(abslen, -1, -1); m_purgeCandidates.setRecord(true); // We use an FsTreeWalker just for handling the skipped path/name lists FsTreeWalker walker; walker.setSkippedPaths(m_config->getSkippedPaths()); for (list::iterator it = files.begin(); it != files.end(); ) { LOGDEB2(("FsIndexer::indexFiles: [%s]\n", it->c_str())); m_config->setKeyDir(path_getfather(*it)); if (m_havelocalfields) localfieldsfromconf(); bool follow = false; m_config->getConfParam("followLinks", &follow); walker.setSkippedNames(m_config->getSkippedNames()); // Check path against indexed areas and skipped names/paths if (!(flags & ConfIndexer::IxFIgnoreSkip) && matchesSkipped(m_tdl, walker, *it)) { it++; continue; } struct stat stb; int ststat = follow ? stat(it->c_str(), &stb) : lstat(it->c_str(), &stb); if (ststat != 0) { LOGERR(("FsIndexer::indexFiles: lstat(%s): %s", it->c_str(), strerror(errno))); it++; continue; } if (processone(*it, &stb, FsTreeWalker::FtwRegular) != FsTreeWalker::FtwOk) { LOGERR(("FsIndexer::indexFiles: processone failed\n")); goto out; } it = files.erase(it); } ret = true; out: #ifdef IDX_THREADS if (m_haveInternQ) m_iwqueue.waitIdle(); if (m_haveSplitQ) m_dwqueue.waitIdle(); m_db->waitUpdIdle(); #endif // IDX_THREADS // Purge possible orphan documents if (ret == true) { LOGDEB(("Indexfiles: purging orphans\n")); const vector& purgecandidates = m_purgeCandidates.getCandidates(); for (vector::const_iterator it = purgecandidates.begin(); it != purgecandidates.end(); it++) { LOGDEB(("Indexfiles: purging orphans for %s\n", it->c_str())); m_db->purgeOrphans(*it); } #ifdef IDX_THREADS m_db->waitUpdIdle(); #endif // IDX_THREADS } LOGDEB(("FsIndexer::indexFiles: done\n")); return ret; } /** Purge docs for given files out of the database */ bool FsIndexer::purgeFiles(list& files) { LOGDEB(("FsIndexer::purgeFiles\n")); bool ret = false; if (!init()) return false; for (list::iterator it = files.begin(); it != files.end(); ) { string udi; make_udi(*it, cstr_null, udi); // rcldb::purgefile returns true if the udi was either not // found or deleted, false only in case of actual error bool existed; if (!m_db->purgeFile(udi, &existed)) { LOGERR(("FsIndexer::purgeFiles: Database error\n")); goto out; } // If we actually deleted something, take it off the list if (existed) { it = files.erase(it); } else { it++; } } ret = true; out: #ifdef IDX_THREADS if (m_haveInternQ) m_iwqueue.waitIdle(); if (m_haveSplitQ) m_dwqueue.waitIdle(); m_db->waitUpdIdle(); #endif // IDX_THREADS LOGDEB(("FsIndexer::purgeFiles: done\n")); return ret; } // Local fields can be set for fs subtrees in the configuration file void FsIndexer::localfieldsfromconf() { LOGDEB1(("FsIndexer::localfieldsfromconf\n")); string sfields; m_config->getConfParam("localfields", sfields); if (!sfields.compare(m_slocalfields)) return; m_slocalfields = sfields; m_localfields.clear(); if (sfields.empty()) return; string value; ConfSimple attrs; m_config->valueSplitAttributes(sfields, value, attrs); vector nmlst = attrs.getNames(cstr_null); for (vector::const_iterator it = nmlst.begin(); it != nmlst.end(); it++) { string nm = m_config->fieldCanon(*it); attrs.get(*it, m_localfields[nm]); LOGDEB2(("FsIndexer::localfieldsfromconf: [%s]->[%s]\n", nm.c_str(), m_localfields[nm].c_str())); } } void FsIndexer::setlocalfields(const map& fields, Rcl::Doc& doc) { for (map::const_iterator it = fields.begin(); it != fields.end(); it++) { // Being chosen by the user, localfields override values from // the filter. The key is already canonic (see // localfieldsfromconf()) doc.meta[it->first] = it->second; } } void FsIndexer::makesig(const struct stat *stp, string& out) { char cbuf[100]; sprintf(cbuf, "%lld" "%ld", (long long)stp->st_size, o_uptodate_test_use_mtime ? (long)stp->st_mtime : (long)stp->st_ctime); out = cbuf; } #ifdef IDX_THREADS // Called updworker as seen from here, but the first step (and only in // most meaningful configurations) is doing the word-splitting, which // is why the task is referred as "Split" in the grand scheme of // things. An other stage usually deals with the actual index update. void *FsIndexerDbUpdWorker(void * fsp) { recoll_threadinit(); FsIndexer *fip = (FsIndexer*)fsp; WorkQueue *tqp = &fip->m_dwqueue; DebugLog::getdbl()->setloglevel(fip->m_loglevel); DbUpdTask *tsk; for (;;) { size_t qsz; if (!tqp->take(&tsk, &qsz)) { tqp->workerExit(); return (void*)1; } LOGDEB0(("FsIndexerDbUpdWorker: task ql %d\n", int(qsz))); if (!fip->m_db->addOrUpdate(tsk->udi, tsk->parent_udi, tsk->doc)) { LOGERR(("FsIndexerDbUpdWorker: addOrUpdate failed\n")); tqp->workerExit(); return (void*)0; } delete tsk; } } void *FsIndexerInternfileWorker(void * fsp) { recoll_threadinit(); FsIndexer *fip = (FsIndexer*)fsp; WorkQueue *tqp = &fip->m_iwqueue; DebugLog::getdbl()->setloglevel(fip->m_loglevel); RclConfig myconf(*(fip->m_stableconfig)); InternfileTask *tsk = 0; for (;;) { if (!tqp->take(&tsk)) { tqp->workerExit(); return (void*)1; } LOGDEB0(("FsIndexerInternfileWorker: task fn %s\n", tsk->fn.c_str())); if (fip->processonefile(&myconf, tsk->fn, &tsk->statbuf, tsk->localfields) != FsTreeWalker::FtwOk) { LOGERR(("FsIndexerInternfileWorker: processone failed\n")); tqp->workerExit(); return (void*)0; } LOGDEB1(("FsIndexerInternfileWorker: done fn %s\n", tsk->fn.c_str())); delete tsk; } } #endif // IDX_THREADS /// This method gets called for every file and directory found by the /// tree walker. /// /// It checks with the db if the file has changed and needs to be /// reindexed. If so, it calls internfile() which will identify the /// file type and call an appropriate handler to convert the document into /// internal format, which we then add to the database. /// /// Accent and majuscule handling are performed by the db module when doing /// the actual indexing work. The Rcl::Doc created by internfile() /// mostly contains pretty raw utf8 data. FsTreeWalker::Status FsIndexer::processone(const std::string &fn, const struct stat *stp, FsTreeWalker::CbFlag flg) { if (m_updater) { #ifdef IDX_THREADS PTMutexLocker locker(m_updater->m_mutex); #endif if (!m_updater->update()) { return FsTreeWalker::FtwStop; } } // If we're changing directories, possibly adjust parameters (set // the current directory in configuration object) if (flg == FsTreeWalker::FtwDirEnter || flg == FsTreeWalker::FtwDirReturn) { m_config->setKeyDir(fn); // Set up skipped patterns for this subtree. m_walker.setSkippedNames(m_config->getSkippedNames()); // Adjust local fields from config for this subtree if (m_havelocalfields) localfieldsfromconf(); if (flg == FsTreeWalker::FtwDirReturn) return FsTreeWalker::FtwOk; } #ifdef IDX_THREADS if (m_haveInternQ) { InternfileTask *tp = new InternfileTask(fn, stp, m_localfields); if (m_iwqueue.put(tp)) { return FsTreeWalker::FtwOk; } else { return FsTreeWalker::FtwError; } } #endif return processonefile(m_config, fn, stp, m_localfields); } // File name transcoded to utf8 for indexing. If this fails, the file // name won't be indexed, no big deal Note that we used to do the full // path here, but I ended up believing that it made more sense to use // only the file name The charset is used is the one from the locale. static string compute_utf8fn(RclConfig *config, const string& fn) { string charset = config->getDefCharset(true); string utf8fn; int ercnt; if (!transcode(path_getsimple(fn), utf8fn, charset, "UTF-8", &ercnt)) { LOGERR(("processone: fn transcode failure from [%s] to UTF-8: %s\n", charset.c_str(), path_getsimple(fn).c_str())); } else if (ercnt) { LOGDEB(("processone: fn transcode %d errors from [%s] to UTF-8: %s\n", ercnt, charset.c_str(), path_getsimple(fn).c_str())); } LOGDEB2(("processone: fn transcoded from [%s] to [%s] (%s->%s)\n", path_getsimple(fn).c_str(), utf8fn.c_str(), charset.c_str(), "UTF-8")); return utf8fn; } FsTreeWalker::Status FsIndexer::processonefile(RclConfig *config, const std::string &fn, const struct stat *stp, const map& localfields) { //////////////////// // Check db up to date ? Doing this before file type // identification means that, if usesystemfilecommand is switched // from on to off it may happen that some files which are now // without mime type will not be purged from the db, resulting // in possible 'cannot intern file' messages at query time... // Document signature. This is based on m/ctime and size and used // for the uptodate check (the value computed here is checked // against the stored one). Changing the computation forces a full // reindex of course. string sig; makesig(stp, sig); string udi; make_udi(fn, cstr_null, udi); unsigned int existingDoc; string oldsig; bool needupdate; if (m_noretryfailed) { needupdate = m_db->needUpdate(udi, sig, &existingDoc, &oldsig); } else { needupdate = m_db->needUpdate(udi, sig, &existingDoc, 0); } // If ctime (which we use for the sig) differs from mtime, then at most // the extended attributes were changed, no need to index content. // This unfortunately leaves open the case where the data was // modified, then the extended attributes, in which case we will // miss the data update. We would have to store both the mtime and // the ctime to avoid this bool xattronly = m_detectxattronly && !m_db->inFullReset() && existingDoc && needupdate && (stp->st_mtime < stp->st_ctime); LOGDEB(("processone: needupdate %d noretry %d existing %d oldsig [%s]\n", needupdate, m_noretryfailed, existingDoc, oldsig.c_str())); // If noretryfailed is set, check for a file which previously // failed to index, and avoid re-processing it if (needupdate && m_noretryfailed && existingDoc && !oldsig.empty() && *oldsig.rbegin() == '+') { // Check that the sigs are the same except for the '+'. If the file // actually changed, we always retry (maybe it was fixed) string nold = oldsig.substr(0, oldsig.size()-1); if (!nold.compare(sig)) { LOGDEB(("processone: not retrying previously failed file\n")); m_db->setExistingFlags(udi, existingDoc); needupdate = false; } } if (!needupdate) { LOGDEB0(("processone: up to date: %s\n", fn.c_str())); if (m_updater) { #ifdef IDX_THREADS PTMutexLocker locker(m_updater->m_mutex); #endif // Status bar update, abort request etc. m_updater->status.fn = fn; ++(m_updater->status.filesdone); if (!m_updater->update()) { return FsTreeWalker::FtwStop; } } return FsTreeWalker::FtwOk; } LOGDEB0(("processone: processing: [%s] %s\n", displayableBytes(stp->st_size).c_str(), fn.c_str())); string utf8fn = compute_utf8fn(config, fn); // parent_udi is initially the same as udi, it will be used if there // are subdocs. string parent_udi = udi; Rcl::Doc doc; char ascdate[30]; sprintf(ascdate, "%ld", long(stp->st_mtime)); bool hadNullIpath = false; string mimetype; if (!xattronly) { FileInterner interner(fn, stp, config, FileInterner::FIF_none); if (!interner.ok()) { // no indexing whatsoever in this case. This typically means that // indexallfilenames is not set return FsTreeWalker::FtwOk; } mimetype = interner.getMimetype(); interner.setMissingStore(m_missing); FileInterner::Status fis = FileInterner::FIAgain; bool hadNonNullIpath = false; while (fis == FileInterner::FIAgain) { doc.erase(); try { fis = interner.internfile(doc); } catch (CancelExcept) { LOGERR(("fsIndexer::processone: interrupted\n")); return FsTreeWalker::FtwStop; } // We index at least the file name even if there was an error. // We'll change the signature to ensure that the indexing will // be retried every time. // If there is an error and the base doc was already seen, // we're done if (fis == FileInterner::FIError && hadNullIpath) return FsTreeWalker::FtwOk; // Internal access path for multi-document files. If empty, this is // for the main file. if (doc.ipath.empty()) { hadNullIpath = true; if (hadNonNullIpath) { // Note that only the filters can reliably compute // this. What we do is dependant of the doc order (if // we see the top doc first, we won't set the flag) doc.haschildren = true; } } else { hadNonNullIpath = true; make_udi(fn, doc.ipath, udi); } // Set file name, mod time and url if not done by // filter. We used to set the top-level container file // name for all subdocs without a proper file name, but // this did not make sense (resulted in multiple not // useful hits on the subdocs when searching for the // file name). if (doc.fmtime.empty()) doc.fmtime = ascdate; if (doc.url.empty()) doc.url = cstr_fileu + fn; const string *fnp = 0; if (doc.ipath.empty()) { if (!doc.peekmeta(Rcl::Doc::keyfn, &fnp) || fnp->empty()) doc.meta[Rcl::Doc::keyfn] = utf8fn; } // Set container file name for all docs, top or subdoc doc.meta[Rcl::Doc::keytcfn] = utf8fn; char cbuf[100]; sprintf(cbuf, "%lld", (long long)stp->st_size); doc.pcbytes = cbuf; // Document signature for up to date checks. All subdocs inherit the // file's. doc.sig = sig; // If there was an error, ensure indexing will be // retried. This is for the once missing, later installed // filter case. It can make indexing much slower (if there are // myriads of such files, the ext script is executed for them // and fails every time) if (fis == FileInterner::FIError) { doc.sig += cstr_plus; } // Possibly add fields from local config if (m_havelocalfields) setlocalfields(localfields, doc); // Add document to database. If there is an ipath, add it // as a child of the file document. #ifdef IDX_THREADS if (m_haveSplitQ) { DbUpdTask *tp = new DbUpdTask(udi, doc.ipath.empty() ? cstr_null : parent_udi, doc); if (!m_dwqueue.put(tp)) { LOGERR(("processonefile: wqueue.put failed\n")); return FsTreeWalker::FtwError; } } else { #endif if (!m_db->addOrUpdate(udi, doc.ipath.empty() ? cstr_null : parent_udi, doc)) { return FsTreeWalker::FtwError; } #ifdef IDX_THREADS } #endif // Tell what we are doing and check for interrupt request if (m_updater) { #ifdef IDX_THREADS PTMutexLocker locker(m_updater->m_mutex); #endif ++(m_updater->status.docsdone); if (m_updater->status.dbtotdocs < m_updater->status.docsdone) m_updater->status.dbtotdocs = m_updater->status.docsdone; m_updater->status.fn = fn; if (!doc.ipath.empty()) m_updater->status.fn += "|" + doc.ipath; if (!m_updater->update()) { return FsTreeWalker::FtwStop; } } } // If this doc existed and it's a container, recording for // possible subdoc purge (this will be used only if we don't do a // db-wide purge, e.g. if we're called from indexfiles()). LOGDEB2(("processOnefile: existingDoc %d hadNonNullIpath %d\n", existingDoc, hadNonNullIpath)); if (existingDoc && hadNonNullIpath) { m_purgeCandidates.record(parent_udi); } } // If we had no instance with a null ipath, we create an empty // document to stand for the file itself, to be used mainly for up // to date checks. Typically this happens for an mbox file. // // If xattronly is set, ONLY the extattr metadata is valid and will be used // by the following step. if (xattronly || hadNullIpath == false) { LOGDEB(("Creating empty doc for file or pure xattr update\n")); Rcl::Doc fileDoc; if (xattronly) { map xfields; reapXAttrs(config, fn, xfields); docFieldsFromXattrs(config, xfields, fileDoc); fileDoc.onlyxattr = true; } else { fileDoc.fmtime = ascdate; fileDoc.meta[Rcl::Doc::keyfn] = fileDoc.meta[Rcl::Doc::keytcfn] = utf8fn; fileDoc.haschildren = true; fileDoc.mimetype = mimetype; fileDoc.url = cstr_fileu + fn; if (m_havelocalfields) setlocalfields(localfields, fileDoc); char cbuf[100]; sprintf(cbuf, "%lld", (long long)stp->st_size); fileDoc.pcbytes = cbuf; } fileDoc.sig = sig; #ifdef IDX_THREADS if (m_haveSplitQ) { DbUpdTask *tp = new DbUpdTask(parent_udi, cstr_null, fileDoc); if (!m_dwqueue.put(tp)) return FsTreeWalker::FtwError; else return FsTreeWalker::FtwOk; } #endif if (!m_db->addOrUpdate(parent_udi, cstr_null, fileDoc)) return FsTreeWalker::FtwError; } return FsTreeWalker::FtwOk; } recoll-1.21.5/index/fetcher.cpp0000644000175000017500000000257412602163571015630 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #include "debuglog.h" #include "fetcher.h" #include "fsfetcher.h" #include "bglfetcher.h" DocFetcher *docFetcherMake(const Rcl::Doc& idoc) { if (idoc.url.empty()) { LOGERR(("docFetcherMakeg:: no url in doc!\n")); return 0; } string backend; idoc.getmeta(Rcl::Doc::keybcknd, &backend); if (backend.empty() || !backend.compare("FS")) { return new FSDocFetcher; } else if (!backend.compare("BGL")) { return new BGLDocFetcher; } else { LOGERR(("DocFetcherFactory: unknown backend [%s]\n", backend.c_str())); return 0; } } recoll-1.21.5/index/beaglequeue.h0000644000175000017500000000515012602163537016134 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _beaglequeue_h_included_ #define _beaglequeue_h_included_ #include using std::list; /** * Process the Beagle indexing queue. * * Beagle MUST NOT be running, else mayhem will ensue. * * This is mainly written to reuse the Beagle Firefox plug-in (which * copies visited pages and bookmarks to the queue). */ #include "fstreewalk.h" #include "rcldoc.h" class DbIxStatusUpdater; class CirCache; class RclConfig; class BeagleQueueCache; namespace Rcl { class Db; } class BeagleQueueIndexer : public FsTreeWalkerCB { public: BeagleQueueIndexer(RclConfig *cnf, Rcl::Db *db, DbIxStatusUpdater *updfunc = 0); ~BeagleQueueIndexer(); /** This is called by the top indexer in recollindex. * Does the walking and the talking */ bool index(); /** Called when we fstreewalk the queue dir */ FsTreeWalker::Status processone(const string &, const struct stat *, FsTreeWalker::CbFlag); /** Index a list of files. No db cleaning or stemdb updating. * Used by the real time monitor */ bool indexFiles(list& files); /** Purge a list of files. No way to do this currently and dont want * to do anything as this is mostly called by the monitor when *I* delete * files inside the queue dir */ bool purgeFiles(list& files) {return true;} /** Called when indexing data from the cache, and from internfile for * search result preview */ bool getFromCache(const string& udi, Rcl::Doc &doc, string& data, string *hittype = 0); private: RclConfig *m_config; Rcl::Db *m_db; BeagleQueueCache *m_cache; string m_queuedir; DbIxStatusUpdater *m_updater; bool m_nocacheindex; bool indexFromCache(const string& udi); void updstatus(const string& udi); }; #endif /* _beaglequeue_h_included_ */ recoll-1.21.5/index/recollindex.h0000644000175000017500000000237112602163537016162 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _recollindex_h_included_ #define _recollindex_h_included_ /** Helper methods in recollindex.cpp for initial checks/setup to index * a list of files (either from the monitor or the command line) */ extern bool indexfiles(RclConfig *config, list &filenames); extern bool purgefiles(RclConfig *config, list &filenames); extern bool createAuxDbs(RclConfig *config); extern int stopindexing; class ReExec; extern ReExec *o_reexec; #endif /* _recollindex_h_included_ */ recoll-1.21.5/index/fsfetcher.cpp0000644000175000017500000000407512602163571016157 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #include #include #include "debuglog.h" #include "cstr.h" #include "fetcher.h" #include "fsfetcher.h" #include "fsindexer.h" #include "debuglog.h" using std::string; static bool urltopath(RclConfig* cnf, const Rcl::Doc& idoc, string& fn, struct stat& st) { // The url has to be like file:// if (idoc.url.find(cstr_fileu) != 0) { LOGERR(("FSDocFetcher::fetch/sig: non fs url: [%s]\n", idoc.url.c_str())); return false; } fn = idoc.url.substr(7, string::npos); cnf->setKeyDir(path_getfather(fn)); bool follow = false; cnf->getConfParam("followLinks", &follow); if ((follow ? stat(fn.c_str(), &st) : lstat(fn.c_str(), &st))< 0) { LOGERR(("FSDocFetcher::fetch: stat errno %d for [%s]\n", errno, fn.c_str())); return false; } return true; } bool FSDocFetcher::fetch(RclConfig* cnf, const Rcl::Doc& idoc, RawDoc& out) { string fn; if (!urltopath(cnf, idoc, fn, out.st)) return false; out.kind = RawDoc::RDK_FILENAME; out.data = fn; return true; } bool FSDocFetcher::makesig(RclConfig* cnf, const Rcl::Doc& idoc, string& sig) { string fn; struct stat st; if (!urltopath(cnf, idoc, fn, st)) return false; FsIndexer::makesig(&st, sig); return true; } recoll-1.21.5/Makefile.in0000644000175000017500000000557312602163571014444 0ustar dockesdockes# Copyright (C) 2005 J.F.Dockes prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ datadir = @datadir@ datarootdir = @datarootdir@ mandir = @mandir@ QMAKE = @QMAKE@ QTGUI = @QTGUI@ RCLLIBVERSION=@RCLLIBVERSION@ all: configure mk/sysconf ${MAKE} -C query wasaparse.tab.cpp (cd lib; sh mkMake) ${MAKE} -C lib ${MAKE} -C index depend recollindex @NOQTMAKE@(cd $(QTGUI); ${QMAKE} recoll.pro) @NOQTMAKE@${MAKE} -C $(QTGUI) LFLAGS="$(LDFLAGS)" depth=.. prefix=$(prefix) exec_prefix=$(exec_prefix) libdir=$(libdir) @NOPYTHON@${MAKE} -C python/recoll libdir=$(libdir) ${MAKE} -C query recollq xadump mk/sysconf: @echo "You need to run configure first" ; exit 1 static: mk/sysconf ${MAKE} -C lib rm -f index/recollindex ${MAKE} -C index BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic \ LIBXAPIANSTATICEXTRA="@LIBXAPIANSTATICEXTRA@" \ recollindex @NOQTMAKE@(cd $(QTGUI); $(QMAKE) recoll.pro) @NOQTMAKE@rm -f $(QTGUI)/recoll @NOQTMAKE@${MAKE} -C $(QTGUI) BSTATIC=-Wl,-Bstatic \ @NOQTMAKE@ BDYNAMIC=-Wl,-Bdynamic depth=.. \ @NOQTMAKE@ LIBXAPIANSTATICEXTRA="@LIBXAPIANSTATICEXTRA@" clean: ${MAKE} -C common clean ${MAKE} -C index clean ${MAKE} -C internfile clean ${MAKE} -C query clean ${MAKE} -C utils clean -${MAKE} -C lib clean -${MAKE} -C python/recoll clean @NOQTMAKE@@-${MAKE} -C $(QTGUI) clean rm -f qtgui/Makefile qtgui/confgui/Makefile qtgui/recoll rm -f filters/rclexecm.pyc rm -rf qtgui/.moc qtgui/.ui qtgui/confgui/.moc qtgui/confgui/.ui rm -rf qtgui/.obj qtgui/.moc qtgui/.ui rm -rf python/recoll/build rm -rf php/recoll/build php/recoll/include php/recoll/modules rm -rf $(QTGUI)/recoll.app # Note: we don't remove the top Makefile, to keep the "clean" targets # available but a "Make" won't work without a configure anyway distclean: clean ${MAKE} -C query distclean -${MAKE} -C python/recoll distclean rm -f mk/sysconf mk/localdefs sampleconf/recoll.conf \ qtgui/recoll.pro \ config.log config.status \ recollinstall \ lib/*.dep lib/mkMake lib/Makefile common/autoconfig.h rm -f common/rclversion.h rm -f index/alldeps lib/alldeps query/alldeps \ bincimapmime/alldeps common/alldeps internfile/alldeps utils/alldeps rm -rf autom4te.cache maintainer-clean: distclean rm -f doc/user/*.html* doc/user/*.txt doc/user/HTML.manifest rm -f qtgui/i18n/*.qm # recollinstall can be executed by the user and will compute 'normal' # values for bindir etc., relative to the prefix argument. When executed # here, we pass a bunch of variables in the environment, the values will # override the computed defaults. install: all DESTDIR=${DESTDIR} bindir=${bindir} datadir=${datadir} \ libdir=${libdir} mandir=${mandir} \ /bin/sh ./recollinstall ${prefix} configure: VERSION configure.ac rm -f configure autoconf @echo run configure and make again exit 1 .PHONY: all static clean distclean install recoll-1.21.5/python/0000755000175000017500000000000012602163537013710 5ustar dockesdockesrecoll-1.21.5/python/samples/0000755000175000017500000000000012602163537015354 5ustar dockesdockesrecoll-1.21.5/python/samples/mutt-recoll.py0000755000175000017500000000550012602163537020200 0ustar dockesdockes#!/usr/bin/env python """ Modified from github:honza/mutt-notmuch-py This is a recoll version of the original mutt-notmuch script. It will interactively ask you for a search query and then symlink the matching messages to $HOME/.cache/mutt_results. Add this to your .muttrc. macro index / "unset wait_keymutt-recoll.py~/.cache/mutt_results" \ "search mail (using recoll)" This script overrides the $HOME/.cache/mutt_results each time you run a query. Install this by adding this file somewhere on your PATH. (c) 2012 - Honza Pokorny (c) 2014 - Jean-Francois Dockes Licensed under BSD """ import os import hashlib from commands import getoutput from mailbox import Maildir from optparse import OptionParser from collections import defaultdict def digest(filename): with open(filename) as f: return hashlib.sha1(f.read()).hexdigest() def pick_all_mail(messages): for m in messages: if 'All Mail' in m: return m def empty_dir(directory): box = Maildir(directory) box.clear() def command(cmd): return getoutput(cmd) def main(dest_box, is_gmail): query = raw_input('Query: ') command('mkdir -p %s/cur' % dest_box) command('mkdir -p %s/new' % dest_box) empty_dir(dest_box) files = command('recoll -t -b -q %s' % query).split('\n') data = defaultdict(list) messages = [] for f in files: # Recoll outputs file:// urls f = f[7:] if not f: continue try: sha = digest(f) data[sha].append(f) except IOError: print('File %s does not exist' % f) for sha in data: if is_gmail and len(data[sha]) > 1: messages.append(pick_all_mail(data[sha])) else: messages.append(data[sha][0]) for m in messages: if not m: continue target = os.path.join(dest_box, 'cur', os.path.basename(m)) if not os.path.exists(target): print "symlink [%s] -> [%s]" % (m, target) os.symlink(m, target) if __name__ == '__main__': p = OptionParser("usage: %prog [OPTIONS] [RESULTDIR]") p.add_option('-g', '--gmail', dest='gmail', action='store_true', default=True, help='gmail-specific behavior') p.add_option('-G', '--not-gmail', dest='gmail', action='store_false', help='gmail-specific behavior') (options, args) = p.parse_args() if args: dest = args[0] else: dest = os.path.expanduser('~/.cache/mutt_results') if not os.path.exists(dest): os.makedirs(dest) # Use expanduser() so that os.symlink() won't get weirded out by tildes. main(os.path.expanduser(dest).rstrip('/'), options.gmail) recoll-1.21.5/python/samples/rclmbox.py0000644000175000017500000000666112602163537017405 0ustar dockesdockes#!/usr/bin/env python """An example that uses python tools to parse mbox/rfcxxx format and index messages. Not supposed to run as-is or be really useful""" import mailbox import email.header import email.utils #import sys try: from recoll import recoll except: import recoll import os import stat mbfile = os.path.expanduser("~/mbox") rclconf = os.path.expanduser("~/.recoll") def header_value(msg, nm, to_utf = False): value = msg.get(nm) if value == None: return "" value = value.replace("\n", "") value = value.replace("\r", "") #print value parts = email.header.decode_header(value) #print parts univalue = u"" for part in parts: if part[1] != None: univalue += unicode(part[0], part[1]) + " " else: univalue += part[0] + " " if to_utf: return univalue.encode('utf-8') else: return univalue class mbox_indexer: def __init__(self, mbfile): self.mbfile = mbfile stdata = os.stat(mbfile) self.fmtime = stdata[stat.ST_MTIME] self.fbytes = stdata[stat.ST_SIZE] self.msgnum = 1 def sig(self): return str(self.fmtime) + ":" + str(self.fbytes) def udi(self, msgnum): return self.mbfile + ":" + str(msgnum) def index(self, db): if not db.needUpdate(self.udi(1), self.sig()): print("Index is up to date"); return None mb = mailbox.mbox(self.mbfile) for msg in mb.values(): print("Indexing message %d" % self.msgnum); self.index_message(db, msg) self.msgnum += 1 def index_message(self, db, msg): doc = recoll.Doc() doc.author = header_value(msg, "From") doc.recipient = header_value(msg, "To") + " " + header_value(msg, "Cc") # url doc.url = "file://" + self.mbfile # utf8fn # ipath doc.ipath = str(self.msgnum) # mimetype doc.mimetype = "message/rfc822" # mtime dte = header_value(msg, "Date") tm = email.utils.parsedate_tz(dte) if tm == None: doc.mtime = str(self.fmtime) else: doc.mtime = str(email.utils.mktime_tz(tm)) # origcharset # title doc.title = header_value(msg, "Subject") # keywords # abstract # author # fbytes doc.fbytes = str(self.fbytes) # text text = u"" text += u"From: " + header_value(msg, "From") + u"\n" text += u"To: " + header_value(msg, "To") + u"\n" text += u"Subject: " + header_value(msg, "Subject") + u"\n" #text += u"Message-ID: " + header_value(msg, "Message-ID") + u"\n" text += u"\n" for part in msg.walk(): if part.is_multipart(): pass else: ct = part.get_content_type() if ct.lower() == "text/plain": charset = part.get_content_charset("iso-8859-1") #print "charset: ", charset #print "text: ", part.get_payload(None, True) text += unicode(part.get_payload(None, True), charset) doc.text = text # dbytes doc.dbytes = str(len(text)) # sig doc.sig = self.sig() udi = self.udi(self.msgnum) db.addOrUpdate(udi, doc) db = recoll.connect(confdir=rclconf, writable=1) mbidx = mbox_indexer(mbfile) mbidx.index(db) recoll-1.21.5/python/samples/recollgui/0000755000175000017500000000000012602163537017341 5ustar dockesdockesrecoll-1.21.5/python/samples/recollgui/Makefile0000644000175000017500000000015712602163537021004 0ustar dockesdockesall: rclmain.py rclmain.py: rclmain.ui pyuic4 -o rclmain.py rclmain.ui clean: rm -f rclmain.py rclmain.pyc recoll-1.21.5/python/samples/recollgui/qrecoll.py0000755000175000017500000002035112602163537021360 0ustar dockesdockes#!/usr/bin/env python import sys import datetime try: from recoll import recoll from recoll import rclextract hasextract = True except: import recoll hasextract = False import rclmain from getopt import getopt from PyQt4 import QtCore, QtGui from PyQt4.QtCore import pyqtSlot #################### # Highlighting methods. Just for showing the groups usage, we add the # original string for the match to the highlighted text. I don't think # you'd want to do this in a real app, but maybe some kind of tooltip? class HlMeths: def __init__(self, groups): self.groups = groups def startMatch(self, idx): ugroup = " ".join(self.groups[idx][0]) return ''+ugroup+'' def endMatch(self): return '' ############ # Data extraction. The 2 following methods use the extractor module # and get the data from the original document # # Extract and return document text (in text or html format, indicated # by newdoc.mimetype) def textextract(doc): extractor = rclextract.Extractor(doc) newdoc = extractor.textextract(doc.ipath) return newdoc # Extract document in original format (ie: application/msword) and # save it to a file. This only works if ipath is not null (else just # use the url !) def extractofile(doc, outfilename=""): extractor = rclextract.Extractor(doc) outfilename = extractor.idoctofile(doc.ipath, doc.mimetype, \ ofilename=outfilename) return outfilename ######### # RecollQuery wraps a recoll.query object in a Qt model class RecollQuery(QtCore.QAbstractTableModel): def __init__(self): QtCore.QAbstractTableModel.__init__(self) self.totres = -1 self.db = None self.query = None self.qtext = "" self.docs = [] self.pagelen = 10 self.attrs = ("filename", "title", "mtime", "url", "ipath") def rowCount(self, parent): ret = len(self.docs) #print "RecollQuery.rowCount(): ", ret return ret def columnCount(self, parent): #print "RecollQuery.columnCount()" if parent.isValid(): return 0 else: return len(self.attrs) def setquery(self, db, q, sortfield="", ascending=True): """Parse and execute query on open db""" #print "RecollQuery.setquery():" # Get query object self.query = db.query() if sortfield: self.query.sortby(sortfield, ascending) # Parse/run input query string self.totres = self.query.execute(q) self.qtext = q self.db = db self.docs = [] self.fetchMore(None) def getdoc(self, index): if index.row() < len(self.docs): return self.docs[index.row()] else: return None def sort(self, col, order): #print "sort", col, order self.setquery(self.db, self.qtext, sortfield=self.attrs[col], ascending = order) def headerData(self, idx, orient, role): if orient == QtCore.Qt.Horizontal and role == QtCore.Qt.DisplayRole: return self.attrs[idx] return None def data(self, index, role): #print "RecollQuery.data: row %d, role: " % (index.row(),), role if not index.isValid(): return QtCore.QVariant() if index.row() >= len(self.docs): return QtCore.QVariant() if role == QtCore.Qt.DisplayRole: #print "RecollQuery.data: row %d, col %d role: " % \ # (index.row(), index.column()), role attr = self.attrs[index.column()] value = getattr(self.docs[index.row()], attr) if attr == "mtime": dte = datetime.datetime.fromtimestamp(int(value)) value = str(dte) return value else: return QtCore.QVariant() def canFetchMore(self, parent): #print "RecollQuery.canFetchMore:" if len(self.docs) < self.totres: return True else: return False def fetchMore(self, parent): #print "RecollQuery.fetchMore:" self.beginInsertRows(QtCore.QModelIndex(), len(self.docs), \ len(self.docs) + self.pagelen) for count in range(self.pagelen): try: self.docs.append(self.query.fetchone()) except: break self.endInsertRows() ### # UI interaction code class RclGui_Main(QtGui.QMainWindow): def __init__(self, db, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = rclmain.Ui_MainWindow() self.ui.setupUi(self) self.db = db self.qmodel = RecollQuery() scq = QtGui.QShortcut(QtGui.QKeySequence("Ctrl+Q"), self); self.connect(scq, QtCore.SIGNAL("activated()"), self.onexit) header = self.ui.resTable.horizontalHeader(); header.setSortIndicatorShown(True); header.setSortIndicator(-1, QtCore.Qt.AscendingOrder); self.ui.resTable.setSortingEnabled(True) self.currentindex = -1 self.currentdoc = None def on_searchEntry_returnPressed(self): self.startQuery() def on_resTable_clicked(self, index): doc = self.qmodel.getdoc(index) self.currentindex = index self.currentdoc = doc if doc is None: print "NO DoC" return query = self.qmodel.query groups = query.getgroups() meths = HlMeths(groups) abs = query.makedocabstract(doc, methods=meths) self.ui.resDetail.setText(abs) if hasextract: ipath = doc.get('ipath') #print "ipath[%s]" % (ipath,) self.ui.previewPB.setEnabled(True) if ipath: self.ui.savePB.setEnabled(True) else: self.ui.savePB.setEnabled(False) @pyqtSlot() def on_previewPB_clicked(self): print "on_previewPB_clicked(self)" newdoc = textextract(self.currentdoc) query = self.qmodel.query; groups = query.getgroups() meths = HlMeths(groups) #print "newdoc.mimetype:", newdoc.mimetype if newdoc.mimetype == 'text/html': ishtml = True else: ishtml = False text = '' + \ query.highlight(newdoc.text, methods=meths, ishtml=ishtml, eolbr=True) text += '' self.ui.resDetail.setText(text) @pyqtSlot() def on_savePB_clicked(self): print "on_savePB_clicked(self)" doc = self.currentdoc ipath = doc.ipath if not ipath: return fn = QtGui.QFileDialog.getSaveFileName(self) if fn: docitems = doc.items() fn = extractofile(doc, str(fn.toLocal8Bit())) print "Saved as", fn else: print >> sys.stderr, "Canceled" def startQuery(self): self.qmodel.setquery(self.db, self.ui.searchEntry.text()) self.ui.resTable.setModel(self.qmodel) def onexit(self): self.close() def Usage(): print >> sys.stderr, '''Usage: qt.py [ [ ...]]''' sys.exit(1) def main(args): app = QtGui.QApplication(args) confdir="" extra_dbs = [] # Snippet params maxchars = 300 contextwords = 6 # Process options: [-c confdir] [-i extra_db [-i extra_db] ...] options, args = getopt(args[1:], "c:i:") for opt,val in options: if opt == "-c": confdir = val elif opt == "-i": extra_dbs.append(val) else: print >> sys.stderr, "Bad opt: ", opt Usage() # The query should be in the remaining arg(s) q = None if len(args) > 0: q = "" for word in args: q += word + " " db = recoll.connect(confdir=confdir, extra_dbs=extra_dbs) db.setAbstractParams(maxchars=maxchars, contextwords=contextwords) topwindow = RclGui_Main(db) topwindow.show() if q is not None: topwindow.ui.searchEntry.setText(q) topwindow.startQuery() sys.exit(app.exec_()) if __name__=="__main__": main(sys.argv) recoll-1.21.5/python/samples/recollgui/rclmain.ui0000644000175000017500000000615612602163537021335 0ustar dockesdockes MainWindow 0 0 800 600 MainWindow Search string + CR 0 4 QAbstractItemView::NoEditTriggers false 0 0 false Preview false Save 0 0 800 23 File Exit actionExit activated() MainWindow close() -1 -1 399 299 recoll-1.21.5/python/samples/docdups.py0000755000175000017500000000605712602163537017402 0ustar dockesdockes#!/usr/bin/env python import sys import xapian o_index_stripchars = True md5wpref = "XM" # Handle caps/diac-stripping option. If the db is raw the prefixes are # wrapped with ":" def wrap_prefix(prefix): if o_index_stripchars: return prefix else: return ":" + prefix + ":" def init_stripchars(xdb): global o_index_stripchars global md5wpref t = xdb.allterms() t.skip_to(":") for term in t: if term.term.find(":") == 0: o_index_stripchars = False break md5wpref = wrap_prefix("XM") # Retrieve named value from document data record. # The record format is a sequence of nm=value lines def get_attribute(xdb, docid, fld): doc = xdb.get_document(docid) data = doc.get_data() s = data.find(fld+"=") if s == -1: return "" e = data.find("\n", s) return data[s+len(fld)+1:e] # Convenience: retrieve postings as Python list def get_postlist(xdb, term): ret = list() for posting in xdb.postlist(term): ret.append(posting.docid) return ret # Return list of docids having same md5 including self def get_dups(xdb, docid): doc = xdb.get_document(int(docid)) # It would be more efficient to retrieve the value, but it's # binary so we'd have to decode it md5term = doc.termlist().skip_to(md5wpref).term if not md5term.startswith(md5wpref): return posts = get_postlist(xdb, md5term) return posts # Retrieve all sets of duplicates: # walk the list of all MD5 terms, look up their posting lists, and # store the docids where the list is longer than one. def find_all_dups(xdb): alldups = list() # Walk the MD5 terms t = xdb.allterms() t.skip_to(md5wpref) for term in t: if not term.term.startswith(md5wpref): break # Check postlist for term, if it's not of length 1, we have a dup dups = get_postlist(xdb, term.term) if len(dups) != 1: alldups.append(dups) return alldups # Print docid url ipath for list of docids def print_urlipath(xdb, doclist): for docid in doclist: url = get_attribute(xdb, docid, "url") ipath = get_attribute(xdb, docid, "ipath") print docid, url, ipath ########## Main program if len(sys.argv) < 2: print >> sys.stderr, "Usage: %s /path/to/db [docid [docid ...]]" % \ sys.argv[0] print >> sys.stderr, " will print all sets of dups if no docid is given" print >> sys.stderr, " else only the duplicates for the given docids" sys.exit(1) xdbpath = sys.argv[1] xdb = xapian.Database(xdbpath) init_stripchars(xdb) try: if len(sys.argv) == 2: # No docid args, alldups = find_all_dups(xdb) for dups in alldups: print_urlipath(xdb, dups) print else: for docid in sys.argv[2:]: dups = get_dups(xdb, docid) if dups is not None and len(dups) > 1: print_urlipath(xdb, dups) except Exception, e: print >> sys.stderr, "Xapian error: %s" % str(e) sys.exit(1) recoll-1.21.5/python/samples/recollqsd.py0000755000175000017500000000241712602163537017725 0ustar dockesdockes#!/usr/bin/env python """Example for using the ''searchdata''' structured query interface. Not good for anything except showing/trying the code.""" import sys from recoll import recoll def dotest(db, q): query = db.query() query.sortby("title", 1) nres = query.executesd(q) print "Result count: ", nres print "Query: ", query.getxquery().encode('utf-8') if nres > 10: nres = 10 for i in range(nres): doc = query.fetchone() print query.next if type(query.next) == int else query.rownumber for k in ("url", "mtime", "title", "author", "abstract"): if getattr(doc, k): print k, ":", getattr(doc, k).encode('utf-8') else: print k, ": None" print # End dotest # addclause(type='and'|'or'|'filename'|'phrase'|'near'|'path'|'sub' # qstring=string, slack=int, field=string, stemming=1|0, # subSearch=SearchData, exclude=0|1, anchorstart=0|1, anchorend=0|1 # casesens=0|1, diacsens=0|1) #sd.addclause("and", "dockes", field="author") #sd.addclause("phrase", "jean francois", 1) db = recoll.connect(confdir="/home/dockes/.recoll-prod") sd = recoll.SearchData(stemlang="english") sd.addclause('filename', "recollqsd*") dotest(db, sd) sys.exit(0) recoll-1.21.5/python/samples/recollq.py0000755000175000017500000000744012602163537017377 0ustar dockesdockes#!/usr/bin/env python # -*- coding: utf-8 -*- """A python version of the command line query tool recollq (a bit simplified) The input string is always interpreted as a query language string. This could actually be useful for something after some customization """ import sys import locale from getopt import getopt if sys.version_info[0] >= 3: ISP3 = True else: ISP3 = False try: from recoll import recoll from recoll import rclextract hasextract = True except: import recoll hasextract = False allmeta = ("title", "keywords", "abstract", "url", "mimetype", "mtime", "ipath", "fbytes", "dbytes", "relevancyrating") def Usage(): print("Usage: recollq.py [-c conf] [-i extra_index] ") sys.exit(1); class ptrmeths: def __init__(self, groups): self.groups = groups def startMatch(self, idx): ugroup = " ".join(self.groups[idx][1]) return '' % (idx, ugroup) def endMatch(self): return '' def extract(doc): extractor = rclextract.Extractor(doc) newdoc = extractor.textextract(doc.ipath) return newdoc def extractofile(doc, outfilename=""): extractor = rclextract.Extractor(doc) outfilename = extractor.idoctofile(doc.ipath, doc.mimetype, \ ofilename=outfilename) return outfilename def utf8string(s): if ISP3: return s else: return s.encode('utf8') def doquery(db, q): # Get query object query = db.query() #query.sortby("dmtime", ascending=True) # Parse/run input query string nres = query.execute(q, stemming = 0, stemlang="english") qs = "Xapian query: [%s]" % query.getxquery() print(utf8string(qs)) groups = query.getgroups() m = ptrmeths(groups) # Print results: print("Result count: %d %d" % (nres, query.rowcount)) if nres > 20: nres = 20 #results = query.fetchmany(nres) #for doc in results: for i in range(nres): doc = query.fetchone() rownum = query.next if type(query.next) == int else \ query.rownumber print("%d:"%(rownum,)) #for k,v in doc.items().items(): #print "KEY:", utf8string(k), "VALUE", utf8string(v) #continue #outfile = extractofile(doc) #print "outfile:", outfile, "url", utf8string(doc.url) for k in ("title", "mtime", "author"): value = getattr(doc, k) # value = doc.get(k) if value is None: print("%s: (None)"%(k,)) else: print("%s : %s"%(k, utf8string(value))) #doc.setbinurl(bytearray("toto")) #burl = doc.getbinurl(); print("Bin URL : [%s]"%(doc.getbinurl(),)) abs = query.makedocabstract(doc, methods=m) print(utf8string(abs)) print('') # fulldoc = extract(doc) # print "FULLDOC MIMETYPE", fulldoc.mimetype, "TEXT:", fulldoc.text.encode("utf-8") ########################################### MAIN if len(sys.argv) < 2: Usage() language, localecharset = locale.getdefaultlocale() confdir="" extra_dbs = [] # Snippet params maxchars = 120 contextwords = 4 # Process options: [-c confdir] [-i extra_db [-i extra_db] ...] options, args = getopt(sys.argv[1:], "c:i:") for opt,val in options: if opt == "-c": confdir = val elif opt == "-i": extra_dbs.append(val) else: print("Bad opt: %s"%(opt,)) Usage() # The query should be in the remaining arg(s) if len(args) == 0: print("No query found in command line") Usage() q = '' for word in args: q += word + ' ' print("QUERY: [%s]"%(q,)) db = recoll.connect(confdir=confdir, extra_dbs=extra_dbs) db.setAbstractParams(maxchars=maxchars, contextwords=contextwords) doquery(db, q) recoll-1.21.5/python/samples/trconfig.py0000755000175000017500000000247112602163537017550 0ustar dockesdockes#!/usr/bin/env python from recoll import rclconfig def trstack(): conf = rclconfig.ConfStack("recoll.conf", ('/home/dockes/.recoll/', '/usr/local/share/recoll/examples/')) nms = ('topdirs', 'thrQSizes', 'skippedNames', 'loglevel') for nm in nms: print nm, "=>", conf.get(nm) def trtree(fname): conf = rclconfig.ConfTree(fname, True) #nsk = (('intoto', '/a/b/'), ('intoto', ''), ('intoto', '/a/b/c'), ('intoto', '/c')) nsk = (('intoto', ''), ('intoto', '/'), ('intoto', '/a/b/c'), ('intoto', 'a')) for nm, sk in nsk: print sk, nm, "=>", conf.get(nm, sk) print def trsimple(fname): conf = rclconfig.ConfSimple(fname) nms = ('thrQSizes',) for nm in nms: print nm, "=>", conf.get(nm) # nsk = (('intoto', '/toto'), ('intoto', '')) # for nm, sk in nsk: # print sk, nm, "=>", conf.get(nm, sk) def trconfig(): config = rclconfig.RclConfig() names = ("topdirs", "indexallfilenames") for nm in names: print "%s: [%s]" % (nm, config.getConfParam(nm)) def trextdbs(): config = rclconfig.RclConfig("/home/dockes/.recoll-prod") extradbs = rclconfig.RclExtraDbs(config) print extradbs.getActDbs() #trconfig() #trsimple(sys.argv[1]) trextdbs() recoll-1.21.5/python/samples/rcldlkp.py0000755000175000017500000000532412602163537017370 0ustar dockesdockes#!/usr/bin/env python __doc__ = """ An exemple indexer for an arbitrary multi-document file format. Not supposed to run ''as-is'' or be really useful. ''Lookup'' notes file indexing The file format has text notes separated by lines with a single '%' character If the script is called with just the file name as an argument, it will (re)index the contents. If the script is called with second numeric argument, it will retrieve the specified record and output it in html """ import os import stat import sys import re rclconf = "/Users/dockes/.recoll-dlkp" def udi(docfile, numrec): return docfile + "#" + str(numrec) ############################################################### def index_rec(db, numrec, rec): doc = recoll.Doc() # url doc.url = "file://" + docfile # utf8fn # ipath doc.ipath = str(numrec) # mimetype doc.mimetype = "text/plain" # mtime # origcharset # title lines = rec.split("\n") if len(lines) >= 2: doc.title = unicode(lines[1], "iso-8859-1") if len(doc.title.strip()) == 0 and len(lines) >= 3: doc.title = unicode(lines[2], "iso-8859-1") # keywords # abstract # author # fbytes doc.fbytes = str(fbytes) # text doc.text = unicode(rec, "iso-8859-1") # dbytes doc.dbytes = str(len(rec)) # sig if numrec == 0: doc.sig = str(fmtime) db.addOrUpdate(udi(docfile, numrec), doc) def output_rec(rec): # Escape html rec = unicode(rec, "iso-8859-1").encode("utf-8") rec = rec.replace("<", "<"); rec = rec.replace("&", "&"); rec = rec.replace('"', "&dquot;"); print '' print '' print '
'
    print rec
    print '
' ################################################################ def usage(): sys.stderr.write("Usage: rcldlkp.py []\n") exit(1) if len(sys.argv) < 2: usage() docfile = sys.argv[1] if len(sys.argv) > 2: targetnum = int(sys.argv[2]) else: targetnum = None #print docfile, targetnum stdata = os.stat(docfile) fmtime = stdata[stat.ST_MTIME] fbytes = stdata[stat.ST_SIZE] f = open(docfile, 'r') if targetnum == None: import recoll db = recoll.connect(confdir=rclconf, writable=1) if not db.needUpdate(udi(docfile, 0), str(fmtime)): exit(0) rec = "" numrec = 1 for line in f: if re.compile("^%[ \t]*").match(line): if targetnum == None: index_rec(db, numrec, rec) elif targetnum == numrec: output_rec(rec) exit(0) numrec += 1 rec = "" else: rec += line if targetnum == None: index_rec(db, 0, "") recoll-1.21.5/python/recoll/0000755000175000017500000000000012652665251015175 5ustar dockesdockesrecoll-1.21.5/python/recoll/pyrclextract.cpp0000644000175000017500000002547612602163537020436 0ustar dockesdockes/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include using namespace std; #include "debuglog.h" #include "rcldoc.h" #include "internfile.h" #include "rclconfig.h" #include "rclinit.h" #include "pyrecoll.h" // Imported from pyrecoll static PyObject *recoll_DocType; static RclConfig *rclconfig; ////////////////////////////////////////////////////////////////////// /// Extractor object code typedef struct { PyObject_HEAD /* Type-specific fields go here. */ FileInterner *xtr; RclConfig *rclconfig; } rclx_ExtractorObject; static void Extractor_dealloc(rclx_ExtractorObject *self) { LOGDEB(("Extractor_dealloc\n")); delete self->xtr; Py_TYPE(self)->tp_free((PyObject*)self); } static PyObject * Extractor_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { LOGDEB(("Extractor_new\n")); rclx_ExtractorObject *self = (rclx_ExtractorObject *)type->tp_alloc(type, 0); if (self == 0) return 0; self->xtr = 0; self->rclconfig = 0; return (PyObject *)self; } static int Extractor_init(rclx_ExtractorObject *self, PyObject *args, PyObject *kwargs) { LOGDEB(("Extractor_init\n")); static const char* kwlist[] = {"doc", NULL}; PyObject *pdobj; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!", (char**)kwlist, recoll_DocType, &pdobj)) return -1; recoll_DocObject *dobj = (recoll_DocObject *)pdobj; if (dobj->doc == 0) { PyErr_SetString(PyExc_AttributeError, "Null Doc ?"); return -1; } self->rclconfig = dobj->rclconfig; self->xtr = new FileInterner(*dobj->doc, self->rclconfig, FileInterner::FIF_forPreview); return 0; } PyDoc_STRVAR(doc_Extractor_textextract, "textextract(ipath)\n" "Extract document defined by ipath and return a doc object. The doc.text\n" "field has the document text as either text/plain or text/html\n" "according to doc.mimetype.\n" ); static PyObject * Extractor_textextract(rclx_ExtractorObject* self, PyObject *args, PyObject *kwargs) { LOGDEB(("Extractor_textextract\n")); static const char* kwlist[] = {"ipath", NULL}; char *sipath = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "es:Extractor_textextract", (char**)kwlist, "utf-8", &sipath)) return 0; string ipath(sipath); PyMem_Free(sipath); if (self->xtr == 0) { PyErr_SetString(PyExc_AttributeError, "extract: null object"); return 0; } /* Call the doc class object to create a new doc. */ recoll_DocObject *result = (recoll_DocObject *)PyObject_CallObject((PyObject *)recoll_DocType, 0); if (!result) { PyErr_SetString(PyExc_AttributeError, "extract: doc create failed"); return 0; } FileInterner::Status status = self->xtr->internfile(*(result->doc), ipath); if (status != FileInterner::FIDone && status != FileInterner::FIAgain) { PyErr_SetString(PyExc_AttributeError, "internfile failure"); return 0; } string html = self->xtr->get_html(); if (!html.empty()) { result->doc->text = html; result->doc->mimetype = "text/html"; } // Is this actually needed ? Useful for url which is also formatted . Rcl::Doc *doc = result->doc; printableUrl(self->rclconfig->getDefCharset(), doc->url, doc->meta[Rcl::Doc::keyurl]); doc->meta[Rcl::Doc::keytp] = doc->mimetype; doc->meta[Rcl::Doc::keyipt] = doc->ipath; doc->meta[Rcl::Doc::keyfs] = doc->fbytes; doc->meta[Rcl::Doc::keyds] = doc->dbytes; return (PyObject *)result; } PyDoc_STRVAR(doc_Extractor_idoctofile, "idoctofile(ipath='', mimetype='', ofilename='')\n" "Extract document defined by ipath into a file, in its native format.\n" ); static PyObject * Extractor_idoctofile(rclx_ExtractorObject* self, PyObject *args, PyObject *kwargs) { LOGDEB(("Extractor_idoctofile\n")); static const char* kwlist[] = {"ipath", "mimetype", "ofilename", NULL}; char *sipath = 0; char *smt = 0; char *soutfile = 0; // no freeing if (!PyArg_ParseTupleAndKeywords(args,kwargs, "eses|s:Extractor_idoctofile", (char**)kwlist, "utf-8", &sipath, "utf-8", &smt, &soutfile)) return 0; string ipath(sipath); PyMem_Free(sipath); string mimetype(smt); PyMem_Free(smt); string outfile; if (soutfile && *soutfile) outfile.assign(soutfile); if (self->xtr == 0) { PyErr_SetString(PyExc_AttributeError, "idoctofile: null object"); return 0; } if (ipath.empty()) { PyErr_SetString(PyExc_ValueError, "idoctofile: null ipath"); return 0; } self->xtr->setTargetMType(mimetype); TempFile temp; bool status = self->xtr->interntofile(temp, outfile, ipath, mimetype); if (!status) { PyErr_SetString(PyExc_AttributeError, "interntofile failure"); return 0; } if (outfile.empty()) temp->setnoremove(1); PyObject *result = outfile.empty() ? PyBytes_FromString(temp->filename()) : PyBytes_FromString(outfile.c_str()); return (PyObject *)result; } static PyMethodDef Extractor_methods[] = { {"textextract", (PyCFunction)Extractor_textextract, METH_VARARGS|METH_KEYWORDS, doc_Extractor_textextract}, {"idoctofile", (PyCFunction)Extractor_idoctofile, METH_VARARGS|METH_KEYWORDS, doc_Extractor_idoctofile}, {NULL} /* Sentinel */ }; PyDoc_STRVAR(doc_ExtractorObject, "Extractor()\n" "\n" "An Extractor object can extract data from a native simple or compound\n" "object.\n" ); static PyTypeObject rclx_ExtractorType = { PyVarObject_HEAD_INIT(NULL, 0) "rclextract.Extractor", /*tp_name*/ sizeof(rclx_ExtractorObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ (destructor)Extractor_dealloc, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash */ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /*tp_flags*/ doc_ExtractorObject, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ Extractor_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ (initproc)Extractor_init, /* tp_init */ 0, /* tp_alloc */ Extractor_new, /* tp_new */ }; ///////////////////////////////////// Module-level stuff static PyMethodDef rclextract_methods[] = { {NULL, NULL, 0, NULL} /* Sentinel */ }; PyDoc_STRVAR(rclx_doc_string, "This is an interface to the Recoll text extraction features."); struct module_state { PyObject *error; }; #if PY_MAJOR_VERSION >= 3 #define GETSTATE(m) ((struct module_state*)PyModule_GetState(m)) #else #define GETSTATE(m) (&_state) static struct module_state _state; #endif #if PY_MAJOR_VERSION >= 3 static int rclextract_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(GETSTATE(m)->error); return 0; } static int rclextract_clear(PyObject *m) { Py_CLEAR(GETSTATE(m)->error); return 0; } static struct PyModuleDef moduledef = { PyModuleDef_HEAD_INIT, "rclextract", NULL, sizeof(struct module_state), rclextract_methods, NULL, rclextract_traverse, rclextract_clear, NULL }; #define INITERROR return NULL extern "C" PyObject * PyInit_rclextract(void) #else #define INITERROR return PyMODINIT_FUNC initrclextract(void) #endif { // We run recollinit. It's responsible for initializing some static data // which is distinct from pyrecoll's as we're separately dlopened string reason; rclconfig = recollinit(0, 0, reason, 0); if (rclconfig == 0) { PyErr_SetString(PyExc_EnvironmentError, reason.c_str()); INITERROR; } if (!rclconfig->ok()) { PyErr_SetString(PyExc_EnvironmentError, "Recoll init error: bad environment ?"); INITERROR; } #if PY_MAJOR_VERSION >= 3 PyObject *module = PyModule_Create(&moduledef); #else PyObject *module = Py_InitModule("rclextract", rclextract_methods); #endif if (module == NULL) INITERROR; struct module_state *st = GETSTATE(module); // The first parameter is a char *. Hopefully we don't initialize // modules too often... st->error = PyErr_NewException(strdup("rclextract.Error"), NULL, NULL); if (st->error == NULL) { Py_DECREF(module); INITERROR; } PyModule_AddStringConstant(module, "__doc__", rclx_doc_string); if (PyType_Ready(&rclx_ExtractorType) < 0) INITERROR; Py_INCREF(&rclx_ExtractorType); PyModule_AddObject(module, "Extractor", (PyObject *)&rclx_ExtractorType); #if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 7) recoll_DocType = (PyObject*)PyCapsule_Import(PYRECOLL_PACKAGE "recoll.doctypeptr", 0); #else PyObject *module1 = PyImport_ImportModule(PYRECOLL_PACKAGE "recoll"); if (module1 != NULL) { PyObject *cobject = PyObject_GetAttrString(module1, "doctypeptr"); if (cobject == NULL) INITERROR; if (PyCObject_Check(cobject)) recoll_DocType = (PyObject*)PyCObject_AsVoidPtr(cobject); Py_DECREF(cobject); } #endif #if PY_MAJOR_VERSION >= 3 return module; #endif } recoll-1.21.5/python/recoll/pyrecoll.cpp0000644000175000017500000017476612602163571017550 0ustar dockesdockes/* Copyright (C) 2007 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include using namespace std; #include "rclinit.h" #include "rclconfig.h" #include "rcldb.h" #include "searchdata.h" #include "rclquery.h" #include "pathut.h" #include "wasatorcl.h" #include "debuglog.h" #include "pathut.h" #include "plaintorich.h" #include "hldata.h" #include "pyrecoll.h" static set the_dbs; static set the_queries; static set the_docs; static RclConfig *rclconfig; #if PY_MAJOR_VERSION >=3 # define Py_TPFLAGS_HAVE_ITER 0 #endif ////////////////////////////////////////////////////////////////////// /// SEARCHDATA SearchData code typedef struct { PyObject_HEAD /* Type-specific fields go here. */ RefCntr sd; } recoll_SearchDataObject; static void SearchData_dealloc(recoll_SearchDataObject *self) { LOGDEB(("SearchData_dealloc. Releasing. Count before: %d\n", self->sd.getcnt())); self->sd.release(); Py_TYPE(self)->tp_free((PyObject*)self); } static PyObject * SearchData_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { LOGDEB(("SearchData_new\n")); recoll_SearchDataObject *self; self = (recoll_SearchDataObject *)type->tp_alloc(type, 0); if (self == 0) return 0; return (PyObject *)self; } PyDoc_STRVAR(doc_SearchDataObject, "SearchData([type=AND|OR], [stemlang=somelanguage|null])\n" "\n" "A SearchData object describes a query. It has a number of global\n" "parameters and a chain of search clauses.\n" ); static int SearchData_init(recoll_SearchDataObject *self, PyObject *args, PyObject *kwargs) { LOGDEB(("SearchData_init\n")); static const char* kwlist[] = {"type", "stemlang", NULL}; char *stp = 0; char *steml = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|sz", (char**)kwlist, &stp, &steml)) return -1; Rcl::SClType tp = Rcl::SCLT_AND; if (stp && strcasecmp(stp, "or")) { tp = Rcl::SCLT_OR; } string stemlang; if (steml) { stemlang = steml; } else { stemlang = "english"; } self->sd = RefCntr(new Rcl::SearchData(tp, stemlang)); return 0; } /* Note: addclause necessite And/Or vient du fait que le string peut avoir plusieurs mots. A transferer dans l'i/f Python ou pas ? */ PyDoc_STRVAR(doc_addclause, "addclause(type='and'|'or'|'filename'|'phrase'|'near'|'path'|'sub',\n" " qstring=string, slack=int, field=string, stemming=1|0,\n" " subSearch=SearchData, exclude=0|1, anchorstart=0|1, anchorend=0|1,\n" " casesens=0|1, diacsens=0|1)\n" "Adds a simple clause to the SearchData And/Or chain, or a subquery\n" "defined by another SearchData object\n" ); /* Forward declaration only, definition needs recoll_searchDataType */ static PyObject * SearchData_addclause(recoll_SearchDataObject* self, PyObject *args, PyObject *kwargs); static PyMethodDef SearchData_methods[] = { {"addclause", (PyCFunction)SearchData_addclause, METH_VARARGS|METH_KEYWORDS, doc_addclause}, {NULL} /* Sentinel */ }; static PyTypeObject recoll_SearchDataType = { PyVarObject_HEAD_INIT(NULL, 0) "recoll.SearchData", /*tp_name*/ sizeof(recoll_SearchDataObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ (destructor)SearchData_dealloc, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash */ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /*tp_flags*/ doc_SearchDataObject, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ SearchData_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ (initproc)SearchData_init, /* tp_init */ 0, /* tp_alloc */ SearchData_new, /* tp_new */ }; static PyObject * SearchData_addclause(recoll_SearchDataObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("SearchData_addclause\n")); if (self->sd.isNull()) { LOGERR(("SearchData_addclause: not init??\n")); PyErr_SetString(PyExc_AttributeError, "sd"); return 0; } static const char *kwlist[] = {"type", "qstring", "slack", "field", "stemming", "subsearch", "exclude", "anchorstart", "anchorend", "casesens", "diacsens", NULL}; char *tp = 0; char *qs = 0; // needs freeing int slack = 0; char *fld = 0; // needs freeing PyObject *dostem = 0; recoll_SearchDataObject *sub = 0; PyObject *exclude = 0; PyObject *anchorstart = 0; PyObject *anchorend = 0; PyObject *casesens = 0; PyObject *diacsens = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ses|iesOO!OOOOO", (char**)kwlist, &tp, "utf-8", &qs, &slack, "utf-8", &fld, &dostem, &recoll_SearchDataType, &sub, &exclude, &anchorstart, &anchorend, &casesens, &diacsens )) return 0; Rcl::SearchDataClause *cl = 0; switch (tp[0]) { case 'a': case 'A': if (strcasecmp(tp, "and")) goto defaultcase; cl = new Rcl::SearchDataClauseSimple(Rcl::SCLT_AND, qs, fld?fld:""); break; case 'f': case 'F': if (strcasecmp(tp, "filename")) goto defaultcase; cl = new Rcl::SearchDataClauseFilename(qs); break; case 'o': case 'O': if (strcasecmp(tp, "or")) goto defaultcase; cl = new Rcl::SearchDataClauseSimple(Rcl::SCLT_OR, qs, fld?fld:""); break; case 'n': case 'N': if (strcasecmp(tp, "near")) goto defaultcase; cl = new Rcl::SearchDataClauseDist(Rcl::SCLT_NEAR, qs, slack, fld ? fld : ""); break; case 'p': case 'P': if (!strcasecmp(tp, "phrase")) { cl = new Rcl::SearchDataClauseDist(Rcl::SCLT_PHRASE, qs, slack, fld ? fld : ""); } else if (!strcasecmp(tp, "path")) { cl = new Rcl::SearchDataClausePath(qs); } else { goto defaultcase; } break; case 's': case 'S': if (strcasecmp(tp, "sub")) goto defaultcase; cl = new Rcl::SearchDataClauseSub(sub->sd); break; defaultcase: default: PyErr_SetString(PyExc_AttributeError, "Bad tp arg"); return 0; } PyMem_Free(qs); PyMem_Free(fld); if (dostem != 0 && !PyObject_IsTrue(dostem)) { cl->addModifier(Rcl::SearchDataClause::SDCM_NOSTEMMING); } if (exclude != 0 && !PyObject_IsTrue(exclude)) { cl->setexclude(true); } if (anchorstart && PyObject_IsTrue(anchorstart)) { cl->addModifier(Rcl::SearchDataClause::SDCM_ANCHORSTART); } if (anchorend && PyObject_IsTrue(anchorend)) { cl->addModifier(Rcl::SearchDataClause::SDCM_ANCHOREND); } if (casesens && PyObject_IsTrue(casesens)) { cl->addModifier(Rcl::SearchDataClause::SDCM_CASESENS); } if (diacsens && PyObject_IsTrue(diacsens)) { cl->addModifier(Rcl::SearchDataClause::SDCM_DIACSENS); } self->sd->addClause(cl); Py_RETURN_NONE; } /////////////////////////////////////////////////////////////////////// ///// DOC Doc code static void Doc_dealloc(recoll_DocObject *self) { LOGDEB(("Doc_dealloc\n")); if (self->doc) the_docs.erase(self->doc); deleteZ(self->doc); Py_TYPE(self)->tp_free((PyObject*)self); } static PyObject * Doc_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { LOGDEB(("Doc_new\n")); recoll_DocObject *self; self = (recoll_DocObject *)type->tp_alloc(type, 0); if (self == 0) return 0; self->doc = 0; self->rclconfig = 0; return (PyObject *)self; } static int Doc_init(recoll_DocObject *self, PyObject *, PyObject *) { LOGDEB(("Doc_init\n")); if (self->doc) the_docs.erase(self->doc); delete self->doc; self->doc = new Rcl::Doc; if (self->doc == 0) return -1; self->rclconfig = rclconfig; the_docs.insert(self->doc); return 0; } PyDoc_STRVAR(doc_Doc_getbinurl, "getbinurl(none) -> binary url\n" "\n" "Returns an URL with a path part which is a as bit for bit copy of the \n" "file system path, without encoding\n" ); static PyObject * Doc_getbinurl(recoll_DocObject *self) { LOGDEB0(("Doc_getbinurl\n")); if (self->doc == 0 || the_docs.find(self->doc) == the_docs.end()) { PyErr_SetString(PyExc_AttributeError, "doc"); return 0; } return PyBytes_FromStringAndSize(self->doc->url.c_str(), self->doc->url.size()); } PyDoc_STRVAR(doc_Doc_setbinurl, "setbinurl(url) -> binary url\n" "\n" "Set the URL from binary path like file://may/contain/unencodable/bytes\n" ); static PyObject * Doc_setbinurl(recoll_DocObject *self, PyObject *value) { LOGDEB0(("Doc_setbinurl\n")); if (self->doc == 0 || the_docs.find(self->doc) == the_docs.end()) { PyErr_SetString(PyExc_AttributeError, "doc??"); return 0; } if (!PyByteArray_Check(value)) { PyErr_SetString(PyExc_TypeError, "setbinurl needs byte array argument"); return 0; } self->doc->url = string(PyByteArray_AsString(value), PyByteArray_Size(value)); Py_RETURN_NONE; } PyDoc_STRVAR(doc_Doc_keys, "keys() -> list of doc object keys (attribute names)\n" ); static PyObject * Doc_keys(recoll_DocObject *self) { LOGDEB0(("Doc_keys\n")); if (self->doc == 0 || the_docs.find(self->doc) == the_docs.end()) { PyErr_SetString(PyExc_AttributeError, "doc"); return 0; } PyObject *pkeys = PyList_New(0); if (!pkeys) return 0; for (map::const_iterator it = self->doc->meta.begin(); it != self->doc->meta.end(); it++) { PyList_Append(pkeys, PyUnicode_Decode(it->first.c_str(), it->first.size(), "UTF-8", "replace")); } return pkeys; } PyDoc_STRVAR(doc_Doc_items, "items() -> dictionary of doc object keys/values\n" ); static PyObject * Doc_items(recoll_DocObject *self) { LOGDEB0(("Doc_items\n")); if (self->doc == 0 || the_docs.find(self->doc) == the_docs.end()) { PyErr_SetString(PyExc_AttributeError, "doc"); return 0; } PyObject *pdict = PyDict_New(); if (!pdict) return 0; for (map::const_iterator it = self->doc->meta.begin(); it != self->doc->meta.end(); it++) { PyDict_SetItem(pdict, PyUnicode_Decode(it->first.c_str(), it->first.size(), "UTF-8", "replace"), PyUnicode_Decode(it->second.c_str(), it->second.size(), "UTF-8", "replace")); } return pdict; } PyDoc_STRVAR(doc_Doc_get, "get(key) -> value\n" "Retrieve the named doc attribute\n" ); static PyObject * Doc_get(recoll_DocObject *self, PyObject *args) { LOGDEB0(("Doc_get\n")); char *sutf8 = 0; // needs freeing if (!PyArg_ParseTuple(args, "es:Doc_get", "utf-8", &sutf8)) { return 0; } string key(sutf8); PyMem_Free(sutf8); if (self->doc == 0 || the_docs.find(self->doc) == the_docs.end()) { PyErr_SetString(PyExc_AttributeError, "doc??"); return 0; } string value; bool found = false; // if (!key.compare("xdocid")) { char cid[30]; sprintf(cid, "%lu", (unsigned long)self->doc->xdocid); value = cid; found = true; } else { if (self->doc->getmeta(key, 0)) { value = self->doc->meta[key]; found = true; } } if (found) { return PyUnicode_Decode(value.c_str(), value.size(), "UTF-8", "replace"); } Py_RETURN_NONE; } static PyMethodDef Doc_methods[] = { {"getbinurl", (PyCFunction)Doc_getbinurl, METH_NOARGS, doc_Doc_getbinurl}, {"setbinurl", (PyCFunction)Doc_setbinurl, METH_O, doc_Doc_setbinurl}, {"keys", (PyCFunction)Doc_keys, METH_NOARGS, doc_Doc_keys}, {"items", (PyCFunction)Doc_items, METH_NOARGS, doc_Doc_items}, {"get", (PyCFunction)Doc_get, METH_VARARGS, doc_Doc_get}, {NULL} /* Sentinel */ }; // Note that this returns None if the attribute is not found instead of raising // an exception as would be standard. We don't change it to keep existing code // working. static PyObject * Doc_getattro(recoll_DocObject *self, PyObject *nameobj) { LOGDEB0(("Doc_getattro\n")); if (self->doc == 0 || the_docs.find(self->doc) == the_docs.end()) { PyErr_SetString(PyExc_AttributeError, "doc"); return 0; } bool found = false; string value; string key; char *name = 0; PyObject* utf8o = 0; if (PyUnicode_Check(nameobj)) { utf8o = PyUnicode_AsUTF8String(nameobj); if (utf8o == 0) { LOGERR(("Doc_getattro: encoding name to utf8 failed\n")); PyErr_SetString(PyExc_AttributeError, "name??"); Py_RETURN_NONE; } name = PyBytes_AsString(utf8o); Py_DECREF(utf8o); } else if (PyBytes_Check(nameobj)) { name = PyBytes_AsString(nameobj); } else { PyErr_SetString(PyExc_AttributeError, "name not unicode nor string??"); Py_RETURN_NONE; } key = rclconfig->fieldQCanon(string(name)); switch (key.at(0)) { case 'u': if (!key.compare(Rcl::Doc::keyurl)) { value = self->doc->url; found = true; } break; case 'f': if (!key.compare(Rcl::Doc::keyfs)) { value = self->doc->fbytes; found = true; } else if (!key.compare(Rcl::Doc::keyfmt)) { value = self->doc->fmtime; found = true; } break; case 'd': if (!key.compare(Rcl::Doc::keyds)) { value = self->doc->dbytes; found = true; } else if (!key.compare(Rcl::Doc::keydmt)) { value = self->doc->dmtime; found = true; } break; case 'i': if (!key.compare(Rcl::Doc::keyipt)) { value = self->doc->ipath; found = true; } break; case 'm': if (!key.compare(Rcl::Doc::keytp)) { value = self->doc->mimetype; found = true; } else if (!key.compare(Rcl::Doc::keymt)) { value = self->doc->dmtime.empty() ? self->doc->fmtime : self->doc->dmtime; found = true; } break; case 'o': if (!key.compare(Rcl::Doc::keyoc)) { value = self->doc->origcharset; found = true; } break; case 's': if (!key.compare(Rcl::Doc::keysig)) { value = self->doc->sig; found = true; } else if (!key.compare(Rcl::Doc::keysz)) { value = self->doc->dbytes.empty() ? self->doc->fbytes : self->doc->dbytes; found = true; } break; case 't': if (!key.compare("text")) { value = self->doc->text; found = true; } break; case 'x': if (!key.compare("xdocid")) { char cid[30]; sprintf(cid, "%lu", (unsigned long)self->doc->xdocid); value = cid; found = true; } break; } if (!found) { // This will look up a method name (we have no other standard // attributes) PyObject *meth = PyObject_GenericGetAttr((PyObject*)self, nameobj); if (meth) { return meth; } PyErr_Clear(); // Else look for another attribute if (self->doc->getmeta(key, 0)) { value = self->doc->meta[key]; found = true; } } if (found) { LOGDEB1(("Doc_getattro: [%s] -> [%s]\n", key.c_str(), value.c_str())); // Return a python unicode object return PyUnicode_Decode(value.c_str(), value.size(), "utf-8", "replace"); } Py_RETURN_NONE; } static int Doc_setattr(recoll_DocObject *self, char *name, PyObject *value) { LOGDEB0(("Doc_setattr: doc %p\n", self->doc)); if (self->doc == 0 || the_docs.find(self->doc) == the_docs.end()) { PyErr_SetString(PyExc_AttributeError, "doc??"); return -1; } #if PY_MAJOR_VERSION < 3 if (PyString_Check(value)) { value = PyUnicode_FromObject(value); if (value == 0) return -1; } #endif if (!PyUnicode_Check(value)) { PyErr_SetString(PyExc_AttributeError, "value not str/unicode??"); return -1; } if (name == 0) { PyErr_SetString(PyExc_AttributeError, "name??"); return -1; } PyObject* putf8 = PyUnicode_AsUTF8String(value); if (putf8 == 0) { LOGERR(("Doc_setmeta: encoding to utf8 failed\n")); PyErr_SetString(PyExc_AttributeError, "value??"); return -1; } char* uvalue = PyBytes_AsString(putf8); Py_DECREF(putf8); string key = rclconfig->fieldQCanon(string(name)); LOGDEB0(("Doc_setattr: [%s] (%s) -> [%s]\n", key.c_str(), name, uvalue)); // We set the value in the meta array in all cases. Good idea ? or do it // only for fields without a dedicated Doc:: entry? self->doc->meta[key] = uvalue; switch (key.at(0)) { case 't': if (!key.compare("text")) { self->doc->text = uvalue; } break; case 'u': if (!key.compare(Rcl::Doc::keyurl)) { self->doc->url = uvalue; } break; case 'f': if (!key.compare(Rcl::Doc::keyfs)) { self->doc->fbytes = uvalue; } else if (!key.compare(Rcl::Doc::keyfmt)) { self->doc->fmtime = uvalue; } break; case 'd': if (!key.compare(Rcl::Doc::keyds)) { self->doc->dbytes = uvalue; } else if (!key.compare(Rcl::Doc::keydmt)) { self->doc->dmtime = uvalue; } break; case 'i': if (!key.compare(Rcl::Doc::keyipt)) { self->doc->ipath = uvalue; } break; case 'm': if (!key.compare(Rcl::Doc::keytp)) { self->doc->mimetype = uvalue; } else if (!key.compare(Rcl::Doc::keymt)) { self->doc->dmtime = uvalue; } break; case 'o': if (!key.compare(Rcl::Doc::keyoc)) { self->doc->origcharset = uvalue; } break; case 's': if (!key.compare(Rcl::Doc::keysig)) { self->doc->sig = uvalue; } else if (!key.compare(Rcl::Doc::keysz)) { self->doc->dbytes = uvalue; } break; } return 0; } PyDoc_STRVAR(doc_DocObject, "Doc()\n" "\n" "A Doc object contains index data for a given document.\n" "The data is extracted from the index when searching, or set by the\n" "indexer program when updating. The Doc object has no useful methods but\n" "many attributes to be read or set by its user. It matches exactly the\n" "Rcl::Doc c++ object. Some of the attributes are predefined, but, \n" "especially when indexing, others can be set, the name of which will be\n" "processed as field names by the indexing configuration.\n" "Inputs can be specified as unicode or strings.\n" "Outputs are unicode objects.\n" "All dates are specified as unix timestamps, printed as strings\n" "Predefined attributes (index/query/both):\n" " text (index): document plain text\n" " url (both)\n" " fbytes (both) optional) file size in bytes\n" " filename (both)\n" " fmtime (both) optional file modification date. Unix time printed \n" " as string\n" " dbytes (both) document text bytes\n" " dmtime (both) document creation/modification date\n" " ipath (both) value private to the app.: internal access path\n" " inside file\n" " mtype (both) mime type for original document\n" " mtime (query) dmtime if set else fmtime\n" " origcharset (both) charset the text was converted from\n" " size (query) dbytes if set, else fbytes\n" " sig (both) app-defined file modification signature. \n" " For up to date checks\n" " relevancyrating (query)\n" " abstract (both)\n" " author (both)\n" " title (both)\n" " keywords (both)\n" ); static PyTypeObject recoll_DocType = { PyVarObject_HEAD_INIT(NULL, 0) "recoll.Doc", /*tp_name*/ sizeof(recoll_DocObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ (destructor)Doc_dealloc, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ (setattrfunc)Doc_setattr, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash */ 0, /*tp_call*/ 0, /*tp_str*/ (getattrofunc)Doc_getattro,/*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /*tp_flags*/ doc_DocObject, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ Doc_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ (initproc)Doc_init, /* tp_init */ 0, /* tp_alloc */ Doc_new, /* tp_new */ }; ////////////////////////////////////////////////////// /// QUERY Query object struct recoll_DbObject; typedef struct { PyObject_HEAD /* Type-specific fields go here. */ Rcl::Query *query; int next; // Index of result to be fetched next or -1 if uninit int rowcount; // Number of records returned by last execute string *sortfield; // Need to allocate in here, main program is C. int ascending; int arraysize; // Default size for fetchmany recoll_DbObject* connection; } recoll_QueryObject; PyDoc_STRVAR(doc_Query_close, "close(). Deallocate query. Object is unusable after the call." ); static PyObject * Query_close(recoll_QueryObject *self) { LOGDEB(("Query_close\n")); if (self->query) { the_queries.erase(self->query); deleteZ(self->query); } deleteZ(self->sortfield); if (self->connection) { Py_DECREF(self->connection); self->connection = 0; } Py_RETURN_NONE; } static void Query_dealloc(recoll_QueryObject *self) { LOGDEB(("Query_dealloc\n")); PyObject *ret = Query_close(self); Py_DECREF(ret); Py_TYPE(self)->tp_free((PyObject*)self); } static PyObject * Query_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { LOGDEB(("Query_new\n")); recoll_QueryObject *self; self = (recoll_QueryObject *)type->tp_alloc(type, 0); if (self == 0) return 0; self->query = 0; self->next = -1; self->rowcount = -1; self->sortfield = new string; self->ascending = 1; self->arraysize = 1; self->connection = 0; return (PyObject *)self; } // Query_init creates an unusable object. The only way to create a // valid Query Object is through db_query(). (or we'd need to add a Db // parameter to the Query object creation method) static int Query_init(recoll_QueryObject *self, PyObject *, PyObject *) { LOGDEB(("Query_init\n")); if (self->query) the_queries.erase(self->query); delete self->query; self->query = 0; self->next = -1; self->ascending = true; return 0; } static PyObject * Query_iter(PyObject *self) { Py_INCREF(self); return self; } PyDoc_STRVAR(doc_Query_sortby, "sortby(field=fieldname, ascending=True)\n" "Sort results by 'fieldname', in ascending or descending order.\n" "Only one field can be used, no subsorts for now.\n" "Must be called before executing the search\n" ); static PyObject * Query_sortby(recoll_QueryObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Query_sortby\n")); static const char *kwlist[] = {"field", "ascending", NULL}; char *sfield = 0; PyObject *ascobj = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|O", (char**)kwlist, &sfield, &ascobj)) return 0; if (sfield) { self->sortfield->assign(sfield); } else { self->sortfield->clear(); } if (ascobj == 0) { self->ascending = true; } else { self->ascending = PyObject_IsTrue(ascobj); } Py_RETURN_NONE; } PyDoc_STRVAR(doc_Query_execute, "execute(query_string, stemming=1|0, stemlang=\"stemming language\")\n" "\n" "Starts a search for query_string, a Recoll search language string\n" "(mostly Xesam-compatible).\n" "The query can be a simple list of terms (and'ed by default), or more\n" "complicated with field specs etc. See the Recoll manual.\n" ); static PyObject * Query_execute(recoll_QueryObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Query_execute\n")); static const char *kwlist[] = {"query_string", "stemming", "stemlang", NULL}; char *sutf8 = 0; // needs freeing char *sstemlang = 0; int dostem = 1; PyObject *dostemobj = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "es|Oes:Query_execute", (char**)kwlist, "utf-8", &sutf8, &dostemobj, "utf-8", &sstemlang)) { return 0; } if (dostemobj != 0 && !PyObject_IsTrue(dostemobj)) dostem = 0; string utf8(sutf8); PyMem_Free(sutf8); string stemlang("english"); if (sstemlang) { stemlang.assign(sstemlang); PyMem_Free(sstemlang); } LOGDEB0(("Query_execute: [%s] dostem %d stemlang [%s]\n", utf8.c_str(), dostem, stemlang.c_str())); if (self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "query"); return 0; } // SearchData defaults to stemming in english // Use default for now but need to add way to specify language string reason; Rcl::SearchData *sd = wasaStringToRcl(rclconfig, dostem ? stemlang : "", utf8, reason); if (!sd) { PyErr_SetString(PyExc_ValueError, reason.c_str()); return 0; } RefCntr rq(sd); self->query->setSortBy(*self->sortfield, self->ascending); self->query->setQuery(rq); int cnt = self->query->getResCnt(); self->next = 0; self->rowcount = cnt; return Py_BuildValue("i", cnt); } PyDoc_STRVAR(doc_Query_executesd, "executesd(SearchData)\n" "\n" "Starts a search for the query defined by the SearchData object.\n" ); static PyObject * Query_executesd(recoll_QueryObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Query_executeSD\n")); static const char *kwlist[] = {"searchdata", NULL}; recoll_SearchDataObject *pysd = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:Query_execute", (char **)kwlist, &recoll_SearchDataType, &pysd)) { return 0; } if (pysd == 0 || self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "query"); return 0; } self->query->setSortBy(*self->sortfield, self->ascending); self->query->setQuery(pysd->sd); int cnt = self->query->getResCnt(); self->next = 0; self->rowcount = cnt; return Py_BuildValue("i", cnt); } static void movedocfields(Rcl::Doc *doc) { // Move some data from the dedicated fields to the meta array to make // fetching attributes easier. Is this actually needed ? Useful for // url which is also formatted . printableUrl(rclconfig->getDefCharset(), doc->url, doc->meta[Rcl::Doc::keyurl]); doc->meta[Rcl::Doc::keytp] = doc->mimetype; doc->meta[Rcl::Doc::keyipt] = doc->ipath; doc->meta[Rcl::Doc::keyfs] = doc->fbytes; doc->meta[Rcl::Doc::keyds] = doc->dbytes; } PyDoc_STRVAR(doc_Query_fetchone, "fetchone(None) -> Doc\n" "\n" "Fetches the next Doc object in the current search results.\n" ); static PyObject * Query_fetchone(PyObject *_self) { LOGDEB0(("Query_fetchone/next\n")); recoll_QueryObject* self = (recoll_QueryObject*)_self; if (self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "query"); return 0; } int cnt = self->query->getResCnt(); if (cnt <= 0 || self->next < 0) { PyErr_SetString(PyExc_AttributeError, "query: no results"); return 0; } recoll_DocObject *result = (recoll_DocObject *)PyObject_CallObject((PyObject *)&recoll_DocType, 0); if (!result) { PyErr_SetString(PyExc_EnvironmentError, "doc create failed"); return 0; } if (self->next >= self->rowcount) { PyErr_SetNone(PyExc_StopIteration); return 0; } if (!self->query->getDoc(self->next, *result->doc)) { PyErr_SetString(PyExc_EnvironmentError, "query: cant fetch result"); self->next = -1; return 0; } self->next++; movedocfields(result->doc); return (PyObject *)result; } PyDoc_STRVAR(doc_Query_fetchmany, "fetchmany([size=query.arraysize]) -> Doc list\n" "\n" "Fetches the next Doc objects in the current search results.\n" ); static PyObject * Query_fetchmany(recoll_QueryObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Query_fetchmany\n")); static const char *kwlist[] = {"size", NULL}; int size = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|i", (char**)kwlist, &size)) return 0; if (size == 0) size = self->arraysize; if (self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "query"); return 0; } int cnt = self->query->getResCnt(); if (cnt <= 0 || self->next < 0) { PyErr_SetString(PyExc_AttributeError, "query: no results"); return 0; } PyObject *reslist = PyList_New(0); int howmany = MIN(self->rowcount - self->next, size); for (int i = 0; i < howmany; i++) { recoll_DocObject *docobj = (recoll_DocObject *) PyObject_CallObject((PyObject *)&recoll_DocType, 0); if (!docobj) { PyErr_SetString(PyExc_EnvironmentError, "doc create failed"); return 0; } if (!self->query->getDoc(self->next, *docobj->doc)) { PyErr_SetString(PyExc_EnvironmentError, "can't fetch"); self->next = -1; return 0; } self->next++; movedocfields(docobj->doc); PyList_Append(reslist, (PyObject*)docobj); } return (PyObject *)reslist; } PyDoc_STRVAR(doc_Query_scroll, "scroll(value, [, mode='relative'/'absolute' ]) -> new int position\n" "\n" "Adjusts the position in the current result set.\n" ); static PyObject * Query_scroll(recoll_QueryObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Query_scroll\n")); static const char *kwlist[] = {"position", "mode", NULL}; int pos = 0; char *smode = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "i|s", (char**)kwlist, &pos, &smode)) return 0; bool isrelative = 1; if (smode != 0) { if (!strcasecmp(smode, "relative")) { isrelative = 1; } else if (!strcasecmp(smode, "absolute")) { isrelative = 0; } else { PyErr_SetString(PyExc_ValueError, "bad mode value"); return 0; } } if (self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "null query"); return 0; } int newpos = isrelative ? self->next + pos : pos; if (newpos < 0 || newpos >= self->rowcount) { PyErr_SetString(PyExc_IndexError, "position out of range"); return 0; } self->next = newpos; return Py_BuildValue("i", newpos); } PyDoc_STRVAR(doc_Query_highlight, "highlight(text, ishtml = 0/1, methods = object))\n" "Will insert tags around the match areas\n" "in the input text and return the modified text\n" "ishtml can be set to indicate that the input text is html and html special\n" " characters should not be escaped\n" "methods if set should be an object with methods startMatch(i) and endMatch()\n" " which will be called for each match and should return a begin and end tag\n" ); class PyPlainToRich: public PlainToRich { public: PyPlainToRich(PyObject *methods, bool eolbr = false) : m_methods(methods) { m_eolbr = eolbr; } virtual ~PyPlainToRich() { } virtual string startMatch(unsigned int idx) { PyObject *res = 0; if (m_methods) res = PyObject_CallMethod(m_methods, (char *)"startMatch", (char *)"(i)", idx); if (res == 0) return ""; PyObject *res1 = res; if (PyUnicode_Check(res)) res1 = PyUnicode_AsUTF8String(res); return PyBytes_AsString(res1); } virtual string endMatch() { PyObject *res = 0; if (m_methods) res = PyObject_CallMethod(m_methods, (char *)"endMatch", 0); if (res == 0) return ""; PyObject *res1 = res; if (PyUnicode_Check(res)) res1 = PyUnicode_AsUTF8String(res); return PyBytes_AsString(res1); } PyObject *m_methods; }; static PyObject * Query_highlight(recoll_QueryObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Query_highlight\n")); static const char *kwlist[] = {"text", "ishtml", "eolbr", "methods", NULL}; char *sutf8 = 0; // needs freeing int ishtml = 0; PyObject *ishtmlobj = 0; int eolbr = 1; PyObject *eolbrobj = 0; PyObject *methods = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "es|OOO:Query_highlight", (char**)kwlist, "utf-8", &sutf8, &ishtmlobj, &eolbrobj, &methods)) { return 0; } string utf8(sutf8); PyMem_Free(sutf8); if (ishtmlobj && PyObject_IsTrue(ishtmlobj)) ishtml = 1; if (eolbrobj && !PyObject_IsTrue(eolbrobj)) eolbr = 0; LOGDEB0(("Query_highlight: ishtml %d\n", ishtml)); if (self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "query"); return 0; } RefCntr sd = self->query->getSD(); if (sd.isNull()) { PyErr_SetString(PyExc_ValueError, "Query not initialized"); return 0; } HighlightData hldata; sd->getTerms(hldata); PyPlainToRich hler(methods, eolbr); hler.set_inputhtml(ishtml); list out; hler.plaintorich(utf8, out, hldata, 5000000); if (out.empty()) { PyErr_SetString(PyExc_ValueError, "Plaintorich failed"); return 0; } PyObject* unicode = PyUnicode_FromStringAndSize(out.begin()->c_str(), out.begin()->size()); return Py_BuildValue("u#", PyUnicode_AsUnicode(unicode), PyUnicode_GetSize(unicode)); } PyDoc_STRVAR(doc_Query_makedocabstract, "makedocabstract(doc, methods = object))\n" "Will create a snippets abstract for doc by selecting text around the match\n" " terms\n" "If methods is set, will also perform highlighting. See the highlight method\n" ); static PyObject * Query_makedocabstract(recoll_QueryObject* self, PyObject *args,PyObject *kwargs) { LOGDEB0(("Query_makeDocAbstract\n")); static const char *kwlist[] = {"doc", "methods", NULL}; recoll_DocObject *pydoc = 0; PyObject *hlmethods = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!|O:Query_makeDocAbstract", (char **)kwlist, &recoll_DocType, &pydoc, &hlmethods)) { return 0; } if (pydoc->doc == 0 || the_docs.find(pydoc->doc) == the_docs.end()) { LOGERR(("Query_makeDocAbstract: doc not found %p\n", pydoc->doc)); PyErr_SetString(PyExc_AttributeError, "doc"); return 0; } if (the_queries.find(self->query) == the_queries.end()) { LOGERR(("Query_makeDocAbstract: query not found %p\n", self->query)); PyErr_SetString(PyExc_AttributeError, "query"); return 0; } RefCntr sd = self->query->getSD(); if (sd.isNull()) { PyErr_SetString(PyExc_ValueError, "Query not initialized"); return 0; } string abstract; if (hlmethods == 0) { // makeDocAbstract() can fail if there are no query terms (e.g. for // a query like [ext:odt]. This should not cause an exception self->query->makeDocAbstract(*(pydoc->doc), abstract); } else { HighlightData hldata; sd->getTerms(hldata); PyPlainToRich hler(hlmethods); hler.set_inputhtml(0); vector vabs; self->query->makeDocAbstract(*pydoc->doc, vabs); for (unsigned int i = 0; i < vabs.size(); i++) { if (vabs[i].empty()) continue; list lr; // There may be data like page numbers before the snippet text. // will be in brackets. string::size_type bckt = vabs[i].find("]"); if (bckt == string::npos) { hler.plaintorich(vabs[i], lr, hldata); } else { hler.plaintorich(vabs[i].substr(bckt), lr, hldata); lr.front() = vabs[i].substr(0, bckt) + lr.front(); } abstract += lr.front(); abstract += "..."; } } // Return a python unicode object return PyUnicode_Decode(abstract.c_str(), abstract.size(), "UTF-8", "replace"); } PyDoc_STRVAR(doc_Query_getxquery, "getxquery(None) -> Unicode string\n" "\n" "Retrieves the Xapian query description as a Unicode string.\n" "Meaningful only after executexx\n" ); static PyObject * Query_getxquery(recoll_QueryObject* self, PyObject *, PyObject *) { LOGDEB0(("Query_getxquery self->query %p\n", self->query)); if (self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "query"); return 0; } RefCntr sd = self->query->getSD(); if (sd.isNull()) { PyErr_SetString(PyExc_ValueError, "Query not initialized"); return 0; } string desc = sd->getDescription(); return PyUnicode_Decode(desc.c_str(), desc.size(), "UTF-8", "replace"); } PyDoc_STRVAR(doc_Query_getgroups, "getgroups(None) -> a list of pairs\n" "\n" "Retrieves the expanded query terms. Meaningful only after executexx\n" "In each pair, the first entry is a list of user terms, the second a list of\n" "query terms as derived from the user terms and used in the Xapian Query.\n" "The size of each list is one for simple terms, or more for group and phrase\n" "clauses\n" ); static PyObject * Query_getgroups(recoll_QueryObject* self, PyObject *, PyObject *) { LOGDEB0(("Query_getgroups\n")); if (self->query == 0 || the_queries.find(self->query) == the_queries.end()) { PyErr_SetString(PyExc_AttributeError, "query"); return 0; } RefCntr sd = self->query->getSD(); if (sd.isNull()) { PyErr_SetString(PyExc_ValueError, "Query not initialized"); return 0; } HighlightData hld; sd->getTerms(hld); PyObject *mainlist = PyList_New(0); PyObject *ulist; PyObject *xlist; // We walk the groups vector. For each we retrieve the user group, // make a python list of each, then group those in a pair, and // append this to the main list. for (unsigned int i = 0; i < hld.groups.size(); i++) { unsigned int ugidx = hld.grpsugidx[i]; ulist = PyList_New(hld.ugroups[ugidx].size()); for (unsigned int j = 0; j < hld.ugroups[ugidx].size(); j++) { PyList_SetItem(ulist, j, PyUnicode_Decode(hld.ugroups[ugidx][j].c_str(), hld.ugroups[ugidx][j].size(), "UTF-8", "replace")); } xlist = PyList_New(hld.groups[i].size()); for (unsigned int j = 0; j < hld.groups[i].size(); j++) { PyList_SetItem(xlist, j, PyUnicode_Decode(hld.groups[i][j].c_str(), hld.groups[i][j].size(), "UTF-8", "replace")); } PyList_Append(mainlist, Py_BuildValue("(OO)", ulist, xlist)); } return mainlist; } static PyMethodDef Query_methods[] = { {"execute", (PyCFunction)Query_execute, METH_VARARGS|METH_KEYWORDS, doc_Query_execute}, {"executesd", (PyCFunction)Query_executesd, METH_VARARGS|METH_KEYWORDS, doc_Query_executesd}, {"next", (PyCFunction)Query_fetchone, METH_NOARGS, doc_Query_fetchone}, {"fetchone", (PyCFunction)Query_fetchone, METH_NOARGS, doc_Query_fetchone}, {"fetchmany", (PyCFunction)Query_fetchmany, METH_VARARGS|METH_KEYWORDS, doc_Query_fetchmany}, {"close", (PyCFunction)Query_close, METH_NOARGS, doc_Query_close}, {"sortby", (PyCFunction)Query_sortby, METH_VARARGS|METH_KEYWORDS, doc_Query_sortby}, {"highlight", (PyCFunction)Query_highlight, METH_VARARGS|METH_KEYWORDS, doc_Query_highlight}, {"getxquery", (PyCFunction)Query_getxquery, METH_NOARGS, doc_Query_getxquery}, {"getgroups", (PyCFunction)Query_getgroups, METH_NOARGS, doc_Query_getgroups}, {"makedocabstract", (PyCFunction)Query_makedocabstract, METH_VARARGS|METH_KEYWORDS, doc_Query_makedocabstract}, {"scroll", (PyCFunction)Query_scroll, METH_VARARGS|METH_KEYWORDS, doc_Query_scroll}, {NULL} /* Sentinel */ }; static PyMemberDef Query_members[] = { {(char*)"rownumber", T_INT, offsetof(recoll_QueryObject, next), 0, (char*)"Next index to be fetched from results. Normally increments after\n" "each fetchone() call, but can be set/reset before the call effect\n" "seeking. Starts at 0" }, {(char*)"rowcount", T_INT, offsetof(recoll_QueryObject, rowcount), READONLY, (char*)"Number of records returned by the last execute" }, {(char*)"arraysize", T_INT, offsetof(recoll_QueryObject, arraysize), 0, (char*)"Default number of records processed by fetchmany (r/w)" }, {(char*)"connection", T_OBJECT_EX, offsetof(recoll_QueryObject, connection), 0, (char*)"Connection object this is from" }, {NULL} /* Sentinel */ }; PyDoc_STRVAR(doc_QueryObject, "Recoll Query objects are used to execute index searches. \n" "They must be created by the Db.query() method.\n" ); static PyTypeObject recoll_QueryType = { PyVarObject_HEAD_INIT(NULL, 0) "recoll.Query", /*tp_name*/ sizeof(recoll_QueryObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ (destructor)Query_dealloc, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash */ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_ITER, /*tp_flags*/ doc_QueryObject, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ Query_iter, /* tp_iter */ Query_fetchone, /* tp_iternext */ Query_methods, /* tp_methods */ Query_members, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ (initproc)Query_init, /* tp_init */ 0, /* tp_alloc */ Query_new, /* tp_new */ }; /////////////////////////////////////////////// ////// DB Db object code typedef struct recoll_DbObject { PyObject_HEAD /* Type-specific fields go here. */ Rcl::Db *db; } recoll_DbObject; static PyObject * Db_close(recoll_DbObject *self) { LOGDEB(("Db_close. self %p\n", self)); if (self->db) { the_dbs.erase(self->db); delete self->db; self->db = 0; } Py_RETURN_NONE; } static void Db_dealloc(recoll_DbObject *self) { LOGDEB(("Db_dealloc\n")); PyObject *ret = Db_close(self); Py_DECREF(ret); Py_TYPE(self)->tp_free((PyObject*)self); } static PyObject * Db_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { LOGDEB2(("Db_new\n")); recoll_DbObject *self; self = (recoll_DbObject *)type->tp_alloc(type, 0); if (self == 0) return 0; self->db = 0; return (PyObject *)self; } static int Db_init(recoll_DbObject *self, PyObject *args, PyObject *kwargs) { static const char *kwlist[] = {"confdir", "extra_dbs", "writable", NULL}; PyObject *extradbs = 0; char *confdir = 0; int writable = 0; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|sOi", (char**)kwlist, &confdir, &extradbs, &writable)) return -1; // If the user creates several dbs, changing the confdir, we call // recollinit repeatedly, which *should* be ok... string reason; delete rclconfig; if (confdir) { string cfd = confdir; rclconfig = recollinit(0, 0, reason, &cfd); } else { rclconfig = recollinit(0, 0, reason, 0); } LOGDEB(("Db_init\n")); if (rclconfig == 0) { PyErr_SetString(PyExc_EnvironmentError, reason.c_str()); return -1; } if (!rclconfig->ok()) { PyErr_SetString(PyExc_EnvironmentError, "Bad config ?"); return -1; } if (self->db) the_dbs.erase(self->db); delete self->db; self->db = new Rcl::Db(rclconfig); if (!self->db->open(writable ? Rcl::Db::DbUpd : Rcl::Db::DbRO)) { LOGERR(("Db_init: db open error\n")); PyErr_SetString(PyExc_EnvironmentError, "Can't open index"); return -1; } if (extradbs) { if (!PySequence_Check(extradbs)) { PyErr_SetString(PyExc_TypeError, "extra_dbs must be a sequence"); deleteZ(self->db); return -1; } int dbcnt = PySequence_Size(extradbs); if (dbcnt == -1) { PyErr_SetString(PyExc_TypeError, "extra_dbs could not be sized"); deleteZ(self->db); return -1; } for (int i = 0; i < dbcnt; i++) { PyObject *item = PySequence_GetItem(extradbs, i); char *s = PyBytes_AsString(item); Py_DECREF(item); if (!s) { PyErr_SetString(PyExc_TypeError, "extra_dbs must contain strings"); deleteZ(self->db); return -1; } if (!self->db->addQueryDb((const char *)s)) { PyErr_SetString(PyExc_EnvironmentError, "extra db could not be opened"); deleteZ(self->db); return -1; } } } the_dbs.insert(self->db); return 0; } static PyObject * Db_query(recoll_DbObject* self) { LOGDEB(("Db_query\n")); if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_query: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db"); return 0; } recoll_QueryObject *result = (recoll_QueryObject *) PyObject_CallObject((PyObject *)&recoll_QueryType, 0); if (!result) return 0; result->query = new Rcl::Query(self->db); result->connection = self; Py_INCREF(self); the_queries.insert(result->query); return (PyObject *)result; } static PyObject * Db_setAbstractParams(recoll_DbObject *self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Db_setAbstractParams\n")); static const char *kwlist[] = {"maxchars", "contextwords", NULL}; int ctxwords = -1, maxchars = -1; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ii", (char**)kwlist, &maxchars, &ctxwords)) return 0; if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_query: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db id not found"); return 0; } LOGDEB0(("Db_setAbstractParams: mxchrs %d, ctxwrds %d\n", maxchars, ctxwords)); self->db->setAbstractParams(-1, maxchars, ctxwords); Py_RETURN_NONE; } static PyObject * Db_makeDocAbstract(recoll_DbObject* self, PyObject *args) { LOGDEB0(("Db_makeDocAbstract\n")); recoll_DocObject *pydoc = 0; recoll_QueryObject *pyquery = 0; if (!PyArg_ParseTuple(args, "O!O!:Db_makeDocAbstract", &recoll_DocType, &pydoc, &recoll_QueryType, &pyquery)) { return 0; } if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_makeDocAbstract: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db"); return 0; } if (pydoc->doc == 0 || the_docs.find(pydoc->doc) == the_docs.end()) { LOGERR(("Db_makeDocAbstract: doc not found %p\n", pydoc->doc)); PyErr_SetString(PyExc_AttributeError, "doc"); return 0; } if (pyquery->query == 0 || the_queries.find(pyquery->query) == the_queries.end()) { LOGERR(("Db_makeDocAbstract: query not found %p\n", pyquery->query)); PyErr_SetString(PyExc_AttributeError, "query"); return 0; } string abstract; if (!pyquery->query->makeDocAbstract(*(pydoc->doc), abstract)) { PyErr_SetString(PyExc_EnvironmentError, "rcl makeDocAbstract failed"); return 0; } // Return a python unicode object return PyUnicode_Decode(abstract.c_str(), abstract.size(), "UTF-8", "replace"); } PyDoc_STRVAR(doc_Db_termMatch, "termMatch(match_type='wildcard|regexp|stem', expr, field='', " "maxlen=-1, casesens=False, diacsens=False, lang='english')" " returns the expanded term list\n" "\n" "Expands the input expression according to the mode and parameters and " "returns the expanded term list.\n" ); static PyObject * Db_termMatch(recoll_DbObject* self, PyObject *args, PyObject *kwargs) { LOGDEB0(("Db_termMatch\n")); static const char *kwlist[] = {"type", "expr", "field", "maxlen", "casesens", "diacsens", "lang", NULL}; char *tp = 0; char *expr = 0; // needs freeing char *field = 0; // needs freeing int maxlen = -1; PyObject *casesens = 0; PyObject *diacsens = 0; char *lang = 0; // needs freeing PyObject *ret = 0; int typ_sens = 0; Rcl::TermMatchResult result; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ses|esiOOes", (char**)kwlist, &tp, "utf-8", &expr, "utf-8", &field, &maxlen, &casesens, &diacsens, "utf-8", &lang)) return 0; if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_termMatch: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db"); goto out; } if (!strcasecmp(tp, "wildcard")) { typ_sens = Rcl::Db::ET_WILD; } else if (!strcasecmp(tp, "regexp")) { typ_sens = Rcl::Db::ET_REGEXP; } else if (!strcasecmp(tp, "stem")) { typ_sens = Rcl::Db::ET_STEM; } else { PyErr_SetString(PyExc_AttributeError, "Bad type arg"); goto out; } if (casesens != 0 && PyObject_IsTrue(casesens)) { typ_sens |= Rcl::Db::ET_CASESENS; } if (diacsens != 0 && PyObject_IsTrue(diacsens)) { typ_sens |= Rcl::Db::ET_DIACSENS; } if (!self->db->termMatch(typ_sens, lang ? lang : "english", expr, result, maxlen, field ? field : "")) { LOGERR(("Db_termMatch: db termMatch error\n")); PyErr_SetString(PyExc_AttributeError, "rcldb termMatch error"); goto out; } ret = PyList_New(result.entries.size()); for (unsigned int i = 0; i < result.entries.size(); i++) { PyList_SetItem(ret, i, PyUnicode_FromString( Rcl::strip_prefix(result.entries[i].term).c_str())); } out: PyMem_Free(expr); PyMem_Free(field); PyMem_Free(lang); return ret; } static PyObject * Db_needUpdate(recoll_DbObject* self, PyObject *args, PyObject *kwds) { LOGDEB0(("Db_needUpdate\n")); char *udi = 0; // needs freeing char *sig = 0; // needs freeing if (!PyArg_ParseTuple(args, "eses:Db_needUpdate", "utf-8", &udi, "utf-8", &sig)) { return 0; } if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_needUpdate: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db"); PyMem_Free(udi); PyMem_Free(sig); return 0; } bool result = self->db->needUpdate(udi, sig); PyMem_Free(udi); PyMem_Free(sig); return Py_BuildValue("i", result); } static PyObject * Db_delete(recoll_DbObject* self, PyObject *args, PyObject *kwds) { LOGDEB0(("Db_delete\n")); char *udi = 0; // needs freeing if (!PyArg_ParseTuple(args, "es:Db_delete", "utf-8", &udi)) { return 0; } if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_delete: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db"); PyMem_Free(udi); return 0; } bool result = self->db->purgeFile(udi); PyMem_Free(udi); return Py_BuildValue("i", result); } static PyObject * Db_purge(recoll_DbObject* self) { LOGDEB0(("Db_purge\n")); if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_purge: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db"); return 0; } bool result = self->db->purge(); return Py_BuildValue("i", result); } static PyObject * Db_addOrUpdate(recoll_DbObject* self, PyObject *args, PyObject *) { LOGDEB0(("Db_addOrUpdate\n")); char *sudi = 0; // needs freeing char *sparent_udi = 0; // needs freeing recoll_DocObject *pydoc; if (!PyArg_ParseTuple(args, "esO!|es:Db_addOrUpdate", "utf-8", &sudi, &recoll_DocType, &pydoc, "utf-8", &sparent_udi)) { return 0; } string udi(sudi); string parent_udi(sparent_udi ? sparent_udi : ""); PyMem_Free(sudi); PyMem_Free(sparent_udi); if (self->db == 0 || the_dbs.find(self->db) == the_dbs.end()) { LOGERR(("Db_addOrUpdate: db not found %p\n", self->db)); PyErr_SetString(PyExc_AttributeError, "db"); return 0; } if (pydoc->doc == 0 || the_docs.find(pydoc->doc) == the_docs.end()) { LOGERR(("Db_addOrUpdate: doc not found %p\n", pydoc->doc)); PyErr_SetString(PyExc_AttributeError, "doc"); return 0; } if (!self->db->addOrUpdate(udi, parent_udi, *pydoc->doc)) { LOGERR(("Db_addOrUpdate: rcldb error\n")); PyErr_SetString(PyExc_AttributeError, "rcldb error"); return 0; } Py_RETURN_NONE; } static PyMethodDef Db_methods[] = { {"close", (PyCFunction)Db_close, METH_NOARGS, "close() closes the index connection. The object is unusable after this." }, {"query", (PyCFunction)Db_query, METH_NOARGS, "query() -> Query. Return a new, blank query object for this index." }, {"cursor", (PyCFunction)Db_query, METH_NOARGS, "cursor() -> Query. Alias for query(). Return query object." }, {"setAbstractParams", (PyCFunction)Db_setAbstractParams, METH_VARARGS|METH_KEYWORDS, "setAbstractParams(maxchars, contextwords).\n" "Set the parameters used to build 'keyword-in-context' abstracts" }, {"makeDocAbstract", (PyCFunction)Db_makeDocAbstract, METH_VARARGS, "makeDocAbstract(Doc, Query) -> string\n" "Build and return 'keyword-in-context' abstract for document\n" "and query." }, {"termMatch", (PyCFunction)Db_termMatch, METH_VARARGS|METH_KEYWORDS, doc_Db_termMatch }, {"needUpdate", (PyCFunction)Db_needUpdate, METH_VARARGS, "needUpdate(udi, sig) -> Bool.\n" "Check if the index is up to date for the document defined by udi,\n" "having the current signature sig." }, {"delete", (PyCFunction)Db_delete, METH_VARARGS, "delete(udi) -> Bool.\n" "Purge index from all data for udi. If udi matches a container\n" "document, purge all subdocs (docs with a parent_udi matching udi)." }, {"purge", (PyCFunction)Db_purge, METH_NOARGS, "purge() -> Bool.\n" "Delete all documents that were not touched during the just finished\n" "indexing pass (since open-for-write). These are the documents for\n" "the needUpdate() call was not performed, indicating that they no\n" "longer exist in the primary storage system.\n" }, {"addOrUpdate", (PyCFunction)Db_addOrUpdate, METH_VARARGS, "addOrUpdate(udi, doc, parent_udi=None) -> None\n" "Add or update index data for a given document\n" "The udi string must define a unique id for the document. It is not\n" "interpreted inside Recoll\n" "doc is a Doc object\n" "if parent_udi is set, this is a unique identifier for the\n" "top-level container (ie mbox file)" }, {NULL} /* Sentinel */ }; PyDoc_STRVAR(doc_DbObject, "Db([confdir=None], [extra_dbs=None], [writable = False])\n" "\n" "A Db object holds a connection to a Recoll index. Use the connect()\n" "function to create one.\n" "confdir specifies a Recoll configuration directory (default: \n" " $RECOLL_CONFDIR or ~/.recoll).\n" "extra_dbs is a list of external databases (xapian directories)\n" "writable decides if we can index new data through this connection\n" ); static PyTypeObject recoll_DbType = { PyVarObject_HEAD_INIT(NULL, 0) "recoll.Db", /*tp_name*/ sizeof(recoll_DbObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ (destructor)Db_dealloc, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash */ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /*tp_flags*/ doc_DbObject, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ Db_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ (initproc)Db_init, /* tp_init */ 0, /* tp_alloc */ Db_new, /* tp_new */ }; ////////////////////////////////////////////////////////////////////////// // Module methods static PyObject * recoll_connect(PyObject *self, PyObject *args, PyObject *kwargs) { LOGDEB2(("recoll_connect\n")); recoll_DbObject *db = (recoll_DbObject *) PyObject_Call((PyObject *)&recoll_DbType, args, kwargs); return (PyObject *)db; } PyDoc_STRVAR(doc_connect, "connect([confdir=None], [extra_dbs=None], [writable = False])\n" " -> Db.\n" "\n" "Connects to a Recoll database and returns a Db object.\n" "confdir specifies a Recoll configuration directory\n" "(the default is built like for any Recoll program).\n" "extra_dbs is a list of external databases (xapian directories)\n" "writable decides if we can index new data through this connection\n" ); static PyMethodDef recoll_methods[] = { {"connect", (PyCFunction)recoll_connect, METH_VARARGS|METH_KEYWORDS, doc_connect}, {NULL, NULL, 0, NULL} /* Sentinel */ }; PyDoc_STRVAR(pyrecoll_doc_string, "This is an interface to the Recoll full text indexer."); struct module_state { PyObject *error; }; #if PY_MAJOR_VERSION >= 3 #define GETSTATE(m) ((struct module_state*)PyModule_GetState(m)) #else #define GETSTATE(m) (&_state) static struct module_state _state; #endif #if PY_MAJOR_VERSION >= 3 static int recoll_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(GETSTATE(m)->error); return 0; } static int recoll_clear(PyObject *m) { Py_CLEAR(GETSTATE(m)->error); return 0; } static struct PyModuleDef moduledef = { PyModuleDef_HEAD_INIT, "recoll", NULL, sizeof(struct module_state), recoll_methods, NULL, recoll_traverse, recoll_clear, NULL }; #define INITERROR return NULL extern "C" PyObject * PyInit_recoll(void) #else #define INITERROR return PyMODINIT_FUNC initrecoll(void) #endif { // Note: we can't call recollinit here, because the confdir is only really // known when the first db object is created (it is an optional parameter). // Using a default here may end up with variables such as stripchars being // wrong #if PY_MAJOR_VERSION >= 3 PyObject *module = PyModule_Create(&moduledef); #else PyObject *module = Py_InitModule("recoll", recoll_methods); #endif if (module == NULL) INITERROR; struct module_state *st = GETSTATE(module); // The first parameter is a char *. Hopefully we don't initialize // modules too often... st->error = PyErr_NewException(strdup("recoll.Error"), NULL, NULL); if (st->error == NULL) { Py_DECREF(module); INITERROR; } if (PyType_Ready(&recoll_DbType) < 0) INITERROR; Py_INCREF((PyObject*)&recoll_DbType); PyModule_AddObject(module, "Db", (PyObject *)&recoll_DbType); if (PyType_Ready(&recoll_QueryType) < 0) INITERROR; Py_INCREF((PyObject*)&recoll_QueryType); PyModule_AddObject(module, "Query", (PyObject *)&recoll_QueryType); if (PyType_Ready(&recoll_DocType) < 0) INITERROR; Py_INCREF((PyObject*)&recoll_DocType); PyModule_AddObject(module, "Doc", (PyObject *)&recoll_DocType); if (PyType_Ready(&recoll_SearchDataType) < 0) INITERROR; Py_INCREF((PyObject*)&recoll_SearchDataType); PyModule_AddObject(module, "SearchData", (PyObject *)&recoll_SearchDataType); PyModule_AddStringConstant(module, "__doc__", pyrecoll_doc_string); PyObject *doctypecobject; #if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 7) // Export a few pointers for the benefit of other recoll python modules doctypecobject= PyCapsule_New(&recoll_DocType, PYRECOLL_PACKAGE "recoll.doctypeptr", 0); #else doctypecobject = PyCObject_FromVoidPtr(&recoll_DocType, NULL); #endif PyModule_AddObject(module, "doctypeptr", doctypecobject); #if PY_MAJOR_VERSION >= 3 return module; #endif } recoll-1.21.5/python/recoll/Makefile0000644000175000017500000000033212602163537016626 0ustar dockesdockesall: echo libdir: $(libdir) libdir=$(libdir) python setup.py build install: sudo python setup.py install clean: rm -rf build rm -f recoll/__init__.pyc rm -rf recoll/__pycache__ distclean: clean rm -f setup.py recoll-1.21.5/python/recoll/setup.py.in0000644000175000017500000000630212602163571017306 0ustar dockesdockesfrom distutils.core import setup, Extension import os import sys sysname = os.uname()[0] top = os.path.join('..', '..') library_dirs = [os.path.join(top, 'lib')] if "CYGWIN" in os.environ: libraries = ['recoll', 'xapian', 'iconv', 'z'] else: libraries = ['recoll'] if 'libdir' in os.environ and os.environ['libdir'] != "": runtime_library_dirs = [os.path.join(os.environ['libdir'], 'recoll')] else: runtime_library_dirs = [os.path.join('@prefix@', 'lib', 'recoll')] # Verify that the Recoll library was compiled with the PIC options localdefs = os.path.join(top, 'mk', 'localdefs') try: lines = open(localdefs, 'r').readlines() except: print('You need to build recoll first. Use configure --enable-pic') sys.exit(1) picok = False for line in lines: if line.find('PICFLAGS') == 0: picok = True break if not picok: print('You need to rebuild recoll with PIC enabled. Use configure --enable-pic and make clean') sys.exit(1) module1 = Extension('recoll', define_macros = [('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0'), ('UNAC_VERSION', '"1.0.7"'), ('RECOLL_DATADIR', '"@QTRECOLL_DATADIR@"') ], include_dirs = ['/usr/local/include', os.path.join(top, 'utils'), os.path.join(top, 'common'), os.path.join(top, 'rcldb'), os.path.join(top, 'query'), os.path.join(top, 'unac') ], libraries = libraries, library_dirs = library_dirs, runtime_library_dirs = runtime_library_dirs, sources = ['pyrecoll.cpp']) module2 = Extension('rclextract', define_macros = [('MAJOR_VERSION', '1'), ('MINOR_VERSION', '0'), ('UNAC_VERSION', '"1.0.7"'), ('RECOLL_DATADIR', '"@QTRECOLL_DATADIR@"') ], include_dirs = ['/usr/local/include', os.path.join(top, 'utils'), os.path.join(top, 'common'), os.path.join(top, 'internfile'), os.path.join(top, 'rcldb'), ], libraries = libraries, library_dirs = library_dirs, runtime_library_dirs = runtime_library_dirs, sources = ['pyrclextract.cpp']) setup (name = 'Recoll', version = '1.0', description = 'Query/Augment a Recoll full text index', author = 'J.F. Dockes', author_email = 'jfd@recoll.org', url = 'http://www.recoll.org', license = 'GPL', long_description = ''' ''', packages = ['recoll'], ext_package = 'recoll', ext_modules = [module1, module2]) recoll-1.21.5/python/recoll/pyrecoll.h0000644000175000017500000000221612602163537017173 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PYRECOLL_H_INCLUDED_ #define _PYRECOLL_H_INCLUDED_ #include class RclConfig; typedef struct { PyObject_HEAD /* Type-specific fields go here. */ Rcl::Doc *doc; /* Each doc object has a pointer to the global config, for convenience */ RclConfig *rclconfig; } recoll_DocObject; #define PYRECOLL_PACKAGE "recoll." #endif // _PYRECOLL_H_INCLUDED_ recoll-1.21.5/python/recoll/recoll/0000755000175000017500000000000012602163537016450 5ustar dockesdockesrecoll-1.21.5/python/recoll/recoll/__init__.py0000644000175000017500000000000012602163537020547 0ustar dockesdockesrecoll-1.21.5/python/recoll/recoll/rclconfig.py0000755000175000017500000001524212602163537020777 0ustar dockesdockes#!/usr/bin/env python import locale import re import os import sys import base64 class ConfSimple: """A ConfSimple class reads a recoll configuration file, which is a typical ini file (see the Recoll manual). It's a dictionary of dictionaries which lets you retrieve named values from the top level or a subsection""" def __init__(self, confname, tildexp = False): self.submaps = {} self.dotildexpand = tildexp try: f = open(confname, 'r') except Exception as exc: #print("Open Exception: %s" % exc, sys.stderr) # File does not exist -> empty config, not an error. return self.parseinput(f) def parseinput(self, f): appending = False line = '' submapkey = '' for cline in f: cline = cline.rstrip("\r\n") if appending: line = line + cline else: line = cline line = line.strip() if line == '' or line[0] == '#': continue if line[len(line)-1] == '\\': line = line[0:len(line)-1] appending = True continue appending = False #print(line) if line[0] == '[': line = line.strip('[]') if self.dotildexpand: submapkey = os.path.expanduser(line) else: submapkey = line #print("Submapkey: [%s]" % submapkey) continue nm, sep, value = line.partition('=') if sep == '': continue nm = nm.strip() value = value.strip() #print("Name: [%s] Value: [%s]" % (nm, value)) if not submapkey in self.submaps: self.submaps[submapkey] = {} self.submaps[submapkey][nm] = value def get(self, nm, sk = ''): '''Returns None if not found, empty string if found empty''' if not sk in self.submaps: return None if not nm in self.submaps[sk]: return None return self.submaps[sk][nm] def getNames(self, sk = ''): if not sk in self.submaps: return None return self.submaps[sk].keys() class ConfTree(ConfSimple): """A ConfTree adds path-hierarchical interpretation of the section keys, which should be '/'-separated values. When a value is requested for a given path, it will also be searched in the sections corresponding to the ancestors. E.g. get(name, '/a/b') will also look in sections '/a' and '/' or '' (the last 2 are equivalent)""" def get(self, nm, sk = ''): if sk == '' or sk[0] != '/': return ConfSimple.get(self, nm, sk) if sk[len(sk)-1] != '/': sk = sk + '/' # Try all sk ancestors as submaps (/a/b/c-> /a/b/c, /a/b, /a, '') while sk.find('/') != -1: val = ConfSimple.get(self, nm, sk) if val is not None: return val i = sk.rfind('/') if i == -1: break sk = sk[:i] return ConfSimple.get(self, nm) class ConfStack: """ A ConfStack manages the superposition of a list of Configuration objects. Values are looked for in each object from the list until found. This typically provides for defaults overriden by sparse values in the topmost file.""" def __init__(self, nm, dirs, tp = 'simple'): fnames = [] for dir in dirs: fnm = os.path.join(dir, nm) fnames.append(fnm) self._construct(tp, fnames) def _construct(self, tp, fnames): self.confs = [] for fname in fnames: if tp.lower() == 'simple': conf = ConfSimple(fname) else: conf = ConfTree(fname) self.confs.append(conf) def get(self, nm, sk = ''): for conf in self.confs: value = conf.get(nm, sk) if value is not None: return value return None class RclDynConf: def __init__(self, fname): self.data = ConfSimple(fname) def getStringList(self, sk): nms = self.data.getNames(sk) out = [] if nms is not None: for nm in nms: out.append(base64.b64decode(self.data.get(nm, sk))) return out class RclConfig: def __init__(self, argcnf = None): # Find configuration directory if argcnf is not None: self.confdir = os.path.abspath(argcnf) elif "RECOLL_CONFDIR" in os.environ: self.confdir = os.environ["RECOLL_CONFDIR"] else: self.confdir = os.path.expanduser("~/.recoll") #print("Confdir: [%s]" % self.confdir) # Also find datadir. This is trickier because this is set by # "configure" in the C code. We can only do our best. Have to # choose a preference order. Use RECOLL_DATADIR if the order is wrong self.datadir = None if "RECOLL_DATADIR" in os.environ: self.datadir = os.environ["RECOLL_DATADIR"] else: dirs = ("/opt/local", "/usr", "/usr/local") for dir in dirs: dd = os.path.join(dir, "share/recoll") if os.path.exists(dd): self.datadir = dd if self.datadir is None: self.datadir = "/usr/share/recoll" #print("Datadir: [%s]" % self.datadir) self.cdirs = [] # Additional config directory, values override user ones if "RECOLL_CONFTOP" in os.environ: self.cdirs.append(os.environ["RECOLL_CONFTOP"]) self.cdirs.append(self.confdir) # Additional config directory, overrides system's, overridden by user's if "RECOLL_CONFMID" in os.environ: self.cdirs.append(os.environ["RECOLL_CONFMID"]) self.cdirs.append(os.path.join(self.datadir, "examples")) self.config = ConfStack("recoll.conf", self.cdirs, "tree") self.keydir = '' def getConfDir(self): return self.confdir def setKeyDir(self, dir): self.keydir = dir def getConfParam(self, nm): return self.config.get(nm, self.keydir) class RclExtraDbs: def __init__(self, config): self.config = config def getActDbs(self): dyncfile = os.path.join(self.config.getConfDir(), "history") dync = RclDynConf(dyncfile) return dync.getStringList("actExtDbs") if __name__ == '__main__': config = RclConfig() print(config.getConfParam("topdirs")) extradbs = RclExtraDbs(config) print(extradbs.getActDbs()) recoll-1.21.5/python/README.txt0000644000175000017500000000020012602163537015376 0ustar dockesdockesHow to build and use the python interface is documented in the Recoll user manual, inside the "Programming interface" chapter. recoll-1.21.5/ChangeLog0000644000175000017500000121412212602163536014143 0ustar dockesdockes2010-02-02 15:33 +0100 Jean-Francois Dockes (d11da0283f03 [tip]) * src/common/textsplit.cpp, src/common/textsplit.h, src/query/plaintorich.cpp, src/query/recollq.cpp, src/query/wasatorcl.cpp, src/rcldb/rcldb.cpp, src/rcldb/searchdata.cpp, src/rcldb/stoplist.cpp, src/rcldb/stoplist.h: cosmetics: use derived class for actual splitter instead of callback 2010-02-02 10:24 +0100 Jean-Francois Dockes (a8caf709bcd3) * src/qt4gui/rclmain.ui, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp: QT GUI: define accelerators for res list page movements 2010-02-02 08:20 +0100 Jean-Francois Dockes (ec31e285a553) * src/qtgui/reslist.cpp, src/query/reslistpager.h: Qt GUI: ensure that new page size is taken into account ASAP (no need for restarting app) 2010-02-01 17:51 +0100 Jean-Francois Dockes (db953bb94c7f) * src/qt4gui/rclmain.ui, src/qtgui/preview_w.cpp, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h: QT GUI: add fullscreen mode 2010-02-01 10:31 +0100 Jean-Francois Dockes (1eda55ae3be9) * src/mk/manifest.txt: new file. * src/excludefile, src/makesrcdist.sh, src/mk/manifest.txt: Making a source dist: check the new list against old reference + other checks 2010-01-31 19:53 +0100 Israel G. Lugo (74d4e25d43c2) * src/recollinstall.in: Install recollq and its manpage when in cmdline mode. Don't install the recoll.1 manpage when in cmdline mode. 2010-01-31 19:47 +0100 Jean-Francois Dockes (c88b0ef40512) * src/common/autoconfig.h.in: use 3-arg version of ac_define as the 1-arg one is being obsoleted 2010-01-31 19:45 +0100 Jean-Francois Dockes (1960435ccb68) * src/configure.ac: Dispense with the x11-monitoring when neither fam nor inotify are configured 2010-01-31 19:35 +0100 Jean-Francois Dockes (08e6abfc5fdf) * src/configure.ac: use 3-arg version of ac_define as the 1-arg one is being obsoleted 2010-01-31 19:34 +0100 Jean-Francois Dockes (c0add9dd8ad4) * website/download.html: none 2010-01-30 17:47 +0100 Jean-Francois Dockes (5ed138ff2230) * src/qtgui/spell_w.cpp, src/qtgui/spell_w.h: QT GUI: fix small problems in newly native qt4 term expander 2010-01-30 17:31 +0100 Jean-Francois Dockes (6ecf959a8e01) * src/qt4gui/spell.ui: new file. * src/qt4gui/recollmain.ui: deleted file. * .hgignore, src/qt4gui/recollmain.ui, src/qt4gui/spell.ui, src/qt4gui/uifrom3, src/qtgui/spell_w.cpp, src/qtgui/spell_w.h: QT GUI: converted the qt4 term expander dialog to native qt4 2010-01-30 14:09 +0100 Jean-Francois Dockes (df8a91aaff88) * src/qt4gui/rclmain.ui: new file. * .hgignore, src/qt4gui/rclmain.ui, src/qt4gui/uifrom3, src/qtgui/confgui/confguiindex.h, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h: Qt GUI: made the Qt4 main window native Qt4 (no more use of Q3MainWindow) 2010-01-30 08:23 +0100 Jean-Francois Dockes (ed18703563b7) * .hgignore, src/ChangeLog, website/BUGS.html, website/devel.html, website/doc.html, website/download.html, website/index.html.en: none 2010-01-30 08:23 +0100 Jean-Francois Dockes (22044a3b2e2c) * src/qtgui/rclmain_w.h: Qt 4.6.1 Uic bug: change qt version test from == to <= as bug still here in 4.6.2 2010-01-30 08:21 +0100 Jean-Francois Dockes (b1cb8c664953) * src/common/autoconfig.h.in, src/configure, src/configure.ac, src/index/recollindex.cpp, src/utils/x11mon.cpp: Renamed WITHOUT_X11 to DISABLE_X11MON for clarification 2010-01-30 08:18 +0100 Israel G. Lugo (be03b72e1258) * src/configure.ac: Rename option without-gui to disable-qtgui. New option disable- x11mon. Separate control of creation of the gui and X11 session monitoring. 2010-01-29 19:00 +0100 Jean-Francois Dockes (d95c21312a15) * src/kde/kioslave/recoll/CMakeLists.txt: KIO slave: fixed CMakeList to configure Recoll with --enable-pic 2010-01-29 17:22 +0100 Jean-Francois Dockes (266941720a99) * src/python/README.txt: new file. * src/configure, src/configure.ac, src/doc/user/usermanual.sgml, src/lib/Makefile, src/lib/mkMake, src/mk/commondefs, src/mk/localdefs.in, src/php/00README.txt, src/python/README.txt, src/python/recoll/setup.py: Implemented configure --enable-pic flag to build the main lib with position-independant objects. This avoids having to edit localdefs by hand to build the new php extension, and voids the need for the Python module to recompile Recoll source files. 2010-01-29 15:47 +0100 Jean-Francois Dockes (69c42078b8d3) * src/php/00README.txt: new file. * src/php/00README.txt, src/php/recoll/make.sh, src/php/recoll/recoll.cpp: PHP extension by Wenqiang Song : make ready for external use. - added minimal doc - fixed build script to work around php/libtool issue - have the module default to Query Language (instead of AND) 2010-01-28 18:22 +0100 Jean-Francois Dockes (45e7ec5e16c5) * .hgignore, website/usermanual/README-dir.txt: new file. * packaging/debian/changelog, packaging/debian/compat, packaging/debian/control, packaging/debian/copyright, packaging/debian/docs, packaging/debian/menu, packaging/debian/rules, packaging/debian/watch: deleted file. * .hgignore, packaging/debian/changelog, packaging/debian/compat, packaging/debian/control, packaging/debian/copyright, packaging/debian/docs, packaging/debian/menu, packaging/debian/rules, packaging/debian/watch, src/makesrcdist.sh, website/usermanual/README-dir.txt: svn->mercurial modifications 2010-01-28 16:13 +0000 convert-repo (e85c82d42126) * .hgtags: new file. * .hgtags: update tags 2010-01-26 13:23 +0000 dockes (c0cb63a2702a) * last before trial switch to mercurial. really. Yeah 2010-01-26 13:22 +0000 dockes (c40e044c63dd) * tests/chm/chm.sh, tests/chm/chm.txt, tests/ics/ics.sh, tests/ics/ics.txt, tests/zip/mcKee.zip, tests/zip/zip.sh, tests/zip/zip.txt, website/download-1.12.html: new file. * tests/chm/chm.sh, tests/chm/chm.txt, tests/ics/ics.sh, tests/ics/ics.txt, tests/zip/mcKee.zip, tests/zip/zip.sh, tests/zip/zip.txt, website/download-1.12.html: last before trial switch to mercurial. really 2010-01-26 13:21 +0000 dockes (7918f7073757) * website/BUGS.html, website/CHANGES.html, website/download.html, website/index.html.en, website/index.html.fr: last before trial switch to mercurial 2010-01-26 07:06 +0000 dockes (0b5ec08c2ba2) * src/INSTALL, src/README: 2010-01-26 07:06 +0000 dockes (f6a420527382) * src/VERSION: 1.13.02 2010-01-26 06:50 +0000 dockes (b223f221578a [RECOLL_1_13_02]) * src/doc/user/usermanual.sgml: clarified --prefix et al 2010-01-25 20:43 +0000 dockes (7d69ae778654) * src/qt4gui/ui_rclmain.h-4.5: new file. * src/qt4gui/ui_rclmain.h-4.5, src/qtgui/rclmain_w.h: use older ui include file under qt 4.6.1, the one its uic generates is broken 2010-01-25 11:08 +0000 dockes (e2e5a1dd802d) * src/php/recoll/recollq.h: deleted file. * src/php/recoll/recollq.h: not used? 2010-01-25 11:06 +0000 dockes (1683475297c1) * src/php/recoll/config.m4, src/php/recoll/make.sh, src/php/recoll/php_recoll.h, src/php/recoll/recoll.cpp, src/php/recoll/recollq.h, src/php/sample/shell.php: new file. * src/php/recoll/config.m4, src/php/recoll/make.sh, src/php/recoll/php_recoll.h, src/php/recoll/recoll.cpp, src/php/recoll/recollq.h, src/php/sample/shell.php: initial import from W. Song 2010-01-20 07:42 +0000 dockes (4df8ebfbb72d) * packaging/rpm/recoll.spec, packaging/rpm/recollfedora.spec, packaging/rpm/recollfedora10.spec, packaging/rpm/recollmdk.spec: change mail address 2010-01-10 10:18 +0000 dockes (1c62f24a5ca4) * packaging/rpm/recollfedora.spec: updated for fc12: depend on xapian-core, use qt4 2010-01-07 15:20 +0000 dockes (01eb4176400c) * src/query/recollq.cpp: add option to print abstracts 2010-01-07 08:42 +0000 dockes (a41bbccff862) * src/VERSION: 1.13.01 2010-01-07 08:41 +0000 dockes (dde7b27846ef) * src/Makefile.in: distclean removes rclexecm.pyc 2010-01-07 08:34 +0000 dockes (324bea9902a4) * src/qtgui/main.cpp, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/ssearch_w.cpp, src/qtgui/ssearch_w.h: moved initial db open and possible message boxes from main.cpp to rclmain_w.cpp first post-init job to avoid random crashes apparently related to the dialogs being created before app.exec(). Exact cause not certain, but crashes gone... 2010-01-07 08:29 +0000 dockes (0629e02f12fe) * src/rcldb/searchdata.cpp: field values were not used in case term expansion was not performed (phrase or capitalized term) 2010-01-06 13:29 +0000 dockes (e10bbaeefab5) * src/kde/kioslave/recoll/htmlif.cpp, src/query/recollq.cpp, src/query/xadump.cpp: adapt kio and recollq to the new internfile interface 2010-01-06 13:06 +0000 dockes (0f2378be2603) * src/kde/kioslave/recoll/CMakeLists.txt: add libz 2010-01-05 15:00 +0000 dockes (1ca577447878) * src/utils/closefrom.cpp, src/utils/fstreewalk.cpp, src/utils/fstreewalk.h, tests/Maildir/Maildir.txt, tests/andor/andor.sh, tests/andor/andor.txt, tests/cjk/cjk.sh, tests/cjk/cjk.txt, tests/mail/mail.txt, tests/msword/msword.txt, tests/txt/txt.txt, website/download.html: 1.13 tests txt mods + solaris port (FNM_LEADING_DIR) 2010-01-05 13:27 +0000 dockes (0ab6a2dfc2c3) * website/BUGS.html, website/CHANGES.html, website/copydocs, website/credits.html, website/download.html, website/features.html, website/index.html.en, website/index.html.fr: web update for 1.13 2010-01-05 07:14 +0000 dockes (cb08729afcd2) * src/INSTALL, src/README: 2010-01-05 07:14 +0000 dockes (a1ba9ba640f7) * src/VERSION, src/common/rclconfig.cpp, src/doc/man/recoll.conf.5, src/doc/user/usermanual.sgml: 1.13.00: fixed doc ortographic typos 2009-12-31 08:20 +0000 dockes (c2ae39772161) * src/INSTALL, src/README: 2009-12-31 08:15 +0000 dockes (851e5b82f3d5) * src/VERSION: 1.13.0 2009-12-31 08:15 +0000 dockes (04512125010e) * src/recollinstall.in: handle --without-gui config inside recollinstall.in 2009-12-20 14:31 +0000 dockes (2cbda11286c5) * src/configure, src/configure.ac: typo in WIHOUT_X11 2009-12-17 20:23 +0000 dockes (95eb8a010525) * src/doc/user/usermanual.sgml: There was an error in the mimemap format in the config exemple 2009-12-14 10:33 +0000 dockes (1e774739395e) * src/INSTALL, src/README: 2009-12-14 10:33 +0000 dockes (49cdfe826199) * src/ChangeLog: snapshot du jour 2009-12-14 10:23 +0000 dockes (437be900fa14) * src/doc/user/Makefile, src/doc/user/usermanual.sgml: add --enable-camelcase doc + fix typo in doc Makefile comment 2009-12-14 10:10 +0000 dockes (009ed00592fd) * src/common/autoconfig.h.in, src/common/textsplit.cpp, src/configure, src/configure.ac: add --enable-camelcase option to configure 2009-12-14 09:46 +0000 dockes (1fabd736d16f) * src/doc/user/usermanual.sgml, src/index/fsindexer.cpp: use : as separator in localfields value before parsing as confsimple 2009-12-14 09:44 +0000 dockes (2b09276dedc8) * src/utils/circache.cpp: fix pointer casting to make gcc happy 2009-12-14 09:44 +0000 dockes (4ee0085fa59e) * src/sampleconf/fields: typo: keywords->keyword in prefixes 2009-12-14 09:43 +0000 dockes (87b2caa6ec9c) * src/filters/rclabw, src/filters/rcldjvu, src/filters/rcldoc, src/filters/rcldvi, src/filters/rclflac, src/filters/rclgaim, src/filters/rclid3, src/filters/rclkwd, src/filters/rcllyx, src/filters/rclman, src/filters/rclogg, src/filters/rclopxml, src/filters/rclpdf, src/filters/rclppt, src/filters/rclps, src/filters/rclpurple, src/filters/rclrtf, src/filters/rclscribus, src/filters/rclsiduxman, src/filters/rclsoff, src/filters/rclsvg, src/filters/rcltex, src/filters/rcltext, src/filters/rclwpd, src/filters/rclxls, src/filters/recfiltcommon: iscmd: supplement -x with -d test not a dir 2009-12-14 07:26 +0000 dockes (b8eceb552b3e) * src/INSTALL, src/README: 2009-12-14 07:25 +0000 dockes (16dc2e0ed9fa) * src/makesrcdist.sh: 2009-12-14 07:13 +0000 dockes (e5aae08ee26d) * src/Makefile.in: 2009-12-14 07:07 +0000 dockes (c66c86594b35) * src/VERSION: 2009-12-14 07:06 +0000 dockes (7229a431d686) * src/makesrcdist.sh: use different release name for beta versions 2009-12-13 21:40 +0000 dockes (e0033b00df1e) * src/doc/user/usermanual.sgml: anacron 2009-12-13 16:16 +0000 dockes (e148cd3f92c1) * src/sampleconf/recoll.conf.in: add localfields example 2009-12-13 16:13 +0000 dockes (89ebf91076d8) * src/common/textsplit.cpp, src/internfile/mh_html.cpp, src/query/plaintorich.cpp, src/utils/base64.cpp: small amd64 fixes: 64 bits size_type, signed chars 2009-12-08 07:43 +0000 dockes (026aa6df356f) * src/doc/man/recollindex.1, src/doc/man/recollq.1: clarify stemming options 2009-12-08 07:43 +0000 dockes (0c698007055e) * src/query/recollq.cpp: add option -s to select stemming language 2009-12-08 07:42 +0000 dockes (fcb5bca6adf8) * src/rcldb/stemdb.cpp: traces 2009-12-07 18:47 +0000 dockes (6631c645c9df) * src/index/recollindex.cpp: use setpriority() to be a nice indexer 2009-12-07 17:43 +0000 dockes (76128d18110e [RECOLL_1_13_0, RECOLL_20091214, RECOLL_1_13_01, RECOLL_1_13_00]) * src/qtgui/preview_w.cpp, src/qtgui/preview_w.h: reimplemented Q3TextDocument::find() to be like the qt3 version 2009-12-07 14:32 +0000 dockes (b02171ea3078) * src/qtgui/preview_w.cpp: switch preview qtextedit format back to plain text after loading so that selections copy plain text not html 2009-12-07 13:27 +0000 dockes (3d37dc441cc9) * src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/searchdata.cpp: Term expansion: handle field issues inside rcldb::termmatch, ensuring that we take the field name into account for all expansions. Ensures that File Name searches and filename: query language searches work the same, + overall better consistency 2009-12-07 13:24 +0000 dockes (fe625ef90a21) * src/configure.ac: Israel G. Lugo: make sure that only one of inotify or FAM gets enabled, giving priority to inotify. 2009-11-30 10:04 +0000 dockes (a75cd5af7c71) * src/VERSION, src/internfile/mimehandler.cpp, src/kde/kioslave/recoll/htmlif.cpp, src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/query/plaintorich.cpp, src/query/plaintorich.h, src/sampleconf/mimeconf: add
 tag to text/plain translated into qt html to preserve
	indentation. Removes need for rcltext (which did just this). Allow
	specifying any text/xxx as internal (allows having specific editor
	but no filter)

2009-11-30 06:34 +0000  dockes    (c4fdcda7df89)

	* src/index/rclmonrcv.cpp:
	compile either fam or inotify not both

2009-11-29 15:00 +0000  dockes    (6b9ed9ae0949)

	* src/doc/user/usermanual.sgml:
	change defaults for big text params

2009-11-29 12:56 +0000  dockes    (a04f5006fe89)

	* src/sampleconf/recoll.conf.in:
	add new 1.13 variables and defaults

2009-11-28 09:15 +0000  dockes    (4b56c2068545)

	* src/internfile/mh_execm.cpp, src/internfile/mh_text.cpp,
	src/query/docseqhist.cpp, src/utils/circache.cpp:
	new glibc missing includes

2009-11-28 08:45 +0000  dockes    (012b4b63e260)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_tr.ts, src/qtgui/i18n/recoll_uk.ts,
	src/qtgui/i18n/recoll_xx.ts:
	

2009-11-28 08:14 +0000  dockes    (b0e70a20b7f1)

	* src/index/beaglequeue.cpp, src/internfile/mh_text.cpp,
	src/qtgui/confgui/confguiindex.cpp, src/qtgui/guiutils.cpp:
	set defaults usedesktoprefs, maxtext 20mb pagesz 1000k webcache 40m

2009-11-28 08:11 +0000  dockes    (ed3a574543f5)

	* src/doc/user/usermanual.sgml:
	clean-up + documented 1.13 new features

2009-11-28 06:39 +0000  dockes    (c45a690ee533)

	* src/internfile/mh_mbox.cpp:
	converted iostream to stdio because of mysterious read errors at the
	last position in the offsets file

2009-11-27 13:23 +0000  dockes    (7fa95cd57200)

	* src/internfile/mh_mail.cpp:
	add cnf(maildefcharset) to set specific mail default charset (mainly
	for readpst extracts which are utf-8 but have no charset set)

2009-11-27 13:11 +0000  dockes    (385305ee1820)

	* src/rcldb/rcldb.cpp:
	loglevel

2009-11-27 13:08 +0000  dockes    (8cc1ab099807)

	* src/internfile/mh_mbox.cpp:
	include sys/stat

2009-11-27 12:41 +0000  dockes    (c3039d4eab51)

	* src/internfile/Filter.h, src/internfile/internfile.cpp,
	src/internfile/mh_mbox.cpp, src/internfile/mh_mbox.h,
	src/internfile/mimehandler.h, src/query/docseqhist.cpp:
	implemented a cache for mbox message header offsets

2009-11-27 07:07 +0000  dockes    (a1a92e0952dd)

	* src/internfile/mh_mbox.cpp:
	Support From "bla bla" (quoted) From lines

2009-11-27 07:00 +0000  dockes    (64f09e3ad5a7)

	* src/internfile/internfile.cpp:
	update test driver

2009-11-26 14:03 +0000  dockes    (023c2a8520de)

	* src/aspell/rclaspell.cpp, src/aspell/rclaspell.h,
	src/qtgui/reslist.cpp, src/qtgui/reslist.h, src/query/docseq.h,
	src/query/docseqdb.cpp, src/query/docseqdb.h,
	src/query/reslistpager.cpp, src/query/reslistpager.h,
	src/rcldb/rcldb.cpp, src/rcldb/searchdata.cpp,
	src/rcldb/searchdata.h:
	suggest alternate spellings if no results

2009-11-26 13:52 +0000  dockes    (4270622aa3e0)

	* src/qtgui/guiutils.cpp:
	suppressed core dump at exit on unexisting config

2009-11-26 07:17 +0000  dockes    (f02bf2b6ea30)

	* src/rcldb/rcldb.cpp, src/rcldb/rclquery.cpp, src/rcldb/rclquery.h:
	use only match terms to build doc abstract, not all query terms
	(might save a little effort)

2009-11-26 07:15 +0000  dockes    (90776b10554c)

	* src/qtgui/rclmain_w.cpp:
	spell tool must be created even is USE_ASPELL is undefined

2009-11-25 14:37 +0000  dockes    (e3faedd237b8)

	* src/utils/md5.cpp:
	suppress unused parm warning

2009-11-25 11:07 +0000  dockes    (f8011c9579c8)

	* packaging/debian/debiankio/changelog,
	packaging/debian/debiankio/compat,
	packaging/debian/debiankio/control,
	packaging/debian/debiankio/copyright,
	packaging/debian/debiankio/dirs, packaging/debian/debiankio/docs,
	packaging/debian/debiankio/rules, packaging/debian/debiankio/watch,
	packaging/debian/debianrecoll/changelog,
	packaging/debian/debianrecoll/compat,
	packaging/debian/debianrecoll/control,
	packaging/debian/debianrecoll/copyright,
	packaging/debian/debianrecoll/docs,
	packaging/debian/debianrecoll/menu,
	packaging/debian/debianrecoll/rules,
	packaging/debian/debianrecoll/watch: new file.
	* packaging/debian/debiankio/changelog,
	packaging/debian/debiankio/compat,
	packaging/debian/debiankio/control,
	packaging/debian/debiankio/copyright,
	packaging/debian/debiankio/dirs, packaging/debian/debiankio/docs,
	packaging/debian/debiankio/rules, packaging/debian/debiankio/watch,
	packaging/debian/debianrecoll/changelog,
	packaging/debian/debianrecoll/compat,
	packaging/debian/debianrecoll/control,
	packaging/debian/debianrecoll/copyright,
	packaging/debian/debianrecoll/docs,
	packaging/debian/debianrecoll/menu,
	packaging/debian/debianrecoll/rules,
	packaging/debian/debianrecoll/watch:
	added debian dir to build kio-recoll

2009-11-24 10:25 +0000  dockes    (87057b6e2cba)

	* src/kde/kioslave/recoll/CMakeLists.txt:
	execute minimum recoll config inside cmakelists to create rclversion
	and autoconfig includes

2009-11-24 10:24 +0000  dockes    (a6e854084ffb)

	* src/utils/smallut.h:
	gcc4

2009-11-23 19:51 +0000  dockes    (42785e498950)

	* src/index/beaglequeue.cpp:
	store beagle fields before interning the file

2009-11-23 17:38 +0000  dockes    (aaccb7e813a8)

	* src/qtgui/preview_w.cpp:
	if text is empty, display fields by default

2009-11-23 17:37 +0000  dockes    (129654f22b3c)

	* src/internfile/internfile.cpp:
	in FileInterner::FileInterner(Rcl::Doc) (query), declare the
	BeagleQueue static so that the cache persists between FileInterner
	objects

2009-11-23 17:36 +0000  dockes    (2292efb797b4)

	* src/internfile/internfile.h:
	comments

2009-11-23 16:12 +0000  dockes    (a7ed9c85c313)

	* src/query/dynconf.cpp, src/query/dynconf.h: new file.
	* src/query/history.cpp, src/query/history.h: deleted file.
	* src/lib/Makefile, src/lib/mkMake, src/qtgui/guiutils.cpp,
	src/qtgui/main.cpp, src/qtgui/preview_w.cpp,
	src/qtgui/rclmain_w.cpp, src/qtgui/recoll.h,
	src/query/docseqhist.cpp, src/query/docseqhist.h,
	src/query/dynconf.cpp, src/query/dynconf.h, src/query/history.cpp,
	src/query/history.h:
	revamped history feature to be udi-based while supporting old format

2009-11-23 16:11 +0000  dockes    (8a494a30e71f)

	* src/rcldb/rcldb.cpp:
	set udi in meta from getDoc(udi)

2009-11-23 16:10 +0000  dockes    (c432dcb83d8f)

	* src/index/beaglequeue.cpp, src/utils/circache.cpp,
	src/utils/circache.h:
	Beaglequeue: simplify index from cache now that udi entries are
	unique in cache

2009-11-22 17:27 +0000  dockes    (112515ddfd1b)

	* src/index/beaglequeue.cpp, src/utils/circache.cpp,
	src/utils/circache.h:
	only keep the latest entry for a given udi in the cache

2009-11-22 17:26 +0000  dockes    (c47346e105ac)

	* src/utils/smallut.h:
	added tempbuf class

2009-11-21 13:36 +0000  dockes    (d497773469db)

	* src/internfile/mimehandler.cpp, src/qtgui/rclmain_w.cpp:
	allow setting attrs on mimeview defs, factorize some code with
	mhExecFactory

2009-11-21 13:35 +0000  dockes    (77639dc8a584)

	* src/common/rclconfig.cpp, src/common/rclconfig.h:
	added valueSplitAttributes() method

2009-11-21 11:18 +0000  dockes    (50c2c8c764bb)

	* src/internfile/mimehandler.cpp:
	use a confsimple to parse the additional filter attributes

2009-11-21 11:14 +0000  dockes    (ba1b73290998)

	* src/qtgui/guiutils.h:
	add ipath to default paragraph format

2009-11-18 15:32 +0000  dockes    (132c512aacde)

	* src/kde/kioslave/recoll/CMakeLists.txt:
	added beaglequeue/circache to kio build because of internfile
	dependancy

2009-11-18 14:27 +0000  dockes    (d1587dd98290)

	* src/utils/circache.cpp:
	warning

2009-11-18 14:26 +0000  dockes    (812296ef15d8)

	* src/rcldb/rclquery.cpp:
	query::getrescnt() would only work once following 1.13 mods (affects
	python api)

2009-11-18 14:25 +0000  dockes    (cc1924f2d969)

	* src/python/samples/recollq.py:
	

2009-11-18 14:03 +0000  dockes    (e60f229404a4)

	* src/python/recoll/pyrecoll.cpp:
	add some casts to avoid kwargs const warnings

2009-11-18 13:46 +0000  dockes    (0e29576743b0)

	* src/index/rclmonrcv.cpp:
	typo

2009-11-18 12:33 +0000  dockes    (da553b8d1e93)

	* src/filters/rclchm, src/filters/rclexecm.py, src/filters/rclics,
	src/internfile/mh_execm.cpp, src/internfile/mh_execm.h:
	handle REFILTERROR in execm

2009-11-18 10:26 +0000  dockes    (f28392bec173)

	* src/internfile/mh_mail.cpp, src/rcldb/rcldb.cpp:
	mh_mail: use truncate_to_word to avoid cutting an utf8 char. rcldb:
	logdeb text_to_word errors

2009-11-18 08:24 +0000  dockes    (c9b8704e7ffa)

	* src/index/beaglequeue.cpp, src/mk/FreeBSD:
	beaglequeue fully functional, small fixes remaining?

2009-11-18 07:57 +0000  dockes    (0f863324690f)

	* src/index/beaglequeue.cpp:
	ok with compression

2009-11-18 07:46 +0000  dockes    (7925e58ac0d9)

	* src/utils/circache.cpp, src/utils/circache.h:
	compression works

2009-11-17 14:52 +0000  dockes    (122d9a523dc7)

	* src/utils/circache.cpp, src/utils/circache.h:
	circache ok

2009-11-16 16:18 +0000  dockes    (88021fc84abd)

	* src/internfile/internfile.cpp:
	Lack of error checking after have_document() in preview case could
	lead to looping, and cancellation was not checked to make things
	worse

2009-11-16 16:16 +0000  dockes    (22e0540453bc)

	* src/configure:
	--without-gui

2009-11-16 16:12 +0000  dockes    (d3e16fb089de)

	* src/qt4gui/recoll.pro.in:
	stupid mistake in previous cosmetic change

2009-11-16 16:11 +0000  dockes    (a422d8f6d6fd)

	* src/index/fsindexer.cpp:
	make very sure ~/.beagle is in the skippedPaths

2009-11-16 16:10 +0000  dockes    (effac8983ab5)

	* src/internfile/mh_mail.cpp:
	reason msg

2009-11-16 12:50 +0000  dockes    (bfc0df6ab067)

	* src/Makefile.in, src/common/autoconfig.h.in, src/configure.ac,
	src/index/Makefile, src/mk/localdefs.in, src/utils/x11mon.cpp:
	add --without-gui configure option

2009-11-15 16:41 +0000  dockes    (81edb2c4cef7)

	* src/index/beaglequeue.cpp, src/index/fsindexer.cpp,
	src/utils/circache.cpp:
	catch cancel exceptions cast by internfile()

2009-11-15 14:39 +0000  dockes    (4539869b5761)

	* src/index/fsindexer.h, src/qtgui/rclmain_w.cpp,
	src/query/reslistpager.cpp, src/rcldb/rcldoc.cpp,
	src/rcldb/rcldoc.h, src/sampleconf/fields:
	changed apptag field name to rclaptg

2009-11-15 14:18 +0000  dockes    (b41678f5ad12)

	* src/qt4gui/recoll.pro.in, src/qtgui/recoll.pro.in:
	add -ldl -lX11 for binutils-gold

2009-11-15 08:38 +0000  dockes    (3801ee9a51c6)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/index/fsindexer.cpp, src/index/rclmonrcv.cpp,
	src/utils/fstreewalk.cpp, src/utils/fstreewalk.h,
	src/utils/smallut.cpp, src/utils/smallut.h:
	rationalized how we recompute things on setkeydir. recoll_noindex
	and skippedNames can now be changed at any point in the tree

2009-11-14 11:34 +0000  dockes    (a922eac98d16)

	* src/index/rclmonprc.cpp:
	monitor: accumulate mods during 30S before indexing

2009-11-14 10:29 +0000  dockes    (ea134de640e0)

	* src/index/beaglequeue.cpp, src/index/beaglequeue.h,
	src/index/fsindexer.cpp, src/index/indexer.cpp,
	src/index/rclmonrcv.cpp, src/index/recollindex.cpp,
	src/utils/circache.cpp:
	monitor the beagle queue

2009-11-14 10:25 +0000  dockes    (42421f027b94)

	* src/filters/rclchm, src/filters/rclics, src/filters/rcltext:
	emit helpernotfound

2009-11-14 08:21 +0000  dockes    (93baac7e87ac)

	* src/index/beaglequeue.cpp, src/index/beaglequeue.h,
	src/index/fsindexer.cpp, src/index/fsindexer.h,
	src/index/indexer.cpp, src/index/indexer.h,
	src/index/recollindex.cpp, src/index/recollindex.h,
	src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	beaglequeue indexFiles

2009-11-13 13:29 +0000  dockes    (7d0c4d7a917c)

	* src/index/beaglequeue.cpp, src/index/beaglequeue.h,
	src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/qtgui/confgui/confguiindex.cpp, src/qtgui/preview_w.cpp,
	src/qtgui/preview_w.h, src/qtgui/rclmain_w.cpp,
	src/rcldb/rcldoc.cpp, src/rcldb/rcldoc.h, src/rcldb/rclquery.cpp,
	src/sampleconf/fields:
	1st beagle version with index/preview working

2009-11-13 09:08 +0000  dockes    (71f8c28cbeba)

	* src/qtgui/idxthread.cpp:
	integrate beaglequeueindexer for indexing. Work remains for
	indexfiles() at least

2009-11-13 09:08 +0000  dockes    (dda5121a7c45)

	* src/utils/circache.cpp, src/utils/circache.h:
	integrate beaglequeueindexer for indexing. Work remains for
	indexfiles() at least

2009-11-13 09:07 +0000  dockes    (364d46e16faf)

	* src/index/beaglequeue.cpp, src/index/beaglequeue.h,
	src/index/fsindexer.cpp, src/index/fsindexer.h,
	src/index/indexer.cpp, src/index/indexer.h,
	src/index/recollindex.cpp:
	integrate beaglequeueindexer for indexing. Work remains for
	indexfiles() at least

2009-11-13 09:04 +0000  dockes    (7e32466740a7)

	* src/configure.ac:
	Israel G. Lugo: give priority to the user's PATH when looking for
	qmake (fixes detecting the wrong qmake when more than one exists).

2009-11-13 09:01 +0000  dockes    (3503bfba6b70)

	* src/rcldb/rcldoc.cpp, src/rcldb/rcldoc.h:
	make dump const

2009-11-13 09:01 +0000  dockes    (b4c8330037e7)

	* src/lib/Makefile, src/lib/mkMake:
	add beaglequeue, fsindexer

2009-11-13 08:58 +0000  dockes    (63ee628229e7)

	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/confgui/confguiindex.h:
	add panel for beaglequeue parameters + arrange so that a checkbox
	can enable/disable other params

2009-11-13 08:54 +0000  dockes    (5edf24b7552e)

	* src/sampleconf/fields:
	comments

2009-11-13 08:15 +0000  dockes    (a829fce15458)

	* src/filters/rclchm, src/filters/rclexecm.py, src/filters/rclics,
	src/filters/rclimg, src/filters/rclzip, src/internfile/mh_execm.cpp:
	dont use 0-sized doc to mean eof now

2009-11-11 18:09 +0000  dockes    (21b6ba1309c7)

	* src/filters/rclimg:
	send mimetype

2009-11-11 18:07 +0000  dockes    (7f2a7a7214fb)

	* src/internfile/mh_execm.cpp:
	set mimetype for the non-ipath case

2009-11-11 07:47 +0000  dockes    (75f9d10cf2f3)

	* src/index/fsindexer.cpp, src/index/fsindexer.h,
	src/index/indexer.cpp, src/index/indexer.h,
	src/index/recollindex.cpp:
	moved common db code from fsindexer to confindexer

2009-11-10 18:11 +0000  dockes    (e079c8ce273f)

	* src/index/beaglequeue.cpp, src/index/beaglequeue.h: new file.
	* src/index/beaglequeue.cpp, src/index/beaglequeue.h:
	

2009-11-10 18:10 +0000  dockes    (698e70099ec0)

	* src/index/fsindexer.cpp, src/index/fsindexer.h,
	src/index/recollindex.h: new file.
	* src/index/fsindexer.cpp, src/index/fsindexer.h,
	src/index/indexer.cpp, src/index/indexer.h, src/index/rclmonprc.cpp,
	src/index/recollindex.cpp, src/index/recollindex.h:
	dbindexer->fsindexer, split into its own file

2009-11-10 17:42 +0000  dockes    (ccf674432104)

	* src/ChangeLog:
	

2009-11-10 17:42 +0000  dockes    (065c40b8964d)

	* src/index/recollindex.cpp:
	small cleanups and add option to call beaglequeue

2009-11-10 17:41 +0000  dockes    (d4ff290d1615)

	* src/index/indexer.cpp:
	small cleanups and comments

2009-11-10 17:39 +0000  dockes    (00c5f0c09ef9)

	* src/index/indexer.h:
	comments

2009-11-10 17:38 +0000  dockes    (02b632bcbeca)

	* src/index/rclmonrcv.cpp:
	remove indexer.h include

2009-11-10 17:38 +0000  dockes    (ba2255ec8b62)

	* src/common/rclinit.h:
	comment

2009-11-10 17:37 +0000  dockes    (915bf923b8da)

	* src/utils/fstreewalk.cpp, src/utils/fstreewalk.h:
	add nocanon option

2009-11-10 17:34 +0000  dockes    (29b753cd1f78)

	* src/utils/circache.cpp, src/utils/circache.h:
	intermediary checkpoint (things work, no index, no compression)

2009-11-10 17:32 +0000  dockes    (16e0d5965055)

	* src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	removed the useless keep_updated flag

2009-11-10 17:31 +0000  dockes    (75878eb08588)

	* src/rcldb/rcldoc.cpp, src/rcldb/rcldoc.h:
	added dump function

2009-11-10 17:30 +0000  dockes    (35b43d00db47)

	* src/query/recollq.cpp:
	added explicit flag parameter to Internfile constructeur for helping
	with beagle queue integration

2009-11-10 17:29 +0000  dockes    (75255bb8d7a0)

	* src/sampleconf/fields:
	add dc:description as keywords alias

2009-11-10 09:39 +0000  dockes    (ee6104876da9)

	* src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/kde/kioslave/recoll/htmlif.cpp, src/qtgui/preview_w.cpp:
	added explicit flag parameter to Internfile constructeur for helping
	with beagle queue integration

2009-11-09 09:26 +0000  dockes    (7c3c0eed036b)

	* src/utils/circache.cpp, src/utils/circache.h: new file.
	* src/lib/Makefile, src/lib/mkMake, src/utils/Makefile,
	src/utils/circache.cpp, src/utils/circache.h:
	circache

2009-11-09 09:26 +0000  dockes    (877bb76973aa)

	* src/utils/conftree.cpp, src/utils/conftree.h:
	add some constness

2009-11-06 11:33 +0000  dockes    (944e0b9d1d53)

	* src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp, src/qtgui/reslist.h,
	src/query/docseq.h, src/query/docseqdb.cpp, src/query/docseqdb.h,
	src/query/docseqhist.cpp, src/query/docseqhist.h,
	src/utils/fileudi.h, src/utils/pathut.cpp, src/utils/pathut.h:
	allow opening parent/enclosing doc with native editor in reslist

2009-11-06 11:26 +0000  dockes    (1d9a5530d7bf)

	* src/sampleconf/mimeview:
	added okular as chm viewer

2009-11-04 13:52 +0000  dockes    (226d88ccb6c1)

	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/confguiindex.cpp:
	store file names using local8bit qstring conversions

2009-11-04 13:43 +0000  dockes    (b57bd81d3e8e)

	* src/utils/fstreewalk.h:
	comment

2009-11-04 13:42 +0000  dockes    (2037ae120bcf)

	* src/utils/cancelcheck.h:
	comment

2009-10-31 09:00 +0000  dockes    (3ad7f6c85ce2)

	* src/internfile/mh_mail.cpp, src/internfile/mh_mail.h:
	extract msgid + generate abstract at start of txt, excluding headers

2009-10-31 08:59 +0000  dockes    (9e7ae93bd35b)

	* src/utils/mimeparse.cpp:
	change rfc2047 mail header decoding (=?iso-xx stuff) so that a start
	of encoding section can be recognized even not after white space

2009-10-30 19:05 +0000  dockes    (eb9ed35f9fe0)

	* src/qtgui/rclmain_w.cpp:
	allow substituting all doc fields in viewer command line

2009-10-30 19:04 +0000  dockes    (d8065c96ceae)

	* src/qtgui/viewaction.ui:
	clarify using desktop defs in action choice dialog

2009-10-30 10:16 +0000  dockes    (4a744302db21)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/qtgui/rclmain_w.cpp, src/query/reslistpager.cpp,
	src/sampleconf/fields:
	Allow setting fields in fs subtree. Use for an application tag used
	for starting a specialized viewer

2009-10-30 08:59 +0000  dockes    (bdd54ae7a182)

	* src/VERSION, src/common/rclconfig.h, src/index/indexer.cpp,
	src/index/indexer.h, src/internfile/mimehandler.cpp,
	src/rcldb/rcldb.cpp, src/rcldb/rclquery.cpp, src/utils/conftree.cpp,
	src/utils/conftree.h:
	Allow fields local to a subtree to be set in the configuration

2009-10-30 08:53 +0000  dockes    (aa8c442a67ec)

	* src/configure.ac:
	use /bin/sh to execute recollinstall instead of making it executable

2009-10-30 08:53 +0000  dockes    (0faf1f6ccf5f)

	* src/Makefile.in, src/configure:
	use /bin/sh to execute recollinstall instead of making it executable

2009-10-29 18:11 +0000  dockes    (2338d18226f2)

	* src/qtgui/uiprefs.ui:
	move the use-desktop-preference checkbox close to the choose editors
	button

2009-10-29 18:10 +0000  dockes    (4b6f29c1e3c3)

	* src/sampleconf/mimeconf:
	

2009-10-29 18:09 +0000  dockes    (2de2f1804086)

	* src/common/rclconfig.cpp, src/common/rclconfig.h:
	support wildcard filtering in getConfNames() + implement config
	checking function in test driver

2009-10-29 18:08 +0000  dockes    (78c287d1d2da)

	* src/utils/conftree.cpp, src/utils/conftree.h:
	bugfix: if last line ended with backslash, entry was ignored. new
	function: filter by wildcard expr in getNames()

2009-10-29 13:44 +0000  dockes    (26ae4011727a)

	* src/sampleconf/mimeconf, src/sampleconf/mimemap:
	chm+comments

2009-10-29 13:34 +0000  dockes    (178273f496f2)

	* src/sampleconf/recoll.conf.in:
	comment

2009-10-28 13:08 +0000  dockes    (9435a56f1962)

	* src/qtgui/reslist.cpp, src/qtgui/reslist.h:
	fix signal/slot type mismatch for setSortParams

2009-10-26 13:19 +0000  dockes    (2a369661c70c)

	* src/qtgui/uiprefs_w.cpp:
	disable app-choosing button when use-desktop-prefs is activated

2009-10-26 11:16 +0000  dockes    (8cdb908a253d)

	* src/qtgui/rclmain_w.cpp:
	qt4 sometimes doesnt display the status bar if its not created in
	init

2009-10-26 10:00 +0000  dockes    (758f39788d0c)

	* src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h:
	arrange to send pageup/down and shift-home to the reslist

2009-10-24 15:02 +0000  dockes    (7d98b5c330c1)

	* src/rcldb/rcldb.cpp, src/rcldb/rcldb_p.h, src/rcldb/rclquery.cpp,
	src/rcldb/rclquery_p.h:
	unified retrying for databaseModified errors

2009-10-24 11:00 +0000  dockes    (9d49d2991eed)

	* src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/rcldb_p.h,
	src/rcldb/rclquery.cpp:
	renamed fields for clarity

2009-10-24 06:37 +0000  dockes    (1486d8f630fc)

	* src/filters/rclchm, src/filters/rclics, src/filters/rclzip:
	cleanup

2009-10-24 06:17 +0000  dockes    (6a8a9821c17c)

	* src/filters/rclexecm.py, src/filters/rclzip:
	use python zipfile

2009-10-23 16:45 +0000  dockes    (436e03b2f0c1)

	* src/filters/rclchm:
	comments

2009-10-23 16:03 +0000  dockes    (be653b19dd28)

	* src/filters/rclchm: new file.
	* src/filters/rclchm:
	first working

2009-10-23 16:03 +0000  dockes    (99a819213c2a)

	* src/filters/rclzip:
	comment

2009-10-22 17:28 +0000  dockes    (e5f16d6d23db)

	* src/doc/user/usermanual.sgml:
	%(fldname) specs

2009-10-22 17:27 +0000  dockes    (3e37f6aac6c5)

	* src/doc/user/docbook.css:
	new freebsd version

2009-10-22 17:27 +0000  dockes    (1535c07dd8a6)

	* src/sampleconf/mimeconf:
	ics

2009-10-22 17:16 +0000  dockes    (deaef902d7e3)

	* src/sampleconf/mimeconf:
	add ics + more programming languages

2009-10-22 17:16 +0000  dockes    (98009bab1e61)

	* src/sampleconf/mimemap:
	add ics + more programming languages

2009-10-22 17:13 +0000  dockes    (bf9a0c5eeb5c)

	* src/filters/rclics: new file.
	* src/filters/rclexecm.py, src/filters/rclics:
	initial support for icalendar splitting

2009-10-22 12:24 +0000  dockes    (f97b91cb8153)

	* src/filters/rclexecm.py: new file.
	* src/filters/rclexecm.py, src/filters/rclzip:
	made rclexecm a class in a separate module

2009-10-22 11:58 +0000  dockes    (9361ab690eec)

	* src/filters/rclzip:
	fully extracted common code

2009-10-21 21:00 +0000  dockes    (39b12da95a76)

	* src/filters/rclzip: new file.
	* src/filters/rclzip:
	initial

2009-10-21 20:59 +0000  dockes    (ef17d33ea782)

	* website/download.html:
	1.12.2

2009-10-21 12:02 +0000  dockes    (2baccf2235b6)

	* src/qtgui/rclmain_w.cpp, src/query/docseqdb.cpp,
	src/query/docseqdb.h, src/query/reslistpager.cpp,
	src/query/reslistpager.h, src/utils/Makefile, src/utils/smallut.cpp,
	src/utils/smallut.h:
	fix queryBuildAbstract option functionality. Allow substituting
	%(fieldname) in reslist paragraph format

2009-10-21 12:00 +0000  dockes    (30a02a6bada8)

	* src/internfile/mimehandler.h:
	warning

2009-10-21 11:58 +0000  dockes    (ebc82bec7704)

	* src/kde/kioslave/recoll/CMakeLists.txt, src/utils/closefrom.cpp:
	linux

2009-10-21 11:32 +0000  dockes    (1cc979921a0d)

	* src/internfile/mh_text.cpp, src/utils/closefrom.cpp:
	gcc43+linux compile

2009-10-21 07:48 +0000  dockes    (72168c28c9bb)

	* src/makestaticdist.sh:
	cleanup .svn directories

2009-10-21 07:24 +0000  dockes    (a550073d34d4)

	* src/makestaticdist.sh:
	get makestaticdist to work with qt4

2009-10-21 07:15 +0000  dockes    (e44497010880)

	* packaging/debian/changelog, packaging/debian/control,
	packaging/debian/menu, packaging/debian/rules,
	packaging/rpm/recollmdk.spec, tests/lyx/lyx.txt:
	1.12.2 release fixes

2009-10-21 07:15 +0000  dockes    (cecbbb5e3c23)

	* website/pics/mario.png, website/pics/smile.png: new file.
	* website/mario.png, website/smile.png: deleted file.
	* website/BUGS.html, website/CHANGES.html, website/devel.html,
	website/download.html, website/features.html, website/index.html.en,
	website/index.html.fr, website/mario.png, website/pics/index.html,
	website/pics/mario.png, website/pics/recoll5-thumb.png,
	website/pics/recoll5.png, website/pics/smile.png, website/smile.png:
	1.12.2 release

2009-10-19 16:20 +0000  dockes    (b2a9b0c5fc47)

	* src/lib/Makefile, src/lib/mkMake:
	add closefrom

2009-10-19 16:19 +0000  dockes    (5b3c0f9438a9)

	* src/README, src/doc/man/recoll.conf.5, src/doc/man/recollindex.1,
	src/doc/user/usermanual.sgml, src/filters/rclsvg:
	explict(e)ly errors again

2009-10-19 10:51 +0000  dockes    (70ed5ded2a5e)

	* src/qtgui/uiprefs.ui:
	move the use-desktop-preference checkbox close to the choose editors
	button

2009-10-19 07:30 +0000  dockes    (d25d7050d60c)

	* src/rcldb/rcldb.cpp, src/rcldb/rclquery.cpp:
	catch xapian exceptions in 2 more places.

2009-10-18 07:57 +0000  dockes    (cbcf397757a1)

	* src/qtgui/reslist.cpp:
	reslist: rightclick popup would not work inside table

2009-10-17 06:38 +0000  dockes    (cb08cd6b282b)

	* src/Makefile.in, src/index/recollindex.cpp, src/qtgui/main.cpp,
	src/qtgui/rclmain_w.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	rclversion.h must not include xapian.h. Replace with
	Rcl::version_string()

2009-10-15 15:50 +0000  dockes    (6d01b54d3cf5)

	* src/qtgui/preview_w.cpp:
	compile with qt3

2009-10-15 12:32 +0000  dockes    (749d93d72709)

	* src/index/rclmonprc.cpp:
	only call x11IsAlive from the main thread

2009-10-15 12:32 +0000  dockes    (7339dd810b4c)

	* src/utils/Makefile, src/utils/conftree.cpp, src/utils/execmd.cpp:
	small linux include and makefile adjustments

2009-10-14 12:25 +0000  dockes    (4bfcb9f6483a)

	* src/utils/execmd.cpp, src/utils/execmd.h:
	m_cancelRequest->m_killRequest to avoid confusion with cancelcheck +
	close descriptors before exec

2009-10-14 12:24 +0000  dockes    (834b841865f0)

	* src/internfile/mh_exec.cpp:
	no timeout if filtermaxseconds is -1

2009-10-14 12:23 +0000  dockes    (894b94a986c2)

	* src/qtgui/confgui/confguiindex.cpp, src/sampleconf/recoll.conf.in:
	add filtermaxseconds to config

2009-10-14 12:22 +0000  dockes    (eec367c78b29)

	* src/utils/closefrom.cpp, src/utils/closefrom.h: new file.
	* src/utils/closefrom.cpp, src/utils/closefrom.h:
	

2009-10-14 06:21 +0000  dockes    (48782c4d99bd)

	* src/filters/rclimg, src/index/recollindex.cpp,
	src/internfile/mh_execm.cpp, src/internfile/mh_execm.h,
	src/sampleconf/mimeconf, src/sampleconf/mimemap,
	src/utils/execmd.cpp:
	execm first working zip version

2009-10-13 17:32 +0000  dockes    (ac8388c11bcb)

	* src/utils/idfile.cpp, src/utils/idfile.h:
	allow working on memory string

2009-10-13 16:37 +0000  dockes    (25cd49e5f3b2)

	* src/internfile/mh_exec.cpp:
	comments

2009-10-13 12:22 +0000  dockes    (f8f821415451)

	* src/internfile/mh_exec.cpp:
	handle interrupt requests and set timeout on execs

2009-10-13 12:21 +0000  dockes    (0ec65928f00f)

	* src/utils/execmd.cpp:
	use process group to control/kill execd processes

2009-10-13 12:20 +0000  dockes    (ad3f88e0578e)

	* src/sampleconf/recoll.conf.in:
	added loop.ps to skippedFiles

2009-10-12 16:27 +0000  dockes    (2d5321b8e32c)

	* src/common/rclinit.cpp:
	also block USR1 USR2

2009-10-09 13:58 +0000  dockes    (9ef52b9903d4)

	* src/internfile/mh_execm.cpp, src/internfile/mh_execm.h: new file.
	* src/filters/rclimg, src/internfile/mh_exec.cpp,
	src/internfile/mh_exec.h, src/internfile/mh_execm.cpp,
	src/internfile/mh_execm.h, src/internfile/mimehandler.cpp,
	src/lib/Makefile, src/lib/mkMake, src/sampleconf/mimeconf:
	execm persistent filters

2009-10-09 13:57 +0000  dockes    (94243b4ecca6)

	* src/common/textsplit.cpp:
	process camelCase

2009-10-09 13:34 +0000  dockes    (9129980cfe0e)

	* src/utils/execmd.cpp, src/utils/execmd.h, src/utils/netcon.cpp,
	src/utils/netcon.h:
	Execmd: added count parameter to receive(), and new getline()
	function Netcon: fix receive() to properly handle the case where
	there is initially data in the line buffer

2009-10-04 13:25 +0000  dockes    (f81cdfd36952)

	* src/utils/readfile.cpp:
	

2009-10-04 13:24 +0000  dockes    (fe1c983b582e)

	* src/mk/commondefs:
	remove -I/usr/local/include from commondefs!

2009-09-30 15:53 +0000  dockes    (401a53878320)

	* src/internfile/mh_text.cpp:
	dont set ipath for the first page in text files to avoid dual
	records for files under the page size

2009-09-30 15:45 +0000  dockes    (1ce015f48d3a)

	* src/internfile/mh_text.cpp, src/internfile/mh_text.h,
	src/qtgui/confgui/confguiindex.cpp, src/sampleconf/recoll.conf.in,
	src/utils/readfile.cpp, src/utils/readfile.h:
	implemented paged text files

2009-09-29 15:58 +0000  dockes    (b288f2d22754)

	* src/internfile/mh_text.cpp, src/qtgui/confgui/confguiindex.cpp,
	src/sampleconf/recoll.conf.in:
	textfilemaxmbs

2009-09-29 15:58 +0000  dockes    (a41ae31020fa)

	* src/utils/execmd.cpp:
	loglevels

2009-09-29 14:49 +0000  dockes    (89ab6fcd4bef)

	* src/utils/netcon.cpp, src/utils/netcon.h: new file.
	* src/utils/netcon.cpp, src/utils/netcon.h:
	

2009-09-29 14:49 +0000  dockes    (254aad5cdd17)

	* src/utils/netcon.cpp, src/utils/netcon.h: deleted file.
	* src/utils/netcon.cpp, src/utils/netcon.h:
	

2009-09-29 08:47 +0000  dockes    (302c0dd0dfa0)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h:
	got rid of the preview tabdata array

2009-09-29 07:48 +0000  dockes    (f65d40e808c6)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h:
	make print a slot in the editor, not the preview

2009-09-28 18:19 +0000  dockes    (5c03bd6d7d00)

	* src/doc/user/usermanual.sgml, src/qtgui/preview_w.cpp,
	src/qtgui/preview_w.h:
	Preview printing

2009-09-28 17:53 +0000  dockes    (564c8022205f)

	* src/utils/execmd.cpp:
	adjust log levels

2009-09-26 09:30 +0000  dockes    (231f842cfa1a)

	* src/utils/netcon.cpp, src/utils/netcon.h: new file.
	* src/lib/Makefile, src/lib/mkMake, src/utils/execmd.cpp,
	src/utils/execmd.h, src/utils/netcon.cpp, src/utils/netcon.h:
	execmd uses netcon

2009-09-26 09:05 +0000  dockes    (3883518b318e)

	* src/rcldb/rclquery.cpp:
	dont abort on get_mset exception

2009-08-13 06:34 +0000  dockes    (71e1aa73c37e)

	* src/utils/refcntr.h:
	add release() method

2009-08-13 06:32 +0000  dockes    (75501a297534)

	* src/index/indexer.cpp, src/internfile/internfile.cpp,
	src/internfile/internfile.h, src/internfile/mimehandler.cpp,
	src/internfile/mimehandler.h:
	xattrs: make them work with non-text files. Use ctime for up to date
	checks

2009-08-13 06:29 +0000  dockes    (45721e5ace5a)

	* src/common/autoconfig.h.in:
	allow choosing the "file" command from configure

2009-08-13 06:28 +0000  dockes    (817bbeb36f34)

	* src/qtgui/rclmain_w.cpp:
	Make sure db is open at all times (caused problems when sorting
	query started from the command line)

2009-08-13 06:27 +0000  dockes    (05b809bbb7d0)

	* src/qtgui/preview_w.cpp:
	

2009-08-13 06:26 +0000  dockes    (b5b49b39dc8a)

	* src/configure, src/configure.ac, src/index/mimetype.cpp:
	allow choosing the "file" command from configure

2009-08-13 06:24 +0000  dockes    (902b5dc99b09)

	* src/ChangeLog:
	

2009-08-13 06:23 +0000  dockes    (3ee15899a458)

	* src/sampleconf/recoll.conf.in:
	add indexedmimetypes to sample file

2009-07-02 13:26 +0000  dockes    (a0f0be9546bb)

	* src/filters/rclman:
	

2009-07-02 10:26 +0000  dockes    (82d09aa4b256)

	* src/index/indexer.cpp, src/qtgui/rclmain_w.cpp:
	improve periodic indexing status reporting and timer processing

2009-07-02 06:17 +0000  dockes    (b8cdf0ab08a9)

	* src/qtgui/main.cpp, src/rcldb/searchdata.h, src/utils/mimeparse.cpp,
	src/utils/mimeparse.h:
	explicitely->explicitly

2009-06-26 09:25 +0000  dockes    (98153ad73366)

	* src/filters/rclman, src/sampleconf/mimemap:
	improve man page handling

2009-06-22 16:41 +0000  dockes    (5003fe921249)

	* src/qtgui/main.cpp, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h:
	moved periodic timer control from main.cpp to rclmain_w.cpp

2009-06-22 15:25 +0000  dockes    (a420554375c5)

	* src/qtgui/idxthread.cpp, src/qtgui/main.cpp,
	src/qtgui/rclmain_w.cpp:
	use proper locking/sleeping object for idx thread sync

2009-06-22 08:58 +0000  dockes    (d4fdc68fab47)

	* src/filters/rclman:
	use groff html output!

2009-06-22 08:57 +0000  dockes    (01a166e9f9e7)

	* src/index/indexer.cpp:
	debug trace

2009-06-01 06:32 +0000  dockes    (272067257953)

	* src/qtgui/main.cpp:
	fixed bug in handling remaining arguments as question pieces

2009-05-29 06:28 +0000  dockes    (091488ca1543)

	* src/bincimapmime/convert.h, src/utils/base64.cpp:
	change strchr() return parameter to const for new libc

2009-05-25 08:59 +0000  dockes    (6231c20d3e23)

	* src/filters/rcllyx:
	bug report from d.prost: spaces and accents in lyx file names

2009-05-04 08:06 +0000  dockes    (20f1f5746b3e)

	* src/qtgui/guiutils.cpp, src/qtgui/preview_w.h,
	src/qtgui/spell_w.cpp:
	gcc44

2009-04-27 11:49 +0000  dockes    (ba8db4a9fcf6)

	* packaging/rpm/recollfedora10.spec: new file.
	* packaging/rpm/recollfedora10.spec:
	

2009-04-27 11:42 +0000  dockes    (85e5723e268a)

	* tests/cjk/cjk.txt: new file.
	* tests/cjk/cjk.txt:
	

2009-04-27 09:40 +0000  dockes    (a7cf61bb3e6a)

	* website/BUGS.html, website/download.html, website/index.html.en,
	website/index.html.fr:
	1.12 release changes

2009-04-27 09:15 +0000  dockes    (eb2d1da3c9ee)

	* website/BUGS.html:
	

2009-04-27 08:05 +0000  dockes    (c26df870665c)

	* src/utils/md5.cpp, src/utils/readfile.cpp:
	gcc 4.4 includes fixes

2009-04-27 08:03 +0000  dockes    (5e892d5aa963)

	* src/python/recoll/setup.py:
	pathhash->fileudi

2009-02-24 18:30 +0000  dockes    (d897d4f128ce)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h,
	src/qtgui/rclmain_w.cpp, src/qtgui/uiprefs.ui,
	src/qtgui/uiprefs_w.cpp:
	implement option to display the catg filter as a toolbar combobox

2009-02-23 07:57 +0000  dockes    (5eb3b91eca18)

	* src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts:
	new ru/uk translations from Michael

2009-02-06 16:49 +0000  dockes    (0946c032bea8)

	* src/utils/refcntr.h:
	make RefCntr(x*) explicit

2009-02-06 16:48 +0000  dockes    (1f50a0e7a3ac)

	* src/internfile/mimehandler.cpp:
	comments

2009-02-05 14:35 +0000  dockes    (1eb8b93ed85b)

	* src/utils/execmd.cpp, src/utils/execmd.h:
	1st execcmd cleanup

2009-01-30 13:27 +0000  dockes    (55d06dfa9b04)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_tr.ts, src/qtgui/i18n/recoll_uk.ts,
	src/qtgui/i18n/recoll_xx.ts, src/qtgui/reslist.cpp:
	small pbs with reslist translations

2009-01-30 11:43 +0000  dockes    (af28dae4f689)

	* src/INSTALL, src/README:
	

2009-01-30 11:43 +0000  dockes    (581a47458445 [RECOLL_1_12_0])

	* website/BUGS.html, website/CHANGES.html:
	1.12.0?

2009-01-30 11:42 +0000  dockes    (fd6cc84e76ce)

	* src/doc/user/usermanual.sgml:
	1.12 manual

2009-01-30 10:22 +0000  dockes    (f683b3907dd1)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_tr.ts, src/qtgui/i18n/recoll_uk.ts,
	src/qtgui/i18n/recoll_xx.ts:
	updated message files, translated french

2009-01-29 14:24 +0000  dockes    (f09b8b421535)

	* src/filters/rcltext:
	simplified rcltext. No need for awk and no assumptions on charset

2009-01-29 11:27 +0000  dockes    (c8b882dea260)

	* src/ChangeLog, website/CHANGES.html, website/doc.html:
	

2009-01-29 11:04 +0000  dockes    (0bf58162416f)

	* src/VERSION:
	1.12.0 une

2009-01-29 10:47 +0000  dockes    (40e8e1f2f59b)

	* packaging/debian/changelog, packaging/rpm/recoll.spec,
	packaging/rpm/recollCooker.spec, packaging/rpm/recollfedora.spec,
	packaging/rpm/recollmdk.spec:
	

2009-01-29 10:08 +0000  dockes    (2af56852a361)

	* src/qtgui/main.cpp, src/qtgui/ssearch_w.cpp, src/qtgui/ssearch_w.h:
	have ssearch install the lang help section when needed

2009-01-28 17:41 +0000  dockes    (8654c9b9d56d)

	* src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp:
	erase history would crash with empty reslist docsource

2009-01-28 17:21 +0000  dockes    (8b56ccfdd91b)

	* src/qtgui/rclmain_w.cpp:
	fixed status bar messages (were cleared by periodic100 every 100ms)

2009-01-28 17:05 +0000  dockes    (b435cf90abb0)

	* src/qtgui/rclhelp.cpp, src/qtgui/rclhelp.h: new file.
	* src/qtgui/rclhelp.cpp, src/qtgui/rclhelp.h:
	F1 context-enhanced help

2009-01-28 16:56 +0000  dockes    (e5410627d9d5)

	* src/qt4gui/recoll.pro.in:
	F1 context-enhanced help

2009-01-28 16:56 +0000  dockes    (741df5618110)

	* src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h,
	src/qtgui/main.cpp, src/qtgui/preview_w.cpp,
	src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/recoll.h,
	src/qtgui/recoll.pro.in, src/qtgui/reslist.cpp,
	src/qtgui/sort_w.cpp, src/qtgui/spell_w.cpp:
	F1 context-enhanced help

2009-01-28 14:58 +0000  dockes    (7e804d156dc5)

	* src/qtgui/rclmain_w.cpp:
	dont encode urls used for starting help browser

2009-01-28 14:22 +0000  dockes    (e696212a674c)

	* src/Makefile.in:
	add xapian version to version string

2009-01-28 08:45 +0000  dockes    (46251043fd88)

	* src/qtgui/advsearch.ui, src/qtgui/sort.ui, src/qtgui/spell.ui,
	src/qtgui/uiprefs.ui:
	avoid setting 0 sizes

2009-01-28 08:40 +0000  dockes    (1c551a065bdd)

	* src/configure, src/configure.ac:
	allow setting QMAKE in the environment

2009-01-27 18:12 +0000  dockes    (fb41a05985ed)

	* src/utils/pxattr.cpp:
	

2009-01-27 11:19 +0000  dockes    (3f5897bb4b8d)

	* tests/stemming/stemming.sh, tests/stemming/stemming.txt: new file.
	* tests/Maildir1/Maildir1.sh, tests/Maildir1/Maildir1.txt,
	tests/andor/andor.sh, tests/andor/andor.txt,
	tests/badsuffs/badsuffs.sh, tests/badsuffs/badsuffs.txt,
	tests/badsuffs1/badsuffs1.sh, tests/badsuffs1/badsuffs1.txt,
	tests/boolean/boolean.sh, tests/boolean/boolean.txt,
	tests/cjk/cjk.sh, tests/delete/delete.sh, tests/delete/delete.txt,
	tests/dirwithblanks/dirwithblanks.sh,
	tests/dirwithblanks/dirwithblanks.txt, tests/djvu/djvu.sh,
	tests/djvu/djvu.txt, tests/dvi/dvi.sh, tests/dvi/dvi.txt,
	tests/empty/empty.sh, tests/empty/empty.txt, tests/html/html.sh,
	tests/html/html.txt, tests/images/images.sh,
	tests/images/images.txt, tests/koi8r/koi8r.sh,
	tests/koi8r/koi8r.txt, tests/lyx/lyx.sh, tests/lyx/lyx.txt,
	tests/mail/mail.sh, tests/mail/mail.txt, tests/media/media.sh,
	tests/media/media.txt, tests/msword/msword.sh,
	tests/msword/msword.txt, tests/notypes/notypes.sh,
	tests/notypes/notypes.txt, tests/ooff/ooff.sh, tests/ooff/ooff.txt,
	tests/pdf/pdf.sh, tests/pdf/pdf.txt, tests/postscript/postscript.sh,
	tests/postscript/postscript.txt, tests/ppt/ppt.sh,
	tests/ppt/ppt.txt, tests/rfc2231/rfc2231.sh,
	tests/rfc2231/rfc2231.txt, tests/rtf/rtf.sh, tests/rtf/rtf.txt,
	tests/runtests.sh, tests/scribus/scribus.sh,
	tests/scribus/scribus.txt, tests/skipped/skipped.sh,
	tests/skipped/skipped.txt, tests/special/special.sh,
	tests/special/special.txt, tests/stemming/stemming.sh,
	tests/stemming/stemming.txt, tests/txt/txt.sh, tests/txt/txt.txt,
	tests/utf8/utf8.sh, tests/utf8/utf8.txt, tests/xls/xls.sh,
	tests/xls/xls.txt:
	remove recoll query text from compared test outputs

2009-01-27 10:25 +0000  dockes    (57dd90e8b55d)

	* src/common/textsplit.cpp, src/common/textsplit.h:
	Emit a_b intermediary span when splitting a_b.c

2009-01-26 18:30 +0000  dockes    (e2238061ec9d)

	* src/query/plaintorich.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h,
	src/rcldb/searchdata.cpp:
	modified the time at which we unaccent so that we can do the
	Capitalized->nostemming test on single words (this had been broken
	by the change of noac/split order done earlier to get japanese to
	work)

2009-01-26 18:26 +0000  dockes    (8529cb7d58c7)

	* tests/cjk/cjk.sh:
	

2009-01-26 17:52 +0000  dockes    (8a5b4971a703)

	* tests/cjk/cjk.sh: new file.
	* tests/cjk/cjk.sh:
	

2009-01-26 17:34 +0000  dockes    (e65566ba6690)

	* website/BUGS.html, website/CHANGES.html, website/features.html,
	website/index.html.en, website/index.html.fr,
	website/pics/index.html, website/pics/recoll-
	HTML_search_results.html, website/pics/recoll0.html,
	website/pics/recoll0.txt, website/pics/recoll1.html,
	website/pics/recoll2.html, website/pics/recoll3.html,
	website/pics/recoll4.html, website/pics/recoll5.html,
	website/pics/recoll_chinese.html:
	website

2009-01-26 13:29 +0000  dockes    (61198659243f)

	* src/utils/smallut.cpp, src/utils/smallut.h:
	add overloaded neutchars with different parameters

2009-01-26 13:27 +0000  dockes    (61567bc09eab)

	* src/utils/transcode.cpp:
	tested and decided against cacheing iconv_open

2009-01-23 15:56 +0000  dockes    (1998b1608eb0)

	* src/ChangeLog, src/qtgui/advsearch_w.cpp, src/qtgui/main.cpp,
	src/qtgui/rclmain_w.cpp, src/qtgui/recoll.h:
	temp ckpt: need to test on real unix

2009-01-23 11:07 +0000  dockes    (3631372e04f1)

	* src/qtgui/uiprefs.ui:
	avoid name duplication

2009-01-23 11:03 +0000  dockes    (0dba2718e1aa)

	* src/qtgui/uiprefs.ui:
	one button for choosing native editors

2009-01-23 10:38 +0000  dockes    (167a153bcf3c)

	* src/kde/kioslave/recoll/data/searchable.html:
	simplified javascrip: no ie here!

2009-01-23 09:41 +0000  dockes    (b71166d61782)

	* src/qtgui/rclmain_w.cpp:
	toLocal8Bit->local8bit

2009-01-23 09:30 +0000  dockes    (c3565b4a7244)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/main.cpp,
	src/qtgui/rclmain_w.cpp, src/qtgui/recoll.h, src/qtgui/uiprefs.ui,
	src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h:
	use normal text/html ext app for viewing help

2009-01-23 09:27 +0000  dockes    (c025fa3fe99d)

	* src/utils/execmd.cpp, src/utils/execmd.h:
	accept additional path argument to execmd::which

2009-01-22 14:25 +0000  dockes    (967d5e013a33)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h:
	allow toggle show text/fields in preview

2009-01-21 16:42 +0000  dockes    (f950b7d75e66)

	* src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h,
	src/qtgui/reslist.cpp, src/qtgui/reslist.h:
	added saveToFile menu entry to reslist

2009-01-21 13:55 +0000  dockes    (033fe406a666)

	* src/utils/pxattr.cpp, src/utils/pxattr.h: new file.
	* src/common/autoconfig.h.in, src/common/rclconfig.cpp,
	src/common/rclconfig.h, src/configure, src/configure.ac,
	src/internfile/internfile.cpp, src/internfile/mh_exec.h,
	src/internfile/mh_html.cpp, src/internfile/mh_mail.cpp,
	src/internfile/mh_mbox.cpp, src/internfile/mh_text.cpp,
	src/internfile/mh_unknown.h, src/internfile/mimehandler.cpp,
	src/internfile/mimehandler.h, src/lib/Makefile, src/lib/mkMake,
	src/sampleconf/fields, src/utils/pxattr.cpp, src/utils/pxattr.h:
	added optional extended file attributes support

2009-01-21 11:11 +0000  dockes    (f269f00857ec)

	* src/sampleconf/mimeconf:
	comments

2009-01-21 11:11 +0000  dockes    (fda5a0a6fccb)

	* src/filters/rcldoc:
	try to use wvWare if present and antiword fails

2009-01-21 10:49 +0000  dockes    (394e160f7032)

	* src/utils/readfile.cpp:
	initialize the error buffer for gnu strerror_r

2009-01-21 10:24 +0000  dockes    (7580c4ed79ce)

	* src/utils/readfile.cpp:
	fix errno printing

2009-01-21 10:17 +0000  dockes    (f1dca213efee)

	* src/rcldb/rcldb.cpp:
	fixed typo that would prevent stopfile use

2009-01-17 14:57 +0000  dockes    (90f03bbd715c)

	* src/doc/man/recoll.conf.5, src/doc/user/usermanual.sgml:
	added compressedfilemaxkbs

2009-01-17 14:56 +0000  dockes    (78d1dd932d5b)

	* src/internfile/internfile.cpp, src/qtgui/confgui/confguiindex.cpp,
	src/sampleconf/recoll.conf.in:
	added compressedfilemaxkbs

2009-01-16 17:40 +0000  dockes    (fcc2539b18b4)

	* src/kde/kioslave/recoll/data/searchable.html:
	

2009-01-16 16:42 +0000  dockes    (11cc037db8a9)

	* src/kde/kioslave/recoll/00README.txt:
	

2009-01-16 11:32 +0000  dockes    (baaf38fdbca9)

	* src/kde/kioslave/recoll/00README.txt,
	src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/data/help.html,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/notes.txt:
	fixed docs + removed dead code

2009-01-15 17:07 +0000  dockes    (144b35bd64c0)

	* src/filters/rcluncomp, src/internfile/internfile.cpp:
	fixed handling of decompression errors, which was wrong but not
	catastrophly so in most cases

2009-01-15 17:05 +0000  dockes    (4b10b961d158)

	* src/qtgui/reslist.cpp:
	disable printing to tmp file

2009-01-15 14:37 +0000  dockes    (9392e278bb0a)

	* src/query/docseq.h, src/query/filtseq.cpp, src/query/filtseq.h,
	src/query/sortseq.cpp, src/query/sortseq.h:
	refactor operations delegated to subsequence by sortseq and filtspec
	into superclass

2009-01-15 09:47 +0000  dockes    (f02a34f835b4)

	* src/rcldb/rcldb.cpp:
	removed unused variable

2009-01-15 09:45 +0000  dockes    (2440f3259cd0)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/reslist.cpp,
	src/qtgui/uiprefs_w.cpp:
	ensure reslist parformat is refreshed after edit (1.11 bug)

2009-01-14 07:52 +0000  dockes    (b3c89a56c9a1)

	* src/qtgui/advsearch.ui, src/qtgui/rclmain_w.cpp,
	src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h,
	src/qtgui/viewaction.ui, src/qtgui/viewaction_w.cpp,
	src/qtgui/viewaction_w.h:
	arrange so that the select action dialog is preselected on the right
	mime type after missing action

2009-01-13 16:03 +0000  dockes    (2d8517785a8e)

	* src/common/textsplit.cpp:
	add _ to wordsep/spanglue chars. Add non-ascii test to isCJK for
	optimization

2009-01-13 16:02 +0000  dockes    (cbfb1f939c9d)

	* src/common/uproplist.h:
	small fix : remove diaeresis from seps + comments

2009-01-13 08:56 +0000  dockes    (ee8989c89330)

	* src/doc/user/usermanual.sgml:
	

2009-01-13 08:49 +0000  dockes    (93e74953ed0b)

	* src/doc/user/usermanual.sgml:
	update version

2009-01-13 08:02 +0000  dockes    (051bf6d49898)

	* src/rcldb/rcldb.h, src/rcldb/rcldb_p.h, src/rcldb/rclquery.h:
	minor visibility cleanup

2009-01-13 08:01 +0000  dockes    (c550fb351f5f)

	* src/qtgui/ssearchb.ui:
	fix obsolete tooltip message

2009-01-12 18:31 +0000  dockes    (3cefac6eb52d)

	* src/doc/user/usermanual.sgml:
	doc: better adv search explanation + duplicates collapsing

2009-01-12 17:50 +0000  dockes    (f8cb21911962)

	* src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h:
	simplified dialog structure, apparently allowed to get rid of size
	hacks

2009-01-12 16:42 +0000  dockes    (48ca278dcd42)

	* src/qtgui/advsearch.ui:
	suppressed unused vbox

2009-01-12 15:55 +0000  dockes    (b5486bd5b85d)

	* src/qtgui/advsearch.ui, src/qtgui/searchclause_w.cpp,
	src/qtgui/searchclause_w.h:
	suppressed unused layout in searchClause

2009-01-09 14:56 +0000  dockes    (073523a33ffe)

	* src/internfile/mh_exec.cpp, src/internfile/mh_html.cpp,
	src/internfile/mh_mail.cpp, src/internfile/mh_text.cpp,
	src/qtgui/guiutils.cpp, src/qtgui/guiutils.h,
	src/qtgui/rclmain_w.cpp, src/qtgui/uiprefs.ui,
	src/qtgui/uiprefs_w.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h,
	src/rcldb/rcldoc.cpp, src/rcldb/rcldoc.h, src/rcldb/rclquery.cpp,
	src/rcldb/rclquery.h:
	compute md5 checksums for all docs and optionally collapse
	duplicates in results

2009-01-09 12:23 +0000  dockes    (f89119e58f79)

	* src/qtgui/reslist.cpp:
	add space/backspace as pager keys for reslist

2009-01-09 12:23 +0000  dockes    (36eb326513d5)

	* src/utils/Makefile, src/utils/md5.cpp, src/utils/md5.h,
	src/utils/readfile.cpp, src/utils/readfile.h:
	implement md5 convenience file and string wrappers. Modify readfile
	to support this

2009-01-09 07:27 +0000  dockes    (de3507d26de4)

	* src/rcldb/pathhash.cpp, src/rcldb/pathhash.h: deleted file.
	* src/lib/Makefile, src/lib/mkMake, src/rcldb/pathhash.cpp,
	src/rcldb/pathhash.h, src/rcldb/rcldb.cpp:
	got rid of pathhash in rcldb, not used since 11.0

2009-01-08 09:55 +0000  dockes    (1fc0cdb06859)

	* src/excludefile:
	adapt to svn

2009-01-08 09:50 +0000  dockes    (867f1a9f6b02)

	* src/makesrcdist.sh:
	adapt distrib script to svn

2009-01-08 09:40 +0000  dockes    (33a7fbc42386 [RECOLL_1_12_1exp5])

	* src/VERSION:
	

2009-01-06 18:48 +0000  dockes    (2e111dad7cba)

	* src/doc/user/bldloop: new file.
	* packaging/FreeBSD/recoll/Makefile,
	packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg-
	plist, src/doc/user/bldloop, tests/koi8r/koi8r.sh, tests/shared.sh:
	*** empty log message ***

2009-01-06 18:40 +0000  dockes    (c82fbe0ee8fc)

	* packaging/debian/changelog, packaging/rpm/recoll.spec,
	packaging/rpm/recollfedora.spec, packaging/rpm/recollmdk.spec,
	src/ChangeLog, website/devel.html, website/download.html:
	*** empty log message ***

2009-01-06 18:40 +0000  dockes    (7ebc18a8b4d7)

	* unac/builder.in, unac/unac.c, unac/unac.h:
	new unac approach for japanese: dont decompose at all

2009-01-06 17:40 +0000  dockes    (a0b7ed1f2bda)

	* website/xapUpg100.html: new file.
	* website/BUGS.html, website/BUGS.txt, website/CHANGES.html,
	website/doc.html, website/download.html, website/index.html.en,
	website/index.html.fr, website/xapUpg100.html:
	*** empty log message ***

2009-01-06 17:30 +0000  dockes    (636e0f9f2a77)

	* website/howtos/index.html,
	website/howtos/prevent_indexing_a_directory/index.html,
	website/howtos/use_multiple_indexes/index.html,
	website/pics/piclist.txt, website/pics/recoll-HTML_search_results-
	thumb.png, website/pics/recoll-HTML_search_results.html,
	website/pics/recoll-HTML_search_results.png, website/pics/recoll-
	HTML_search_results.txt, website/pics/recoll0-thumb.png,
	website/pics/recoll0.html, website/pics/recoll0.png,
	website/pics/recoll0.txt, website/pics/recoll1-thumb.png,
	website/pics/recoll1.html, website/pics/recoll1.png,
	website/pics/recoll1.txt, website/pics/recoll2-thumb.png,
	website/pics/recoll2.html, website/pics/recoll2.png,
	website/pics/recoll2.txt, website/pics/recoll3-thumb.png,
	website/pics/recoll3.html, website/pics/recoll3.png,
	website/pics/recoll3.txt, website/pics/recoll4-thumb.png,
	website/pics/recoll4.html, website/pics/recoll4.png,
	website/pics/recoll4.txt, website/pics/recoll5-thumb.png,
	website/pics/recoll5.html, website/pics/recoll5.png,
	website/pics/recoll5.txt, website/pics/recoll_chinese-thumb.png,
	website/pics/recoll_chinese.html, website/pics/recoll_chinese.png,
	website/pics/recoll_chinese.txt: new file.
	* website/howtos/index.html,
	website/howtos/prevent_indexing_a_directory/index.html,
	website/howtos/use_multiple_indexes/index.html,
	website/pics/piclist.txt, website/pics/recoll-HTML_search_results-
	thumb.png, website/pics/recoll-HTML_search_results.html,
	website/pics/recoll-HTML_search_results.png, website/pics/recoll-
	HTML_search_results.txt, website/pics/recoll0-thumb.png,
	website/pics/recoll0.html, website/pics/recoll0.png,
	website/pics/recoll0.txt, website/pics/recoll1-thumb.png,
	website/pics/recoll1.html, website/pics/recoll1.png,
	website/pics/recoll1.txt, website/pics/recoll2-thumb.png,
	website/pics/recoll2.html, website/pics/recoll2.png,
	website/pics/recoll2.txt, website/pics/recoll3-thumb.png,
	website/pics/recoll3.html, website/pics/recoll3.png,
	website/pics/recoll3.txt, website/pics/recoll4-thumb.png,
	website/pics/recoll4.html, website/pics/recoll4.png,
	website/pics/recoll4.txt, website/pics/recoll5-thumb.png,
	website/pics/recoll5.html, website/pics/recoll5.png,
	website/pics/recoll5.txt, website/pics/recoll_chinese-thumb.png,
	website/pics/recoll_chinese.html, website/pics/recoll_chinese.png,
	website/pics/recoll_chinese.txt:
	*** empty log message ***

2008-12-21 13:17 +0000  dockes    (74da01dd27c2)

	* src/unac/unac.c, src/unac/unac.h:
	new unac approach for japanese: dont decompose at all

2008-12-21 13:05 +0000  dockes    (273dad0916bb)

	* unac/unac_version.h: new file.
	* unac/unac_version.h:
	*** empty log message ***

2008-12-19 09:55 +0000  dockes    (1a2dd90e07b4)

	* src/rcldb/rcldb.h, src/rcldb/rclquery.cpp, src/rcldb/searchdata.cpp:
	getMainConfig not actually needed and possibly harmful

2008-12-19 09:44 +0000  dockes    (3a16629b24f5)

	* src/rcldb/searchdata.cpp, src/unac/unac.c, src/unac/unac.h:
	dont unaccent japanese + fix bug in unac/split ordering in
	searchdata

2008-12-19 08:39 +0000  dockes    (b895714a6500)

	* src/python/recoll/setup.py:
	pyrecoll: port to linux, update

2008-12-18 14:11 +0000  dockes    (33bffc499e78)

	* src/query/xadump.cpp:
	diag: prevent char combination by inserting spaces

2008-12-18 11:58 +0000  dockes    (a3863a0c1f62)

	* unac/builder.in, unac/unac.c:
	no going out of the basic plane!

2008-12-18 11:12 +0000  dockes    (ac1315d2a94f)

	* unac/unac.c:
	added recoll memory allocation checks

2008-12-18 11:05 +0000  dockes    (cfb4210ce7d5)

	* unac/CaseFolding-5.1.0.txt, unac/UnicodeData-5.1.0.txt: new file.
	* unac/CaseFolding-5.1.0.txt, unac/UnicodeData-5.1.0.txt:
	*** empty log message ***

2008-12-18 11:04 +0000  dockes    (cc609462a402)

	* unac/builder.in, unac/configure, unac/configure.ac, unac/unac.c,
	unac/unac.h:
	use unicode 5.1.0 + dont unaccent katakana/hiragana. Main change in
	unicode is that letters ae and o with stroke dont decompose anymore
	into a+e and o+e we may actually want to restore this if it proves a
	problem

2008-12-17 16:20 +0000  dockes    (65fd4fda84d3)

	* src/rcldb/rcldb.cpp:
	fix to previous abstract fix

2008-12-17 15:12 +0000  dockes    (9e9e84a23da6)

	* src/qtgui/reslist.cpp:
	use local hiliter

2008-12-17 14:26 +0000  dockes    (ada853f1e3b8)

	* src/common/Makefile, src/rcldb/rcldb.cpp:
	fix abstract generation when the match term is a multiword span
	(esp. for japanese)

2008-12-17 14:26 +0000  dockes    (9705bf172f13)

	* src/rcldb/searchdata.cpp:
	comment

2008-12-17 08:01 +0000  dockes    (42bc5b3b5abf)

	* src/index/indexer.cpp, src/index/indexer.h,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/python/recoll/pyrecoll.cpp, src/qtgui/main.cpp,
	src/query/recollq.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	simplified db open by getting rid of the illusion that we could have
	several writeable dbs per config

2008-12-16 17:43 +0000  dockes    (1d040e634db3 [RECOLL_1_12_1exp4])

	* src/README, src/VERSION,
	src/kde/kioslave/recoll/data/searchable.html,
	src/kde/kioslave/recoll/data/welcome.html:
	*** empty log message ***

2008-12-16 17:30 +0000  dockes    (18f65ef55dd6)

	* src/kde/kioslave/recoll/data/searchable.html:
	*** empty log message ***

2008-12-16 17:28 +0000  dockes    (e991bdd3d8c7)

	* src/kde/kioslave/recoll/data/searchable.html: new file.
	* src/kde/kioslave/recoll/data/searchable.html,
	src/kde/kioslave/recoll/data/welcome.html,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h:
	updated kioslave for small changes in reslistpager after main i/f
	integration. + javascript to search page

2008-12-16 14:20 +0000  dockes    (7bc14752b5f3)

	* src/qtgui/preview_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h,
	src/query/plaintorich.h, src/query/reslistpager.cpp,
	src/query/reslistpager.h, src/utils/debuglog.cpp,
	src/utils/debuglog.h:
	converted qt reslist to reslistpager

2008-12-16 08:54 +0000  dockes    (c702627139c8)

	* src/query/wasastringtoquery.cpp:
	OR chain longer than 2 would swallow preceding AND terms

2008-12-15 15:04 +0000  dockes    (62e1b7eaa7b9)

	* src/kde/kioslave/recoll/htmlif.cpp, src/query/reslistpager.cpp:
	kio: use right ipath for preview

2008-12-15 14:39 +0000  dockes    (30b71a18e961)

	* src/query/xadump.cpp, src/rcldb/searchdata.cpp:
	make gcc happy

2008-12-15 13:51 +0000  dockes    (f93dda12024f)

	* website/howtos/template.html:
	*** empty log message ***

2008-12-15 11:20 +0000  dockes    (4a74871e9823)

	* website/howtos/buildindex.sh, website/howtos/fragend.html,
	website/howtos/fraghead.html, website/howtos/newdir.sh,
	website/howtos/template.html: new file.
	* website/BUGS.html, website/BUGS.txt, website/CHANGES.html,
	website/copydocs, website/download.html,
	website/howtos/buildindex.sh, website/howtos/fragend.html,
	website/howtos/fraghead.html, website/howtos/newdir.sh,
	website/howtos/template.html, website/index.html.en,
	website/index.html.fr, website/pics/index.html:
	*** empty log message ***

2008-12-15 09:33 +0000  dockes    (afc0ef4911b2)

	* src/doc/user/usermanual.sgml:
	more search tips

2008-12-15 09:24 +0000  dockes    (59cd1bdd4d3f)

	* src/rcldb/searchdata.cpp:
	reorganize code + add boost to phrase element to match boost of
	original user terms

2008-12-12 11:53 +0000  dockes    (4121cbc09d70)

	* src/common/textsplit.cpp, src/common/textsplit.h,
	src/rcldb/rcldb.cpp:
	dont insert space in cjk abstracts

2008-12-12 11:02 +0000  dockes    (37fd1c31af49)

	* src/rcldb/rcldb.cpp:
	message level

2008-12-12 11:01 +0000  dockes    (d2a8c016d05c)

	* src/qtgui/reslist.cpp:
	add %i for displaying ipath

2008-12-12 11:00 +0000  dockes    (151d6a590152)

	* src/qtgui/main.cpp:
	add all extra cmd line args to the question

2008-12-08 17:43 +0000  dockes    (90b62656b326)

	* src/kde/kioslave/recoll/htmlif.cpp:
	set name as preview title

2008-12-08 17:42 +0000  dockes    (5717c313d23a)

	* src/kde/kioslave/recoll/dirif.cpp:
	removed a few traces

2008-12-08 14:34 +0000  dockes    (de392f657f81)

	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/data/help.html,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h,
	src/kde/kioslave/recoll/notes.txt:
	previews

2008-12-08 11:22 +0000  dockes    (877b674c328c)

	* src/utils/Makefile, src/utils/readfile.cpp:
	file_to_string: stat+reserve makes faster

2008-12-05 13:15 +0000  dockes    (19ef9198e3d5)

	* src/VERSION:
	branched maintenance for 1.11 kio devs on main now 1.12

2008-12-05 11:09 +0000  dockes    (b27d4070bbf8)

	* src/common/textsplit.cpp, src/common/textsplit.h,
	src/common/uproplist.h, src/kde/kioslave/recoll/kio_recoll.cpp,
	src/qtgui/ssearch_w.cpp, src/query/recollq.cpp,
	src/query/wasatorcl.cpp, src/rcldb/searchdata.cpp:
	take care of splitting user string with respect to unicode white
	space, not only ascii

2008-12-05 07:38 +0000  dockes    (d102970d3aee)

	* src/utils/smallut.h:
	comment

2008-12-04 12:41 +0000  dockes    (a3f25963b2da [RECOLL_1_11_1exp3])

	* src/kde/kioslave/recoll/recollf.protocol: new file.
	* src/kde/kioslave/recoll/recollf.protocol:
	*** empty log message ***

2008-12-04 12:23 +0000  dockes    (adffbb42e449)

	* src/kde/kioslave/recoll/dirif.cpp:
	kde 4.0 compile

2008-12-04 11:50 +0000  dockes    (fef6cc6c4c97)

	* src/VERSION:
	*** empty log message ***

2008-12-04 11:49 +0000  dockes    (d1b1a426ddfa)

	* src/kde/kioslave/recoll/data/help.html,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h,
	src/kde/kioslave/recoll/notes.txt, src/query/reslistpager.cpp,
	src/query/reslistpager.h, src/rcldb/rcldb.cpp, src/utils/pathut.h:
	kio_recoll: html/dir switching

2008-12-03 17:04 +0000  dockes    (a762165399a2)

	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/data/help.html,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h,
	src/kde/kioslave/recoll/notes.txt:
	cleaned up virtual tree and url handling. Drag to desktop now works
	with appropriate name. recollf protocol

2008-12-03 10:02 +0000  dockes    (127dbb400363)

	* src/kde/kioslave/recoll/dirif.cpp:
	better stat

2008-12-02 13:41 +0000  dockes    (6e55b23fb64f)

	* src/kde/kioslave/recoll/dirif.cpp:
	*** empty log message ***

2008-12-02 13:38 +0000  dockes    (66b031be3559)

	* src/kde/kioslave/recoll/dirif.cpp:
	*** empty log message ***

2008-12-02 13:16 +0000  dockes    (619e41b1537b)

	* src/INSTALL, src/README, src/VERSION, src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-12-02 13:14 +0000  dockes    (fff18d4ea953)

	* src/kde/kioslave/recoll/00README.txt,
	src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/data/welcome.html,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/notes.txt, src/query/reslistpager.cpp:
	kio goes to testing

2008-12-01 18:42 +0000  dockes    (714fdf15621e)

	* src/kde/kioslave/recoll/data/help.html,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h:
	small cleanups and comments. Still some weirdness

2008-12-01 15:37 +0000  dockes    (8d9ea1f1c645)

	* src/kde/kioslave/recoll/cleancmakestuff.sh:
	*** empty log message ***

2008-12-01 15:36 +0000  dockes    (8504e2e278dd)

	* src/kde/kioslave/recoll/data/help.html: new file.
	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/cleancmakestuff.sh,
	src/kde/kioslave/recoll/data/help.html,
	src/kde/kioslave/recoll/data/welcome.html,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h,
	src/kde/kioslave/recoll/notes.txt:
	seems to work by re-rerunning search whenever it changes. Still had
	one crash, needs cleanup

2008-11-28 09:14 +0000  dockes    (ee6a7d32843e)

	* src/kde/kioslave/recoll/recollnolist.protocol: new file.
	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h,
	src/kde/kioslave/recoll/notes.txt,
	src/kde/kioslave/recoll/recoll.protocol,
	src/kde/kioslave/recoll/recollnolist.protocol:
	ensured compatibility with kde4.0

2008-11-27 17:48 +0000  dockes    (d461029ef29c)

	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h,
	src/kde/kioslave/recoll/notes.txt,
	src/kde/kioslave/recoll/recoll.protocol:
	bits of dual mode working

2008-11-27 14:05 +0000  dockes    (8cc177e8775a)

	* src/query/reslistpager.cpp:
	safety check

2008-11-27 13:35 +0000  dockes    (4d28c4942bc1)

	* src/sampleconf/mimeconf:
	*** empty log message ***

2008-11-27 09:49 +0000  dockes    (394d882caa0c)

	* src/sampleconf/mimeconf:
	remove obsolete [prefixes] section

2008-11-27 09:39 +0000  dockes    (0ec8260d8d7c)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-11-26 15:03 +0000  dockes    (b6a62dc24003)

	* src/kde/kioslave/recoll/cleancmakestuff.sh,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/notes.txt: new file.
	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/cleancmakestuff.sh,
	src/kde/kioslave/recoll/dirif.cpp,
	src/kde/kioslave/recoll/htmlif.cpp,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h,
	src/kde/kioslave/recoll/notes.txt,
	src/kde/kioslave/recoll/recoll.protocol:
	listdir doesnt work on kde 4.0 because on parent/child assumptions
	in kdirmodel have to check on kde 4.1

2008-11-24 17:42 +0000  dockes    (9333f13ac4c7)

	* src/VERSION:
	*** empty log message ***

2008-11-24 17:38 +0000  dockes    (a761936ec65e)

	* src/kde/kioslave/recoll/CMakeLists.txt:
	check for dlopen

2008-11-24 16:42 +0000  dockes    (0f7e0292212f)

	* src/kde/kioslave/recoll/CMakeLists.txt:
	have to cc the pic objects, cant use librcl

2008-11-24 15:47 +0000  dockes    (d06dd2891012)

	* src/Makefile.in, src/aspell/Makefile, src/common/Makefile,
	src/common/autoconfig.h.in, src/common/rclconfig.h, src/configure,
	src/configure.ac, src/index/Makefile, src/internfile/Makefile,
	src/lib/Makefile, src/lib/mkMake, src/mk/Darwin, src/mk/FreeBSD,
	src/mk/OpenBSD, src/mk/SunOS, src/mk/commondefs,
	src/qt4gui/recoll.pro.in, src/qtgui/recoll.pro.in,
	src/query/Makefile, src/unac/unac.c, src/utils/pathut.cpp:
	make it easier to maintain the kio cmake by moving as much stuff as
	possible to autoconfig.h, merging libmime and librcl etc.

2008-11-24 15:23 +0000  dockes    (7d9add059cc1)

	* src/qtgui/confgui/main.cpp, src/qtgui/guiutils.cpp,
	src/qtgui/main.cpp, src/qtgui/recoll.h:
	replace local variable recoll_datadir with access to config

2008-11-24 14:54 +0000  dockes    (7005bf515a0b)

	* src/unac/unac_version.h: new file.
	* src/unac/unac.c, src/unac/unac_version.h:
	*** empty log message ***

2008-11-21 16:43 +0000  dockes    (5c4559fa9d49)

	* src/makesrcdist.sh:
	*** empty log message ***

2008-11-21 16:37 +0000  dockes    (e92347cad84d)

	* src/kde/kioslave/recoll/00README.txt, src/makesrcdist.sh:
	ccmake cleanup in kio_recoll

2008-11-21 16:02 +0000  dockes    (f691d6ad3333)

	* src/excludefile:
	*** empty log message ***

2008-11-20 18:00 +0000  dockes    (5063f4280d8d)

	* src/kde/kioslave/recoll/Makefile: deleted file.
	* src/kde/kioslave/recoll/Makefile:
	*** empty log message ***

2008-11-20 15:10 +0000  dockes    (dc45badd0c45)

	* src/VERSION:
	*** empty log message ***

2008-11-20 14:16 +0000  dockes    (c653773059df)

	* src/kde/kioslave/recoll/00README.txt:
	*** empty log message ***

2008-11-20 13:10 +0000  dockes    (8b5eea7103b5)

	* src/kde/kioslave/recoll/data/welcome.html: new file.
	* src/kde/kioslave/recoll/00README.txt,
	src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/data/welcome.html,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h, src/query/reslistpager.cpp,
	src/query/reslistpager.h:
	kioslave sort of works

2008-11-19 12:28 +0000  dockes    (93e6b483f5c4)

	* src/kde/kioslave/recoll/kio_recoll.cpp:
	*** empty log message ***

2008-11-19 12:19 +0000  dockes    (9b0d90b61574)

	* src/query/plaintorich.cpp, src/query/plaintorich.h,
	src/query/reslistpager.cpp, src/query/reslistpager.h: new file.
	* src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h: deleted file.
	* src/lib/Makefile, src/lib/mkMake, src/qt4gui/recoll.pro.in,
	src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h,
	src/qtgui/recoll.pro.in, src/query/plaintorich.cpp,
	src/query/plaintorich.h, src/query/reslistpager.cpp,
	src/query/reslistpager.h:
	moved plaintorich from qtgui/ to query/

2008-11-19 10:06 +0000  dockes    (350dd565c80d)

	* src/qtgui/reslist.cpp, src/utils/smallut.cpp, src/utils/smallut.h:
	moved code from qtgui to smallut

2008-11-18 13:51 +0000  dockes    (fae04b17c778)

	* src/utils/cancelcheck.h:
	comment

2008-11-18 13:25 +0000  dockes    (4d54c32dbee7)

	* src/index/csguess.cpp, src/index/mimetype.cpp,
	src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp,
	src/query/wasatorcl.cpp:
	add a few includes for new gcc version

2008-11-18 13:24 +0000  dockes    (9455c0affe0a)

	* src/utils/cancelcheck.h:
	comments

2008-11-18 10:23 +0000  dockes    (d09d14bf2e24)

	* src/utils/debuglog.h:
	*** empty log message ***

2008-11-17 14:51 +0000  dockes    (9d4e9515342e)

	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/Makefile.kde3: new file.
	* src/kde/kioslave/recoll/CMakeLists.txt,
	src/kde/kioslave/recoll/Makefile,
	src/kde/kioslave/recoll/Makefile.kde3,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h:
	1st kde test. cmake doesnt work need to use buildit script

2008-11-14 15:49 +0000  dockes    (13ca00d869a1)

	* src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.h:
	*** empty log message ***

2008-11-13 10:57 +0000  dockes    (5cd3ce5481df)

	* src/kde/kioslave/recoll/00README.txt,
	src/kde/kioslave/recoll/Makefile,
	src/kde/kioslave/recoll/kio_recoll.cpp,
	src/kde/kioslave/recoll/kio_recoll.la, src/query/docseqdb.cpp:
	got the kio_slave working again

2008-11-08 11:00 +0000  dockes    (81b9fe1d7644)

	* src/qtgui/reslist.cpp:
	Copy entries in the rght clck menu copy both to selection and
	clipboard

2008-10-18 07:04 +0000  dockes    (33b4eec42ac8)

	* website/BUGS.html: new file.
	* website/BUGS.html, website/download.html:
	*** empty log message ***

2008-10-18 06:51 +0000  dockes    (b885092a2488)

	* website/CHANGES.html: new file.
	* website/CHANGES.txt: deleted file.
	* website/BUGS.txt, website/CHANGES.html, website/CHANGES.txt,
	website/download.html, website/index.html.en, website/index.html.fr:
	*** empty log message ***

2008-10-15 08:30 +0000  dockes    (6657f5e0f698)

	* src/sampleconf/recoll.conf.in:
	add .git .hg .bzr to skipped

2008-10-14 07:50 +0000  dockes    (2321044edfb9 [RECOLL_1_11_0])

	* src/rcldb/searchdata.cpp, src/rcldb/searchdata.h,
	src/utils/refcntr.h:
	highlighting would not work with cat filt active because ClausSub
	did not implement getTerms

2008-10-14 06:07 +0000  dockes    (6ecc84bb82aa)

	* src/index/recollindex.cpp:
	print version in recollindex help

2008-10-13 11:46 +0000  dockes    (1cd1451bbb74)

	* src/excludefile, src/makesrcdist.sh:
	change in excludefile handling

2008-10-13 11:46 +0000  dockes    (609bbaa80120)

	* src/qtgui/ssearch_w.cpp, src/query/filtseq.cpp:
	warnings

2008-10-13 11:44 +0000  dockes    (809f8c3eb265)

	* src/qtgui/plaintorich.cpp:
	compil warn

2008-10-13 08:35 +0000  dockes    (a5d743b90fe8)

	* src/INSTALL, src/README:
	*** empty log message ***

2008-10-13 08:23 +0000  dockes    (5874f0e6fc82)

	* src/query/recollq.cpp:
	dont change recollq output, used for tests!

2008-10-13 07:57 +0000  dockes    (bf5637bbe652)

	* src/doc/user/usermanual.sgml, src/qtgui/i18n/recoll_de.ts,
	src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_it.ts,
	src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_tr.ts,
	src/qtgui/i18n/recoll_uk.ts, src/qtgui/i18n/recoll_xx.ts,
	src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp:
	messages and manual

2008-10-10 08:19 +0000  dockes    (d5a5fb9959b7)

	* src/doc/user/usermanual.sgml:
	added python api doc

2008-10-10 08:18 +0000  dockes    (4771280faa9c)

	* src/python/recoll/pyrecoll.cpp, src/python/samples/rclmbox.py,
	src/python/samples/recollqsd.py:
	fix executesd

2008-10-10 08:05 +0000  dockes    (f613511f9e1a)

	* src/python/recoll/pyrecoll.cpp:
	add delete purge

2008-10-10 08:04 +0000  dockes    (2547574a0242)

	* src/internfile/internfile.cpp:
	log levels

2008-10-09 09:36 +0000  dockes    (4fb973a50769)

	* src/python/recoll/pyrecoll.cpp:
	stemming went from query to searchdata

2008-10-09 09:21 +0000  dockes    (e112c834fca2)

	* src/filters/rclflac, src/filters/rclid3, src/sampleconf/mimeconf:
	improved mp3/flac filter. use pstotext directly

2008-10-09 09:19 +0000  dockes    (cf2e0559c3d9)

	* src/internfile/mh_exec.cpp, src/internfile/mimehandler.cpp:
	need to transcode text to utf-8

2008-10-09 09:19 +0000  dockes    (d250c2a0a26f)

	* src/utils/transcode.h:
	comments

2008-10-09 06:41 +0000  dockes    (721f4b3d08f4)

	* src/filters/rclimg:
	*** empty log message ***

2008-10-09 06:38 +0000  dockes    (e9d7fde008f9)

	* src/filters/rclimg:
	*** empty log message ***

2008-10-09 06:31 +0000  dockes    (4b76370655c3)

	* src/filters/rclimg:
	conform to filter error usual protocol

2008-10-08 16:15 +0000  dockes    (d60a26ce4397)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/filters/rcldvi, src/index/indexer.cpp, src/index/indexer.h,
	src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp,
	src/qtgui/rclmain_w.h, src/utils/smallut.cpp, src/utils/smallut.h:
	added menu to display missing helpers

2008-10-08 16:12 +0000  dockes    (30da9114943c)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-10-08 08:27 +0000  dockes    (8a78ee8cc158)

	* src/filters/rclabw, src/filters/rcldjvu, src/filters/rclid3,
	src/filters/rclkwd, src/filters/rclogg, src/filters/rclopxml,
	src/filters/rclppt, src/filters/rclsoff, src/filters/rclsvg,
	src/filters/rclxls, src/sampleconf/fields, src/sampleconf/mimeconf:
	improved rclid3 and rclogg

2008-10-07 16:19 +0000  dockes    (c922f7984106)

	* src/qtgui/preview_w.cpp:
	message

2008-10-07 08:07 +0000  dockes    (7e7e59b8a48f)

	* src/doc/user/usermanual.sgml:
	query language precisions

2008-10-07 06:52 +0000  dockes    (0b46df2d0a1d)

	* src/query/wasatorcl.cpp:
	*** empty log message ***

2008-10-07 06:44 +0000  dockes    (a6e8f2583e65)

	* src/ChangeLog, src/common/rclconfig.cpp,
	src/python/recoll/pyrecoll.cpp, src/rcldb/rcldb.cpp,
	src/rcldb/rclquery.cpp, src/sampleconf/fields:
	let rclconfig take care of field name lowercasing

2008-10-06 06:22 +0000  dockes    (26eae5316b88)

	* src/internfile/mh_exec.cpp, src/internfile/mh_exec.h,
	src/internfile/mimehandler.cpp, src/utils/execmd.cpp:
	Disable filters with missing helpers for the whole indexing pass

2008-10-04 14:26 +0000  dockes    (556c7fa5998c)

	* src/index/indexer.cpp, src/internfile/Filter.h,
	src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/internfile/mh_exec.cpp, src/internfile/mh_exec.h,
	src/internfile/mh_html.h, src/internfile/mh_mail.cpp,
	src/internfile/mh_mail.h, src/internfile/mh_mbox.cpp,
	src/internfile/mh_mbox.h, src/internfile/mh_text.h,
	src/internfile/mh_unknown.h, src/internfile/mimehandler.cpp,
	src/internfile/mimehandler.h:
	allow specifying format and charset for ext filters. Cache and reuse
	filters

2008-10-03 16:02 +0000  dockes    (6f5d875c2923)

	* src/utils/Makefile:
	*** empty log message ***

2008-10-03 16:02 +0000  dockes    (8d1e930cc9e2)

	* src/qtgui/preview_w.cpp:
	message

2008-10-03 08:19 +0000  dockes    (cf75be4a88cf)

	* src/common/rclconfig.cpp:
	*** empty log message ***

2008-10-03 08:09 +0000  dockes    (068bc565bf8b)

	* src/common/rclconfig.cpp, src/qtgui/guiutils.cpp,
	src/qtgui/guiutils.h, src/qtgui/plaintorich.cpp,
	src/qtgui/plaintorich.h, src/qtgui/preview_w.cpp,
	src/qtgui/preview_w.h, src/qtgui/uiprefs.ui,
	src/qtgui/uiprefs_w.cpp:
	add option to preview html instead of plain text

2008-10-03 06:23 +0000  dockes    (bd1a6a560e25)

	* src/internfile/internfile.cpp, src/internfile/internfile.h:
	arrange for setting aside an html version when working for preview

2008-10-03 06:17 +0000  dockes    (b10d8b6906a0)

	* src/internfile/mh_html.cpp, src/internfile/mh_html.h:
	save transcoded html for preview

2008-10-02 13:30 +0000  dockes    (f469cf040425)

	* src/internfile/mh_exec.cpp, src/internfile/mh_exec.h:
	comments

2008-09-30 12:38 +0000  dockes    (6ff81f690928)

	* src/index/recollindex.cpp, src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/idxthread.cpp, src/qtgui/idxthread.h, src/qtgui/main.cpp,
	src/qtgui/rclmain_w.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb_p.h:
	added index format version checking

2008-09-29 11:33 +0000  dockes    (2691a6abf645)

	* src/kde/kioslave/recoll/kio_recoll.cpp,
	src/python/recoll/pyrecoll.cpp, src/qtgui/rclmain_w.cpp,
	src/qtgui/reslist.cpp, src/query/docseq.h, src/query/docseqdb.cpp,
	src/query/docseqdb.h, src/query/filtseq.cpp, src/query/filtseq.h,
	src/query/recollq.cpp, src/query/sortseq.cpp, src/query/sortseq.h,
	src/rcldb/rclquery.cpp, src/rcldb/rclquery.h,
	src/rcldb/searchdata.cpp, src/rcldb/searchdata.h:
	move stemlang from RclQuery to SearchData. Allow DocSequences to do
	the sorting/filtering themselves

2008-09-29 08:59 +0000  dockes    (00bc43d91e91)

	* src/kde/kioslave/recoll/kio_recoll.cpp,
	src/python/recoll/pyrecoll.cpp, src/qtgui/reslist.cpp,
	src/query/docseq.cpp, src/query/docseq.h, src/query/docseqdb.cpp,
	src/query/docseqdb.h, src/query/docseqhist.cpp,
	src/query/docseqhist.h, src/query/filtseq.cpp, src/query/filtseq.h,
	src/query/recollq.cpp, src/query/sortseq.cpp, src/query/sortseq.h,
	src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/rclquery.cpp,
	src/rcldb/rclquery.h:
	doc.pc now only place where relevancy is stored

2008-09-29 07:13 +0000  dockes    (da809a196cc5)

	* src/qtgui/reslist.h:
	comments

2008-09-29 06:58 +0000  dockes    (dccf6cb38207)

	* src/python/recoll/pyrecoll.cpp, src/query/recollq.cpp,
	src/rcldb/rclquery.cpp, src/rcldb/rclquery.h,
	src/rcldb/searchdata.cpp, src/rcldb/searchdata.h:
	move sort params from searchdata to rclquery

2008-09-28 14:20 +0000  dockes    (0ce1cca8cac2)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/rclmain.ui,
	src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h,
	src/qtgui/reslist.cpp, src/qtgui/reslist.h, src/qtgui/sort_w.cpp,
	src/query/filtseq.h, src/query/sortseq.cpp, src/query/sortseq.h,
	src/sampleconf/mimeconf:
	1st impl of catg filtering in reslist

2008-09-28 07:40 +0000  dockes    (5e29feefc554)

	* src/query/filtseq.cpp, src/query/filtseq.h: new file.
	* src/lib/Makefile, src/lib/mkMake, src/qtgui/rclmain_w.cpp,
	src/qtgui/rclmain_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h,
	src/query/docseq.h, src/query/docseqdb.cpp, src/query/docseqdb.h,
	src/query/filtseq.cpp, src/query/filtseq.h:
	rearranged some reslist/rclmain functions + add but not use filtseq
	code

2008-09-25 09:08 +0000  dockes    (8588b8cc05d1)

	* src/python/samples/rcldlkp.py, src/python/samples/rclmbox.py:
	*** empty log message ***

2008-09-25 09:07 +0000  dockes    (40e028763fab)

	* src/python/xesam/xesam-recoll-service:
	arret apres hackfest

2008-09-25 06:17 +0000  dockes    (811009efeb96)

	* src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_it.ts,
	src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_tr.ts,
	src/qtgui/i18n/recoll_uk.ts, src/qtgui/i18n/recoll_xx.ts:
	*** empty log message ***

2008-09-25 06:14 +0000  dockes    (ce29702ab7cc)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts:
	*** empty log message ***

2008-09-25 06:02 +0000  dockes    (a065c833e601)

	* src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts:
	new russian/ukrainian translations

2008-09-25 06:00 +0000  dockes    (ba80af83d32f)

	* src/qtgui/advsearch_w.cpp, src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_tr.ts, src/qtgui/i18n/recoll_uk.ts,
	src/qtgui/i18n/recoll_xx.ts, src/qtgui/rclmain_w.cpp,
	src/qtgui/reslist.cpp, src/qtgui/uiprefs.ui:
	fixed typos

2008-09-24 06:50 +0000  dockes    (695914bd6d5d)

	* src/kde/recoll_applet/0README.Recoll:
	*** empty log message ***

2008-09-24 06:44 +0000  dockes    (48bbf0a115cc)

	* src/query/recollq.cpp:
	command line args must be processed as local 8 bit

2008-09-24 06:34 +0000  dockes    (e90ac2ed62fe)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-09-24 05:35 +0000  dockes    (36e2522b06b2)

	* src/qtgui/main.cpp:
	command line args must be processed as local 8 bit

2008-09-24 05:31 +0000  dockes    (9b420f1d25f8)

	* src/qtgui/main.cpp:
	command line args must be processed as local 8 bit

2008-09-23 14:32 +0000  dockes    (cd440e5917d3)

	* src/configure, src/configure.ac:
	use $QMAKE not qmake when checking version

2008-09-16 10:19 +0000  dockes    (2bc72ad13a9b)

	* src/python/recoll/pyrecoll.cpp:
	fields, indexing i/f

2008-09-16 10:13 +0000  dockes    (ff10e8072c66)

	* src/qtgui/rclmain_w.cpp:
	have to setkeydir before calling internfile when opening

2008-09-16 08:18 +0000  dockes    (c78945994f7c)

	* src/python/samples/recollqsd.py: new file.
	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/internfile/internfile.cpp, src/python/recoll/pyrecoll.cpp,
	src/python/recoll/setup.py, src/python/samples/recollqsd.py,
	src/python/xesam/xesam-recoll-service, src/query/recollq.cpp,
	src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/rcldb_p.h,
	src/rcldb/rcldoc.cpp, src/rcldb/rcldoc.h, src/rcldb/rclquery.cpp,
	src/rcldb/rclquery.h, src/rcldb/searchdata.cpp,
	src/rcldb/searchdata.h, src/sampleconf/fields:
	general field name handling cleanup + sort facility in rclquery

2008-09-16 08:13 +0000  dockes    (bd4c0f6fd812)

	* src/internfile/mh_mail.cpp:
	emit field for recipients

2008-09-15 08:03 +0000  dockes    (11ba5592559e)

	* src/sampleconf/fields, src/sampleconf/mimeconf,
	src/sampleconf/mimemap, src/sampleconf/mimeview:
	added rcltext/python/purple

2008-09-15 08:02 +0000  dockes    (8af411ff9bf6)

	* src/filters/rclpurple: new file.
	* src/filters/rclpurple, src/qtgui/mtpics/README,
	src/utils/base64.cpp, src/utils/smallut.cpp, src/utils/smallut.h,
	src/utils/transcode.cpp:
	*** empty log message ***

2008-09-15 07:55 +0000  dockes    (49401228a5ef)

	* src/filters/rclpython, src/qtgui/mtpics/pidgin.png,
	src/qtgui/mtpics/text-x-python.png: new file.
	* src/filters/rclpython, src/qtgui/mtpics/pidgin.png,
	src/qtgui/mtpics/text-x-python.png:
	*** empty log message ***

2008-09-13 12:56 +0000  dockes    (299644545ca0)

	* src/python/xesam/xesam-recoll-service: new file.
	* src/python/xesam/xesam-recoll-service:
	*** empty log message ***

2008-09-12 11:35 +0000  dockes    (5c85f26d124d)

	* src/sampleconf/mimeconf:
	index c code with the new rcltext generic filter

2008-09-12 11:30 +0000  dockes    (b8277032f494)

	* src/filters/rcltext: new file.
	* src/filters/rcltext:
	*** empty log message ***

2008-09-09 12:58 +0000  dockes    (a3afe9b35b57)

	* src/rcldb/rcldb.cpp:
	debug messages

2008-09-08 16:49 +0000  dockes    (a18ab0c682a4)

	* src/rcldb/rcldoc.cpp, src/sampleconf/fields: new file.
	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/internfile/internfile.cpp, src/lib/Makefile, src/lib/mkMake,
	src/python/recoll/pyrecoll.cpp, src/python/samples/recollq.py,
	src/qtgui/preview_w.cpp, src/qtgui/reslist.cpp, src/query/docseq.h,
	src/query/docseqdb.cpp, src/query/recollq.cpp, src/rcldb/rcldb.cpp,
	src/rcldb/rcldoc.cpp, src/rcldb/rcldoc.h, src/recollinstall.in,
	src/sampleconf/fields:
	foundation work for configurable stored/indexed fields

2008-09-08 15:47 +0000  dockes    (861e4211280b)

	* src/rcldb/searchdata.h:
	unused args warning

2008-09-08 15:47 +0000  dockes    (3f6468e20038)

	* src/utils/smallut.cpp:
	test driver

2008-09-08 15:46 +0000  dockes    (581ee503208b)

	* src/ChangeLog:
	*** empty log message ***

2008-09-07 07:22 +0000  dockes    (dfe4dd53d0b9)

	* src/Makefile.in, src/qt4gui/uifrom3:
	cleanup

2008-09-07 07:08 +0000  dockes    (95c2a94321a3)

	* src/Makefile.in:
	cleaning

2008-09-07 06:43 +0000  dockes    (6294638c2504)

	* src/Makefile.in, src/VERSION, src/mk/localdefs.in:
	improved cleaning

2008-09-05 11:45 +0000  dockes    (8532ebb84453)

	* src/rcldb/rclquery.cpp:
	gcc4.3

2008-09-05 10:36 +0000  dockes    (2ada099a7545)

	* src/internfile/internfile.cpp, src/internfile/internfile.h:
	strimline and restructure the doctree-exploring loop to make it
	close to understandable

2008-09-05 10:34 +0000  dockes    (404aa368d498)

	* src/rcldb/rcldb.cpp, src/rcldb/rcldb_p.h, src/rcldb/rclquery.cpp:
	add relevancyrating to the metadata when querying

2008-09-05 10:33 +0000  dockes    (bc0210deda18)

	* src/internfile/myhtmlparse.cpp:
	accept iso date format (2008-09-05T11:55:32)

2008-09-05 10:26 +0000  dockes    (4b17d6defb3c)

	* src/doc/man/recollindex.1:
	*** empty log message ***

2008-09-01 20:39 +0000  dockes    (39ff03712b54)

	* src/sampleconf/mimeconf, src/sampleconf/mimeview:
	openxml types

2008-09-01 17:31 +0000  dockes    (f0fde685acc8)

	* src/filters/rclopxml:
	sort of works

2008-09-01 17:21 +0000  dockes    (dfd3281994ff)

	* src/filters/rclopxml: new file.
	* src/filters/rclopxml:
	almost almost ok excepts outputs some formatting directives for ppt

2008-08-31 15:28 +0000  dockes    (7756d792699d [RECOLL_1_11_1exp1, RECOLL_1_11_1exp2, RECOLL_1_11_1exp])

	* packaging/debian/changelog, packaging/debian/control,
	packaging/debian/rules:
	*** empty log message ***

2008-08-30 12:21 +0000  dockes    (60b122f6f4d6)

	* src/rcldb/rcldb.cpp:
	typo in xfsn len fix

2008-08-30 07:38 +0000  dockes    (d516181ad7a0)

	* src/rcldb/rcldb.cpp:
	truncate simple file names at max term length

2008-08-30 07:34 +0000  dockes    (59326d99e18d)

	* src/utils/smallut.cpp:
	utf8truncate

2008-08-30 07:31 +0000  dockes    (8f5c5fba53d1)

	* src/utils/smallut.cpp, src/utils/smallut.h:
	utf8truncate

2008-08-29 14:12 +0000  dockes    (41c405565cd4)

	* tests/boolean/boolean.sh:
	or->OR

2008-08-29 13:05 +0000  dockes    (6454f838026e)

	* src/internfile/mh_mbox.cpp:
	accept weird date format in From lines used by (old?) tbird

2008-08-29 09:51 +0000  dockes    (b830b6d6b04d)

	* src/index/recollindex.cpp:
	be more informative when monitoring not configured

2008-08-28 15:44 +0000  dockes    (27a9bf47f895)

	* src/python/recoll/pyrecoll.cpp, src/python/samples/rcldlkp.py,
	src/python/samples/rclmbox.py, src/rcldb/rcldb.cpp,
	src/sampleconf/mimeview:
	*** empty log message ***

2008-08-28 15:43 +0000  dockes    (d28eac37bdd9)

	* src/query/wasatorcl.cpp, src/rcldb/searchdata.h:
	use a refcntr for the sub SearchData

2008-08-28 15:42 +0000  dockes    (417a8f1346df)

	* src/rcldb/searchdata.cpp:
	ensure that a negative clause is not first or only in list

2008-08-27 12:34 +0000  dockes    (658ca4b955c8)

	* src/python/recoll/pyrecoll.cpp:
	reorganize+traces

2008-08-27 12:12 +0000  dockes    (37791b8e66aa)

	* src/python/recoll/pyrecoll.cpp:
	doc

2008-08-26 13:50 +0000  dockes    (af43f86ffe99)

	* src/query/wasastringtoquery.cpp:
	make AND and OR case-sensitive

2008-08-26 13:47 +0000  dockes    (bda91f767e32)

	* src/query/wasastringtoquery.cpp, src/query/wasastringtoquery.h,
	src/query/wasatorcl.cpp:
	try to parse the whole of Xesam user language 0.95

2008-08-26 07:56 +0000  dockes    (6a17726c7e41)

	* src/python/recoll/pyrecoll.cpp, src/python/recoll/setup.py,
	src/python/samples/rcldlkp.py, src/python/samples/rclmbox.py,
	src/python/samples/recollq.py:
	renamed a few things

2008-08-26 07:38 +0000  dockes    (c97de92889e3)

	* src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	copy author back from data record to Doc

2008-08-26 07:36 +0000  dockes    (d6e27e630844)

	* src/python/samples/rcldlkp.py, src/python/samples/rclmbox.py,
	src/python/samples/recollq.py: new file.
	* src/python/recoll/pyrecoll.cpp, src/python/recoll/setup.py,
	src/python/samples/rcldlkp.py, src/python/samples/rclmbox.py,
	src/python/samples/recollq.py:
	*** empty log message ***

2008-08-26 07:33 +0000  dockes    (1d6816c32358)

	* src/rcldb/rcldoc.h:
	comments

2008-08-26 07:33 +0000  dockes    (4e86d4c4f3d9)

	* src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/qtgui/reslist.cpp:
	move ipath computations from reslist to internfile

2008-08-26 07:31 +0000  dockes    (b44f4950a084)

	* src/internfile/mh_exec.cpp, src/internfile/mh_exec.h:
	implement skip_to_document

2008-08-25 16:12 +0000  dockes    (936499917659)

	* src/sampleconf/mimeconf, src/sampleconf/mimemap,
	src/sampleconf/mimeview:
	opxml formats

2008-07-30 13:16 +0000  dockes    (0f1387a8a565)

	* src/rcldb/stemdb.cpp:
	fixed inocuous but nasty bad string value test

2008-07-29 08:25 +0000  dockes    (a7888d48c2a6)

	* src/rcldb/rcldb.h, src/rcldb/rcldoc.h:
	comments

2008-07-29 06:25 +0000  dockes    (28ebb7cac39d)

	* src/index/indexer.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h,
	src/rcldb/rcldb_p.h, src/rcldb/rcldoc.h:
	use explicit parent udi term instead of Qterm structure to express
	parent-child relationship

2008-07-28 12:24 +0000  dockes    (5cb926be362f)

	* src/index/indexer.cpp, src/lib/Makefile, src/lib/mkMake,
	src/query/docseqhist.cpp, src/rcldb/pathhash.cpp,
	src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/rcldoc.h,
	src/utils/Makefile, src/utils/fileudi.cpp:
	replaced path|ipath with unique doc id in rcldb i/f. Still depends
	on udi structure for parent/child

2008-07-28 10:20 +0000  dockes    (07bc933efb70)

	* src/utils/fileudi.cpp, src/utils/fileudi.h: new file.
	* src/utils/fileudi.cpp, src/utils/fileudi.h:
	*** empty log message ***

2008-07-28 08:42 +0000  dockes    (825cb66f8be3)

	* src/index/indexer.cpp, src/qtgui/uiprefs_w.cpp, src/rcldb/rcldb.cpp,
	src/rcldb/rcldb.h, src/rcldb/rcldb_p.h, src/rcldb/rcldoc.h,
	src/utils/base64.h:
	begin i/f cleanup: opacify doc uptodate sig (size+mtime)

2008-07-04 09:29 +0000  dockes    (6551cb55fa98 [RECOLL_1_10_3])

	* src/qtgui/plaintorich.cpp:
	turn dbg off

2008-07-01 13:00 +0000  dockes    (19e926f99256)

	* src/ChangeLog, src/VERSION:
	1.10.3: checkpoint for 1.10 branch maintenance

2008-07-01 12:11 +0000  dockes    (910f409cb0be)

	* src/bincimapmime/convert.h:
	suppressed a few wasteful string-cstr conversions

2008-07-01 11:57 +0000  dockes    (913963d84bc5)

	* src/bincimapmime/convert.cc, src/bincimapmime/convert.h,
	src/bincimapmime/mime-parseonlyheader.cc, src/bincimapmime/mime-
	printheader.cc:
	suppressed a few wasteful string-cstr conversions

2008-07-01 11:51 +0000  dockes    (54f3a868fb92)

	* src/bincimapmime/address.cc, src/internfile/mh_mail.cpp,
	src/query/wasastringtoquery.cpp, src/query/xadump.cpp,
	src/rcldb/rcldb.cpp, src/rcldb/rclquery.cpp, src/rcldb/searchdata.h,
	src/utils/conftree.cpp, src/utils/conftree.h, src/utils/idfile.cpp,
	src/utils/mimeparse.cpp, src/utils/pathut.cpp, src/utils/pathut.h,
	src/utils/smallut.cpp:
	suppressed a few wasteful string-cstr conversions

2008-07-01 10:29 +0000  dockes    (3e1aa9958af4)

	* src/index/mimetype.cpp, src/index/mimetype.h,
	src/internfile/mh_mail.cpp:
	mh_mail now uses mimetype() to try and better identify application
	/octet-stream

2008-07-01 08:31 +0000  dockes    (3665315a4fdd)

	* src/ChangeLog:
	*** empty log message ***

2008-07-01 08:31 +0000  dockes    (928e08cb2cc8)

	* src/rcldb/rclquery.cpp, src/rcldb/rclquery.h,
	src/rcldb/rclquery_p.h:
	small cleanups and comments

2008-07-01 08:28 +0000  dockes    (e5847d808877)

	* src/rcldb/rcldb.h:
	comments

2008-07-01 08:27 +0000  dockes    (97cd50050ecf)

	* src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h,
	src/qtgui/preview_w.cpp, src/qtgui/preview_w.h,
	src/qtgui/reslist.cpp:
	cleaned up plaintorich. Now a proper subclassable class + highlights
	multiple groups, not just the first

2008-07-01 08:27 +0000  dockes    (3ef1709e5955)

	* src/qtgui/confgui/confguiindex.cpp:
	typo

2008-07-01 08:26 +0000  dockes    (f6ddabbf59a2)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/utils/pathut.cpp,
	src/utils/pathut.h:
	moved printableUrl() to pathut

2008-07-01 08:24 +0000  dockes    (413a8a75c5af)

	* src/python/recoll/pyrecoll.cpp:
	added abstract i/f

2008-06-17 11:43 +0000  dockes    (009a912c3daf)

	* src/python/recoll/pyrecoll.cpp, src/python/recoll/setup.py:
	basic functionality ok, more funcs and options needed

2008-06-13 18:23 +0000  dockes    (58a4b54fa103)

	* src/utils/refcntr.h:
	separated rcldb and rclquery

2008-06-13 18:22 +0000  dockes    (a52ef2510839)

	* src/rcldb/rcldb_p.h, src/rcldb/rclquery.cpp, src/rcldb/rclquery.h,
	src/rcldb/rclquery_p.h: new file.
	* src/kde/kioslave/recoll/kio_recoll.cpp, src/lib/Makefile,
	src/lib/mkMake, src/python/recoll/pyrecoll.cpp,
	src/python/recoll/setup.py, src/qtgui/main.cpp,
	src/qtgui/rclmain_w.cpp, src/query/docseq.h, src/query/docseqdb.cpp,
	src/query/docseqdb.h, src/query/recollq.cpp, src/rcldb/rcldb.cpp,
	src/rcldb/rcldb.h, src/rcldb/rcldb_p.h, src/rcldb/rclquery.cpp,
	src/rcldb/rclquery.h, src/rcldb/rclquery_p.h,
	src/rcldb/searchdata.h, src/utils/pathut.cpp, src/utils/refcntr.h:
	separated rcldb and rclquery

2008-06-13 18:14 +0000  dockes    (e39af9faad92)

	* src/common/autoconfig.h.in, src/configure, src/configure.ac,
	src/mk/Darwin, src/mk/FreeBSD, src/mk/Linux, src/mk/OpenBSD:
	move few things from the mk/sys files to autoconf

2008-06-10 06:30 +0000  dockes    (822b88ae3d1f)

	* src/qtgui/mtpics/License_sidux.txt: new file.
	* src/qtgui/mtpics/License_sidux.txt:
	*** empty log message ***

2008-06-09 09:14 +0000  dockes    (c9953f1a54ee)

	* src/filters/rclsiduxman, src/qtgui/mtpics/sidux-book.png: new file.
	* src/filters/rclsiduxman, src/qtgui/mtpics/sidux-book.png,
	src/sampleconf/mimeconf, src/sampleconf/mimemap,
	src/sampleconf/mimeview:
	sidux manual support

2008-05-27 10:46 +0000  dockes    (2afb8b8ec073)

	* 1.10.2

2008-05-27 10:45 +0000  dockes    (62c7f8ba0eb8)

	* packaging/debian/changelog, packaging/rpm/recoll.spec,
	packaging/rpm/recollfedora.spec, packaging/rpm/recollmdk.spec,
	src/python/recoll/pyrecoll.cpp, src/python/recoll/setup.py,
	website/BUGS.txt, website/CHANGES.txt, website/download.html,
	website/features.html, website/index.html.en, website/index.html.fr,
	website/styles/style.css:
	1.10.2

2008-05-27 06:47 +0000  dockes    (b120e7a059cd [RECOLL_1_10_2])

	* src/README:
	*** empty log message ***

2008-05-27 06:46 +0000  dockes    (70d9bb153b58)

	* src/VERSION:
	1.10.2

2008-05-27 06:18 +0000  dockes    (305829599fb1)

	* src/utils/pathut.cpp:
	suppress warning

2008-05-27 05:40 +0000  dockes    (f611211f012a)

	* src/internfile/internfile.cpp:
	log message

2008-05-26 09:07 +0000  dockes    (dbb469971d76)

	* src/ChangeLog:
	*** empty log message ***

2008-05-21 07:21 +0000  dockes    (b1ee79619cca)

	* src/qtgui/advsearch_w.cpp, src/qtgui/confgui/confgui.cpp,
	src/qtgui/confgui/confgui.h, src/qtgui/preview_w.cpp,
	src/qtgui/reslist.cpp, src/utils/idfile.cpp:
	openSuse 11 compile issues

2008-05-20 10:09 +0000  dockes    (f047b0f61753)

	* src/qtgui/advsearch_w.cpp, src/rcldb/rcldb.cpp:
	*** empty log message ***

2008-05-20 10:09 +0000  dockes    (f2e76fada01c)

	* src/unac/unac.c:
	make strict gcc happy

2008-05-09 12:34 +0000  dockes    (be08db2c226e)

	* src/python/recoll/pyrecoll.cpp, src/python/recoll/setup.py: new
	file.
	* src/python/recoll/pyrecoll.cpp, src/python/recoll/setup.py:
	*** empty log message ***

2008-05-08 10:00 +0000  dockes    (2ff9f42dc279)

	* src/rcldb/searchdata.h:
	comments

2008-05-08 09:57 +0000  dockes    (bd6106d7f9ab)

	* src/utils/smallut.cpp, src/utils/smallut.h:
	*** empty log message ***

2008-05-08 09:31 +0000  dockes    (70f8eab20535)

	* src/ChangeLog:
	*** empty log message ***

2008-05-07 06:14 +0000  dockes    (f3d36126287d)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-05-05 20:31 +0000  dockes    (d271616c4b99)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-05-05 20:28 +0000  dockes    (02b1484f3eee)

	* src/doc/user/usermanual.sgml, src/qtgui/guiutils.cpp,
	src/qtgui/guiutils.h, src/qtgui/preview_w.cpp,
	src/qtgui/reslist.cpp, src/qtgui/uiprefs.ui,
	src/qtgui/uiprefs_w.cpp:
	allow setting query term highlight color in prefs

2008-05-05 16:38 +0000  dockes    (763298305d15)

	* src/qtgui/reslist.cpp:
	Edit -> Open in links

2008-05-05 13:13 +0000  dockes    (d2fc5c651024)

	* src/bincimapmime/mime-parsefull.cc:
	part data was sometimes truncated because of bad handling of
	consecutive mime boundaries. Most common symptom: error in base64
	decoding

2008-04-18 11:41 +0000  dockes    (32155182993c)

	* src/mk/localdefs.in:
	get CXXFLAGS from autoconf

2008-04-18 11:39 +0000  dockes    (72073f033a45)

	* src/query/xadump.cpp:
	xadump would sometimes dump core with -b

2008-04-18 11:38 +0000  dockes    (ef6566c2ac8e)

	* src/qtgui/preview_w.cpp:
	walking the search terms hits backwards would go forward

2008-04-18 11:37 +0000  dockes    (018890cfdbd7)

	* src/utils/Makefile, src/utils/base64.cpp, src/utils/readfile.cpp:
	base64 testing code

2008-02-19 08:02 +0000  dockes    (34b45c5acd1c)

	* src/qtgui/main.cpp:
	make first sort after -q work

2008-02-19 08:02 +0000  dockes    (1293fc15412b)

	* src/qtgui/rclmain_w.cpp:
	comments+debug

2008-02-19 07:41 +0000  dockes    (efbaeed44ee9)

	* src/rcldb/rcldb.cpp:
	traces

2008-02-11 10:21 +0000  dockes    (81923201adc7)

	* src/utils/idfile.cpp:
	hack for Mark B.: allow treating (single-message) mbox files as
	message/rfc822

2008-02-08 08:37 +0000  dockes    (ddcce838e7d0)

	* src/qtgui/i18n/recoll_de.ts:
	update by Frank Thieme

2008-02-05 10:45 +0000  dockes    (51a501984fd4)

	* src/sampleconf/mimeconf:
	*** empty log message ***

2008-02-03 16:24 +0000  dockes    (825bb43d67ca)

	* src/sampleconf/mimeconf, src/sampleconf/mimemap,
	src/sampleconf/mimeview:
	rclsvg

2008-02-03 16:05 +0000  dockes    (81794c3a6d9e)

	* src/filters/rclsvg:
	*** empty log message ***

2008-02-03 16:04 +0000  dockes    (40c35a7fb1bb)

	* src/filters/rclsvg: new file.
	* src/filters/rclsvg:
	*** empty log message ***

2008-01-29 10:14 +0000  dockes    (fd74eae7e8b4 [RECOLL_1_10_1])

	* src/README:
	*** empty log message ***

2008-01-29 10:11 +0000  dockes    (a1fee09bfc3d)

	* src/rcldb/searchdata.h:
	m_haveWildCards was sometimes not init

2008-01-29 08:41 +0000  dockes    (ebc971754f92)

	* src/ChangeLog:
	*** empty log message ***

2008-01-24 09:34 +0000  dockes    (301425122a56)

	* src/qtgui/main.cpp:
	*** empty log message ***

2008-01-17 11:15 +0000  dockes    (af11c991aff3)

	* src/qtgui/idxthread.cpp, src/qtgui/idxthread.h,
	src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp,
	src/qtgui/rclmain_w.h:
	allow stopping indexing through menu action

2008-01-17 11:14 +0000  dockes    (4c108ac6227a)

	* src/query/wasastringtoquery.h:
	comment

2008-01-17 11:13 +0000  dockes    (7b2a9225dbef)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-01-16 11:14 +0000  dockes    (ddfe49735bc2)

	* src/query/wasatorcl.cpp, src/rcldb/searchdata.cpp,
	src/rcldb/searchdata.h:
	express query language OR chains as rcldb subqueries so that field
	specs will work inside them

2008-01-16 10:52 +0000  dockes    (6487da12360f)

	* src/ChangeLog, src/doc/user/usermanual.sgml:
	*** empty log message ***

2008-01-16 08:43 +0000  dockes    (592d1258c5e4)

	* src/rcldb/searchdata.cpp:
	splitString filename queries

2007-12-20 09:08 +0000  dockes    (e99decc750eb)

	* src/index/indexer.cpp, src/rcldb/rcldb.cpp:
	ensure that the names of files with filter errors get indexed anyway

2007-12-13 06:58 +0000  dockes    (de422a0df409)

	* src/aspell/rclaspell.cpp, src/bincimapmime/convert.h,
	src/common/rclconfig.cpp, src/common/rclinit.cpp,
	src/common/textsplit.cpp, src/common/unacpp.cpp,
	src/index/csguess.cpp, src/index/indexer.cpp,
	src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp,
	src/index/recollindex.cpp, src/internfile/htmlparse.cpp,
	src/internfile/mh_mail.cpp, src/internfile/mh_mbox.cpp,
	src/internfile/myhtmlparse.cpp, src/query/docseqhist.cpp,
	src/query/history.cpp, src/query/recollq.cpp,
	src/rcldb/pathhash.cpp, src/rcldb/rcldb.cpp, src/utils/base64.cpp,
	src/utils/conftree.cpp, src/utils/copyfile.cpp,
	src/utils/fstreewalk.cpp, src/utils/idfile.cpp,
	src/utils/mimeparse.cpp, src/utils/pathut.cpp,
	src/utils/readfile.cpp, src/utils/wipedir.cpp:
	gcc 4 compat, thanks to Kartik Mistry

2007-12-04 10:17 +0000  dockes    (f2bd537aad87)

	* src/qtgui/rclmain_w.cpp:
	directly open editor action choice dialog when user says so

2007-12-04 10:16 +0000  dockes    (9a289ca30889)

	* src/qtgui/uiprefs_w.cpp, src/utils/utf8iter.cpp:
	*** empty log message ***

2007-11-25 07:29 +0000  dockes    (3782c85019d4)

	* src/qtgui/i18n/recoll_tr.ts:
	*** empty log message ***

2007-11-24 16:51 +0000  dockes    (a41099c58ac0)

	* src/qtgui/i18n/recoll_fr.ts:
	accents

2007-11-24 16:43 +0000  dockes    (eecb572a0935)

	* src/qtgui/confgui/confguiindex.h:
	make conftoppanelw a q_object for translations to work

2007-11-24 10:41 +0000  dockes    (343184d41f3b)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_tr.ts, src/qtgui/i18n/recoll_uk.ts,
	src/qtgui/i18n/recoll_xx.ts:
	*** empty log message ***

2007-11-21 16:34 +0000  dockes    (966333a903a9)

	* src/VERSION:
	*** empty log message ***

2007-11-21 16:34 +0000  dockes    (aed5f0389421)

	* 1.10.0

2007-11-21 16:34 +0000  dockes    (4918fce7a71a)

	* packaging/debian/changelog, packaging/debian/control,
	packaging/debian/menu, packaging/debian/rules,
	packaging/rpm/recoll.spec, packaging/rpm/recollfedora.spec,
	packaging/rpm/recollmdk.spec, tests/shared.sh, website/CHANGES.txt,
	website/devel.html, website/download.html, website/features.html,
	website/fr/features.html, website/index.html.en,
	website/index.html.fr, website/pics/index.html,
	website/styles/style.css:
	1.10.0

2007-11-21 14:15 +0000  dockes    (9c57d53ad305 [RECOLL_1_10_0])

	* src/qtgui/confgui/confguiindex.cpp, src/qtgui/main.cpp,
	src/qtgui/rclmain_w.cpp, src/qtgui/recoll.h:
	allow opening config gui if no index on first start

2007-11-21 09:42 +0000  dockes    (b1db39055b6d)

	* src/excludefile:
	*** empty log message ***

2007-11-21 09:34 +0000  dockes    (cca64d1bdb79)

	* src/utils/conftree.cpp:
	explicitely detect lines beginning with #

2007-11-21 09:00 +0000  dockes    (2cb85a4bd555)

	* src/INSTALL, src/README:
	*** empty log message ***

2007-11-16 15:20 +0000  dockes    (1f90c7302746)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-11-16 14:28 +0000  dockes    (d7f21b7adf20)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/internfile/internfile.cpp, src/internfile/mimehandler.cpp,
	src/internfile/mimehandler.h:
	indexedmimetypes

2007-11-16 12:21 +0000  dockes    (8221e8f1ce4f)

	* src/query/wasastringtoquery.cpp, src/query/wasatorcl.cpp:
	very small effort to look like xesam simple query

2007-11-16 07:34 +0000  dockes    (1398d49de21d)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_it.ts,
	src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts:
	*** empty log message ***

2007-11-16 07:19 +0000  dockes    (eedcef5d56b7)

	* src/qtgui/i18n/recoll_tr.ts:
	*** empty log message ***

2007-11-15 18:44 +0000  dockes    (99e585288200)

	* src/qtgui/preview_w.cpp:
	comment

2007-11-15 18:39 +0000  dockes    (1ee213030954)

	* src/qt4gui/q3richtext_p.h: new file.
	* src/qt4gui/q3richtext_p.h, src/qt4gui/recoll.pro.in:
	qt4 movetoanchor

2007-11-15 18:39 +0000  dockes    (335db8a5c8cb)

	* src/qtgui/i18n/recoll_it.ts:
	*** empty log message ***

2007-11-15 18:34 +0000  dockes    (b3bb7b017f2a)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h:
	moveToAnchor qt4

2007-11-15 18:05 +0000  dockes    (1fe63dd4f268)

	* src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h,
	src/qtgui/preview_w.cpp, src/qtgui/preview_w.h,
	src/qtgui/recoll.pro.in:
	finally got anchors to work. qt3

2007-11-15 18:05 +0000  dockes    (3158e59fd92e)

	* src/qtgui/reslist.cpp:
	*** empty log message ***

2007-11-13 18:42 +0000  dockes    (1a7029e2dd4e)

	* src/doc/man/recoll.1:
	*** empty log message ***

2007-11-13 18:40 +0000  dockes    (a5a94cfbfa7d)

	* src/query/recollq.cpp:
	keep format constant

2007-11-13 18:40 +0000  dockes    (09f615e1a305)

	* src/doc/user/usermanual.sgml:
	text

2007-11-13 18:39 +0000  dockes    (ce5a12bb92bd)

	* tests/badsuffs1/badsuffs1.txt, tests/html/html.txt,
	tests/mail/mail.txt, tests/ooff/ooff.txt, tests/special/special.txt:
	1.10+small changes in dataset

2007-11-13 15:35 +0000  dockes    (3a8d3f5af0e8)

	* src/ChangeLog:
	*** empty log message ***

2007-11-13 15:34 +0000  dockes    (d23b6a94f4c0)

	* src/VERSION:
	1.10.0?

2007-11-13 10:07 +0000  dockes    (f3338fa8cb4e)

	* src/doc/man/recollq.1: new file.
	* src/doc/man/recollq.1:
	*** empty log message ***

2007-11-09 18:48 +0000  dockes    (7859ad070bfc)

	* src/qtgui/i18n/recoll_fr.ts:
	1.9 ?

2007-11-09 18:07 +0000  dockes    (557d4b9ce60a)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_tr.ts, src/qtgui/i18n/recoll_uk.ts,
	src/qtgui/i18n/recoll_xx.ts:
	*** empty log message ***

2007-11-09 15:56 +0000  dockes    (2c201bdce017)

	* src/filters/rcltex:
	*** empty log message ***

2007-11-09 15:46 +0000  dockes    (7960c1dd4d0a)

	* src/kde/kioslave/recoll/00README.txt,
	src/kde/kioslave/recoll/Makefile,
	src/kde/kioslave/recoll/kio_recoll.cpp:
	get things to compile with recoll 1.9 and suse + kde 3.5.5

2007-11-09 13:44 +0000  dockes    (6196dbaf0aec)

	* src/sampleconf/mimeview:
	tex

2007-11-09 11:55 +0000  dockes    (10ce7112596d)

	* src/filters/rcltex: new file.
	* src/filters/rclmedia: deleted file.
	* src/filters/rclmedia, src/filters/rcltex, src/sampleconf/mimeconf,
	src/sampleconf/mimemap:
	added support for indexing TeX text

2007-11-09 11:54 +0000  dockes    (5a35ec87ecf2)

	* src/filters/rclid3:
	comments

2007-11-08 09:35 +0000  dockes    (bdde14acf3bd)

	* src/query/recollq.h: new file.
	* src/lib/Makefile, src/lib/mkMake, src/qtgui/main.cpp,
	src/qtgui/recoll.pro.in, src/query/Makefile, src/query/recollq.cpp,
	src/query/recollq.h:
	allow recoll to be used as a recollq driver

2007-11-08 09:34 +0000  dockes    (06e94674b8e2)

	* src/utils/execmd.cpp:
	include pthread

2007-11-08 09:34 +0000  dockes    (d6e84478935d)

	* src/rcldb/stemdb.cpp:
	debug

2007-11-08 09:32 +0000  dockes    (9f3349e7358b)

	* src/qt4gui/recoll.pro.in:
	turkish

2007-11-08 09:31 +0000  dockes    (cd6b8b7d2a36)

	* src/mk/OpenBSD:
	*** empty log message ***

2007-11-08 07:54 +0000  dockes    (6e986b6d1e64)

	* src/query/recollq.cpp:
	add -b option to only output url list

2007-11-06 11:55 +0000  dockes    (2b0e2fc0dd88)

	* src/qtgui/i18n/recoll_tr.ts: new file.
	* src/qtgui/i18n/recoll_tr.ts:
	*** empty log message ***

2007-10-27 16:40 +0000  dockes    (e8ac0b8f6c46)

	* src/rcldb/rcldb.cpp:
	comment

2007-10-27 08:40 +0000  dockes    (2ccaf4ef243e)

	* src/ChangeLog, src/qtgui/i18n/recoll_de.ts,
	src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_it.ts,
	src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts:
	*** empty log message ***

2007-10-27 08:40 +0000  dockes    (e647e4592daa)

	* src/filters/rcluncomp:
	allow uncompressing suffix-less files

2007-10-27 08:40 +0000  dockes    (dc6d97a86685)

	* src/internfile/internfile.cpp:
	use pcSubst

2007-10-27 08:39 +0000  dockes    (54ba3ef75586)

	* src/rcldb/rcldb.cpp:
	adjust MatchDecider return type according to xapian version

2007-10-27 07:06 +0000  dockes    (54b798d7fa02)

	* src/qtgui/i18n/recoll_xx.ts:
	sent to ning

2007-10-26 10:42 +0000  dockes    (acfa4e6c24ba)

	* src/doc/user/usermanual.sgml:
	index config gui

2007-10-25 15:51 +0000  dockes    (12d12311134a)

	* src/qtgui/confgui/confguiindex.cpp:
	labels

2007-10-25 15:51 +0000  dockes    (2a1d29582446)

	* src/qtgui/confgui/confgui.cpp:
	use new style combobox constructor

2007-10-25 15:50 +0000  dockes    (8b45d32c605c)

	* src/internfile/mh_exec.h:
	cleanup

2007-10-25 08:04 +0000  dockes    (0bf8540b6c22)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-10-25 07:27 +0000  dockes    (5d57c38993af)

	* src/query/recollq.cpp, src/query/wasatorcl.cpp:
	added option to query language for filtering on directory

2007-10-25 07:09 +0000  dockes    (d1adc7006d08)

	* src/rcldb/rcldb.cpp:
	add filter topdir to query description

2007-10-24 15:38 +0000  dockes    (5f1863c33239)

	* src/rcldb/rcldb.cpp:
	use a Xapian MatchDecider to filter on dir path

2007-10-24 08:42 +0000  dockes    (2d337545271f)

	* src/rcldb/rcldb.cpp:
	make filter a xapian::MatchDecider, dont change mechanism

2007-10-19 15:25 +0000  dockes    (935a92d6db39)

	* src/qtgui/ssearch_w.cpp, src/utils/smallut.cpp:
	consider cr and lf as whitespace when splitting strings

2007-10-19 14:31 +0000  dockes    (bb88b5f4fc25)

	* src/qtgui/confgui/confgui.h, src/qtgui/confgui/confguiindex.cpp:
	small sizing adjustments

2007-10-18 10:39 +0000  dockes    (f34f0260a62a)

	* src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h,
	src/qtgui/preview_w.cpp, src/qtgui/reslist.cpp:
	let plaintorich do the chunking, easier to make sure we dont confuse
	textedit by cutting inside a tag

2007-10-18 10:15 +0000  dockes    (7c46f29559fe)

	* src/qtgui/confgui/confguiindex.cpp:
	qt3

2007-10-17 16:12 +0000  dockes    (41f711edeb0b)

	* src/qtgui/plaintorich.cpp:
	replaced utf8 cgj with good ole bel

2007-10-17 11:40 +0000  dockes    (102fcc4aa169)

	* src/internfile/mh_mail.cpp, src/internfile/mh_mail.h,
	src/utils/mimeparse.cpp:
	text/plain attachments were not transcoded to utf-8

2007-10-17 09:57 +0000  dockes    (dd33128e3a59)

	* src/common/rclconfig.cpp, src/internfile/internfile.cpp:
	*** empty log message ***

2007-10-15 13:08 +0000  dockes    (0a095e89bfb9)

	* src/kde/recoll_applet/0README.Recoll, src/kde/recoll_applet/AUTHORS,
	src/kde/recoll_applet/COPYING, src/kde/recoll_applet/ChangeLog,
	src/kde/recoll_applet/Doxyfile, src/kde/recoll_applet/INSTALL,
	src/kde/recoll_applet/Makefile.am,
	src/kde/recoll_applet/Makefile.cvs,
	src/kde/recoll_applet/Makefile.in, src/kde/recoll_applet/NEWS,
	src/kde/recoll_applet/README, src/kde/recoll_applet/TODO,
	src/kde/recoll_applet/acinclude.m4,
	src/kde/recoll_applet/aclocal.m4,
	src/kde/recoll_applet/admin/Doxyfile.am,
	src/kde/recoll_applet/admin/Doxyfile.global,
	src/kde/recoll_applet/admin/Makefile.common,
	src/kde/recoll_applet/admin/acinclude.m4.in,
	src/kde/recoll_applet/admin/am_edit,
	src/kde/recoll_applet/admin/bcheck.pl,
	src/kde/recoll_applet/admin/compile,
	src/kde/recoll_applet/admin/conf.change.pl,
	src/kde/recoll_applet/admin/config.guess,
	src/kde/recoll_applet/admin/config.pl,
	src/kde/recoll_applet/admin/config.sub,
	src/kde/recoll_applet/admin/configure.in.bot.end,
	src/kde/recoll_applet/admin/configure.in.min,
	src/kde/recoll_applet/admin/cvs.sh,
	src/kde/recoll_applet/admin/debianrules,
	src/kde/recoll_applet/admin/depcomp,
	src/kde/recoll_applet/admin/deps.am, src/kde/recoll_applet/admin
	/detect-autoconf.pl, src/kde/recoll_applet/admin/doxygen.sh,
	src/kde/recoll_applet/admin/install-sh,
	src/kde/recoll_applet/admin/libtool.m4.in,
	src/kde/recoll_applet/admin/ltmain.sh,
	src/kde/recoll_applet/admin/missing,
	src/kde/recoll_applet/admin/mkinstalldirs,
	src/kde/recoll_applet/admin/nmcheck,
	src/kde/recoll_applet/admin/oldinclude.m4.in,
	src/kde/recoll_applet/admin/pkg.m4.in,
	src/kde/recoll_applet/admin/ylwrap,
	src/kde/recoll_applet/config.h.in, src/kde/recoll_applet/configure,
	src/kde/recoll_applet/configure.files,
	src/kde/recoll_applet/configure.in,
	src/kde/recoll_applet/configure.in.in,
	src/kde/recoll_applet/doc/Makefile.am,
	src/kde/recoll_applet/doc/Makefile.in,
	src/kde/recoll_applet/doc/en/Makefile.am,
	src/kde/recoll_applet/doc/en/Makefile.in,
	src/kde/recoll_applet/doc/en/index.docbook,
	src/kde/recoll_applet/po/Makefile.am,
	src/kde/recoll_applet/po/Makefile.in,
	src/kde/recoll_applet/src/Makefile.am,
	src/kde/recoll_applet/src/Makefile.in,
	src/kde/recoll_applet/src/kpixmapcombo.cpp,
	src/kde/recoll_applet/src/kpixmapcombo.h,
	src/kde/recoll_applet/src/recoll_applet.cpp,
	src/kde/recoll_applet/src/recoll_applet.desktop,
	src/kde/recoll_applet/src/recoll_applet.h,
	src/kde/recoll_applet/src/recoll_applet.lsm,
	src/kde/recoll_applet/stamp-h.in, src/kde/recoll_applet/subdirs: new
	file.
	* src/kde/recoll_applet/0README.Recoll, src/kde/recoll_applet/AUTHORS,
	src/kde/recoll_applet/COPYING, src/kde/recoll_applet/ChangeLog,
	src/kde/recoll_applet/Doxyfile, src/kde/recoll_applet/INSTALL,
	src/kde/recoll_applet/Makefile.am,
	src/kde/recoll_applet/Makefile.cvs,
	src/kde/recoll_applet/Makefile.in, src/kde/recoll_applet/NEWS,
	src/kde/recoll_applet/README, src/kde/recoll_applet/TODO,
	src/kde/recoll_applet/acinclude.m4,
	src/kde/recoll_applet/aclocal.m4,
	src/kde/recoll_applet/admin/Doxyfile.am,
	src/kde/recoll_applet/admin/Doxyfile.global,
	src/kde/recoll_applet/admin/Makefile.common,
	src/kde/recoll_applet/admin/acinclude.m4.in,
	src/kde/recoll_applet/admin/am_edit,
	src/kde/recoll_applet/admin/bcheck.pl,
	src/kde/recoll_applet/admin/compile,
	src/kde/recoll_applet/admin/conf.change.pl,
	src/kde/recoll_applet/admin/config.guess,
	src/kde/recoll_applet/admin/config.pl,
	src/kde/recoll_applet/admin/config.sub,
	src/kde/recoll_applet/admin/configure.in.bot.end,
	src/kde/recoll_applet/admin/configure.in.min,
	src/kde/recoll_applet/admin/cvs.sh,
	src/kde/recoll_applet/admin/debianrules,
	src/kde/recoll_applet/admin/depcomp,
	src/kde/recoll_applet/admin/deps.am, src/kde/recoll_applet/admin
	/detect-autoconf.pl, src/kde/recoll_applet/admin/doxygen.sh,
	src/kde/recoll_applet/admin/install-sh,
	src/kde/recoll_applet/admin/libtool.m4.in,
	src/kde/recoll_applet/admin/ltmain.sh,
	src/kde/recoll_applet/admin/missing,
	src/kde/recoll_applet/admin/mkinstalldirs,
	src/kde/recoll_applet/admin/nmcheck,
	src/kde/recoll_applet/admin/oldinclude.m4.in,
	src/kde/recoll_applet/admin/pkg.m4.in,
	src/kde/recoll_applet/admin/ylwrap,
	src/kde/recoll_applet/config.h.in, src/kde/recoll_applet/configure,
	src/kde/recoll_applet/configure.files,
	src/kde/recoll_applet/configure.in,
	src/kde/recoll_applet/configure.in.in,
	src/kde/recoll_applet/doc/Makefile.am,
	src/kde/recoll_applet/doc/Makefile.in,
	src/kde/recoll_applet/doc/en/Makefile.am,
	src/kde/recoll_applet/doc/en/Makefile.in,
	src/kde/recoll_applet/doc/en/index.docbook,
	src/kde/recoll_applet/po/Makefile.am,
	src/kde/recoll_applet/po/Makefile.in,
	src/kde/recoll_applet/src/Makefile.am,
	src/kde/recoll_applet/src/Makefile.in,
	src/kde/recoll_applet/src/kpixmapcombo.cpp,
	src/kde/recoll_applet/src/kpixmapcombo.h,
	src/kde/recoll_applet/src/recoll_applet.cpp,
	src/kde/recoll_applet/src/recoll_applet.desktop,
	src/kde/recoll_applet/src/recoll_applet.h,
	src/kde/recoll_applet/src/recoll_applet.lsm,
	src/kde/recoll_applet/stamp-h.in, src/kde/recoll_applet/subdirs:
	*** empty log message ***

2007-10-14 16:07 +0000  dockes    (aea3ceac265d)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-10-09 14:08 +0000  dockes    (008fb8da2cfe)

	* src/qt4gui/recoll.pro.in, src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/confgui/confguiindex.h, src/qtgui/idxthread.cpp,
	src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp,
	src/qtgui/rclmain_w.h, src/qtgui/recoll.pro.in:
	indexing confgui seems to sort of work

2007-10-09 11:08 +0000  dockes    (8e165638db48)

	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/confgui/confguiindex.h, src/qtgui/confgui/conflinkrcl.h,
	src/qtgui/confgui/main.cpp:
	*** empty log message ***

2007-10-09 09:43 +0000  dockes    (bda697547b28)

	* src/common/rclconfig.cpp, src/common/rclconfig.h:
	modified mechanism for confgui updates

2007-10-09 09:40 +0000  dockes    (314568630e50)

	* src/utils/conftree.h:
	*** empty log message ***

2007-10-07 20:22 +0000  dockes    (a4407de529dc)

	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confguiindex.cpp:
	*** empty log message ***

2007-10-06 07:44 +0000  dockes    (e12dcaba9422)

	* src/sampleconf/mimeconf:
	*** empty log message ***

2007-10-06 07:26 +0000  dockes    (8c03c83a6353)

	* src/ChangeLog, src/INSTALL, src/README, src/VERSION:
	*** empty log message ***

2007-10-06 07:13 +0000  dockes    (80c8e77d75e3)

	* src/qtgui/i18n/recoll_xx.ts: new file.
	* src/doc/user/usermanual.sgml, src/qtgui/i18n/recoll_xx.ts:
	*** empty log message ***

2007-10-05 14:00 +0000  dockes    (3f47738c7b7f)

	* src/query/wasatorcl.cpp:
	add rclcat prefix to query languages + adapt find_applet to use it

2007-10-05 08:03 +0000  dockes    (eb9ae456f872)

	* src/qtgui/main.cpp, src/qtgui/ssearch_w.cpp, src/qtgui/ssearch_w.h:
	add cmd line option to run query when starting

2007-10-04 12:26 +0000  dockes    (479712bd069b)

	* src/rcldb/searchdata.cpp:
	when search includes composite spans + other terms, increase slack
	instead of switching to word split

2007-10-04 12:21 +0000  dockes    (67c23cd41df2)

	* src/common/rclconfig.cpp, src/common/textsplit.cpp,
	src/common/textsplit.h:
	make cjk ngramlen configurable

2007-10-04 12:20 +0000  dockes    (e9e128bf43ab)

	* src/index/indexer.cpp:
	trace

2007-10-03 14:53 +0000  dockes    (b8852ea7a80c)

	* src/internfile/Makefile, src/internfile/mh_mbox.cpp,
	src/internfile/mh_mbox.h:
	Improve From_ line detection

2007-10-02 14:25 +0000  dockes    (3379ab8d9013)

	* src/doc/user/docbook.css, src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-10-02 14:22 +0000  dockes    (29a402a23d12)

	* src/sampleconf/mimeconf, src/sampleconf/mimemap,
	src/sampleconf/mimeview:
	a few more image files

2007-10-02 14:00 +0000  dockes    (d0e7241eeb0e)

	* src/filters/rclflac, src/filters/rclogg: new file.
	* src/filters/rcljpeg: deleted file.
	* src/filters/rclflac, src/filters/rcljpeg, src/filters/rclogg:
	*** empty log message ***

2007-10-02 13:56 +0000  dockes    (e180ca729bea)

	* src/filters/rclimg:
	comments,GPL

2007-10-02 11:39 +0000  dockes    (7777fdc5d30a)

	* src/common/rclconfig.cpp, src/common/textsplit.cpp,
	src/common/textsplit.h:
	add flag to disable cjk processing

2007-10-01 17:56 +0000  dockes    (29b1aeb75d23)

	* src/filters/rclimg: new file.
	* src/filters/rclimg:
	initial version from Cedric Scott

2007-10-01 15:57 +0000  dockes    (b3aeb47d6a43)

	* src/utils/conftree.cpp:
	added updates/erase tests

2007-10-01 06:35 +0000  dockes    (b29617933c16)

	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/confguiindex.cpp, src/qtgui/confgui/main.cpp,
	src/qtgui/confgui/trconf.pro:
	qt4 port

2007-10-01 06:19 +0000  dockes    (78068b236681)

	* src/VERSION, src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/qtgui/confgui/confgui.cpp, src/utils/conftree.cpp,
	src/utils/conftree.h:
	config update enabling functions

2007-09-29 09:06 +0000  dockes    (e38c26097ece)

	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/confgui/confguiindex.h, src/qtgui/confgui/conflinkrcl.h,
	src/qtgui/confgui/main.cpp, src/qtgui/confgui/trconf.pro:
	*** empty log message ***

2007-09-27 15:47 +0000  dockes    (9ac07bf91591)

	* src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/confgui/confguiindex.h, src/qtgui/confgui/conflinkrcl.h:
	new file.
	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/confguiindex.cpp,
	src/qtgui/confgui/confguiindex.h, src/qtgui/confgui/conflinkrcl.h,
	src/qtgui/confgui/main.cpp, src/qtgui/confgui/trconf.pro:
	*** empty log message ***

2007-09-27 11:03 +0000  dockes    (436530279a09)

	* src/utils/conftree.h:
	comment

2007-09-27 11:02 +0000  dockes    (a466c387c485)

	* src/utils/conftree.cpp, src/utils/conftree.h:
	avoid adding unneeded entries in confstack. fix erase-add resulting
	in duplicate

2007-09-26 12:16 +0000  dockes    (8e1e4edb4f4a)

	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/main.cpp, src/qtgui/confgui/trconf.pro: new file.
	* src/qtgui/confgui/confgui.cpp, src/qtgui/confgui/confgui.h,
	src/qtgui/confgui/main.cpp, src/qtgui/confgui/trconf.pro:
	*** empty log message ***

2007-09-22 08:51 +0000  dockes    (8072f3278663)

	* src/common/textsplit.cpp, src/utils/utf8iter.h:
	include assert.h when needed

2007-09-21 16:45 +0000  dockes    (d85479652341)

	* src/INSTALL, src/README, src/VERSION, src/doc/user/usermanual.sgml,
	src/qtgui/recoll.pro.in:
	*** empty log message ***

2007-09-20 12:22 +0000  dockes    (28a9c536ebba)

	* src/common/textsplit.cpp:
	logs

2007-09-20 08:45 +0000  dockes    (415256bd7508)

	* src/common/textsplit.cpp, src/common/textsplit.h,
	src/utils/utf8iter.h:
	initial cjk support

2007-09-20 08:43 +0000  dockes    (66200ff61f31)

	* src/rcldb/searchdata.cpp:
	comments,formatting

2007-09-20 08:42 +0000  dockes    (750b59dea1e9)

	* src/qtgui/rclmain_w.cpp:
	restore cursor if cant start query

2007-09-18 20:35 +0000  dockes    (1d01904f2b55)

	* src/common/textsplit.cpp, src/common/textsplit.h:
	use m_ prefix for members

2007-09-18 20:34 +0000  dockes    (49381b7f40f6)

	* src/qt4gui/recoll.pro.in:
	add recoll_xx.ts

2007-09-18 07:01 +0000  dockes    (7dea06d57ada)

	* src/qtgui/i18n/recoll_it.ts:
	changes by Giovanni Cannizzaro

2007-09-11 08:23 +0000  dockes    (615a70a64b94 [RECOLL_1_9_0])

	* src/desktop/recoll-searchgui.desktop:
	desktop file corrected as per Kartik Mistry patch

2007-09-10 05:44 +0000  dockes    (78b0c9bd47bb)

	* src/qtgui/i18n/recoll_fr.ts:
	long menu labels cause pbs at least on macosx

2007-09-08 17:26 +0000  dockes    (ef2964b2e49e)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_uk.ts:
	*** empty log message ***

2007-09-08 17:25 +0000  dockes    (000b2b01844d)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h,
	src/qtgui/preview_w.cpp, src/qtgui/uiprefs.ui,
	src/qtgui/uiprefs_w.cpp:
	change hghlight text size limit to configurable value

2007-09-08 17:21 +0000  dockes    (c0ab1e961f0a)

	* src/qtgui/viewaction_w.cpp:
	added missing space in string

2007-09-08 17:21 +0000  dockes    (f70ce9c4c753)

	* src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp:
	renamed preferencesQuery_PrefsAction to queryPrefsAction

2007-09-08 17:19 +0000  dockes    (17eefeb77500 [RECOLL_1_9_1cjk2, RECOLL_1_9_1cjk1])

	* src/qtgui/plaintorich.cpp:
	comment

2007-09-08 09:44 +0000  dockes    (8aabe9bc2d85)

	* src/utils/readfile.cpp:
	small pb in solaris fix

2007-09-08 08:07 +0000  dockes    (4b862559adbb)

	* src/mk/SunOS, src/utils/pathut.cpp, src/utils/readfile.cpp:
	SunOS 2.8 fixes

2007-09-07 14:58 +0000  dockes    (f0b17af1f5d7)

	* src/configure, src/configure.ac:
	always add lz to lxapian

2007-09-07 12:39 +0000  dockes    (b10ac30fe130)

	* website/CHANGES.txt:
	*** empty log message ***

2007-09-07 08:05 +0000  dockes    (f031116372e8)

	* src/rcldb/rcldb.cpp:
	improve purge error message printing

2007-09-07 08:04 +0000  dockes    (276b259f9ec6)

	* src/qtgui/i18n/recoll_it.ts:
	new 1.9 translation by C. Rigamont

2007-09-07 08:04 +0000  dockes    (450e1342467c)

	* src/sampleconf/mimemap:
	fix wordperfect spurious extensions

2007-09-07 08:03 +0000  dockes    (624a100107be [RECOLL_1_9_1cjk])

	* website/BUGS.txt:
	update xapian near to 1.0.2

2007-09-07 08:03 +0000  dockes    (a0d360caf71e)

	* website/copydocs:
	to_mac

2007-09-01 19:12 +0000  dockes    (3ebdb5af664f)

	* src/qt4gui/recoll.pro.in, src/qtgui/i18n/recoll_de.ts,
	src/qtgui/recoll.pro.in:
	*** empty log message ***

2007-08-31 09:04 +0000  dockes    (32533d0d11d0)

	* src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h:
	pressing CR in advsearch would run query twice because of start
	autodefault

2007-08-31 07:23 +0000  dockes    (bb17fa4cfaca)

	* src/qtgui/images/d_firstpage.png, src/qtgui/images/firstpage.png:
	new file.
	* src/qtgui/images/d_firstpage.png, src/qtgui/images/firstpage.png:
	*** empty log message ***

2007-08-30 10:11 +0000  dockes    (c75b5f42b33d)

	* src/INSTALL, src/README, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_uk.ts:
	*** empty log message ***

2007-08-30 10:00 +0000  dockes    (7c4ccceae2a7)

	* website/BUGS.txt, website/CHANGES.txt, website/download.html,
	website/features.html:
	*** empty log message ***

2007-08-30 09:01 +0000  dockes    (687cad7b46de)

	* src/doc/user/usermanual.sgml, src/index/indexer.cpp,
	src/index/indexer.h, src/index/rclmonrcv.cpp,
	src/sampleconf/recoll.conf.in, src/utils/fstreewalk.cpp,
	src/utils/fstreewalk.h:
	add followLinks option

2007-08-30 08:39 +0000  dockes    (6af3a2216074)

	* src/doc/user/usermanual.sgml:
	add followLinks option

2007-08-28 08:12 +0000  dockes    (6385c6a9c88e)

	* src/index/indexer.cpp:
	allow symlinks in topdirs

2007-08-28 08:08 +0000  dockes    (a3df89087437)

	* src/utils/fstreewalk.cpp, src/utils/fstreewalk.h:
	follow top (entry) symlinks even if nofollow is set

2007-08-28 08:07 +0000  dockes    (19ac4f90b7e7)

	* src/internfile/internfile.cpp:
	error msg

2007-08-26 13:52 +0000  dockes    (fa08f95a4d95)

	* src/doc/user/usermanual.sgml:
	add wordperfect ext app info

2007-08-26 13:34 +0000  dockes    (ac877cc2e3ad)

	* src/filters/rclwpd: new file.
	* src/filters/rclwpd, src/sampleconf/mimeconf, src/sampleconf/mimemap,
	src/sampleconf/mimeview:
	added wordperfect support

2007-08-26 13:34 +0000  dockes    (7472abcdbc4a)

	* src/sampleconf/recoll.conf.in:
	add commented entries for daem*

2007-08-07 08:45 +0000  dockes    (ad6dad566902)

	* src/qtgui/rclmain_w.cpp:
	*** empty log message ***

2007-08-07 08:42 +0000  dockes    (2040417c73e4)

	* src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp:
	qt3 adjustments

2007-08-07 08:26 +0000  dockes    (55c7dc79c190)

	* src/aspell/rclaspell.cpp, src/sampleconf/recoll.conf.in:
	*** empty log message ***

2007-08-05 05:55 +0000  dockes    (3acd192c01d1)

	* src/utils/conftree.h:
	comments

2007-08-05 05:49 +0000  dockes    (afee970ae166)

	* src/utils/conftree.h:
	*** empty log message ***

2007-08-04 07:22 +0000  dockes    (9afb2050f462)

	* src/utils/conftree.cpp, src/utils/conftree.h:
	Allow updates in confstacks

2007-08-03 07:50 +0000  dockes    (28ae2e572dcf)

	* src/utils/Makefile, src/utils/conftree.cpp, src/utils/conftree.h:
	have conftree preserve comments and ordering

2007-08-02 06:33 +0000  dockes    (4da8b2dbcaa6)

	* src/qt4gui/recoll.qrc, src/qtgui/rclmain.ui,
	src/qtgui/rclmain_w.cpp, src/qtgui/recoll.pro.in,
	src/qtgui/reslist.cpp, src/qtgui/reslist.h:
	added gotofirstpage action

2007-08-01 10:04 +0000  dockes    (c91831fab8a0)

	* src/qtgui/guiutils.h, src/qtgui/rclmain_w.cpp,
	src/qtgui/rclmain_w.h, src/qtgui/ssearch_w.cpp,
	src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h,
	src/rcldb/stemdb.cpp, src/rcldb/stemdb.h:
	Allow stem expansion for several (all) stemming languages at a time

2007-08-01 07:55 +0000  dockes    (5d13d87e6e14)

	* src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp,
	src/qtgui/rclmain_w.h, src/qtgui/uiprefs_w.cpp,
	src/qtgui/uiprefs_w.h:
	allow setting stemlang from prefs menu

2007-07-20 14:50 +0000  dockes    (573069870fd4)

	* src/configure, src/configure.ac:
	check for uic3 during qt4 configure

2007-07-20 14:43 +0000  dockes    (32ae47904cca)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h:
	preview: dont search for anchors if we have none

2007-07-20 14:32 +0000  dockes    (eac614c9a725)

	* src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp, src/qtgui/reslist.h:
	*** empty log message ***

2007-07-20 11:44 +0000  dockes    (6133f68f886f)

	* src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h:
	factorize previewNext/Prev

2007-07-20 11:38 +0000  dockes    (4dfc3942351a)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h,
	src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h:
	more preview window interface cleanup

2007-07-20 10:55 +0000  dockes    (d57bd5e6cb2d)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h,
	src/qtgui/rclmain_w.cpp:
	cleaned up preview window interface

2007-07-14 16:53 +0000  dockes    (35087158d61f)

	* src/common/autoconfig.h.in, src/configure, src/configure.ac,
	src/mk/AIX, src/mk/Darwin, src/mk/Linux, src/mk/SunOS,
	src/utils/execmd.cpp:
	handle putenv arg constness in configure

2007-07-13 10:24 +0000  dockes    (98774298901d)

	* src/INSTALL, src/README, src/doc/man/recoll.conf.5,
	src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_it.ts,
	src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts,
	website/BUGS.txt, website/CHANGES.txt, website/download.html:
	*** empty log message ***

2007-07-13 07:17 +0000  dockes    (d2c5a6098bbd)

	* src/doc/user/docbook.css, src/doc/user/usermanual.sgml:
	1.9 changes

2007-07-13 07:10 +0000  dockes    (2569115962c0)

	* src/qtgui/uiprefs.ui:
	msg

2007-07-13 07:00 +0000  dockes    (2bd0371b8e12)

	* src/qtgui/plaintorich.cpp:
	adjust term beacon for better finding ?

2007-07-13 06:31 +0000  dockes    (f7d41e95166c)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h,
	src/qtgui/rclmain_w.cpp:
	better handle preview close during load

2007-07-12 17:28 +0000  dockes    (5b6f1204d077)

	* src/rcldb/rcldb.cpp:
	*** empty log message ***

2007-07-12 17:13 +0000  dockes    (9345d3db5ff2)

	* src/filters/rclpdf:
	dont use anchored regexps for stripping whitespace, ubuntu mawk
	ignores the anchor

2007-07-12 13:41 +0000  dockes    (1fb4e582fe5b)

	* src/utils/cancelcheck.h:
	*** empty log message ***

2007-07-12 10:53 +0000  dockes    (eb352f6c17ae)

	* src/index/rclmonrcv.cpp, src/utils/fstreewalk.cpp,
	src/utils/fstreewalk.h:
	monitor: dont add watch on created dir if in skippedXXX

2007-07-12 10:13 +0000  dockes    (d55862505674)

	* src/ChangeLog, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h,
	src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp:
	fix v1.8 default format string if we find it

2007-07-12 08:34 +0000  dockes    (b69b14b67cd2)

	* src/rcldb/rcldb.cpp:
	use uniform code for Xapian exception catching + catch a few more,
	esp. databaseModified cases

2007-07-12 08:23 +0000  dockes    (ffe9a12f9237)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/reslist.cpp,
	src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp:
	icon now part of paragraph format

2007-07-11 10:05 +0000  dockes    (a8d4da32f304)

	* src/qtgui/reslist.cpp:
	dont create popup in irrelevant areas

2007-07-10 09:24 +0000  dockes    (993776d69bab)

	* src/sampleconf/recoll.conf.in:
	idxflushnb default 10

2007-07-10 09:23 +0000  dockes    (e800d4e4d1de)

	* src/doc/man/recollindex.1, src/index/indexer.cpp,
	src/index/indexer.h, src/index/recollindex.cpp, src/rcldb/rcldb.cpp,
	src/rcldb/rcldb.h:
	recollindex -l

2007-07-10 05:44 +0000  dockes    (7247df0336ab)

	* src/sampleconf/recoll.conf.in:
	*** empty log message ***

2007-07-09 17:21 +0000  dockes    (ef8eddb1b94a)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-07-01 06:52 +0000  dockes    (03cb707d9122)

	* src/filters/rclid3: new file.
	* src/filters/rclid3, src/sampleconf/mimeconf, src/sampleconf/mimemap,
	src/sampleconf/mimeview:
	audio tags support improvement: flac+ogg. use FORPREVIEW

2007-06-26 17:07 +0000  dockes    (ec5b66db8aea)

	* src/qtgui/i18n/recoll_de.ts, src/qtgui/i18n/recoll_fr.ts,
	src/qtgui/i18n/recoll_it.ts, src/qtgui/i18n/recoll_ru.ts,
	src/qtgui/i18n/recoll_uk.ts:
	*** empty log message ***

2007-06-26 16:58 +0000  dockes    (34658791397a)

	* *** empty log message ***

2007-06-26 16:58 +0000  dockes    (26a811724423)

	* packaging/rpm/recollCooker.spec, website/fr/features.html,
	website/mario.png, website/perfs.html, website/smile.png: new file.
	* packaging/rpm/recollCooker.spec, src/doc/user/usermanual.sgml,
	website/BUGS.txt, website/CHANGES.txt, website/credits.html,
	website/doc.html, website/download.html, website/features.html,
	website/fr/features.html, website/index.html.en,
	website/index.html.fr, website/mario.png, website/perfs.html,
	website/rclidxfmt.html, website/smile.png, website/styles/style.css:
	*** empty log message ***

2007-06-26 16:09 +0000  dockes    (d4a3058d613e)

	* src/internfile/internfile.cpp, src/internfile/internfile.h:
	comments

2007-06-26 16:08 +0000  dockes    (7115d37ab33d)

	* src/configure, src/configure.ac, src/mk/Darwin,
	src/qtgui/reslist.cpp, src/recollinstall.in:
	get things to sort of compile / install on macosx

2007-06-26 15:38 +0000  dockes    (02621fd62ca0)

	* src/ChangeLog: new file.
	* src/ChangeLog:
	*** empty log message ***

2007-06-26 11:59 +0000  dockes    (51061217635d)

	* src/excludefile, src/makesrcdist.sh:
	small mkdist fixes

2007-06-25 18:31 +0000  dockes    (5f173fcd227f)

	* src/INSTALL, src/README:
	*** empty log message ***

2007-06-25 10:25 +0000  dockes    (048658cd678b)

	* src/rcldb/rcldb.cpp:
	simplified and hopefully improved abstract generation

2007-06-25 10:13 +0000  dockes    (14ecb9d719e7)

	* src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h,
	src/qtgui/reslist.cpp:
	plaintorich: only setup beacons if needed

2007-06-22 06:14 +0000  dockes    (0584daa67e7c)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/query/wasatorcl.cpp, src/rcldb/rcldb.cpp,
	src/rcldb/searchdata.cpp, src/sampleconf/mimeconf:
	handle mime: and ext: in qlang

2007-06-21 11:56 +0000  dockes    (e5102468f77e)

	* src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	slightly reorganized Db::close/~Db code

2007-06-21 11:14 +0000  dockes    (e360a50fdaa5)

	* src/common/rclconfig.cpp:
	beware of unsigneds diffs when comparing to 0 !

2007-06-20 13:16 +0000  dockes    (e515c5541bd4)

	* src/qtgui/preview_w.cpp, src/qtgui/rclmain.ui,
	src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h,
	src/query/history.cpp, src/query/history.h:
	menu entry to reset document history

2007-06-19 16:19 +0000  dockes    (675d2fed7a32)

	* src/qtgui/rclmain_w.cpp, src/qtgui/sort_w.cpp:
	fix sort state restoration which didnt work

2007-06-19 15:48 +0000  dockes    (36fa1c12d616)

	* src/rcldb/rcldb.cpp:
	try to better print delete exception messages

2007-06-19 15:47 +0000  dockes    (304862edc545)

	* src/query/xadump.cpp:
	option X

2007-06-19 15:47 +0000  dockes    (23a728d3cdd7)

	* src/query/recollq.cpp:
	compile

2007-06-19 12:27 +0000  dockes    (5ee1b5e9168e)

	* src/internfile/internfile.cpp, src/internfile/internfile.h:
	get test driver to compile

2007-06-19 12:17 +0000  dockes    (8974a52d2baa)

	* src/internfile/htmlparse.h, src/internfile/mh_html.cpp,
	src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h:
	renamed the html charset values to stick to omega usage

2007-06-19 10:28 +0000  dockes    (e66870aeadb6)

	* src/internfile/htmlparse.cpp, src/internfile/htmlparse.h,
	src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h:
	updated html parser to omega 1.0.1 + moved entity decoder to
	myhtmlparse to minimize amount of diffs

2007-06-19 08:36 +0000  dockes    (e2533617731d)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/internfile/internfile.cpp, src/internfile/mh_html.cpp,
	src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h,
	src/qtgui/preview_w.cpp, src/qtgui/reslist.cpp, src/query/docseq.h,
	src/query/docseqdb.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h,
	src/rcldb/rcldoc.h, src/rcldb/searchdata.cpp,
	src/sampleconf/mimeconf:
	added open-ended field name handling

2007-06-19 07:52 +0000  dockes    (73ccb629ad66)

	* src/common/autoconfig.h.in, src/configure, src/configure.ac,
	src/index/csguess.cpp, src/utils/transcode.cpp:
	added test for iconv parm 2 constness

2007-06-18 13:04 +0000  dockes    (bb1262134776)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/searchdata.cpp,
	src/sampleconf/mimeconf:
	implement dynamic field name to prefix translation, query side

2007-06-15 11:41 +0000  dockes    (5eccc05a2ae7)

	* src/filters/rclabw, src/filters/rclsoff, src/sampleconf/mimeconf,
	src/sampleconf/mimemap, src/sampleconf/mimeview:
	added abiword + some oofice cleanup

2007-06-15 09:25 +0000  dockes    (f5b1666a10e6)

	* src/filters/rclabw: new file.
	* src/filters/rclabw:
	*** empty log message ***

2007-06-14 08:20 +0000  dockes    (dc698e7b3c84)

	* src/rcldb/rcldb.cpp:
	removed the "weak" date, not used and not in omega anymore

2007-06-13 17:03 +0000  dockes    (3d509dbc275c)

	* src/qtgui/reslist.cpp:
	textedit autext sometimes switched to plain at eol?

2007-06-12 13:31 +0000  dockes    (793abec1cee4)

	* src/qtgui/plaintorich.cpp, src/qtgui/preview_w.cpp,
	src/qtgui/preview_w.h, src/qtgui/rclmain_w.cpp,
	src/qtgui/reslist.cpp, src/qtgui/reslist.h:
	somewhat fixed qt4 selection problems

2007-06-12 10:33 +0000  dockes    (261ca6c11087)

	* src/qtgui/ssearch_w.cpp:
	adjust event handling for qt4, get esc-spc to work

2007-06-12 10:32 +0000  dockes    (97c9f158e297)

	* src/qtgui/plaintorich.cpp:
	comments

2007-06-12 08:50 +0000  dockes    (28d503078074)

	* src/qtgui/rclmain_w.cpp:
	*** empty log message ***

2007-06-12 08:46 +0000  dockes    (d3f305e57522)

	* src/query/recollq.cpp:
	getMainConfig

2007-06-11 08:33 +0000  dockes    (5542196b466a)

	* src/qtgui/rclmain_w.cpp:
	set busy cursor while search runs

2007-06-11 05:51 +0000  dockes    (bf5090aed2fd)

	* src/Makefile.in:
	*** empty log message ***

2007-06-11 05:49 +0000  dockes    (9327b736d7ff)

	* src/Makefile.in, src/qt4gui/uifrom3:
	*** empty log message ***

2007-06-11 05:45 +0000  dockes    (cbb602782461)

	* src/desktop/recoll.png, src/desktop/recoll.xcf: new file.
	* src/desktop/recoll-searchgui.png, src/desktop/recoll-searchgui.xcf:
	deleted file.
	* src/desktop/recoll-searchgui.desktop, src/desktop/recoll-
	searchgui.png, src/desktop/recoll-searchgui.xcf,
	src/desktop/recoll.png, src/desktop/recoll.xcf,
	src/makestaticdist.sh, src/recollinstall.in:
	icon named recoll.png

2007-06-11 05:38 +0000  dockes    (9268fba2c65c)

	* src/index/indexer.cpp:
	changed level of missing helpers message

2007-06-10 12:26 +0000  dockes    (f5b6dcd36de0)

	* src/mk/OpenBSD: new file.
	* src/mk/OpenBSD:
	*** empty log message ***

2007-06-08 16:47 +0000  dockes    (96f2807957dd)

	* src/common/rclconfig.h, src/index/indexer.cpp,
	src/index/recollindex.cpp, src/mk/FreeBSD, src/qtgui/main.cpp,
	src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	added file system usage check

2007-06-08 16:46 +0000  dockes    (0c11deb1a678)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-06-08 16:46 +0000  dockes    (4f2c0d45e15b)

	* src/desktop/recoll-searchgui.desktop, src/desktop/recoll-
	searchgui.png, src/desktop/recoll-searchgui.xcf:
	new icon

2007-06-08 16:05 +0000  dockes    (6835d2fbb56c)

	* src/rcldb/rcldb.h:
	comments and ordering

2007-06-08 15:30 +0000  dockes    (aeffac1f3f2d)

	* src/utils/pathut.cpp, src/utils/pathut.h:
	fsocc

2007-06-08 14:01 +0000  dockes    (7c47d8aae3cc)

	* src/filters/rclkwd: new file.
	* src/filters/rclkwd, src/sampleconf/mimeview:
	kword support

2007-06-08 13:51 +0000  dockes    (53a1012a564f)

	* src/filters/rcldjvu, src/filters/rcldoc, src/filters/rcldvi,
	src/filters/rclgaim, src/filters/rcljpeg, src/filters/rcllyx,
	src/filters/rclman, src/filters/rclmedia, src/filters/rclpdf,
	src/filters/rclppt, src/filters/rclps, src/filters/rclrtf,
	src/filters/rclscribus, src/filters/rclsoff, src/filters/rclxls,
	src/filters/recfiltcommon, src/sampleconf/mimeconf,
	src/sampleconf/mimemap:
	kword support

2007-06-08 12:33 +0000  dockes    (a56bc180327b)

	* src/query/recollq.cpp:
	added stopfile parameter

2007-06-08 12:32 +0000  dockes    (7b3710f69cd0)

	* src/filters/rcljpeg: new file.
	* src/filters/rcljpeg, src/sampleconf/mimeconf:
	rcljpeg

2007-06-08 12:31 +0000  dockes    (0b20447d105e)

	* src/common/rclconfig.cpp:
	improve message about bad config

2007-06-02 08:30 +0000  dockes    (dfa3e5682035)

	* src/rcldb/Makefile, src/rcldb/stoplist.cpp, src/rcldb/stoplist.h:
	new file.
	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/index/indexer.cpp, src/lib/Makefile, src/lib/mkMake,
	src/qtgui/main.cpp, src/rcldb/Makefile, src/rcldb/rcldb.cpp,
	src/rcldb/rcldb.h, src/rcldb/searchdata.cpp, src/rcldb/stoplist.cpp,
	src/rcldb/stoplist.h, src/utils/readfile.cpp, src/utils/readfile.h:
	minimal experimental stopword functionality

2007-06-01 05:44 +0000  dockes    (b9f3d4b61852)

	* src/qtgui/preview_w.cpp:
	preview: space and backspace bound to pgdown/pgup

2007-05-30 12:31 +0000  dockes    (105744d9f609)

	* src/index/indexer.cpp, src/internfile/mh_html.cpp,
	src/internfile/mh_html.h, src/qtgui/plaintorich.cpp,
	src/query/xadump.cpp, src/utils/transcode.cpp:
	improve transcode error printing

2007-05-30 12:30 +0000  dockes    (d4fa167018eb)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-05-30 12:30 +0000  dockes    (6027fd8afb12)

	* src/rcldb/rcldb.cpp:
	improve add_document error message printing

2007-05-30 12:29 +0000  dockes    (234dc300c26b)

	* src/qtgui/reslist.cpp, src/qtgui/reslist.h:
	escape possibly not html-safe text

2007-05-24 09:35 +0000  dockes    (ec684a070c43)

	* src/rcldb/stemdb.cpp:
	comment

2007-05-24 07:48 +0000  dockes    (deedeff93a6e)

	* src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/sort_w.cpp,
	src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp:
	optionally remember sorting state between invocations

2007-05-24 07:47 +0000  dockes    (e6bb3bced970)

	* src/configure, src/configure.ac, src/qt4gui/uifrom3:
	make uifrom3 a makefile

2007-05-23 09:19 +0000  dockes    (4f9ab7436818)

	* src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h,
	src/qtgui/preview.ui, src/qtgui/preview_w.cpp,
	src/qtgui/preview_w.h:
	in preview window if search line empty look for search terms

2007-05-23 08:29 +0000  dockes    (644c4e20106b)

	* src/internfile/internfile.cpp:
	*** empty log message ***

2007-05-23 08:28 +0000  dockes    (1927522b5826)

	* src/common/rclinit.cpp, src/utils/execmd.cpp:
	cant block sigcld globally cause qt needs it

2007-05-22 08:33 +0000  dockes    (2c0d94ae674a)

	* src/internfile/internfile.cpp, src/internfile/mh_html.cpp:
	let email attachments inherit date and author from parent message

2007-05-22 07:40 +0000  dockes    (fc644359e793)

	* src/index/indexer.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	implemented adjustable indexing flush threshold

2007-05-21 14:26 +0000  dockes    (d70d7b6988f0)

	* src/qtgui/rclmain_w.cpp:
	reopen db for each search during query

2007-05-21 13:30 +0000  dockes    (7f65a405e028)

	* src/common/rclinit.cpp, src/common/rclinit.h,
	src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp,
	src/index/recollindex.cpp, src/qtgui/idxthread.cpp,
	src/qtgui/main.cpp, src/rcldb/rcldb.cpp, src/utils/execmd.cpp,
	src/utils/execmd.h:
	make sure signals are only handled by the main thread. Fix bus error
	on rclmon exit (double delete)

2007-05-21 12:03 +0000  dockes    (7af2d0c361be)

	* src/utils/smallut.h:
	*** empty log message ***

2007-05-21 09:00 +0000  dockes    (9ee50650bd6f)

	* src/index/indexer.cpp, src/index/rclmonprc.cpp:
	better handle aspell errors: dont exit from monitor on aux db
	creation failure, and dont retry forever

2007-05-21 07:24 +0000  dockes    (53f18ed9c2f8)

	* src/VERSION, src/configure, src/configure.ac,
	src/doc/user/usermanual.sgml, src/qt4gui/uifrom3,
	src/sampleconf/recoll.conf.in:
	removed --enable-qt4, rely on qmake output instead

2007-05-21 06:46 +0000  dockes    (d6267bb0e30f)

	* website/BUGS.txt, website/CHANGES.txt, website/devel.html,
	website/doc.html, website/download.html, website/index.html.en,
	website/index.html.fr:
	*** empty log message ***

2007-05-19 07:32 +0000  dockes    (cbbd4158e0a8)

	* website/doc.html: new file.
	* website/doc.html:
	*** empty log message ***

2007-05-18 12:05 +0000  dockes    (75610b300ee1 [RECOLL_1_8_2])

	* src/recollinstall.in:
	qt4 install glitches

2007-05-18 11:16 +0000  dockes    (c9a0be6210be)

	* src/README:
	*** empty log message ***

2007-05-18 07:49 +0000  dockes    (eaf500145dd5)

	* src/VERSION:
	1.8.2

2007-05-18 07:49 +0000  dockes    (fc64434e87c0)

	* packaging/debian/changelog, tests/runtests.sh, website/BUGS.txt,
	website/CHANGES.txt, website/download.html:
	*** empty log message ***

2007-05-18 07:41 +0000  dockes    (6bec0784b8fd)

	* src/doc/user/usermanual.sgml:
	doc fix

2007-05-18 07:41 +0000  dockes    (022d354a0a2f)

	* src/sampleconf/recoll.conf.in:
	add .beagle to stops

2007-05-18 07:41 +0000  dockes    (451a13663a00)

	* src/rcldb/rcldb.cpp, src/rcldb/stemdb.cpp:
	change method name deprecated in xap 1.0

2007-05-18 07:40 +0000  dockes    (54bfc83a6186)

	* src/query/Makefile:
	*** empty log message ***

2007-05-18 07:40 +0000  dockes    (ef599af3e2e7)

	* src/configure.ac:
	use $libdir instead of /usr/lib (64bits machs)

2007-05-16 11:28 +0000  dockes    (2cced3d0aa32)

	* src/qtgui/i18n/recoll_it.ts:
	*** empty log message ***

2007-04-22 07:36 +0000  dockes    (8628fca949e7)

	* src/qtgui/i18n/recoll_de.ts: new file.
	* src/qtgui/i18n/recoll_de.ts:
	*** empty log message ***

2007-03-28 19:30 +0000  dockes    (51c5bdb227cd)

	* website/BUGS.txt, website/download.html, website/index.html.en,
	website/index.html.fr:
	*** empty log message ***

2007-03-08 12:24 +0000  dockes    (0efcbb1564f2)

	* packaging/FreeBSD/recoll/Makefile,
	packaging/FreeBSD/recoll/distinfo:
	1.8.1

2007-03-08 12:04 +0000  dockes    (813c82bcc951 [RECOLL_1_8_1])

	* packaging/FreeBSD/recoll/Makefile,
	packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg-
	plist, packaging/debian/changelog, packaging/rpm/recoll.spec,
	packaging/rpm/recollfedora.spec, packaging/rpm/recollmdk.spec,
	src/VERSION, src/makestaticdist.sh, website/BUGS.txt,
	website/CHANGES.txt, website/download.html:
	version 1.8.1 ?

2007-02-20 09:30 +0000  dockes    (817cdab71c1c [RECOLL_1_8_0])

	* src/recollinstall.in:
	go back to not using xdg

2007-02-20 07:57 +0000  dockes    (d1f1b31e4a58)

	* website/index.html.en, website/index.html.fr: new file.
	* website/index.html: deleted file.
	* packaging/debian/changelog, website/BUGS.txt, website/CHANGES.txt,
	website/credits.html, website/download.html, website/features.html,
	website/index.html, website/index.html.en, website/index.html.fr:
	*** empty log message ***

2007-02-20 07:43 +0000  dockes    (1f4b07f4cb62)

	* src/qtgui/recoll.pro.in:
	*** empty log message ***

2007-02-20 07:33 +0000  dockes    (dc922603c639)

	* src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_it.ts,
	src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts:
	*** empty log message ***

2007-02-20 07:19 +0000  dockes    (d6b63dc759cd)

	* src/INSTALL, src/README:
	*** empty log message ***

2007-02-19 18:15 +0000  dockes    (a1331ff143f7)

	* src/qtgui/preview_w.cpp, src/qtgui/preview_w.h:
	make shift-arrow in preview work with qt4 and avoid reentrancy while
	loading a file

2007-02-19 18:14 +0000  dockes    (66c79bcff30e)

	* src/utils/execmd.cpp:
	block sigcld, it sometimes causes eintrs during the select() call

2007-02-19 18:05 +0000  dockes    (db9e1830a040)

	* src/internfile/internfile.cpp:
	check file name not empty on return from uncomp exec

2007-02-19 16:28 +0000  dockes    (19982a948347)

	* src/qtgui/spell_w.cpp:
	stemming language choice was not observed in term explorer

2007-02-19 16:10 +0000  dockes    (26815f6c7ce0)

	* src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h:
	cleanup ign file types handling/saving

2007-02-14 15:02 +0000  dockes    (714300cb7780)

	* tests/empty/empty.sh, tests/empty/empty.txt, tests/html/html.sh,
	tests/html/html.txt, tests/images/images.sh,
	tests/images/images.txt, tests/koi8r/koi8r.sh,
	tests/koi8r/koi8r.txt, tests/mail/mail.sh, tests/mail/mail.txt,
	tests/notypes/notypes.sh, tests/notypes/notypes.txt,
	tests/rfc2231/rfc2231.sh, tests/rfc2231/rfc2231.txt,
	tests/special/special.sh, tests/special/special.txt,
	tests/txt/txt.sh, tests/txt/txt.txt, tests/utf8/utf8.sh,
	tests/utf8/utf8.txt: new file.
	* tests/empty/empty.sh, tests/empty/empty.txt, tests/html/html.sh,
	tests/html/html.txt, tests/images/images.sh,
	tests/images/images.txt, tests/koi8r/koi8r.sh,
	tests/koi8r/koi8r.txt, tests/lyx/lyx.txt, tests/mail/mail.sh,
	tests/mail/mail.txt, tests/notypes/notypes.sh,
	tests/notypes/notypes.txt, tests/rfc2231/rfc2231.sh,
	tests/rfc2231/rfc2231.txt, tests/special/special.sh,
	tests/special/special.txt, tests/txt/txt.sh, tests/txt/txt.txt,
	tests/utf8/utf8.sh, tests/utf8/utf8.txt:
	*** empty log message ***

2007-02-14 11:52 +0000  dockes    (b3f3859ce5e5)

	* tests/boolean/boolean.sh, tests/boolean/boolean.txt,
	tests/delete/delete.sh, tests/delete/delete.txt,
	tests/dirwithblanks/dirwithblanks.sh,
	tests/dirwithblanks/dirwithblanks.txt, tests/djvu/djvu.sh,
	tests/djvu/djvu.txt, tests/dvi/dvi.sh, tests/dvi/dvi.txt,
	tests/lyx/lyx.sh, tests/lyx/lyx.txt, tests/media/media.sh,
	tests/media/media.txt, tests/msword/msword.sh,
	tests/msword/msword.txt, tests/ooff/ooff.sh, tests/ooff/ooff.txt,
	tests/pdf/pdf.sh, tests/pdf/pdf.txt, tests/postscript/postscript.sh,
	tests/postscript/postscript.txt, tests/ppt/ppt.sh,
	tests/ppt/ppt.txt, tests/rtf/rtf.sh, tests/rtf/rtf.txt,
	tests/scribus/scribus.sh, tests/scribus/scribus.txt,
	tests/xls/xls.sh, tests/xls/xls.txt: new file.
	* tests/Maildir1/Maildir1.txt, tests/andor/andor.txt,
	tests/badsuffs1/badsuffs1.txt, tests/boolean/boolean.sh,
	tests/boolean/boolean.txt, tests/delete/delete.sh,
	tests/delete/delete.txt, tests/dirwithblanks/dirwithblanks.sh,
	tests/dirwithblanks/dirwithblanks.txt, tests/djvu/djvu.sh,
	tests/djvu/djvu.txt, tests/dvi/dvi.sh, tests/dvi/dvi.txt,
	tests/lyx/lyx.sh, tests/lyx/lyx.txt, tests/media/media.sh,
	tests/media/media.txt, tests/msword/msword.sh,
	tests/msword/msword.txt, tests/ooff/ooff.sh, tests/ooff/ooff.txt,
	tests/pdf/pdf.sh, tests/pdf/pdf.txt, tests/postscript/postscript.sh,
	tests/postscript/postscript.txt, tests/ppt/ppt.sh,
	tests/ppt/ppt.txt, tests/rtf/rtf.sh, tests/rtf/rtf.txt,
	tests/scribus/scribus.sh, tests/scribus/scribus.txt,
	tests/shared.sh, tests/skipped/skipped.sh,
	tests/skipped/skipped.txt, tests/xls/xls.sh, tests/xls/xls.txt:
	*** empty log message ***

2007-02-14 10:10 +0000  dockes    (04c3156fd4dd)

	* src/doc/user/usermanual.sgml, src/makestaticdist.sh,
	src/qtgui/guiutils.cpp, src/qtgui/guiutils.h,
	src/qtgui/rclmain_w.cpp, src/qtgui/uiprefs.ui,
	src/qtgui/uiprefs_w.cpp, src/recollinstall.in,
	src/sampleconf/mimeview:
	add user pref to use xdg-open for all document edits

2007-02-14 10:09 +0000  dockes    (7886dd99d419)

	* src/rcldb/rcldb.cpp:
	during indexing use simple file name as title if this is empty. This
	allows storing the sfn for subdocs for which the url sfn doesnt make
	sense as title

2007-02-14 10:08 +0000  dockes    (fb42e10e5a7b)

	* src/query/recollq.cpp:
	adjust format to help the test set scripts

2007-02-14 08:54 +0000  dockes    (5e02666b38db)

	* src/desktop/xdg-utils-1.0.1/scripts/xdg-open: new file.
	* src/desktop/xdg-utils-1.0.1/scripts/xdg-open:
	*** empty log message ***

2007-02-14 08:16 +0000  dockes    (eb0fd52ef15a)

	* tests/Maildir/Maildir.sh, tests/Maildir/Maildir.txt,
	tests/Maildir1/Maildir1.sh, tests/Maildir1/Maildir1.txt,
	tests/andor/andor.sh, tests/andor/andor.txt,
	tests/badsuffs/badsuffs.sh, tests/badsuffs/badsuffs.txt,
	tests/badsuffs1/badsuffs1.sh, tests/badsuffs1/badsuffs1.txt,
	tests/runtests.sh, tests/shared.sh, tests/skipped/skipped.sh,
	tests/skipped/skipped.txt: new file.
	* tests/Maildir/Maildir.sh, tests/Maildir/Maildir.txt,
	tests/Maildir1/Maildir1.sh, tests/Maildir1/Maildir1.txt,
	tests/andor/andor.sh, tests/andor/andor.txt,
	tests/badsuffs/badsuffs.sh, tests/badsuffs/badsuffs.txt,
	tests/badsuffs1/badsuffs1.sh, tests/badsuffs1/badsuffs1.txt,
	tests/runtests.sh, tests/shared.sh, tests/skipped/skipped.sh,
	tests/skipped/skipped.txt:
	*** empty log message ***

2007-02-13 10:58 +0000  dockes    (19c29e100995)

	* src/query/wasatorcl.cpp, src/rcldb/searchdata.cpp,
	src/rcldb/searchdata.h:
	propagate wasa nostem modifier

2007-02-12 18:16 +0000  dockes    (bf3060f2e259)

	* src/query/wasastringtoquery.cpp, src/query/wasastringtoquery.h:
	add wasabi modifiers

2007-02-12 18:14 +0000  dockes    (6ae625065d64)

	* src/qtgui/guiutils.cpp:
	dont set Helvetica as default font

2007-02-08 17:05 +0000  dockes    (f23e18da0362)

	* src/index/indexer.cpp, src/index/indexer.h,
	src/internfile/internfile.cpp, src/internfile/internfile.h,
	src/qtgui/preview_w.cpp, src/utils/smallut.cpp, src/utils/smallut.h:
	improve handling of missing helpers messages

2007-02-08 17:03 +0000  dockes    (f53e952b71cd)

	* src/filters/rcldvi:
	typos

2007-02-08 12:25 +0000  dockes    (ba982598a66f)

	* src/internfile/internfile.h, src/query/recollq.cpp:
	clarify temp dir usage in internfile

2007-02-08 09:03 +0000  dockes    (876ec27bd9c0)

	* src/qtgui/reslist.cpp, src/qtgui/uiprefs_w.cpp,
	src/qtgui/uiprefs_w.h:
	qt4 compilation glitches

2007-02-07 17:18 +0000  dockes    (2f05854b010a)

	* src/filters/injectcommon.sh, src/filters/recfiltcommon: new file.
	* src/filters/injectcommon.sh, src/filters/recfiltcommon:
	*** empty log message ***

2007-02-07 17:17 +0000  dockes    (39e4d9e07461)

	* src/recoll.desktop, src/recoll.png, src/recoll.xcf: deleted file.
	* src/recoll.desktop, src/recoll.png, src/recoll.xcf,
	src/recollinstall.in:
	use xdg scripts to install desktop file and icon

2007-02-07 17:17 +0000  dockes    (3161a2dabc0a)

	* src/common/rclconfig.cpp, src/doc/user/usermanual.sgml:
	dont autocreate config specified with -c or RECOLL_CONFDIR

2007-02-07 16:31 +0000  dockes    (f89cbedba93f)

	* src/desktop/recoll-searchgui.desktop, src/desktop/recoll-
	searchgui.png, src/desktop/recoll-searchgui.xcf, src/desktop/xdg-
	utils-1.0.1/LICENSE, src/desktop/xdg-utils-1.0.1/scripts/xdg-
	desktop-menu, src/desktop/xdg-utils-1.0.1/scripts/xdg-icon-resource:
	new file.
	* src/desktop/recoll-searchgui.desktop, src/desktop/recoll-
	searchgui.png, src/desktop/recoll-searchgui.xcf, src/desktop/xdg-
	utils-1.0.1/LICENSE, src/desktop/xdg-utils-1.0.1/scripts/xdg-
	desktop-menu, src/desktop/xdg-utils-1.0.1/scripts/xdg-icon-resource,
	src/query/recollq.cpp:
	*** empty log message ***

2007-02-07 16:31 +0000  dockes    (2494c5157c22)

	* src/aspell/rclaspell.cpp:
	improve db creation error message

2007-02-07 12:00 +0000  dockes    (3c02ca709886)

	* src/query/recollq.cpp: new file.
	* src/query/Makefile, src/query/recollq.cpp, src/query/wasatorcl.cpp,
	src/query/wasatorcl.h:
	recollq

2007-02-06 18:01 +0000  dockes    (1992c71741c0)

	* src/index/indexer.cpp, src/internfile/internfile.cpp,
	src/internfile/internfile.h, src/internfile/mh_exec.cpp,
	src/qtgui/preview_w.cpp:
	arrange for error info about missing helpers to trickle up to the
	user

2007-02-06 18:01 +0000  dockes    (d5e12cec5aeb)

	* src/sampleconf/mimeconf, src/sampleconf/mimemap:
	added config+filter for man pages

2007-02-06 15:08 +0000  dockes    (ef2eef3c33e9)

	* src/filters/rclman: new file.
	* src/filters/rcldjvu, src/filters/rcldoc, src/filters/rcldvi,
	src/filters/rclgaim, src/filters/rcllyx, src/filters/rclman,
	src/filters/rclmedia, src/filters/rclpdf, src/filters/rclppt,
	src/filters/rclps, src/filters/rclrtf, src/filters/rclscribus,
	src/filters/rclsoff, src/filters/rclxls:
	factored out filter script common code

2007-02-06 14:18 +0000  dockes    (7812fc3157a4)

	* src/common/rclconfig.cpp, src/utils/pathut.cpp, src/utils/pathut.h:
	make sure the -c argument is turned absolute before use

2007-02-06 10:19 +0000  dockes    (243d1fffdfb9)

	* src/qtgui/ssearch_w.cpp:
	no space in query -> phrase

2007-02-06 10:18 +0000  dockes    (d1b8dd6a7182)

	* src/qtgui/reslist.cpp:
	try to make sure that the old reslist is cleared while searching

2007-02-06 10:18 +0000  dockes    (24163d1804e5)

	* src/qt4gui/uifrom3:
	link images/ from qtgui to qt4gui

2007-02-03 16:46 +0000  dockes    (d27849ad572f)

	* website/styles/style.css:
	*** empty log message ***

2007-02-02 10:27 +0000  dockes    (3c82d463b36c)

	* src/doc/user/usermanual.sgml:
	add skippedPaths and daemSkippedPaths config variables

2007-02-02 10:12 +0000  dockes    (0232602ba055)

	* src/common/rclconfig.cpp, src/common/rclconfig.h,
	src/index/indexer.cpp, src/index/rclmonrcv.cpp,
	src/utils/fstreewalk.cpp:
	add skippedPaths and daemSkippedPaths config variables

2007-02-02 10:10 +0000  dockes    (12a2a255dedc)

	* src/rcldb/rcldb.cpp, src/rcldb/rcldb.h:
	sort and uniquify termMatch results out of stem expansion

2007-02-02 10:09 +0000  dockes    (344b11ebced1)

	* src/index/recollindex.cpp:
	do x11 check between sleeping and starting in recollindex -m

2007-02-02 10:06 +0000  dockes    (3a9bb20130c8)

	* src/doc/user/usermanual-italian.html: new file.
	* src/doc/user/usermanual-italian.html, src/qtgui/i18n/recoll_it.ts:
	*** empty log message ***

2007-02-02 10:06 +0000  dockes    (9a6092dbecea)

	* src/lib/Makefile, src/lib/mkMake:
	fix $(depth) usage for easier kio compilation

2007-02-02 10:05 +0000  dockes    (a645eeae729a)

	* src/doc/user/usermanual.sgml:
	added config examples

2007-02-02 10:01 +0000  dockes    (a0640e49ab3a)

	* src/recollinstall.in:
	removed old filter in examples cleanup

2007-02-01 15:01 +0000  dockes    (db53657c868d)

	* src/aspell/rclaspell.cpp, src/mk/localdefs.in:
	use configure libdir to search for aspell lib (mainly for 64 bits
	machines)

2007-02-01 12:43 +0000  dockes    (7f3d33405e53)

	* src/kde/kioslave/recoll/Makefile,
	src/kde/kioslave/recoll/kio_recoll.cpp:
	fixed kio compilation. Dont know if it works

2007-01-30 11:39 +0000  dockes    (1aa8e8c3d93a)

	* src/filters/rcldjvu, src/filters/rcldoc, src/filters/rcldvi,
	src/filters/rclpdf, src/filters/rclps, src/filters/rclrtf,
	src/filters/rclsoff:
	hide awk BEGIN statements - make debian linda happy

2007-01-29 13:51 +0000  dockes    (f207a83f0617)

	* src/rcldb/searchdata.cpp:
	more field name synonyms

2007-01-25 15:50 +0000  dockes    (ba53fd450dc5)

	* src/rcldb/searchdata.cpp, src/rcldb/searchdata.h:
	better wildcards handling. Tuning of user term boosting

2007-01-25 15:47 +0000  dockes    (026e24e9aafc)

	* src/doc/user/usermanual.sgml:
	*** empty log message ***

2007-01-25 15:47 +0000  dockes    (31cd60d81a3a)

	* src/rcldb/rcldb.cpp:
	dont explicitely anchor regexp in termMatch

2007-01-25 15:46 +0000  dockes    (8c7afe9df6fb)

	* src/qtgui/ssearch_w.cpp:
	Dont add auto phrase if there are wildcards

2007-01-25 15:45 +0000  dockes    (d35369f54699)

	* src/query/wasatorcl.cpp:
	comment

2007-01-25 15:40 +0000  dockes    (2d7b13ebd2c8)

	* src/common/textsplit.cpp:
	[] are also wildcard chars

2007-01-25 12:04 +0000  dockes    (27310036f46c)

	* src/qtgui/i18n/recoll_it.ts:
	*** empty log message ***

2007-01-25 08:27 +0000  dockes    (876d5192bdde)

	* src/qtgui/i18n/recoll_it.ts: new file.
	* src/qtgui/i18n/recoll_it.ts:
	*** empty log message ***

2007-01-24 12:40 +0000  dockes    (dd470677dbf2)

	* src/qtgui/guiutils.cpp:
	make AND the initial default for ssearch

2007-01-24 11:20 +0000  dockes    (623c6533e0f0)

	* src/qtgui/uiprefs.ui, src/qtgui/viewaction.ui:
	change MyDialog and Form1 dialog captions

2007-01-24 11:15 +0000  dockes    (9dc93d749ea8)

	* src/filters/rclscribus:
	transate \r to 
(for older scribus files) 2007-01-24 11:00 +0000 dockes (7ea73b206760) * src/sampleconf/mimeconf, src/sampleconf/mimemap: scribus scd files 2007-01-23 07:23 +0000 dockes (0f9e96c72d1c) * src/filters/rcllyx: *** empty log message *** 2007-01-23 07:22 +0000 dockes (5fc9550be90c) * src/filters/rcllyx: *** empty log message *** 2007-01-23 07:16 +0000 dockes (55734c5d16c2) * src/filters/rcllyx: *** empty log message *** 2007-01-23 07:14 +0000 dockes (dafabbcdaf1a) * src/sampleconf/mimeconf, src/sampleconf/mimemap, src/sampleconf/mimeview: lyx filter 2007-01-23 07:14 +0000 dockes (d5ac3c0cf64f) * src/filters/rcllyx: new file. * src/filters/rcllyx: lyx filter 2007-01-22 16:34 +0000 dockes (e76e39a890d0) * src/sampleconf/mimeconf, src/sampleconf/mimemap: added scribus support 2007-01-22 16:32 +0000 dockes (0b142f40e0c7) * src/filters/rclscribus: new file. * src/filters/rclscribus: added scribus support 2007-01-21 16:41 +0000 dockes (8e06e0f7914e) * src/filters/rclsoff: fix shell syntax for debian 2007-01-19 15:22 +0000 dockes (084098d57a50) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp, src/qtgui/reslist.h, src/query/docseq.h, src/query/docseqdb.cpp, src/query/docseqdb.h, src/query/docseqhist.h, src/query/sortseq.cpp, src/query/sortseq.h: try to limit the places which use Rcl:: stuff 2007-01-19 15:19 +0000 dockes (1d1bdf98f176) * src/rcldb/stemdb.cpp: make sure that both the user term and the stem are in the expanded list 2007-01-19 10:32 +0000 dockes (757f49c23d93) * src/query/docseqdb.cpp, src/query/docseqdb.h, src/query/docseqhist.cpp, src/query/docseqhist.h: new file. * src/lib/Makefile, src/lib/mkMake, src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp, src/qtgui/ssearch_w.cpp, src/query/docseq.cpp, src/query/docseq.h, src/query/docseqdb.cpp, src/query/docseqdb.h, src/query/docseqhist.cpp, src/query/docseqhist.h, src/query/sortseq.cpp, src/query/sortseq.h: cleanup docseq, arrange things so that we can page reslist past the initial result count estimate if there are more 2007-01-19 10:23 +0000 dockes (d4ecd356406a) * src/rcldb/searchdata.cpp: the relevance-boosted original term needs a prefix too 2007-01-19 10:23 +0000 dockes (cacb9b50f1cf) * src/rcldb/rcldb.cpp: adjust makeAbstract for prefixed terms 2007-01-19 10:22 +0000 dockes (95d569102c37) * src/query/wasatorcl.cpp, src/query/wasatorcl.h: add direct qstring to rcl function 2007-01-18 14:23 +0000 dockes (157d8676b256) * src/utils/mimeparse.cpp: debug msg 2007-01-18 12:09 +0000 dockes (b0647b310dec) * src/common/textsplit.cpp, src/common/textsplit.h, src/rcldb/searchdata.cpp: handle wildcards in search terms 2007-01-17 14:06 +0000 dockes (65d2617d690c) * src/query/Makefile, src/query/wasatorcl.cpp: *** empty log message *** 2007-01-17 13:53 +0000 dockes (82c00cf9d054) * src/internfile/internfile.cpp, src/internfile/mh_html.cpp, src/internfile/mh_mail.cpp, src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h, src/lib/Makefile, src/lib/mkMake, src/query/Makefile, src/query/wasastringtoquery.cpp, src/query/wasastringtoquery.h, src/query/wasatorcl.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldoc.h, src/rcldb/searchdata.cpp, src/rcldb/searchdata.h: added field/prefixes for author and title + command line query language 2007-01-16 10:58 +0000 dockes (f56d8a303798) * src/sampleconf/recoll.conf.in: add recollrc to skipped 2007-01-16 10:58 +0000 dockes (a28d7ea5359b) * website/BUGS.txt, website/CHANGES.txt, website/download.html, website/index.html: 1.7.5 2007-01-16 10:58 +0000 dockes (83b10dc2e5ea) * src/bincimapmime/trbinc.cc, src/utils/debuglog.cpp: wrong copyrights 2007-01-16 10:56 +0000 dockes (e51d7ee21ffd) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/rpm/recoll.spec, packaging/rpm/recollfedora.spec, packaging/rpm/recollmdk.spec: 1.7.5 packaging 2007-01-16 09:22 +0000 dockes (7f8fea3bed13) * packaging/debian/manpages: deleted file. * packaging/debian/changelog, packaging/debian/control, packaging/debian/copyright, packaging/debian/manpages, packaging/debian/rules: 2007-01-12 comments 2007-01-15 19:16 +0000 dockes (740528a1cd7d) * packaging/debian/dirs: deleted file. * packaging/debian/dirs: *** empty log message *** 2007-01-15 13:06 +0000 dockes (12e31e690f9e) * src/internfile/internfile.cpp, src/internfile/internfile.h: dont stop processing a complex document on the first next_document error: pop level and go on 2007-01-15 13:03 +0000 dockes (6d3f8a71e602) * src/doc/user/usermanual.sgml: *** empty log message *** 2007-01-13 15:21 +0000 dockes (b04adc5188d5) * src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h: improved external index dialog with listview 2007-01-13 14:41 +0000 dockes (f9567f0fed32) * src/query/xadump.cpp: add option to dump raw terms 2007-01-13 10:28 +0000 dockes (fc890008108f) * src/internfile/mh_mail.cpp: handle multipart/signed 2007-01-12 09:01 +0000 dockes (1782d39f9d4d) * src/qtgui/reslist.cpp: Use sample from Rcl::Doc if makeAbstract() fails 2007-01-12 06:42 +0000 dockes (8223a4aa9ad4) * packaging/debian/copyright: include gpl statement 2007-01-10 16:03 +0000 dockes (66247acdb470) * packaging/debian/changelog, packaging/debian/compat, packaging/debian/control, packaging/debian/copyright, packaging/debian/dirs, packaging/debian/docs, packaging/debian/manpages, packaging/debian/menu, packaging/debian/rules, packaging/debian/watch: new file. * packaging/debian/changelog, packaging/debian/compat, packaging/debian/control, packaging/debian/copyright, packaging/debian/dirs, packaging/debian/docs, packaging/debian/manpages, packaging/debian/menu, packaging/debian/rules, packaging/debian/watch, src/Makefile.in, src/VERSION: *** empty log message *** 2007-01-10 12:27 +0000 dockes (733bc11b5526) * packaging/FreeBSD/recoll/Makefile: *** empty log message *** 2007-01-09 15:34 +0000 dockes (9583ff723edf [RECOLL_1_7_3]) * packaging/rpm/recollfedora.spec: new file. * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- descr, packaging/FreeBSD/recoll/pkg-plist, packaging/rpm/recoll.spec, packaging/rpm/recollfedora.spec, packaging/rpm/recollmdk.spec: 1.7.3 2007-01-09 14:39 +0000 dockes (f108471cd099) * website/BUGS.txt, website/CHANGES.txt, website/download.html: 1.7.3 2007-01-09 07:25 +0000 dockes (e0c1d14a73c5) * src/VERSION: *** empty log message *** 2007-01-09 07:25 +0000 dockes (f06dbc019ff4) * src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts: french messages 2007-01-08 15:21 +0000 dockes (906e56e99e81) * src/VERSION, src/qtgui/main.cpp: initial indexation with gui would not work 2007-01-08 13:00 +0000 dockes (44d2b5d58ac6 [RECOLL_1_7_1]) * src/VERSION: 1.7.1 2007-01-08 12:43 +0000 dockes (2cb748432b10) * src/qtgui/advsearch.ui: lost sizers? 2007-01-08 10:11 +0000 dockes (67c4375292e5) * src/qtgui/rclmain_w.cpp: fix the previous icon fix 2007-01-08 10:01 +0000 dockes (8eb24fe9db4f) * src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h: reslist menu openParent opens containing folder if not a subdoc 2007-01-08 09:40 +0000 dockes (b38401a650c3) * src/qtgui/uiprefs.ui: fix resizing of prefs dialog 2007-01-08 07:02 +0000 dockes (5a2fb87a2c55) * src/qtgui/rclmain_w.cpp: get rid of messages about missing d_xxx images 2007-01-08 07:01 +0000 dockes (8a2c6d2cba46) * src/qtgui/reslist.cpp: synthetic abstracts not displayed 2006-12-24 08:07 +0000 dockes (e42dca990bea [RECOLL_1_7_0]) * src/Makefile.in: better cleanup -> 1.7.0 NOW 2006-12-24 08:02 +0000 dockes (916d6e831996 [RECOLL_1_7_2]) * packaging/FreeBSD/recoll/pkg-plist, src/excludefile, website/BUGS.txt, website/CHANGES.txt, website/download.html, website/features.html, website/index.html, website/pics/index.html, website/rclidxfmt.html: 1.7.0 2006-12-24 07:53 +0000 dockes (b37a6e3566b9) * src/INSTALL, src/README, src/doc/user/usermanual.sgml: *** empty log message *** 2006-12-24 07:40 +0000 dockes (69573fe97b89) * src/configure, src/configure.ac, src/doc/man/recollindex.1, src/doc/user/usermanual.sgml, src/index/rclmon.h, src/index/rclmonprc.cpp, src/index/recollindex.cpp: option -x to disable x11 session monitoring 2006-12-23 13:07 +0000 dockes (fb731b7d3ab1) * src/configure, src/configure.ac, src/index/Makefile, src/index/rclmonprc.cpp, src/lib/Makefile, src/lib/mkMake, src/mk/localdefs.in, src/utils/pathut.cpp: x11 session end detection 2006-12-23 12:23 +0000 dockes (00532204c17f) * src/utils/x11mon.cpp, src/utils/x11mon.h: new file. * src/utils/Makefile, src/utils/x11mon.cpp, src/utils/x11mon.h: *** empty log message *** 2006-12-22 16:48 +0000 dockes (ee878b9d311e) * src/qt4gui/recoll.qrc, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/spell_w.cpp: get all icons out of .ui files to avoid qt4 startup messages 2006-12-22 11:01 +0000 dockes (078acb3ab4fd) * src/doc/man/recollindex.1, src/doc/user/usermanual.sgml, src/qtgui/spell_w.h: *** empty log message *** 2006-12-21 10:08 +0000 dockes (d36d26d5b5d5) * src/index/rclmonprc.cpp: try to be more responsive to interruptions 2006-12-21 09:22 +0000 dockes (818387de5d92) * src/index/indexer.cpp, src/index/rclmonrcv.cpp, src/index/recollindex.cpp, src/sampleconf/mimemap, src/utils/fstreewalk.cpp: always skip indexing of confdir and dbdir. start index monitor with normal indexing pass 2006-12-21 09:21 +0000 dockes (13c7229ee6dc) * src/qtgui/advsearch.ui, src/qtgui/ssearchb.ui: tooltips 2006-12-21 08:22 +0000 dockes (c1e9892c3ba1) * src/utils/fstreewalk.cpp, src/utils/fstreewalk.h: add skipped paths 2006-12-20 14:28 +0000 dockes (f580e9aa026a) * src/internfile/internfile.cpp: msg 2006-12-20 14:09 +0000 dockes (e3d7f975546f) * src/qtgui/preview_w.cpp: try to improve error message for internfile failure 2006-12-20 13:55 +0000 dockes (0a07075dd464) * src/qtgui/preview_w.cpp, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h: reslist: added menu entry to see parent doc of attachment 2006-12-20 13:12 +0000 dockes (733a59947cfb) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/sampleconf/mimeconf: mime categories 2006-12-20 10:47 +0000 dockes (591625eb1d38) * src/INSTALL, src/README: *** empty log message *** 2006-12-20 09:54 +0000 dockes (c563fb138893) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/doc/user/usermanual.sgml, src/index/mimetype.cpp: changed stopsuffixes processing 2006-12-20 09:41 +0000 dockes (64488c2687be) * src/index/recollindex.cpp: opt -e 2006-12-19 12:38 +0000 dockes (6d4a0c0f8cc3) * src/qtgui/spell_w.cpp: qt4 2006-12-19 12:11 +0000 dockes (a3e7c86f79d7) * src/qtgui/spell.ui, src/qtgui/spell_w.cpp, src/qtgui/spell_w.h, src/qtgui/ssearch_w.cpp, src/qtgui/viewaction.ui, src/qtgui/viewaction_w.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/searchdata.cpp, src/rcldb/stemdb.cpp, src/rcldb/stemdb.h, src/utils/smallut.cpp, src/utils/smallut.h: merge stemExpand into termExpand. return term frequencies from there and display in spellW 2006-12-19 08:40 +0000 dockes (3bbff3062a89) * src/common/rclconfig.cpp, src/index/indexer.cpp, src/index/mimetype.cpp, src/index/mimetype.h, src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/mimehandler.cpp, src/qtgui/preview_w.cpp, src/sampleconf/mimeconf, src/sampleconf/mimeview: index directory names 2006-12-19 07:48 +0000 dockes (7301c237649a) * src/qtgui/mtpics/folder.png: new file. * src/qtgui/mtpics/folder.png: *** empty log message *** 2006-12-18 16:45 +0000 dockes (0a640477a752) * src/qt4gui/recoll.pro.in, src/qtgui/viewaction.ui, src/qtgui/viewaction_w.cpp, src/qtgui/viewaction_w.h: qt4 2006-12-18 12:06 +0000 dockes (5f17ab347621) * src/doc/user/usermanual.sgml, src/internfile/mh_mail.cpp, src/utils/smallut.cpp, src/utils/smallut.h: mh_mail needs to lowercase contentypes 2006-12-18 12:05 +0000 dockes (03363b562546) * src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/viewaction_w.cpp, src/qtgui/viewaction_w.h: dblclick to edit in viewAction 2006-12-16 15:39 +0000 dockes (a3027dd4b920) * src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/mh_html.h, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h, src/internfile/mh_text.h, src/internfile/mimehandler.h, src/qtgui/main.cpp, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h: mail attachments sort of ok 2006-12-16 15:31 +0000 dockes (7d335e595c2b) * src/utils/pathut.cpp, src/utils/pathut.h: added TempFile class 2006-12-16 15:30 +0000 dockes (89fed05a6ace) * src/internfile/Filter.h: *** empty log message *** 2006-12-16 15:30 +0000 dockes (5f74c84fa800) * src/index/indexer.cpp: dont clobber utf8fn from filter 2006-12-16 15:30 +0000 dockes (b5f77fb6530b) * src/common/rclconfig.cpp, src/common/rclconfig.h: added getSuffixFromMimeType() 2006-12-16 07:15 +0000 dockes (ef72575e285c) * src/internfile/Filter.h: *** empty log message *** 2006-12-15 16:33 +0000 dockes (df6232340341) * src/index/indexer.cpp, src/internfile/Filter.h, src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/mh_html.cpp, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h, src/internfile/myhtmlparse.h: test data indexing result same terms as 1.6.3 2006-12-15 12:40 +0000 dockes (5156a319f219) * src/internfile/Filter.h, src/internfile/mh_mbox.cpp, src/internfile/mh_mbox.h: new file. * src/internfile/Filter.h, src/internfile/Makefile, src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/mh_exec.cpp, src/internfile/mh_exec.h, src/internfile/mh_html.cpp, src/internfile/mh_html.h, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h, src/internfile/mh_mbox.cpp, src/internfile/mh_mbox.h, src/internfile/mh_text.cpp, src/internfile/mh_text.h, src/internfile/mh_unknown.h, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/internfile/myhtmlparse.h, src/lib/Makefile, src/lib/mkMake, src/utils/smallut.cpp, src/utils/smallut.h: Dijon filters 1st step: mostly working needs check and optim 2006-12-14 14:54 +0000 dockes (2f7d4fb90b31) * src/rcldb/rcldoc.h: new file. * src/rcldb/rcldb.h, src/rcldb/rcldoc.h: split rcldb.h -> rcldoc.h 2006-12-14 13:53 +0000 dockes (839454238284) * src/qtgui/viewaction.ui, src/qtgui/viewaction_w.cpp, src/qtgui/viewaction_w.h, src/sampleconf/mimeview: new file. * src/common/rclconfig.cpp, src/common/rclconfig.h, src/doc/user/usermanual.sgml, src/index/indexer.cpp, src/qtgui/preview_w.cpp, src/qtgui/rclmain_w.cpp, src/qtgui/recoll.pro.in, src/qtgui/ssearch_w.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h, src/qtgui/viewaction.ui, src/qtgui/viewaction_w.cpp, src/qtgui/viewaction_w.h, src/recollinstall.in, src/sampleconf/mimeconf, src/sampleconf/mimeview, src/utils/Makefile, src/utils/conftree.cpp, src/utils/conftree.h, src/utils/execmd.cpp, src/utils/execmd.h, src/utils/pathut.cpp, src/utils/pathut.h, src/utils/smallut.cpp, src/utils/smallut.h: created mimeview and the viewer conf edit dialog 2006-12-13 09:13 +0000 dockes (ca4c21f5ad44) * src/common/rclconfig.cpp, src/internfile/internfile.cpp, src/internfile/mh_exec.cpp, src/internfile/mimehandler.cpp: move findFilter usage out of mh_exec 2006-12-11 14:56 +0000 dockes (dd4f283c9753 [BEFORE_Dijon20061215]) * src/qtgui/plaintorich.cpp: not calling textsplit with onlyspans improves highlighting 2006-12-11 14:50 +0000 dockes (c6d552528f6c) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/index/mimetype.cpp, src/utils/smallut.cpp, src/utils/smallut.h: rationalize stopsuffix list usage 2006-12-11 09:05 +0000 dockes (87037320fddf) * packaging/FreeBSD/recoll/pkg-plist: try to cleanup the share/icons tree 2006-12-10 17:03 +0000 dockes (0d0fec69b4e4 [MAPSTRMAPSTRSTR]) * src/query/wasastringtoquery.cpp, src/query/wasastringtoquery.h, src/query/wasatorcl.cpp, src/query/wasatorcl.h: added sort and type specs parsing 2006-12-08 17:18 +0000 dockes (9d443b2ad416) * src/query/wasatorcl.h: 1st query 2006-12-08 10:54 +0000 dockes (dc4914858b42) * src/query/wasastringtoquery.cpp, src/query/wasastringtoquery.h: *** empty log message *** 2006-12-08 07:11 +0000 dockes (df1ce4c7c9bf) * src/common/textsplit.cpp, src/common/textsplit.h, src/qtgui/ssearch_w.cpp: only autophrase if query has several terms 2006-12-08 06:45 +0000 dockes (6b96cd852343) * src/qtgui/ssearch_w.cpp: make autophrase do the right thing: add a subclause, not modify the query string 2006-12-07 16:38 +0000 dockes (e0b7c11d4054) * src/query/qtry.cpp, src/query/qxtry.cpp: deleted file. * src/query/Makefile, src/query/qtry.cpp, src/query/qxtry.cpp, src/query/xadump.cpp: removed qtry and merged qxtry into xadump 2006-12-07 13:24 +0000 dockes (11f50dc2ced9) * src/rcldb/rcldb.cpp: comment 2006-12-07 13:14 +0000 dockes (0137bc80c8a5) * website/rclidxfmt.html: new file. * website/rclidxfmt.html: *** empty log message *** 2006-12-07 13:02 +0000 dockes (e36e165c1055) * src/rcldb/rcldb.cpp: comments 2006-12-07 08:23 +0000 dockes (6bdb3421d1ca) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- plist: 1.6.3 2006-12-07 08:06 +0000 dockes (2ca80dafce2a) * src/internfile/mh_mail.cpp: fix bug with bad message "From " delimiter detection 2006-12-07 07:07 +0000 dockes (92354b8e641a) * src/qtgui/rclmain_w.cpp, src/utils/mimeparse.h, src/utils/smallut.cpp, src/utils/smallut.h: fix pb with executing viewer for files with single-quotes in pathnames 2006-12-07 07:06 +0000 dockes (b415958c3148) * src/internfile/mh_mail.cpp: fix bug with bad message "From " delimiter detection 2006-12-05 15:25 +0000 dockes (451489717e47) * src/internfile/mh_mail.cpp: use regexp to better discriminate From delimiter lines in mbox. Avoid reading mboxes twice 2006-12-05 15:23 +0000 dockes (282880e83069) * src/qtgui/advsearch.ui, src/qtgui/main.cpp, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h, src/qtgui/sort.ui, src/qtgui/sort_w.cpp, src/qtgui/sort_w.h: avoid generating abstracts before theyre needed (ie: not during sort). have the sort tools redisplay the results when sort criteria are applied 2006-12-05 15:18 +0000 dockes (069f87c83682) * src/query/sortseq.cpp, src/query/sortseq.h: use refcntr to access docsequence 2006-12-05 15:17 +0000 dockes (f7bad3e61904) * src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: expose abstract synthesis to let users decide when they want it done 2006-12-05 15:17 +0000 dockes (57148c851c44) * src/rcldb/searchdata.h: clauseCount 2006-12-05 15:16 +0000 dockes (d6d5ee7b750b) * src/utils/refcntr.h: fix pbs with empty object 2006-12-04 09:56 +0000 dockes (1173f38c9de4) * src/configure, src/configure.ac, src/qtgui/advsearch_w.h, src/qtgui/main.cpp, src/qtgui/preview_w.h, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/sort_w.h, src/qtgui/spell_w.h, src/qtgui/ssearch_w.h, src/qtgui/uiprefs_w.h, src/utils/refcntr.h: qt4 compiles and sort of works 2006-12-04 09:49 +0000 dockes (00bc69d47f20) * src/qt4gui/recoll.qrc, src/qt4gui/uifrom3: new file. * src/qt4gui/recoll.pro.in, src/qt4gui/recoll.qrc, src/qt4gui/uifrom3: *** empty log message *** 2006-12-04 08:17 +0000 dockes (c92f84765756) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/qtgui/sort_w.cpp, src/qtgui/ssearch_w.cpp, src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h: compiles (doesnt work) on qt4 2006-12-04 06:19 +0000 dockes (5a7d6794967e) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/guiutils.cpp, src/qtgui/main.cpp, src/qtgui/preview.ui, src/qtgui/preview_w.h, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h, src/qtgui/searchclause_w.cpp, src/qtgui/searchclause_w.h, src/qtgui/sort_w.h, src/qtgui/spell.ui, src/qtgui/spell_w.h, src/qtgui/ssearch_w.h, src/qtgui/ssearchb.ui, src/qtgui/uiprefs_w.h: qt4 ckpt 2006-12-02 07:32 +0000 dockes (45564d318a93) * src/utils/idfile.cpp: improved tests to check for mail 2006-12-01 10:05 +0000 dockes (8c3b51bc117f) * src/query/xadump.cpp: *** empty log message *** 2006-11-30 18:12 +0000 dockes (e41c0db701ae) * src/query/wasastringtoquery.cpp, src/query/wasastringtoquery.h, src/query/wasatorcl.cpp, src/query/wasatorcl.h: new file. * src/query/wasastringtoquery.cpp, src/query/wasastringtoquery.h, src/query/wasatorcl.cpp, src/query/wasatorcl.h: *** empty log message *** 2006-11-30 13:44 +0000 dockes (5ef831ae4659) * website/download.html: *** empty log message *** 2006-11-30 13:38 +0000 dockes (6e49658236c6) * src/qtgui/images/cancel.png, src/qtgui/images/close.png: new file. * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- plist, packaging/rpm/recoll.spec, packaging/rpm/recollmdk.spec, src/README, src/aspell/rclaspell.cpp, src/doc/user/usermanual.sgml, src/index/indexer.cpp, src/index/indexer.h, src/makesrcdist.sh, src/makestaticdist.sh, src/mk/SunOS, src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts, src/qtgui/images/cancel.png, src/qtgui/images/close.png, src/qtgui/main.cpp, src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/preview.ui, src/qtgui/preview_w.cpp, src/qtgui/rclmain.ui, src/qtgui/recoll.pro.in, src/qtgui/reslist.cpp, src/qtgui/searchclause_w.cpp, src/qtgui/spell_w.cpp, src/qtgui/ssearch_w.cpp, src/qtgui/ssearchb.ui, src/rcldb/searchdata.cpp, src/recoll.desktop, src/recollinstall.in, src/sampleconf/recoll.conf.in, src/utils/execmd.cpp, src/utils/mimeparse.cpp, src/utils/smallut.cpp, website/BUGS.txt, website/CHANGES.txt, website/download.html, website/features.html, website/index.html: merged 1.6 maint branch modifs up to MERGED_TO_TRUNK_20061130 2006-11-22 09:29 +0000 dockes (568c34cf75e9) * src/VERSION, website/BUGS.txt, website/CHANGES.txt, website/credits.html, website/download.html: *** empty log message *** 2006-11-21 14:00 +0000 dockes (f247e019bf08 [RECOLL_1_6_0]) * src/INSTALL, src/README: *** empty log message *** 2006-11-21 13:05 +0000 dockes (23604b23773d) * src/aspell/rclaspell.cpp, src/configure, src/configure.ac: mdk 2006 aspell quirks 2006-11-21 09:18 +0000 dockes (17597459707c) * packaging/FreeBSD/recoll/pkg-plist, packaging/rpm/recoll.spec, packaging/rpm/recollmdk.spec, src/doc/user/usermanual.sgml, src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts, website/BUGS.txt, website/CHANGES.txt, website/copydocs, website/download.html, website/index.html: *** empty log message *** 2006-11-21 08:47 +0000 dockes (f434e776fec8) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/spell.ui, src/qtgui/spell_w.cpp, src/qtgui/spell_w.h, src/qtgui/uiprefs_w.cpp: added stem expansion mode to term explorer 2006-11-20 18:07 +0000 dockes (bc85af9f678c) * src/doc/man/recoll.conf.5, src/doc/man/recollindex.1, src/doc/user/usermanual.sgml: doc 2006-11-20 17:46 +0000 dockes (28cb0d8c325a) * src/doc/user/usermanual.sgml: *** empty log message *** 2006-11-20 17:06 +0000 dockes (9252428377e4) * src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts: *** empty log message *** 2006-11-20 15:35 +0000 dockes (192c101b8b7c) * src/qtgui/advsearch.ui: tooltip 2006-11-20 15:29 +0000 dockes (73ca6e78a1dd) * src/filters/rclxls, src/utils/transcode.cpp: *** empty log message *** 2006-11-20 15:28 +0000 dockes (9bb875d3bfcf) * src/rcldb/rcldb.cpp: clear abstract if its only ... 2006-11-20 15:28 +0000 dockes (5ef1b603c3be) * src/common/rclconfig.cpp: test driver 2006-11-20 15:28 +0000 dockes (1c4807a363f9) * src/common/rclconfig.h: fix defaultcharset reset 2006-11-20 11:17 +0000 dockes (ef95275586d1) * src/common/Makefile, src/common/textsplit.cpp, src/common/textsplit.h: improved textsplit speed (needs utf8iter modifs too 2006-11-20 11:16 +0000 dockes (e05653621eb4) * src/utils/Makefile, src/utils/utf8iter.cpp, src/utils/utf8iter.h: cleaned and speeded up utf8iter 2006-11-19 18:37 +0000 dockes (756bc7569b34) * src/common/textsplit.cpp, src/common/textsplit.h: optim ckpt 2006-11-18 12:56 +0000 dockes (bf6e4de3a902) * src/qtgui/plaintorich.cpp: firsttermocc init was not always done 2006-11-18 12:31 +0000 dockes (1703e5a7b03e) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/preview_w.cpp, src/qtgui/reslist.cpp: improve positionning on term groups by storing/passing an occurrence index 2006-11-18 12:30 +0000 dockes (f065c8063ff3) * src/rcldb/searchdata.cpp: correctly generate highlighting term groups when stem-expanding NEAR queries 2006-11-17 15:26 +0000 dockes (ee4a13877b24) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h: Save adv search clause list + add delete button 2006-11-17 12:55 +0000 dockes (679a2cb3d3e7) * src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h: get shift+clicklink to open new preview window instead of tab 2006-11-17 12:32 +0000 dockes (51f7db5eff83) * src/qtgui/plaintorich.cpp: small opts + fixed near region detection code 2006-11-17 12:31 +0000 dockes (c0ba08efc3dd) * src/qtgui/plaintorich.h: comments 2006-11-17 12:31 +0000 dockes (e54183706237) * src/utils/utf8iter.h: removed not strictly needed error checking code 2006-11-17 10:09 +0000 dockes (7e44d4280e2d) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp, src/qtgui/reslist.h: Remember searchData and use it in plaintorich for phrase/group highlighting 2006-11-17 10:08 +0000 dockes (c175799e9e72) * src/qtgui/advsearch_w.cpp: better data encap in searchdata 2006-11-17 10:06 +0000 dockes (0ea302968170) * src/rcldb/rcldb.cpp, src/rcldb/searchdata.cpp, src/rcldb/searchdata.h: added code to remember search terms and term groups in searchdata 2006-11-15 14:57 +0000 dockes (188b5b28427d) * src/common/Makefile, src/lib/Makefile, src/lib/mkMake, src/mk/commondefs, src/qtgui/recoll.pro.in, src/rcldb/pathhash.cpp, src/rcldb/pathhash.h, src/rcldb/rcldb.cpp, src/rcldb/searchdata.h, src/rcldb/stemdb.h: distributed files from common/ into rcld, internfile, common 2006-11-15 07:27 +0000 dockes (5bfc0444c072) * src/internfile/Makefile: new file. * src/internfile/Makefile: *** empty log message *** 2006-11-14 18:29 +0000 dockes (c45d7a2b1c63) * src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h: got rid of the static clause names 2006-11-14 18:17 +0000 dockes (e4789b229585) * src/qtgui/advsearch.ui: *** empty log message *** 2006-11-14 17:56 +0000 dockes (ae916c13c591) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp: added conjunction choice in advsearch 2006-11-14 17:41 +0000 dockes (dfc71f06c1ce) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/searchclause_w.cpp, src/qtgui/searchclause_w.h, src/rcldb/searchdata.cpp: use SearchClauseW for all advsearch fields 2006-11-14 15:13 +0000 dockes (300f3705d6cf) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp: *** empty log message *** 2006-11-14 14:58 +0000 dockes (c5f65c6f8fb9) * src/qtgui/recoll.pro.in: *** empty log message *** 2006-11-14 13:55 +0000 dockes (9e98c3d86016) * src/qtgui/searchclause_w.cpp, src/qtgui/searchclause_w.h: new file. * src/doc/user/usermanual.sgml, src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/rclmain_w.cpp, src/qtgui/searchclause_w.cpp, src/qtgui/searchclause_w.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/searchdata.cpp, src/rcldb/searchdata.h: added dynamic clauses to adv search. Still needs work 2006-11-13 14:51 +0000 dockes (5c9db8d08690) * src/rcldb/rcldb.cpp: *** empty log message *** 2006-11-13 14:48 +0000 dockes (edec86240778) * src/rcldb/rcldb.cpp: use wdfs for better selection of doc extracts in makeAbstract 2006-11-13 11:59 +0000 dockes (fdf0f43cd03e) * src/utils/smallut.h: *** empty log message *** 2006-11-13 08:58 +0000 dockes (c48e54f96603) * src/utils/refcntr.h: new file. * src/utils/refcntr.h: *** empty log message *** 2006-11-13 08:58 +0000 dockes (40853ad94507) * src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/reslist.cpp, src/qtgui/reslist.h, src/qtgui/ssearch_w.cpp, src/qtgui/ssearch_w.h: make searchdata a more flexible struct 2006-11-13 08:50 +0000 dockes (e585bfd6e725) * src/rcldb/searchdata.cpp: new file. * src/lib/Makefile, src/lib/mkMake, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/searchdata.cpp, src/rcldb/searchdata.h: make searchdata a more flexible struct 2006-11-13 08:49 +0000 dockes (db3490f9b522) * src/kde/kioslave/recoll/kio_recoll.cpp: *** empty log message *** 2006-11-13 08:15 +0000 dockes (7240ec62ffac) * src/qtgui/plaintorich.cpp: new splitter interface 2006-11-12 08:35 +0000 dockes (ff9f3aed6a5b) * src/common/textsplit.cpp, src/common/textsplit.h, src/rcldb/rcldb.cpp: phrase queries with bot spans and words must be splitted as words only 2006-11-11 15:30 +0000 dockes (25647c7c5aac) * src/qtgui/reslist.cpp, src/qtgui/uiprefs.ui: have more compact list header + %N 2006-11-10 17:53 +0000 dockes (d423490bea37) * src/qtgui/reslist.cpp: Really use the rich abstracts 2006-11-10 17:18 +0000 dockes (9fc1a2d1b7af) * src/rcldb/rcldb.cpp: optimized abstract building: bybye big vector 2006-11-10 13:32 +0000 dockes (8cfbbddd355a) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/rclmain_w.cpp, src/qtgui/reslist.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp: make result list paragraph format user-adjustable 2006-11-10 13:30 +0000 dockes (933509968125) * src/utils/smallut.cpp, src/utils/smallut.h: pcSubst() 2006-11-10 13:29 +0000 dockes (17e0ecfb5834) * src/internfile/internfile.cpp: errlog 2006-11-09 19:04 +0000 dockes (814af75ba7a8) * src/qtgui/preview_w.cpp: better handle the situation of mbox file name matching search 2006-11-09 17:38 +0000 dockes (3c996d97497a) * src/Makefile.in: *** empty log message *** 2006-11-09 17:37 +0000 dockes (c13aab8ac186) * src/qtgui/reslist.cpp: nbsp to prevent line date wrap before tz 2006-11-09 17:37 +0000 dockes (573934250b27) * src/rcldb/rcldb.cpp: dont continue adding ellipsis into the abstract when its maxlen! 2006-11-09 08:59 +0000 dockes (baafe52b9d1b) * src/utils/mimeparse.cpp: test driver modifs 2006-11-08 15:34 +0000 dockes (025fa484738a) * src/common/rclinit.cpp, src/utils/debuglog.cpp, src/utils/debuglog.h: fix pb with special log file names 2006-11-08 15:32 +0000 dockes (a32333c18e9f) * src/configure, src/configure.ac: aspell help string 2006-11-08 13:04 +0000 dockes (f5f0e953f42e) * src/qtgui/plaintorich.cpp: use vector instead of list for positions 2006-11-08 07:22 +0000 dockes (de7777528655) * src/common/rclinit.cpp, src/common/rclinit.h, src/index/recollindex.cpp: allow daemon-specific log parameters 2006-11-08 06:56 +0000 dockes (451b31555bc2) * src/utils/conftree.cpp, src/utils/conftree.h: volatile conf 2006-11-08 06:49 +0000 dockes (ba1e8fb12e39) * src/recollinstall.in: install rclmon.sh 2006-11-07 18:28 +0000 dockes (fb26679a6cec) * src/qtgui/reslist.cpp, src/utils/mimeparse.cpp: 1.5.9: fix bad tz correction in email dates + display tz in reslist 2006-11-07 16:51 +0000 dockes (affd0b42e8ae) * src/index/rclmon.h, src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp: traces 2006-11-07 12:02 +0000 dockes (70ed645d27f3) * src/rcldb/rcldb.cpp: use both size and mtime changes as updateneeding indicator 2006-11-07 09:11 +0000 dockes (2491b468f55d) * src/qtgui/uiprefs.ui: improved autophrase tooltip 2006-11-07 09:04 +0000 dockes (ba7c28e1a205) * src/qtgui/uiprefs_w.cpp: Cancel did not reset uiprefs dialog to stored state 2006-11-07 08:57 +0000 dockes (c9f2b8c02171) * src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h: Cancel did not reset uiprefs dialog to stored state 2006-11-07 06:41 +0000 dockes (fea8781e4829) * src/index/indexer.cpp: record/show mtime instead of ctime 2006-11-06 17:37 +0000 dockes (a82b3932ac69) * src/doc/user/usermanual.sgml, src/qtgui/rclmain.ui, src/qtgui/spell_w.cpp, src/rcldb/rcldb.cpp: wrote manual for term explorer and fixed a few problems 2006-11-05 21:10 +0000 dockes (f4fc6544cb74) * src/bincimapmime/mime-parsefull.cc: fix binc imap infinite loop on multipart with null boundary 2006-11-05 18:02 +0000 dockes (9306096cb34f) * src/bincimapmime/depot.h, src/bincimapmime/session.h: deleted file. * src/bincimapmime/address.cc, src/bincimapmime/address.h, src/bincimapmime/convert.cc, src/bincimapmime/convert.h, src/bincimapmime/depot.h, src/bincimapmime/iodevice.cc, src/bincimapmime/iodevice.h, src/bincimapmime/iofactory.h, src/bincimapmime/mime-getpart.cc, src/bincimapmime/mime- inputsource.h, src/bincimapmime/mime-parsefull.cc, src/bincimapmime /mime-parseonlyheader.cc, src/bincimapmime/mime-printbody.cc, src/bincimapmime/mime-printdoc.cc, src/bincimapmime/mime- printheader.cc, src/bincimapmime/mime-utils.h, src/bincimapmime/mime.cc, src/bincimapmime/mime.h, src/bincimapmime/session.h: included bincimap 1.3.3 to 1.3.4 diffs (mostly cosmetic) 2006-11-04 17:09 +0000 dockes (3e0e0d4b152f) * src/qtgui/spell.ui, src/qtgui/spell_w.cpp: fix aspell version of term explorer 2006-11-04 14:49 +0000 dockes (7f914235875b) * src/qtgui/ssearch_w.cpp, src/qtgui/ssearch_w.h: change ctrl-tab to esc-spc 2006-10-30 12:59 +0000 dockes (2454d0c418a2) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/rclmain_w.cpp, src/qtgui/spell.ui, src/qtgui/spell_w.cpp, src/qtgui/ssearch_w.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: Turn spell tool into multimode spell/wild/regexp 2006-10-25 11:50 +0000 dockes (66843e6e167c) * src/index/indexer.cpp: make tmpdir only once 2006-10-25 10:52 +0000 dockes (10c2b1b74822) * src/index/indexer.cpp, src/index/rclmon.h, src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp, src/rcldb/rcldb.cpp: added some debugging msgs (too much) 2006-10-24 15:16 +0000 dockes (1fc3f90d5ee3) * src/mk/Darwin: *** empty log message *** 2006-10-24 14:28 +0000 dockes (33512e5ceddb) * src/index/indexer.cpp, src/index/indexer.h, src/index/rclmon.h, src/index/rclmonprc.cpp, src/index/recollindex.cpp: create stemming db on queue timeout if needed 2006-10-24 13:22 +0000 dockes (21df8a0f4856) * src/index/rclmon.sh: new file. * src/index/rclmon.sh: *** empty log message *** 2006-10-24 12:48 +0000 dockes (4af32c44f8ea) * src/index/rclmon.h, src/index/rclmonprc.cpp: setup lockfile for monitor 2006-10-24 11:42 +0000 dockes (f922b4dda121) * src/query/Makefile: *** empty log message *** 2006-10-24 11:42 +0000 dockes (f1da6521f1ff) * src/qtgui/ssearch_w.cpp: explain error for C-TAB too many expansions 2006-10-24 09:28 +0000 dockes (3228b6b8093a) * src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: fix slowness in needUpdate by using Database instead of WritableDatabase 2006-10-24 09:09 +0000 dockes (0d72c341e2eb) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/index/indexer.cpp, src/index/rclmonrcv.cpp: centralize skippedNames computation to add dbdir always 2006-10-23 15:01 +0000 dockes (6a07dc59db99) * src/index/rclmon.h, src/index/rclmonrcv.cpp: handle directory creation 2006-10-23 15:00 +0000 dockes (672e4b4bfe51) * src/utils/pathut.cpp, src/utils/pathut.h: add path_isdir() 2006-10-23 14:29 +0000 dockes (d395ca679c7a) * src/common/autoconfig.h.in, src/configure, src/configure.ac, src/index/rclmonrcv.cpp: raw inotify support 2006-10-22 15:55 +0000 dockes (de0702a6c5e2) * src/mk/Linux: *** empty log message *** 2006-10-22 15:54 +0000 dockes (35832011eaf9) * src/rcldb/rcldb.cpp: simplify needUpdate test 2006-10-22 14:47 +0000 dockes (733c7646ca29) * src/configure, src/configure.ac, src/index/Makefile, src/index/indexer.cpp, src/index/indexer.h, src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp, src/index/recollindex.cpp, src/mk/localdefs.in, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: monitor: purge docs for deleted files from db 2006-10-20 08:31 +0000 dockes (6d54039efe79) * src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts: new Ukrainian+Russian messages from Michael 2006-10-20 08:29 +0000 dockes (ebcb12870038) * src/qtgui/advsearch.ui, src/qtgui/rclmain.ui, src/qtgui/uiprefs.ui: small fixes on label strings 2006-10-17 14:41 +0000 dockes (ea77c15d81a6) * src/common/autoconfig.h.in, src/configure, src/configure.ac, src/index/rclmon.h, src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp, src/index/recollindex.cpp: fam autoconfig 2006-10-16 15:33 +0000 dockes (aa570fc97bf9) * src/index/rclmon.h, src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp: new file. * src/common/rclconfig.cpp, src/common/rclconfig.h, src/index/Makefile, src/index/indexer.cpp, src/index/indexer.h, src/index/rclmon.h, src/index/rclmonprc.cpp, src/index/rclmonrcv.cpp, src/index/recollindex.cpp: 1st version of real time monitor 2006-10-15 13:07 +0000 dockes (aa97f764d4a6) * src/qtgui/rclmain_w.cpp, src/qtgui/spell_w.cpp, src/qtgui/spell_w.h: dbl click in spell win to add to ssearch 2006-10-12 14:46 +0000 dockes (78a3a37209ae) * src/configure.ac, src/index/indexer.cpp, src/index/indexer.h, src/index/recollindex.cpp: recollindex -i now checks that the files are descendants of topdirs 2006-10-12 08:39 +0000 dockes (ab66430f3f7d) * src/doc/user/usermanual.sgml: *** empty log message *** 2006-10-11 16:09 +0000 dockes (1cf66e2b486f) * src/aspell/rclaspell.cpp, src/utils/execmd.cpp, src/utils/execmd.h: improve execcmd to avoid allocating an allterms buffer when creating dico 2006-10-11 14:16 +0000 dockes (26e08a8fc135) * src/qtgui/images/d_spell.png, src/qtgui/images/spell.png, src/qtgui/spell.ui, src/qtgui/spell_w.cpp, src/qtgui/spell_w.h: new file. * src/aspell/rclaspell.cpp, src/aspell/rclaspell.h, src/common/autoconfig.h.in, src/common/rclconfig.h, src/configure, src/configure.ac, src/index/indexer.cpp, src/index/indexer.h, src/index/recollindex.cpp, src/mk/commondefs, src/mk/localdefs.in, src/qtgui/images/d_spell.png, src/qtgui/images/spell.png, src/qtgui/main.cpp, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/recoll.h, src/qtgui/recoll.pro.in, src/qtgui/spell.ui, src/qtgui/spell_w.cpp, src/qtgui/spell_w.h, src/sampleconf/recoll.conf.in, src/utils/smallut.cpp, src/utils/smallut.h: 1st full version of aspell support 2006-10-10 10:58 +0000 dockes (ed60d657e8e9) * src/aspell/aspell-local.h, src/common/autoconfig.h.in: new file. * src/aspell/aspell-local.h, src/common/autoconfig.h.in: *** empty log message *** 2006-10-09 16:37 +0000 dockes (93d9009c4d51) * src/VERSION, src/aspell/rclaspell.cpp, src/aspell/rclaspell.h, src/index/Makefile, src/lib/Makefile, src/lib/mkMake, src/makesrcdist.sh, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/stemdb.cpp, src/utils/execmd.cpp, src/utils/execmd.h: aspell checkpoint 2006-10-09 14:05 +0000 dockes (711360b10738) * src/aspell/Makefile, src/aspell/rclaspell.cpp, src/aspell/rclaspell.h: new file. * src/aspell/Makefile, src/aspell/rclaspell.cpp, src/aspell/rclaspell.h: *** empty log message *** 2006-10-03 08:34 +0000 dockes (4033d57b83da) * packaging/rpm/recoll.spec, packaging/rpm/recollmdk.spec: 1.5 2006-10-02 13:30 +0000 dockes (562f54fc8029) * src/VERSION, src/makestaticdist.sh: small glitches in makestaticdist 2006-10-02 12:33 +0000 dockes (7be5b4b7d6c0) * src/VERSION, src/configure, src/configure.ac, src/query/history.h: small glitches detected on suse / gcc 4.1 2006-10-02 11:25 +0000 dockes (8731b62606fe [RECOLL-1_5_8, RECOLL-1_5_3, RECOLL-1_5_6, RECOLL-1_5_7, RECOLL-1_5_4, RECOLL-1_5_5]) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- descr, packaging/FreeBSD/recoll/pkg-plist: 1.5.2 2006-10-02 08:38 +0000 dockes (ee82de281263) * src/VERSION: *** empty log message *** 2006-10-02 08:26 +0000 dockes (bafb3e762d82) * src/sampleconf/mimeconf: added 2 icons 2006-10-02 08:25 +0000 dockes (c3d47772ea99) * src/qtgui/mtpics/image.png, src/qtgui/mtpics/source.png: new file. * src/qtgui/mtpics/image.png, src/qtgui/mtpics/source.png: *** empty log message *** 2006-10-02 07:50 +0000 dockes (fe9700b5a6fe [RECOLL-1_5_2, RECOLL-1_5_1]) * src/INSTALL, src/README, website/BUGS.txt, website/CHANGES.txt, website/download.html, website/index.html: *** empty log message *** 2006-10-02 07:45 +0000 dockes (bc3c93581184) * src/VERSION, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts: 1.5.1 2006-09-29 11:43 +0000 dockes (bd51dd85dc0f) * src/doc/user/usermanual.sgml: aspell pass 2006-09-29 08:26 +0000 dockes (026d0b177533) * src/rcldb/rcldb.cpp: syntabs: remove size limit. Handle overlapping chunks. Make sure we use only one term per position 2006-09-29 08:24 +0000 dockes (49342357f800) * src/qtgui/reslist.cpp: reset curPvDoc on setDocSource 2006-09-29 08:23 +0000 dockes (a9cef42dd219) * src/qtgui/uiprefs.ui: bump up limits on max abstract size parameters 2006-09-29 07:13 +0000 dockes (7973023d7c1b) * src/qtgui/ssearch_w.cpp: bad/unneeded conversion to utf8 while saving ssearch history would cause some string sizes in history to double at each program invocation 2006-09-28 14:32 +0000 dockes (a5bba26b0ac0) * src/qtgui/i18n/recoll_fr.ts: 1.5 2006-09-28 14:31 +0000 dockes (71d5895b7848) * src/qtgui/ssearchb.ui: improved tip 2006-09-28 14:30 +0000 dockes (903f443a7150) * src/doc/user/usermanual.sgml: reordered the tips 2006-09-28 11:55 +0000 dockes (3bf818bd1e39) * src/qtgui/main.cpp: debug messages 2006-09-23 13:32 +0000 dockes (3cf269bf18f0) * website/BUGS.txt, website/CHANGES.txt, website/download.html, website/features.html, website/index.html: *** empty log message *** 2006-09-23 13:13 +0000 dockes (06ed627f182d [RECOLL-1_5_0]) * src/INSTALL, src/README, src/makesrcdist.sh: *** empty log message *** 2006-09-23 13:11 +0000 dockes (0533f47f1c34) * src/INSTALL, src/doc/user/usermanual.sgml: *** empty log message *** 2006-09-23 13:09 +0000 dockes (9b8fdf62ad07) * src/doc/user/usermanual.sgml: *** empty log message *** 2006-09-23 07:39 +0000 dockes (33e469ad3a2e) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/preview_w.cpp, src/qtgui/reslist.cpp: fix file name display in tooltips 2006-09-23 07:39 +0000 dockes (e47ebb4e22ce) * src/internfile/mh_mail.cpp: fix newlines 2006-09-23 07:21 +0000 dockes (b5b530ea2ec9) * src/rcldb/rcldb.cpp: message 2006-09-22 14:11 +0000 dockes (3ef29a8417c7) * src/qtgui/i18n/recoll_fr.ts, src/rcldb/rcldb.cpp: msg 2006-09-22 10:46 +0000 dockes (9ade76cc0df5) * src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts, src/qtgui/uiprefs_w.cpp: messages 2006-09-22 08:19 +0000 dockes (c228a1515468) * src/qtgui/recoll.pro.in: *** empty log message *** 2006-09-22 07:51 +0000 dockes (df858f3508f4) * src/qtgui/recoll.pro.in: names cleanup 2006-09-22 07:42 +0000 dockes (de54384ab321) * src/utils/mimeparse.h: comment 2006-09-22 07:41 +0000 dockes (f37052248b5b) * src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h: new file. * src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/recoll_fr.ts, src/qtgui/recoll_ru.ts, src/qtgui/recoll_uk.ts, src/qtgui/recollmain.ui: deleted file. * src/qtgui/i18n/recoll_fr.ts, src/qtgui/i18n/recoll_ru.ts, src/qtgui/i18n/recoll_uk.ts, src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/rclmain.ui, src/qtgui/rclmain_w.cpp, src/qtgui/rclmain_w.h, src/qtgui/recoll_fr.ts, src/qtgui/recoll_ru.ts, src/qtgui/recoll_uk.ts, src/qtgui/recollmain.ui: names cleanup: rclmain, translations 2006-09-22 07:38 +0000 dockes (c17bf757689b) * src/recollinstall.in: names cleanup: translations 2006-09-22 07:29 +0000 dockes (2d749704a22b) * src/qtgui/reslist.cpp, src/qtgui/reslist.h: new file. * src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h: deleted file. * src/qtgui/rclmain.cpp, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h, src/qtgui/recollmain.ui, src/qtgui/reslist.cpp, src/qtgui/reslist.h: names cleanup: reslist 2006-09-22 07:22 +0000 dockes (cd9f046bf5e3) * src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h: clarified preview paragraph coloring in reslist 2006-09-22 07:19 +0000 dockes (c700f9f95168) * src/internfile/mh_mail.cpp: clarified depth processing and increased limit 2006-09-21 12:56 +0000 dockes (334ef2914129) * src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h: synchronize preview tab and colored paragraph in result list 2006-09-21 09:37 +0000 dockes (43c279d4d112) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/sort_w.cpp, src/qtgui/sort_w.h, src/query/sortseq.cpp, src/query/sortseq.h: remember sort criteria 2006-09-21 05:59 +0000 dockes (e5e9c1ffa44c) * src/internfile/myhtmlparse.cpp: dont throw away text even if html is weird 2006-09-21 05:59 +0000 dockes (4e99ebec009f) * src/common/textsplit.cpp: 132.jpg was not split 2006-09-21 05:57 +0000 dockes (3bc572456a49) * src/common/Makefile, src/utils/Makefile: *** empty log message *** 2006-09-20 06:21 +0000 dockes (5829221e8612) * src/rcldb/stemdb.cpp: comments 2006-09-19 14:30 +0000 dockes (598f2c534c4c) * src/rcldb/stemdb.cpp: Stems with unique parent must be in db too so that one can search on stem (which is not a term) 2006-09-19 14:30 +0000 dockes (98cd92c958bd) * src/internfile/mh_mail.cpp, src/internfile/mh_mail.h: walk the full mime tree instead of staying at level 1 2006-09-19 14:19 +0000 dockes (12fcb57186c2) * src/configure, src/configure.ac: *** empty log message *** 2006-09-19 14:19 +0000 dockes (88bbc8f18b9e) * src/utils/mimeparse.cpp: disable date debug msgs 2006-09-19 14:18 +0000 dockes (a0016b0e9969) * src/query/xadump.cpp: add option to dump a recoll stemdb 2006-09-18 12:17 +0000 dockes (e662e0bbe85e) * src/README: *** empty log message *** 2006-09-15 16:50 +0000 dockes (315f1c1d3dd3) * src/VERSION, src/doc/user/usermanual.sgml, src/internfile/mh_mail.cpp, src/utils/mimeparse.cpp, src/utils/mimeparse.h: Use own code to parse rfc822 dates, strptime() cant do 2006-09-15 16:49 +0000 dockes (ca133771bc5b) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/recoll.pro.in, src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp: small typo fixes 2006-09-15 12:36 +0000 dockes (47354227e577) * src/INSTALL, src/README: *** empty log message *** 2006-09-14 07:13 +0000 dockes (b717321f9de4 [RECOLL-1_4_4]) * *** empty log message *** 2006-09-14 07:13 +0000 dockes (919e6e0dfc56) * website/BUGS.txt, website/CHANGES.txt, website/copydocs, website/credits.html, website/devel.html, website/download.html, website/features.html, website/index.html, website/pics/index.html, website/styles/style.css: new file. * website/BUGS.txt, website/CHANGES.txt, website/copydocs, website/credits.html, website/devel.html, website/download.html, website/features.html, website/index.html, website/pics/index.html, website/styles/style.css: *** empty log message *** 2006-09-13 15:31 +0000 dockes (9bd2431eaa66) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/ssearch_w.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp: autophrase parameter 2006-09-13 14:57 +0000 dockes (0d952f522055) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/rclreslist.cpp, src/query/docseq.cpp, src/query/docseq.h: colorize search terms in abstracts 2006-09-13 13:53 +0000 dockes (5980807171a8) * src/index/indexer.cpp, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/ssearch_w.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/sampleconf/recoll.conf.in: make constant lengths for abstracts config params 2006-09-13 08:13 +0000 dockes (6e43869ceb61) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs_w.cpp: add feature to save asearch ignored file types as startup default 2006-09-12 10:11 +0000 dockes (9b323c436beb) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h, src/qtgui/ssearch_w.cpp, src/qtgui/ssearchb.ui: allow paging through results inside a preview window with shift-up shift-down 2006-09-11 14:22 +0000 dockes (f0dd93428e23) * src/doc/user/usermanual.sgml, src/qtgui/advsearch.ui: try to make clearer that adv search fields will accept phrases as well as single words 2006-09-11 12:05 +0000 dockes (f455fbc6a42a) * src/qtgui/advsearch.ui, src/qtgui/advsearch_w.cpp, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/ssearch_w.cpp, src/qtgui/ssearchb.ui, src/query/history.cpp, src/query/history.h: remember history of restrict subdirs in adv search 2006-09-11 09:08 +0000 dockes (ad274e633ffb) * src/qtgui/guiutils.cpp, src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/recoll.h, src/qtgui/uiprefs.ui, src/query/docseq.h, src/query/history.cpp, src/query/history.h: use the (should be renamed) history file to store external databases lists 2006-09-11 07:10 +0000 dockes (6cb09384f54a) * src/qtgui/ssearch_w.cpp, src/qtgui/ssearchb.ui: maintain ssearches listbox in mru order 2006-09-11 06:58 +0000 dockes (b62d0be5650e) * src/qtgui/advsearch.ui, src/qtgui/sort.ui, src/qtgui/uiprefs.ui: ensure dialogs are sized according to font size 2006-09-08 09:02 +0000 dockes (a5a31c9b0a37) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/common/rclinit.cpp, src/common/rclinit.h, src/doc/man/recoll.1, src/doc/man/recoll.conf.5, src/doc/man/recollindex.1, src/doc/user/usermanual.sgml, src/index/recollindex.cpp, src/qtgui/guiutils.cpp, src/qtgui/main.cpp: Add -c option to recoll and recollindex 2006-09-08 08:51 +0000 dockes (315e0865ec26) * src/sampleconf/recoll.conf.in: The dbdir default value is now relative to the cnf dir 2006-09-06 09:50 +0000 dockes (e696d98fe7fe) * src/qtgui/uiprefs_w.cpp: Used to reset the buildAbstract replaceAbstract options because of setDown instead of setChecked 2006-09-06 09:14 +0000 dockes (0dedd735c86e) * src/utils/mimeparse.cpp, src/utils/mimeparse.h: implement rfc2231 decoding for mime parameter values 2006-09-05 17:09 +0000 dockes (95fd6b3a5b9a) * src/internfile/mh_mail.cpp: let mimeparse handle decoding or param values 2006-09-05 09:52 +0000 dockes (44182523e711) * src/filters/rclppt, src/filters/rclxls: new file. * src/filters/rclppt, src/filters/rclxls, src/sampleconf/mimeconf, src/sampleconf/mimemap: added support for ppt and xls via catdoc 2006-09-05 08:05 +0000 dockes (587719349228) * src/internfile/mh_mail.cpp, src/internfile/mh_mail.h: index and display attachment file names 2006-09-05 08:04 +0000 dockes (6f8b09a74d14) * src/utils/mimeparse.cpp, src/utils/mimeparse.h: comments only 2006-09-04 15:13 +0000 dockes (0f11e18480b2) * src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/preview.ui, src/qtgui/preview.ui.h, src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/qtgui/sort_w.cpp, src/qtgui/sort_w.h, src/qtgui/ssearch_w.cpp, src/qtgui/ssearch_w.h, src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h: new file. * src/qtgui/preview/preview.pro, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/preview/pvmain.cpp: deleted file. * src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h, src/qtgui/advsearch_w.cpp, src/qtgui/advsearch_w.h, src/qtgui/guiutils.cpp, src/qtgui/main.cpp, src/qtgui/preview.ui, src/qtgui/preview.ui.h, src/qtgui/preview/preview.pro, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/preview/pvmain.cpp, src/qtgui/preview_w.cpp, src/qtgui/preview_w.h, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/recoll.pro.in, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/qtgui/sort.ui, src/qtgui/sort.ui.h, src/qtgui/sort_w.cpp, src/qtgui/sort_w.h, src/qtgui/ssearch_w.cpp, src/qtgui/ssearch_w.h, src/qtgui/ssearchb.ui, src/qtgui/ssearchb.ui.h, src/qtgui/uiprefs.ui, src/qtgui/uiprefs.ui.h, src/qtgui/uiprefs_w.cpp, src/qtgui/uiprefs_w.h: mostly cosmetic changes to prepare for a future qt4 port: better separate form design from code 2006-06-29 11:05 +0000 dockes (8f28af2cb548) * src/qt4gui/recollmain.ui: *** empty log message *** 2006-06-24 09:56 +0000 dockes (fb2180e4d577) * src/qt4gui/recollmain.ui: qt4 cleanup: merged back rclmainbase and rclmain 2006-06-24 07:40 +0000 dockes (e1b5ffd88b25) * src/Makefile.in, src/VERSION, src/configure, src/configure.ac, src/doc/user/usermanual.sgml, src/qt4gui/recoll.pro.in, src/qt4gui/recollmain.ui, src/recollinstall.in: more qt4, unfinished 2006-06-23 08:07 +0000 dockes (46a46e406504) * src/qt4gui/recoll.pro.in, src/qt4gui/recollmain.ui: new file. * src/qt4gui/recoll.pro.in, src/qt4gui/recollmain.ui: added qt4gui code from Gennadi Sushko 2006-05-22 07:04 +0000 dockes (2663a50d4760) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo: 1.4.3 2006-05-09 10:15 +0000 dockes (c9a62f0cb289) * src/rcldb/rcldb.cpp: perform stem expansion using all active dbs 2006-05-09 07:56 +0000 dockes (29feec461985) * src/qtgui/preview/preview.ui.h, src/qtgui/rclreslist.cpp: esc quits preview + prev/next links 2006-05-08 07:08 +0000 dockes (185da0be6900) * src/recollinstall.in: install icon 2006-05-08 07:08 +0000 dockes (7dbebc260389) * src/qtgui/rclreslist.cpp: *** empty log message *** 2006-05-07 14:18 +0000 dockes (2f273f645a91) * packaging/rpm/recoll.spec: 1.4.3 2006-05-07 14:18 +0000 dockes (16b38a704d8e) * packaging/rpm/recoll.spec, packaging/rpm/recollmdk.spec: 1.3.3 2006-05-07 14:10 +0000 dockes (4ab20caea142 [RECOLL-1_4_3]) * src/VERSION: Release 1.4.3 2006-05-06 17:25 +0000 dockes (e7b4fd0f97fa) * src/recoll.png, src/recoll.xcf: new file. * src/qtgui/recoll.pro.in, src/recoll.png, src/recoll.xcf: *** empty log message *** 2006-05-06 17:24 +0000 dockes (aae37ad598a9) * src/qtgui/recoll_ru.ts, src/qtgui/recoll_uk.ts: new from michael 2006-05-02 09:49 +0000 dockes (fb5bb4665925 [RECOLL-1_4_2]) * src/qtgui/guiutils.cpp, src/rcldb/stemdb.cpp, src/unac/unac.c: more fbsd4 tweaks: Release 1.4.2 2006-04-30 07:44 +0000 dockes (d686e45d4b5e) * src/rcldb/rcldb.cpp: fbsd4 tweaks 2006-04-30 07:39 +0000 dockes (b889e57b87d6) * src/VERSION, src/index/indexer.cpp, src/index/indexer.h, src/lib/Makefile, src/lib/mkMake: fbsd4 tweaks 2006-04-30 07:26 +0000 dockes (72f2881955d1 [RECOLL-1_4_1]) * src/Makefile.in, src/README: *** empty log message *** 2006-04-30 07:23 +0000 dockes (172a9e09b77c) * src/Makefile.in: *** empty log message *** 2006-04-30 07:20 +0000 dockes (7be76a62e017) * src/qtgui/recoll_fr.ts, src/qtgui/recoll_ru.ts, src/qtgui/recoll_uk.ts: lupdate+french 2006-04-28 07:54 +0000 dockes (5b44017502c3) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/index/indexer.cpp, src/index/recollindex.cpp, src/kde/kioslave/recoll/kio_recoll.cpp, src/qtgui/main.cpp, src/query/qtry.cpp: centralize dbdir computation in rclconfig+cat with conffdir if not absolute 2006-04-28 07:23 +0000 dockes (436f58f83459) * src/utils/transcode.cpp: change debug log trace 2006-04-27 09:23 +0000 dockes (3df68e37cdd9) * src/doc/user/usermanual.sgml, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/rclmain.cpp, src/qtgui/ssearchb.ui, src/qtgui/ssearchb.ui.h: make ssearch a combobox 2006-04-27 06:12 +0000 dockes (e7c0f6cd73f0) * src/configure, src/configure.ac, src/lib/Makefile, src/lib/mkMake: fix pb with .deps not existing 2006-04-27 06:12 +0000 dockes (83e1c6a16ca6) * src/qtgui/preview/preview.ui.h, src/qtgui/rclmain.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: use getmatchingterms instead of getqueryterms for highlighting etc. in preview 2006-04-26 11:51 +0000 dockes (fa1cc55f05e9) * src/INSTALL, src/README: *** empty log message *** 2006-04-26 11:29 +0000 dockes (d92273eb3274) * src/qtgui/rclmain.cpp, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h: dblclck in reslist adds to search lineedit 2006-04-25 09:59 +0000 dockes (16f32a4eda4c) * src/index/indexer.cpp, src/rcldb/rcldb.cpp: new way for doc unique terms: only path for monodoc, only path+ipath for doc inside multidoc, add pseudo-doc for file itself 2006-04-25 08:17 +0000 dockes (4c947b29c23c) * src/common/textsplit.cpp, src/rcldb/rcldb.cpp: fixed small glitch in abstract text splitting 2006-04-23 13:37 +0000 dockes (ea8caddeb344) * src/lib/mkMake: new file. * src/lib/mkMake: *** empty log message *** 2006-04-22 06:27 +0000 dockes (1b0dd24cad31) * src/qtgui/main.cpp, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h, src/qtgui/ssearchb.ui, src/qtgui/ssearchb.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/searchdata.h: turn-off abst. build for fname search (no terms) + prototype query expansion (xapian e-set on chosen doc) + dbl-click in preview adds term to ssearch 2006-04-20 09:20 +0000 dockes (4b9c3c7bcb49) * src/common/rclconfig.cpp, src/lib/Makefile, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/qtgui/sort.ui, src/qtgui/sort.ui.h, src/qtgui/ssearchb.ui.h, src/query/sortseq.cpp, src/query/sortseq.h: mode 700 on .recoll. move showquerydetails to rclreslist 2006-04-19 08:26 +0000 dockes (9ec7ff1d0d53) * src/rcldb/searchdata.h: new file. * src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h, src/qtgui/main.cpp, src/qtgui/rclmain.h, src/qtgui/rclreslist.cpp, src/qtgui/ssearchb.ui, src/qtgui/ssearchb.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/rcldb/searchdata.h: compacted res list + completions in ssearch + additional or field 2006-04-18 08:53 +0000 dockes (7c4352949f19) * src/index/recollindex.cpp, src/lib/Makefile, src/qtgui/advsearch.ui, src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/rclmain.cpp, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h, src/qtgui/recollmain.ui, src/qtgui/ssearchb.ui, src/qtgui/ssearchb.ui.h, src/qtgui/uiprefs.ui, src/qtgui/uiprefs.ui.h: new libs Makefile+autoSearchOnWS 2006-04-15 17:15 +0000 dockes (cc178f316e64) * src/qtgui/main.cpp, src/query/Makefile: small aix tweaks 2006-04-15 16:51 +0000 dockes (356148054ef1) * src/mk/AIX: new file. * src/mk/AIX: *** empty log message *** 2006-04-13 09:50 +0000 dockes (fe982a2684e4) * src/rcldb/stemdb.cpp, src/rcldb/stemdb.h: new file. * src/lib/Makefile, src/rcldb/rcldb.cpp, src/rcldb/stemdb.cpp, src/rcldb/stemdb.h: extracted stem database from rcldb to make it smaller 2006-04-12 10:41 +0000 dockes (6892025a5c8e) * src/index/indexer.cpp, src/index/indexer.h, src/qtgui/idxthread.cpp, src/qtgui/idxthread.h, src/qtgui/rclmain.cpp, src/qtgui/recollmain.ui, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: improve indexing status reporting 2006-04-12 07:26 +0000 dockes (44ac63815611) * src/qtgui/rclmain.cpp, src/rcldb/rcldb.cpp: Fix history not working after thread index run 2006-04-11 07:14 +0000 dockes (bd453ed96f6a) * src/rcldb/rcldb.cpp: fix rare case where stem itself was forgotten in list of possible derivatives 2006-04-11 06:49 +0000 dockes (dd7f793fdf8e) * src/common/textsplit.cpp, src/rcldb/rcldb.cpp, src/utils/smallut.cpp, src/utils/smallut.h: comments and moving some util routines out of rcldb.cpp 2006-04-08 14:00 +0000 dockes (d60e656c348f) * src/VERSION, src/doc/user/usermanual.sgml: *** empty log message *** 2006-04-07 13:10 +0000 dockes (dc4ff4178b85) * src/qtgui/advsearch.ui.h, src/rcldb/rcldb.cpp: check for and forbid pure negative query 2006-04-07 13:08 +0000 dockes (7da00eb0c7aa) * src/qtgui/guiutils.cpp: RECOLL_EXTRA_DBS environment variable 2006-04-07 13:07 +0000 dockes (f040ff3bf0aa) * src/doc/user/usermanual.sgml: use indexing instead of indexation 2006-04-07 08:51 +0000 dockes (52451e342e49) * src/internfile/mh_mail.cpp, src/internfile/mh_mail.h: comments+conventions 2006-04-06 17:39 +0000 dockes (7d2906a0371d) * packaging/FreeBSD/recoll/pkg-plist: merge modif from committer 2006-04-06 14:28 +0000 dockes (52d4a2c2a341) * src/sampleconf/recoll.conf.in: stem only for english by default 2006-04-06 13:09 +0000 dockes (fa565da09aa7 [RECOLL-1_4_0]) * src/VERSION: 1.4.0 2006-04-06 13:08 +0000 dockes (1436c843e74e) * src/VERSION, src/rcldb/rcldb.h, src/recollinstall.in: rpmlint wants 755 for execs 2006-04-06 12:34 +0000 dockes (687369f6736c) * src/INSTALL, src/README: *** empty log message *** 2006-04-05 15:41 +0000 dockes (359711d5fbe3) * src/recollinstall.in: fix the installed file perms 2006-04-05 13:39 +0000 dockes (fdd0d33d5c2e) * src/qtgui/guiutils.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: small fixes for extra db selection 2006-04-05 13:30 +0000 dockes (3277935457e9) * src/doc/user/usermanual.sgml: small fixes 2006-04-05 12:50 +0000 dockes (98d8d7d74aee) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/main.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: additional search databases 2006-04-05 06:26 +0000 dockes (e8f1cc7c2bbf) * src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: simplified class structure 2006-04-04 16:03 +0000 dockes (ddb66052e3e8 [RECOLL-1_4_0pre1]) * src/filters/rcldjvu, src/filters/rclmedia, src/filters/rclps, src/filters/rclsoff: handle paths with embedded spaces 2006-04-04 15:44 +0000 dockes (933f89f10033) * src/filters/rcluncomp: handle paths with embedded spaces 2006-04-04 13:49 +0000 dockes (dec4932652ae) * src/index/indexer.cpp, src/index/indexer.h, src/index/recollindex.cpp, src/qtgui/idxthread.cpp, src/qtgui/idxthread.h, src/qtgui/rclmain.cpp: make indexation more easily cancellable 2006-04-04 12:37 +0000 dockes (17342a5b330b) * src/doc/user/usermanual.sgml, src/index/indexer.cpp, src/index/indexer.h: check for symlinks in the topdirs list. Generate diags in confIndexer 2006-04-04 10:38 +0000 dockes (ec632eb29364) * src/qtgui/guiutils.cpp, src/qtgui/rclreslist.cpp: setup initial default window size smaller 2006-04-04 09:36 +0000 dockes (d175998d9270) * src/common/unacpp.cpp, src/unac/unac.c: clarify/clean up mem buffer handling 2006-04-04 09:35 +0000 dockes (b14f9df37817) * src/utils/conftree.h: fix potential minor memory leak when copying conftrees 2006-04-04 09:34 +0000 dockes (aaddcbb06c7a) * src/index/indexer.cpp, src/index/indexer.h: cosmetic: add m_ prefix to private vars 2006-04-04 07:55 +0000 dockes (1bda0dcafd17) * src/qtgui/main.cpp, src/qtgui/preview/preview.ui.h, src/qtgui/rclmain.cpp: Get things to compile with QT_NO_STL 2006-04-03 14:16 +0000 dockes (4957b439000e) * packaging/FreeBSD/recoll/Makefile: add mods from port tree 2006-04-03 12:59 +0000 dockes (62a51f626e46) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo: *** empty log message *** 2006-04-03 11:43 +0000 dockes (0449d2ba4099 [RECOLL-1_3_3]) * src/VERSION: 1.3.3 2006-04-03 11:43 +0000 dockes (6b54e368d2d1) * src/common/rclconfig.cpp: small port fixes for fbsd4 and solaris 2006-04-03 09:42 +0000 dockes (cd9fe4976fae) * src/utils/execmd.cpp: warning 2006-04-01 21:02 +0000 dockes (eef792b97ce8 [RECOLL-1_3_2]) * src/VERSION, src/qtgui/rclmain.cpp: limit max length of displayed query details. 1.3.2 2006-04-01 09:15 +0000 dockes (315da01fb1a5 [RECOLL-1_3_1]) * src/INSTALL, src/README: *** empty log message *** 2006-04-01 09:15 +0000 dockes (e9f0a85fc18e) * src/INSTALL, src/README, src/qtgui/rclreslist.cpp, src/qtgui/ssearchb.ui: updated INSTALL+README. Fix tab focus in main window 2006-04-01 08:07 +0000 dockes (916faf93fb66) * src/qtgui/rclmain.cpp: urlencode file name before executing ext app with url param 2006-04-01 07:48 +0000 dockes (adbde9cd60b9) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- plist: 1.3.1 2006-04-01 07:34 +0000 dockes (4cd3e4e4074c) * src/sampleconf/mimeconf, src/sampleconf/mimemap: Allow ext edit for c/c++ files. 1.3.1 2? 2006-03-31 17:19 +0000 dockes (35db6f17bdd8) * src/VERSION, src/qtgui/rclmain.cpp, src/qtgui/rclreslist.cpp, src/qtgui/recoll_ru.ts, src/qtgui/recoll_uk.ts: fixed reslist header charset issues. 1.3.1 first 2006-03-31 09:02 +0000 dockes (ae3d9c9deb6d) * src/INSTALL, src/README: *** empty log message *** 2006-03-31 07:51 +0000 dockes (0fccf51c6905 [RECOLL-1_3_1pre3]) * src/qtgui/recoll_uk.ts: new file. * src/qtgui/recoll_uk.ts: *** empty log message *** 2006-03-30 13:00 +0000 dockes (b41828dda0ac) * src/common/Makefile: cleanup rclconfig 2006-03-30 10:31 +0000 dockes (afbdbc31ff1c) * src/sampleconf/recoll.conf.in: dont set defaultcharset to 8859-1: will let nls info be used 2006-03-30 10:31 +0000 dockes (582fa2a09db3) * src/doc/user/usermanual.sgml: *** empty log message *** 2006-03-30 08:19 +0000 dockes (89efa1c78c3c [RECOLL-1_3_1pre2]) * src/qtgui/recoll_fr.ts, src/qtgui/recoll_ru.ts: lupdate 2006-03-30 07:54 +0000 dockes (0b236faa0b9d) * src/qtgui/advsearch.ui: cleaned up layout 2006-03-29 17:31 +0000 dockes (7cb115f5789c) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h, src/qtgui/main.cpp, src/qtgui/ssearchb.ui, src/qtgui/ssearchb.ui.h: gui: replaced checkboxes for all/filename in simple search with droplist 2006-03-29 13:08 +0000 dockes (ce199bb02759) * src/VERSION, src/common/Makefile, src/common/rclconfig.cpp, src/common/rclconfig.h, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/qtgui/rclreslist.cpp, src/sampleconf/mimeconf, src/sampleconf/mimemap: result list: show preview and edit links only when they can be used 2006-03-29 11:18 +0000 dockes (5f22b93705b4) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/common/rclinit.cpp, src/index/indexer.cpp, src/qtgui/preview/preview.ui.h, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/pathut.cpp, src/utils/pathut.h, src/utils/transcode.cpp, src/utils/transcode.h: try to better handle non-ascii file names 2006-03-28 12:49 +0000 dockes (a081a1b65de1) * src/doc/man/recoll.conf.5, src/doc/user/usermanual.sgml, src/qtgui/recoll.pro.in, src/recollinstall.in, src/sampleconf/recoll.conf.in: 1.3.1pre1 2006-03-28 12:18 +0000 dockes (7429c22d162b) * src/INSTALL, src/README: *** empty log message *** 2006-03-28 09:38 +0000 dockes (25e1ed25acc5) * src/filters/rclmedia, src/qtgui/mtpics/sownd.png: new file. * src/filters/rclmedia, src/qtgui/mtpics/sownd.png, src/sampleconf/mimeconf, src/sampleconf/mimemap: filter for indexing mp3 tags 2006-03-28 09:36 +0000 dockes (fb852147db29) * src/internfile/mh_unknown.h: new file. * src/internfile/mh_unknown.h: added code to specifically index/search file names 2006-03-22 16:24 +0000 dockes (4467274ce405) * src/index/indexer.cpp, src/index/indexer.h, src/qtgui/idxthread.cpp, src/qtgui/idxthread.h, src/qtgui/rclmain.cpp, src/qtgui/recollmain.ui: show current filename as feedback during indexation 2006-03-22 14:25 +0000 dockes (5dae5f8a140d) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/utils/conftree.cpp, src/utils/conftree.h: Replace user config with central values + override 2006-03-22 11:17 +0000 dockes (1f04e3bfeb4a) * src/qtgui/rclreslist.cpp: fix size display 2006-03-21 15:11 +0000 dockes (88d6359d2739) * src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h: implement right click menu in result list 2006-03-21 13:46 +0000 dockes (56610f5d03b3) * src/qtgui/rclmain.cpp, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h: replaced (double)clicks in the result list with links 2006-03-21 13:27 +0000 dockes (cc41e73a4f5a) * src/qtgui/rclreslist.cpp: ckpt 2006-03-21 11:04 +0000 dockes (b1dc67961a45) * src/index/mimetype.cpp: sanity check on file -i return 2006-03-21 09:15 +0000 dockes (8589c7c01f25) * src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h: new file. * src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h: deleted file. * src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/rclreslist.cpp, src/qtgui/rclreslist.h, src/qtgui/recollmain.ui, src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h: reslistb form replaced by object derived from QTextBrowser 2006-03-20 16:05 +0000 dockes (70c0ec0275a9) * src/VERSION, src/index/indexer.cpp, src/internfile/internfile.cpp, src/internfile/mimehandler.cpp, src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h, src/qtgui/ssearchb.ui, src/qtgui/ssearchb.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: added code to specifically index/search file names 2006-03-20 15:14 +0000 dockes (86bb2d64fdd9) * src/internfile/mh_text.cpp: get rid of unused temp 2006-03-20 09:54 +0000 dockes (fea74448199d) * src/utils/pathut.h: comments 2006-03-20 09:54 +0000 dockes (bf4772fd96ff) * src/sampleconf/mimemap: add # to ignd suffixes 2006-03-20 09:51 +0000 dockes (218c67bcb769) * src/common/rclconfig.cpp, src/common/rclconfig.h: try to get default charset from LANG if not in config 2006-03-20 09:50 +0000 dockes (2d633e45c451) * src/makestaticdist.sh: desktop file 2006-03-16 14:00 +0000 dockes (b45dd89bb177) * src/recoll.desktop: new file. * src/recoll.desktop: initial version from Michael Shigorin 2006-03-16 13:49 +0000 dockes (e3e216dfacb6) * src/qtgui/recoll_ru.ts: new file. * src/qtgui/recoll_ru.ts: initial version from Michael Shigorin 2006-03-04 10:09 +0000 dockes (983d0984e972 [RECOLL-1_2_3]) * src/VERSION, src/doc/user/usermanual.sgml: 1.2.3 2006-02-21 12:57 +0000 dockes (29500b27662b) * src/INSTALL, src/README: *** empty log message *** 2006-02-21 12:56 +0000 dockes (0bc6bf836dfe) * src/Makefile.in, src/configure, src/configure.ac: ensure Makefile uses same qmake as configure 2006-02-21 12:52 +0000 dockes (9a69d49b1448) * src/query/docseq.h, src/query/sortseq.h: sorted sequence title would never show 2006-02-07 10:26 +0000 dockes (8881db16fe21) * src/qtgui/reslistb.ui.h, src/query/docseq.cpp, src/query/docseq.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: fix problems with doc fetch sequence (have to know where to stop) 2006-02-07 09:44 +0000 dockes (fbfb30458fc2) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h: replace computation of term positions in editor text with search for 1st query term 2006-02-03 11:47 +0000 dockes (1dbf9bcedfc0) * src/filters/rcldvi: option to use catdvi 2006-02-03 10:53 +0000 dockes (f219261a580b) * src/filters/rcldjvu, src/filters/rcldvi: new file. * src/filters/rcldjvu, src/filters/rcldvi, src/filters/rclps, src/sampleconf/mimeconf, src/sampleconf/mimemap: added dvi and djvu support 2006-02-02 09:45 +0000 dockes (71a4b9e391e0) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo: 1.2.2 2006-02-02 08:58 +0000 dockes (c2f3b36a7169 [RECOLL-1_2_2]) * src/rcldb/rcldb.cpp, src/utils/pathut.cpp: suppress 2 compilation warnings (one was actual 64bits bug but inocuous 2006-02-02 08:35 +0000 dockes (4d473bd0d9a8) * src/Makefile.in, src/VERSION, src/configure, src/configure.ac, src/qtgui/main.cpp, src/qtgui/preview/preview.ui.h: fix small cc glitches: qt3.1, xapian-config 2006-02-01 14:34 +0000 dockes (a4deac6ede77 [RECOLL-1_2_1]) * src/qtgui/guiutils.cpp, src/qtgui/reslistb.ui.h: fbsd4 cc 2006-02-01 14:27 +0000 dockes (b005945089dc) * src/VERSION: *** empty log message *** 2006-02-01 14:18 +0000 dockes (1f6da4b2f946) * src/common/textsplit.cpp: use string::erase() not clear() 2006-02-01 09:00 +0000 dockes (09b3a24a6173 [RECOLL-1_2_0]) * src/recollinstall.in: *** empty log message *** 2006-02-01 08:19 +0000 dockes (bef8d87339d0) * packaging/rpm/recoll.spec: *** empty log message *** 2006-02-01 07:14 +0000 dockes (5c4deca7b177) * src/excludefile, src/utils/base64.cpp: *** empty log message *** 2006-02-01 07:12 +0000 dockes (77e021af3fa0) * src/INSTALL, src/README, src/doc/user/usermanual.sgml, src/excludefile, src/makesrcdist.sh: *** empty log message *** 2006-01-31 11:39 +0000 dockes (73f22e91d844) * src/qtgui/reslistb.ui.h: Clicking on "No results found" will also display the expanded query 2006-01-31 11:39 +0000 dockes (c225bd05e9c1) * src/qtgui/recoll.h: close/reopen db by default: let us see results of recollindex -i 2006-01-30 12:51 +0000 dockes (cd40d5627d38) * src/qtgui/recoll_fr.ts: *** empty log message *** 2006-01-30 11:15 +0000 dockes (962649c706ef) * src/common/rclconfig.h, src/common/rclinit.h, src/common/textsplit.h, src/common/unacpp.h, src/common/uproplist.h, src/index/csguess.h, src/index/indexer.h, src/index/mimetype.h, src/internfile/htmlparse.cpp, src/internfile/htmlparse.h, src/internfile/indextext.h, src/internfile/internfile.h, src/internfile/mh_exec.h, src/internfile/mh_html.h, src/internfile/mh_mail.h, src/internfile/mh_text.h, src/internfile/mimehandler.h, src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h, src/qtgui/advsearch.ui.h, src/qtgui/guiutils.h, src/qtgui/idxthread.h, src/qtgui/plaintorich.h, src/qtgui/preview/preview.ui.h, src/qtgui/rclmain.h, src/qtgui/recoll.h, src/qtgui/recollmain.ui.h, src/qtgui/reslistb.ui.h, src/qtgui/sort.ui.h, src/qtgui/ssearchb.ui.h, src/qtgui/uiprefs.ui.h, src/query/docseq.h, src/query/history.h, src/query/sortseq.h, src/rcldb/pathhash.h, src/rcldb/rcldb.h, src/utils/base64.h, src/utils/cancelcheck.h, src/utils/conftree.h, src/utils/copyfile.h, src/utils/debuglog.h, src/utils/execmd.h, src/utils/fstreewalk.h, src/utils/idfile.h, src/utils/mimeparse.h, src/utils/pathut.h, src/utils/readfile.h, src/utils/smallut.h, src/utils/transcode.h, src/utils/utf8iter.h, src/utils/wipedir.h: *** empty log message *** 2006-01-30 10:01 +0000 dockes (f683194d38a4) * src/qtgui/preview/preview.ui.h: dont highlight terms in very big docs: too slow 2006-01-30 09:32 +0000 dockes (dc8cbf051f54) * src/mk/localdefs.in: -O2 2006-01-30 09:28 +0000 dockes (af56f00261eb) * src/qtgui/guiutils.cpp, src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/uiprefs.ui, src/qtgui/uiprefs.ui.h: help browser selection in prefs 2006-01-30 09:28 +0000 dockes (df275d18bee6) * src/utils/execmd.cpp: *** empty log message *** 2006-01-30 09:28 +0000 dockes (6d7b08c3bba0) * src/common/textsplit.cpp: moved span cleanup where it belonged 2006-01-28 15:36 +0000 dockes (b65e6344a9e4) * src/common/textsplit.cpp, src/common/textsplit.h: *** empty log message *** 2006-01-28 10:23 +0000 dockes (507b05e72779) * src/common/textsplit.cpp, src/common/textsplit.h, src/configure, src/configure.ac, src/query/xadump.cpp, src/utils/utf8iter.h: more textsplit tweaking 2006-01-27 13:43 +0000 dockes (8ed38cba7965) * src/utils/cancelcheck.h: new file. * src/utils/cancelcheck.h: *** empty log message *** 2006-01-27 13:43 +0000 dockes (fa13d8fe2fc9) * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h: new file. * src/qtgui/guiutils.cpp, src/qtgui/guiutils.h: extracted code from main and others 2006-01-27 13:42 +0000 dockes (96572eee9528) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/rclmain.cpp: implement cancellation in preview loading 2006-01-27 13:38 +0000 dockes (3ad2458e654a) * src/internfile/myhtmlparse.cpp: strip whitespace and newlines (as the original version), except in pre tags 2006-01-27 13:37 +0000 dockes (80dbbac5b981) * src/filters/rcldoc, src/filters/rclpdf, src/filters/rclps, src/filters/rclsoff: fix to output
when needed + other misc pbs 2006-01-27 13:34 +0000 dockes (538235c10cd7) * src/rcldb/rcldb.cpp: define some constants and increase abstract context width 2006-01-27 11:25 +0000 dockes (1d381cea9ec3) * src/internfile/htmlparse.cpp: missing amp entity translation 2006-01-26 17:59 +0000 dockes (15b82e0f9689) * src/internfile/mh_exec.cpp: check for cancellation 2006-01-26 17:59 +0000 dockes (81f5d1264b7d) * src/utils/execmd.cpp, src/utils/execmd.h: also test cancel on select timeout 2006-01-26 17:44 +0000 dockes (77efdf7b7e93) * src/utils/execmd.cpp, src/utils/execmd.h: make execCmd exception-safe 2006-01-26 14:02 +0000 dockes (ffd1ec38fb9f) * src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/recoll.h, src/qtgui/uiprefs.ui, src/qtgui/uiprefs.ui.h: abstract params 2006-01-26 14:01 +0000 dockes (c34965eaaa05) * src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h: abstracts + doc sizes 2006-01-26 12:30 +0000 dockes (c3718d2ceeae) * src/query/docseq.cpp: let the db do whats needed to get a result count 2006-01-26 12:29 +0000 dockes (bc0a233de310) * src/utils/smallut.cpp, src/utils/smallut.h: chrono 2006-01-26 12:28 +0000 dockes (69be9a0edd98) * src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: abstract building from position data 2006-01-26 07:03 +0000 dockes (2c5403cbdbc1) * src/qtgui/recoll.pro: deleted file. * src/qtgui/recoll.pro: replaced by recoll.pro.in 2006-01-26 07:03 +0000 dockes (7a03d26ad54d) * src/qtgui/recoll.pro, src/qtgui/recoll.pro.in, src/utils/smallut.h: *** empty log message *** 2006-01-26 07:02 +0000 dockes (de94ebf3cb51) * src/index/indexer.cpp: pass size info to db.add 2006-01-25 08:39 +0000 dockes (fc5ab7249caa) * src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h: reenable stripping newlines 2006-01-25 08:09 +0000 dockes (1ce613930379) * src/query/Makefile, src/query/xadump.cpp: xadump improvements 2006-01-24 12:22 +0000 dockes (6a16d14c076e) * src/qtgui/rclmain.cpp: fix signal type 2006-01-24 12:22 +0000 dockes (322a0f010b59) * src/utils/execmd.cpp, src/utils/execmd.h: add feedback and possible cancellation 2006-01-23 17:21 +0000 dockes (d16bcca9bc1e) * src/qtgui/images/d_nextpage.png, src/qtgui/images/d_prevpage.png: new file. * src/qtgui/images/d_nextpage.png, src/qtgui/images/d_prevpage.png, src/qtgui/rclmain.cpp, src/qtgui/recoll.pro, src/qtgui/recollmain.ui: slightly improved the icon situation 2006-01-23 16:52 +0000 dockes (a51e0cfa77db) * src/qtgui/images/asearch.png, src/qtgui/images/history.png, src/qtgui/images/nextpage.png, src/qtgui/images/prevpage.png, src/qtgui/images/sortparms.png: *** empty log message *** 2006-01-23 15:43 +0000 dockes (907a44f71ddc) * src/qtgui/images/editcopy, src/qtgui/images/editcut, src/qtgui/images/editpaste, src/qtgui/images/filenew, src/qtgui/images/fileopen, src/qtgui/images/filesave, src/qtgui/images/print, src/qtgui/images/redo, src/qtgui/images/searchfind, src/qtgui/images/undo: deleted file. * src/qtgui/images/editcopy, src/qtgui/images/editcut, src/qtgui/images/editpaste, src/qtgui/images/filenew, src/qtgui/images/fileopen, src/qtgui/images/filesave, src/qtgui/images/print, src/qtgui/images/redo, src/qtgui/images/searchfind, src/qtgui/images/undo: *** empty log message *** 2006-01-23 13:32 +0000 dockes (b27df12a0147) * src/common/rclconfig.cpp, src/common/rclinit.cpp, src/common/textsplit.cpp, src/common/unacpp.cpp, src/index/csguess.cpp, src/index/indexer.cpp, src/index/mimetype.cpp, src/index/recollindex.cpp, src/internfile/internfile.cpp, src/internfile/mh_exec.cpp, src/internfile/mh_mail.cpp, src/internfile/mh_text.cpp, src/internfile/mimehandler.cpp, src/query/docseq.cpp, src/query/history.cpp, src/query/qtry.cpp, src/query/qxtry.cpp, src/query/sortseq.cpp, src/query/xadump.cpp, src/rcldb/pathhash.cpp, src/rcldb/rcldb.cpp, src/utils/base64.cpp, src/utils/conftree.cpp, src/utils/copyfile.cpp, src/utils/debuglog.cpp, src/utils/execmd.cpp, src/utils/fstreewalk.cpp, src/utils/idfile.cpp, src/utils/mimeparse.cpp, src/utils/pathut.cpp, src/utils/readfile.cpp, src/utils/smallut.cpp, src/utils/transcode.cpp, src/utils/utf8iter.cpp, src/utils/wipedir.cpp: reference to GPL in all .cpp files 2006-01-23 13:32 +0000 dockes (c2c52e3c568f) * src/qtgui/idxthread.cpp, src/qtgui/main.cpp, src/qtgui/plaintorich.cpp, src/qtgui/rclmain.cpp, src/qtgui/recoll.h, src/qtgui/recoll.pro, src/qtgui/reslistb.ui.h, src/qtgui/uiprefs.ui.h: more refactoring 2006-01-23 07:15 +0000 dockes (639d2208e231) * src/qtgui/rclmain.cpp: *** empty log message *** 2006-01-23 07:07 +0000 dockes (29cad268f7ba) * src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h, src/qtgui/ssearchb.ui.h: more modularization 2006-01-22 18:46 +0000 dockes (c329a0d633e1) * src/qtgui/recoll.pro.in: new file. * src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/recoll.pro, src/qtgui/recoll.pro.in, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h, src/qtgui/ssearchb.ui: extract functionality from main window 2006-01-22 15:16 +0000 dockes (f8f81a690e3d) * src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h: *** empty log message *** 2006-01-22 13:56 +0000 dockes (b62fca0983d3) * src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h, src/qtgui/ssearchb.ui.h: new file. * src/qtgui/reslistb.ui, src/qtgui/reslistb.ui.h, src/qtgui/ssearchb.ui.h: *** empty log message *** 2006-01-22 07:41 +0000 dockes (50553b4f8d29 [T1_2]) * src/qtgui/ssearchb.ui: *** empty log message *** 2006-01-22 07:25 +0000 dockes (f5ecee171cca) * src/qtgui/ssearchb.ui: new file. * src/qtgui/ssearchb.ui: *** empty log message *** 2006-01-21 15:36 +0000 dockes (283be80e303b) * src/configure: *** empty log message *** 2006-01-21 15:36 +0000 dockes (57061cf4c252) * src/Makefile.in, src/configure, src/configure.ac, src/makesrcdist.sh, src/qtgui/recoll.pro: enable building from inside qtgui/ 2006-01-21 15:25 +0000 dockes (ce790ab8e905) * packaging/rpm/recollmdk.spec: new file. * packaging/rpm/recollmdk.spec: *** empty log message *** 2006-01-21 10:47 +0000 dockes (47b92b35b369) * src/INSTALL, src/README: *** empty log message *** 2006-01-20 14:58 +0000 dockes (9dfcca9b0073) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/qtgui/main.cpp, src/qtgui/preview/preview.ui.h, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/recoll.h: qt main program cleanup 2006-01-20 12:46 +0000 dockes (04782d3c08bb) * src/qtgui/rclmain.cpp, src/qtgui/rclmain.h: new file. * src/qtgui/main.cpp, src/qtgui/rclmain.cpp, src/qtgui/rclmain.h, src/qtgui/recoll.pro, src/qtgui/recoll_fr.ts, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: separated code from design by subclassing recollmain 2006-01-20 10:01 +0000 dockes (f1c90fc5dd19) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/kde/kioslave/recoll/00README.txt, src/mk/commondefs, src/mk/localdefs.in, src/qtgui/idxthread.cpp, src/qtgui/idxthread.h, src/qtgui/main.cpp, src/utils/conftree.h, src/utils/debuglog.h: cleanup 2006-01-19 17:11 +0000 dockes (b6465d0ee08c) * src/Makefile.in: new file. * src/Makefile: deleted file. * src/Makefile, src/Makefile.in, src/common/rclconfig.cpp, src/common/rclconfig.h, src/configure, src/configure.ac, src/internfile/internfile.cpp, src/internfile/mh_exec.cpp, src/mk/localdefs.in, src/qtgui/main.cpp, src/qtgui/recoll.pro, src/recollinstall.in: slight config cleanup 2006-01-19 15:08 +0000 dockes (211c1066ac8f) * src/kde/kioslave/recoll/00README.txt: new file. * src/kde/kioslave/recoll/00README.txt: end of test, doesnt look very useful 2006-01-19 14:57 +0000 dockes (302ee688e96a) * src/kde/kioslave/recoll/kio_recoll.la: new file. * src/kde/kioslave/recoll/Makefile, src/kde/kioslave/recoll/kio_recoll.cpp, src/kde/kioslave/recoll/kio_recoll.h, src/kde/kioslave/recoll/kio_recoll.la: end of initial experimentation 2006-01-19 12:03 +0000 dockes (ffb549062074) * src/utils/Makefile: *** empty log message *** 2006-01-19 12:01 +0000 dockes (0e6b7d796f28) * packaging/FreeBSD/recoll/Makefile, src/Makefile, src/VERSION, src/bincimapmime/Makefile, src/common/Makefile, src/doc/user/usermanual.sgml, src/index/Makefile, src/kde/kioslave/recoll/Makefile, src/kde/kioslave/recoll/kio_recoll.cpp, src/kde/kioslave/recoll/kio_recoll.h, src/lib/Makefile, src/makestaticdist.sh, src/mk/Darwin, src/mk/FreeBSD, src/mk/Linux, src/mk/SunOS, src/mk/commondefs, src/mk/localdefs.in, src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/recollmain.ui.h, src/query/Makefile, src/utils/Makefile, src/utils/smallut.cpp, src/utils/smallut.h: misc small mods to help with building kio_recoll 2006-01-18 13:41 +0000 dockes (ebf94c8fc21c) * src/kde/kioslave/recoll/Makefile, src/kde/kioslave/recoll/kio_recoll.cpp, src/kde/kioslave/recoll/kio_recoll.h, src/kde/kioslave/recoll/recoll.protocol: new file. * src/kde/kioslave/recoll/Makefile, src/kde/kioslave/recoll/kio_recoll.cpp, src/kde/kioslave/recoll/kio_recoll.h, src/kde/kioslave/recoll/recoll.protocol: *** empty log message *** 2006-01-17 10:08 +0000 dockes (9784891fd0a7) * src/utils/mimeparse.h: comments and clarification 2006-01-17 09:31 +0000 dockes (08549e5e4a9e) * src/index/indexer.cpp, src/utils/fstreewalk.cpp, src/utils/fstreewalk.h: cleanup and comments 2006-01-14 13:09 +0000 dockes (d7ac146b7dd5) * src/configure, src/configure.ac: do a better search for qt configuration 2006-01-14 11:48 +0000 dockes (d073ecc93317) * src/Makefile, src/configure, src/configure.ac: do a better search for qt configuration 2006-01-12 09:29 +0000 dockes (2dfd16f6a9a4 [RECOLL-1_1_0]) * src/qtgui/recoll_fr.ts: *** empty log message *** 2006-01-12 09:16 +0000 dockes (deb6607d43bf) * src/README: *** empty log message *** 2006-01-12 09:13 +0000 dockes (7635781b18c5) * src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp: handle removed docs in history 2006-01-11 17:41 +0000 dockes (bd54a740def9) * src/qtgui/recollmain.ui.h: *** empty log message *** 2006-01-11 15:09 +0000 dockes (108917b10bf3) * src/qtgui/uiprefs.ui.h: new file. * src/qtgui/uiprefs.ui.h: *** empty log message *** 2006-01-11 15:08 +0000 dockes (a03b6696412a) * src/doc/user/usermanual.sgml, src/index/Makefile, src/qtgui/recoll_fr.ts, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/docseq.h, src/query/sortseq.cpp, src/query/sortseq.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: translation of result list title. Show query details when clicking on header 2006-01-10 17:46 +0000 dockes (d4cc3428e381) * src/recollinstall.in: *** empty log message *** 2006-01-10 14:53 +0000 dockes (c873b3133cdd) * packaging/rpm/recoll.spec: *** empty log message *** 2006-01-10 13:52 +0000 dockes (ab4934e066f9) * src/recollinstall.in: *** empty log message *** 2006-01-10 13:41 +0000 dockes (23d6e8ae7155) * src/recollinstall.in: *** empty log message *** 2006-01-10 13:32 +0000 dockes (526cfe52f2e1) * src/recollinstall.in: *** empty log message *** 2006-01-10 13:27 +0000 dockes (a2f47b62ca03) * src/recollinstall.in: *** empty log message *** 2006-01-10 13:16 +0000 dockes (72d6ccffea15) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- plist, src/recollinstall.in: install man pages 2006-01-10 12:58 +0000 dockes (3a7d0fd4ceb7) * src/Makefile, src/common/rclconfig.cpp: warning 2006-01-10 12:55 +0000 dockes (aaeb49f89a98) * src/rcldb/rcldb.cpp: include unistd 2006-01-10 12:06 +0000 dockes (9b804748017f) * src/INSTALL, src/README: *** empty log message *** 2006-01-10 11:07 +0000 dockes (01e4fe9772b0) * src/common/rclconfig.h, src/doc/user/usermanual.sgml, src/index/recollindex.cpp, src/sampleconf/recoll.conf.in: doc + got rid of unused defaultlanguage config param 2006-01-10 09:10 +0000 dockes (34638d9bd009) * src/doc/man/recoll.conf.5: new file. * src/doc/man/recoll.conf.5: *** empty log message *** 2006-01-10 08:14 +0000 dockes (a9b485ada811) * src/doc/man/recoll.1, src/doc/man/recollindex.1: new file. * src/doc/man/recoll.1, src/doc/man/recollindex.1: *** empty log message *** 2006-01-09 16:53 +0000 dockes (29f37b7888d3) * src/excludefile, src/index/indexer.cpp, src/index/indexer.h, src/index/recollindex.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/Makefile, src/utils/pathut.cpp, src/utils/pathut.h: allow independant creation / deletion of stem dbs 2006-01-06 13:55 +0000 dockes (8831260252d9) * src/rcldb/rcldb.cpp: do a better test for a capitalized query term (no stem expand) 2006-01-06 13:20 +0000 dockes (82e02042773f) * src/qtgui/uiprefs.ui: new file. * src/qtgui/uiprefs.ui: *** empty log message *** 2006-01-06 13:19 +0000 dockes (29cdbe2390e4) * src/utils/CaseFolding.txt, src/utils/caseconvert.cpp, src/utils/caseconvert.h, src/utils/gencasefold.sh: deleted file. * src/lib/Makefile, src/rcldb/rcldb.cpp, src/unac/unac.c, src/unac/unac.h, src/utils/CaseFolding.txt, src/utils/Makefile, src/utils/caseconvert.cpp, src/utils/caseconvert.h, src/utils/gencasefold.sh: integrated case-folding into unac for better performance 2006-01-06 13:18 +0000 dockes (7840fc0ec48b) * src/common/Makefile, src/common/unacpp.cpp, src/common/unacpp.h, src/rcldb/rcldb.cpp: integrated case-folding into unac for better performance 2006-01-06 13:10 +0000 dockes (15e715082e40) * unac/CaseFolding-3.2.0.txt: new file. * unac/CaseFolding-3.2.0.txt, unac/builder.in, unac/unac.c, unac/unac.h: implemented additional case-folding 2006-01-06 13:08 +0000 dockes (f27aa43e32ef [UNAC_1_7_0]) * unac/.version, unac/AUTHORS, unac/COPYING, unac/ChangeLog, unac/INSTALL, unac/Makefile.am, unac/Makefile.in, unac/NEWS, unac/README, unac/THANKS, unac/UnicodeData-3.2.0.txt, unac/acinclude.m4, unac/aclocal.m4, unac/builder.in, unac/config.guess, unac/config.h.in, unac/config.sub, unac/configure, unac/configure.ac, unac/depcomp, unac/getopt.c, unac/getopt.h, unac/install-sh, unac/ltconfig, unac/ltmain.sh, unac/missing, unac/mkinstalldirs, unac/stamp-h.in, unac/t_unac.in, unac/unac.3, unac/unac.c, unac/unac.h, unac/unac.pc.in, unac/unac.spec.in, unac/unaccent.1, unac/unaccent.c, unac/unactest.c, unac/unactest1.c: new file. * unac/.version, unac/AUTHORS, unac/COPYING, unac/ChangeLog, unac/INSTALL, unac/Makefile.am, unac/Makefile.in, unac/NEWS, unac/README, unac/THANKS, unac/UnicodeData-3.2.0.txt, unac/acinclude.m4, unac/aclocal.m4, unac/builder.in, unac/config.guess, unac/config.h.in, unac/config.sub, unac/configure, unac/configure.ac, unac/depcomp, unac/getopt.c, unac/getopt.h, unac/install-sh, unac/ltconfig, unac/ltmain.sh, unac/missing, unac/mkinstalldirs, unac/stamp-h.in, unac/t_unac.in, unac/unac.3, unac/unac.c, unac/unac.h, unac/unac.pc.in, unac/unac.spec.in, unac/unaccent.1, unac/unaccent.c, unac/unactest.c, unac/unactest1.c: initial import 2006-01-06 07:59 +0000 dockes (52c86ee701fd) * src/index/Makefile, src/qtgui/recoll.pro: ensure relink for changed lib 2006-01-05 16:37 +0000 dockes (a2ef019b6308) * src/common/unacpp.cpp, src/common/unacpp.h, src/lib/Makefile, src/rcldb/rcldb.cpp, src/utils/Makefile: Use proper unicode lowercasing 2006-01-05 16:16 +0000 dockes (158267ddbcb6) * src/utils/CaseFolding.txt, src/utils/caseconvert.cpp, src/utils/caseconvert.h, src/utils/gencasefold.sh: new file. * src/utils/CaseFolding.txt, src/utils/caseconvert.cpp, src/utils/caseconvert.h, src/utils/gencasefold.sh: *** empty log message *** 2006-01-05 10:27 +0000 dockes (f1af15efef34) * packaging/rpm/recoll.spec: new file. * packaging/rpm/recoll.spec: *** empty log message *** 2006-01-05 10:24 +0000 dockes (55284d2ed66e) * src/Makefile, src/recollinstall.in: install tweaks for rpm compatibility 2006-01-04 11:33 +0000 dockes (236c587eb180) * src/VERSION, src/common/rclconfig.h, src/makesrcdist.sh, src/qtgui/main.cpp, src/qtgui/recoll.h, src/qtgui/recoll_fr.ts, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/recollinstall.in, src/utils/smallut.cpp, src/utils/smallut.h: add menu entry to start browser on html doc 2006-01-04 11:16 +0000 dockes (2075c2a6d71e) * src/INSTALL, src/README: *** empty log message *** 2006-01-04 11:09 +0000 dockes (9a4cceb219aa) * src/doc/user/Makefile, src/doc/user/docbook.css, src/doc/user/usermanual.sgml: new file. * src/doc/user/Makefile, src/doc/user/docbook.css, src/doc/user/usermanual.sgml: *** empty log message *** 2006-01-03 11:35 +0000 dockes (188ffc87b7d3) * src/INSTALL, src/README: *** empty log message *** 2005-12-16 10:08 +0000 dockes (789da9d2380c) * src/query/Makefile, src/query/xadump.cpp, src/unac/unac.c, src/utils/mimeparse.cpp: 64 bits fixes 2005-12-16 10:06 +0000 dockes (cf18fa6d2a7b) * src/Makefile, src/mk/localdefs.in, src/qtgui/main.cpp, src/qtgui/recoll.pro, src/recollinstall.in: get prefix to really work 2005-12-16 08:00 +0000 dockes (cca6b156e460) * src/excludefile: dont copy localdefs 2005-12-16 07:58 +0000 dockes (7b20df9408ce) * src/mk/localdefs: deleted file. * src/mk/localdefs: *** empty log message *** 2005-12-15 14:39 +0000 dockes (959564d835fd) * src/qtgui/main.cpp, src/qtgui/recoll.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/sampleconf/recoll.conf.in: user prefs tweaks. Allow switching stemlang from ui 2005-12-15 13:41 +0000 dockes (bf3c45bf931d) * src/qtgui/main.cpp: *** empty log message *** 2005-12-14 16:15 +0000 dockes (229d1902798e) * src/qtgui/main.cpp, src/qtgui/recoll.h, src/qtgui/recoll.pro, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: user interface preferences settable from ui 2005-12-14 11:00 +0000 dockes (3e5f6f1c000d) * src/index/indexer.cpp, src/index/indexer.h, src/index/recollindex.cpp, src/internfile/mh_html.cpp, src/internfile/mh_text.cpp, src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/Makefile: allow indexing individual files. Fix pb with preview and charsets (local defcharset ignored) 2005-12-13 17:20 +0000 dockes (0895be2b8196) * src/qtgui/main.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: add allTerms checkbutton, save state in settings 2005-12-13 17:20 +0000 dockes (b522d74e613c) * src/qtgui/advsearch.ui: avoid activating random buttons when typing CR... 2005-12-13 12:43 +0000 dockes (0448daf8c23e) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- descr, packaging/FreeBSD/recoll/pkg-plist, src/common/rclconfig.cpp, src/doc/prog/Doxyfile, src/doc/prog/Makefile, src/doc/prog/filters.txt, src/qtgui/main.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/utils/fstreewalk.cpp, src/utils/pathut.cpp, src/utils/pathut.h, src/utils/smallut.cpp, src/utils/wipedir.cpp: pgup/down in result list 2005-12-08 08:44 +0000 dockes (ec006d171797) * src/common/Makefile, src/internfile/htmlparse.cpp, src/internfile/htmlparse.h, src/internfile/internfile.cpp, src/internfile/mh_html.cpp, src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h: process text from html files without a tag 2005-12-07 15:41 +0000 dockes (a44bf0c6a081 [RECOLL-1_0_14]) * src/VERSION, src/internfile/mh_mail.cpp, src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui.h, src/query/docseq.cpp, src/utils/utf8iter.h: freebsd 4 port 2005-12-06 15:59 +0000 dockes (812bc8f9232b) * packaging/FreeBSD/recoll/distinfo: 0.13 really now 2005-12-06 15:41 +0000 dockes (3a7b74624ff4) * src/recollinstall.in: strip execs 2005-12-06 15:20 +0000 dockes (fa8c19799a41) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- plist: recoll-0.13 2005-12-06 15:10 +0000 dockes (b6df28b0d0e3) * src/README: *** empty log message *** 2005-12-06 15:10 +0000 dockes (e66dba4d628c [RECOLL-1_0_13]) * src/Makefile, src/VERSION, src/recollinstall.in: no recollinstall install 2005-12-06 12:55 +0000 dockes (cbfcc5627111) * packaging/FreeBSD/recoll/pkg-descr: *** empty log message *** 2005-12-06 10:30 +0000 dockes (d132e05e40ac) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- descr, packaging/FreeBSD/recoll/pkg-plist: *** empty log message *** 2005-12-06 09:40 +0000 dockes (f93d6a9b2336) * src/internfile/mh_html.cpp, src/internfile/myhtmlparse.cpp: previous html fix didnt work 2005-12-06 08:35 +0000 dockes (a3eec94f6861) * src/VERSION, src/internfile/internfile.cpp, src/internfile/mh_html.cpp, src/internfile/myhtmlparse.cpp: fix nasty html parse bug introduced in 1.0.9 2005-12-06 07:16 +0000 dockes (c1ccf42bf359 [RECOLL-1_0_12, RECOLL-1_0_11]) * src/qtgui/recollmain.ui: move search/clear buttons to the left side 2005-12-05 17:47 +0000 dockes (37952b251aee) * src/VERSION: 1.0.11? 2005-12-05 16:45 +0000 dockes (eecd7a311e8f) * src/qtgui/recollmain.ui.h: no %F on solaris8 2005-12-05 16:13 +0000 dockes (cd9899dcdec1) * src/utils/copyfile.cpp: *** empty log message *** 2005-12-05 16:13 +0000 dockes (7e7e675138b2) * src/query/docseq.cpp, src/query/docseq.h: avoid unneeded getDoc(0) + normalize private var names 2005-12-05 15:00 +0000 dockes (6aa562bb0180) * src/INSTALL, src/Makefile, src/README, src/qtgui/main.cpp: *** empty log message *** 2005-12-05 14:09 +0000 dockes (d3954ac2c5ec) * src/utils/copyfile.cpp, src/utils/copyfile.h: new file. * src/common/rclconfig.cpp, src/lib/Makefile, src/mk/localdefs, src/mk/localdefs.in, src/utils/copyfile.cpp, src/utils/copyfile.h: create personal config if it does not exist 2005-12-05 12:02 +0000 dockes (6d38fb24e3b1) * src/qtgui/images/asearch.png, src/qtgui/images/history.png, src/qtgui/images/nextpage.png, src/qtgui/images/prevpage.png, src/qtgui/images/sortparms.png: new file. * src/qtgui/images/asearch.png, src/qtgui/images/history.png, src/qtgui/images/nextpage.png, src/qtgui/images/prevpage.png, src/qtgui/images/sortparms.png, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/qtgui/sort.ui.h, src/query/docseq.cpp, src/query/sortseq.cpp: use toolbar buttons for prev/next + misc cleanups 2005-12-05 10:39 +0000 dockes (55a212b17808) * src/rcldb/rcldb.cpp: also index file path as terms 2005-12-04 17:10 +0000 dockes (a4005adeece9) * src/qtgui/recoll.pro: more 2005-12-04 17:10 +0000 dockes (15ce414ea700) * src/common/textsplit.cpp: split stdin 2005-12-04 14:58 +0000 dockes (369372321681) * src/qtgui/recollmain.ui: *** empty log message *** 2005-12-02 16:18 +0000 dockes (b8ea8500fe26) * src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/qtgui/sort.ui, src/qtgui/sort.ui.h, src/query/sortseq.cpp, src/query/sortseq.h, src/rcldb/rcldb.h: 1st version of sorting interface. Needs polishing 2005-12-02 16:17 +0000 dockes (fba2b55c4ba7) * src/filters/rclpdf: new version of pdftotext broke us 2005-12-02 16:17 +0000 dockes (a31234c89a73) * src/common/rclconfig.cpp, src/recollinstall.in, src/sampleconf/recoll.conf.in: install filters to /usr/local 2005-12-02 14:18 +0000 dockes (7b585689ce4a) * src/query/sortseq.cpp: *** empty log message *** 2005-12-01 16:23 +0000 dockes (c7393c3bc8b5) * src/qtgui/sort.ui, src/qtgui/sort.ui.h, src/query/sortseq.cpp, src/query/sortseq.h: new file. * src/lib/Makefile, src/qtgui/recoll.pro, src/qtgui/recollmain.ui.h, src/qtgui/sort.ui, src/qtgui/sort.ui.h, src/query/sortseq.cpp, src/query/sortseq.h: sorting 1st steps 2005-11-30 18:37 +0000 dockes (ddba9ec4f65f) * src/configure: make recollinstall executable 2005-11-30 18:28 +0000 dockes (35f236d5ad1f) * src/configure.ac: make recollinstall executable 2005-11-30 18:26 +0000 dockes (580ae261b629) * src/sampleconf/recoll.conf.in: keep log level at 4 for index feedback 2005-11-30 18:20 +0000 dockes (2fb51c4552fb) * src/sampleconf/recoll.conf.in: decrease log level 2005-11-30 18:10 +0000 dockes (0ad46d9bcaa5) * src/query/history.cpp: *** empty log message *** 2005-11-30 18:05 +0000 dockes (653e0a145731) * src/qtgui/form1.ui.h: deleted file. * src/excludefile, src/qtgui/form1.ui.h: *** empty log message *** 2005-11-30 18:04 +0000 dockes (dfff4ecb1918) * src/qtgui/form1.ui: deleted file. * src/excludefile, src/qtgui/form1.ui: *** empty log message *** 2005-11-30 18:01 +0000 dockes (a63a8d7c49f3) * src/excludefile: *** empty log message *** 2005-11-30 17:58 +0000 dockes (7676c325de57) * src/excludefile: *** empty log message *** 2005-11-30 17:58 +0000 dockes (6ddc4c210c87) * src/utils/transcode.cpp: try harder to convert bad encodings 2005-11-30 10:36 +0000 dockes (7e0aab848f91 [RECOLL-1_0_10]) * src/README, src/qtgui/recollmain.ui: *** empty log message *** 2005-11-30 10:35 +0000 dockes (1f97b79ea735) * src/VERSION: v1.0.10 2005-11-30 10:25 +0000 dockes (3c2bcb1ec527) * src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: disable/enable buttons dep. on state 2005-11-30 09:46 +0000 dockes (a75b091acbae) * src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h, src/sampleconf/mimeconf: *** empty log message *** 2005-11-30 09:46 +0000 dockes (30a527e5014f) * src/index/indexer.cpp, src/index/indexer.h, src/index/recollindex.cpp, src/rcldb/rcldb.cpp: add option to rezero db before index 2005-11-28 15:31 +0000 dockes (d9e31422258b) * src/qtgui/main.cpp, src/qtgui/recoll.h, src/qtgui/recollmain.ui.h, src/query/docseq.cpp, src/query/docseq.h, src/query/history.cpp, src/query/history.h: store and display dates in history. Needs more work 2005-11-25 14:36 +0000 dockes (18bc54d4e426) * src/qtgui/recollmain.ui.h, src/query/history.cpp, src/utils/conftree.cpp, src/utils/smallut.cpp, src/utils/smallut.h: show history newest first + prune duplicate entries 2005-11-25 10:26 +0000 dockes (3ad346d3f29e) * src/qtgui/main.cpp, src/qtgui/recoll_fr.ts, src/recollinstall.in: install translations to share/recoll/translations 2005-11-25 10:02 +0000 dockes (6ed5669a337b) * src/query/docseq.cpp, src/query/docseq.h: new file. * src/lib/Makefile, src/qtgui/main.cpp, src/qtgui/recoll.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/docseq.cpp, src/query/docseq.h: 1st version of doc history 2005-11-25 09:14 +0000 dockes (69bab5c09012) * src/index/indexer.cpp, src/index/mimetype.cpp, src/sampleconf/mimeconf: *** empty log message *** 2005-11-25 09:13 +0000 dockes (55e99bcc0a46) * src/common/rclconfig.cpp, src/common/rclconfig.h: get all mime list from mimeconf, not mimemap 2005-11-25 09:12 +0000 dockes (87febfb9c3be) * src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: added method to retrieve doc from path/ipath 2005-11-25 08:53 +0000 dockes (756168516697) * src/Makefile, src/internfile/mimehandler.cpp, src/rcldb/rcldb.h: *** empty log message *** 2005-11-25 08:50 +0000 dockes (6fda25d19678) * src/utils/conftree.cpp, src/utils/conftree.h, src/utils/smallut.cpp, src/utils/smallut.h: add methods useful for history. move stuff to smallut 2005-11-25 08:49 +0000 dockes (bd6b75c162a5) * src/utils/base64.cpp: Strip extra null byte that we were appending 2005-11-24 18:21 +0000 dockes (ba604719481c) * src/query/history.cpp, src/query/history.h: new file. * src/query/Makefile, src/query/history.cpp, src/query/history.h, src/query/qtry.cpp, src/query/xadump.cpp: *** empty log message *** 2005-11-24 07:16 +0000 dockes (1fc7382994a5) * src/recollinstall.in, src/sampleconf/recoll.conf.in: new file. * src/bincimapmime/address.cc, src/bincimapmime/convert.cc, src/bincimapmime/iodevice.cc, src/bincimapmime/iofactory.cc, src/bincimapmime/mime-getpart.cc, src/bincimapmime/mime- parsefull.cc, src/bincimapmime/mime-parseonlyheader.cc, src/bincimapmime/mime-printbody.cc, src/bincimapmime/mime- printdoc.cc, src/bincimapmime/mime-printheader.cc, src/bincimapmime /mime-utils.h, src/bincimapmime/mime.cc, src/bincimapmime/trbinc.cc, src/common/rclconfig.cpp, src/common/textsplit.cpp, src/common/unacpp.cpp, src/configure, src/configure.ac, src/index/csguess.cpp, src/index/indexer.cpp, src/index/mimetype.cpp, src/internfile/htmlparse.cpp, src/internfile/htmlparse.h, src/internfile/internfile.cpp, src/internfile/mh_exec.cpp, src/internfile/mh_html.cpp, src/internfile/mh_mail.cpp, src/internfile/mh_text.cpp, src/internfile/mimehandler.cpp, src/makestaticdist.sh, src/qtgui/advsearch.ui.h, src/qtgui/main.cpp, src/qtgui/plaintorich.cpp, src/qtgui/preview/preview.ui.h, src/qtgui/preview/pvmain.cpp, src/qtgui/recollmain.ui.h, src/query/qtry.cpp, src/query/qxtry.cpp, src/query/xadump.cpp, src/rcldb/pathhash.cpp, src/rcldb/rcldb.cpp, src/recollinstall.in, src/sampleconf/recoll.conf.in, src/utils/base64.cpp, src/utils/execmd.cpp, src/utils/fstreewalk.cpp, src/utils/idfile.cpp, src/utils/mimeparse.cpp, src/utils/pathut.cpp, src/utils/readfile.cpp, src/utils/smallut.cpp, src/utils/smallut.h, src/utils/transcode.cpp, src/utils/utf8iter.cpp, src/utils/wipedir.cpp: *** empty log message *** 2005-11-23 13:12 +0000 dockes (a8ff464ec720) * src/recollinstall, src/sampleconf/recoll.conf: deleted file. * src/recollinstall, src/sampleconf/recoll.conf: *** empty log message *** 2005-11-23 11:11 +0000 dockes (4ba2ad248537) * src/utils/execmd.cpp: *** empty log message *** 2005-11-23 11:00 +0000 dockes (66cac25635e1) * src/INSTALL, src/README, src/rcldb/rcldb.cpp: *** empty log message *** 2005-11-23 10:57 +0000 dockes (45f106d04652 [RECOLL-1_0_9]) * src/Makefile: use prefix instead of PREFIX 2005-11-23 10:19 +0000 dockes (e7a6edd38c56) * src/Makefile, src/VERSION, src/filters/rclrtf, src/index/Makefile, src/index/mimetype.cpp, src/utils/debuglog.cpp, src/utils/mimeparse.cpp: *** empty log message *** 2005-11-23 10:18 +0000 dockes (4e530d6556d2) * src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui.h: document already shown test was wrong, wouldnt show more docs from same file 2005-11-23 10:17 +0000 dockes (9944ac86338d) * src/utils/execmd.cpp: need to do _exit not exit after exec failure 2005-11-23 10:16 +0000 dockes (085c66533884) * src/internfile/mh_html.cpp, src/utils/smallut.cpp, src/utils/smallut.h: improve charset name comparison 2005-11-21 17:18 +0000 dockes (9c398b7ee69e [RECOLL-1_0_8]) * src/configure, src/configure.ac, src/index/mimetype.cpp, src/internfile/myhtmlparse.cpp, src/mk/Linux, src/mk/SunOS, src/recollinstall, src/utils/execmd.cpp: glitches in linux/solaris compil. + install 2005-11-21 16:16 +0000 dockes (7594b3dd0dc5) * src/README: *** empty log message *** 2005-11-21 16:06 +0000 dockes (8a82b3826a4a) * src/VERSION: *** empty log message *** 2005-11-21 16:05 +0000 dockes (9cc42706006d) * src/filters/rclrtf: new file. * src/filters/rclrtf, src/sampleconf/mimeconf, src/sampleconf/mimemap, src/sampleconf/recoll.conf: add support for rtf 2005-11-21 16:04 +0000 dockes (8169ca3ae210) * src/Makefile, src/makestaticdist.sh, src/recollinstall: install pics and samples to $PREFIX/local/recoll 2005-11-21 14:32 +0000 dockes (f0aaac1df843) * src/filters/rclgaim: just needs awk 2005-11-21 14:31 +0000 dockes (88649af9a0ac [RECOLL-1_0_7]) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/index/indexer.cpp, src/index/mimetype.cpp, src/index/mimetype.h, src/internfile/internfile.cpp, src/internfile/mh_html.cpp, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h, src/lib/Makefile, src/qtgui/recollmain.ui.h, src/sampleconf/mimeconf, src/sampleconf/mimemap, src/sampleconf/recoll.conf: mimemap processing recentered in rclconfig. Handle directory-local suffix to mime-type definitions. Implement gaim log handling 2005-11-18 17:03 +0000 dockes (ae7d483398d2) * src/filters/rclgaim: new file. * src/filters/rclgaim: *** empty log message *** 2005-11-18 15:19 +0000 dockes (9c8cb27e5749) * src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/mh_exec.cpp, src/internfile/mimehandler.h, src/utils/execmd.h: misc cleanup + tell filters if working for preview or index 2005-11-18 13:52 +0000 dockes (9d83fd6a7d8c) * src/utils/execmd.cpp, src/utils/execmd.h: add putenv interface 2005-11-18 13:23 +0000 dockes (c3d0cfc77a9f) * src/internfile/mh_exec.cpp, src/internfile/mh_exec.h, src/internfile/mh_text.cpp, src/internfile/mh_text.h: new file. * src/internfile/mh_exec.cpp, src/internfile/mh_exec.h, src/internfile/mh_html.cpp, src/internfile/mh_html.h, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h, src/internfile/mh_text.cpp, src/internfile/mh_text.h, src/internfile/mimehandler.cpp, src/lib/Makefile: restructuring on mimehandler files 2005-11-17 17:39 +0000 dockes (e530dcacaf42) * src/VERSION: *** empty log message *** 2005-11-17 17:36 +0000 dockes (64437283f61f) * src/rcldb/rcldb.cpp: use OP_FILTER instead of OP_AND to filter on file types 2005-11-17 12:47 +0000 dockes (e9efe66d79c0) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/qtgui/main.cpp, src/qtgui/recollmain.ui, src/sampleconf/recoll.conf, src/utils/conftree.cpp, src/utils/conftree.h: allow tilde expansion for section names in config file 2005-11-16 18:31 +0000 dockes (e319e6fa047d) * src/qtgui/recollmain.ui.h: *** empty log message *** 2005-11-16 17:30 +0000 dockes (70dbf29f84e0) * src/excludefile: *** empty log message *** 2005-11-16 17:29 +0000 dockes (4c957598f6fd [RECOLL-1_0_6]) * src/mk/localdefs, src/rcldb/rcldb.cpp: use and_maybe in adv search 2005-11-16 15:07 +0000 dockes (a19870cd6761) * src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/qtgui/main.cpp, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/recoll.h, src/qtgui/recollmain.ui.h, src/sampleconf/mimeconf, src/sampleconf/recoll.conf: Optionnally show mime type icons in result list 2005-11-16 15:05 +0000 dockes (6464421540ca) * src/qtgui/mtpics/README, src/qtgui/mtpics/document.png, src/qtgui/mtpics/drawing.png, src/qtgui/mtpics/html.png, src/qtgui/mtpics/message.png, src/qtgui/mtpics/mozilla_doc.png, src/qtgui/mtpics/pdf.png, src/qtgui/mtpics/postscript.png, src/qtgui/mtpics/presentation.png, src/qtgui/mtpics/soffice.png, src/qtgui/mtpics/spreadsheet.png, src/qtgui/mtpics/txt.png, src/qtgui/mtpics/wordprocessing.png: new file. * src/qtgui/mtpics/README, src/qtgui/mtpics/document.png, src/qtgui/mtpics/drawing.png, src/qtgui/mtpics/html.png, src/qtgui/mtpics/message.png, src/qtgui/mtpics/mozilla_doc.png, src/qtgui/mtpics/pdf.png, src/qtgui/mtpics/postscript.png, src/qtgui/mtpics/presentation.png, src/qtgui/mtpics/soffice.png, src/qtgui/mtpics/spreadsheet.png, src/qtgui/mtpics/txt.png, src/qtgui/mtpics/wordprocessing.png: *** empty log message *** 2005-11-16 11:22 +0000 dockes (f29236269564) * src/qtgui/plaintorich.cpp, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui.h: Implemented better feedback during preview loading 2005-11-16 08:17 +0000 dockes (44b8c2233623) * src/Makefile, src/VERSION, src/qtgui/main.cpp, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/recoll_fr.ts, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: about dialog, remember previous mainwin geometry 2005-11-14 09:59 +0000 dockes (f196f00bd521) * src/internfile/internfile.cpp, src/internfile/internfile.h, src/qtgui/recollmain.ui.h: fix rare case where indexed file could not be previewed because of change in file identification config param 2005-11-14 09:57 +0000 dockes (5610887cf602) * src/index/indexer.cpp: comment 2005-11-14 09:56 +0000 dockes (b6c7dd9504b9) * src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: stem expansion was never done for adv search 2005-11-12 14:36 +0000 dockes (87b02b667eef) * src/README, src/mk/Linux: *** empty log message *** 2005-11-12 14:33 +0000 dockes (5743f1558790) * src/mk/localdefs.in: typo 2005-11-12 14:31 +0000 dockes (0dd4948b5c2f) * src/Makefile, src/configure, src/configure.ac: more config tweaks 2005-11-12 14:24 +0000 dockes (6d47a227c1b2) * src/utils/conftree.cpp, src/utils/conftree.h, src/utils/debuglog.cpp, src/utils/debuglog.h: new file. * src/utils/conftree.cpp, src/utils/conftree.h, src/utils/debuglog.cpp, src/utils/debuglog.h: local versions of utility files 2005-11-12 14:23 +0000 dockes (c77e47fdc6fb) * src/Makefile: *** empty log message *** 2005-11-12 14:19 +0000 dockes (49499e32e341) * src/configure.ac, src/mk/localdefs, src/mk/localdefs.in: new file. * src/Makefile, src/configure, src/configure.ac, src/mk/Darwin, src/mk/FreeBSD, src/mk/Linux, src/mk/SunOS, src/mk/commondefs, src/mk/localdefs, src/mk/localdefs.in: introduced some autoconf 2005-11-12 11:26 +0000 dockes (b13e733c2796) * src/Makefile, src/bincimapmime/Makefile, src/common/Makefile, src/index/Makefile, src/lib/Makefile, src/mk/commondefs, src/qtgui/recoll.pro, src/query/Makefile, src/sampleconf/mimemap, src/utils/Makefile: cleaned-up makes 2005-11-10 08:47 +0000 dockes (06490e6e7dc1) * src/index/Makefile, src/index/indexer.cpp, src/index/indexer.h, src/index/mimetype.cpp, src/index/mimetype.h, src/internfile/internfile.cpp, src/sampleconf/recoll.conf: add config parameter to decide if we use the file command as a final step of mimetype identification 2005-11-10 08:46 +0000 dockes (d9a64999d22d) * src/sampleconf/mimeconf, src/sampleconf/mimemap: add .Z compressed files 2005-11-09 21:40 +0000 dockes (1dd753a59d1c) * src/sampleconf/mimemap: add .odt -> openoffice. Add .php and others to ignored types 2005-11-09 21:39 +0000 dockes (a8b54cf24c83) * src/common/rclinit.cpp: test cleanup and sigcleanup not zero for small uts that dont need this 2005-11-08 21:02 +0000 dockes (344fc56239c8) * src/internfile/internfile.cpp, src/internfile/mh_html.cpp, src/internfile/mh_html.h, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h: renamed MimeHandler::worker to mkDoc + comments for doxygen 2005-11-08 21:02 +0000 dockes (1ac76bfea47d) * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- descr, packaging/FreeBSD/recoll/pkg-plist, src/doc/prog/filters.txt, src/doc/prog/top.txt: new file. * packaging/FreeBSD/recoll/Makefile, packaging/FreeBSD/recoll/distinfo, packaging/FreeBSD/recoll/pkg- descr, packaging/FreeBSD/recoll/pkg-plist, src/doc/prog/Doxyfile, src/doc/prog/Makefile, src/doc/prog/filters.txt, src/doc/prog/top.txt: *** empty log message *** 2005-11-08 21:00 +0000 dockes (54bcdfd186f1) * src/doc/prog/Doxyfile, src/doc/prog/Makefile: new file. * src/doc/prog/Doxyfile, src/doc/prog/Makefile: *** empty log message *** 2005-11-07 15:52 +0000 dockes (a0bde5fbc55b [RECOLL-1_0_5]) * src/INSTALL, src/Makefile, src/README, src/excludefile, src/makesrcdist.sh, src/makestaticdist.sh: *** empty log message *** 2005-11-07 15:37 +0000 dockes (c6a8f5375981) * src/README: *** empty log message *** 2005-11-07 15:36 +0000 dockes (5ca00f4db306) * src/INSTALL, src/README: *** empty log message *** 2005-11-07 15:11 +0000 dockes (8ae633ae4194) * src/VERSION: *** empty log message *** 2005-11-07 15:06 +0000 dockes (6be191f54656) * src/Makefile, src/mk/commondefs, src/recollinstall: fixed installation script 2005-11-07 11:21 +0000 dockes (e48ddf065716) * src/VERSION: *** empty log message *** 2005-11-06 15:07 +0000 dockes (fef6e5d66e29 [RECOLL-1_05]) * src/qtgui/idxthread.cpp, src/qtgui/main.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/utils/base64.cpp: slightly better status printing while loading preview 2005-11-06 11:16 +0000 dockes (0fa0ac2c3e5b) * src/rcldb/pathhash.cpp, src/rcldb/pathhash.h, src/utils/base64.cpp, src/utils/base64.h, src/utils/md5.cpp, src/utils/md5.h: new file. * src/lib/Makefile, src/rcldb/pathhash.cpp, src/rcldb/pathhash.h, src/rcldb/rcldb.cpp, src/utils/base64.cpp, src/utils/base64.h, src/utils/md5.cpp, src/utils/md5.h, src/utils/mimeparse.cpp: limit path therm length through hashing 2005-11-05 15:30 +0000 dockes (eea6ede9ce9a) * src/INSTALL, src/README, src/VERSION: *** empty log message *** 2005-11-05 15:29 +0000 dockes (c99e6c9d50df) * src/rcldb/rcldb.cpp: debug message 2005-11-05 15:17 +0000 dockes (a3463f8f8c63) * src/mk/commondefs: unused def 2005-11-05 14:40 +0000 dockes (47c04f4507d0 [RECOLL-1_04]) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/common/rclinit.cpp, src/common/rclinit.h, src/index/indexer.cpp, src/index/recollindex.cpp, src/internfile/mh_mail.cpp, src/mk/SunOS, src/qtgui/main.cpp, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: separate file and document dates (mainly for email folders). Better check configuration at startup 2005-11-02 12:36 +0000 dockes (e0d52b43cd5c) * src/lib/Makefile, src/mk/commondefs: add def for RANLIB 2005-11-01 10:55 +0000 dockes (2b858432af00) * src/mk/Darwin: new file. * src/mk/Darwin: *** empty log message *** 2005-10-31 08:59 +0000 dockes (65fd4f89de80) * src/internfile/mh_mail.cpp, src/utils/mimeparse.cpp: fixed base64 decoding of email parts: str[x] = ch does not adjust length! and be more lenient with encoding errors 2005-10-22 13:10 +0000 dockes (9a5b142d31f3) * src/README: *** empty log message *** 2005-10-22 13:10 +0000 dockes (d5ccf5480db1 [RECOLL-1_03]) * src/VERSION, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: update status line when starting lengthy operations 2005-10-22 07:29 +0000 dockes (df8ad947685b) * src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: get clicks in res list to behave: drag->no click. dblclick->no single click 2005-10-22 05:35 +0000 dockes (c566d157cfd3) * src/qtgui/recoll_fr.ts: new file. * src/qtgui/main.cpp, src/qtgui/recoll.pro, src/qtgui/recoll_fr.ts: i8n 2005-10-21 15:45 +0000 dockes (34b797e01868) * src/mk/commondefs: new file. * src/mk/commondefs: *** empty log message *** 2005-10-21 15:41 +0000 dockes (08f9ad818cb3 [RECOLL-1_02]) * src/makestaticdist.sh, src/recollinstall: more verbosity in install 2005-10-21 15:22 +0000 dockes (aa642ead5a8e) * src/INSTALL: *** empty log message *** 2005-10-21 15:11 +0000 dockes (1c74d6d926b7) * src/INSTALL: *** empty log message *** 2005-10-21 14:14 +0000 dockes (662fe9bab837) * src/excludefile: *** empty log message *** 2005-10-21 14:11 +0000 dockes (1856de4bf3f6) * src/makestaticdist.sh: new file. * src/Makefile, src/makestaticdist.sh: static bin dists 2005-10-21 13:34 +0000 dockes (0c861c8b6029) * src/INSTALL, src/README: *** empty log message *** 2005-10-21 13:33 +0000 dockes (7256b6e4e2ff) * src/Makefile, src/excludefile, src/index/Makefile, src/makesrcdist.sh, src/mk/FreeBSD, src/mk/Linux, src/mk/SunOS, src/qtgui/recoll.pro: rearrange make includes+prepare bin static distrib 2005-10-21 12:15 +0000 dockes (a9773a1a4715) * src/unac/unac.c: fix args to iconv to get rid of warnings 2005-10-21 08:14 +0000 dockes (f50d252ec29b) * src/Makefile, src/VERSION, src/excludefile, src/mk/FreeBSD, src/mk/Linux, src/qtgui/preview/pvmain.cpp, src/utils/smallut.cpp: more small build tweaks. use mkdtemp if available 2005-10-20 16:20 +0000 dockes (b5fe53035720 [RECOLL-1_01]) * src/qtgui/advsearch.ui, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h: CR->search in advanced dialog. ^W close tab in preview 2005-10-20 15:42 +0000 dockes (a9e9ecfba2d2) * src/filters/rcldoc, src/filters/rclpdf, src/filters/rclps, src/filters/rclsoff, src/mk/SunOS: small fixes for SunOS 2005-10-20 12:17 +0000 dockes (bc70bba2564c) * src/README, src/makesrcdist.sh: *** empty log message *** 2005-10-20 12:17 +0000 dockes (4e8de2aee40d) * src/INSTALL, src/README: *** empty log message *** 2005-10-20 12:17 +0000 dockes (39b33b1f4e36) * src/INSTALL, src/README: *** empty log message *** 2005-10-20 12:16 +0000 dockes (45a324ad4baa) * src/INSTALL, src/README: *** empty log message *** 2005-10-20 12:16 +0000 dockes (73b1f99aef21) * src/INSTALL, src/README: *** empty log message *** 2005-10-20 12:12 +0000 dockes (b3a8d1bceb51) * src/INSTALL, src/README: *** empty log message *** 2005-10-20 11:38 +0000 dockes (5966cd48c62c) * src/sampleconf/recoll.conf: defaultlanguage->english 2005-10-20 11:33 +0000 dockes (4ba3bd42973e) * src/recollinstall: new file. * src/bincimapmime/Makefile, src/filters/rcldoc, src/filters/rclpdf, src/filters/rclps, src/filters/rclsoff, src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/recollinstall: small installation tweaks 2005-10-20 08:34 +0000 dockes (8ce6cff4ca9c) * src/Makefile, src/VERSION, src/bincimapmime/Makefile, src/excludefile, src/lib/Makefile, src/mk/FreeBSD, src/qtgui/plaintorich.cpp, src/qtgui/preview/preview.ui.h, src/qtgui/recoll.pro: small warning and compilation adjustments 2005-10-20 07:51 +0000 dockes (b6f58b26d846 [RECOLL-1_0]) * src/configure: new file. * src/README, src/configure: *** empty log message *** 2005-10-19 16:29 +0000 dockes (46a91fdb7a8e) * src/INSTALL, src/README: *** empty log message *** 2005-10-19 16:27 +0000 dockes (92e16891b11d) * src/INSTALL: *** empty log message *** 2005-10-19 16:09 +0000 dockes (0dda1bd16921) * src/README, src/VERSION: *** empty log message *** 2005-10-19 15:22 +0000 dockes (88cadb2e703e) * src/qtgui/recollmain.ui: *** empty log message *** 2005-10-19 14:14 +0000 dockes (61cd7c267dec) * src/common/rclconfig.cpp, src/qtgui/advsearch.ui.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/idfile.cpp, src/utils/idfile.h: implemented filtering on file subtree 2005-10-19 10:21 +0000 dockes (598116a30bfb) * src/common/textsplit.cpp, src/common/textsplit.h, src/filters/rcldoc, src/filters/rclpdf, src/filters/rclps, src/filters/rclsoff, src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h, src/qtgui/main.cpp, src/qtgui/plaintorich.cpp, src/qtgui/recoll.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: most of adv search working. Still need subtree/filename filters 2005-10-17 13:36 +0000 dockes (6ce40ecb81f6) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/preview/pvmain.cpp, src/qtgui/recoll.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/utils/Makefile: implemented dialog/glue for advanced search 2005-10-15 12:18 +0000 dockes (b57626e188f9) * src/index/indexer.cpp, src/internfile/mh_mail.cpp, src/utils/mimeparse.cpp, src/utils/mimeparse.h: decode encoded mail headers, plus use message date instead of file mtime 2005-10-10 13:25 +0000 dockes (3797f12a0832) * src/common/textsplit.h: comments 2005-10-10 13:24 +0000 dockes (a339c123dcb9) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: ckpt 2005-10-10 12:29 +0000 dockes (e88bad1f996b) * src/qtgui/advsearch.ui, src/qtgui/main.cpp, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/preview/pvmain.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: ckpt 2005-09-27 06:20 +0000 dockes (8b147a42b660) * src/qtgui/preview/preview.pro, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/preview/pvmain.cpp: new file. * src/qtgui/preview/preview.pro, src/qtgui/preview/preview.ui, src/qtgui/preview/preview.ui.h, src/qtgui/preview/pvmain.cpp: *** empty log message *** 2005-09-26 16:17 +0000 dockes (783900fcd3e7) * src/qtgui/recoll.pro: *** empty log message *** 2005-09-22 16:22 +0000 dockes (1e6ccf2c2fdc) * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h: new file. * src/qtgui/plaintorich.cpp, src/qtgui/plaintorich.h: *** empty log message *** 2005-09-22 15:00 +0000 dockes (db2d876f2a2b) * src/qtgui/recollmain.ui.h: *** empty log message *** 2005-09-22 14:09 +0000 dockes (4455c0eeffd4) * src/common/textsplit.cpp: adjust start/end of word when trimming 2005-09-22 11:10 +0000 dockes (3b9d4fc5b507) * src/common/textsplit.cpp: fix problems with word followed by . 2005-05-18 08:42 +0000 dockes (03bc1f1290cd) * src/qtgui/recoll.pro: *** empty log message *** 2005-05-17 11:46 +0000 dockes (cff6e901fde8) * src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h: new file. * src/qtgui/advsearch.ui, src/qtgui/advsearch.ui.h, src/qtgui/recoll.pro: *** empty log message *** 2005-05-17 06:30 +0000 dockes (9a44703bd049 [RECOLL-0_7]) * src/README: *** empty log message *** 2005-05-17 06:30 +0000 dockes (d2265051082d) * src/qtgui/recollmain.ui.h: escape < to < in rich text 2005-04-08 07:32 +0000 dockes (3917ab1cc937) * src/README: *** empty log message *** 2005-04-08 07:32 +0000 dockes (2f2439c9590a) * src/mk/SunOS: new file. * src/Makefile, src/mk/SunOS, src/utils/Makefile: works on solaris8 2005-04-07 09:05 +0000 dockes (0264f1839b92) * src/utils/idfile.cpp, src/utils/idfile.h: new file. * src/index/mimetype.cpp, src/lib/Makefile, src/sampleconf/mimemap, src/utils/Makefile, src/utils/idfile.cpp, src/utils/idfile.h: replaced /usr/bin/file exec with internal code 2005-04-06 10:20 +0000 dockes (ba9162debe5a) * src/bincimapmime/AUTHORS, src/bincimapmime/COPYING: new file. * src/INSTALL, src/VERSION, src/bincimapmime/AUTHORS, src/bincimapmime/COPYING, src/bincimapmime/mime-inputsource.h, src/index/indexer.cpp, src/internfile/mh_mail.cpp, src/makesrcdist.sh, src/mk/FreeBSD, src/mk/Linux, src/qtgui/main.cpp, src/rcldb/rcldb.cpp, src/sampleconf/recoll.conf, src/utils/smallut.h, src/utils/wipedir.cpp: re-port to linux 2005-04-06 09:18 +0000 dockes (d8add828aa6b) * src/README: *** empty log message *** 2005-04-06 09:13 +0000 dockes (7d5759a43255) * src/README: *** empty log message *** 2005-04-05 09:35 +0000 dockes (6232ca052972) * src/common/rclinit.cpp, src/common/rclinit.h: new file. * src/common/rclinit.cpp, src/common/rclinit.h, src/index/mimetype.cpp, src/index/recollindex.cpp, src/internfile/internfile.cpp, src/internfile/mh_mail.cpp, src/lib/Makefile, src/qtgui/main.cpp, src/rcldb/rcldb.cpp, src/sampleconf/mimemap: *** empty log message *** 2005-04-04 13:18 +0000 dockes (e69c810eb5b1) * src/index/indexer.cpp, src/index/mimetype.cpp, src/internfile/mh_html.cpp, src/internfile/mh_mail.cpp, src/rcldb/rcldb.cpp, src/sampleconf/mimeconf, src/utils/fstreewalk.cpp, src/utils/fstreewalk.h: *** empty log message *** 2005-03-31 10:04 +0000 dockes (9428bb11ff77) * src/bincimapmime/mime-inputsource.h, src/bincimapmime/mime- parsefull.cc, src/bincimapmime/mime-parseonlyheader.cc, src/bincimapmime/mime-printbody.cc, src/bincimapmime/mime.h, src/bincimapmime/trbinc.cc, src/common/rclconfig.cpp, src/internfile/mh_html.cpp, src/internfile/mh_html.h, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h, src/rcldb/rcldb.cpp: mail handling 1st working version 2005-03-25 09:40 +0000 dockes (408a2650e963 [RECOLL-0_6]) * src/bincimapmime/00README.recoll, src/bincimapmime/trbinc.cc, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h: new file. * src/bincimapmime/00README.recoll, src/bincimapmime/mime- printbody.cc, src/bincimapmime/mime.h, src/bincimapmime/trbinc.cc, src/common/Makefile, src/index/Makefile, src/index/indexer.cpp, src/index/mimetype.cpp, src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/mh_html.cpp, src/internfile/mh_html.h, src/internfile/mh_mail.cpp, src/internfile/mh_mail.h, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/internfile/myhtmlparse.cpp, src/lib/Makefile, src/mk/FreeBSD, src/qtgui/recoll.pro, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.h, src/sampleconf/mimeconf, src/utils/mimeparse.cpp, src/utils/mimeparse.h: mail ckpt 2005-03-17 15:35 +0000 dockes (55a0c15039bf) * src/index/indexer.cpp, src/index/indexer.h, src/internfile/internfile.cpp, src/internfile/mh_html.h: only comments. Before multidoc files 2005-03-17 14:02 +0000 dockes (b1f57902f3c1) * src/bincimapmime/Makefile, src/bincimapmime/iodevice.cc, src/index/indexer.cpp, src/qtgui/recollmain.ui.h, src/sampleconf/mimeconf, src/utils/execmd.cpp, src/utils/execmd.h, src/utils/mimeparse.cpp, src/utils/smallut.cpp, src/utils/smallut.h, src/utils/utf8iter.h: checkpoint after long pause 2005-03-16 07:35 +0000 dockes (4d4d71cd89ea) * src/bincimapmime/Makefile, src/bincimapmime/address.cc, src/bincimapmime/address.h, src/bincimapmime/config.h, src/bincimapmime/convert.cc, src/bincimapmime/convert.h, src/bincimapmime/depot.h, src/bincimapmime/iodevice.cc, src/bincimapmime/iodevice.h, src/bincimapmime/iofactory.cc, src/bincimapmime/iofactory.h, src/bincimapmime/mime-getpart.cc, src/bincimapmime/mime-inputsource.h, src/bincimapmime/mime- parsefull.cc, src/bincimapmime/mime-parseonlyheader.cc, src/bincimapmime/mime-printbody.cc, src/bincimapmime/mime- printdoc.cc, src/bincimapmime/mime-printheader.cc, src/bincimapmime /mime-utils.h, src/bincimapmime/mime.cc, src/bincimapmime/mime.h, src/bincimapmime/session.h: new file. * src/bincimapmime/Makefile, src/bincimapmime/address.cc, src/bincimapmime/address.h, src/bincimapmime/config.h, src/bincimapmime/convert.cc, src/bincimapmime/convert.h, src/bincimapmime/depot.h, src/bincimapmime/iodevice.cc, src/bincimapmime/iodevice.h, src/bincimapmime/iofactory.cc, src/bincimapmime/iofactory.h, src/bincimapmime/mime-getpart.cc, src/bincimapmime/mime-inputsource.h, src/bincimapmime/mime- parsefull.cc, src/bincimapmime/mime-parseonlyheader.cc, src/bincimapmime/mime-printbody.cc, src/bincimapmime/mime- printdoc.cc, src/bincimapmime/mime-printheader.cc, src/bincimapmime /mime-utils.h, src/bincimapmime/mime.cc, src/bincimapmime/mime.h, src/bincimapmime/session.h: initial import from bincimap-1.3.3 2005-02-11 11:48 +0000 dockes (7b2bdc5c6ed9) * src/README, src/makesrcdist.sh: *** empty log message *** 2005-02-11 11:48 +0000 dockes (ffca521040c2) * src/README: *** empty log message *** 2005-02-11 11:20 +0000 dockes (7c54c58f0fd1) * src/common/uproplist.h, src/utils/utf8testin.txt: new file. * src/common/textsplit.cpp, src/common/uproplist.h, src/utils/Makefile, src/utils/utf8iter.cpp, src/utils/utf8iter.h, src/utils/utf8testin.txt: improved word extraction a bit (unicode punctuation) 2005-02-10 19:52 +0000 dockes (ba4dd19f41c4) * src/utils/utf8iter.cpp, src/utils/utf8iter.h: new file. * src/common/textsplit.cpp, src/utils/Makefile, src/utils/utf8iter.cpp, src/utils/utf8iter.h: *** empty log message *** 2005-02-10 15:21 +0000 dockes (44892bfc8d49) * src/index/indexer.cpp, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/execmd.cpp, src/utils/fstreewalk.cpp, src/utils/fstreewalk.h, src/utils/smallut.cpp, src/utils/smallut.h: implemented stem databases 2005-02-09 13:34 +0000 dockes (7517469a76b5) * src/index/Makefile, src/index/mimetype.cpp: *** empty log message *** 2005-02-09 12:07 +0000 dockes (e5d0612227af) * src/filters/rcldoc, src/filters/rclsoff, src/utils/wipedir.cpp, src/utils/wipedir.h: new file. * src/VERSION, src/filters/rcldoc, src/filters/rclsoff, src/index/indexer.cpp, src/index/mimetype.cpp, src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/myhtmlparse.cpp, src/lib/Makefile, src/qtgui/main.cpp, src/qtgui/recoll.h, src/qtgui/recollmain.ui.h, src/sampleconf/mimeconf, src/sampleconf/mimemap, src/utils/Makefile, src/utils/smallut.cpp, src/utils/smallut.h, src/utils/wipedir.cpp, src/utils/wipedir.h: added support for openoffice and word + optimized decomp temp dir usage 2005-02-08 17:35 +0000 dockes (e5a6d4a27e1f) * src/INSTALL, src/README: *** empty log message *** 2005-02-08 15:08 +0000 dockes (f89783d5d828) * src/excludefile, src/makesrcdist.sh: new file. * src/README, src/excludefile, src/makesrcdist.sh: *** empty log message *** 2005-02-08 15:03 +0000 dockes (4ec10decb898) * src/README: *** empty log message *** 2005-02-08 14:55 +0000 dockes (07541712859f) * src/README: *** empty log message *** 2005-02-08 14:54 +0000 dockes (fa3ad0590138 [RECOLL-0_5]) * src/Makefile, src/README, src/qtgui/recoll.pro, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/sampleconf/recoll.conf: *** empty log message *** 2005-02-08 14:45 +0000 dockes (d04d78bb1af4) * src/INSTALL, src/internfile/myhtmlparse.cpp, src/qtgui/recoll.pro: *** empty log message *** 2005-02-08 11:59 +0000 dockes (b5f33d8a83cb) * src/common/textsplit.cpp, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: fixed next/prev screen pb + pb with accents when matching in preview 2005-02-08 10:56 +0000 dockes (ea8c32a3b71e) * src/common/textsplit.cpp, src/common/textsplit.h, src/rcldb/rcldb.cpp: phrases ok except for preview position 2005-02-08 09:34 +0000 dockes (8f72bd8ca147) * src/common/textsplit.cpp, src/common/textsplit.h, src/qtgui/recoll.pro, src/qtgui/recollmain.ui.h, src/query/xadump.cpp, src/rcldb/rcldb.cpp, src/utils/execmd.cpp: fixes in textsplit 2005-02-07 13:17 +0000 dockes (3e10d31a55a9) * src/common/textsplit.cpp, src/common/textsplit.h, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: simple term highlighting in query preview 2005-02-04 14:21 +0000 dockes (77a59732f8aa) * src/COPYING, src/INSTALL, src/README, src/VERSION, src/filters/rcluncomp, src/internfile/internfile.cpp, src/internfile/internfile.h, src/mk/Linux, src/qtgui/images/editcopy, src/qtgui/images/editcut, src/qtgui/images/editpaste, src/qtgui/images/filenew, src/qtgui/images/fileopen, src/qtgui/images/filesave, src/qtgui/images/print, src/qtgui/images/redo, src/qtgui/images/searchfind, src/qtgui/images/undo: new file. * src/COPYING, src/INSTALL, src/Makefile, src/README, src/VERSION, src/common/Makefile, src/common/unacpp.cpp, src/filters/rcluncomp, src/index/Makefile, src/index/csguess.cpp, src/index/indexer.cpp, src/internfile/internfile.cpp, src/internfile/internfile.h, src/internfile/mimehandler.cpp, src/lib/Makefile, src/mk/FreeBSD, src/mk/Linux, src/qtgui/idxthread.cpp, src/qtgui/images/editcopy, src/qtgui/images/editcut, src/qtgui/images/editpaste, src/qtgui/images/filenew, src/qtgui/images/fileopen, src/qtgui/images/filesave, src/qtgui/images/print, src/qtgui/images/redo, src/qtgui/images/searchfind, src/qtgui/images/undo, src/qtgui/recoll.pro, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/Makefile, src/rcldb/rcldb.cpp, src/utils/Makefile, src/utils/pathut.cpp, src/utils/transcode.cpp: uncompression+linux port 2005-02-04 09:39 +0000 dockes (482687ce34da) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/index/indexer.cpp, src/internfile/mh_html.cpp, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/lib/Makefile, src/qtgui/recollmain.ui.h, src/utils/smallut.cpp, src/utils/smallut.h: *** empty log message *** 2005-02-04 09:30 +0000 dockes (5fac5dd8a1c4) * src/sampleconf/mimeconf, src/sampleconf/mimemap, src/sampleconf/recoll.conf: *** empty log message *** 2005-02-04 09:21 +0000 dockes (2ad004ec5fd7) * src/sampleconf/mimeconf, src/sampleconf/mimemap, src/sampleconf/recoll.conf: new file. * src/sampleconf/mimeconf, src/sampleconf/mimemap, src/sampleconf/recoll.conf: *** empty log message *** 2005-02-02 17:57 +0000 dockes (4819b0b410e7) * src/filters/rclps: new file. * src/filters/rclps: *** empty log message *** 2005-02-01 17:52 +0000 dockes (023ac2c1c87f) * src/internfile/mimehandler.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp: *** empty log message *** 2005-02-01 17:20 +0000 dockes (4eb8337baa03) * src/filters/rclpdf, src/internfile/mh_html.h, src/mk/FreeBSD, src/qtgui/idxthread.h, src/qtgui/recoll.h: new file. * src/filters/rclpdf, src/index/indexer.cpp, src/internfile/mh_html.cpp, src/internfile/mh_html.h, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/lib/Makefile, src/mk/FreeBSD, src/qtgui/idxthread.h, src/qtgui/recoll.h, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/utils/Makefile, src/utils/execmd.cpp: added external filters and pdf handling 2005-02-01 08:42 +0000 dockes (b82908e25c6b) * src/common/Makefile, src/index/Makefile, src/index/recollindex.cpp, src/lib/Makefile, src/qtgui/idxthread.cpp, src/qtgui/main.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/Makefile, src/rcldb/rcldb.cpp, src/utils/Makefile: *** empty log message *** 2005-01-31 14:31 +0000 dockes (c8a32d0e0056) * src/index/indexer.cpp, src/qtgui/idxthread.cpp, src/utils/smallut.cpp, src/utils/smallut.h: new file. * src/common/rclconfig.cpp, src/index/indexer.cpp, src/index/indexer.h, src/index/recollindex.cpp, src/lib/Makefile, src/qtgui/idxthread.cpp, src/qtgui/main.cpp, src/qtgui/recoll.pro, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/qtry.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/Makefile, src/utils/pathut.cpp, src/utils/pathut.h, src/utils/smallut.cpp, src/utils/smallut.h: first incarnation of indexing thread 2005-01-29 15:41 +0000 dockes (3dd05c65d8ed) * src/index/recollindex.cpp, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/lib/Makefile, src/qtgui/main.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/Makefile: external viewer+ deleted doc purging 2005-01-28 15:25 +0000 dockes (8c6b04552a34) * src/Makefile, src/internfile/indextext.h: new file. * src/Makefile, src/internfile/indextext.h, src/internfile/myhtmlparse.cpp, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: ckpt 2005-01-28 09:37 +0000 dockes (bf2c00ad72d0) * src/internfile/mh_html.cpp, src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h, src/lib/Makefile, src/rcldb/rcldb.cpp: merged modifs from xapian/omega 0.8.5 2005-01-28 08:56 +0000 dockes (a5e2a08ce1b8) * src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h: import from xapian 0.8.5 2005-01-28 08:50 +0000 dockes (73f5b0ed50d8) * src/internfile/htmlparse.cpp, src/internfile/htmlparse.h: Initial recoll modifs for utf8 2005-01-28 08:46 +0000 dockes (04f0053d01e4) * src/internfile/mh_html.cpp, src/rcldb/rcldb.cpp: xapian 0.8.3 2005-01-28 08:45 +0000 dockes (ec7863976555) * src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h: new file. * src/internfile/myhtmlparse.cpp, src/internfile/myhtmlparse.h: *** empty log message *** 2005-01-28 08:41 +0000 dockes (c5c570040571) * src/internfile/htmlparse.cpp, src/internfile/htmlparse.h: new file. * src/internfile/htmlparse.cpp, src/internfile/htmlparse.h: xapian 0.8.3 2005-01-26 13:03 +0000 dockes (5a37e2aa9a53) * src/index/recollindex.cpp, src/internfile/mh_html.cpp, src/internfile/mimehandler.cpp, src/rcldb/rcldb.cpp: sort of indexes html 2005-01-26 11:47 +0000 dockes (eec829a74f2d) * src/internfile/mh_html.cpp: new file. * src/internfile/mh_html.cpp, src/internfile/mimehandler.cpp, src/internfile/mimehandler.h, src/lib/Makefile, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/qtry.cpp, src/rcldb/rcldb.cpp, src/utils/Makefile: ckpt 2005-01-26 11:45 +0000 dockes (1c17d5d56a6b) * src/utils/mimeparse.cpp, src/utils/mimeparse.h: new file. * src/utils/mimeparse.cpp, src/utils/mimeparse.h: mime header parsing embryo 2005-01-25 14:37 +0000 dockes (1d5b47c225bf) * src/internfile/mimehandler.cpp, src/internfile/mimehandler.h: new file. * src/internfile/mimehandler.cpp, src/internfile/mimehandler.h: *** empty log message *** 2005-01-25 14:37 +0000 dockes (46d42849ee3a) * src/lib/Makefile, src/qtgui/recoll.pro, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h: new file. * src/common/Makefile, src/common/rclconfig.cpp, src/index/Makefile, src/index/indexer.h, src/index/recollindex.cpp, src/lib/Makefile, src/qtgui/main.cpp, src/qtgui/recoll.pro, src/qtgui/recollmain.ui, src/qtgui/recollmain.ui.h, src/query/Makefile, src/query/qtry.cpp, src/query/xadump.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/Makefile, src/utils/transcode.h: gui connected to rcldb (init) 2005-01-24 13:17 +0000 dockes (e0104075bdd3) * src/common/Makefile, src/index/Makefile, src/qtgui/form1.ui, src/qtgui/form1.ui.h, src/qtgui/main.cpp, src/query/qtry.cpp, src/query/qxtry.cpp, src/utils/Makefile: new file. * src/common/Makefile, src/common/rclconfig.cpp, src/common/textsplit.h, src/common/unacpp.cpp, src/index/Makefile, src/qtgui/form1.ui, src/qtgui/form1.ui.h, src/qtgui/main.cpp, src/query/Makefile, src/query/qtry.cpp, src/query/qxtry.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/Makefile: *** empty log message *** 2004-12-17 15:50 +0000 dockes (4f7a0a26f6d7) * src/query/xadump.cpp, src/rcldb/rcldb.cpp: very basic indexing working 2004-12-17 15:36 +0000 dockes (325aea11f893) * src/common/unacpp.cpp, src/common/unacpp.h: new file. * src/common/unacpp.cpp, src/common/unacpp.h, src/rcldb/rcldb.cpp: *** empty log message *** 2004-12-17 15:04 +0000 dockes (930a5f50b45e) * src/unac/AUTHORS, src/unac/COPYING, src/unac/README, src/unac/README.recoll, src/unac/unac.c, src/unac/unac.h: new file. * src/unac/AUTHORS, src/unac/COPYING, src/unac/README, src/unac/README.recoll, src/unac/unac.c, src/unac/unac.h: unac 1.7.0 2004-12-17 13:01 +0000 dockes (70ded59ba246) * src/query/Makefile, src/query/xadump.cpp: new file. * src/common/rclconfig.h, src/common/textsplit.cpp, src/common/textsplit.h, src/index/recollindex.cpp, src/query/Makefile, src/query/xadump.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h: *** empty log message *** 2004-12-15 15:00 +0000 dockes (1e3483587b45) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/common/textsplit.cpp, src/index/csguess.cpp, src/index/csguess.h, src/index/indexer.h, src/index/mimetype.cpp, src/index/recollindex.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/transcode.cpp: warnings cleanup 2004-12-15 09:43 +0000 dockes (502752de59d5) * src/utils/transcode.cpp, src/utils/transcode.h: new file. * src/utils/transcode.cpp, src/utils/transcode.h: *** empty log message *** 2004-12-15 08:21 +0000 dockes (520f5e294f10) * src/index/csguess.cpp, src/index/csguess.h: new file. * src/index/csguess.cpp, src/index/csguess.h: just converted (indent+comments) from estraier 2004-12-14 17:54 +0000 dockes (12a23501eee8) * src/common/rclconfig.cpp, src/common/rclconfig.h, src/common/textsplit.h, src/index/indexer.h, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/readfile.cpp, src/utils/readfile.h: new file. * src/common/rclconfig.cpp, src/common/rclconfig.h, src/common/textsplit.cpp, src/common/textsplit.h, src/index/indexer.h, src/index/mimetype.cpp, src/index/mimetype.h, src/index/recollindex.cpp, src/rcldb/rcldb.cpp, src/rcldb/rcldb.h, src/utils/execmd.cpp, src/utils/pathut.cpp, src/utils/pathut.h, src/utils/readfile.cpp, src/utils/readfile.h: *** empty log message *** 2004-12-13 15:42 +0000 dockes (8c1fce132f19) * src/common/textsplit.cpp, src/index/mimetype.cpp, src/index/mimetype.h, src/index/recollindex.cpp: new file. * src/common/textsplit.cpp, src/index/mimetype.cpp, src/index/mimetype.h, src/index/recollindex.cpp: *** empty log message *** 2004-12-12 08:58 +0000 dockes (17a132340425) * src/utils/execmd.cpp, src/utils/execmd.h: new file. * src/utils/execmd.cpp, src/utils/execmd.h, src/utils/fstreewalk.cpp: *** empty log message *** 2004-12-10 18:13 +0000 dockes (1de12131e4a4) * src/utils/fstreewalk.cpp, src/utils/fstreewalk.h, src/utils/pathut.cpp, src/utils/pathut.h: new file. * src/utils/fstreewalk.cpp, src/utils/fstreewalk.h, src/utils/pathut.cpp, src/utils/pathut.h: *** empty log message *** 2004-12-10 18:13 +0000 unknown (318176766db7) * Standard project directories initialized by cvs2svn. recoll-1.21.5/doc/0000755000175000017500000000000012602163537013134 5ustar dockesdockesrecoll-1.21.5/doc/user/0000755000175000017500000000000012603157607014114 5ustar dockesdockesrecoll-1.21.5/doc/user/RCL.INDEXING.html0000644000175000017500000003336712603157602016635 0ustar dockesdockesChapter2.Indexing

Chapter2.Indexing

2.1.Introduction

Indexing is the process by which the set of documents is analyzed and the data entered into the database. Recoll indexing is normally incremental: documents will only be processed if they have been modified since the last run. On the first execution, all documents will need processing. A full index build can be forced later by specifying an option to the indexing command (recollindex -z or -Z).

recollindex skips files which caused an error during a previous pass. This is a performance optimization, and a new behaviour in version 1.21 (failed files were always retried by previous versions). The command line option -k can be set to retry failed files, for example after updating a filter.

The following sections give an overview of different aspects of the indexing processes and configuration, with links to detailed sections.

Depending on your data, temporary files may be needed during indexing, some of them possibly quite big. You can use the RECOLL_TMPDIR or TMPDIR environment variables to determine where they are created (the default is to use /tmp). Using TMPDIR has the nice property that it may also be taken into account by auxiliary commands executed by recollindex.

2.1.1.Indexing modes

Recoll indexing can be performed along two different modes:

  • Periodic (or batch) indexing:indexing takes place at discrete times, by executing the recollindex command. The typical usage is to have a nightly indexing run programmed into your cron file.

  • Real time indexing:indexing takes place as soon as a file is created or changed. recollindex runs as a daemon and uses a file system alteration monitor such as inotify, Fam or Gamin to detect file changes.

The choice between the two methods is mostly a matter of preference, and they can be combined by setting up multiple indexes (ie: use periodic indexing on a big documentation directory, and real time indexing on a small home directory). Monitoring a big file system tree can consume significant system resources.

The choice of method and the parameters used can be configured from the recoll GUI: PreferencesIndexing schedule

2.1.2.Configurations, multiple indexes

The parameters describing what is to be indexed and local preferences are defined in text files contained in a configuration directory.

All parameters have defaults, defined in system-wide files.

Without further configuration, Recoll will index all appropriate files from your home directory, with a reasonable set of defaults.

A default personal configuration directory ($HOME/.recoll/) is created when a Recoll program is first executed. It is possible to create other configuration directories, and use them by setting the RECOLL_CONFDIR environment variable, or giving the -c option to any of the Recoll commands.

In some cases, it may be interesting to index different areas of the file system to separate databases. You can do this by using multiple configuration directories, each indexing a file system area to a specific database. Typically, this would be done to separate personal and shared indexes, or to take advantage of the organization of your data to improve search precision.

The generated indexes can be queried concurrently in a transparent manner.

For index generation, multiple configurations are totally independant from each other. When multiple indexes need to be used for a single search, some parameters should be consistent among the configurations.

2.1.3.Document types

Recoll knows about quite a few different document types. The parameters for document types recognition and processing are set in configuration files.

Most file types, like HTML or word processing files, only hold one document. Some file types, like email folders or zip archives, can hold many individually indexed documents, which may themselves be compound ones. Such hierarchies can go quite deep, and Recoll can process, for example, a LibreOffice document stored as an attachment to an email message inside an email folder archived in a zip file...

Recoll indexing processes plain text, HTML, OpenDocument (Open/LibreOffice), email formats, and a few others internally.

Other file types (ie: postscript, pdf, ms-word, rtf ...) need external applications for preprocessing. The list is in the installation section. After every indexing operation, Recoll updates a list of commands that would be needed for indexing existing files types. This list can be displayed by selecting the menu option FileShow Missing Helpers in the recoll GUI. It is stored in the missing text file inside the configuration directory.

By default, Recoll will try to index any file type that it has a way to read. This is sometimes not desirable, and there are ways to either exclude some types, or on the contrary to define a positive list of types to be indexed. In the latter case, any type not in the list will be ignored.

Excluding types can be done by adding wildcard name patterns to the skippedNames list, which can be done from the GUI Index configuration menu. For versions 1.20 and later, you can alternatively set the excludedmimetypes list in the configuration file. This can be redefined for subdirectories.

You can also define an exclusive list of MIME types to be indexed (no others will be indexed), by settting the indexedmimetypes configuration variable. Example:

indexedmimetypes = text/html application/pdf
          

It is possible to redefine this parameter for subdirectories. Example:

[/path/to/my/dir]
indexedmimetypes = application/pdf
          

(When using sections like this, don't forget that they remain in effect until the end of the file or another section indicator).

excludedmimetypes or indexedmimetypes, can be set either by editing the main configuration file (recoll.conf), or from the GUI index configuration tool.

2.1.4.Indexing failures

Indexing may fail for some documents, for a number of reasons: a helper program may be missing, the document may be corrupt, we may fail to uncompress a file because no file system space is available, etc.

Recoll versions prior to 1.21 always retried to index files which had previously caused an error. This guaranteed that anything that may have become indexable (for example because a helper had been installed) would be indexed. However this was bad for performance because some indexing failures may be quite costly (for example failing to uncompress a big file because of insufficient disk space).

The indexer in Recoll versions 1.21 and later do not retry failed file by default. Retrying will only occur if an explicit option (-k) is set on the recollindex command line, or if a script executed when recollindex starts up says so. The script is defined by a configuration variable (checkneedretryindexscript), and makes a rather lame attempt at deciding if a helper command may have been installed, by checking if any of the common bin directories have changed.

2.1.5.Recovery

In the rare case where the index becomes corrupted (which can signal itself by weird search results or crashes), the index files need to be erased before restarting a clean indexing pass. Just delete the xapiandb directory (see next section), or, alternatively, start the next recollindex with the -z option, which will reset the database before indexing.

recoll-1.21.5/doc/user/RCL.PROGRAM.FIELDS.html0000644000175000017500000001400512603157603017471 0ustar dockesdockes4.2.Field data processing

4.2.Field data processing

Fields are named pieces of information in or about documents, like title, author, abstract.

The field values for documents can appear in several ways during indexing: either output by input handlers as meta fields in the HTML header section, or extracted from file extended attributes, or added as attributes of the Doc object when using the API, or again synthetized internally by Recoll.

The Recoll query language allows searching for text in a specific field.

Recoll defines a number of default fields. Additional ones can be output by handlers, and described in the fields configuration file.

Fields can be:

  • indexed, meaning that their terms are separately stored in inverted lists (with a specific prefix), and that a field-specific search is possible.

  • stored, meaning that their value is recorded in the index data record for the document, and can be returned and displayed with search results.

A field can be either or both indexed and stored. This and other aspects of fields handling is defined inside the fields configuration file.

The sequence of events for field processing is as follows:

  • During indexing, recollindex scans all meta fields in HTML documents (most document types are transformed into HTML at some point). It compares the name for each element to the configuration defining what should be done with fields (the fields file)

  • If the name for the meta element matches one for a field that should be indexed, the contents are processed and the terms are entered into the index with the prefix defined in the fields file.

  • If the name for the meta element matches one for a field that should be stored, the content of the element is stored with the document data record, from which it can be extracted and displayed at query time.

  • At query time, if a field search is performed, the index prefix is computed and the match is only performed against appropriately prefixed terms in the index.

  • At query time, the field can be displayed inside the result list by using the appropriate directive in the definition of the result list paragraph format. All fields are displayed on the fields screen of the preview window (which you can reach through the right-click menu). This is independant of the fact that the search which produced the results used the field or not.

You can find more information in the section about the fields file, or in comments inside the file.

You can also have a look at the example on the Wiki, detailing how one could add a page count field to pdf documents for displaying inside result lists.

recoll-1.21.5/doc/user/usermanual.html0000644000175000017500000144014512603157602017162 0ustar dockesdockes Recoll user manual

Recoll user manual

Jean-Francois Dockes

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at the following location: GNU web site.

This document introduces full text search notions and describes the installation and use of the Recoll application. This version describes Recoll 1.21.


Table of Contents

1. Introduction
1.1. Giving it a try
1.2. Full text search
1.3. Recoll overview
2. Indexing
2.1. Introduction
2.1.1. Indexing modes
2.1.2. Configurations, multiple indexes
2.1.3. Document types
2.1.4. Indexing failures
2.1.5. Recovery
2.2. Index storage
2.2.1. Xapian index formats
2.2.2. Security aspects
2.3. Index configuration
2.3.1. Multiple indexes
2.3.2. Index case and diacritics sensitivity
2.3.3. The index configuration GUI
2.4. Indexing WEB pages you wisit
2.5. Extended attributes data
2.6. Importing external tags
2.7. Periodic indexing
2.7.1. Running indexing
2.7.2. Using cron to automate indexing
2.8. Real time indexing
2.8.1. Slowing down the reindexing rate for fast changing files
3. Searching
3.1. Searching with the Qt graphical user interface
3.1.1. Simple search
3.1.2. The default result list
3.1.3. The result table
3.1.4. Running arbitrary commands on result files (1.20 and later)
3.1.5. Displaying thumbnails
3.1.6. The preview window
3.1.7. The Query Fragments window
3.1.8. Complex/advanced search
3.1.9. The term explorer tool
3.1.10. Multiple indexes
3.1.11. Document history
3.1.12. Sorting search results and collapsing duplicates
3.1.13. Search tips, shortcuts
3.1.14. Saving and restoring queries (1.21 and later)
3.1.15. Customizing the search interface
3.2. Searching with the KDE KIO slave
3.2.1. What's this
3.2.2. Searchable documents
3.3. Searching on the command line
3.4. Path translations
3.5. The query language
3.5.1. Modifiers
3.6. Search case and diacritics sensitivity
3.7. Anchored searches and wildcards
3.7.1. More about wildcards
3.7.2. Anchored searches
3.8. Desktop integration
3.8.1. Hotkeying recoll
3.8.2. The KDE Kicker Recoll applet
4. Programming interface
4.1. Writing a document input handler
4.1.1. Simple input handlers
4.1.2. "Multiple" handlers
4.1.3. Telling Recoll about the handler
4.1.4. Input handler HTML output
4.1.5. Page numbers
4.2. Field data processing
4.3. API
4.3.1. Interface elements
4.3.2. Python interface
5. Installation and configuration
5.1. Installing a binary copy
5.2. Supporting packages
5.3. Building from source
5.3.1. Prerequisites
5.3.2. Building
5.3.3. Installation
5.4. Configuration overview
5.4.1. Environment variables
5.4.2. The main configuration file, recoll.conf
5.4.3. The fields file
5.4.4. The mimemap file
5.4.5. The mimeconf file
5.4.6. The mimeview file
5.4.7. The ptrans file
5.4.8. Examples of configuration adjustments

Chapter 1. Introduction

1.1. Giving it a try

If you do not like reading manuals (who does?) but wish to give Recoll a try, just install the application and start the recoll graphical user interface (GUI), which will ask permission to index your home directory by default, allowing you to search immediately after indexing completes.

Do not do this if your home directory contains a huge number of documents and you do not want to wait or are very short on disk space. In this case, you may first want to customize the configuration to restrict the indexed area (for the very impatient with a completed package install, from the recoll GUI: PreferencesIndexing configuration, then adjust the Top directories section).

Also be aware that you may need to install the appropriate supporting applications for document types that need them (for example antiword for Microsoft Word files).

1.2. Full text search

Recoll is a full text search application. Full text search finds your data by content rather than by external attributes (like a file name). You specify words (terms) which should or should not appear in the text you are looking for, and receive in return a list of matching documents, ordered so that the most relevant documents will appear first.

You do not need to remember in what file or email message you stored a given piece of information. You just ask for related terms, and the tool will return a list of documents where these terms are prominent, in a similar way to Internet search engines.

Full text search applications try to determine which documents are most relevant to the search terms you provide. Computer algorithms for determining relevance can be very complex, and in general are inferior to the power of the human mind to rapidly determine relevance. The quality of relevance guessing is probably the most important aspect when evaluating a search application.

In many cases, you are looking for all the forms of a word, including plurals, different tenses for a verb, or terms derived from the same root or stem (example: floor, floors, floored, flooring...). Queries are usually automatically expanded to all such related terms (words that reduce to the same stem). This can be prevented for searching for a specific form.

Stemming, by itself, does not accommodate for misspellings or phonetic searches. A full text search application may also support this form of approximation. For example, a search for aliterattion returning no result may propose, depending on index contents, alliteration alteration alterations altercation as possible replacement terms.

1.3. Recoll overview

Recoll uses the Xapian information retrieval library as its storage and retrieval engine. Xapian is a very mature package using a sophisticated probabilistic ranking model.

The Xapian library manages an index database which describes where terms appear in your document files. It efficiently processes the complex queries which are produced by the Recoll query expansion mechanism, and is in charge of the all-important relevance computation task.

Recoll provides the mechanisms and interface to get data into and out of the index. This includes translating the many possible document formats into pure text, handling term variations (using Xapian stemmers), and spelling approximations (using the aspell speller), interpreting user queries and presenting results.

In a shorter way, Recoll does the dirty footwork, Xapian deals with the intelligent parts of the process.

The Xapian index can be big (roughly the size of the original document set), but it is not a document archive. Recoll can only display documents that still exist at the place from which they were indexed. (Actually, there is a way to reconstruct a document from the information in the index, but the result is not nice, as all formatting, punctuation and capitalization are lost).

Recoll stores all internal data in Unicode UTF-8 format, and it can index files of many types with different character sets, encodings, and languages into the same index. It can process documents embedded inside other documents (for example a pdf document stored inside a Zip archive sent as an email attachment...), down to an arbitrary depth.

Stemming is the process by which Recoll reduces words to their radicals so that searching does not depend, for example, on a word being singular or plural (floor, floors), or on a verb tense (flooring, floored). Because the mechanisms used for stemming depend on the specific grammatical rules for each language, there is a separate Xapian stemmer module for most common languages where stemming makes sense.

Recoll stores the unstemmed versions of terms in the main index and uses auxiliary databases for term expansion (one for each stemming language), which means that you can switch stemming languages between searches, or add a language without needing a full reindex.

Storing documents written in different languages in the same index is possible, and commonly done. In this situation, you can specify several stemming languages for the index.

Recoll currently makes no attempt at automatic language recognition, which means that the stemmer will sometimes be applied to terms from other languages with potentially strange results. In practise, even if this introduces possibilities of confusion, this approach has been proven quite useful, and it is much less cumbersome than separating your documents according to what language they are written in.

Before version 1.18, Recoll stripped most accents and diacritics from terms, and converted them to lower case before either storing them in the index or searching for them. As a consequence, it was impossible to search for a particular capitalization of a term (US / us), or to discriminate two terms based on diacritics (sake / saké, mate / maté).

As of version 1.18, Recoll can optionally store the raw terms, without accent stripping or case conversion. In this configuration, it is still possible (and most common) for a query to be insensitive to case and/or diacritics. Appropriate term expansions are performed before actually accessing the main index. This is described in more detail in the section about index case and diacritics sensitivity.

Recoll has many parameters which define exactly what to index, and how to classify and decode the source documents. These are kept in configuration files. A default configuration is copied into a standard location (usually something like /usr/[local/]share/recoll/examples) during installation. The default values set by the configuration files in this directory may be overridden by values that you set inside your personal configuration, found by default in the .recoll sub-directory of your home directory. The default configuration will index your home directory with default parameters and should be sufficient for giving Recoll a try, but you may want to adjust it later, which can be done either by editing the text files or by using configuration menus in the recoll GUI. Some other parameters affecting only the recoll GUI are stored in the standard location defined by Qt.

The indexing process is started automatically the first time you execute the recoll GUI. Indexing can also be performed by executing the recollindex command. Recoll indexing is multithreaded by default when appropriate hardware resources are available, and can perform in parallel multiple tasks among text extraction, segmentation and index updates.

Searches are usually performed inside the recoll GUI, which has many options to help you find what you are looking for. However, there are other ways to perform Recoll searches: mostly a command line interface, a Python programming interface, a KDE KIO slave module, and Ubuntu Unity Lens (for older versions) or Scope (for current versions) modules.

Chapter 2. Indexing

2.1. Introduction

Indexing is the process by which the set of documents is analyzed and the data entered into the database. Recoll indexing is normally incremental: documents will only be processed if they have been modified since the last run. On the first execution, all documents will need processing. A full index build can be forced later by specifying an option to the indexing command (recollindex -z or -Z).

recollindex skips files which caused an error during a previous pass. This is a performance optimization, and a new behaviour in version 1.21 (failed files were always retried by previous versions). The command line option -k can be set to retry failed files, for example after updating a filter.

The following sections give an overview of different aspects of the indexing processes and configuration, with links to detailed sections.

Depending on your data, temporary files may be needed during indexing, some of them possibly quite big. You can use the RECOLL_TMPDIR or TMPDIR environment variables to determine where they are created (the default is to use /tmp). Using TMPDIR has the nice property that it may also be taken into account by auxiliary commands executed by recollindex.

2.1.1. Indexing modes

Recoll indexing can be performed along two different modes:

  • Periodic (or batch) indexing: indexing takes place at discrete times, by executing the recollindex command. The typical usage is to have a nightly indexing run programmed into your cron file.

  • Real time indexing: indexing takes place as soon as a file is created or changed. recollindex runs as a daemon and uses a file system alteration monitor such as inotify, Fam or Gamin to detect file changes.

The choice between the two methods is mostly a matter of preference, and they can be combined by setting up multiple indexes (ie: use periodic indexing on a big documentation directory, and real time indexing on a small home directory). Monitoring a big file system tree can consume significant system resources.

The choice of method and the parameters used can be configured from the recoll GUI: PreferencesIndexing schedule

2.1.2. Configurations, multiple indexes

The parameters describing what is to be indexed and local preferences are defined in text files contained in a configuration directory.

All parameters have defaults, defined in system-wide files.

Without further configuration, Recoll will index all appropriate files from your home directory, with a reasonable set of defaults.

A default personal configuration directory ($HOME/.recoll/) is created when a Recoll program is first executed. It is possible to create other configuration directories, and use them by setting the RECOLL_CONFDIR environment variable, or giving the -c option to any of the Recoll commands.

In some cases, it may be interesting to index different areas of the file system to separate databases. You can do this by using multiple configuration directories, each indexing a file system area to a specific database. Typically, this would be done to separate personal and shared indexes, or to take advantage of the organization of your data to improve search precision.

The generated indexes can be queried concurrently in a transparent manner.

For index generation, multiple configurations are totally independant from each other. When multiple indexes need to be used for a single search, some parameters should be consistent among the configurations.

2.1.3. Document types

Recoll knows about quite a few different document types. The parameters for document types recognition and processing are set in configuration files.

Most file types, like HTML or word processing files, only hold one document. Some file types, like email folders or zip archives, can hold many individually indexed documents, which may themselves be compound ones. Such hierarchies can go quite deep, and Recoll can process, for example, a LibreOffice document stored as an attachment to an email message inside an email folder archived in a zip file...

Recoll indexing processes plain text, HTML, OpenDocument (Open/LibreOffice), email formats, and a few others internally.

Other file types (ie: postscript, pdf, ms-word, rtf ...) need external applications for preprocessing. The list is in the installation section. After every indexing operation, Recoll updates a list of commands that would be needed for indexing existing files types. This list can be displayed by selecting the menu option FileShow Missing Helpers in the recoll GUI. It is stored in the missing text file inside the configuration directory.

By default, Recoll will try to index any file type that it has a way to read. This is sometimes not desirable, and there are ways to either exclude some types, or on the contrary to define a positive list of types to be indexed. In the latter case, any type not in the list will be ignored.

Excluding types can be done by adding wildcard name patterns to the skippedNames list, which can be done from the GUI Index configuration menu. For versions 1.20 and later, you can alternatively set the excludedmimetypes list in the configuration file. This can be redefined for subdirectories.

You can also define an exclusive list of MIME types to be indexed (no others will be indexed), by settting the indexedmimetypes configuration variable. Example:

indexedmimetypes = text/html application/pdf
          

It is possible to redefine this parameter for subdirectories. Example:

[/path/to/my/dir]
indexedmimetypes = application/pdf
          

(When using sections like this, don't forget that they remain in effect until the end of the file or another section indicator).

excludedmimetypes or indexedmimetypes, can be set either by editing the main configuration file (recoll.conf), or from the GUI index configuration tool.

2.1.4. Indexing failures

Indexing may fail for some documents, for a number of reasons: a helper program may be missing, the document may be corrupt, we may fail to uncompress a file because no file system space is available, etc.

Recoll versions prior to 1.21 always retried to index files which had previously caused an error. This guaranteed that anything that may have become indexable (for example because a helper had been installed) would be indexed. However this was bad for performance because some indexing failures may be quite costly (for example failing to uncompress a big file because of insufficient disk space).

The indexer in Recoll versions 1.21 and later do not retry failed file by default. Retrying will only occur if an explicit option (-k) is set on the recollindex command line, or if a script executed when recollindex starts up says so. The script is defined by a configuration variable (checkneedretryindexscript), and makes a rather lame attempt at deciding if a helper command may have been installed, by checking if any of the common bin directories have changed.

2.1.5. Recovery

In the rare case where the index becomes corrupted (which can signal itself by weird search results or crashes), the index files need to be erased before restarting a clean indexing pass. Just delete the xapiandb directory (see next section), or, alternatively, start the next recollindex with the -z option, which will reset the database before indexing.

2.2. Index storage

The default location for the index data is the xapiandb subdirectory of the Recoll configuration directory, typically $HOME/.recoll/xapiandb/. This can be changed via two different methods (with different purposes):

  • You can specify a different configuration directory by setting the RECOLL_CONFDIR environment variable, or using the -c option to the Recoll commands. This method would typically be used to index different areas of the file system to different indexes. For example, if you were to issue the following commands:

    export RECOLL_CONFDIR=~/.indexes-email
    recoll
              
    

    Then Recoll would use configuration files stored in ~/.indexes-email/ and, (unless specified otherwise in recoll.conf) would look for the index in ~/.indexes-email/xapiandb/.

    Using multiple configuration directories and configuration options allows you to tailor multiple configurations and indexes to handle whatever subset of the available data you wish to make searchable.

  • For a given configuration directory, you can specify a non-default storage location for the index by setting the dbdir parameter in the configuration file (see the configuration section). This method would mainly be of use if you wanted to keep the configuration directory in its default location, but desired another location for the index, typically out of disk occupation concerns.

The size of the index is determined by the size of the set of documents, but the ratio can vary a lot. For a typical mixed set of documents, the index size will often be close to the data set size. In specific cases (a set of compressed mbox files for example), the index can become much bigger than the documents. It may also be much smaller if the documents contain a lot of images or other non-indexed data (an extreme example being a set of mp3 files where only the tags would be indexed).

Of course, images, sound and video do not increase the index size, which means that nowadays (2012), typically, even a big index will be negligible against the total amount of data on the computer.

The index data directory (xapiandb) only contains data that can be completely rebuilt by an index run (as long as the original documents exist), and it can always be destroyed safely.

2.2.1. Xapian index formats

Xapian versions usually support several formats for index storage. A given major Xapian version will have a current format, used to create new indexes, and will also support the format from the previous major version.

Xapian will not convert automatically an existing index from the older format to the newer one. If you want to upgrade to the new format, or if a very old index needs to be converted because its format is not supported any more, you will have to explicitly delete the old index, then run a normal indexing process.

Using the -z option to recollindex is not sufficient to change the format, you will have to delete all files inside the index directory (typically ~/.recoll/xapiandb) before starting the indexing.

2.2.2. Security aspects

The Recoll index does not hold copies of the indexed documents. But it does hold enough data to allow for an almost complete reconstruction. If confidential data is indexed, access to the database directory should be restricted.

Recoll (since version 1.4) will create the configuration directory with a mode of 0700 (access by owner only). As the index data directory is by default a sub-directory of the configuration directory, this should result in appropriate protection.

If you use another setup, you should think of the kind of protection you need for your index, set the directory and files access modes appropriately, and also maybe adjust the umask used during index updates.

2.3. Index configuration

Variables set inside the Recoll configuration files control which areas of the file system are indexed, and how files are processed. These variables can be set either by editing the text files or by using the dialogs in the recoll GUI.

The first time you start recoll, you will be asked whether or not you would like it to build the index. If you want to adjust the configuration before indexing, just click Cancel at this point, which will get you into the configuration interface. If you exit at this point, recoll will have created a ~/.recoll directory containing empty configuration files, which you can edit by hand.

The configuration is documented inside the installation chapter of this document, or in the recoll.conf(5) man page, but the most current information will most likely be the comments inside the sample file. The most immediately useful variable you may interested in is probably topdirs, which determines what subtrees get indexed.

The applications needed to index file types other than text, HTML or email (ie: pdf, postscript, ms-word...) are described in the external packages section.

As of Recoll 1.18 there are two incompatible types of Recoll indexes, depending on the treatment of character case and diacritics. The next section describes the two types in more detail.

2.3.1. Multiple indexes

Multiple Recoll indexes can be created by using several configuration directories which are usually set to index different areas of the file system. A specific index can be selected for updating or searching, using the RECOLL_CONFDIR environment variable or the -c option to recoll and recollindex.

A typical usage scenario for the multiple index feature would be for a system administrator to set up a central index for shared data, that you choose to search or not in addition to your personal data. Of course, there are other possibilities. There are many cases where you know the subset of files that should be searched, and where narrowing the search can improve the results. You can achieve approximately the same effect with the directory filter in advanced search, but multiple indexes will have much better performance and may be worth the trouble.

A recollindex program instance can only update one specific index.

The main index (defined by RECOLL_CONFDIR or -c) is always active. If this is undesirable, you can set up your base configuration to index an empty directory.

The different search interfaces (GUI, command line, ...) have different methods to define the set of indexes to be used, see the appropriate section.

If a set of multiple indexes are to be used together for searches, some configuration parameters must be consistent among the set. These are parameters which need to be the same when indexing and searching. As the parameters come from the main configuration when searching, they need to be compatible with what was set when creating the other indexes (which came from their respective configuration directories).

Most importantly, all indexes to be queried concurrently must have the same option concerning character case and diacritics stripping, but there are other constraints. Most of the relevant parameters are described in the linked section.

2.3.2. Index case and diacritics sensitivity

As of Recoll version 1.18 you have a choice of building an index with terms stripped of character case and diacritics, or one with raw terms. For a source term of Résumé, the former will store resume, the latter Résumé.

Each type of index allows performing searches insensitive to case and diacritics: with a raw index, the user entry will be expanded to match all case and diacritics variations present in the index. With a stripped index, the search term will be stripped before searching.

A raw index allows for another possibility which a stripped index cannot offer: using case and diacritics to discriminate between terms, returning different results when searching for US and us or resume and résumé. Read the section about search case and diacritics sensitivity for more details.

The type of index to be created is controlled by the indexStripChars configuration variable which can only be changed by editing the configuration file. Any change implies an index reset (not automated by Recoll), and all indexes in a search must be set in the same way (again, not checked by Recoll).

If the indexStripChars is not set, Recoll 1.18 creates a stripped index by default, for compatibility with previous versions.

As a cost for added capability, a raw index will be slightly bigger than a stripped one (around 10%). Also, searches will be more complex, so probably slightly slower, and the feature is still young, so that a certain amount of weirdness cannot be excluded.

One of the most adverse consequence of using a raw index is that some phrase and proximity searches may become impossible: because each term needs to be expanded, and all combinations searched for, the multiplicative expansion may become unmanageable.

2.3.3. The index configuration GUI

Most parameters for a given index configuration can be set from a recoll GUI running on this configuration (either as default, or by setting RECOLL_CONFDIR or the -c option.)

The interface is started from the PreferencesIndex Configuration menu entry. It is divided in four tabs, Global parameters, Local parameters, Web history (which is explained in the next section) and Search parameters.

The Global parameters tab allows setting global variables, like the lists of top directories, skipped paths, or stemming languages.

The Local parameters tab allows setting variables that can be redefined for subdirectories. This second tab has an initially empty list of customisation directories, to which you can add. The variables are then set for the currently selected directory (or at the top level if the empty line is selected).

The Search parameters section defines parameters which are used at query time, but are global to an index and affect all search tools, not only the GUI.

The meaning for most entries in the interface is self-evident and documented by a ToolTip popup on the text label. For more detail, you will need to refer to the configuration section of this guide.

The configuration tool normally respects the comments and most of the formatting inside the configuration file, so that it is quite possible to use it on hand-edited files, which you might nevertheless want to backup first...

2.4. Indexing WEB pages you wisit

With the help of a Firefox extension, Recoll can index the Internet pages that you visit. The extension was initially designed for the Beagle indexer, but it has recently be renamed and better adapted to Recoll.

The extension works by copying visited WEB pages to an indexing queue directory, which Recoll then processes, indexing the data, storing it into a local cache, then removing the file from the queue.

This feature can be enabled in the GUI Index configuration panel, or by editing the configuration file (set processwebqueue to 1).

A current pointer to the extension can be found, along with up-to-date instructions, on the Recoll wiki.

A copy of the indexed WEB pages is retained by Recoll in a local cache (from which previews can be fetched). The cache size can be adjusted from the Index configuration / Web history panel. Once the maximum size is reached, old pages are purged - both from the cache and the index - to make room for new ones, so you need to explicitly archive in some other place the pages that you want to keep indefinitely.

2.5. Extended attributes data

User extended attributes are named pieces of information that most modern file systems can attach to any file.

Recoll versions 1.19 and later process extended attributes as document fields by default. For older versions, this has to be activated at build time.

A freedesktop standard defines a few special attributes, which are handled as such by Recoll:

mime_type

If set, this overrides any other determination of the file MIME type.

charset
If set, this defines the file character set (mostly useful for plain text files).

By default, other attributes are handled as Recoll fields. On Linux, the user prefix is removed from the name. This can be configured more precisely inside the fields configuration file.

2.6. Importing external tags

During indexing, it is possible to import metadata for each file by executing commands. For example, this could extract user tag data for the file and store it in a field for indexing.

See the section about the metadatacmds field in the main configuration chapter for more detail.

2.7. Periodic indexing

2.7.1. Running indexing

Indexing is always performed by the recollindex program, which can be started either from the command line or from the File menu in the recoll GUI program. When started from the GUI, the indexing will run on the same configuration recoll was started on. When started from the command line, recollindex will use the RECOLL_CONFDIR variable or accept a -c confdir option to specify a non-default configuration directory.

If the recoll program finds no index when it starts, it will automatically start indexing (except if canceled).

The recollindex indexing process can be interrupted by sending an interrupt (Ctrl-C, SIGINT) or terminate (SIGTERM) signal. Some time may elapse before the process exits, because it needs to properly flush and close the index. This can also be done from the recoll GUI FileStop Indexing menu entry.

After such an interruption, the index will be somewhat inconsistent because some operations which are normally performed at the end of the indexing pass will have been skipped (for example, the stemming and spelling databases will be inexistant or out of date). You just need to restart indexing at a later time to restore consistency. The indexing will restart at the interruption point (the full file tree will be traversed, but files that were indexed up to the interruption and for which the index is still up to date will not need to be reindexed).

recollindex has a number of other options which are described in its man page. Only a few will be described here.

Option -z will reset the index when starting. This is almost the same as destroying the index files (the nuance is that the Xapian format version will not be changed).

Option -Z will force the update of all documents without resetting the index first. This will not have the "clean start" aspect of -z, but the advantage is that the index will remain available for querying while it is rebuilt, which can be a significant advantage if it is very big (some installations need days for a full index rebuild).

Option -k will force retrying files which previously failed to be indexed, for example because of a missing helper program.

Of special interest also, maybe, are the -i and -f options. -i allows indexing an explicit list of files (given as command line parameters or read on stdin). -f tells recollindex to ignore file selection parameters from the configuration. Together, these options allow building a custom file selection process for some area of the file system, by adding the top directory to the skippedPaths list and using an appropriate file selection method to build the file list to be fed to recollindex -if. Trivial example:

            find . -name indexable.txt -print | recollindex -if
          

recollindex -i will not descend into subdirectories specified as parameters, but just add them as index entries. It is up to the external file selection method to build the complete file list.

2.7.2. Using cron to automate indexing

The most common way to set up indexing is to have a cron task execute it every night. For example the following crontab entry would do it every day at 3:30AM (supposing recollindex is in your PATH):

30 3 * * * recollindex > /some/tmp/dir/recolltrace 2>&1

Or, using anacron:

1  15  su mylogin -c "recollindex recollindex > /tmp/rcltraceme 2>&1"

As of version 1.17 the Recoll GUI has dialogs to manage crontab entries for recollindex. You can reach them from the PreferencesIndexing Schedule menu. They only work with the good old cron, and do not give access to all features of cron scheduling.

The usual command to edit your crontab is crontab -e (which will usually start the vi editor to edit the file). You may have more sophisticated tools available on your system.

Please be aware that there may be differences between your usual interactive command line environment and the one seen by crontab commands. Especially the PATH variable may be of concern. Please check the crontab manual pages about possible issues.

2.8. Real time indexing

Real time monitoring/indexing is performed by starting the recollindex -m command. With this option, recollindex will detach from the terminal and become a daemon, permanently monitoring file changes and updating the index.

Under KDE, Gnome and some other desktop environments, the daemon can automatically started when you log in, by creating a desktop file inside the ~/.config/autostart directory. This can be done for you by the Recoll GUI. Use the Preferences->Indexing Schedule menu.

With older X11 setups, starting the daemon is normally performed as part of the user session script.

The rclmon.sh script can be used to easily start and stop the daemon. It can be found in the examples directory (typically /usr/local/[share/]recoll/examples).

For example, my out of fashion xdm-based session has a .xsession script with the following lines at the end:

recollconf=$HOME/.recoll-home
recolldata=/usr/local/share/recoll
RECOLL_CONFDIR=$recollconf $recolldata/examples/rclmon.sh start

fvwm 

The indexing daemon gets started, then the window manager, for which the session waits.

By default the indexing daemon will monitor the state of the X11 session, and exit when it finishes, it is not necessary to kill it explicitly. (The X11 server monitoring can be disabled with option -x to recollindex).

If you use the daemon completely out of an X11 session, you need to add option -x to disable X11 session monitoring (else the daemon will not start).

By default, the messages from the indexing daemon will be setn to the same file as those from the interactive commands (logfilename). You may want to change this by setting the daemlogfilename and daemloglevel configuration parameters. Also the log file will only be truncated when the daemon starts. If the daemon runs permanently, the log file may grow quite big, depending on the log level.

When building Recoll, the real time indexing support can be customised during package configuration with the --with[out]-fam or --with[out]-inotify options. The default is currently to include inotify monitoring on systems that support it, and, as of Recoll 1.17, gamin support on FreeBSD.

While it is convenient that data is indexed in real time, repeated indexing can generate a significant load on the system when files such as email folders change. Also, monitoring large file trees by itself significantly taxes system resources. You probably do not want to enable it if your system is short on resources. Periodic indexing is adequate in most cases.

Increasing resources for inotify

On Linux systems, monitoring a big tree may need increasing the resources available to inotify, which are normally defined in /etc/sysctl.conf.

### inotify
#
# cat  /proc/sys/fs/inotify/max_queued_events   - 16384
# cat  /proc/sys/fs/inotify/max_user_instances  - 128
# cat  /proc/sys/fs/inotify/max_user_watches    - 16384
#
# -- Change to:
#
fs.inotify.max_queued_events=32768
fs.notify.max_user_instances=256
fs.inotify.max_user_watches=32768
          

Especially, you will need to trim your tree or adjust the max_user_watches value if indexing exits with a message about errno ENOSPC (28) from inotify_add_watch.

2.8.1. Slowing down the reindexing rate for fast changing files

When using the real time monitor, it may happen that some files need to be indexed, but change so often that they impose an excessive load for the system.

Recoll provides a configuration option to specify the minimum time before which a file, specified by a wildcard pattern, cannot be reindexed. See the mondelaypatterns parameter in the configuration section.

Chapter 3. Searching

3.1. Searching with the Qt graphical user interface

The recoll program provides the main user interface for searching. It is based on the Qt library.

recoll has two search modes:

  • Simple search (the default, on the main screen) has a single entry field where you can enter multiple words.

  • Advanced search (a panel accessed through the Tools menu or the toolbox bar icon) has multiple entry fields, which you may use to build a logical condition, with additional filtering on file type, location in the file system, modification date, and size.

In most cases, you can enter the terms as you think them, even if they contain embedded punctuation or other non-textual characters. For example, Recoll can handle things like email addresses, or arbitrary cut and paste from another text window, punctation and all.

The main case where you should enter text differently from how it is printed is for east-asian languages (Chinese, Japanese, Korean). Words composed of single or multiple characters should be entered separated by white space in this case (they would typically be printed without white space).

Some searches can be quite complex, and you may want to re-use them later, perhaps with some tweaking. Recoll versions 1.21 and later can save and restore searches, using XML files. See Saving and restoring queries.

3.1.1. Simple search

  1. Start the recoll program.

  2. Possibly choose a search mode: Any term, All terms, File name or Query language.

  3. Enter search term(s) in the text field at the top of the window.

  4. Click the Search button or hit the Enter key to start the search.

The initial default search mode is Query language. Without special directives, this will look for documents containing all of the search terms (the ones with more terms will get better scores), just like the All terms mode which will ignore such directives. Any term will search for documents where at least one of the terms appear.

The Query Language features are described in a separate section.

All search modes allow wildcards inside terms (*, ?, []). You may want to have a look at the section about wildcards for more information about this.

File name will specifically look for file names. The point of having a separate file name search is that wild card expansion can be performed more efficiently on a small subset of the index (allowing wild cards on the left of terms without excessive penality). Things to know:

  • White space in the entry should match white space in the file name, and is not treated specially.

  • The search is insensitive to character case and accents, independantly of the type of index.

  • An entry without any wild card character and not capitalized will be prepended and appended with '*' (ie: etc -> *etc*, but Etc -> etc).

  • If you have a big index (many files), excessively generic fragments may result in inefficient searches.

You can search for exact phrases (adjacent words in a given order) by enclosing the input inside double quotes. Ex: "virtual reality".

When using a stripped index, character case has no influence on search, except that you can disable stem expansion for any term by capitalizing it. Ie: a search for floor will also normally look for flooring, floored, etc., but a search for Floor will only look for floor, in any character case. Stemming can also be disabled globally in the preferences. When using a raw index, the rules are a bit more complicated.

Recoll remembers the last few searches that you performed. You can use the simple search text entry widget (a combobox) to recall them (click on the thing at the right of the text field). Please note, however, that only the search texts are remembered, not the mode (all/any/file name).

Typing Esc Space while entering a word in the simple search entry will open a window with possible completions for the word. The completions are extracted from the database.

Double-clicking on a word in the result list or a preview window will insert it into the simple search entry field.

You can cut and paste any text into an All terms or Any term search field, punctuation, newlines and all - except for wildcard characters (single ? characters are ok). Recoll will process it and produce a meaningful search. This is what most differentiates this mode from the Query Language mode, where you have to care about the syntax.

You can use the ToolsAdvanced search dialog for more complex searches.

3.1.2. The default result list

After starting a search, a list of results will instantly be displayed in the main list window.

By default, the document list is presented in order of relevance (how well the system estimates that the document matches the query). You can sort the result by ascending or descending date by using the vertical arrows in the toolbar.

Clicking on the Preview link for an entry will open an internal preview window for the document. Further Preview clicks for the same search will open tabs in the existing preview window. You can use Shift+Click to force the creation of another preview window, which may be useful to view the documents side by side. (You can also browse successive results in a single preview window by typing Shift+ArrowUp/Down in the window).

Clicking the Open link will start an external viewer for the document. By default, Recoll lets the desktop choose the appropriate application for most document types (there is a short list of exceptions, see further). If you prefer to completely customize the choice of applications, you can uncheck the Use desktop preferences option in the GUI preferences dialog, and click the Choose editor applications button to adjust the predefined Recoll choices. The tool accepts multiple selections of MIME types (e.g. to set up the editor for the dozens of office file types).

Even when Use desktop preferences is checked, there is a small list of exceptions, for MIME types where the Recoll choice should override the desktop one. These are applications which are well integrated with Recoll, especially evince for viewing PDF and Postscript files because of its support for opening the document at a specific page and passing a search string as an argument. Of course, you can edit the list (in the GUI preferences) if you would prefer to lose the functionality and use the standard desktop tool.

You may also change the choice of applications by editing the mimeview configuration file if you find this more convenient.

Each result entry also has a right-click menu with an Open With entry. This lets you choose an application from the list of those which registered with the desktop for the document MIME type.

The Preview and Open edit links may not be present for all entries, meaning that Recoll has no configured way to preview a given file type (which was indexed by name only), or no configured external editor for the file type. This can sometimes be adjusted simply by tweaking the mimemap and mimeview configuration files (the latter can be modified with the user preferences dialog).

The format of the result list entries is entirely configurable by using the preference dialog to edit an HTML fragment.

You can click on the Query details link at the top of the results page to see the query actually performed, after stem expansion and other processing.

Double-clicking on any word inside the result list or a preview window will insert it into the simple search text.

The result list is divided into pages (the size of which you can change in the preferences). Use the arrow buttons in the toolbar or the links at the bottom of the page to browse the results.

3.1.2.1. No results: the spelling suggestions

When a search yields no result, and if the aspell dictionary is configured, Recoll will try to check for misspellings among the query terms, and will propose lists of replacements. Clicking on one of the suggestions will replace the word and restart the search. You can hold any of the modifier keys (Ctrl, Shift, etc.) while clicking if you would rather stay on the suggestion screen because several terms need replacement.

3.1.2.2. The result list right-click menu

Apart from the preview and edit links, you can display a pop-up menu by right-clicking over a paragraph in the result list. This menu has the following entries:

  • Preview

  • Open

  • Open With

  • Run Script

  • Copy File Name

  • Copy Url

  • Save to File

  • Find similar

  • Preview Parent document

  • Open Parent document

  • Open Snippets Window

The Preview and Open entries do the same thing as the corresponding links.

Open With lets you open the document with one of the applications claiming to be able to handle its MIME type (the information comes from the .desktop files in /usr/share/applications).

Run Script allows starting an arbitrary command on the result file. It will only appear for results which are top-level files. See further for a more detailed description.

The Copy File Name and Copy Url copy the relevant data to the clipboard, for later pasting.

Save to File allows saving the contents of a result document to a chosen file. This entry will only appear if the document does not correspond to an existing file, but is a subdocument inside such a file (ie: an email attachment). It is especially useful to extract attachments with no associated editor.

The Open/Preview Parent document entries allow working with the higher level document (e.g. the email message an attachment comes from). Recoll is sometimes not totally accurate as to what it can or can't do in this area. For example the Parent entry will also appear for an email which is part of an mbox folder file, but you can't actually visualize the mbox (there will be an error dialog if you try).

If the document is a top-level file, Open Parent will start the default file manager on the enclosing filesystem directory.

The Find similar entry will select a number of relevant term from the current document and enter them into the simple search field. You can then start a simple search, with a good chance of finding documents related to the current result. I can't remember a single instance where this function was actually useful to me...

The Open Snippets Window entry will only appear for documents which support page breaks (typically PDF, Postscript, DVI). The snippets window lists extracts from the document, taken around search terms occurrences, along with the corresponding page number, as links which can be used to start the native viewer on the appropriate page. If the viewer supports it, its search function will also be primed with one of the search terms.

3.1.3. The result table

In Recoll 1.15 and newer, the results can be displayed in spreadsheet-like fashion. You can switch to this presentation by clicking the table-like icon in the toolbar (this is a toggle, click again to restore the list).

Clicking on the column headers will allow sorting by the values in the column. You can click again to invert the order, and use the header right-click menu to reset sorting to the default relevance order (you can also use the sort-by-date arrows to do this).

Both the list and the table display the same underlying results. The sort order set from the table is still active if you switch back to the list mode. You can click twice on a date sort arrow to reset it from there.

The header right-click menu allows adding or deleting columns. The columns can be resized, and their order can be changed (by dragging). All the changes are recorded when you quit recoll

Hovering over a table row will update the detail area at the bottom of the window with the corresponding values. You can click the row to freeze the display. The bottom area is equivalent to a result list paragraph, with links for starting a preview or a native application, and an equivalent right-click menu. Typing Esc (the Escape key) will unfreeze the display.

3.1.4. Running arbitrary commands on result files (1.20 and later)

Apart from the Open and Open With operations, which allow starting an application on a result document (or a temporary copy), based on its MIME type, it is also possible to run arbitrary commands on results which are top-level files, using the Run Script entry in the results pop-up menu.

The commands which will appear in the Run Script submenu must be defined by .desktop files inside the scripts subdirectory of the current configuration directory.

Here follows an example of a .desktop file, which could be named for example, ~/.recoll/scripts/myscript.desktop (the exact file name inside the directory is irrelevant):

[Desktop Entry]
Type=Application
Name=MyFirstScript
Exec=/home/me/bin/tryscript %F
MimeType=*/*
      

The Name attribute defines the label which will appear inside the Run Script menu. The Exec attribute defines the program to be run, which does not need to actually be a script, of course. The MimeType attribute is not used, but needs to exist.

The commands defined this way can also be used from links inside the result paragraph.

As an example, it might make sense to write a script which would move the document to the trash and purge it from the Recoll index.

3.1.5. Displaying thumbnails

The default format for the result list entries and the detail area of the result table display an icon for each result document. The icon is either a generic one determined from the MIME type, or a thumbnail of the document appearance. Thumbnails are only displayed if found in the standard freedesktop location, where they would typically have been created by a file manager.

Recoll has no capability to create thumbnails. A relatively simple trick is to use the Open parent document/folder entry in the result list popup menu. This should open a file manager window on the containing directory, which should in turn create the thumbnails (depending on your settings). Restarting the search should then display the thumbnails.

There are also some pointers about thumbnail generation on the Recoll wiki.

3.1.6. The preview window

The preview window opens when you first click a Preview link inside the result list.

Subsequent preview requests for a given search open new tabs in the existing window (except if you hold the Shift key while clicking which will open a new window for side by side viewing).

Starting another search and requesting a preview will create a new preview window. The old one stays open until you close it.

You can close a preview tab by typing Ctrl-W (Ctrl + W) in the window. Closing the last tab for a window will also close the window.

Of course you can also close a preview window by using the window manager button in the top of the frame.

You can display successive or previous documents from the result list inside a preview tab by typing Shift+Down or Shift+Up (Down and Up are the arrow keys).

A right-click menu in the text area allows switching between displaying the main text or the contents of fields associated to the document (ie: author, abtract, etc.). This is especially useful in cases where the term match did not occur in the main text but in one of the fields. In the case of images, you can switch between three displays: the image itself, the image metadata as extracted by exiftool and the fields, which is the metadata stored in the index.

You can print the current preview window contents by typing Ctrl-P (Ctrl + P) in the window text.

3.1.6.1. Searching inside the preview

The preview window has an internal search capability, mostly controlled by the panel at the bottom of the window, which works in two modes: as a classical editor incremental search, where we look for the text entered in the entry zone, or as a way to walk the matches between the document and the Recoll query that found it.

Incremental text search

The preview tabs have an internal incremental search function. You initiate the search either by typing a / (slash) or CTL-F inside the text area or by clicking into the Search for: text field and entering the search string. You can then use the Next and Previous buttons to find the next/previous occurrence. You can also type F3 inside the text area to get to the next occurrence.

If you have a search string entered and you use Ctrl-Up/Ctrl-Down to browse the results, the search is initiated for each successive document. If the string is found, the cursor will be positioned at the first occurrence of the search string.

Walking the match lists

If the entry area is empty when you click the Next or Previous buttons, the editor will be scrolled to show the next match to any search term (the next highlighted zone). If you select a search group from the dropdown list and click Next or Previous, the match list for this group will be walked. This is not the same as a text search, because the occurences will include non-exact matches (as caused by stemming or wildcards). The search will revert to the text mode as soon as you edit the entry area.

3.1.7. The Query Fragments window

Selecting the ToolsQuery Fragments menu entry will open a window with radio- and check-buttons which can be used to activate query language fragments for filtering the current query. This can be useful if you have frequent reusable selectors, for example, filtering on alternate directories, or searching just one category of files, not covered by the standard category selectors.

The contents of the window are entirely customizable, and defined by the contents of the fragbuts.xml file inside the configuration directory. The sample file distributed with Recoll (which you should be able to find under /usr/share/recoll/examples/fragbuts.xml), contains an example which filters the results from the WEB history.

Here follows an example:

<?xml version="1.0" encoding="UTF-8"?>

<fragbuts version="1.0">

  <radiobuttons>

    <fragbut>
      <label>Include Web Results</label>
      <frag></frag>
    </fragbut>

    <fragbut>
      <label>Exclude Web Results</label>
      <frag>-rclbes:BGL</frag>
    </fragbut>

    <fragbut>
      <label>Only Web Results</label>
      <frag>rclbes:BGL</frag>
    </fragbut>

  </radiobuttons>

  <buttons>

    <fragbut>
      <label>Year 2010</label>
      <frag>date:2010-01-01/2010-12-31</frag>
    </fragbut>

    <fragbut>
      <label>My Great Directory Only</label>
      <frag>dir:/my/great/directory</frag>
    </fragbut>

  </buttons>
</fragbuts>

Each radiobuttons or buttons section defines a line of checkbuttons or radiobuttons inside the window. Any number of buttons can be selected, but the radiobuttons in a line are exclusive.

Each fragbut section defines the label for a button, and the Query Language fragment which will be added (as an AND filter) before performing the query if the button is active.

This feature is new in Recoll 1.20, and will probably be refined depending on user feedback.

3.1.8. Complex/advanced search

The advanced search dialog helps you build more complex queries without memorizing the search language constructs. It can be opened through the Tools menu or through the main toolbar.

Recoll keeps a history of searches. See Advanced search history.

The dialog has two tabs:

  1. The first tab lets you specify terms to search for, and permits specifying multiple clauses which are combined to build the search.

  2. The second tab lets filter the results according to file size, date of modification, MIME type, or location.

Click on the Start Search button in the advanced search dialog, or type Enter in any text field to start the search. The button in the main window always performs a simple search.

Click on the Show query details link at the top of the result page to see the query expansion.

3.1.8.1. Avanced search: the "find" tab

This part of the dialog lets you constructc a query by combining multiple clauses of different types. Each entry field is configurable for the following modes:

  • All terms.

  • Any term.

  • None of the terms.

  • Phrase (exact terms in order within an adjustable window).

  • Proximity (terms in any order within an adjustable window).

  • Filename search.

Additional entry fields can be created by clicking the Add clause button.

When searching, the non-empty clauses will be combined either with an AND or an OR conjunction, depending on the choice made on the left (All clauses or Any clause).

Entries of all types except "Phrase" and "Near" accept a mix of single words and phrases enclosed in double quotes. Stemming and wildcard expansion will be performed as for simple search.

Phrases and Proximity searches. These two clauses work in similar ways, with the difference that proximity searches do not impose an order on the words. In both cases, an adjustable number (slack) of non-matched words may be accepted between the searched ones (use the counter on the left to adjust this count). For phrases, the default count is zero (exact match). For proximity it is ten (meaning that two search terms, would be matched if found within a window of twelve words). Examples: a phrase search for quick fox with a slack of 0 will match quick fox but not quick brown fox. With a slack of 1 it will match the latter, but not fox quick. A proximity search for quick fox with the default slack will match the latter, and also a fox is a cunning and quick animal.

3.1.8.2. Avanced search: the "filter" tab

This part of the dialog has several sections which allow filtering the results of a search according to a number of criteria

  • The first section allows filtering by dates of last modification. You can specify both a minimum and a maximum date. The initial values are set according to the oldest and newest documents found in the index.

  • The next section allows filtering the results by file size. There are two entries for minimum and maximum size. Enter decimal numbers. You can use suffix multipliers: k/K, m/M, g/G, t/T for 1E3, 1E6, 1E9, 1E12 respectively.

  • The next section allows filtering the results by their MIME types, or MIME categories (ie: media/text/message/etc.).

    You can transfer the types between two boxes, to define which will be included or excluded by the search.

    The state of the file type selection can be saved as the default (the file type filter will not be activated at program start-up, but the lists will be in the restored state).

  • The bottom section allows restricting the search results to a sub-tree of the indexed area. You can use the Invert checkbox to search for files not in the sub-tree instead. If you use directory filtering often and on big subsets of the file system, you may think of setting up multiple indexes instead, as the performance may be better.

    You can use relative/partial paths for filtering. Ie, entering dirA/dirB would match either /dir1/dirA/dirB/myfile1 or /dir2/dirA/dirB/someother/myfile2.

3.1.8.3. Avanced search history

The advanced search tool memorizes the last 100 searches performed. You can walk the saved searches by using the up and down arrow keys while the keyboard focus belongs to the advanced search dialog.

The complex search history can be erased, along with the one for simple search, by selecting the FileErase Search History menu entry.

3.1.9. The term explorer tool

Recoll automatically manages the expansion of search terms to their derivatives (ie: plural/singular, verb inflections). But there are other cases where the exact search term is not known. For example, you may not remember the exact spelling, or only know the beginning of the name.

The search will only propose replacement terms with spelling variations when no matching document were found. In some cases, both proper spellings and mispellings are present in the index, and it may be interesting to look for them explicitely.

The term explorer tool (started from the toolbar icon or from the Term explorer entry of the Tools menu) can be used to search the full index terms list. It has three modes of operations:

Wildcard

In this mode of operation, you can enter a search string with shell-like wildcards (*, ?, []). ie: xapi* would display all index terms beginning with xapi. (More about wildcards here).

Regular expression

This mode will accept a regular expression as input. Example: word[0-9]+. The expression is implicitely anchored at the beginning. Ie: press will match pression but not expression. You can use .*press to match the latter, but be aware that this will cause a full index term list scan, which can be quite long.

Stem expansion

This mode will perform the usual stem expansion normally done as part user input processing. As such it is probably mostly useful to demonstrate the process.

Spelling/Phonetic

In this mode, you enter the term as you think it is spelled, and Recoll will do its best to find index terms that sound like your entry. This mode uses the Aspell spelling application, which must be installed on your system for things to work (if your documents contain non-ascii characters, Recoll needs an aspell version newer than 0.60 for UTF-8 support). The language which is used to build the dictionary out of the index terms (which is done at the end of an indexing pass) is the one defined by your NLS environment. Weird things will probably happen if languages are mixed up.

Note that in cases where Recoll does not know the beginning of the string to search for (ie a wildcard expression like *coll), the expansion can take quite a long time because the full index term list will have to be processed. The expansion is currently limited at 10000 results for wildcards and regular expressions. It is possible to change the limit in the configuration file.

Double-clicking on a term in the result list will insert it into the simple search entry field. You can also cut/paste between the result list and any entry field (the end of lines will be taken care of).

3.1.10. Multiple indexes

See the section describing the use of multiple indexes for generalities. Only the aspects concerning the recoll GUI are described here.

A recoll program instance is always associated with a specific index, which is the one to be updated when requested from the File menu, but it can use any number of Recoll indexes for searching. The external indexes can be selected through the external indexes tab in the preferences dialog.

Index selection is performed in two phases. A set of all usable indexes must first be defined, and then the subset of indexes to be used for searching. These parameters are retained across program executions (there are kept separately for each Recoll configuration). The set of all indexes is usually quite stable, while the active ones might typically be adjusted quite frequently.

The main index (defined by RECOLL_CONFDIR) is always active. If this is undesirable, you can set up your base configuration to index an empty directory.

When adding a new index to the set, you can select either a Recoll configuration directory, or directly a Xapian index directory. In the first case, the Xapian index directory will be obtained from the selected configuration.

As building the set of all indexes can be a little tedious when done through the user interface, you can use the RECOLL_EXTRA_DBS environment variable to provide an initial set. This might typically be set up by a system administrator so that every user does not have to do it. The variable should define a colon-separated list of index directories, ie:

export RECOLL_EXTRA_DBS=/some/place/xapiandb:/some/other/db

Another environment variable, RECOLL_ACTIVE_EXTRA_DBS allows adding to the active list of indexes. This variable was suggested and implemented by a Recoll user. It is mostly useful if you use scripts to mount external volumes with Recoll indexes. By using RECOLL_EXTRA_DBS and RECOLL_ACTIVE_EXTRA_DBS, you can add and activate the index for the mounted volume when starting recoll.

RECOLL_ACTIVE_EXTRA_DBS is available for Recoll versions 1.17.2 and later. A change was made in the same update so that recoll will automatically deactivate unreachable indexes when starting up.

3.1.11. Document history

Documents that you actually view (with the internal preview or an external tool) are entered into the document history, which is remembered.

You can display the history list by using the Tools/Doc History menu entry.

You can erase the document history by using the Erase document history entry in the File menu.

3.1.12. Sorting search results and collapsing duplicates

The documents in a result list are normally sorted in order of relevance. It is possible to specify a different sort order, either by using the vertical arrows in the GUI toolbox to sort by date, or switching to the result table display and clicking on any header. The sort order chosen inside the result table remains active if you switch back to the result list, until you click one of the vertical arrows, until both are unchecked (you are back to sort by relevance).

Sort parameters are remembered between program invocations, but result sorting is normally always inactive when the program starts. It is possible to keep the sorting activation state between program invocations by checking the Remember sort activation state option in the preferences.

It is also possible to hide duplicate entries inside the result list (documents with the exact same contents as the displayed one). The test of identity is based on an MD5 hash of the document container, not only of the text contents (so that ie, a text document with an image added will not be a duplicate of the text only). Duplicates hiding is controlled by an entry in the GUI configuration dialog, and is off by default.

As of release 1.19, when a result document does have undisplayed duplicates, a Dups link will be shown with the result list entry. Clicking the link will display the paths (URLs + ipaths) for the duplicate entries.

3.1.13. Search tips, shortcuts

3.1.13.1. Terms and search expansion

Term completion. Typing Esc Space in the simple search entry field while entering a word will either complete the current word if its beginning matches a unique term in the index, or open a window to propose a list of completions.

Picking up new terms from result or preview text. Double-clicking on a word in the result list or in a preview window will copy it to the simple search entry field.

Wildcards. Wildcards can be used inside search terms in all forms of searches. More about wildcards.

Automatic suffixes. Words like odt or ods can be automatically turned into query language ext:xxx clauses. This can be enabled in the Search preferences panel in the GUI.

Disabling stem expansion. Entering a capitalized word in any search field will prevent stem expansion (no search for gardening if you enter Garden instead of garden). This is the only case where character case should make a difference for a Recoll search. You can also disable stem expansion or change the stemming language in the preferences.

Finding related documents. Selecting the Find similar documents entry in the result list paragraph right-click menu will select a set of "interesting" terms from the current result, and insert them into the simple search entry field. You can then possibly edit the list and start a search to find documents which may be apparented to the current result.

File names. File names are added as terms during indexing, and you can specify them as ordinary terms in normal search fields (Recoll used to index all directories in the file path as terms. This has been abandoned as it did not seem really useful). Alternatively, you can use the specific file name search which will only look for file names, and may be faster than the generic search especially when using wildcards.

3.1.13.2. Working with phrases and proximity

Phrases and Proximity searches. A phrase can be looked for by enclosing it in double quotes. Example: "user manual" will look only for occurrences of user immediately followed by manual. You can use the This phrase field of the advanced search dialog to the same effect. Phrases can be entered along simple terms in all simple or advanced search entry fields (except This exact phrase).

AutoPhrases. This option can be set in the preferences dialog. If it is set, a phrase will be automatically built and added to simple searches when looking for Any terms. This will not change radically the results, but will give a relevance boost to the results where the search terms appear as a phrase. Ie: searching for virtual reality will still find all documents where either virtual or reality or both appear, but those which contain virtual reality should appear sooner in the list.

Phrase searches can strongly slow down a query if most of the terms in the phrase are common. This is why the autophrase option is off by default for Recoll versions before 1.17. As of version 1.17, autophrase is on by default, but very common terms will be removed from the constructed phrase. The removal threshold can be adjusted from the search preferences.

Phrases and abbreviations. As of Recoll version 1.17, dotted abbreviations like I.B.M. are also automatically indexed as a word without the dots: IBM. Searching for the word inside a phrase (ie: "the IBM company") will only match the dotted abrreviation if you increase the phrase slack (using the advanced search panel control, or the o query language modifier). Literal occurences of the word will be matched normally.

3.1.13.3. Others

Using fields. You can use the query language and field specifications to only search certain parts of documents. This can be especially helpful with email, for example only searching emails from a specific originator: search tips from:helpfulgui

Ajusting the result table columns. When displaying results in table mode, you can use a right click on the table headers to activate a pop-up menu which will let you adjust what columns are displayed. You can drag the column headers to adjust their order. You can click them to sort by the field displayed in the column. You can also save the result list in CSV format.

Changing the GUI geometry. It is possible to configure the GUI in wide form factor by dragging the toolbars to one of the sides (their location is remembered between sessions), and moving the category filters to a menu (can be set in the PreferencesGUI configurationUser interface panel).

Query explanation. You can get an exact description of what the query looked for, including stem expansion, and Boolean operators used, by clicking on the result list header.

Advanced search history. As of Recoll 1.18, you can display any of the last 100 complex searches performed by using the up and down arrow keys while the advanced search panel is active.

Browsing the result list inside a preview window. Entering Shift-Down or Shift-Up (Shift + an arrow key) in a preview window will display the next or the previous document from the result list. Any secondary search currently active will be executed on the new document.

Scrolling the result list from the keyboard. You can use PageUp and PageDown to scroll the result list, Shift+Home to go back to the first page. These work even while the focus is in the search entry.

Result table: moving the focus to the table. You can use Ctrl-r to move the focus from the search entry to the table, and then use the arrow keys to change the current row. Ctrl-Shift-s returns to the search.

Result table: open / preview. With the focus in the result table, you can use Ctrl-o to open the document from the current row, Ctrl-Shift-o to open the document and close recoll, Ctrl-d to preview the document.

Editing a new search while the focus is not in the search entry. You can use the Ctrl-Shift-S shortcut to return the cursor to the search entry (and select the current search text), while the focus is anywhere in the main window.

Forced opening of a preview window. You can use Shift+Click on a result list Preview link to force the creation of a preview window instead of a new tab in the existing one.

Closing previews. Entering Ctrl-W in a tab will close it (and, for the last tab, close the preview window). Entering Esc will close the preview window and all its tabs.

Printing previews. Entering Ctrl-P in a preview window will print the currently displayed text.

Quitting. Entering Ctrl-Q almost anywhere will close the application.

3.1.14. Saving and restoring queries (1.21 and later)

Both simple and advanced query dialogs save recent history, but the amount is limited: old queries will eventually be forgotten. Also, important queries may be difficult to find among others. This is why both types of queries can also be explicitely saved to files, from the GUI menus: FileSave last query / Load last query

The default location for saved queries is a subdirectory of the current configuration directory, but saved queries are ordinary files and can be written or moved anywhere.

Some of the saved query parameters are part of the preferences (e.g. autophrase or the active external indexes), and may differ when the query is loaded from the time it was saved. In this case, Recoll will warn of the differences, but will not change the user preferences.

3.1.15. Customizing the search interface

You can customize some aspects of the search interface by using the GUI configuration entry in the Preferences menu.

There are several tabs in the dialog, dealing with the interface itself, the parameters used for searching and returning results, and what indexes are searched.

User interface parameters: 

  • Highlight color for query terms: Terms from the user query are highlighted in the result list samples and the preview window. The color can be chosen here. Any Qt color string should work (ie red, #ff0000). The default is blue.

  • Style sheet: The name of a Qt style sheet text file which is applied to the whole Recoll application on startup. The default value is empty, but there is a skeleton style sheet (recoll.qss) inside the /usr/share/recoll/examples directory. Using a style sheet, you can change most recoll graphical parameters: colors, fonts, etc. See the sample file for a few simple examples.

    You should be aware that parameters (e.g.: the background color) set inside the Recoll GUI style sheet will override global system preferences, with possible strange side effects: for example if you set the foreground to a light color and the background to a dark one in the desktop preferences, but only the background is set inside the Recoll style sheet, and it is light too, then text will appear light-on-light inside the Recoll GUI.

  • Maximum text size highlighted for preview Inserting highlights on search term inside the text before inserting it in the preview window involves quite a lot of processing, and can be disabled over the given text size to speed up loading.

  • Prefer HTML to plain text for preview if set, Recoll will display HTML as such inside the preview window. If this causes problems with the Qt HTML display, you can uncheck it to display the plain text version instead.

  • Plain text to HTML line style: when displaying plain text inside the preview window, Recoll tries to preserve some of the original text line breaks and indentation. It can either use PRE HTML tags, which will well preserve the indentation but will force horizontal scrolling for long lines, or use BR tags to break at the original line breaks, which will let the editor introduce other line breaks according to the window width, but will lose some of the original indentation. The third option has been available in recent releases and is probably now the best one: use PRE tags with line wrapping.

  • Choose editor applicationsr: this opens a dialog which allows you to select the application to be used to open each MIME type. The default is nornally to use the xdg-open utility, but you can override it.

  • Exceptions: even wen xdg-open is used by default for opening documents, you can set exceptions for MIME types that will still be opened according to Recoll preferences. This is useful for passing parameters like page numbers or search strings to applications that support them (e.g. evince). This cannot be done with xdg-open which only supports passing one parameter.

  • Document filter choice style: this will let you choose if the document categories are displayed as a list or a set of buttons, or a menu.

  • Start with simple search mode: this lets you choose the value of the simple search type on program startup. Either a fixed value (e.g. Query Language, or the value in use when the program last exited.

  • Auto-start simple search on white space entry: if this is checked, a search will be executed each time you enter a space in the simple search input field. This lets you look at the result list as you enter new terms. This is off by default, you may like it or not...

  • Start with advanced search dialog open : If you use this dialog frequently, checking the entries will get it to open when recoll starts.

  • Remember sort activation state if set, Recoll will remember the sort tool stat between invocations. It normally starts with sorting disabled.

Result list parameters: 

  • Number of results in a result page

  • Result list font: There is quite a lot of information shown in the result list, and you may want to customize the font and/or font size. The rest of the fonts used by Recoll are determined by your generic Qt config (try the qtconfig command).

  • Edit result list paragraph format string: allows you to change the presentation of each result list entry. See the result list customisation section.

  • Edit result page HTML header insert: allows you to define text inserted at the end of the result page HTML header. More detail in the result list customisation section.

  • Date format: allows specifying the format used for displaying dates inside the result list. This should be specified as an strftime() string (man strftime).

  • Abstract snippet separator: for synthetic abstracts built from index data, which are usually made of several snippets from different parts of the document, this defines the snippet separator, an ellipsis by default.

Search parameters: 

  • Hide duplicate results: decides if result list entries are shown for identical documents found in different places.

  • Stemming language: stemming obviously depends on the document's language. This listbox will let you chose among the stemming databases which were built during indexing (this is set in the main configuration file), or later added with recollindex -s (See the recollindex manual). Stemming languages which are dynamically added will be deleted at the next indexing pass unless they are also added in the configuration file.

  • Automatically add phrase to simple searches: a phrase will be automatically built and added to simple searches when looking for Any terms. This will give a relevance boost to the results where the search terms appear as a phrase (consecutive and in order).

  • Autophrase term frequency threshold percentage: very frequent terms should not be included in automatic phrase searches for performance reasons. The parameter defines the cutoff percentage (percentage of the documents where the term appears).

  • Replace abstracts from documents: this decides if we should synthesize and display an abstract in place of an explicit abstract found within the document itself.

  • Dynamically build abstracts: this decides if Recoll tries to build document abstracts (lists of snippets) when displaying the result list. Abstracts are constructed by taking context from the document information, around the search terms.

  • Synthetic abstract size: adjust to taste...

  • Synthetic abstract context words: how many words should be displayed around each term occurrence.

  • Query language magic file name suffixes: a list of words which automatically get turned into ext:xxx file name suffix clauses when starting a query language query (ie: doc xls xlsx...). This will save some typing for people who use file types a lot when querying.

External indexes: This panel will let you browse for additional indexes that you may want to search. External indexes are designated by their database directory (ie: /home/someothergui/.recoll/xapiandb, /usr/local/recollglobal/xapiandb).

Once entered, the indexes will appear in the External indexes list, and you can chose which ones you want to use at any moment by checking or unchecking their entries.

Your main database (the one the current configuration indexes to), is always implicitly active. If this is not desirable, you can set up your configuration so that it indexes, for example, an empty directory. An alternative indexer may also need to implement a way of purging the index from stale data,

3.1.15.1. The result list format

Newer versions of Recoll (from 1.17) normally use WebKit HTML widgets for the result list and the snippets window (this may be disabled at build time). Total customisation is possible with full support for CSS and Javascript. Conversely, there are limits to what you can do with the older Qt QTextBrowser, but still, it is possible to decide what data each result will contain, and how it will be displayed.

The result list presentation can be exhaustively customized by adjusting two elements:

  • The paragraph format

  • HTML code inside the header section. For versions 1.21 and later, this is also used for the snippets window

The paragraph format and the header fragment can be edited from the Result list tab of the GUI configuration.

The header fragment is used both for the result list and the snippets window. The snippets list is a table and has a snippets class attribute. Each paragraph in the result list is a table, with class respar, but this can be changed by editing the paragraph format.

There are a few examples on the page about customising the result list on the Recoll web site.

The paragraph format

This is an arbitrary HTML string where the following printf-like % substitutions will be performed:

  • %A. Abstract

  • %D. Date

  • %I. Icon image name. This is normally determined from the MIME type. The associations are defined inside the mimeconf configuration file. If a thumbnail for the file is found at the standard Freedesktop location, this will be displayed instead.

  • %K. Keywords (if any)

  • %L. Precooked Preview, Edit, and possibly Snippets links

  • %M. MIME type

  • %N. result Number inside the result page

  • %P. Parent folder Url. In the case of an embedded document, this is the parent folder for the top level container file.

  • %R. Relevance percentage

  • %S. Size information

  • %T. Title or Filename if not set.

  • %t. Title or Filename if not set.

  • %U. Url

The format of the Preview, Edit, and Snippets links is <a href="P%N">, <a href="E%N"> and <a href="A%N"> where docnum (%N) expands to the document number inside the result page).

A link target defined as "F%N" will open the document corresponding to the %P parent folder expansion, usually creating a file manager window on the folder where the container file resides. E.g.:

<a href="F%N">%P</a>

A link target defined as R%N|scriptname will run the corresponding script on the result file (if the document is embedded, the script will be started on the top-level parent). See the section about defining scripts.

In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for this document. Only stored fields can be accessed in this way, the value of indexed but not stored fields is not known at this point in the search process (see field configuration). There are currently very few fields stored by default, apart from the values above (only author and filename), so this feature will need some custom local configuration to be useful. An example candidate would be the recipient field which is generated by the message input handlers.

The default value for the paragraph format string is:

    "<table class=\"respar\">\n"
    "<tr>\n"
    "<td><a href='%U'><img src='%I' width='64'></a></td>\n"
    "<td>%L &nbsp;<i>%S</i> &nbsp;&nbsp;<b>%T</b><br>\n"
    "<span style='white-space:nowrap'><i>%M</i>&nbsp;%D</span>&nbsp;&nbsp;&nbsp; <i>%U</i>&nbsp;%i<br>\n"
    "%A %K</td>\n"
    "</tr></table>\n"

You may, for example, try the following for a more web-like experience:

<u><b><a href="P%N">%T</a></b></u><br>
%A<font color=#008000>%U - %S</font> - %L

Note that the P%N link in the above paragraph makes the title a preview link. Or the clean looking:

<img src="%I" align="left">%L <font color="#900000">%R</font>
&nbsp;&nbsp;<b>%T&</b><br>%S&nbsp;
<font color="#808080"><i>%U</i></font>
<table bgcolor="#e0e0e0">
<tr><td><div>%A</div></td></tr>
</table>%K

These samples, and some others are on the web site, with pictures to show how they look.

It is also possible to define the value of the snippet separator inside the abstract section.

3.2. Searching with the KDE KIO slave

3.2.1. What's this

The Recoll KIO slave allows performing a Recoll search by entering an appropriate URL in a KDE open dialog, or with an HTML-based interface displayed in Konqueror.

The HTML-based interface is similar to the Qt-based interface, but slightly less powerful for now. Its advantage is that you can perform your search while staying fully within the KDE framework: drag and drop from the result list works normally and you have your normal choice of applications for opening files.

The alternative interface uses a directory view of search results. Due to limitations in the current KIO slave interface, it is currently not obviously useful (to me).

The interface is described in more detail inside a help file which you can access by entering recoll:/ inside the konqueror URL line (this works only if the recoll KIO slave has been previously installed).

The instructions for building this module are located in the source tree. See: kde/kio/recoll/00README.txt. Some Linux distributions do package the kio-recoll module, so check before diving into the build process, maybe it's already out there ready for one-click installation.

3.2.2. Searchable documents

As a sample application, the Recoll KIO slave could allow preparing a set of HTML documents (for example a manual) so that they become their own search interface inside konqueror.

This can be done by either explicitly inserting <a href="recoll://..."> links around some document areas, or automatically by adding a very small javascript program to the documents, like the following example, which would initiate a search by double-clicking any term:

<script language="JavaScript">
    function recollsearch() {
        var t = document.getSelection();
        window.location.href = 'recoll://search/query?qtp=a&p=0&q=' +
            encodeURIComponent(t);
    }
</script>
 ....
<body ondblclick="recollsearch()">

3.3. Searching on the command line

There are several ways to obtain search results as a text stream, without a graphical interface:

  • By passing option -t to the recoll program.

  • By using the recollq program.

  • By writing a custom Python program, using the Recoll Python API.

The first two methods work in the same way and accept/need the same arguments (except for the additional -t to recoll). The query to be executed is specified as command line arguments.

recollq is not built by default. You can use the Makefile in the query directory to build it. This is a very simple program, and if you can program a little c++, you may find it useful to taylor its output format to your needs. Not that recollq is only really useful on systems where the Qt libraries (or even the X11 ones) are not available. Otherwise, just use recoll -t, which takes the exact same parameters and options which are described for recollq

recollq has a man page (not installed by default, look in the doc/man directory). The Usage string is as follows:

recollq: usage:
 -P: Show the date span for all the documents present in the index
 [-o|-a|-f] [-q] <query string>
 Runs a recoll query and displays result lines. 
  Default: will interpret the argument(s) as a xesam query string
    query may be like: 
    implicit AND, Exclusion, field spec:    t1 -t2 title:t3
    OR has priority: t1 OR t2 t3 OR t4 means (t1 OR t2) AND (t3 OR t4)
    Phrase: "t1 t2" (needs additional quoting on cmd line)
  -o Emulate the GUI simple search in ANY TERM mode
  -a Emulate the GUI simple search in ALL TERMS mode
  -f Emulate the GUI simple search in filename mode
  -q is just ignored (compatibility with the recoll GUI command line)
Common options:
    -c <configdir> : specify config directory, overriding $RECOLL_CONFDIR
    -d also dump file contents
    -n [first-]<cnt> define the result slice. The default value for [first]
       is 0. Without the option, the default max count is 2000.
       Use n=0 for no limit
    -b : basic. Just output urls, no mime types or titles
    -Q : no result lines, just the processed query and result count
    -m : dump the whole document meta[] array for each result
    -A : output the document abstracts
    -S fld : sort by field <fld>
    -s stemlang : set stemming language to use (must exist in index...)
       Use -s "" to turn off stem expansion
    -D : sort descending
    -i <dbdir> : additional index, several can be given
    -e use url encoding (%xx) for urls
    -F <field name list> : output exactly these fields for each result.
       The field values are encoded in base64, output in one line and 
       separated by one space character. This is the recommended format 
       for use by other programs. Use a normal query with option -m to 
       see the field names.

Sample execution:

recollq 'ilur -nautique mime:text/html'
Recoll query: ((((ilur:(wqf=11) OR ilurs) AND_NOT (nautique:(wqf=11)
  OR nautiques OR nautiqu OR nautiquement)) FILTER Ttext/html))
4 results
text/html       [file:///Users/uncrypted-dockes/projets/bateaux/ilur/comptes.html]      [comptes.html]  18593   bytes   
text/html       [file:///Users/uncrypted-dockes/projets/nautique/webnautique/articles/ilur1/index.html] [Constructio...
text/html       [file:///Users/uncrypted-dockes/projets/pagepers/index.html]    [psxtcl/writemime/recoll]...
text/html       [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/recu-chasse-maree....

3.4. Path translations

In some cases, the document paths stored inside the index do not match the actual ones, so that document previews and accesses will fail. This can occur in a number of circumstances:

  • When using multiple indexes it is a relatively common occurrence that some will actually reside on a remote volume, for exemple mounted via NFS. In this case, the paths used to access the documents on the local machine are not necessarily the same than the ones used while indexing on the remote machine. For example, /home/me may have been used as a topdirs elements while indexing, but the directory might be mounted as /net/server/home/me on the local machine.

  • The case may also occur with removable disks. It is perfectly possible to configure an index to live with the documents on the removable disk, but it may happen that the disk is not mounted at the same place so that the documents paths from the index are invalid.

  • As a last exemple, one could imagine that a big directory has been moved, but that it is currently inconvenient to run the indexer.

More generally, the path translation facility may be useful whenever the documents paths seen by the indexer are not the same as the ones which should be used at query time.

Recoll has a facility for rewriting access paths when extracting the data from the index. The translations can be defined for the main index and for any additional query index.

In the above NFS example, Recoll could be instructed to rewrite any file:///home/me URL from the index to file:///net/server/home/me, allowing accesses from the client.

The translations are defined in the ptrans configuration file, which can be edited by hand or from the GUI external indexes configuration dialog.

3.5. The query language

The query language processor is activated in the GUI simple search entry when the search mode selector is set to Query Language. It can also be used with the KIO slave or the command line search. It broadly has the same capabilities as the complex search interface in the GUI.

The language is based on the (seemingly defunct) Xesam user search language specification.

If the results of a query language search puzzle you and you doubt what has been actually searched for, you can use the GUI Show Query link at the top of the result list to check the exact query which was finally executed by Xapian.

Here follows a sample request that we are going to explain:

          author:"john doe" Beatles OR Lennon Live OR Unplugged -potatoes
      

This would search for all documents with John Doe appearing as a phrase in the author field (exactly what this is would depend on the document type, ie: the From: header, for an email message), and containing either beatles or lennon and either live or unplugged but not potatoes (in any part of the document).

An element is composed of an optional field specification, and a value, separated by a colon (the field separator is the last colon in the element). Examples: Eugenie, author:balzac, dc:title:grandet dc:title:"eugenie grandet"

The colon, if present, means "contains". Xesam defines other relations, which are mostly unsupported for now (except in special cases, described further down).

All elements in the search entry are normally combined with an implicit AND. It is possible to specify that elements be OR'ed instead, as in Beatles OR Lennon. The OR must be entered literally (capitals), and it has priority over the AND associations: word1 word2 OR word3 means word1 AND (word2 OR word3) not (word1 AND word2) OR word3. Explicit parenthesis are not supported.

As of Recoll 1.21, you can use parentheses to group elements, which will sometimes make things clearer, and may allow expressing combinations which would have been difficult otherwise.

An element preceded by a - specifies a term that should not appear.

As usual, words inside quotes define a phrase (the order of words is significant), so that title:"prejudice pride" is not the same as title:prejudice title:pride, and is unlikely to find a result.

Words inside phrases and capitalized words are not stem-expanded. Wildcards may be used anywhere inside a term. Specifying a wild-card on the left of a term can produce a very slow search (or even an incorrect one if the expansion is truncated because of excessive size). Also see More about wildcards.

To save you some typing, recent Recoll versions (1.20 and later) interpret a comma-separated list of terms as an AND list inside the field. Use slash characters ('/') for an OR list. No white space is allowed. So

author:john,lennon

will search for documents with john and lennon inside the author field (in any order), and

author:john/ringo

would search for john or ringo.

Modifiers can be set on a double-quote value, for example to specify a proximity search (unordered). See the modifier section. No space must separate the final double-quote and the modifiers value, e.g. "two one"po10

Recoll currently manages the following default fields:

  • title, subject or caption are synonyms which specify data to be searched for in the document title or subject.

  • author or from for searching the documents originators.

  • recipient or to for searching the documents recipients.

  • keyword for searching the document-specified keywords (few documents actually have any).

  • filename for the document's file name. This is not necessarily set for all documents: internal documents contained inside a compound one (for example an EPUB section) do not inherit the container file name any more, this was replaced by an explicit field (see next). Sub-documents can still have a specific filename, if it is implied by the document format, for example the attachment file name for an email attachment.

  • containerfilename. This is set for all documents, both top-level and contained sub-documents, and is always the name of the filesystem directory entry which contains the data. The terms from this field can only be matched by an explicit field specification (as opposed to terms from filename which are also indexed as general document content). This avoids getting matches for all the sub-documents when searching for the container file name.

  • ext specifies the file name extension (Ex: ext:html)

Recoll 1.20 and later have a way to specify aliases for the field names, which will save typing, for example by aliasing filename to fn or containerfilename to cfn. See the section about the fields file

The field syntax also supports a few field-like, but special, criteria:

  • dir for filtering the results on file location (Ex: dir:/home/me/somedir). -dir also works to find results not in the specified directory (release >= 1.15.8). Tilde expansion will be performed as usual (except for a bug in versions 1.19 to 1.19.11p1). Wildcards will be expanded, but please have a look at an important limitation of wildcards in path filters.

    Relative paths also make sense, for example, dir:share/doc would match either /usr/share/doc or /usr/local/share/doc

    Several dir clauses can be specified, both positive and negative. For example the following makes sense:

    dir:recoll dir:src -dir:utils -dir:common
                
    

    This would select results which have both recoll and src in the path (in any order), and which have not either utils or common.

    You can also use OR conjunctions with dir: clauses.

    A special aspect of dir clauses is that the values in the index are not transcoded to UTF-8, and never lower-cased or unaccented, but stored as binary. This means that you need to enter the values in the exact lower or upper case, and that searches for names with diacritics may sometimes be impossible because of character set conversion issues. Non-ASCII UNIX file paths are an unending source of trouble and are best avoided.

    You need to use double-quotes around the path value if it contains space characters.

  • size for filtering the results on file size. Example: size<10000. You can use <, > or = as operators. You can specify a range like the following: size>100 size<1000. The usual k/K, m/M, g/G, t/T can be used as (decimal) multipliers. Ex: size>1k to search for files bigger than 1000 bytes.

  • date for searching or filtering on dates. The syntax for the argument is based on the ISO8601 standard for dates and time intervals. Only dates are supported, no times. The general syntax is 2 elements separated by a / character. Each element can be a date or a period of time. Periods are specified as PnYnMnD. The n numbers are the respective numbers of years, months or days, any of which may be missing. Dates are specified as YYYY-MM-DD. The days and months parts may be missing. If the / is present but an element is missing, the missing element is interpreted as the lowest or highest date in the index. Examples:

    • 2001-03-01/2002-05-01 the basic syntax for an interval of dates.

    • 2001-03-01/P1Y2M the same specified with a period.

    • 2001/ from the beginning of 2001 to the latest date in the index.

    • 2001 the whole year of 2001

    • P2D/ means 2 days ago up to now if there are no documents with dates in the future.

    • /2003 all documents from 2003 or older.

    Periods can also be specified with small letters (ie: p2y).

  • mime or format for specifying the MIME type. This one is quite special because you can specify several values which will be OR'ed (the normal default for the language is AND). Ex: mime:text/plain mime:text/html. Specifying an explicit boolean operator before a mime specification is not supported and will produce strange results. You can filter out certain types by using negation (-mime:some/type), and you can use wildcards in the value (mime:text/*). Note that mime is the ONLY field with an OR default. You do need to use OR with ext terms for example.

  • type or rclcat for specifying the category (as in text/media/presentation/etc.). The classification of MIME types in categories is defined in the Recoll configuration (mimeconf), and can be modified or extended. The default category names are those which permit filtering results in the main GUI screen. Categories are OR'ed like MIME types above. This can't be negated with - either.

The document input handlers used while indexing have the possibility to create other fields with arbitrary names, and aliases may be defined in the configuration, so that the exact field search possibilities may be different for you if someone took care of the customisation.

3.5.1. Modifiers

Some characters are recognized as search modifiers when found immediately after the closing double quote of a phrase, as in "some term"modifierchars. The actual "phrase" can be a single term of course. Supported modifiers:

  • l can be used to turn off stemming (mostly makes sense with p because stemming is off by default for phrases).

  • o can be used to specify a "slack" for phrase and proximity searches: the number of additional terms that may be found between the specified ones. If o is followed by an integer number, this is the slack, else the default is 10.

  • p can be used to turn the default phrase search into a proximity one (unordered). Example:"order any in"p

  • C will turn on case sensitivity (if the index supports it).

  • D will turn on diacritics sensitivity (if the index supports it).

  • A weight can be specified for a query element by specifying a decimal value at the start of the modifiers. Example: "Important"2.5.

3.6. Search case and diacritics sensitivity

For Recoll versions 1.18 and later, and when working with a raw index (not the default), searches can be made sensitive to character case and diacritics. How this happens is controlled by configuration variables and what search data is entered.

The general default is that searches are insensitive to case and diacritics. An entry of resume will match any of Resume, RESUME, résumé, Résumé etc.

Two configuration variables can automate switching on sensitivity:

autodiacsens

If this is set, search sensitivity to diacritics will be turned on as soon as an accented character exists in a search term. When the variable is set to true, resume will start a diacritics-unsensitive search, but résumé will be matched exactly. The default value is false.

autocasesens

If this is set, search sensitivity to character case will be turned on as soon as an upper-case character exists in a search term except for the first one. When the variable is set to true, us or Us will start a diacritics-unsensitive search, but US will be matched exactly. The default value is true (contrary to autodiacsens).

As in the past, capitalizing the first letter of a word will turn off its stem expansion and have no effect on case-sensitivity.

You can also explicitely activate case and diacritics sensitivity by using modifiers with the query language. C will make the term case-sensitive, and D will make it diacritics-sensitive. Examples:

        "us"C
   

will search for the term us exactly (Us will not be a match).

        "resume"D
      

will search for the term resume exactly (résumé will not be a match).

When either case or diacritics sensitivity is activated, stem expansion is turned off. Having both does not make much sense.

3.7. Anchored searches and wildcards

Some special characters are interpreted by Recoll in search strings to expand or specialize the search. Wildcards expand a root term in controlled ways. Anchor characters can restrict a search to succeed only if the match is found at or near the beginning of the document or one of its fields.

3.7.1. More about wildcards

All words entered in Recoll search fields will be processed for wildcard expansion before the request is finally executed.

The wildcard characters are:

  • * which matches 0 or more characters.

  • ? which matches a single character.

  • [] which allow defining sets of characters to be matched (ex: [abc] matches a single character which may be 'a' or 'b' or 'c', [0-9] matches any number.

You should be aware of a few things when using wildcards.

  • Using a wildcard character at the beginning of a word can make for a slow search because Recoll will have to scan the whole index term list to find the matches. However, this is much less a problem for field searches, and queries like author:*@domain.com can sometimes be very useful.

  • For Recoll version 18 only, when working with a raw index (preserving character case and diacritics), the literal part of a wildcard expression will be matched exactly for case and diacritics. This is not true any more for versions 19 and later.

  • Using a * at the end of a word can produce more matches than you would think, and strange search results. You can use the term explorer tool to check what completions exist for a given term. You can also see exactly what search was performed by clicking on the link at the top of the result list. In general, for natural language terms, stem expansion will produce better results than an ending * (stem expansion is turned off when any wildcard character appears in the term).

3.7.1.1. Wildcards and path filtering

Due to the way that Recoll processes wildcards inside dir path filtering clauses, they will have a multiplicative effect on the query size. A clause containg wildcards in several paths elements, like, for example, dir:/home/me/*/*/docdir, will almost certainly fail if your indexed tree is of any realistic size.

Depending on the case, you may be able to work around the issue by specifying the paths elements more narrowly, with a constant prefix, or by using 2 separate dir: clauses instead of multiple wildcards, as in dir:/home/me dir:docdir. The latter query is not equivalent to the initial one because it does not specify a number of directory levels, but that's the best we can do (and it may be actually more useful in some cases).

3.7.2. Anchored searches

Two characters are used to specify that a search hit should occur at the beginning or at the end of the text. ^ at the beginning of a term or phrase constrains the search to happen at the start, $ at the end force it to happen at the end.

As this function is implemented as a phrase search it is possible to specify a maximum distance at which the hit should occur, either through the controls of the advanced search panel, or using the query language, for example, as in:

"^someterm"o10

which would force someterm to be found within 10 terms of the start of the text. This can be combined with a field search as in somefield:"^someterm"o10 or somefield:someterm$.

This feature can also be used with an actual phrase search, but in this case, the distance applies to the whole phrase and anchor, so that, for example, bla bla my unexpected term at the beginning of the text would be a match for "^my term"o5.

Anchored searches can be very useful for searches inside somewhat structured documents like scientific articles, in case explicit metadata has not been supplied (a most frequent case), for example for looking for matches inside the abstract or the list of authors (which occur at the top of the document).

3.8. Desktop integration

Being independant of the desktop type has its drawbacks: Recoll desktop integration is minimal. However there are a few tools available:

Here follow a few other things that may help.

3.8.1. Hotkeying recoll

It is surprisingly convenient to be able to show or hide the Recoll GUI with a single keystroke. Recoll comes with a small Python script, based on the libwnck window manager interface library, which will allow you to do just this. The detailed instructions are on this wiki page.

3.8.2. The KDE Kicker Recoll applet

This is probably obsolete now. Anyway:

The Recoll source tree contains the source code to the recoll_applet, a small application derived from the find_applet. This can be used to add a small Recoll launcher to the KDE panel.

The applet is not automatically built with the main Recoll programs, nor is it included with the main source distribution (because the KDE build boilerplate makes it relatively big). You can download its source from the recoll.org download page. Use the omnipotent configure;make;make install incantation to build and install.

You can then add the applet to the panel by right-clicking the panel and choosing the Add applet entry.

The recoll_applet has a small text window where you can type a Recoll query (in query language form), and an icon which can be used to restrict the search to certain types of files. It is quite primitive, and launches a new recoll GUI instance every time (even if it is already running). You may find it useful anyway.

Chapter 4. Programming interface

Recoll has an Application Programming Interface, usable both for indexing and searching, currently accessible from the Python language.

Another less radical way to extend the application is to write input handlers for new types of documents.

The processing of metadata attributes for documents (fields) is highly configurable.

4.1. Writing a document input handler

Terminology

The small programs or pieces of code which handle the processing of the different document types for Recoll used to be called filters, which is still reflected in the name of the directory which holds them and many configuration variables. They were named this way because one of their primary functions is to filter out the formatting directives and keep the text content. However these modules may have other behaviours, and the term input handler is now progressively substituted in the documentation. filter is still used in many places though.

Recoll input handlers cooperate to translate from the multitude of input document formats, simple ones as opendocument, acrobat), or compound ones such as Zip or Email, into the final Recoll indexing input format, which is plain text. Most input handlers are executable programs or scripts. A few handlers are coded in C++ and live inside recollindex. This latter kind will not be described here.

There are currently (1.18 and since 1.13) two kinds of external executable input handlers:

  • Simple exec handlers run once and exit. They can be bare programs like antiword, or scripts using other programs. They are very simple to write, because they just need to print the converted document to the standard output. Their output can be plain text or HTML. HTML is usually preferred because it can store metadata fields and it allows preserving some of the formatting for the GUI preview.

  • Multiple execm handlers can process multiple files (sparing the process startup time which can be very significant), or multiple documents per file (e.g.: for zip or chm files). They communicate with the indexer through a simple protocol, but are nevertheless a bit more complicated than the older kind. Most of new handlers are written in Python, using a common module to handle the protocol. There is an exception, rclimg which is written in Perl. The subdocuments output by these handlers can be directly indexable (text or HTML), or they can be other simple or compound documents that will need to be processed by another handler.

In both cases, handlers deal with regular file system files, and can process either a single document, or a linear list of documents in each file. Recoll is responsible for performing up to date checks, deal with more complex embedding and other upper level issues.

A simple handler returning a document in text/plain format, can transfer no metadata to the indexer. Generic metadata, like document size or modification date, will be gathered and stored by the indexer.

Handlers that produce text/html format can return an arbitrary amount of metadata inside HTML meta tags. These will be processed according to the directives found in the fields configuration file.

The handlers that can handle multiple documents per file return a single piece of data to identify each document inside the file. This piece of data, called an ipath element will be sent back by Recoll to extract the document at query time, for previewing, or for creating a temporary file to be opened by a viewer.

The following section describes the simple handlers, and the next one gives a few explanations about the execm ones. You could conceivably write a simple handler with only the elements in the manual. This will not be the case for the other ones, for which you will have to look at the code.

4.1.1. Simple input handlers

Recoll simple handlers are usually shell-scripts, but this is in no way necessary. Extracting the text from the native format is the difficult part. Outputting the format expected by Recoll is trivial. Happily enough, most document formats have translators or text extractors which can be called from the handler. In some cases the output of the translating program is completely appropriate, and no intermediate shell-script is needed.

Input handlers are called with a single argument which is the source file name. They should output the result to stdout.

When writing a handler, you should decide if it will output plain text or HTML. Plain text is simpler, but you will not be able to add metadata or vary the output character encoding (this will be defined in a configuration file). Additionally, some formatting may be easier to preserve when previewing HTML. Actually the deciding factor is metadata: Recoll has a way to extract metadata from the HTML header and use it for field searches..

The RECOLL_FILTER_FORPREVIEW environment variable (values yes, no) tells the handler if the operation is for indexing or previewing. Some handlers use this to output a slightly different format, for example stripping uninteresting repeated keywords (ie: Subject: for email) when indexing. This is not essential.

You should look at one of the simple handlers, for example rclps for a starting point.

Don't forget to make your handler executable before testing !

4.1.2. "Multiple" handlers

If you can program and want to write an execm handler, it should not be too difficult to make sense of one of the existing modules. For example, look at rclzip which uses Zip file paths as identifiers (ipath), and rclics, which uses an integer index. Also have a look at the comments inside the internfile/mh_execm.h file and possibly at the corresponding module.

execm handlers sometimes need to make a choice for the nature of the ipath elements that they use in communication with the indexer. Here are a few guidelines:

  • Use ASCII or UTF-8 (if the identifier is an integer print it, for example, like printf %d would do).

  • If at all possible, the data should make some kind of sense when printed to a log file to help with debugging.

  • Recoll uses a colon (:) as a separator to store a complex path internally (for deeper embedding). Colons inside the ipath elements output by a handler will be escaped, but would be a bad choice as a handler-specific separator (mostly, again, for debugging issues).

In any case, the main goal is that it should be easy for the handler to extract the target document, given the file name and the ipath element.

execm handlers will also produce a document with a null ipath element. Depending on the type of document, this may have some associated data (e.g. the body of an email message), or none (typical for an archive file). If it is empty, this document will be useful anyway for some operations, as the parent of the actual data documents.

4.1.3. Telling Recoll about the handler

There are two elements that link a file to the handler which should process it: the association of file to MIME type and the association of a MIME type with a handler.

The association of files to MIME types is mostly based on name suffixes. The types are defined inside the mimemap file. Example:


.doc = application/msword

If no suffix association is found for the file name, Recoll will try to execute the file -i command to determine a MIME type.

The association of file types to handlers is performed in the mimeconf file. A sample will probably be of better help than a long explanation:


[index]
application/msword = exec antiword -t -i 1 -m UTF-8;\
     mimetype = text/plain ; charset=utf-8

application/ogg = exec rclogg

text/rtf = exec unrtf --nopict --html; charset=iso-8859-1; mimetype=text/html

application/x-chm = execm rclchm

The fragment specifies that:

  • application/msword files are processed by executing the antiword program, which outputs text/plain encoded in utf-8.

  • application/ogg files are processed by the rclogg script, with default output type (text/html, with encoding specified in the header, or utf-8 by default).

  • text/rtf is processed by unrtf, which outputs text/html. The iso-8859-1 encoding is specified because it is not the utf-8 default, and not output by unrtf in the HTML header section.

  • application/x-chm is processed by a persistant handler. This is determined by the execm keyword.

4.1.4. Input handler HTML output

The output HTML could be very minimal like the following example:

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  </head>
  <body>
   Some text content
  </body>
</html>
          

You should take care to escape some characters inside the text by transforming them into appropriate entities. At the very minimum, "&" should be transformed into "&amp;", "<" should be transformed into "&lt;". This is not always properly done by translating programs which output HTML, and of course never by those which output plain text.

When encapsulating plain text in an HTML body, the display of a preview may be improved by enclosing the text inside <pre> tags.

The character set needs to be specified in the header. It does not need to be UTF-8 (Recoll will take care of translating it), but it must be accurate for good results.

Recoll will process meta tags inside the header as possible document fields candidates. Documents fields can be processed by the indexer in different ways, for searching or displaying inside query results. This is described in a following section.

By default, the indexer will process the standard header fields if they are present: title, meta/description, and meta/keywords are both indexed and stored for query-time display.

A predefined non-standard meta tag will also be processed by Recoll without further configuration: if a date tag is present and has the right format, it will be used as the document date (for display and sorting), in preference to the file modification date. The date format should be as follows:

<meta name="date" content="YYYY-mm-dd HH:MM:SS">
or
<meta name="date" content="YYYY-mm-ddTHH:MM:SS">
          

Example:

<meta name="date" content="2013-02-24 17:50:00">
          

Input handlers also have the possibility to "invent" field names. This should also be output as meta tags:

<meta name="somefield" content="Some textual data" />

You can embed HTML markup inside the content of custom fields, for improving the display inside result lists. In this case, add a (wildly non-standard) markup attribute to tell Recoll that the value is HTML and should not be escaped for display.

<meta name="somefield" markup="html" content="Some <i>textual</i> data" />

As written above, the processing of fields is described in a further section.

4.1.5. Page numbers

The indexer will interpret ^L characters in the handler output as indicating page breaks, and will record them. At query time, this allows starting a viewer on the right page for a hit or a snippet. Currently, only the PDF, Postscript and DVI handlers generate page breaks.

4.2. Field data processing

Fields are named pieces of information in or about documents, like title, author, abstract.

The field values for documents can appear in several ways during indexing: either output by input handlers as meta fields in the HTML header section, or extracted from file extended attributes, or added as attributes of the Doc object when using the API, or again synthetized internally by Recoll.

The Recoll query language allows searching for text in a specific field.

Recoll defines a number of default fields. Additional ones can be output by handlers, and described in the fields configuration file.

Fields can be:

  • indexed, meaning that their terms are separately stored in inverted lists (with a specific prefix), and that a field-specific search is possible.

  • stored, meaning that their value is recorded in the index data record for the document, and can be returned and displayed with search results.

A field can be either or both indexed and stored. This and other aspects of fields handling is defined inside the fields configuration file.

The sequence of events for field processing is as follows:

  • During indexing, recollindex scans all meta fields in HTML documents (most document types are transformed into HTML at some point). It compares the name for each element to the configuration defining what should be done with fields (the fields file)

  • If the name for the meta element matches one for a field that should be indexed, the contents are processed and the terms are entered into the index with the prefix defined in the fields file.

  • If the name for the meta element matches one for a field that should be stored, the content of the element is stored with the document data record, from which it can be extracted and displayed at query time.

  • At query time, if a field search is performed, the index prefix is computed and the match is only performed against appropriately prefixed terms in the index.

  • At query time, the field can be displayed inside the result list by using the appropriate directive in the definition of the result list paragraph format. All fields are displayed on the fields screen of the preview window (which you can reach through the right-click menu). This is independant of the fact that the search which produced the results used the field or not.

You can find more information in the section about the fields file, or in comments inside the file.

You can also have a look at the example on the Wiki, detailing how one could add a page count field to pdf documents for displaying inside result lists.

4.3. API

4.3.1. Interface elements

A few elements in the interface are specific and and need an explanation.

udi

An udi (unique document identifier) identifies a document. Because of limitations inside the index engine, it is restricted in length (to 200 bytes), which is why a regular URI cannot be used. The structure and contents of the udi is defined by the application and opaque to the index engine. For example, the internal file system indexer uses the complete document path (file path + internal path), truncated to length, the suppressed part being replaced by a hash value.

ipath

This data value (set as a field in the Doc object) is stored, along with the URL, but not indexed by Recoll. Its contents are not interpreted, and its use is up to the application. For example, the Recoll internal file system indexer stores the part of the document access path internal to the container file (ipath in this case is a list of subdocument sequential numbers). url and ipath are returned in every search result and permit access to the original document.

Stored and indexed fields

The fields file inside the Recoll configuration defines which document fields are either "indexed" (searchable), "stored" (retrievable with search results), or both.

Data for an external indexer, should be stored in a separate index, not the one for the Recoll internal file system indexer, except if the latter is not used at all). The reason is that the main document indexer purge pass would remove all the other indexer's documents, as they were not seen during indexing. The main indexer documents would also probably be a problem for the external indexer purge operation.

4.3.2. Python interface

4.3.2.1. Introduction

Recoll versions after 1.11 define a Python programming interface, both for searching and indexing. The indexing portion has seen little use, but the searching one is used in the Recoll Ubuntu Unity Lens and Recoll Web UI.

The API is inspired by the Python database API specification. There were two major changes in recent Recoll versions:

  • The basis for the Recoll API changed from Python database API version 1.0 (Recoll versions up to 1.18.1), to version 2.0 (Recoll 1.18.2 and later).
  • The recoll module became a package (with an internal recoll module) as of Recoll version 1.19, in order to add more functions. For existing code, this only changes the way the interface must be imported.

We will mostly describe the new API and package structure here. A paragraph at the end of this section will explain a few differences and ways to write code compatible with both versions.

The Python interface can be found in the source package, under python/recoll.

The python/recoll/ directory contains the usual setup.py. After configuring the main Recoll code, you can use the script to build and install the Python module:

            cd recoll-xxx/python/recoll
            python setup.py build
            python setup.py install
          

The normal Recoll installer installs the Python API along with the main code.

When installing from a repository, and depending on the distribution, the Python API can sometimes be found in a separate package.

4.3.2.2. Recoll package

The recoll package contains two modules:

  • The recoll module contains functions and classes used to query (or update) the index.

  • The rclextract module contains functions and classes used to access document data.

4.3.2.3. The recoll module

Functions
connect(confdir=None, extra_dbs=None, writable = False)
The connect() function connects to one or several Recoll index(es) and returns a Db object.
  • confdir may specify a configuration directory. The usual defaults apply.
  • extra_dbs is a list of additional indexes (Xapian directories).
  • writable decides if we can index new data through this connection.
This call initializes the recoll module, and it should always be performed before any other call or object creation.
Classes
The Db class

A Db object is created by a connect() call and holds a connection to a Recoll index.

Methods

Db.close()
Closes the connection. You can't do anything with the Db object after this.
Db.query(), Db.cursor()
These aliases return a blank Query object for this index.
Db.setAbstractParams(maxchars, contextwords)
Set the parameters used to build snippets (sets of keywords in context text fragments). maxchars defines the maximum total size of the abstract. contextwords defines how many terms are shown around the keyword.
Db.termMatch(match_type, expr, field='', maxlen=-1, casesens=False, diacsens=False, lang='english')
Expand an expression against the index term list. Performs the basic function from the GUI term explorer tool. match_type can be either of wildcard, regexp or stem. Returns a list of terms expanded from the input expression.
The Query class

A Query object (equivalent to a cursor in the Python DB API) is created by a Db.query() call. It is used to execute index searches.

Methods

Query.sortby(fieldname, ascending=True)
Sort results by fieldname, in ascending or descending order. Must be called before executing the search.
Query.execute(query_string, stemming=1, stemlang="english")
Starts a search for query_string, a Recoll search language string.
Query.executesd(SearchData)
Starts a search for the query defined by the SearchData object.
Query.fetchmany(size=query.arraysize)
Fetches the next Doc objects in the current search results, and returns them as an array of the required size, which is by default the value of the arraysize data member.
Query.fetchone()
Fetches the next Doc object from the current search results.
Query.close()
Closes the query. The object is unusable after the call.
Query.scroll(value, mode='relative')
Adjusts the position in the current result set. mode can be relative or absolute.
Query.getgroups()
Retrieves the expanded query terms as a list of pairs. Meaningful only after executexx In each pair, the first entry is a list of user terms (of size one for simple terms, or more for group and phrase clauses), the second a list of query terms as derived from the user terms and used in the Xapian Query.
Query.getxquery()
Return the Xapian query description as a Unicode string. Meaningful only after executexx.
Query.highlight(text, ishtml = 0, methods = object)
Will insert <span "class=rclmatch">, </span> tags around the match areas in the input text and return the modified text. ishtml can be set to indicate that the input text is HTML and that HTML special characters should not be escaped. methods if set should be an object with methods startMatch(i) and endMatch() which will be called for each match and should return a begin and end tag
Query.makedocabstract(doc, methods = object))
Create a snippets abstract for doc (a Doc object) by selecting text around the match terms. If methods is set, will also perform highlighting. See the highlight method.
Query.__iter__() and Query.next()
So that things like for doc in query: will work.

Data descriptors

Query.arraysize
Default number of records processed by fetchmany (r/w).
Query.rowcount
Number of records returned by the last execute.
Query.rownumber
Next index to be fetched from results. Normally increments after each fetchone() call, but can be set/reset before the call to effect seeking (equivalent to using scroll()). Starts at 0.
The Doc class

A Doc object contains index data for a given document. The data is extracted from the index when searching, or set by the indexer program when updating. The Doc object has many attributes to be read or set by its user. It matches exactly the Rcl::Doc C++ object. Some of the attributes are predefined, but, especially when indexing, others can be set, the name of which will be processed as field names by the indexing configuration. Inputs can be specified as Unicode or strings. Outputs are Unicode objects. All dates are specified as Unix timestamps, printed as strings. Please refer to the rcldb/rcldoc.h C++ file for a description of the predefined attributes.

At query time, only the fields that are defined as stored either by default or in the fields configuration file will be meaningful in the Doc object. Especially this will not be the case for the document text. See the rclextract module for accessing document contents.

Methods

get(key), [] operator
Retrieve the named doc attribute
getbinurl()
Retrieve the URL in byte array format (no transcoding), for use as parameter to a system call.
items()
Return a dictionary of doc object keys/values
keys()
list of doc object keys (attribute names).
The SearchData class

A SearchData object allows building a query by combining clauses, for execution by Query.executesd(). It can be used in replacement of the query language approach. The interface is going to change a little, so no detailed doc for now...

Methods

addclause(type='and'|'or'|'excl'|'phrase'|'near'|'sub', qstring=string, slack=0, field='', stemming=1, subSearch=SearchData)

4.3.2.4. The rclextract module

Index queries do not provide document content (only a partial and unprecise reconstruction is performed to show the snippets text). In order to access the actual document data, the data extraction part of the indexing process must be performed (subdocument access and format translation). This is not trivial in general. The rclextract module currently provides a single class which can be used to access the data content for result documents.

Classes
The Extractor class

Methods

Extractor(doc)
An Extractor object is built from a Doc object, output from a query.
Extractor.textextract(ipath)
Extract document defined by ipath and return a Doc object. The doc.text field has the document text converted to either text/plain or text/html according to doc.mimetype. The typical use would be as follows:
qdoc = query.fetchone()
extractor = recoll.Extractor(qdoc)
doc = extractor.textextract(qdoc.ipath)
# use doc.text, e.g. for previewing
Extractor.idoctofile(ipath, targetmtype, outfile='')
Extracts document into an output file, which can be given explicitly or will be created as a temporary file to be deleted by the caller. Typical use:
qdoc = query.fetchone()
extractor = recoll.Extractor(qdoc)
filename = extractor.idoctofile(qdoc.ipath, qdoc.mimetype)

4.3.2.5. Example code

The following sample would query the index with a user language string. See the python/samples directory inside the Recoll source for other examples. The recollgui subdirectory has a very embryonic GUI which demonstrates the highlighting and data extraction functions.

#!/usr/bin/env python

from recoll import recoll

db = recoll.connect()
db.setAbstractParams(maxchars=80, contextwords=4)

query = db.query()
nres = query.execute("some user question")
print "Result count: ", nres
if nres > 5:
    nres = 5
for i in range(nres):
    doc = query.fetchone()
    print "Result #%d" % (query.rownumber,)
    for k in ("title", "size"):
        print k, ":", getattr(doc, k).encode('utf-8')
    abs = db.makeDocAbstract(doc, query).encode('utf-8')
    print abs
    print


4.3.2.6. Compatibility with the previous version

The following code fragments can be used to ensure that code can run with both the old and the new API (as long as it does not use the new abilities of the new API of course).

Adapting to the new package structure:


try:
    from recoll import recoll
    from recoll import rclextract
    hasextract = True
except:
    import recoll
    hasextract = False

Adapting to the change of nature of the next Query member. The same test can be used to choose to use the scroll() method (new) or set the next value (old).


       rownum = query.next if type(query.next) == int else \
                 query.rownumber

Chapter 5. Installation and configuration

5.1. Installing a binary copy

Recoll binary copies are always distributed as regular packages for your system. They can be obtained either through the system's normal software distribution framework (e.g. Debian/Ubuntu apt, FreeBSD ports, etc.), or from some type of "backports" repository providing versions newer than the standard ones, or found on the Recoll WEB site in some cases.

There used to exist another form of binary install, as pre-compiled source trees, but these are just less convenient than the packages and don't exist any more.

The package management tools will usually automatically deal with hard dependancies for packages obtained from a proper package repository. You will have to deal with them by hand for downloaded packages (for example, when dpkg complains about missing dependancies).

In all cases, you will have to check or install supporting applications for the file types that you want to index beyond those that are natively processed by Recoll (text, HTML, email files, and a few others).

You should also maybe have a look at the configuration section (but this may not be necessary for a quick test with default parameters). Most parameters can be more conveniently set from the GUI interface.

5.2. Supporting packages

Recoll uses external applications to index some file types. You need to install them for the file types that you wish to have indexed (these are run-time optional dependencies. None is needed for building or running Recoll except for indexing their specific file type).

After an indexing pass, the commands that were found missing can be displayed from the recoll File menu. The list is stored in the missing text file inside the configuration directory.

A list of common file types which need external commands follows. Many of the handlers need the iconv command, which is not always listed as a dependancy.

Please note that, due to the relatively dynamic nature of this information, the most up to date version is now kept on http://www.recoll.org/features.html along with links to the home pages or best source/patches pages, and misc tips. The list below is not updated often and may be quite stale.

For many Linux distributions, most of the commands listed can be installed from the package repositories. However, the packages are sometimes outdated, or not the best version for Recoll, so you should take a look at http://www.recoll.org/features.html if a file type is important to you.

As of Recoll release 1.14, a number of XML-based formats that were handled by ad hoc handler code now use the xsltproc command, which usually comes with libxslt. These are: abiword, fb2 (ebooks), kword, openoffice, svg.

Now for the list:

  • Openoffice files need unzip and xsltproc.

  • PDF files need pdftotext which is part of Poppler (usually comes with the poppler-utils package). Avoid the original one from Xpdf.

  • Postscript files need pstotext. The original version has an issue with shell character in file names, which is corrected in recent packages. See http://www.recoll.org/features.html for more detail.

  • MS Word needs antiword. It is also useful to have wvWare installed as it may be be used as a fallback for some files which antiword does not handle.

  • MS Excel and PowerPoint are processed by internal Python handlers.

  • MS Open XML (docx) needs xsltproc.

  • Wordperfect files need wpd2html from the libwpd (or libwpd-tools on Ubuntu) package.

  • RTF files need unrtf, which, in its older versions, has much trouble with non-western character sets. Many Linux distributions carry outdated unrtf versions. Check http://www.recoll.org/features.html for details.

  • TeX files need untex or detex. Check http://www.recoll.org/features.html for sources if it's not packaged for your distribution.

  • dvi files need dvips.

  • djvu files need djvutxt and djvused from the DjVuLibre package.

  • Audio files: Recoll releases 1.14 and later use a single Python handler based on mutagen for all audio file types.

  • Pictures: Recoll uses the Exiftool Perl package to extract tag information. Most image file formats are supported. Note that there may not be much interest in indexing the technical tags (image size, aperture, etc.). This is only of interest if you store personal tags or textual descriptions inside the image files.

  • chm: files in Microsoft help format need Python and the pychm module (which needs chmlib).

  • ICS: up to Recoll 1.13, iCalendar files need Python and the icalendar module. icalendar is not needed for newer versions, which use internal code.

  • Zip archives need Python (and the standard zipfile module).

  • Rar archives need Python, the rarfile Python module and the unrar utility.

  • Midi karaoke files need Python and the Midi module

  • Konqueror webarchive format with Python (uses the Tarfile module).

  • Mimehtml web archive format (support based on the email handler, which introduces some mild weirdness, but still usable).

Text, HTML, email folders, and Scribus files are processed internally. Lyx is used to index Lyx files. Many handlers need iconv and the standard sed and awk.

5.3. Building from source

5.3.1. Prerequisites

If you can install any or all of the following through the package manager for your system, all the better. Especially Qt is a very big piece of software, but you will most probably be able to find a binary package.

You may have to compile Xapian but this is easy.

The shopping list:

  • C++ compiler. Up to Recoll version 1.13.04, its absence can manifest itself by strange messages about a missing iconv_open.

  • Development files for Xapian core.

    Important

    If you are building Xapian for an older CPU (before Pentium 4 or Athlon 64), you need to add the --disable-sse flag to the configure command. Else all Xapian application will crash with an illegal instruction error.

  • Development files for Qt 4 . Recoll has not been tested with Qt 5 yet. Recoll 1.15.9 was the last version to support Qt 3. If you do not want to install or build the Qt Webkit module, Recoll has a configuration option to disable its use (see further).

  • Development files for X11 and zlib.

  • You may also need libiconv. On Linux systems, the iconv interface is part of libc and you should not need to do anything special.

Check the Recoll download page for up to date version information.

5.3.2. Building

Recoll has been built on Linux, FreeBSD, Mac OS X, and Solaris, most versions after 2005 should be ok, maybe some older ones too (Solaris 8 is ok). If you build on another system, and need to modify things, I would very much welcome patches.

Configure options: 

  • --without-aspell will disable the code for phonetic matching of search terms.

  • --with-fam or --with-inotify will enable the code for real time indexing. Inotify support is enabled by default on recent Linux systems.

  • --with-qzeitgeist will enable sending Zeitgeist events about the visited search results, and needs the qzeitgeist package.

  • --disable-webkit is available from version 1.17 to implement the result list with a Qt QTextBrowser instead of a WebKit widget if you do not or can't depend on the latter.

  • --disable-idxthreads is available from version 1.19 to suppress multithreading inside the indexing process. You can also use the run-time configuration to restrict recollindex to using a single thread, but the compile-time option may disable a few more unused locks. This only applies to the use of multithreading for the core index processing (data input). The Recoll monitor mode always uses at least two threads of execution.

  • --disable-python-module will avoid building the Python module.

  • --disable-xattr will prevent fetching data from file extended attributes. Beyond a few standard attributes, fetching extended attributes data can only be useful is some application stores data in there, and also needs some simple configuration (see comments in the fields configuration file).

  • --enable-camelcase will enable splitting camelCase words. This is not enabled by default as it has the unfortunate side-effect of making some phrase searches quite confusing: ie, "MySQL manual" would be matched by "MySQL manual" and "my sql manual" but not "mysql manual" (only inside phrase searches).

  • --with-file-command Specify the version of the 'file' command to use (ie: --with-file-command=/usr/local/bin/file). Can be useful to enable the gnu version on systems where the native one is bad.

  • --disable-qtgui Disable the Qt interface. Will allow building the indexer and the command line search program in absence of a Qt environment.

  • --disable-x11mon Disable X11 connection monitoring inside recollindex. Together with --disable-qtgui, this allows building recoll without Qt and X11.

  • --disable-pic will compile Recoll with position-dependant code. This is incompatible with building the KIO or the Python or PHP extensions, but might yield very marginally faster code.

  • Of course the usual autoconf configure options, like --prefix apply.

Normal procedure:

        cd recoll-xxx
        ./configure
        make
        (practices usual hardship-repelling invocations)
      

There is little auto-configuration. The configure script will mainly link one of the system-specific files in the mk directory to mk/sysconf. If your system is not known yet, it will tell you as much, and you may want to manually copy and modify one of the existing files (the new file name should be the output of uname -s).

5.3.2.1. Building on Solaris

We did not test building the GUI on Solaris for recent versions. You will need at least Qt 4.4. There are some hints on an old web site page, they may still be valid.

Someone did test the 1.19 indexer and Python module build, they do work, with a few minor glitches. Be sure to use GNU make and install.

5.3.3. Installation

Either type make install or execute recollinstall prefix, in the root of the source tree. This will copy the commands to prefix/bin and the sample configuration files, scripts and other shared data to prefix/share/recoll.

If the installation prefix given to recollinstall is different from either the system default or the value which was specified when executing configure (as in configure --prefix /some/path), you will have to set the RECOLL_DATADIR environment variable to indicate where the shared data is to be found (ie for (ba)sh: export RECOLL_DATADIR=/some/path/share/recoll).

You can then proceed to configuration.

5.4. Configuration overview

Most of the parameters specific to the recoll GUI are set through the Preferences menu and stored in the standard Qt place ($HOME/.config/Recoll.org/recoll.conf). You probably do not want to edit this by hand.

Recoll indexing options are set inside text configuration files located in a configuration directory. There can be several such directories, each of which defines the parameters for one index.

The configuration files can be edited by hand or through the Index configuration dialog (Preferences menu). The GUI tool will try to respect your formatting and comments as much as possible, so it is quite possible to use both ways.

The most accurate documentation for the configuration parameters is given by comments inside the default files, and we will just give a general overview here.

By default, for each index, there are two sets of configuration files. System-wide configuration files are kept in a directory named like /usr/[local/]share/recoll/examples, and define default values, shared by all indexes. For each index, a parallel set of files defines the customized parameters.

In addition (as of Recoll version 1.19.7), it is possible to specify two additional configuration directories which will be stacked before and after the user configuration directory. These are defined by the RECOLL_CONFTOP and RECOLL_CONFMID environment variables. Values from configuration files inside the top directory will override user ones, values from configuration files inside the middle directory will override system ones and be overriden by user ones. These two variables may be of use to applications which augment Recoll functionality, and need to add configuration data without disturbing the user's files. Please note that the two, currently single, values will probably be interpreted as colon-separated lists in the future: do not use colon characters inside the directory paths.

The default location of the configuration is the .recoll directory in your home. Most people will only use this directory.

This location can be changed, or others can be added with the RECOLL_CONFDIR environment variable or the -c option parameter to recoll and recollindex.

If the .recoll directory does not exist when recoll or recollindex are started, it will be created with a set of empty configuration files. recoll will give you a chance to edit the configuration file before starting indexing. recollindex will proceed immediately. To avoid mistakes, the automatic directory creation will only occur for the default location, not if -c or RECOLL_CONFDIR were used (in the latter cases, you will have to create the directory).

All configuration files share the same format. For example, a short extract of the main configuration file might look as follows:

        # Space-separated list of directories to index.
        topdirs =  ~/docs /usr/share/doc

        [~/somedirectory-with-utf8-txt-files]
        defaultcharset = utf-8
        

There are three kinds of lines:

  • Comment (starts with #) or empty.

  • Parameter affectation (name = value).

  • Section definition ([somedirname]).

Depending on the type of configuration file, section definitions either separate groups of parameters or allow redefining some parameters for a directory sub-tree. They stay in effect until another section definition, or the end of file, is encountered. Some of the parameters used for indexing are looked up hierarchically from the current directory location upwards. Not all parameters can be meaningfully redefined, this is specified for each in the next section.

When found at the beginning of a file path, the tilde character (~) is expanded to the name of the user's home directory, as a shell would do.

White space is used for separation inside lists. List elements with embedded spaces can be quoted using double-quotes.

Encoding issues. Most of the configuration parameters are plain ASCII. Two particular sets of values may cause encoding issues:

  • File path parameters may contain non-ascii characters and should use the exact same byte values as found in the file system directory. Usually, this means that the configuration file should use the system default locale encoding.

  • The unac_except_trans parameter should be encoded in UTF-8. If your system locale is not UTF-8, and you need to also specify non-ascii file paths, this poses a difficulty because common text editors cannot handle multiple encodings in a single file. In this relatively unlikely case, you can edit the configuration file as two separate text files with appropriate encodings, and concatenate them to create the complete configuration.

5.4.1. Environment variables

RECOLL_CONFDIR

Defines the main configuration directory.

RECOLL_TMPDIR, TMPDIR

Locations for temporary files, in this order of priority. The default if none of these is set is to use /tmp. Big temporary files may be created during indexing, mostly for decompressing, and also for processing, e.g. email attachments.

RECOLL_CONFTOP, RECOLL_CONFMID

Allow adding configuration directories with priorities below and above the user directory (see above the Configuration overview section for details).

RECOLL_EXTRA_DBS, RECOLL_ACTIVE_EXTRA_DBS

Help for setting up external indexes. See this paragraph for explanations.

RECOLL_DATADIR

Defines replacement for the default location of Recoll data files, normally found in, e.g., /usr/share/recoll).

RECOLL_FILTERSDIR

Defines replacement for the default location of Recoll filters, normally found in, e.g., /usr/share/recoll/filters).

ASPELL_PROG

aspell program to use for creating the spelling dictionary. The result has to be compatible with the libaspell which Recoll is using.

VARNAME

Blabla

5.4.2. The main configuration file, recoll.conf

recoll.conf is the main configuration file. It defines things like what to index (top directories and things to ignore), and the default character set to use for document types which do not specify it internally.

The default configuration will index your home directory. If this is not appropriate, start recoll to create a blank configuration, click Cancel, and edit the configuration file before restarting the command. This will start the initial indexing, which may take some time.

Most of the following parameters can be changed from the Index Configuration menu in the recoll interface. Some can only be set by editing the configuration file.

5.4.2.1. Parameters affecting what documents we index:

topdirs

Specifies the list of directories or files to index (recursively for directories). You can use symbolic links as elements of this list. See the followLinks option about following symbolic links found under the top elements (not followed by default).

skippedNames

A space-separated list of wilcard patterns for names of files or directories that should be completely ignored. The list defined in the default file is:

skippedNames = #* bin CVS  Cache cache* caughtspam  tmp .thumbnails .svn \
               *~ .beagle .git .hg .bzr loop.ps .xsession-errors \
               .recoll* xapiandb recollrc recoll.conf 

The list can be redefined at any sub-directory in the indexed area.

The top-level directories are not affected by this list (that is, a directory in topdirs might match and would still be indexed).

The list in the default configuration does not exclude hidden directories (names beginning with a dot), which means that it may index quite a few things that you do not want. On the other hand, email user agents like thunderbird usually store messages in hidden directories, and you probably want this indexed. One possible solution is to have .* in skippedNames, and add things like ~/.thunderbird or ~/.evolution in topdirs.

Not even the file names are indexed for patterns in this list. See the noContentSuffixes variable for an alternative approach which indexes the file names.

noContentSuffixes

This is a list of file name endings (not wildcard expressions, nor dot-delimited suffixes). Only the names of matching files will be indexed (no attempt at MIME type identification, no decompression, no content indexing). This can be redefined for subdirectories, and edited from the GUI. The default value is:

noContentSuffixes = .md5 .map \
       .o .lib .dll .a .sys .exe .com \
       .mpp .mpt .vsd \
           .img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz \
       .dat .bak .rdf .log.gz .log .db .msf .pid \
       ,v ~ #
skippedPaths and daemSkippedPaths

A space-separated list of patterns for paths of files or directories that should be skipped. There is no default in the sample configuration file, but the code always adds the configuration and database directories in there.

skippedPaths is used both by batch and real time indexing. daemSkippedPaths can be used to specify things that should be indexed at startup, but not monitored.

Example of use for skipping text files only in a specific directory:

skippedPaths = ~/somedir/*.txt
              
skippedPathsFnmPathname

The values in the *skippedPaths variables are matched by default with fnmatch(3), with the FNM_PATHNAME flag. This means that '/' characters must be matched explicitely. You can set skippedPathsFnmPathname to 0 to disable the use of FNM_PATHNAME (meaning that /*/dir3 will match /dir1/dir2/dir3).

zipSkippedNames

A space-separated list of patterns for names of files or directories that should be ignored inside zip archives. This is used directly by the zip handler, and has a function similar to skippedNames, but works independantly. Can be redefined for filesystem subdirectories. For versions up to 1.19, you will need to update the Zip handler and install a supplementary Python module. The details are described on the Recoll wiki.

followLinks

Specifies if the indexer should follow symbolic links while walking the file tree. The default is to ignore symbolic links to avoid multiple indexing of linked files. No effort is made to avoid duplication when this option is set to true. This option can be set individually for each of the topdirs members by using sections. It can not be changed below the topdirs level.

indexedmimetypes

Recoll normally indexes any file which it knows how to read. This list lets you restrict the indexed MIME types to what you specify. If the variable is unspecified or the list empty (the default), all supported types are processed. Can be redefined for subdirectories.

excludedmimetypes

This list lets you exclude some MIME types from indexing. Can be redefined for subdirectories.

compressedfilemaxkbs

Size limit for compressed (.gz or .bz2) files. These need to be decompressed in a temporary directory for identification, which can be very wasteful if 'uninteresting' big compressed files are present. Negative means no limit, 0 means no processing of any compressed file. Defaults to -1.

textfilemaxmbs

Maximum size for text files. Very big text files are often uninteresting logs. Set to -1 to disable (default 20MB).

textfilepagekbs

If set to other than -1, text files will be indexed as multiple documents of the given page size. This may be useful if you do want to index very big text files as it will both reduce memory usage at index time and help with loading data to the preview window. A size of a few megabytes would seem reasonable (default: 1MB).

membermaxkbs

This defines the maximum size in kilobytes for an archive member (zip, tar or rar at the moment). Bigger entries will be skipped.

indexallfilenames

Recoll indexes file names in a special section of the database to allow specific file names searches using wild cards. This parameter decides if file name indexing is performed only for files with MIME types that would qualify them for full text indexing, or for all files inside the selected subtrees, independently of MIME type.

usesystemfilecommand

Decide if we execute a system command (file -i by default) as a final step for determining the MIME type for a file (the main procedure uses suffix associations as defined in the mimemap file). This can be useful for files with suffix-less names, but it will also cause the indexing of many bogus "text" files.

systemfilecommand

Command to use for mime for mime type determination if usesystefilecommand is set. Recent versions of xdg-mime sometimes work better than file.

processwebqueue

If this is set, process the directory where Web browser plugins copy visited pages for indexing.

webqueuedir

The path to the web indexing queue. This is hard-coded in the Firefox plugin as ~/.recollweb/ToIndex so there should be no need to change it.

5.4.2.2. Parameters affecting how we generate terms:

Changing some of these parameters will imply a full reindex. Also, when using multiple indexes, it may not make sense to search indexes that don't share the values for these parameters, because they usually affect both search and index operations.

indexStripChars

Decide if we strip characters of diacritics and convert them to lower-case before terms are indexed. If we don't, searches sensitive to case and diacritics can be performed, but the index will be bigger, and some marginal weirdness may sometimes occur. The default is a stripped index (indexStripChars = 1) for now. When using multiple indexes for a search, this parameter must be defined identically for all. Changing the value implies an index reset.

maxTermExpand

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.

maxXapianClauses

Maximum number of elementary clauses we can add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.

nonumbers

If this set to true, no terms will be generated for numbers. For example "123", "1.5e6", 192.168.1.4, would not be indexed ("value123" would still be). Numbers are often quite interesting to search for, and this should probably not be set except for special situations, ie, scientific documents with huge amounts of numbers in them. This can only be set for a whole index, not for a subtree.

nocjk

If this set to true, specific east asian (Chinese Korean Japanese) characters/word splitting is turned off. This will save a small amount of cpu if you have no CJK documents. If your document base does include such text but you are not interested in searching it, setting nocjk may be a significant time and space saver.

cjkngramlen

This lets you adjust the size of n-grams used for indexing CJK text. The default value of 2 is probably appropriate in most cases. A value of 3 would allow more precision and efficiency on longer words, but the index will be approximately twice as large.

indexstemminglanguages

A list of languages for which the stem expansion databases will be built. See recollindex(1) or use the recollindex -l command for possible values. You can add a stem expansion database for a different language by using recollindex -s, but it will be deleted during the next indexing. Only languages listed in the configuration file are permanent.

defaultcharset

The name of the character set used for files that do not contain a character set definition (ie: plain text files). This can be redefined for any sub-directory. If it is not set at all, the character set used is the one defined by the nls environment ( LC_ALL, LC_CTYPE, LANG), or iso8859-1 if nothing is set.

unac_except_trans

This is a list of characters, encoded in UTF-8, which should be handled specially when converting text to unaccented lowercase. For example, in Swedish, the letter a with diaeresis has full alphabet citizenship and should not be turned into an a. Each element in the space-separated list has the special character as first element and the translation following. The handling of both the lowercase and upper-case versions of a character should be specified, as appartenance to the list will turn-off both standard accent and case processing. Example for Swedish:

unac_except_trans =  åå Åå ää Ää öö Öö
            

Note that the translation is not limited to a single character, you could very well have something like üue in the list.

The default value set for unac_except_trans can't be listed here because I have trouble with SGML and UTF-8, but it only contains ligature decompositions: german ss, oe, ae, fi, fl.

This parameter can't be defined for subdirectories, it is global, because there is no way to do otherwise when querying. If you have document sets which would need different values, you will have to index and query them separately.

maildefcharset

This can be used to define the default character set specifically for email messages which don't specify it. This is mainly useful for readpst (libpst) dumps, which are utf-8 but do not say so.

localfields

This allows setting fields for all documents under a given directory. Typical usage would be to set an "rclaptg" field, to be used in mimeview to select a specific viewer. If several fields are to be set, they should be separated with a semi-colon (';') character, which there is currently no way to escape. Also note the initial semi-colon. Example: localfields= ;rclaptg=gnus;other = val, then select specifier viewer with mimetype|tag=... in mimeview.

testmodifusemtime

If true, use mtime instead of default ctime to determine if a file has been modified (in addition to size, which is always used). Setting this can reduce re-indexing on systems where extended attributes are modified (by some other application), but not indexed (changing extended attributes only affects ctime). Notes:

  • This may prevent detection of change in some marginal file rename cases (the target would need to have the same size and mtime).

  • You should probably also set noxattrfields to 1 in this case, except if you still prefer to perform xattr indexing, for example if the local file update pattern makes it of value (as in general, there is a risk for pure extended attributes updates without file modification to go undetected).

Perform a full index reset after changing the value of this parameter.

noxattrfields

Recoll versions 1.19 and later automatically translate file extended attributes into document fields (to be processed according to the parameters from the fields file). Setting this variable to 1 will disable the behaviour.

metadatacmds

This allows executing external commands for each file and storing the output in Recoll document fields. This could be used for example to index external tag data. The value is a list of field names and commands, don't forget an initial semi-colon. Example:

[/some/area/of/the/fs]
metadatacmds = ; tags = tmsu tags %f; otherfield = somecmd -xx %f
                

As a specially disgusting hack brought by Recoll 1.19.7, if a "field name" begins with rclmulti, the data returned by the command is expected to contain multiple field values, in configuration file format. This allows setting several fields by executing a single command. Example:

metadatacmds = ; rclmulti1 = somecmd %f
                

If somecmd returns data in the form of:

field1 = value1
field2 = value for field2
                

field1 and field2 will be set inside the document metadata.

5.4.2.3. Parameters affecting where and how we store things:

dbdir

The name of the Xapian data directory. It will be created if needed when the index is initialized. If this is not an absolute path, it will be interpreted relative to the configuration directory. The value can have embedded spaces but starting or trailing spaces will be trimmed. You cannot use quotes here.

idxstatusfile

The name of the scratch file where the indexer process updates its status. Default: idxstatus.txt inside the configuration directory.

maxfsoccuppc

Maximum file system occupation before we stop indexing. The value is a percentage, corresponding to what the "Capacity" df output column shows. The default value is 0, meaning no checking.

mboxcachedir

The directory where mbox message offsets cache files are held. This is normally $RECOLL_CONFDIR/mboxcache, but it may be useful to share a directory between different configurations.

mboxcacheminmbs

The minimum mbox file size over which we cache the offsets. There is really no sense in caching offsets for small files. The default is 5 MB.

webcachedir

This is only used by the web browser plugin indexing code, and defines where the cache for visited pages will live. Default: $RECOLL_CONFDIR/webcache

webcachemaxmbs

This is only used by the web browser plugin indexing code, and defines the maximum size for the web page cache. Default: 40 MB. Quite unfortunately, this is only taken into account when creating the cache file. You need to delete the file for a change to be taken into account.

idxflushmb

Threshold (megabytes of new text data) where we flush from memory to disk index. Setting this can help control memory usage. A value of 0 means no explicit flushing, letting Xapian use its own default, which is flushing every 10000 (or XAPIAN_FLUSH_THRESHOLD) documents, which gives little memory usage control, as memory usage also depends on average document size. The default value is 10, and it is probably a bit low. If your system usually has free memory, you can try higher values between 20 and 80. In my experience, values beyond 100 are always counterproductive.

5.4.2.4. Parameters affecting multithread processing

The Recoll indexing process recollindex can use multiple threads to speed up indexing on multiprocessor systems. The work done to index files is divided in several stages and some of the stages can be executed by multiple threads. The stages are:

  1. File system walking: this is always performed by the main thread.
  2. File conversion and data extraction.
  3. Text processing (splitting, stemming, etc.)
  4. Xapian index update.

You can also read a longer document about the transformation of Recoll indexing to multithreading.

The threads configuration is controlled by two configuration file parameters.

thrQSizes

This variable defines the job input queues configuration. There are three possible queues for stages 2, 3 and 4, and this parameter should give the queue depth for each stage (three integer values). If a value of -1 is used for a given stage, no queue is used, and the thread will go on performing the next stage. In practise, deep queues have not been shown to increase performance. A value of 0 for the first queue tells Recoll to perform autoconfiguration (no need for the two other values in this case) - this is the default configuration.

thrTCounts

This defines the number of threads used for each stage. If a value of -1 is used for one of the queue depths, the corresponding thread count is ignored. It makes no sense to use a value other than 1 for the last stage because updating the Xapian index is necessarily single-threaded (and protected by a mutex).

The following example would use three queues (of depth 2), and 4 threads for converting source documents, 2 for processing their text, and one to update the index. This was tested to be the best configuration on the test system (quadri-processor with multiple disks).

thrQSizes = 2 2 2
thrTCounts =  4 2 1

The following example would use a single queue, and the complete processing for each document would be performed by a single thread (several documents will still be processed in parallel in most cases). The threads will use mutual exclusion when entering the index update stage. In practise the performance would be close to the precedent case in general, but worse in certain cases (e.g. a Zip archive would be performed purely sequentially), so the previous approach is preferred. YMMV... The 2 last values for thrTCounts are ignored.

thrQSizes = 2 -1 -1
thrTCounts =  6 1 1

The following example would disable multithreading. Indexing will be performed by a single thread.

thrQSizes = -1 -1 -1

5.4.2.5. Miscellaneous parameters:

autodiacsens

IF the index is not stripped, decide if we automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity. Default is no.

autocasesens

IF the index is not stripped, decide if we automatically trigger character case sensitivity if the search term has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity. Default is yes.

loglevel,daemloglevel

Verbosity level for recoll and recollindex. A value of 4 lists quite a lot of debug/information messages. 2 only lists errors. The daemversion is specific to the indexing monitor daemon.

logfilename, daemlogfilename

Where the messages should go. 'stderr' can be used as a special value, and is the default. The daemversion is specific to the indexing monitor daemon.

checkneedretryindexscript

This defines the name for a command executed by recollindex when starting indexing. If the exit status of the command is 0, recollindex retries to index all files which previously could not be indexed because of data extraction errors. The default value is a script which checks if any of the common bin directories have changed (indicating that a helper program may have been installed).

mondelaypatterns

This allows specify wildcard path patterns (processed with fnmatch(3) with 0 flag), to match files which change too often and for which a delay should be observed before re-indexing. This is a space-separated list, each entry being a pattern and a time in seconds, separated by a colon. You can use double quotes if a path entry contains white space. Example:

mondelaypatterns = *.log:20 "this one has spaces*:10"
              
monixinterval

Minimum interval (seconds) for processing the indexing queue. The real time monitor does not process each event when it comes in, but will wait this time for the queue to accumulate to diminish overhead and in order to aggregate multiple events to the same file. Default 30 S.

monauxinterval

Period (in seconds) at which the real time monitor will regenerate the auxiliary databases (spelling, stemming) if needed. The default is one hour.

monioniceclass, monioniceclassdata

These allow defining the ionice class and data used by the indexer (default class 3, no data).

filtermaxseconds

Maximum handler execution time, after which it is aborted. Some postscript programs just loop...

filtermaxmbytes

Recoll 1.20.7 and later. Maximum handler memory utilisation. This uses setrlimit(RLIMIT_AS) on most systems (total virtual memory space size limit). Some programs may start with 500 MBytes of mapped shared libraries, so take this into account when choosing a value. The default is a liberal 2000MB.

filtersdir

A directory to search for the external input handler scripts used to index some types of files. The value should not be changed, except if you want to modify one of the default scripts. The value can be redefined for any sub-directory.

iconsdir

The name of the directory where recoll result list icons are stored. You can change this if you want different images.

idxabsmlen

Recoll stores an abstract for each indexed file inside the database. The text can come from an actual 'abstract' section in the document or will just be the beginning of the document. It is stored in the index so that it can be displayed inside the result lists without decoding the original file. The idxabsmlen parameter defines the size of the stored abstract. The default value is 250 bytes. The search interface gives you the choice to display this stored text or a synthetic abstract built by extracting text around the search terms. If you always prefer the synthetic abstract, you can reduce this value and save a little space.

idxmetastoredlen

Maximum stored length for metadata fields. This does not affect indexing (the whole field is processed anyway), just the amount of data stored in the index for the purpose of displaying fields inside result lists or previews. The default value is 150 bytes which may be too low if you have custom fields.

aspellLanguage

Language definitions to use when creating the aspell dictionary. The value must match a set of aspell language definition files. You can type "aspell config" to see where these are installed (look for data-dir). The default if the variable is not set is to use your desktop national language environment to guess the value.

noaspell

If this is set, the aspell dictionary generation is turned off. Useful for cases where you don't need the functionality or when it is unusable because aspell crashes during dictionary generation.

mhmboxquirks

This allows definining location-related quirks for the mailbox handler. Currently only the tbird flag is defined, and it should be set for directories which hold Thunderbird data, as their folder format is weird.

5.4.3. The fields file

This file contains information about dynamic fields handling in Recoll. Some very basic fields have hard-wired behaviour, and, mostly, you should not change the original data inside the fields file. But you can create custom fields fitting your data and handle them just like they were native ones.

The fields file has several sections, which each define an aspect of fields processing. Quite often, you'll have to modify several sections to obtain the desired behaviour.

We will only give a short description here, you should refer to the comments inside the default file for more detailed information.

Field names should be lowercase alphabetic ASCII.

[prefixes]

A field becomes indexed (searchable) by having a prefix defined in this section.

[stored]

A field becomes stored (displayable inside results) by having its name listed in this section (typically with an empty value).

[aliases]

This section defines lists of synonyms for the canonical names used inside the [prefixes] and [stored] sections

[queryaliases]

This section also defines aliases for the canonic field names, with the difference that the substitution will only be used at query time, avoiding any possibility that the value would pick-up random metadata from documents.

handler-specific sections

Some input handlers may need specific configuration for handling fields. Only the email message handler currently has such a section (named [mail]). It allows indexing arbitrary email headers in addition to the ones indexed by default. Other such sections may appear in the future.

Here follows a small example of a personal fields file. This would extract a specific email header and use it as a searchable field, with data displayable inside result lists. (Side note: as the email handler does no decoding on the values, only plain ascii headers can be indexed, and only the first occurrence will be used for headers that occur several times).

[prefixes]
# Index mailmytag contents (with the given prefix)
mailmytag = XMTAG

[stored]
# Store mailmytag inside the document data record (so that it can be
# displayed - as %(mailmytag) - in result lists).
mailmytag = 

[queryaliases]
filename = fn
containerfilename = cfn

[mail]
# Extract the X-My-Tag mail header, and use it internally with the
# mailmytag field name
x-my-tag = mailmytag

5.4.3.1. Extended attributes in the fields file

Recoll versions 1.19 and later process user extended file attributes as documents fields by default.

Attributes are processed as fields of the same name, after removing the user prefix on Linux.

The [xattrtofields] section of the fields file allows specifying translations from extended attributes names to Recoll field names. An empty translation disables use of the corresponding attribute data.

5.4.4. The mimemap file

mimemap specifies the file name extension to MIME type mappings.

For file names without an extension, or with an unknown one, the system's file -i command will be executed to determine the MIME type (this can be switched off inside the main configuration file).

The mappings can be specified on a per-subtree basis, which may be useful in some cases. Example: gaim logs have a .txt extension but should be handled specially, which is possible because they are usually all located in one place.

The recoll_noindex mimemap variable has been moved to recoll.conf and renamed to noContentSuffixes, while keeping the same function, as of Recoll version 1.21. For older Recoll versions, see the documentation for noContentSuffixes but use recoll_noindex in mimemap.

5.4.5. The mimeconf file

mimeconf specifies how the different MIME types are handled for indexing, and which icons are displayed in the recoll result lists.

Changing the parameters in the [index] section is probably not a good idea except if you are a Recoll developer.

The [icons] section allows you to change the icons which are displayed by recoll in the result lists (the values are the basenames of the png images inside the iconsdir directory (specified in recoll.conf).

5.4.6. The mimeview file

mimeview specifies which programs are started when you click on an Open link in a result list. Ie: HTML is normally displayed using firefox, but you may prefer Konqueror, your openoffice.org program might be named oofice instead of openoffice etc.

Changes to this file can be done by direct editing, or through the recoll GUI preferences dialog.

If Use desktop preferences to choose document editor is checked in the Recoll GUI preferences, all mimeview entries will be ignored except the one labelled application/x-all (which is set to use xdg-open by default).

In this case, the xallexcepts top level variable defines a list of MIME type exceptions which will be processed according to the local entries instead of being passed to the desktop. This is so that specific Recoll options such as a page number or a search string can be passed to applications that support them, such as the evince viewer.

As for the other configuration files, the normal usage is to have a mimeview inside your own configuration directory, with just the non-default entries, which will override those from the central configuration file.

All viewer definition entries must be placed under a [view] section.

The keys in the file are normally MIME types. You can add an application tag to specialize the choice for an area of the filesystem (using a localfields specification in mimeconf). The syntax for the key is mimetype|tag

The nouncompforviewmts entry, (placed at the top level, outside of the [view] section), holds a list of MIME types that should not be uncompressed before starting the viewer (if they are found compressed, ie: mydoc.doc.gz).

The right side of each assignment holds a command to be executed for opening the file. The following substitutions are performed:

  • %D. Document date

  • %f. File name. This may be the name of a temporary file if it was necessary to create one (ie: to extract a subdocument from a container).

  • %i. Internal path, for subdocuments of containers. The format depends on the container type. If this appears in the command line, Recoll will not create a temporary file to extract the subdocument, expecting the called application (possibly a script) to be able to handle it.

  • %M. MIME type

  • %p. Page index. Only significant for a subset of document types, currently only PDF, Postscript and DVI files. Can be used to start the editor at the right page for a match or snippet.

  • %s. Search term. The value will only be set for documents with indexed page numbers (ie: PDF). The value will be one of the matched search terms. It would allow pre-setting the value in the "Find" entry inside Evince for example, for easy highlighting of the term.

  • %u. Url.

In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for the document. This could be used in combination with field customisation to help with opening the document.

5.4.7. The ptrans file

ptrans specifies query-time path translations. These can be useful in multiple cases.

The file has a section for any index which needs translations, either the main one or additional query indexes. The sections are named with the Xapian index directory names. No slash character should exist at the end of the paths (all comparisons are textual). An exemple should make things sufficiently clear

          [/home/me/.recoll/xapiandb]
          /this/directory/moved = /to/this/place

          [/path/to/additional/xapiandb]
          /server/volume1/docdir = /net/server/volume1/docdir
          /server/volume2/docdir = /net/server/volume2/docdir
        

5.4.8. Examples of configuration adjustments

5.4.8.1. Adding an external viewer for an non-indexed type

Imagine that you have some kind of file which does not have indexable content, but for which you would like to have a functional Open link in the result list (when found by file name). The file names end in .blob and can be displayed by application blobviewer.

You need two entries in the configuration files for this to work:

  • In $RECOLL_CONFDIR/mimemap (typically ~/.recoll/mimemap), add the following line:

    .blob = application/x-blobapp
    

    Note that the MIME type is made up here, and you could call it diesel/oil just the same.

  • In $RECOLL_CONFDIR/mimeview under the [view] section, add:

    application/x-blobapp = blobviewer %f
    

    We are supposing that blobviewer wants a file name parameter here, you would use %u if it liked URLs better.

If you just wanted to change the application used by Recoll to display a MIME type which it already knows, you would just need to edit mimeview. The entries you add in your personal file override those in the central configuration, which you do not need to alter. mimeview can also be modified from the Gui.

5.4.8.2. Adding indexing support for a new file type

Let us now imagine that the above .blob files actually contain indexable text and that you know how to extract it with a command line program. Getting Recoll to index the files is easy. You need to perform the above alteration, and also to add data to the mimeconf file (typically in ~/.recoll/mimeconf):

  • Under the [index] section, add the following line (more about the rclblob indexing script later):

    application/x-blobapp = exec rclblob
    
  • Under the [icons] section, you should choose an icon to be displayed for the files inside the result lists. Icons are normally 64x64 pixels PNG files which live in /usr/[local/]share/recoll/images.

  • Under the [categories] section, you should add the MIME type where it makes sense (you can also create a category). Categories may be used for filtering in advanced search.

The rclblob handler should be an executable program or script which exists inside /usr/[local/]share/recoll/filters. It will be given a file name as argument and should output the text or html contents on the standard output.

The filter programming section describes in more detail how to write an input handler.

recoll-1.21.5/doc/user/RCL.SEARCH.html0000644000175000017500000024423012603157603016367 0ustar dockesdockesChapter3.Searching

Chapter3.Searching

3.1.Searching with the Qt graphical user interface

The recoll program provides the main user interface for searching. It is based on the Qt library.

recoll has two search modes:

  • Simple search (the default, on the main screen) has a single entry field where you can enter multiple words.

  • Advanced search (a panel accessed through the Tools menu or the toolbox bar icon) has multiple entry fields, which you may use to build a logical condition, with additional filtering on file type, location in the file system, modification date, and size.

In most cases, you can enter the terms as you think them, even if they contain embedded punctuation or other non-textual characters. For example, Recoll can handle things like email addresses, or arbitrary cut and paste from another text window, punctation and all.

The main case where you should enter text differently from how it is printed is for east-asian languages (Chinese, Japanese, Korean). Words composed of single or multiple characters should be entered separated by white space in this case (they would typically be printed without white space).

Some searches can be quite complex, and you may want to re-use them later, perhaps with some tweaking. Recoll versions 1.21 and later can save and restore searches, using XML files. See Saving and restoring queries.

3.1.1.Simple search

  1. Start the recoll program.

  2. Possibly choose a search mode: Any term, All terms, File name or Query language.

  3. Enter search term(s) in the text field at the top of the window.

  4. Click the Search button or hit the Enter key to start the search.

The initial default search mode is Query language. Without special directives, this will look for documents containing all of the search terms (the ones with more terms will get better scores), just like the All terms mode which will ignore such directives. Any term will search for documents where at least one of the terms appear.

The Query Language features are described in a separate section.

All search modes allow wildcards inside terms (*, ?, []). You may want to have a look at the section about wildcards for more information about this.

File name will specifically look for file names. The point of having a separate file name search is that wild card expansion can be performed more efficiently on a small subset of the index (allowing wild cards on the left of terms without excessive penality). Things to know:

  • White space in the entry should match white space in the file name, and is not treated specially.

  • The search is insensitive to character case and accents, independantly of the type of index.

  • An entry without any wild card character and not capitalized will be prepended and appended with '*' (ie: etc -> *etc*, but Etc -> etc).

  • If you have a big index (many files), excessively generic fragments may result in inefficient searches.

You can search for exact phrases (adjacent words in a given order) by enclosing the input inside double quotes. Ex: "virtual reality".

When using a stripped index, character case has no influence on search, except that you can disable stem expansion for any term by capitalizing it. Ie: a search for floor will also normally look for flooring, floored, etc., but a search for Floor will only look for floor, in any character case. Stemming can also be disabled globally in the preferences. When using a raw index, the rules are a bit more complicated.

Recoll remembers the last few searches that you performed. You can use the simple search text entry widget (a combobox) to recall them (click on the thing at the right of the text field). Please note, however, that only the search texts are remembered, not the mode (all/any/file name).

Typing Esc Space while entering a word in the simple search entry will open a window with possible completions for the word. The completions are extracted from the database.

Double-clicking on a word in the result list or a preview window will insert it into the simple search entry field.

You can cut and paste any text into an All terms or Any term search field, punctuation, newlines and all - except for wildcard characters (single ? characters are ok). Recoll will process it and produce a meaningful search. This is what most differentiates this mode from the Query Language mode, where you have to care about the syntax.

You can use the ToolsAdvanced search dialog for more complex searches.

3.1.2.The default result list

After starting a search, a list of results will instantly be displayed in the main list window.

By default, the document list is presented in order of relevance (how well the system estimates that the document matches the query). You can sort the result by ascending or descending date by using the vertical arrows in the toolbar.

Clicking on the Preview link for an entry will open an internal preview window for the document. Further Preview clicks for the same search will open tabs in the existing preview window. You can use Shift+Click to force the creation of another preview window, which may be useful to view the documents side by side. (You can also browse successive results in a single preview window by typing Shift+ArrowUp/Down in the window).

Clicking the Open link will start an external viewer for the document. By default, Recoll lets the desktop choose the appropriate application for most document types (there is a short list of exceptions, see further). If you prefer to completely customize the choice of applications, you can uncheck the Use desktop preferences option in the GUI preferences dialog, and click the Choose editor applications button to adjust the predefined Recoll choices. The tool accepts multiple selections of MIME types (e.g. to set up the editor for the dozens of office file types).

Even when Use desktop preferences is checked, there is a small list of exceptions, for MIME types where the Recoll choice should override the desktop one. These are applications which are well integrated with Recoll, especially evince for viewing PDF and Postscript files because of its support for opening the document at a specific page and passing a search string as an argument. Of course, you can edit the list (in the GUI preferences) if you would prefer to lose the functionality and use the standard desktop tool.

You may also change the choice of applications by editing the mimeview configuration file if you find this more convenient.

Each result entry also has a right-click menu with an Open With entry. This lets you choose an application from the list of those which registered with the desktop for the document MIME type.

The Preview and Open edit links may not be present for all entries, meaning that Recoll has no configured way to preview a given file type (which was indexed by name only), or no configured external editor for the file type. This can sometimes be adjusted simply by tweaking the mimemap and mimeview configuration files (the latter can be modified with the user preferences dialog).

The format of the result list entries is entirely configurable by using the preference dialog to edit an HTML fragment.

You can click on the Query details link at the top of the results page to see the query actually performed, after stem expansion and other processing.

Double-clicking on any word inside the result list or a preview window will insert it into the simple search text.

The result list is divided into pages (the size of which you can change in the preferences). Use the arrow buttons in the toolbar or the links at the bottom of the page to browse the results.

3.1.2.1.No results: the spelling suggestions

When a search yields no result, and if the aspell dictionary is configured, Recoll will try to check for misspellings among the query terms, and will propose lists of replacements. Clicking on one of the suggestions will replace the word and restart the search. You can hold any of the modifier keys (Ctrl, Shift, etc.) while clicking if you would rather stay on the suggestion screen because several terms need replacement.

3.1.2.2.The result list right-click menu

Apart from the preview and edit links, you can display a pop-up menu by right-clicking over a paragraph in the result list. This menu has the following entries:

  • Preview

  • Open

  • Open With

  • Run Script

  • Copy File Name

  • Copy Url

  • Save to File

  • Find similar

  • Preview Parent document

  • Open Parent document

  • Open Snippets Window

The Preview and Open entries do the same thing as the corresponding links.

Open With lets you open the document with one of the applications claiming to be able to handle its MIME type (the information comes from the .desktop files in /usr/share/applications).

Run Script allows starting an arbitrary command on the result file. It will only appear for results which are top-level files. See further for a more detailed description.

The Copy File Name and Copy Url copy the relevant data to the clipboard, for later pasting.

Save to File allows saving the contents of a result document to a chosen file. This entry will only appear if the document does not correspond to an existing file, but is a subdocument inside such a file (ie: an email attachment). It is especially useful to extract attachments with no associated editor.

The Open/Preview Parent document entries allow working with the higher level document (e.g. the email message an attachment comes from). Recoll is sometimes not totally accurate as to what it can or can't do in this area. For example the Parent entry will also appear for an email which is part of an mbox folder file, but you can't actually visualize the mbox (there will be an error dialog if you try).

If the document is a top-level file, Open Parent will start the default file manager on the enclosing filesystem directory.

The Find similar entry will select a number of relevant term from the current document and enter them into the simple search field. You can then start a simple search, with a good chance of finding documents related to the current result. I can't remember a single instance where this function was actually useful to me...

The Open Snippets Window entry will only appear for documents which support page breaks (typically PDF, Postscript, DVI). The snippets window lists extracts from the document, taken around search terms occurrences, along with the corresponding page number, as links which can be used to start the native viewer on the appropriate page. If the viewer supports it, its search function will also be primed with one of the search terms.

3.1.3.The result table

In Recoll 1.15 and newer, the results can be displayed in spreadsheet-like fashion. You can switch to this presentation by clicking the table-like icon in the toolbar (this is a toggle, click again to restore the list).

Clicking on the column headers will allow sorting by the values in the column. You can click again to invert the order, and use the header right-click menu to reset sorting to the default relevance order (you can also use the sort-by-date arrows to do this).

Both the list and the table display the same underlying results. The sort order set from the table is still active if you switch back to the list mode. You can click twice on a date sort arrow to reset it from there.

The header right-click menu allows adding or deleting columns. The columns can be resized, and their order can be changed (by dragging). All the changes are recorded when you quit recoll

Hovering over a table row will update the detail area at the bottom of the window with the corresponding values. You can click the row to freeze the display. The bottom area is equivalent to a result list paragraph, with links for starting a preview or a native application, and an equivalent right-click menu. Typing Esc (the Escape key) will unfreeze the display.

3.1.4.Running arbitrary commands on result files (1.20 and later)

Apart from the Open and Open With operations, which allow starting an application on a result document (or a temporary copy), based on its MIME type, it is also possible to run arbitrary commands on results which are top-level files, using the Run Script entry in the results pop-up menu.

The commands which will appear in the Run Script submenu must be defined by .desktop files inside the scripts subdirectory of the current configuration directory.

Here follows an example of a .desktop file, which could be named for example, ~/.recoll/scripts/myscript.desktop (the exact file name inside the directory is irrelevant):

[Desktop Entry]
Type=Application
Name=MyFirstScript
Exec=/home/me/bin/tryscript %F
MimeType=*/*
      

The Name attribute defines the label which will appear inside the Run Script menu. The Exec attribute defines the program to be run, which does not need to actually be a script, of course. The MimeType attribute is not used, but needs to exist.

The commands defined this way can also be used from links inside the result paragraph.

As an example, it might make sense to write a script which would move the document to the trash and purge it from the Recoll index.

3.1.5.Displaying thumbnails

The default format for the result list entries and the detail area of the result table display an icon for each result document. The icon is either a generic one determined from the MIME type, or a thumbnail of the document appearance. Thumbnails are only displayed if found in the standard freedesktop location, where they would typically have been created by a file manager.

Recoll has no capability to create thumbnails. A relatively simple trick is to use the Open parent document/folder entry in the result list popup menu. This should open a file manager window on the containing directory, which should in turn create the thumbnails (depending on your settings). Restarting the search should then display the thumbnails.

There are also some pointers about thumbnail generation on the Recoll wiki.

3.1.6.The preview window

The preview window opens when you first click a Preview link inside the result list.

Subsequent preview requests for a given search open new tabs in the existing window (except if you hold the Shift key while clicking which will open a new window for side by side viewing).

Starting another search and requesting a preview will create a new preview window. The old one stays open until you close it.

You can close a preview tab by typing Ctrl-W (Ctrl + W) in the window. Closing the last tab for a window will also close the window.

Of course you can also close a preview window by using the window manager button in the top of the frame.

You can display successive or previous documents from the result list inside a preview tab by typing Shift+Down or Shift+Up (Down and Up are the arrow keys).

A right-click menu in the text area allows switching between displaying the main text or the contents of fields associated to the document (ie: author, abtract, etc.). This is especially useful in cases where the term match did not occur in the main text but in one of the fields. In the case of images, you can switch between three displays: the image itself, the image metadata as extracted by exiftool and the fields, which is the metadata stored in the index.

You can print the current preview window contents by typing Ctrl-P (Ctrl + P) in the window text.

3.1.6.1.Searching inside the preview

The preview window has an internal search capability, mostly controlled by the panel at the bottom of the window, which works in two modes: as a classical editor incremental search, where we look for the text entered in the entry zone, or as a way to walk the matches between the document and the Recoll query that found it.

Incremental text search

The preview tabs have an internal incremental search function. You initiate the search either by typing a / (slash) or CTL-F inside the text area or by clicking into the Search for: text field and entering the search string. You can then use the Next and Previous buttons to find the next/previous occurrence. You can also type F3 inside the text area to get to the next occurrence.

If you have a search string entered and you use Ctrl-Up/Ctrl-Down to browse the results, the search is initiated for each successive document. If the string is found, the cursor will be positioned at the first occurrence of the search string.

Walking the match lists

If the entry area is empty when you click the Next or Previous buttons, the editor will be scrolled to show the next match to any search term (the next highlighted zone). If you select a search group from the dropdown list and click Next or Previous, the match list for this group will be walked. This is not the same as a text search, because the occurences will include non-exact matches (as caused by stemming or wildcards). The search will revert to the text mode as soon as you edit the entry area.

3.1.7.The Query Fragments window

Selecting the ToolsQuery Fragments menu entry will open a window with radio- and check-buttons which can be used to activate query language fragments for filtering the current query. This can be useful if you have frequent reusable selectors, for example, filtering on alternate directories, or searching just one category of files, not covered by the standard category selectors.

The contents of the window are entirely customizable, and defined by the contents of the fragbuts.xml file inside the configuration directory. The sample file distributed with Recoll (which you should be able to find under /usr/share/recoll/examples/fragbuts.xml), contains an example which filters the results from the WEB history.

Here follows an example:

<?xml version="1.0" encoding="UTF-8"?>

<fragbuts version="1.0">

  <radiobuttons>

    <fragbut>
      <label>Include Web Results</label>
      <frag></frag>
    </fragbut>

    <fragbut>
      <label>Exclude Web Results</label>
      <frag>-rclbes:BGL</frag>
    </fragbut>

    <fragbut>
      <label>Only Web Results</label>
      <frag>rclbes:BGL</frag>
    </fragbut>

  </radiobuttons>

  <buttons>

    <fragbut>
      <label>Year 2010</label>
      <frag>date:2010-01-01/2010-12-31</frag>
    </fragbut>

    <fragbut>
      <label>My Great Directory Only</label>
      <frag>dir:/my/great/directory</frag>
    </fragbut>

  </buttons>
</fragbuts>

Each radiobuttons or buttons section defines a line of checkbuttons or radiobuttons inside the window. Any number of buttons can be selected, but the radiobuttons in a line are exclusive.

Each fragbut section defines the label for a button, and the Query Language fragment which will be added (as an AND filter) before performing the query if the button is active.

This feature is new in Recoll 1.20, and will probably be refined depending on user feedback.

3.1.8.Complex/advanced search

The advanced search dialog helps you build more complex queries without memorizing the search language constructs. It can be opened through the Tools menu or through the main toolbar.

Recoll keeps a history of searches. See Advanced search history.

The dialog has two tabs:

  1. The first tab lets you specify terms to search for, and permits specifying multiple clauses which are combined to build the search.

  2. The second tab lets filter the results according to file size, date of modification, MIME type, or location.

Click on the Start Search button in the advanced search dialog, or type Enter in any text field to start the search. The button in the main window always performs a simple search.

Click on the Show query details link at the top of the result page to see the query expansion.

3.1.8.1.Avanced search: the "find" tab

This part of the dialog lets you constructc a query by combining multiple clauses of different types. Each entry field is configurable for the following modes:

  • All terms.

  • Any term.

  • None of the terms.

  • Phrase (exact terms in order within an adjustable window).

  • Proximity (terms in any order within an adjustable window).

  • Filename search.

Additional entry fields can be created by clicking the Add clause button.

When searching, the non-empty clauses will be combined either with an AND or an OR conjunction, depending on the choice made on the left (All clauses or Any clause).

Entries of all types except "Phrase" and "Near" accept a mix of single words and phrases enclosed in double quotes. Stemming and wildcard expansion will be performed as for simple search.

Phrases and Proximity searches.These two clauses work in similar ways, with the difference that proximity searches do not impose an order on the words. In both cases, an adjustable number (slack) of non-matched words may be accepted between the searched ones (use the counter on the left to adjust this count). For phrases, the default count is zero (exact match). For proximity it is ten (meaning that two search terms, would be matched if found within a window of twelve words). Examples: a phrase search for quick fox with a slack of 0 will match quick fox but not quick brown fox. With a slack of 1 it will match the latter, but not fox quick. A proximity search for quick fox with the default slack will match the latter, and also a fox is a cunning and quick animal.

3.1.8.2.Avanced search: the "filter" tab

This part of the dialog has several sections which allow filtering the results of a search according to a number of criteria

  • The first section allows filtering by dates of last modification. You can specify both a minimum and a maximum date. The initial values are set according to the oldest and newest documents found in the index.

  • The next section allows filtering the results by file size. There are two entries for minimum and maximum size. Enter decimal numbers. You can use suffix multipliers: k/K, m/M, g/G, t/T for 1E3, 1E6, 1E9, 1E12 respectively.

  • The next section allows filtering the results by their MIME types, or MIME categories (ie: media/text/message/etc.).

    You can transfer the types between two boxes, to define which will be included or excluded by the search.

    The state of the file type selection can be saved as the default (the file type filter will not be activated at program start-up, but the lists will be in the restored state).

  • The bottom section allows restricting the search results to a sub-tree of the indexed area. You can use the Invert checkbox to search for files not in the sub-tree instead. If you use directory filtering often and on big subsets of the file system, you may think of setting up multiple indexes instead, as the performance may be better.

    You can use relative/partial paths for filtering. Ie, entering dirA/dirB would match either /dir1/dirA/dirB/myfile1 or /dir2/dirA/dirB/someother/myfile2.

3.1.8.3.Avanced search history

The advanced search tool memorizes the last 100 searches performed. You can walk the saved searches by using the up and down arrow keys while the keyboard focus belongs to the advanced search dialog.

The complex search history can be erased, along with the one for simple search, by selecting the FileErase Search History menu entry.

3.1.9.The term explorer tool

Recoll automatically manages the expansion of search terms to their derivatives (ie: plural/singular, verb inflections). But there are other cases where the exact search term is not known. For example, you may not remember the exact spelling, or only know the beginning of the name.

The search will only propose replacement terms with spelling variations when no matching document were found. In some cases, both proper spellings and mispellings are present in the index, and it may be interesting to look for them explicitely.

The term explorer tool (started from the toolbar icon or from the Term explorer entry of the Tools menu) can be used to search the full index terms list. It has three modes of operations:

Wildcard

In this mode of operation, you can enter a search string with shell-like wildcards (*, ?, []). ie: xapi* would display all index terms beginning with xapi. (More about wildcards here).

Regular expression

This mode will accept a regular expression as input. Example: word[0-9]+. The expression is implicitely anchored at the beginning. Ie: press will match pression but not expression. You can use .*press to match the latter, but be aware that this will cause a full index term list scan, which can be quite long.

Stem expansion

This mode will perform the usual stem expansion normally done as part user input processing. As such it is probably mostly useful to demonstrate the process.

Spelling/Phonetic

In this mode, you enter the term as you think it is spelled, and Recoll will do its best to find index terms that sound like your entry. This mode uses the Aspell spelling application, which must be installed on your system for things to work (if your documents contain non-ascii characters, Recoll needs an aspell version newer than 0.60 for UTF-8 support). The language which is used to build the dictionary out of the index terms (which is done at the end of an indexing pass) is the one defined by your NLS environment. Weird things will probably happen if languages are mixed up.

Note that in cases where Recoll does not know the beginning of the string to search for (ie a wildcard expression like *coll), the expansion can take quite a long time because the full index term list will have to be processed. The expansion is currently limited at 10000 results for wildcards and regular expressions. It is possible to change the limit in the configuration file.

Double-clicking on a term in the result list will insert it into the simple search entry field. You can also cut/paste between the result list and any entry field (the end of lines will be taken care of).

3.1.10.Multiple indexes

See the section describing the use of multiple indexes for generalities. Only the aspects concerning the recoll GUI are described here.

A recoll program instance is always associated with a specific index, which is the one to be updated when requested from the File menu, but it can use any number of Recoll indexes for searching. The external indexes can be selected through the external indexes tab in the preferences dialog.

Index selection is performed in two phases. A set of all usable indexes must first be defined, and then the subset of indexes to be used for searching. These parameters are retained across program executions (there are kept separately for each Recoll configuration). The set of all indexes is usually quite stable, while the active ones might typically be adjusted quite frequently.

The main index (defined by RECOLL_CONFDIR) is always active. If this is undesirable, you can set up your base configuration to index an empty directory.

When adding a new index to the set, you can select either a Recoll configuration directory, or directly a Xapian index directory. In the first case, the Xapian index directory will be obtained from the selected configuration.

As building the set of all indexes can be a little tedious when done through the user interface, you can use the RECOLL_EXTRA_DBS environment variable to provide an initial set. This might typically be set up by a system administrator so that every user does not have to do it. The variable should define a colon-separated list of index directories, ie:

export RECOLL_EXTRA_DBS=/some/place/xapiandb:/some/other/db

Another environment variable, RECOLL_ACTIVE_EXTRA_DBS allows adding to the active list of indexes. This variable was suggested and implemented by a Recoll user. It is mostly useful if you use scripts to mount external volumes with Recoll indexes. By using RECOLL_EXTRA_DBS and RECOLL_ACTIVE_EXTRA_DBS, you can add and activate the index for the mounted volume when starting recoll.

RECOLL_ACTIVE_EXTRA_DBS is available for Recoll versions 1.17.2 and later. A change was made in the same update so that recoll will automatically deactivate unreachable indexes when starting up.

3.1.11.Document history

Documents that you actually view (with the internal preview or an external tool) are entered into the document history, which is remembered.

You can display the history list by using the Tools/Doc History menu entry.

You can erase the document history by using the Erase document history entry in the File menu.

3.1.12.Sorting search results and collapsing duplicates

The documents in a result list are normally sorted in order of relevance. It is possible to specify a different sort order, either by using the vertical arrows in the GUI toolbox to sort by date, or switching to the result table display and clicking on any header. The sort order chosen inside the result table remains active if you switch back to the result list, until you click one of the vertical arrows, until both are unchecked (you are back to sort by relevance).

Sort parameters are remembered between program invocations, but result sorting is normally always inactive when the program starts. It is possible to keep the sorting activation state between program invocations by checking the Remember sort activation state option in the preferences.

It is also possible to hide duplicate entries inside the result list (documents with the exact same contents as the displayed one). The test of identity is based on an MD5 hash of the document container, not only of the text contents (so that ie, a text document with an image added will not be a duplicate of the text only). Duplicates hiding is controlled by an entry in the GUI configuration dialog, and is off by default.

As of release 1.19, when a result document does have undisplayed duplicates, a Dups link will be shown with the result list entry. Clicking the link will display the paths (URLs + ipaths) for the duplicate entries.

3.1.13.Search tips, shortcuts

3.1.13.1.Terms and search expansion

Term completion.Typing Esc Space in the simple search entry field while entering a word will either complete the current word if its beginning matches a unique term in the index, or open a window to propose a list of completions.

Picking up new terms from result or preview text.Double-clicking on a word in the result list or in a preview window will copy it to the simple search entry field.

Wildcards.Wildcards can be used inside search terms in all forms of searches. More about wildcards.

Automatic suffixes.Words like odt or ods can be automatically turned into query language ext:xxx clauses. This can be enabled in the Search preferences panel in the GUI.

Disabling stem expansion.Entering a capitalized word in any search field will prevent stem expansion (no search for gardening if you enter Garden instead of garden). This is the only case where character case should make a difference for a Recoll search. You can also disable stem expansion or change the stemming language in the preferences.

Finding related documents.Selecting the Find similar documents entry in the result list paragraph right-click menu will select a set of "interesting" terms from the current result, and insert them into the simple search entry field. You can then possibly edit the list and start a search to find documents which may be apparented to the current result.

File names.File names are added as terms during indexing, and you can specify them as ordinary terms in normal search fields (Recoll used to index all directories in the file path as terms. This has been abandoned as it did not seem really useful). Alternatively, you can use the specific file name search which will only look for file names, and may be faster than the generic search especially when using wildcards.

3.1.13.2.Working with phrases and proximity

Phrases and Proximity searches.A phrase can be looked for by enclosing it in double quotes. Example: "user manual" will look only for occurrences of user immediately followed by manual. You can use the This phrase field of the advanced search dialog to the same effect. Phrases can be entered along simple terms in all simple or advanced search entry fields (except This exact phrase).

AutoPhrases.This option can be set in the preferences dialog. If it is set, a phrase will be automatically built and added to simple searches when looking for Any terms. This will not change radically the results, but will give a relevance boost to the results where the search terms appear as a phrase. Ie: searching for virtual reality will still find all documents where either virtual or reality or both appear, but those which contain virtual reality should appear sooner in the list.

Phrase searches can strongly slow down a query if most of the terms in the phrase are common. This is why the autophrase option is off by default for Recoll versions before 1.17. As of version 1.17, autophrase is on by default, but very common terms will be removed from the constructed phrase. The removal threshold can be adjusted from the search preferences.

Phrases and abbreviations.As of Recoll version 1.17, dotted abbreviations like I.B.M. are also automatically indexed as a word without the dots: IBM. Searching for the word inside a phrase (ie: "the IBM company") will only match the dotted abrreviation if you increase the phrase slack (using the advanced search panel control, or the o query language modifier). Literal occurences of the word will be matched normally.

3.1.13.3.Others

Using fields.You can use the query language and field specifications to only search certain parts of documents. This can be especially helpful with email, for example only searching emails from a specific originator: search tips from:helpfulgui

Ajusting the result table columns.When displaying results in table mode, you can use a right click on the table headers to activate a pop-up menu which will let you adjust what columns are displayed. You can drag the column headers to adjust their order. You can click them to sort by the field displayed in the column. You can also save the result list in CSV format.

Changing the GUI geometry.It is possible to configure the GUI in wide form factor by dragging the toolbars to one of the sides (their location is remembered between sessions), and moving the category filters to a menu (can be set in the PreferencesGUI configurationUser interface panel).

Query explanation.You can get an exact description of what the query looked for, including stem expansion, and Boolean operators used, by clicking on the result list header.

Advanced search history.As of Recoll 1.18, you can display any of the last 100 complex searches performed by using the up and down arrow keys while the advanced search panel is active.

Browsing the result list inside a preview window.Entering Shift-Down or Shift-Up (Shift + an arrow key) in a preview window will display the next or the previous document from the result list. Any secondary search currently active will be executed on the new document.

Scrolling the result list from the keyboard.You can use PageUp and PageDown to scroll the result list, Shift+Home to go back to the first page. These work even while the focus is in the search entry.

Result table: moving the focus to the table.You can use Ctrl-r to move the focus from the search entry to the table, and then use the arrow keys to change the current row. Ctrl-Shift-s returns to the search.

Result table: open / preview.With the focus in the result table, you can use Ctrl-o to open the document from the current row, Ctrl-Shift-o to open the document and close recoll, Ctrl-d to preview the document.

Editing a new search while the focus is not in the search entry.You can use the Ctrl-Shift-S shortcut to return the cursor to the search entry (and select the current search text), while the focus is anywhere in the main window.

Forced opening of a preview window.You can use Shift+Click on a result list Preview link to force the creation of a preview window instead of a new tab in the existing one.

Closing previews.Entering Ctrl-W in a tab will close it (and, for the last tab, close the preview window). Entering Esc will close the preview window and all its tabs.

Printing previews.Entering Ctrl-P in a preview window will print the currently displayed text.

Quitting.Entering Ctrl-Q almost anywhere will close the application.

3.1.14.Saving and restoring queries (1.21 and later)

Both simple and advanced query dialogs save recent history, but the amount is limited: old queries will eventually be forgotten. Also, important queries may be difficult to find among others. This is why both types of queries can also be explicitely saved to files, from the GUI menus: FileSave last query / Load last query

The default location for saved queries is a subdirectory of the current configuration directory, but saved queries are ordinary files and can be written or moved anywhere.

Some of the saved query parameters are part of the preferences (e.g. autophrase or the active external indexes), and may differ when the query is loaded from the time it was saved. In this case, Recoll will warn of the differences, but will not change the user preferences.

3.1.15.Customizing the search interface

You can customize some aspects of the search interface by using the GUI configuration entry in the Preferences menu.

There are several tabs in the dialog, dealing with the interface itself, the parameters used for searching and returning results, and what indexes are searched.

User interface parameters:

  • Highlight color for query terms: Terms from the user query are highlighted in the result list samples and the preview window. The color can be chosen here. Any Qt color string should work (ie red, #ff0000). The default is blue.

  • Style sheet: The name of a Qt style sheet text file which is applied to the whole Recoll application on startup. The default value is empty, but there is a skeleton style sheet (recoll.qss) inside the /usr/share/recoll/examples directory. Using a style sheet, you can change most recoll graphical parameters: colors, fonts, etc. See the sample file for a few simple examples.

    You should be aware that parameters (e.g.: the background color) set inside the Recoll GUI style sheet will override global system preferences, with possible strange side effects: for example if you set the foreground to a light color and the background to a dark one in the desktop preferences, but only the background is set inside the Recoll style sheet, and it is light too, then text will appear light-on-light inside the Recoll GUI.

  • Maximum text size highlighted for preview Inserting highlights on search term inside the text before inserting it in the preview window involves quite a lot of processing, and can be disabled over the given text size to speed up loading.

  • Prefer HTML to plain text for preview if set, Recoll will display HTML as such inside the preview window. If this causes problems with the Qt HTML display, you can uncheck it to display the plain text version instead.

  • Plain text to HTML line style: when displaying plain text inside the preview window, Recoll tries to preserve some of the original text line breaks and indentation. It can either use PRE HTML tags, which will well preserve the indentation but will force horizontal scrolling for long lines, or use BR tags to break at the original line breaks, which will let the editor introduce other line breaks according to the window width, but will lose some of the original indentation. The third option has been available in recent releases and is probably now the best one: use PRE tags with line wrapping.

  • Choose editor applicationsr: this opens a dialog which allows you to select the application to be used to open each MIME type. The default is nornally to use the xdg-open utility, but you can override it.

  • Exceptions: even wen xdg-open is used by default for opening documents, you can set exceptions for MIME types that will still be opened according to Recoll preferences. This is useful for passing parameters like page numbers or search strings to applications that support them (e.g. evince). This cannot be done with xdg-open which only supports passing one parameter.

  • Document filter choice style: this will let you choose if the document categories are displayed as a list or a set of buttons, or a menu.

  • Start with simple search mode: this lets you choose the value of the simple search type on program startup. Either a fixed value (e.g. Query Language, or the value in use when the program last exited.

  • Auto-start simple search on white space entry: if this is checked, a search will be executed each time you enter a space in the simple search input field. This lets you look at the result list as you enter new terms. This is off by default, you may like it or not...

  • Start with advanced search dialog open : If you use this dialog frequently, checking the entries will get it to open when recoll starts.

  • Remember sort activation state if set, Recoll will remember the sort tool stat between invocations. It normally starts with sorting disabled.

Result list parameters:

  • Number of results in a result page

  • Result list font: There is quite a lot of information shown in the result list, and you may want to customize the font and/or font size. The rest of the fonts used by Recoll are determined by your generic Qt config (try the qtconfig command).

  • Edit result list paragraph format string: allows you to change the presentation of each result list entry. See the result list customisation section.

  • Edit result page HTML header insert: allows you to define text inserted at the end of the result page HTML header. More detail in the result list customisation section.

  • Date format: allows specifying the format used for displaying dates inside the result list. This should be specified as an strftime() string (man strftime).

  • Abstract snippet separator: for synthetic abstracts built from index data, which are usually made of several snippets from different parts of the document, this defines the snippet separator, an ellipsis by default.

Search parameters:

  • Hide duplicate results: decides if result list entries are shown for identical documents found in different places.

  • Stemming language: stemming obviously depends on the document's language. This listbox will let you chose among the stemming databases which were built during indexing (this is set in the main configuration file), or later added with recollindex -s (See the recollindex manual). Stemming languages which are dynamically added will be deleted at the next indexing pass unless they are also added in the configuration file.

  • Automatically add phrase to simple searches: a phrase will be automatically built and added to simple searches when looking for Any terms. This will give a relevance boost to the results where the search terms appear as a phrase (consecutive and in order).

  • Autophrase term frequency threshold percentage: very frequent terms should not be included in automatic phrase searches for performance reasons. The parameter defines the cutoff percentage (percentage of the documents where the term appears).

  • Replace abstracts from documents: this decides if we should synthesize and display an abstract in place of an explicit abstract found within the document itself.

  • Dynamically build abstracts: this decides if Recoll tries to build document abstracts (lists of snippets) when displaying the result list. Abstracts are constructed by taking context from the document information, around the search terms.

  • Synthetic abstract size: adjust to taste...

  • Synthetic abstract context words: how many words should be displayed around each term occurrence.

  • Query language magic file name suffixes: a list of words which automatically get turned into ext:xxx file name suffix clauses when starting a query language query (ie: doc xls xlsx...). This will save some typing for people who use file types a lot when querying.

External indexes:This panel will let you browse for additional indexes that you may want to search. External indexes are designated by their database directory (ie: /home/someothergui/.recoll/xapiandb, /usr/local/recollglobal/xapiandb).

Once entered, the indexes will appear in the External indexes list, and you can chose which ones you want to use at any moment by checking or unchecking their entries.

Your main database (the one the current configuration indexes to), is always implicitly active. If this is not desirable, you can set up your configuration so that it indexes, for example, an empty directory. An alternative indexer may also need to implement a way of purging the index from stale data,

3.1.15.1.The result list format

Newer versions of Recoll (from 1.17) normally use WebKit HTML widgets for the result list and the snippets window (this may be disabled at build time). Total customisation is possible with full support for CSS and Javascript. Conversely, there are limits to what you can do with the older Qt QTextBrowser, but still, it is possible to decide what data each result will contain, and how it will be displayed.

The result list presentation can be exhaustively customized by adjusting two elements:

  • The paragraph format

  • HTML code inside the header section. For versions 1.21 and later, this is also used for the snippets window

The paragraph format and the header fragment can be edited from the Result list tab of the GUI configuration.

The header fragment is used both for the result list and the snippets window. The snippets list is a table and has a snippets class attribute. Each paragraph in the result list is a table, with class respar, but this can be changed by editing the paragraph format.

There are a few examples on the page about customising the result list on the Recoll web site.

The paragraph format

This is an arbitrary HTML string where the following printf-like % substitutions will be performed:

  • %A.Abstract

  • %D.Date

  • %I.Icon image name. This is normally determined from the MIME type. The associations are defined inside the mimeconf configuration file. If a thumbnail for the file is found at the standard Freedesktop location, this will be displayed instead.

  • %K.Keywords (if any)

  • %L.Precooked Preview, Edit, and possibly Snippets links

  • %M.MIME type

  • %N.result Number inside the result page

  • %P.Parent folder Url. In the case of an embedded document, this is the parent folder for the top level container file.

  • %R.Relevance percentage

  • %S.Size information

  • %T.Title or Filename if not set.

  • %t.Title or Filename if not set.

  • %U.Url

The format of the Preview, Edit, and Snippets links is <a href="P%N">, <a href="E%N"> and <a href="A%N"> where docnum (%N) expands to the document number inside the result page).

A link target defined as "F%N" will open the document corresponding to the %P parent folder expansion, usually creating a file manager window on the folder where the container file resides. E.g.:

<a href="F%N">%P</a>

A link target defined as R%N|scriptname will run the corresponding script on the result file (if the document is embedded, the script will be started on the top-level parent). See the section about defining scripts.

In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for this document. Only stored fields can be accessed in this way, the value of indexed but not stored fields is not known at this point in the search process (see field configuration). There are currently very few fields stored by default, apart from the values above (only author and filename), so this feature will need some custom local configuration to be useful. An example candidate would be the recipient field which is generated by the message input handlers.

The default value for the paragraph format string is:

    "<table class=\"respar\">\n"
    "<tr>\n"
    "<td><a href='%U'><img src='%I' width='64'></a></td>\n"
    "<td>%L &nbsp;<i>%S</i> &nbsp;&nbsp;<b>%T</b><br>\n"
    "<span style='white-space:nowrap'><i>%M</i>&nbsp;%D</span>&nbsp;&nbsp;&nbsp; <i>%U</i>&nbsp;%i<br>\n"
    "%A %K</td>\n"
    "</tr></table>\n"

You may, for example, try the following for a more web-like experience:

<u><b><a href="P%N">%T</a></b></u><br>
%A<font color=#008000>%U - %S</font> - %L

Note that the P%N link in the above paragraph makes the title a preview link. Or the clean looking:

<img src="%I" align="left">%L <font color="#900000">%R</font>
&nbsp;&nbsp;<b>%T&</b><br>%S&nbsp;
<font color="#808080"><i>%U</i></font>
<table bgcolor="#e0e0e0">
<tr><td><div>%A</div></td></tr>
</table>%K

These samples, and some others are on the web site, with pictures to show how they look.

It is also possible to define the value of the snippet separator inside the abstract section.

recoll-1.21.5/doc/user/RCL.INDEXING.PERIODIC.html0000644000175000017500000002102112603157602020012 0ustar dockesdockes2.7.Periodic indexing

2.7.Periodic indexing

2.7.1.Running indexing

Indexing is always performed by the recollindex program, which can be started either from the command line or from the File menu in the recoll GUI program. When started from the GUI, the indexing will run on the same configuration recoll was started on. When started from the command line, recollindex will use the RECOLL_CONFDIR variable or accept a -c confdir option to specify a non-default configuration directory.

If the recoll program finds no index when it starts, it will automatically start indexing (except if canceled).

The recollindex indexing process can be interrupted by sending an interrupt (Ctrl-C, SIGINT) or terminate (SIGTERM) signal. Some time may elapse before the process exits, because it needs to properly flush and close the index. This can also be done from the recoll GUI FileStop Indexing menu entry.

After such an interruption, the index will be somewhat inconsistent because some operations which are normally performed at the end of the indexing pass will have been skipped (for example, the stemming and spelling databases will be inexistant or out of date). You just need to restart indexing at a later time to restore consistency. The indexing will restart at the interruption point (the full file tree will be traversed, but files that were indexed up to the interruption and for which the index is still up to date will not need to be reindexed).

recollindex has a number of other options which are described in its man page. Only a few will be described here.

Option -z will reset the index when starting. This is almost the same as destroying the index files (the nuance is that the Xapian format version will not be changed).

Option -Z will force the update of all documents without resetting the index first. This will not have the "clean start" aspect of -z, but the advantage is that the index will remain available for querying while it is rebuilt, which can be a significant advantage if it is very big (some installations need days for a full index rebuild).

Option -k will force retrying files which previously failed to be indexed, for example because of a missing helper program.

Of special interest also, maybe, are the -i and -f options. -i allows indexing an explicit list of files (given as command line parameters or read on stdin). -f tells recollindex to ignore file selection parameters from the configuration. Together, these options allow building a custom file selection process for some area of the file system, by adding the top directory to the skippedPaths list and using an appropriate file selection method to build the file list to be fed to recollindex -if. Trivial example:

	    find . -name indexable.txt -print | recollindex -if
	  

recollindex -i will not descend into subdirectories specified as parameters, but just add them as index entries. It is up to the external file selection method to build the complete file list.

2.7.2.Using cron to automate indexing

The most common way to set up indexing is to have a cron task execute it every night. For example the following crontab entry would do it every day at 3:30AM (supposing recollindex is in your PATH):

30 3 * * * recollindex > /some/tmp/dir/recolltrace 2>&1

Or, using anacron:

1  15  su mylogin -c "recollindex recollindex > /tmp/rcltraceme 2>&1"

As of version 1.17 the Recoll GUI has dialogs to manage crontab entries for recollindex. You can reach them from the PreferencesIndexing Schedule menu. They only work with the good old cron, and do not give access to all features of cron scheduling.

The usual command to edit your crontab is crontab -e (which will usually start the vi editor to edit the file). You may have more sophisticated tools available on your system.

Please be aware that there may be differences between your usual interactive command line environment and the one seen by crontab commands. Especially the PATH variable may be of concern. Please check the crontab manual pages about possible issues.

recoll-1.21.5/doc/user/RCL.SEARCH.ANCHORWILD.html0000644000175000017500000002051312603157603020014 0ustar dockesdockes3.7.Anchored searches and wildcards

3.7.Anchored searches and wildcards

Some special characters are interpreted by Recoll in search strings to expand or specialize the search. Wildcards expand a root term in controlled ways. Anchor characters can restrict a search to succeed only if the match is found at or near the beginning of the document or one of its fields.

3.7.1.More about wildcards

All words entered in Recoll search fields will be processed for wildcard expansion before the request is finally executed.

The wildcard characters are:

  • * which matches 0 or more characters.

  • ? which matches a single character.

  • [] which allow defining sets of characters to be matched (ex: [abc] matches a single character which may be 'a' or 'b' or 'c', [0-9] matches any number.

You should be aware of a few things when using wildcards.

  • Using a wildcard character at the beginning of a word can make for a slow search because Recoll will have to scan the whole index term list to find the matches. However, this is much less a problem for field searches, and queries like author:*@domain.com can sometimes be very useful.

  • For Recoll version 18 only, when working with a raw index (preserving character case and diacritics), the literal part of a wildcard expression will be matched exactly for case and diacritics. This is not true any more for versions 19 and later.

  • Using a * at the end of a word can produce more matches than you would think, and strange search results. You can use the term explorer tool to check what completions exist for a given term. You can also see exactly what search was performed by clicking on the link at the top of the result list. In general, for natural language terms, stem expansion will produce better results than an ending * (stem expansion is turned off when any wildcard character appears in the term).

3.7.1.1.Wildcards and path filtering

Due to the way that Recoll processes wildcards inside dir path filtering clauses, they will have a multiplicative effect on the query size. A clause containg wildcards in several paths elements, like, for example, dir:/home/me/*/*/docdir, will almost certainly fail if your indexed tree is of any realistic size.

Depending on the case, you may be able to work around the issue by specifying the paths elements more narrowly, with a constant prefix, or by using 2 separate dir: clauses instead of multiple wildcards, as in dir:/home/me dir:docdir. The latter query is not equivalent to the initial one because it does not specify a number of directory levels, but that's the best we can do (and it may be actually more useful in some cases).

3.7.2.Anchored searches

Two characters are used to specify that a search hit should occur at the beginning or at the end of the text. ^ at the beginning of a term or phrase constrains the search to happen at the start, $ at the end force it to happen at the end.

As this function is implemented as a phrase search it is possible to specify a maximum distance at which the hit should occur, either through the controls of the advanced search panel, or using the query language, for example, as in:

"^someterm"o10

which would force someterm to be found within 10 terms of the start of the text. This can be combined with a field search as in somefield:"^someterm"o10 or somefield:someterm$.

This feature can also be used with an actual phrase search, but in this case, the distance applies to the whole phrase and anchor, so that, for example, bla bla my unexpected term at the beginning of the text would be a match for "^my term"o5.

Anchored searches can be very useful for searches inside somewhat structured documents like scientific articles, in case explicit metadata has not been supplied (a most frequent case), for example for looking for matches inside the abstract or the list of authors (which occur at the top of the document).

recoll-1.21.5/doc/user/RCL.INDEXING.EXTTAGS.html0000644000175000017500000000447412603157602017750 0ustar dockesdockes2.6.Importing external tags

2.6.Importing external tags

During indexing, it is possible to import metadata for each file by executing commands. For example, this could extract user tag data for the file and store it in a field for indexing.

See the section about the metadatacmds field in the main configuration chapter for more detail.

recoll-1.21.5/doc/user/00README.txt0000644000175000017500000000247712602163537015762 0ustar dockesdockes= Building the Recoll user manual The Recoll user manual used to be written in DocBook SGML and used the FreeBSD doc toolchain to produce the output formats. This had the advantage of an easy way to produce all formats including a PDF manual, but presented two problems: - Dependancy on the FreeBSD platform. - No support for UTF-8 (last I looked), only latin1. The manual is now compatible with XML. There is a small script that converts the SGML (but XML-compatible) manual into XML (changes the header, mostly). The SGML version is still the primary one. Beyond fixing a few missing closing tags, the main change that had to be made was to make the anchors explicitly upper-case because the SGML toolchain converts them to upper-case and the XML one does not, so the only way to have compatibility is to make them upper-case in the first place. We initially had a problem for producing the PDF manual, which motivated keeping the SGML version for producing the PDF with the FreeBSD SGML toolchain. This problem is now solved with dblatex, so that the SGML version now has little reason to persist and it will go away at some point in the future. Asciidoc would also be a candidate as the source format, because it can easily produce docbook, so the future will probably be: asciidoc->docbook-xml-> html -> pdf recoll-1.21.5/doc/user/Makefile0000644000175000017500000000231712602163537015555 0ustar dockesdockes# Wherever docbook.xsl and chunk.xsl live # Fbsd #XSLDIR="/usr/local/share/xsl/docbook/" # Mac #XSLDIR="/opt/local/share/xsl/docbook-xsl/" #Linux XSLDIR="/usr/share/xml/docbook/stylesheet/docbook-xsl/" # Options common to the single-file and chunked versions commonoptions=--stringparam section.autolabel 1 \ --stringparam section.autolabel.max.depth 3 \ --stringparam section.label.includes.component.label 1 \ --stringparam autotoc.label.in.hyperlink 0 \ --stringparam abstract.notitle.enabled 1 \ --stringparam html.stylesheet docbook-xsl.css \ --stringparam generate.toc "book toc,title,figure,table,example,equation" all: usermanual.html index.html usermanual.pdf usermanual.html: usermanual.xml xsltproc ${commonoptions} \ -o tmpfile.html "${XSLDIR}/html/docbook.xsl" usermanual.xml -tidy -indent tmpfile.html > usermanual.html rm -f tmpfile.html index.html: usermanual.xml xsltproc ${commonoptions} \ --stringparam use.id.as.filename 1 \ --stringparam root.filename index \ "${XSLDIR}/html/chunk.xsl" usermanual.xml usermanual.pdf: usermanual.xml dblatex usermanual.xml clean: rm -f RCL.*.html usermanual.pdf usermanual.html index.html tmpfile.html recoll-1.21.5/doc/user/RCL.INTRODUCTION.html0000644000175000017500000000660412603157602017343 0ustar dockesdockesChapter1.Introduction

Chapter1.Introduction

1.1.Giving it a try

If you do not like reading manuals (who does?) but wish to give Recoll a try, just install the application and start the recoll graphical user interface (GUI), which will ask permission to index your home directory by default, allowing you to search immediately after indexing completes.

Do not do this if your home directory contains a huge number of documents and you do not want to wait or are very short on disk space. In this case, you may first want to customize the configuration to restrict the indexed area (for the very impatient with a completed package install, from the recoll GUI: PreferencesIndexing configuration, then adjust the Top directories section).

Also be aware that you may need to install the appropriate supporting applications for document types that need them (for example antiword for Microsoft Word files).

recoll-1.21.5/doc/user/RCL.SEARCH.KIO.html0000644000175000017500000001123112603157603017001 0ustar dockesdockes3.2.Searching with the KDE KIO slave

3.2.Searching with the KDE KIO slave

3.2.1.What's this

The Recoll KIO slave allows performing a Recoll search by entering an appropriate URL in a KDE open dialog, or with an HTML-based interface displayed in Konqueror.

The HTML-based interface is similar to the Qt-based interface, but slightly less powerful for now. Its advantage is that you can perform your search while staying fully within the KDE framework: drag and drop from the result list works normally and you have your normal choice of applications for opening files.

The alternative interface uses a directory view of search results. Due to limitations in the current KIO slave interface, it is currently not obviously useful (to me).

The interface is described in more detail inside a help file which you can access by entering recoll:/ inside the konqueror URL line (this works only if the recoll KIO slave has been previously installed).

The instructions for building this module are located in the source tree. See: kde/kio/recoll/00README.txt. Some Linux distributions do package the kio-recoll module, so check before diving into the build process, maybe it's already out there ready for one-click installation.

3.2.2.Searchable documents

As a sample application, the Recoll KIO slave could allow preparing a set of HTML documents (for example a manual) so that they become their own search interface inside konqueror.

This can be done by either explicitly inserting <a href="recoll://..."> links around some document areas, or automatically by adding a very small javascript program to the documents, like the following example, which would initiate a search by double-clicking any term:

<script language="JavaScript">
    function recollsearch() {
        var t = document.getSelection();
        window.location.href = 'recoll://search/query?qtp=a&p=0&q=' +
            encodeURIComponent(t);
    }
</script>
 ....
<body ondblclick="recollsearch()">

recoll-1.21.5/doc/user/RCL.PROGRAM.html0000644000175000017500000004750012603157603016532 0ustar dockesdockesChapter4.Programming interface

Chapter4.Programming interface

Recoll has an Application Programming Interface, usable both for indexing and searching, currently accessible from the Python language.

Another less radical way to extend the application is to write input handlers for new types of documents.

The processing of metadata attributes for documents (fields) is highly configurable.

4.1.Writing a document input handler

Terminology

The small programs or pieces of code which handle the processing of the different document types for Recoll used to be called filters, which is still reflected in the name of the directory which holds them and many configuration variables. They were named this way because one of their primary functions is to filter out the formatting directives and keep the text content. However these modules may have other behaviours, and the term input handler is now progressively substituted in the documentation. filter is still used in many places though.

Recoll input handlers cooperate to translate from the multitude of input document formats, simple ones as opendocument, acrobat), or compound ones such as Zip or Email, into the final Recoll indexing input format, which is plain text. Most input handlers are executable programs or scripts. A few handlers are coded in C++ and live inside recollindex. This latter kind will not be described here.

There are currently (1.18 and since 1.13) two kinds of external executable input handlers:

  • Simple exec handlers run once and exit. They can be bare programs like antiword, or scripts using other programs. They are very simple to write, because they just need to print the converted document to the standard output. Their output can be plain text or HTML. HTML is usually preferred because it can store metadata fields and it allows preserving some of the formatting for the GUI preview.

  • Multiple execm handlers can process multiple files (sparing the process startup time which can be very significant), or multiple documents per file (e.g.: for zip or chm files). They communicate with the indexer through a simple protocol, but are nevertheless a bit more complicated than the older kind. Most of new handlers are written in Python, using a common module to handle the protocol. There is an exception, rclimg which is written in Perl. The subdocuments output by these handlers can be directly indexable (text or HTML), or they can be other simple or compound documents that will need to be processed by another handler.

In both cases, handlers deal with regular file system files, and can process either a single document, or a linear list of documents in each file. Recoll is responsible for performing up to date checks, deal with more complex embedding and other upper level issues.

A simple handler returning a document in text/plain format, can transfer no metadata to the indexer. Generic metadata, like document size or modification date, will be gathered and stored by the indexer.

Handlers that produce text/html format can return an arbitrary amount of metadata inside HTML meta tags. These will be processed according to the directives found in the fields configuration file.

The handlers that can handle multiple documents per file return a single piece of data to identify each document inside the file. This piece of data, called an ipath element will be sent back by Recoll to extract the document at query time, for previewing, or for creating a temporary file to be opened by a viewer.

The following section describes the simple handlers, and the next one gives a few explanations about the execm ones. You could conceivably write a simple handler with only the elements in the manual. This will not be the case for the other ones, for which you will have to look at the code.

4.1.1.Simple input handlers

Recoll simple handlers are usually shell-scripts, but this is in no way necessary. Extracting the text from the native format is the difficult part. Outputting the format expected by Recoll is trivial. Happily enough, most document formats have translators or text extractors which can be called from the handler. In some cases the output of the translating program is completely appropriate, and no intermediate shell-script is needed.

Input handlers are called with a single argument which is the source file name. They should output the result to stdout.

When writing a handler, you should decide if it will output plain text or HTML. Plain text is simpler, but you will not be able to add metadata or vary the output character encoding (this will be defined in a configuration file). Additionally, some formatting may be easier to preserve when previewing HTML. Actually the deciding factor is metadata: Recoll has a way to extract metadata from the HTML header and use it for field searches..

The RECOLL_FILTER_FORPREVIEW environment variable (values yes, no) tells the handler if the operation is for indexing or previewing. Some handlers use this to output a slightly different format, for example stripping uninteresting repeated keywords (ie: Subject: for email) when indexing. This is not essential.

You should look at one of the simple handlers, for example rclps for a starting point.

Don't forget to make your handler executable before testing !

4.1.2."Multiple" handlers

If you can program and want to write an execm handler, it should not be too difficult to make sense of one of the existing modules. For example, look at rclzip which uses Zip file paths as identifiers (ipath), and rclics, which uses an integer index. Also have a look at the comments inside the internfile/mh_execm.h file and possibly at the corresponding module.

execm handlers sometimes need to make a choice for the nature of the ipath elements that they use in communication with the indexer. Here are a few guidelines:

  • Use ASCII or UTF-8 (if the identifier is an integer print it, for example, like printf %d would do).

  • If at all possible, the data should make some kind of sense when printed to a log file to help with debugging.

  • Recoll uses a colon (:) as a separator to store a complex path internally (for deeper embedding). Colons inside the ipath elements output by a handler will be escaped, but would be a bad choice as a handler-specific separator (mostly, again, for debugging issues).

In any case, the main goal is that it should be easy for the handler to extract the target document, given the file name and the ipath element.

execm handlers will also produce a document with a null ipath element. Depending on the type of document, this may have some associated data (e.g. the body of an email message), or none (typical for an archive file). If it is empty, this document will be useful anyway for some operations, as the parent of the actual data documents.

4.1.3.Telling Recoll about the handler

There are two elements that link a file to the handler which should process it: the association of file to MIME type and the association of a MIME type with a handler.

The association of files to MIME types is mostly based on name suffixes. The types are defined inside the mimemap file. Example:


.doc = application/msword

If no suffix association is found for the file name, Recoll will try to execute the file -i command to determine a MIME type.

The association of file types to handlers is performed in the mimeconf file. A sample will probably be of better help than a long explanation:


[index]
application/msword = exec antiword -t -i 1 -m UTF-8;\
     mimetype = text/plain ; charset=utf-8

application/ogg = exec rclogg

text/rtf = exec unrtf --nopict --html; charset=iso-8859-1; mimetype=text/html

application/x-chm = execm rclchm

The fragment specifies that:

  • application/msword files are processed by executing the antiword program, which outputs text/plain encoded in utf-8.

  • application/ogg files are processed by the rclogg script, with default output type (text/html, with encoding specified in the header, or utf-8 by default).

  • text/rtf is processed by unrtf, which outputs text/html. The iso-8859-1 encoding is specified because it is not the utf-8 default, and not output by unrtf in the HTML header section.

  • application/x-chm is processed by a persistant handler. This is determined by the execm keyword.

4.1.4.Input handler HTML output

The output HTML could be very minimal like the following example:

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  </head>
  <body>
   Some text content
  </body>
</html>
          

You should take care to escape some characters inside the text by transforming them into appropriate entities. At the very minimum, "&" should be transformed into "&amp;", "<" should be transformed into "&lt;". This is not always properly done by translating programs which output HTML, and of course never by those which output plain text.

When encapsulating plain text in an HTML body, the display of a preview may be improved by enclosing the text inside <pre> tags.

The character set needs to be specified in the header. It does not need to be UTF-8 (Recoll will take care of translating it), but it must be accurate for good results.

Recoll will process meta tags inside the header as possible document fields candidates. Documents fields can be processed by the indexer in different ways, for searching or displaying inside query results. This is described in a following section.

By default, the indexer will process the standard header fields if they are present: title, meta/description, and meta/keywords are both indexed and stored for query-time display.

A predefined non-standard meta tag will also be processed by Recoll without further configuration: if a date tag is present and has the right format, it will be used as the document date (for display and sorting), in preference to the file modification date. The date format should be as follows:

<meta name="date" content="YYYY-mm-dd HH:MM:SS">
or
<meta name="date" content="YYYY-mm-ddTHH:MM:SS">
          

Example:

<meta name="date" content="2013-02-24 17:50:00">
          

Input handlers also have the possibility to "invent" field names. This should also be output as meta tags:

<meta name="somefield" content="Some textual data" />

You can embed HTML markup inside the content of custom fields, for improving the display inside result lists. In this case, add a (wildly non-standard) markup attribute to tell Recoll that the value is HTML and should not be escaped for display.

<meta name="somefield" markup="html" content="Some <i>textual</i> data" />

As written above, the processing of fields is described in a further section.

4.1.5.Page numbers

The indexer will interpret ^L characters in the handler output as indicating page breaks, and will record them. At query time, this allows starting a viewer on the right page for a hit or a snippet. Currently, only the PDF, Postscript and DVI handlers generate page breaks.

recoll-1.21.5/doc/user/RCL.INDEXING.WEBQUEUE.html0000644000175000017500000000666412603157602020056 0ustar dockesdockes2.4.Indexing WEB pages you wisit

2.4.Indexing WEB pages you wisit

With the help of a Firefox extension, Recoll can index the Internet pages that you visit. The extension was initially designed for the Beagle indexer, but it has recently be renamed and better adapted to Recoll.

The extension works by copying visited WEB pages to an indexing queue directory, which Recoll then processes, indexing the data, storing it into a local cache, then removing the file from the queue.

This feature can be enabled in the GUI Index configuration panel, or by editing the configuration file (set processwebqueue to 1).

A current pointer to the extension can be found, along with up-to-date instructions, on the Recoll wiki.

A copy of the indexed WEB pages is retained by Recoll in a local cache (from which previews can be fetched). The cache size can be adjusted from the Index configuration / Web history panel. Once the maximum size is reached, old pages are purged - both from the cache and the index - to make room for new ones, so you need to explicitly archive in some other place the pages that you want to keep indefinitely.

recoll-1.21.5/doc/user/RCL.INTRODUCTION.SEARCH.html0000644000175000017500000000773412603157602020314 0ustar dockesdockes1.2.Full text search

1.2.Full text search

Recoll is a full text search application. Full text search finds your data by content rather than by external attributes (like a file name). You specify words (terms) which should or should not appear in the text you are looking for, and receive in return a list of matching documents, ordered so that the most relevant documents will appear first.

You do not need to remember in what file or email message you stored a given piece of information. You just ask for related terms, and the tool will return a list of documents where these terms are prominent, in a similar way to Internet search engines.

Full text search applications try to determine which documents are most relevant to the search terms you provide. Computer algorithms for determining relevance can be very complex, and in general are inferior to the power of the human mind to rapidly determine relevance. The quality of relevance guessing is probably the most important aspect when evaluating a search application.

In many cases, you are looking for all the forms of a word, including plurals, different tenses for a verb, or terms derived from the same root or stem (example: floor, floors, floored, flooring...). Queries are usually automatically expanded to all such related terms (words that reduce to the same stem). This can be prevented for searching for a specific form.

Stemming, by itself, does not accommodate for misspellings or phonetic searches. A full text search application may also support this form of approximation. For example, a search for aliterattion returning no result may propose, depending on index contents, alliteration alteration alterations altercation as possible replacement terms.

recoll-1.21.5/doc/user/RCL.SEARCH.LANG.html0000644000175000017500000004636512603157603017120 0ustar dockesdockes3.5.The query language

3.5.The query language

The query language processor is activated in the GUI simple search entry when the search mode selector is set to Query Language. It can also be used with the KIO slave or the command line search. It broadly has the same capabilities as the complex search interface in the GUI.

The language is based on the (seemingly defunct) Xesam user search language specification.

If the results of a query language search puzzle you and you doubt what has been actually searched for, you can use the GUI Show Query link at the top of the result list to check the exact query which was finally executed by Xapian.

Here follows a sample request that we are going to explain:

          author:"john doe" Beatles OR Lennon Live OR Unplugged -potatoes
      

This would search for all documents with John Doe appearing as a phrase in the author field (exactly what this is would depend on the document type, ie: the From: header, for an email message), and containing either beatles or lennon and either live or unplugged but not potatoes (in any part of the document).

An element is composed of an optional field specification, and a value, separated by a colon (the field separator is the last colon in the element). Examples: Eugenie, author:balzac, dc:title:grandet dc:title:"eugenie grandet"

The colon, if present, means "contains". Xesam defines other relations, which are mostly unsupported for now (except in special cases, described further down).

All elements in the search entry are normally combined with an implicit AND. It is possible to specify that elements be OR'ed instead, as in Beatles OR Lennon. The OR must be entered literally (capitals), and it has priority over the AND associations: word1 word2 OR word3 means word1 AND (word2 OR word3) not (word1 AND word2) OR word3. Explicit parenthesis are not supported.

As of Recoll 1.21, you can use parentheses to group elements, which will sometimes make things clearer, and may allow expressing combinations which would have been difficult otherwise.

An element preceded by a - specifies a term that should not appear.

As usual, words inside quotes define a phrase (the order of words is significant), so that title:"prejudice pride" is not the same as title:prejudice title:pride, and is unlikely to find a result.

Words inside phrases and capitalized words are not stem-expanded. Wildcards may be used anywhere inside a term. Specifying a wild-card on the left of a term can produce a very slow search (or even an incorrect one if the expansion is truncated because of excessive size). Also see More about wildcards.

To save you some typing, recent Recoll versions (1.20 and later) interpret a comma-separated list of terms as an AND list inside the field. Use slash characters ('/') for an OR list. No white space is allowed. So

author:john,lennon

will search for documents with john and lennon inside the author field (in any order), and

author:john/ringo

would search for john or ringo.

Modifiers can be set on a double-quote value, for example to specify a proximity search (unordered). See the modifier section. No space must separate the final double-quote and the modifiers value, e.g. "two one"po10

Recoll currently manages the following default fields:

  • title, subject or caption are synonyms which specify data to be searched for in the document title or subject.

  • author or from for searching the documents originators.

  • recipient or to for searching the documents recipients.

  • keyword for searching the document-specified keywords (few documents actually have any).

  • filename for the document's file name. This is not necessarily set for all documents: internal documents contained inside a compound one (for example an EPUB section) do not inherit the container file name any more, this was replaced by an explicit field (see next). Sub-documents can still have a specific filename, if it is implied by the document format, for example the attachment file name for an email attachment.

  • containerfilename. This is set for all documents, both top-level and contained sub-documents, and is always the name of the filesystem directory entry which contains the data. The terms from this field can only be matched by an explicit field specification (as opposed to terms from filename which are also indexed as general document content). This avoids getting matches for all the sub-documents when searching for the container file name.

  • ext specifies the file name extension (Ex: ext:html)

Recoll 1.20 and later have a way to specify aliases for the field names, which will save typing, for example by aliasing filename to fn or containerfilename to cfn. See the section about the fields file

The field syntax also supports a few field-like, but special, criteria:

  • dir for filtering the results on file location (Ex: dir:/home/me/somedir). -dir also works to find results not in the specified directory (release >= 1.15.8). Tilde expansion will be performed as usual (except for a bug in versions 1.19 to 1.19.11p1). Wildcards will be expanded, but please have a look at an important limitation of wildcards in path filters.

    Relative paths also make sense, for example, dir:share/doc would match either /usr/share/doc or /usr/local/share/doc

    Several dir clauses can be specified, both positive and negative. For example the following makes sense:

    dir:recoll dir:src -dir:utils -dir:common
                

    This would select results which have both recoll and src in the path (in any order), and which have not either utils or common.

    You can also use OR conjunctions with dir: clauses.

    A special aspect of dir clauses is that the values in the index are not transcoded to UTF-8, and never lower-cased or unaccented, but stored as binary. This means that you need to enter the values in the exact lower or upper case, and that searches for names with diacritics may sometimes be impossible because of character set conversion issues. Non-ASCII UNIX file paths are an unending source of trouble and are best avoided.

    You need to use double-quotes around the path value if it contains space characters.

  • size for filtering the results on file size. Example: size<10000. You can use <, > or = as operators. You can specify a range like the following: size>100 size<1000. The usual k/K, m/M, g/G, t/T can be used as (decimal) multipliers. Ex: size>1k to search for files bigger than 1000 bytes.

  • date for searching or filtering on dates. The syntax for the argument is based on the ISO8601 standard for dates and time intervals. Only dates are supported, no times. The general syntax is 2 elements separated by a / character. Each element can be a date or a period of time. Periods are specified as PnYnMnD. The n numbers are the respective numbers of years, months or days, any of which may be missing. Dates are specified as YYYY-MM-DD. The days and months parts may be missing. If the / is present but an element is missing, the missing element is interpreted as the lowest or highest date in the index. Examples:

    • 2001-03-01/2002-05-01 the basic syntax for an interval of dates.

    • 2001-03-01/P1Y2M the same specified with a period.

    • 2001/ from the beginning of 2001 to the latest date in the index.

    • 2001 the whole year of 2001

    • P2D/ means 2 days ago up to now if there are no documents with dates in the future.

    • /2003 all documents from 2003 or older.

    Periods can also be specified with small letters (ie: p2y).

  • mime or format for specifying the MIME type. This one is quite special because you can specify several values which will be OR'ed (the normal default for the language is AND). Ex: mime:text/plain mime:text/html. Specifying an explicit boolean operator before a mime specification is not supported and will produce strange results. You can filter out certain types by using negation (-mime:some/type), and you can use wildcards in the value (mime:text/*). Note that mime is the ONLY field with an OR default. You do need to use OR with ext terms for example.

  • type or rclcat for specifying the category (as in text/media/presentation/etc.). The classification of MIME types in categories is defined in the Recoll configuration (mimeconf), and can be modified or extended. The default category names are those which permit filtering results in the main GUI screen. Categories are OR'ed like MIME types above. This can't be negated with - either.

The document input handlers used while indexing have the possibility to create other fields with arbitrary names, and aliases may be defined in the configuration, so that the exact field search possibilities may be different for you if someone took care of the customisation.

3.5.1.Modifiers

Some characters are recognized as search modifiers when found immediately after the closing double quote of a phrase, as in "some term"modifierchars. The actual "phrase" can be a single term of course. Supported modifiers:

  • l can be used to turn off stemming (mostly makes sense with p because stemming is off by default for phrases).

  • o can be used to specify a "slack" for phrase and proximity searches: the number of additional terms that may be found between the specified ones. If o is followed by an integer number, this is the slack, else the default is 10.

  • p can be used to turn the default phrase search into a proximity one (unordered). Example:"order any in"p

  • C will turn on case sensitivity (if the index supports it).

  • D will turn on diacritics sensitivity (if the index supports it).

  • A weight can be specified for a query element by specifying a decimal value at the start of the modifiers. Example: "Important"2.5.

recoll-1.21.5/doc/user/RCL.SEARCH.CASEDIAC.html0000644000175000017500000001150012603157603017512 0ustar dockesdockes3.6.Search case and diacritics sensitivity

3.6.Search case and diacritics sensitivity

For Recoll versions 1.18 and later, and when working with a raw index (not the default), searches can be made sensitive to character case and diacritics. How this happens is controlled by configuration variables and what search data is entered.

The general default is that searches are insensitive to case and diacritics. An entry of resume will match any of Resume, RESUME, rsum, Rsum etc.

Two configuration variables can automate switching on sensitivity:

autodiacsens

If this is set, search sensitivity to diacritics will be turned on as soon as an accented character exists in a search term. When the variable is set to true, resume will start a diacritics-unsensitive search, but rsum will be matched exactly. The default value is false.

autocasesens

If this is set, search sensitivity to character case will be turned on as soon as an upper-case character exists in a search term except for the first one. When the variable is set to true, us or Us will start a diacritics-unsensitive search, but US will be matched exactly. The default value is true (contrary to autodiacsens).

As in the past, capitalizing the first letter of a word will turn off its stem expansion and have no effect on case-sensitivity.

You can also explicitely activate case and diacritics sensitivity by using modifiers with the query language. C will make the term case-sensitive, and D will make it diacritics-sensitive. Examples:

        "us"C
   

will search for the term us exactly (Us will not be a match).

        "resume"D
      

will search for the term resume exactly (rsum will not be a match).

When either case or diacritics sensitivity is activated, stem expansion is turned off. Having both does not make much sense.

recoll-1.21.5/doc/user/RCL.INDEXING.MONITOR.html0000644000175000017500000001713312603157602017754 0ustar dockesdockes2.8.Real time indexing

2.8.Real time indexing

Real time monitoring/indexing is performed by starting the recollindex -m command. With this option, recollindex will detach from the terminal and become a daemon, permanently monitoring file changes and updating the index.

Under KDE, Gnome and some other desktop environments, the daemon can automatically started when you log in, by creating a desktop file inside the ~/.config/autostart directory. This can be done for you by the Recoll GUI. Use the Preferences->Indexing Schedule menu.

With older X11 setups, starting the daemon is normally performed as part of the user session script.

The rclmon.sh script can be used to easily start and stop the daemon. It can be found in the examples directory (typically /usr/local/[share/]recoll/examples).

For example, my out of fashion xdm-based session has a .xsession script with the following lines at the end:

recollconf=$HOME/.recoll-home
recolldata=/usr/local/share/recoll
RECOLL_CONFDIR=$recollconf $recolldata/examples/rclmon.sh start

fvwm 

The indexing daemon gets started, then the window manager, for which the session waits.

By default the indexing daemon will monitor the state of the X11 session, and exit when it finishes, it is not necessary to kill it explicitly. (The X11 server monitoring can be disabled with option -x to recollindex).

If you use the daemon completely out of an X11 session, you need to add option -x to disable X11 session monitoring (else the daemon will not start).

By default, the messages from the indexing daemon will be setn to the same file as those from the interactive commands (logfilename). You may want to change this by setting the daemlogfilename and daemloglevel configuration parameters. Also the log file will only be truncated when the daemon starts. If the daemon runs permanently, the log file may grow quite big, depending on the log level.

When building Recoll, the real time indexing support can be customised during package configuration with the --with[out]-fam or --with[out]-inotify options. The default is currently to include inotify monitoring on systems that support it, and, as of Recoll 1.17, gamin support on FreeBSD.

While it is convenient that data is indexed in real time, repeated indexing can generate a significant load on the system when files such as email folders change. Also, monitoring large file trees by itself significantly taxes system resources. You probably do not want to enable it if your system is short on resources. Periodic indexing is adequate in most cases.

Increasing resources for inotify

On Linux systems, monitoring a big tree may need increasing the resources available to inotify, which are normally defined in /etc/sysctl.conf.

### inotify
#
# cat  /proc/sys/fs/inotify/max_queued_events   - 16384
# cat  /proc/sys/fs/inotify/max_user_instances  - 128
# cat  /proc/sys/fs/inotify/max_user_watches    - 16384
#
# -- Change to:
#
fs.inotify.max_queued_events=32768
fs.notify.max_user_instances=256
fs.inotify.max_user_watches=32768
	  

Especially, you will need to trim your tree or adjust the max_user_watches value if indexing exits with a message about errno ENOSPC (28) from inotify_add_watch.

2.8.1.Slowing down the reindexing rate for fast changing files

When using the real time monitor, it may happen that some files need to be indexed, but change so often that they impose an excessive load for the system.

Recoll provides a configuration option to specify the minimum time before which a file, specified by a wildcard pattern, cannot be reindexed. See the mondelaypatterns parameter in the configuration section.

recoll-1.21.5/doc/user/docbook-xsl.css0000644000175000017500000000743312602163537017057 0ustar dockesdockes/* * Copyright (c) 2001, 2003, 2010 The FreeBSD Documentation Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: doc/share/misc/docbook.css,v 1.15 2010/03/20 04:15:01 hrs Exp $ */ body address { line-height: 1.3; margin: .6em 0; } body blockquote { margin-top: .75em; line-height: 1.5; margin-bottom: .75em; } html body { margin: 1em 8% 1em 10%; line-height: 1.2; } .legalnotice { font-size: small; font-variant: small-caps; } body div { margin: 0; } dl { margin: .8em 0; line-height: 1.2; } body form { margin: .6em 0; } h1, h2, h3, h4, h5, h6, div.example p b, .question, div.table p b, div.procedure p b { color: #990000; } body h1, body h2, body h3, body h4, body h5, body h6 { line-height: 1.3; margin-left: 0; } body h1, body h2 { margin: .8em 0 0 -4%; } body h3, body h4 { margin: .8em 0 0 -3%; } body h5 { margin: .8em 0 0 -2%; } body h6 { margin: .8em 0 0 -1%; } body hr { margin: .6em; border-width: 0 0 1px 0; border-style: solid; border-color: #cecece; } body img.navheader { margin: 0 0 0 -4%; } ol { margin: 0 0 0 5%; line-height: 1.2; } body pre { margin: .75em 0; line-height: 1.0; font-family: monospace; } body td, body th { line-height: 1.2; } ul, body dir, body menu { margin: 0 0 0 5%; line-height: 1.2; } html { margin: 0; padding: 0; } body p b.application { color: #000000; } body p span.application { font-weight: bold; color: #000000; } .filename { color: #007a00; } .guimenu, .guimenuitem, .guisubmenu, .guilabel, .interface, .shortcut, .shortcut .keycap { font-weight: bold; } .guibutton { background-color: #cfcfcf; padding: 2px; } .accel { background-color: #f0f0f0; text-decoration: underline; } .screen { padding: 1ex; } .programlisting { padding: 1ex; background-color: #eee; border: 1px solid #ccc; } @media screen { /* hide from ie3 */ a[href]:hover { background: #ffa } } blockquote.note { color: #222; background: #eee; border: 1px solid #ccc; padding: 0.4em 0.4em; width: 85%; } blockquote.tip { color: #004f00; background: #d8ecd6; border: 1px solid green; padding: 0.2em 2em; width: 85%; } blockquote.important { font-style:italic; border: 1px solid #a00; border-left: 12px solid #c00; padding: 0.1em 1em; } blockquote.warning { color: #9f1313; background: #f8e8e8; border: 1px solid #e59595; padding: 0.2em 2em; width: 85%; } .example { background: #fefde6; border: 1px solid #f1bb16; margin: 1em 0; padding: 0.2em 2em; width: 90%; } .informaltable table.calstable tr td { padding-left: 1em; padding-right: 1em; } recoll-1.21.5/doc/user/docbook.css0000644000175000017500000000733212602163537016251 0ustar dockesdockes/* * Copyright (c) 2001, 2003, 2010 The FreeBSD Documentation Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: doc/share/misc/docbook.css,v 1.15 2010/03/20 04:15:01 hrs Exp $ */ BODY ADDRESS { line-height: 1.3; margin: .6em 0; } BODY BLOCKQUOTE { margin-top: .75em; line-height: 1.5; margin-bottom: .75em; } HTML BODY { margin: 1em 8% 1em 10%; line-height: 1.2; } .LEGALNOTICE { font-size: small; font-variant: small-caps; } BODY DIV { margin: 0; } DL { margin: .8em 0; line-height: 1.2; } BODY FORM { margin: .6em 0; } H1, H2, H3, H4, H5, H6, DIV.EXAMPLE P B, .QUESTION, DIV.TABLE P B, DIV.PROCEDURE P B { color: #990000; } BODY H1, BODY H2, BODY H3, BODY H4, BODY H5, BODY H6 { line-height: 1.3; margin-left: 0; } BODY H1, BODY H2 { margin: .8em 0 0 -4%; } BODY H3, BODY H4 { margin: .8em 0 0 -3%; } BODY H5 { margin: .8em 0 0 -2%; } BODY H6 { margin: .8em 0 0 -1%; } BODY HR { margin: .6em; border-width: 0 0 1px 0; border-style: solid; border-color: #cecece; } BODY IMG.NAVHEADER { margin: 0 0 0 -4%; } OL { margin: 0 0 0 5%; line-height: 1.2; } BODY PRE { margin: .75em 0; line-height: 1.0; font-family: monospace; } BODY TD, BODY TH { line-height: 1.2; } UL, BODY DIR, BODY MENU { margin: 0 0 0 5%; line-height: 1.2; } HTML { margin: 0; padding: 0; } BODY P B.APPLICATION { color: #000000; } .FILENAME { color: #007a00; } .GUIMENU, .GUIMENUITEM, .GUISUBMENU, .GUILABEL, .INTERFACE, .SHORTCUT, .SHORTCUT .KEYCAP { font-weight: bold; } .GUIBUTTON { background-color: #CFCFCF; padding: 2px; } .ACCEL { background-color: #F0F0F0; text-decoration: underline; } .SCREEN { padding: 1ex; } .PROGRAMLISTING { padding: 1ex; background-color: #eee; border: 1px solid #ccc; } @media screen { /* hide from IE3 */ a[href]:hover { background: #ffa } } BLOCKQUOTE.NOTE { color: #222; background: #eee; border: 1px solid #ccc; padding: 0.4em 0.4em; width: 85%; } BLOCKQUOTE.TIP { color: #004F00; background: #d8ecd6; border: 1px solid green; padding: 0.2em 2em; width: 85%; } BLOCKQUOTE.IMPORTANT { font-style:italic; border: 1px solid #a00; border-left: 12px solid #c00; padding: 0.1em 1em; } BLOCKQUOTE.WARNING { color: #9F1313; background: #f8e8e8; border: 1px solid #e59595; padding: 0.2em 2em; width: 85%; } .EXAMPLE { background: #fefde6; border: 1px solid #f1bb16; margin: 1em 0; padding: 0.2em 2em; width: 90%; } .INFORMALTABLE TABLE.CALSTABLE TR TD { padding-left: 1em; padding-right: 1em; } recoll-1.21.5/doc/user/RCL.INDEXING.CONFIG.html0000644000175000017500000002732412603157602017575 0ustar dockesdockes2.3.Index configuration

2.3.Index configuration

Variables set inside the Recoll configuration files control which areas of the file system are indexed, and how files are processed. These variables can be set either by editing the text files or by using the dialogs in the recoll GUI.

The first time you start recoll, you will be asked whether or not you would like it to build the index. If you want to adjust the configuration before indexing, just click Cancel at this point, which will get you into the configuration interface. If you exit at this point, recoll will have created a ~/.recoll directory containing empty configuration files, which you can edit by hand.

The configuration is documented inside the installation chapter of this document, or in the recoll.conf(5) man page, but the most current information will most likely be the comments inside the sample file. The most immediately useful variable you may interested in is probably topdirs, which determines what subtrees get indexed.

The applications needed to index file types other than text, HTML or email (ie: pdf, postscript, ms-word...) are described in the external packages section.

As of Recoll 1.18 there are two incompatible types of Recoll indexes, depending on the treatment of character case and diacritics. The next section describes the two types in more detail.

2.3.1.Multiple indexes

Multiple Recoll indexes can be created by using several configuration directories which are usually set to index different areas of the file system. A specific index can be selected for updating or searching, using the RECOLL_CONFDIR environment variable or the -c option to recoll and recollindex.

A typical usage scenario for the multiple index feature would be for a system administrator to set up a central index for shared data, that you choose to search or not in addition to your personal data. Of course, there are other possibilities. There are many cases where you know the subset of files that should be searched, and where narrowing the search can improve the results. You can achieve approximately the same effect with the directory filter in advanced search, but multiple indexes will have much better performance and may be worth the trouble.

A recollindex program instance can only update one specific index.

The main index (defined by RECOLL_CONFDIR or -c) is always active. If this is undesirable, you can set up your base configuration to index an empty directory.

The different search interfaces (GUI, command line, ...) have different methods to define the set of indexes to be used, see the appropriate section.

If a set of multiple indexes are to be used together for searches, some configuration parameters must be consistent among the set. These are parameters which need to be the same when indexing and searching. As the parameters come from the main configuration when searching, they need to be compatible with what was set when creating the other indexes (which came from their respective configuration directories).

Most importantly, all indexes to be queried concurrently must have the same option concerning character case and diacritics stripping, but there are other constraints. Most of the relevant parameters are described in the linked section.

2.3.2.Index case and diacritics sensitivity

As of Recoll version 1.18 you have a choice of building an index with terms stripped of character case and diacritics, or one with raw terms. For a source term of Rsum, the former will store resume, the latter Rsum.

Each type of index allows performing searches insensitive to case and diacritics: with a raw index, the user entry will be expanded to match all case and diacritics variations present in the index. With a stripped index, the search term will be stripped before searching.

A raw index allows for another possibility which a stripped index cannot offer: using case and diacritics to discriminate between terms, returning different results when searching for US and us or resume and rsum. Read the section about search case and diacritics sensitivity for more details.

The type of index to be created is controlled by the indexStripChars configuration variable which can only be changed by editing the configuration file. Any change implies an index reset (not automated by Recoll), and all indexes in a search must be set in the same way (again, not checked by Recoll).

If the indexStripChars is not set, Recoll 1.18 creates a stripped index by default, for compatibility with previous versions.

As a cost for added capability, a raw index will be slightly bigger than a stripped one (around 10%). Also, searches will be more complex, so probably slightly slower, and the feature is still young, so that a certain amount of weirdness cannot be excluded.

One of the most adverse consequence of using a raw index is that some phrase and proximity searches may become impossible: because each term needs to be expanded, and all combinations searched for, the multiplicative expansion may become unmanageable.

2.3.3.The index configuration GUI

Most parameters for a given index configuration can be set from a recoll GUI running on this configuration (either as default, or by setting RECOLL_CONFDIR or the -c option.)

The interface is started from the PreferencesIndex Configuration menu entry. It is divided in four tabs, Global parameters, Local parameters, Web history (which is explained in the next section) and Search parameters.

The Global parameters tab allows setting global variables, like the lists of top directories, skipped paths, or stemming languages.

The Local parameters tab allows setting variables that can be redefined for subdirectories. This second tab has an initially empty list of customisation directories, to which you can add. The variables are then set for the currently selected directory (or at the top level if the empty line is selected).

The Search parameters section defines parameters which are used at query time, but are global to an index and affect all search tools, not only the GUI.

The meaning for most entries in the interface is self-evident and documented by a ToolTip popup on the text label. For more detail, you will need to refer to the configuration section of this guide.

The configuration tool normally respects the comments and most of the formatting inside the configuration file, so that it is quite possible to use it on hand-edited files, which you might nevertheless want to backup first...

recoll-1.21.5/doc/user/RCL.INDEXING.STORAGE.html0000644000175000017500000001673212603157602017735 0ustar dockesdockes2.2.Index storage

2.2.Index storage

The default location for the index data is the xapiandb subdirectory of the Recoll configuration directory, typically $HOME/.recoll/xapiandb/. This can be changed via two different methods (with different purposes):

  • You can specify a different configuration directory by setting the RECOLL_CONFDIR environment variable, or using the -c option to the Recoll commands. This method would typically be used to index different areas of the file system to different indexes. For example, if you were to issue the following commands:

    export RECOLL_CONFDIR=~/.indexes-email
    recoll
              

    Then Recoll would use configuration files stored in ~/.indexes-email/ and, (unless specified otherwise in recoll.conf) would look for the index in ~/.indexes-email/xapiandb/.

    Using multiple configuration directories and configuration options allows you to tailor multiple configurations and indexes to handle whatever subset of the available data you wish to make searchable.

  • For a given configuration directory, you can specify a non-default storage location for the index by setting the dbdir parameter in the configuration file (see the configuration section). This method would mainly be of use if you wanted to keep the configuration directory in its default location, but desired another location for the index, typically out of disk occupation concerns.

The size of the index is determined by the size of the set of documents, but the ratio can vary a lot. For a typical mixed set of documents, the index size will often be close to the data set size. In specific cases (a set of compressed mbox files for example), the index can become much bigger than the documents. It may also be much smaller if the documents contain a lot of images or other non-indexed data (an extreme example being a set of mp3 files where only the tags would be indexed).

Of course, images, sound and video do not increase the index size, which means that nowadays (2012), typically, even a big index will be negligible against the total amount of data on the computer.

The index data directory (xapiandb) only contains data that can be completely rebuilt by an index run (as long as the original documents exist), and it can always be destroyed safely.

2.2.1.Xapian index formats

Xapian versions usually support several formats for index storage. A given major Xapian version will have a current format, used to create new indexes, and will also support the format from the previous major version.

Xapian will not convert automatically an existing index from the older format to the newer one. If you want to upgrade to the new format, or if a very old index needs to be converted because its format is not supported any more, you will have to explicitly delete the old index, then run a normal indexing process.

Using the -z option to recollindex is not sufficient to change the format, you will have to delete all files inside the index directory (typically ~/.recoll/xapiandb) before starting the indexing.

2.2.2.Security aspects

The Recoll index does not hold copies of the indexed documents. But it does hold enough data to allow for an almost complete reconstruction. If confidential data is indexed, access to the database directory should be restricted.

Recoll (since version 1.4) will create the configuration directory with a mode of 0700 (access by owner only). As the index data directory is by default a sub-directory of the configuration directory, this should result in appropriate protection.

If you use another setup, you should think of the kind of protection you need for your index, set the directory and files access modes appropriately, and also maybe adjust the umask used during index updates.

recoll-1.21.5/doc/user/RCL.SEARCH.COMMANDLINE.html0000644000175000017500000001422112603157603020107 0ustar dockesdockes3.3.Searching on the command line

3.3.Searching on the command line

There are several ways to obtain search results as a text stream, without a graphical interface:

  • By passing option -t to the recoll program.

  • By using the recollq program.

  • By writing a custom Python program, using the Recoll Python API.

The first two methods work in the same way and accept/need the same arguments (except for the additional -t to recoll). The query to be executed is specified as command line arguments.

recollq is not built by default. You can use the Makefile in the query directory to build it. This is a very simple program, and if you can program a little c++, you may find it useful to taylor its output format to your needs. Not that recollq is only really useful on systems where the Qt libraries (or even the X11 ones) are not available. Otherwise, just use recoll -t, which takes the exact same parameters and options which are described for recollq

recollq has a man page (not installed by default, look in the doc/man directory). The Usage string is as follows:

recollq: usage:
 -P: Show the date span for all the documents present in the index
 [-o|-a|-f] [-q] <query string>
 Runs a recoll query and displays result lines. 
  Default: will interpret the argument(s) as a xesam query string
    query may be like: 
    implicit AND, Exclusion, field spec:    t1 -t2 title:t3
    OR has priority: t1 OR t2 t3 OR t4 means (t1 OR t2) AND (t3 OR t4)
    Phrase: "t1 t2" (needs additional quoting on cmd line)
  -o Emulate the GUI simple search in ANY TERM mode
  -a Emulate the GUI simple search in ALL TERMS mode
  -f Emulate the GUI simple search in filename mode
  -q is just ignored (compatibility with the recoll GUI command line)
Common options:
    -c <configdir> : specify config directory, overriding $RECOLL_CONFDIR
    -d also dump file contents
    -n [first-]<cnt> define the result slice. The default value for [first]
       is 0. Without the option, the default max count is 2000.
       Use n=0 for no limit
    -b : basic. Just output urls, no mime types or titles
    -Q : no result lines, just the processed query and result count
    -m : dump the whole document meta[] array for each result
    -A : output the document abstracts
    -S fld : sort by field <fld>
    -s stemlang : set stemming language to use (must exist in index...)
       Use -s "" to turn off stem expansion
    -D : sort descending
    -i <dbdir> : additional index, several can be given
    -e use url encoding (%xx) for urls
    -F <field name list> : output exactly these fields for each result.
       The field values are encoded in base64, output in one line and 
       separated by one space character. This is the recommended format 
       for use by other programs. Use a normal query with option -m to 
       see the field names.

Sample execution:

recollq 'ilur -nautique mime:text/html'
Recoll query: ((((ilur:(wqf=11) OR ilurs) AND_NOT (nautique:(wqf=11)
  OR nautiques OR nautiqu OR nautiquement)) FILTER Ttext/html))
4 results
text/html       [file:///Users/uncrypted-dockes/projets/bateaux/ilur/comptes.html]      [comptes.html]  18593   bytes   
text/html       [file:///Users/uncrypted-dockes/projets/nautique/webnautique/articles/ilur1/index.html] [Constructio...
text/html       [file:///Users/uncrypted-dockes/projets/pagepers/index.html]    [psxtcl/writemime/recoll]...
text/html       [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/recu-chasse-maree....
recoll-1.21.5/doc/user/index.html0000644000175000017500000003225012603157603016107 0ustar dockesdockesRecoll user manual

Recoll user manual

Jean-Francois Dockes

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at the following location: GNU web site.

This document introduces full text search notions and describes the installation and use of the Recoll application. This version describes Recoll 1.21.


Table of Contents

1. Introduction
1.1. Giving it a try
1.2. Full text search
1.3. Recoll overview
2. Indexing
2.1. Introduction
2.1.1. Indexing modes
2.1.2. Configurations, multiple indexes
2.1.3. Document types
2.1.4. Indexing failures
2.1.5. Recovery
2.2. Index storage
2.2.1. Xapian index formats
2.2.2. Security aspects
2.3. Index configuration
2.3.1. Multiple indexes
2.3.2. Index case and diacritics sensitivity
2.3.3. The index configuration GUI
2.4. Indexing WEB pages you wisit
2.5. Extended attributes data
2.6. Importing external tags
2.7. Periodic indexing
2.7.1. Running indexing
2.7.2. Using cron to automate indexing
2.8. Real time indexing
2.8.1. Slowing down the reindexing rate for fast changing files
3. Searching
3.1. Searching with the Qt graphical user interface
3.1.1. Simple search
3.1.2. The default result list
3.1.3. The result table
3.1.4. Running arbitrary commands on result files (1.20 and later)
3.1.5. Displaying thumbnails
3.1.6. The preview window
3.1.7. The Query Fragments window
3.1.8. Complex/advanced search
3.1.9. The term explorer tool
3.1.10. Multiple indexes
3.1.11. Document history
3.1.12. Sorting search results and collapsing duplicates
3.1.13. Search tips, shortcuts
3.1.14. Saving and restoring queries (1.21 and later)
3.1.15. Customizing the search interface
3.2. Searching with the KDE KIO slave
3.2.1. What's this
3.2.2. Searchable documents
3.3. Searching on the command line
3.4. Path translations
3.5. The query language
3.5.1. Modifiers
3.6. Search case and diacritics sensitivity
3.7. Anchored searches and wildcards
3.7.1. More about wildcards
3.7.2. Anchored searches
3.8. Desktop integration
3.8.1. Hotkeying recoll
3.8.2. The KDE Kicker Recoll applet
4. Programming interface
4.1. Writing a document input handler
4.1.1. Simple input handlers
4.1.2. "Multiple" handlers
4.1.3. Telling Recoll about the handler
4.1.4. Input handler HTML output
4.1.5. Page numbers
4.2. Field data processing
4.3. API
4.3.1. Interface elements
4.3.2. Python interface
5. Installation and configuration
5.1. Installing a binary copy
5.2. Supporting packages
5.3. Building from source
5.3.1. Prerequisites
5.3.2. Building
5.3.3. Installation
5.4. Configuration overview
5.4.1. Environment variables
5.4.2. The main configuration file, recoll.conf
5.4.3. The fields file
5.4.4. The mimemap file
5.4.5. The mimeconf file
5.4.6. The mimeview file
5.4.7. The ptrans file
5.4.8. Examples of configuration adjustments
recoll-1.21.5/doc/user/usermanual.xml0000644000175000017500000110150512602163571017011 0ustar dockesdockesRecoll"> http://www.recoll.org/features.html"> Xapian"> ]> Recoll user manual Jean-Francois Dockes
jfd@recoll.org
2005-2015 Jean-Francois Dockes Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at the following location: GNU web site. This document introduces full text search notions and describes the installation and use of the &RCL; application. This version describes &RCL; &RCLVERSION;.
Introduction Giving it a try If you do not like reading manuals (who does?) but wish to give &RCL; a try, just install the application and start the recoll graphical user interface (GUI), which will ask permission to index your home directory by default, allowing you to search immediately after indexing completes. Do not do this if your home directory contains a huge number of documents and you do not want to wait or are very short on disk space. In this case, you may first want to customize the configuration to restrict the indexed area (for the very impatient with a completed package install, from the recoll GUI: Preferences Indexing configuration , then adjust the Top directories section). Also be aware that you may need to install the appropriate supporting applications for document types that need them (for example antiword for Microsoft Word files). Full text search &RCL; is a full text search application. Full text search finds your data by content rather than by external attributes (like a file name). You specify words (terms) which should or should not appear in the text you are looking for, and receive in return a list of matching documents, ordered so that the most relevant documents will appear first. You do not need to remember in what file or email message you stored a given piece of information. You just ask for related terms, and the tool will return a list of documents where these terms are prominent, in a similar way to Internet search engines. Full text search applications try to determine which documents are most relevant to the search terms you provide. Computer algorithms for determining relevance can be very complex, and in general are inferior to the power of the human mind to rapidly determine relevance. The quality of relevance guessing is probably the most important aspect when evaluating a search application. In many cases, you are looking for all the forms of a word, including plurals, different tenses for a verb, or terms derived from the same root or stem (example: floor, floors, floored, flooring...). Queries are usually automatically expanded to all such related terms (words that reduce to the same stem). This can be prevented for searching for a specific form. Stemming, by itself, does not accommodate for misspellings or phonetic searches. A full text search application may also support this form of approximation. For example, a search for aliterattion returning no result may propose, depending on index contents, alliteration alteration alterations altercation as possible replacement terms. Recoll overview &RCL; uses the &XAP; information retrieval library as its storage and retrieval engine. &XAP; is a very mature package using a sophisticated probabilistic ranking model. The &XAP; library manages an index database which describes where terms appear in your document files. It efficiently processes the complex queries which are produced by the &RCL; query expansion mechanism, and is in charge of the all-important relevance computation task. &RCL; provides the mechanisms and interface to get data into and out of the index. This includes translating the many possible document formats into pure text, handling term variations (using &XAP; stemmers), and spelling approximations (using the aspell speller), interpreting user queries and presenting results. In a shorter way, &RCL; does the dirty footwork, &XAP; deals with the intelligent parts of the process. The &XAP; index can be big (roughly the size of the original document set), but it is not a document archive. &RCL; can only display documents that still exist at the place from which they were indexed. (Actually, there is a way to reconstruct a document from the information in the index, but the result is not nice, as all formatting, punctuation and capitalization are lost). &RCL; stores all internal data in Unicode UTF-8 format, and it can index files of many types with different character sets, encodings, and languages into the same index. It can process documents embedded inside other documents (for example a pdf document stored inside a Zip archive sent as an email attachment...), down to an arbitrary depth. Stemming is the process by which &RCL; reduces words to their radicals so that searching does not depend, for example, on a word being singular or plural (floor, floors), or on a verb tense (flooring, floored). Because the mechanisms used for stemming depend on the specific grammatical rules for each language, there is a separate &XAP; stemmer module for most common languages where stemming makes sense. &RCL; stores the unstemmed versions of terms in the main index and uses auxiliary databases for term expansion (one for each stemming language), which means that you can switch stemming languages between searches, or add a language without needing a full reindex. Storing documents written in different languages in the same index is possible, and commonly done. In this situation, you can specify several stemming languages for the index. &RCL; currently makes no attempt at automatic language recognition, which means that the stemmer will sometimes be applied to terms from other languages with potentially strange results. In practise, even if this introduces possibilities of confusion, this approach has been proven quite useful, and it is much less cumbersome than separating your documents according to what language they are written in. Before version 1.18, &RCL; stripped most accents and diacritics from terms, and converted them to lower case before either storing them in the index or searching for them. As a consequence, it was impossible to search for a particular capitalization of a term (US / us), or to discriminate two terms based on diacritics (sake / saké, mate / maté). As of version 1.18, &RCL; can optionally store the raw terms, without accent stripping or case conversion. In this configuration, it is still possible (and most common) for a query to be insensitive to case and/or diacritics. Appropriate term expansions are performed before actually accessing the main index. This is described in more detail in the section about index case and diacritics sensitivity. &RCL; has many parameters which define exactly what to index, and how to classify and decode the source documents. These are kept in configuration files. A default configuration is copied into a standard location (usually something like /usr/[local/]share/recoll/examples) during installation. The default values set by the configuration files in this directory may be overridden by values that you set inside your personal configuration, found by default in the .recoll sub-directory of your home directory. The default configuration will index your home directory with default parameters and should be sufficient for giving &RCL; a try, but you may want to adjust it later, which can be done either by editing the text files or by using configuration menus in the recoll GUI. Some other parameters affecting only the recoll GUI are stored in the standard location defined by Qt. The indexing process is started automatically the first time you execute the recoll GUI. Indexing can also be performed by executing the recollindex command. &RCL; indexing is multithreaded by default when appropriate hardware resources are available, and can perform in parallel multiple tasks among text extraction, segmentation and index updates. Searches are usually performed inside the recoll GUI, which has many options to help you find what you are looking for. However, there are other ways to perform &RCL; searches: mostly a command line interface, a Python programming interface, a KDE KIO slave module, and Ubuntu Unity Lens (for older versions) or Scope (for current versions) modules. Indexing Introduction Indexing is the process by which the set of documents is analyzed and the data entered into the database. &RCL; indexing is normally incremental: documents will only be processed if they have been modified since the last run. On the first execution, all documents will need processing. A full index build can be forced later by specifying an option to the indexing command (recollindex or ). recollindex skips files which caused an error during a previous pass. This is a performance optimization, and a new behaviour in version 1.21 (failed files were always retried by previous versions). The command line option can be set to retry failed files, for example after updating a filter. The following sections give an overview of different aspects of the indexing processes and configuration, with links to detailed sections. Depending on your data, temporary files may be needed during indexing, some of them possibly quite big. You can use the RECOLL_TMPDIR or TMPDIR environment variables to determine where they are created (the default is to use /tmp). Using TMPDIR has the nice property that it may also be taken into account by auxiliary commands executed by recollindex. Indexing modes &RCL; indexing can be performed along two different modes: <link linkend="RCL.INDEXING.PERIODIC"> Periodic (or batch) indexing:</link> indexing takes place at discrete times, by executing the recollindex command. The typical usage is to have a nightly indexing run programmed into your cron file. <link linkend="RCL.INDEXING.MONITOR">Real time indexing:</link> indexing takes place as soon as a file is created or changed. recollindex runs as a daemon and uses a file system alteration monitor such as inotify, Fam or Gamin to detect file changes. The choice between the two methods is mostly a matter of preference, and they can be combined by setting up multiple indexes (ie: use periodic indexing on a big documentation directory, and real time indexing on a small home directory). Monitoring a big file system tree can consume significant system resources. The choice of method and the parameters used can be configured from the recoll GUI: Preferences Indexing schedule Configurations, multiple indexes The parameters describing what is to be indexed and local preferences are defined in text files contained in a configuration directory. All parameters have defaults, defined in system-wide files. Without further configuration, &RCL; will index all appropriate files from your home directory, with a reasonable set of defaults. A default personal configuration directory ($HOME/.recoll/) is created when a &RCL; program is first executed. It is possible to create other configuration directories, and use them by setting the RECOLL_CONFDIR environment variable, or giving the option to any of the &RCL; commands. In some cases, it may be interesting to index different areas of the file system to separate databases. You can do this by using multiple configuration directories, each indexing a file system area to a specific database. Typically, this would be done to separate personal and shared indexes, or to take advantage of the organization of your data to improve search precision. The generated indexes can be queried concurrently in a transparent manner. For index generation, multiple configurations are totally independant from each other. When multiple indexes need to be used for a single search, some parameters should be consistent among the configurations. Document types &RCL; knows about quite a few different document types. The parameters for document types recognition and processing are set in configuration files. Most file types, like HTML or word processing files, only hold one document. Some file types, like email folders or zip archives, can hold many individually indexed documents, which may themselves be compound ones. Such hierarchies can go quite deep, and &RCL; can process, for example, a LibreOffice document stored as an attachment to an email message inside an email folder archived in a zip file... &RCL; indexing processes plain text, HTML, OpenDocument (Open/LibreOffice), email formats, and a few others internally. Other file types (ie: postscript, pdf, ms-word, rtf ...) need external applications for preprocessing. The list is in the installation section. After every indexing operation, &RCL; updates a list of commands that would be needed for indexing existing files types. This list can be displayed by selecting the menu option File Show Missing Helpers in the recoll GUI. It is stored in the missing text file inside the configuration directory. By default, &RCL; will try to index any file type that it has a way to read. This is sometimes not desirable, and there are ways to either exclude some types, or on the contrary to define a positive list of types to be indexed. In the latter case, any type not in the list will be ignored. Excluding types can be done by adding wildcard name patterns to the skippedNames list, which can be done from the GUI Index configuration menu. For versions 1.20 and later, you can alternatively set the excludedmimetypes list in the configuration file. This can be redefined for subdirectories. You can also define an exclusive list of MIME types to be indexed (no others will be indexed), by settting the indexedmimetypes configuration variable. Example: indexedmimetypes = text/html application/pdf It is possible to redefine this parameter for subdirectories. Example: [/path/to/my/dir] indexedmimetypes = application/pdf (When using sections like this, don't forget that they remain in effect until the end of the file or another section indicator). excludedmimetypes or indexedmimetypes, can be set either by editing the main configuration file (recoll.conf), or from the GUI index configuration tool. Indexing failures Indexing may fail for some documents, for a number of reasons: a helper program may be missing, the document may be corrupt, we may fail to uncompress a file because no file system space is available, etc. &RCL; versions prior to 1.21 always retried to index files which had previously caused an error. This guaranteed that anything that may have become indexable (for example because a helper had been installed) would be indexed. However this was bad for performance because some indexing failures may be quite costly (for example failing to uncompress a big file because of insufficient disk space). The indexer in &RCL; versions 1.21 and later do not retry failed file by default. Retrying will only occur if an explicit option () is set on the recollindex command line, or if a script executed when recollindex starts up says so. The script is defined by a configuration variable (checkneedretryindexscript), and makes a rather lame attempt at deciding if a helper command may have been installed, by checking if any of the common bin directories have changed. Recovery In the rare case where the index becomes corrupted (which can signal itself by weird search results or crashes), the index files need to be erased before restarting a clean indexing pass. Just delete the xapiandb directory (see next section), or, alternatively, start the next recollindex with the option, which will reset the database before indexing. Index storage The default location for the index data is the xapiandb subdirectory of the &RCL; configuration directory, typically $HOME/.recoll/xapiandb/. This can be changed via two different methods (with different purposes): You can specify a different configuration directory by setting the RECOLL_CONFDIR environment variable, or using the option to the &RCL; commands. This method would typically be used to index different areas of the file system to different indexes. For example, if you were to issue the following commands: export RECOLL_CONFDIR=~/.indexes-email recoll Then &RCL; would use configuration files stored in ~/.indexes-email/ and, (unless specified otherwise in recoll.conf) would look for the index in ~/.indexes-email/xapiandb/. Using multiple configuration directories and configuration options allows you to tailor multiple configurations and indexes to handle whatever subset of the available data you wish to make searchable. For a given configuration directory, you can specify a non-default storage location for the index by setting the dbdir parameter in the configuration file (see the configuration section). This method would mainly be of use if you wanted to keep the configuration directory in its default location, but desired another location for the index, typically out of disk occupation concerns. The size of the index is determined by the size of the set of documents, but the ratio can vary a lot. For a typical mixed set of documents, the index size will often be close to the data set size. In specific cases (a set of compressed mbox files for example), the index can become much bigger than the documents. It may also be much smaller if the documents contain a lot of images or other non-indexed data (an extreme example being a set of mp3 files where only the tags would be indexed). Of course, images, sound and video do not increase the index size, which means that nowadays (2012), typically, even a big index will be negligible against the total amount of data on the computer. The index data directory (xapiandb) only contains data that can be completely rebuilt by an index run (as long as the original documents exist), and it can always be destroyed safely. &XAP; index formats &XAP; versions usually support several formats for index storage. A given major &XAP; version will have a current format, used to create new indexes, and will also support the format from the previous major version. &XAP; will not convert automatically an existing index from the older format to the newer one. If you want to upgrade to the new format, or if a very old index needs to be converted because its format is not supported any more, you will have to explicitly delete the old index, then run a normal indexing process. Using the option to recollindex is not sufficient to change the format, you will have to delete all files inside the index directory (typically ~/.recoll/xapiandb) before starting the indexing. Security aspects The &RCL; index does not hold copies of the indexed documents. But it does hold enough data to allow for an almost complete reconstruction. If confidential data is indexed, access to the database directory should be restricted. &RCL; (since version 1.4) will create the configuration directory with a mode of 0700 (access by owner only). As the index data directory is by default a sub-directory of the configuration directory, this should result in appropriate protection. If you use another setup, you should think of the kind of protection you need for your index, set the directory and files access modes appropriately, and also maybe adjust the umask used during index updates. Index configuration Variables set inside the &RCL; configuration files control which areas of the file system are indexed, and how files are processed. These variables can be set either by editing the text files or by using the dialogs in the recoll GUI. The first time you start recoll, you will be asked whether or not you would like it to build the index. If you want to adjust the configuration before indexing, just click Cancel at this point, which will get you into the configuration interface. If you exit at this point, recoll will have created a ~/.recoll directory containing empty configuration files, which you can edit by hand. The configuration is documented inside the installation chapter of this document, or in the recoll.conf 5 man page, but the most current information will most likely be the comments inside the sample file. The most immediately useful variable you may interested in is probably topdirs, which determines what subtrees get indexed. The applications needed to index file types other than text, HTML or email (ie: pdf, postscript, ms-word...) are described in the external packages section. As of Recoll 1.18 there are two incompatible types of Recoll indexes, depending on the treatment of character case and diacritics. The next section describes the two types in more detail. Multiple indexes Multiple &RCL; indexes can be created by using several configuration directories which are usually set to index different areas of the file system. A specific index can be selected for updating or searching, using the RECOLL_CONFDIR environment variable or the option to recoll and recollindex. A typical usage scenario for the multiple index feature would be for a system administrator to set up a central index for shared data, that you choose to search or not in addition to your personal data. Of course, there are other possibilities. There are many cases where you know the subset of files that should be searched, and where narrowing the search can improve the results. You can achieve approximately the same effect with the directory filter in advanced search, but multiple indexes will have much better performance and may be worth the trouble. A recollindex program instance can only update one specific index. The main index (defined by RECOLL_CONFDIR or ) is always active. If this is undesirable, you can set up your base configuration to index an empty directory. The different search interfaces (GUI, command line, ...) have different methods to define the set of indexes to be used, see the appropriate section. If a set of multiple indexes are to be used together for searches, some configuration parameters must be consistent among the set. These are parameters which need to be the same when indexing and searching. As the parameters come from the main configuration when searching, they need to be compatible with what was set when creating the other indexes (which came from their respective configuration directories). Most importantly, all indexes to be queried concurrently must have the same option concerning character case and diacritics stripping, but there are other constraints. Most of the relevant parameters are described in the linked section. Index case and diacritics sensitivity As of &RCL; version 1.18 you have a choice of building an index with terms stripped of character case and diacritics, or one with raw terms. For a source term of Résumé, the former will store resume, the latter Résumé. Each type of index allows performing searches insensitive to case and diacritics: with a raw index, the user entry will be expanded to match all case and diacritics variations present in the index. With a stripped index, the search term will be stripped before searching. A raw index allows for another possibility which a stripped index cannot offer: using case and diacritics to discriminate between terms, returning different results when searching for US and us or resume and résumé. Read the section about search case and diacritics sensitivity for more details. The type of index to be created is controlled by the indexStripChars configuration variable which can only be changed by editing the configuration file. Any change implies an index reset (not automated by &RCL;), and all indexes in a search must be set in the same way (again, not checked by &RCL;). If the indexStripChars is not set, &RCL; 1.18 creates a stripped index by default, for compatibility with previous versions. As a cost for added capability, a raw index will be slightly bigger than a stripped one (around 10%). Also, searches will be more complex, so probably slightly slower, and the feature is still young, so that a certain amount of weirdness cannot be excluded. One of the most adverse consequence of using a raw index is that some phrase and proximity searches may become impossible: because each term needs to be expanded, and all combinations searched for, the multiplicative expansion may become unmanageable. The index configuration GUI Most parameters for a given index configuration can be set from a recoll GUI running on this configuration (either as default, or by setting RECOLL_CONFDIR or the option.) The interface is started from the Preferences Index Configuration menu entry. It is divided in four tabs, Global parameters, Local parameters, Web history (which is explained in the next section) and Search parameters. The Global parameters tab allows setting global variables, like the lists of top directories, skipped paths, or stemming languages. The Local parameters tab allows setting variables that can be redefined for subdirectories. This second tab has an initially empty list of customisation directories, to which you can add. The variables are then set for the currently selected directory (or at the top level if the empty line is selected). The Search parameters section defines parameters which are used at query time, but are global to an index and affect all search tools, not only the GUI. The meaning for most entries in the interface is self-evident and documented by a ToolTip popup on the text label. For more detail, you will need to refer to the configuration section of this guide. The configuration tool normally respects the comments and most of the formatting inside the configuration file, so that it is quite possible to use it on hand-edited files, which you might nevertheless want to backup first... Indexing WEB pages you wisit With the help of a Firefox extension, &RCL; can index the Internet pages that you visit. The extension was initially designed for the Beagle indexer, but it has recently be renamed and better adapted to &RCL;. The extension works by copying visited WEB pages to an indexing queue directory, which &RCL; then processes, indexing the data, storing it into a local cache, then removing the file from the queue. This feature can be enabled in the GUI Index configuration panel, or by editing the configuration file (set processwebqueue to 1). A current pointer to the extension can be found, along with up-to-date instructions, on the Recoll wiki. A copy of the indexed WEB pages is retained by Recoll in a local cache (from which previews can be fetched). The cache size can be adjusted from the Index configuration / Web history panel. Once the maximum size is reached, old pages are purged - both from the cache and the index - to make room for new ones, so you need to explicitly archive in some other place the pages that you want to keep indefinitely. Extended attributes data User extended attributes are named pieces of information that most modern file systems can attach to any file. &RCL; versions 1.19 and later process extended attributes as document fields by default. For older versions, this has to be activated at build time. A freedesktop standard defines a few special attributes, which are handled as such by &RCL;: mime_type If set, this overrides any other determination of the file MIME type. charset If set, this defines the file character set (mostly useful for plain text files). By default, other attributes are handled as &RCL; fields. On Linux, the user prefix is removed from the name. This can be configured more precisely inside the fields configuration file. Importing external tags During indexing, it is possible to import metadata for each file by executing commands. For example, this could extract user tag data for the file and store it in a field for indexing. See the section about the metadatacmds field in the main configuration chapter for more detail. Periodic indexing Running indexing Indexing is always performed by the recollindex program, which can be started either from the command line or from the File menu in the recoll GUI program. When started from the GUI, the indexing will run on the same configuration recoll was started on. When started from the command line, recollindex will use the RECOLL_CONFDIR variable or accept a confdir option to specify a non-default configuration directory. If the recoll program finds no index when it starts, it will automatically start indexing (except if canceled). The recollindex indexing process can be interrupted by sending an interrupt (Ctrl-C, SIGINT) or terminate (SIGTERM) signal. Some time may elapse before the process exits, because it needs to properly flush and close the index. This can also be done from the recoll GUI File Stop Indexing menu entry. After such an interruption, the index will be somewhat inconsistent because some operations which are normally performed at the end of the indexing pass will have been skipped (for example, the stemming and spelling databases will be inexistant or out of date). You just need to restart indexing at a later time to restore consistency. The indexing will restart at the interruption point (the full file tree will be traversed, but files that were indexed up to the interruption and for which the index is still up to date will not need to be reindexed). recollindex has a number of other options which are described in its man page. Only a few will be described here. Option will reset the index when starting. This is almost the same as destroying the index files (the nuance is that the &XAP; format version will not be changed). Option will force the update of all documents without resetting the index first. This will not have the "clean start" aspect of , but the advantage is that the index will remain available for querying while it is rebuilt, which can be a significant advantage if it is very big (some installations need days for a full index rebuild). Option will force retrying files which previously failed to be indexed, for example because of a missing helper program. Of special interest also, maybe, are the and options. allows indexing an explicit list of files (given as command line parameters or read on stdin). tells recollindex to ignore file selection parameters from the configuration. Together, these options allow building a custom file selection process for some area of the file system, by adding the top directory to the skippedPaths list and using an appropriate file selection method to build the file list to be fed to recollindex . Trivial example: find . -name indexable.txt -print | recollindex -if recollindex will not descend into subdirectories specified as parameters, but just add them as index entries. It is up to the external file selection method to build the complete file list. Using <command>cron</command> to automate indexing The most common way to set up indexing is to have a cron task execute it every night. For example the following crontab entry would do it every day at 3:30AM (supposing recollindex is in your PATH): /some/tmp/dir/recolltrace 2>&1 ]]> Or, using anacron: /tmp/rcltraceme 2>&1" ]]> As of version 1.17 the &RCL; GUI has dialogs to manage crontab entries for recollindex. You can reach them from the Preferences Indexing Schedule menu. They only work with the good old cron, and do not give access to all features of cron scheduling. The usual command to edit your crontab is crontab (which will usually start the vi editor to edit the file). You may have more sophisticated tools available on your system. Please be aware that there may be differences between your usual interactive command line environment and the one seen by crontab commands. Especially the PATH variable may be of concern. Please check the crontab manual pages about possible issues. Real time indexing Real time monitoring/indexing is performed by starting the recollindex command. With this option, recollindex will detach from the terminal and become a daemon, permanently monitoring file changes and updating the index. Under KDE, Gnome and some other desktop environments, the daemon can automatically started when you log in, by creating a desktop file inside the ~/.config/autostart directory. This can be done for you by the &RCL; GUI. Use the Preferences->Indexing Schedule menu. With older X11 setups, starting the daemon is normally performed as part of the user session script. The rclmon.sh script can be used to easily start and stop the daemon. It can be found in the examples directory (typically /usr/local/[share/]recoll/examples). For example, my out of fashion xdm-based session has a .xsession script with the following lines at the end: recollconf=$HOME/.recoll-home recolldata=/usr/local/share/recoll RECOLL_CONFDIR=$recollconf $recolldata/examples/rclmon.sh start fvwm The indexing daemon gets started, then the window manager, for which the session waits. By default the indexing daemon will monitor the state of the X11 session, and exit when it finishes, it is not necessary to kill it explicitly. (The X11 server monitoring can be disabled with option to recollindex). If you use the daemon completely out of an X11 session, you need to add option to disable X11 session monitoring (else the daemon will not start). By default, the messages from the indexing daemon will be setn to the same file as those from the interactive commands (logfilename). You may want to change this by setting the daemlogfilename and daemloglevel configuration parameters. Also the log file will only be truncated when the daemon starts. If the daemon runs permanently, the log file may grow quite big, depending on the log level. When building &RCL;, the real time indexing support can be customised during package configuration with the or options. The default is currently to include inotify monitoring on systems that support it, and, as of &RCL; 1.17, gamin support on FreeBSD. While it is convenient that data is indexed in real time, repeated indexing can generate a significant load on the system when files such as email folders change. Also, monitoring large file trees by itself significantly taxes system resources. You probably do not want to enable it if your system is short on resources. Periodic indexing is adequate in most cases. Increasing resources for inotify On Linux systems, monitoring a big tree may need increasing the resources available to inotify, which are normally defined in /etc/sysctl.conf. ### inotify # # cat /proc/sys/fs/inotify/max_queued_events - 16384 # cat /proc/sys/fs/inotify/max_user_instances - 128 # cat /proc/sys/fs/inotify/max_user_watches - 16384 # # -- Change to: # fs.inotify.max_queued_events=32768 fs.notify.max_user_instances=256 fs.inotify.max_user_watches=32768 Especially, you will need to trim your tree or adjust the max_user_watches value if indexing exits with a message about errno ENOSPC (28) from inotify_add_watch. Slowing down the reindexing rate for fast changing files When using the real time monitor, it may happen that some files need to be indexed, but change so often that they impose an excessive load for the system. &RCL; provides a configuration option to specify the minimum time before which a file, specified by a wildcard pattern, cannot be reindexed. See the mondelaypatterns parameter in the configuration section. Searching Searching with the Qt graphical user interface The recoll program provides the main user interface for searching. It is based on the Qt library. recoll has two search modes: Simple search (the default, on the main screen) has a single entry field where you can enter multiple words. Advanced search (a panel accessed through the Tools menu or the toolbox bar icon) has multiple entry fields, which you may use to build a logical condition, with additional filtering on file type, location in the file system, modification date, and size. In most cases, you can enter the terms as you think them, even if they contain embedded punctuation or other non-textual characters. For example, &RCL; can handle things like email addresses, or arbitrary cut and paste from another text window, punctation and all. The main case where you should enter text differently from how it is printed is for east-asian languages (Chinese, Japanese, Korean). Words composed of single or multiple characters should be entered separated by white space in this case (they would typically be printed without white space). Some searches can be quite complex, and you may want to re-use them later, perhaps with some tweaking. &RCL; versions 1.21 and later can save and restore searches, using XML files. See Saving and restoring queries. Simple search Start the recoll program. Possibly choose a search mode: Any term, All terms, File name or Query language. Enter search term(s) in the text field at the top of the window. Click the Search button or hit the Enter key to start the search. The initial default search mode is Query language. Without special directives, this will look for documents containing all of the search terms (the ones with more terms will get better scores), just like the All terms mode which will ignore such directives. Any term will search for documents where at least one of the terms appear. The Query Language features are described in a separate section. All search modes allow wildcards inside terms (*, ?, []). You may want to have a look at the section about wildcards for more information about this. File name will specifically look for file names. The point of having a separate file name search is that wild card expansion can be performed more efficiently on a small subset of the index (allowing wild cards on the left of terms without excessive penality). Things to know: White space in the entry should match white space in the file name, and is not treated specially. The search is insensitive to character case and accents, independantly of the type of index. An entry without any wild card character and not capitalized will be prepended and appended with '*' (ie: etc -> *etc*, but Etc -> etc). If you have a big index (many files), excessively generic fragments may result in inefficient searches. You can search for exact phrases (adjacent words in a given order) by enclosing the input inside double quotes. Ex: "virtual reality". When using a stripped index, character case has no influence on search, except that you can disable stem expansion for any term by capitalizing it. Ie: a search for floor will also normally look for flooring, floored, etc., but a search for Floor will only look for floor, in any character case. Stemming can also be disabled globally in the preferences. When using a raw index, the rules are a bit more complicated. &RCL; remembers the last few searches that you performed. You can use the simple search text entry widget (a combobox) to recall them (click on the thing at the right of the text field). Please note, however, that only the search texts are remembered, not the mode (all/any/file name). Typing Esc Space while entering a word in the simple search entry will open a window with possible completions for the word. The completions are extracted from the database. Double-clicking on a word in the result list or a preview window will insert it into the simple search entry field. You can cut and paste any text into an All terms or Any term search field, punctuation, newlines and all - except for wildcard characters (single ? characters are ok). &RCL; will process it and produce a meaningful search. This is what most differentiates this mode from the Query Language mode, where you have to care about the syntax. You can use the Tools Advanced search dialog for more complex searches. The default result list After starting a search, a list of results will instantly be displayed in the main list window. By default, the document list is presented in order of relevance (how well the system estimates that the document matches the query). You can sort the result by ascending or descending date by using the vertical arrows in the toolbar. Clicking on the Preview link for an entry will open an internal preview window for the document. Further Preview clicks for the same search will open tabs in the existing preview window. You can use Shift+Click to force the creation of another preview window, which may be useful to view the documents side by side. (You can also browse successive results in a single preview window by typing Shift+ArrowUp/Down in the window). Clicking the Open link will start an external viewer for the document. By default, &RCL; lets the desktop choose the appropriate application for most document types (there is a short list of exceptions, see further). If you prefer to completely customize the choice of applications, you can uncheck the Use desktop preferences option in the GUI preferences dialog, and click the Choose editor applications button to adjust the predefined &RCL; choices. The tool accepts multiple selections of MIME types (e.g. to set up the editor for the dozens of office file types). Even when Use desktop preferences is checked, there is a small list of exceptions, for MIME types where the &RCL; choice should override the desktop one. These are applications which are well integrated with &RCL;, especially evince for viewing PDF and Postscript files because of its support for opening the document at a specific page and passing a search string as an argument. Of course, you can edit the list (in the GUI preferences) if you would prefer to lose the functionality and use the standard desktop tool. You may also change the choice of applications by editing the mimeview configuration file if you find this more convenient. Each result entry also has a right-click menu with an Open With entry. This lets you choose an application from the list of those which registered with the desktop for the document MIME type. The Preview and Open edit links may not be present for all entries, meaning that &RCL; has no configured way to preview a given file type (which was indexed by name only), or no configured external editor for the file type. This can sometimes be adjusted simply by tweaking the mimemap and mimeview configuration files (the latter can be modified with the user preferences dialog). The format of the result list entries is entirely configurable by using the preference dialog to edit an HTML fragment. You can click on the Query details link at the top of the results page to see the query actually performed, after stem expansion and other processing. Double-clicking on any word inside the result list or a preview window will insert it into the simple search text. The result list is divided into pages (the size of which you can change in the preferences). Use the arrow buttons in the toolbar or the links at the bottom of the page to browse the results. No results: the spelling suggestions When a search yields no result, and if the aspell dictionary is configured, &RCL; will try to check for misspellings among the query terms, and will propose lists of replacements. Clicking on one of the suggestions will replace the word and restart the search. You can hold any of the modifier keys (Ctrl, Shift, etc.) while clicking if you would rather stay on the suggestion screen because several terms need replacement. The result list right-click menu Apart from the preview and edit links, you can display a pop-up menu by right-clicking over a paragraph in the result list. This menu has the following entries: Preview Open Open With Run Script Copy File Name Copy Url Save to File Find similar Preview Parent document Open Parent document Open Snippets Window The Preview and Open entries do the same thing as the corresponding links. Open With lets you open the document with one of the applications claiming to be able to handle its MIME type (the information comes from the .desktop files in /usr/share/applications). Run Script allows starting an arbitrary command on the result file. It will only appear for results which are top-level files. See further for a more detailed description. The Copy File Name and Copy Url copy the relevant data to the clipboard, for later pasting. Save to File allows saving the contents of a result document to a chosen file. This entry will only appear if the document does not correspond to an existing file, but is a subdocument inside such a file (ie: an email attachment). It is especially useful to extract attachments with no associated editor. The Open/Preview Parent document entries allow working with the higher level document (e.g. the email message an attachment comes from). &RCL; is sometimes not totally accurate as to what it can or can't do in this area. For example the Parent entry will also appear for an email which is part of an mbox folder file, but you can't actually visualize the mbox (there will be an error dialog if you try). If the document is a top-level file, Open Parent will start the default file manager on the enclosing filesystem directory. The Find similar entry will select a number of relevant term from the current document and enter them into the simple search field. You can then start a simple search, with a good chance of finding documents related to the current result. I can't remember a single instance where this function was actually useful to me... The Open Snippets Window entry will only appear for documents which support page breaks (typically PDF, Postscript, DVI). The snippets window lists extracts from the document, taken around search terms occurrences, along with the corresponding page number, as links which can be used to start the native viewer on the appropriate page. If the viewer supports it, its search function will also be primed with one of the search terms. The result table In &RCL; 1.15 and newer, the results can be displayed in spreadsheet-like fashion. You can switch to this presentation by clicking the table-like icon in the toolbar (this is a toggle, click again to restore the list). Clicking on the column headers will allow sorting by the values in the column. You can click again to invert the order, and use the header right-click menu to reset sorting to the default relevance order (you can also use the sort-by-date arrows to do this). Both the list and the table display the same underlying results. The sort order set from the table is still active if you switch back to the list mode. You can click twice on a date sort arrow to reset it from there. The header right-click menu allows adding or deleting columns. The columns can be resized, and their order can be changed (by dragging). All the changes are recorded when you quit recoll Hovering over a table row will update the detail area at the bottom of the window with the corresponding values. You can click the row to freeze the display. The bottom area is equivalent to a result list paragraph, with links for starting a preview or a native application, and an equivalent right-click menu. Typing Esc (the Escape key) will unfreeze the display. Running arbitrary commands on result files (1.20 and later) Apart from the Open and Open With operations, which allow starting an application on a result document (or a temporary copy), based on its MIME type, it is also possible to run arbitrary commands on results which are top-level files, using the Run Script entry in the results pop-up menu. The commands which will appear in the Run Script submenu must be defined by .desktop files inside the scripts subdirectory of the current configuration directory. Here follows an example of a .desktop file, which could be named for example, ~/.recoll/scripts/myscript.desktop (the exact file name inside the directory is irrelevant): [Desktop Entry] Type=Application Name=MyFirstScript Exec=/home/me/bin/tryscript %F MimeType=*/* The Name attribute defines the label which will appear inside the Run Script menu. The Exec attribute defines the program to be run, which does not need to actually be a script, of course. The MimeType attribute is not used, but needs to exist. The commands defined this way can also be used from links inside the result paragraph. As an example, it might make sense to write a script which would move the document to the trash and purge it from the &RCL; index. Displaying thumbnails The default format for the result list entries and the detail area of the result table display an icon for each result document. The icon is either a generic one determined from the MIME type, or a thumbnail of the document appearance. Thumbnails are only displayed if found in the standard freedesktop location, where they would typically have been created by a file manager. Recoll has no capability to create thumbnails. A relatively simple trick is to use the Open parent document/folder entry in the result list popup menu. This should open a file manager window on the containing directory, which should in turn create the thumbnails (depending on your settings). Restarting the search should then display the thumbnails. There are also some pointers about thumbnail generation on the &RCL; wiki. The preview window The preview window opens when you first click a Preview link inside the result list. Subsequent preview requests for a given search open new tabs in the existing window (except if you hold the Shift key while clicking which will open a new window for side by side viewing). Starting another search and requesting a preview will create a new preview window. The old one stays open until you close it. You can close a preview tab by typing Ctrl-W (Ctrl + W) in the window. Closing the last tab for a window will also close the window. Of course you can also close a preview window by using the window manager button in the top of the frame. You can display successive or previous documents from the result list inside a preview tab by typing Shift+Down or Shift+Up (Down and Up are the arrow keys). A right-click menu in the text area allows switching between displaying the main text or the contents of fields associated to the document (ie: author, abtract, etc.). This is especially useful in cases where the term match did not occur in the main text but in one of the fields. In the case of images, you can switch between three displays: the image itself, the image metadata as extracted by exiftool and the fields, which is the metadata stored in the index. You can print the current preview window contents by typing Ctrl-P (Ctrl + P) in the window text. Searching inside the preview The preview window has an internal search capability, mostly controlled by the panel at the bottom of the window, which works in two modes: as a classical editor incremental search, where we look for the text entered in the entry zone, or as a way to walk the matches between the document and the &RCL; query that found it. Incremental text search The preview tabs have an internal incremental search function. You initiate the search either by typing a / (slash) or CTL-F inside the text area or by clicking into the Search for: text field and entering the search string. You can then use the Next and Previous buttons to find the next/previous occurrence. You can also type F3 inside the text area to get to the next occurrence. If you have a search string entered and you use Ctrl-Up/Ctrl-Down to browse the results, the search is initiated for each successive document. If the string is found, the cursor will be positioned at the first occurrence of the search string. Walking the match lists If the entry area is empty when you click the Next or Previous buttons, the editor will be scrolled to show the next match to any search term (the next highlighted zone). If you select a search group from the dropdown list and click Next or Previous, the match list for this group will be walked. This is not the same as a text search, because the occurences will include non-exact matches (as caused by stemming or wildcards). The search will revert to the text mode as soon as you edit the entry area. The Query Fragments window Selecting the Tools Query Fragments menu entry will open a window with radio- and check-buttons which can be used to activate query language fragments for filtering the current query. This can be useful if you have frequent reusable selectors, for example, filtering on alternate directories, or searching just one category of files, not covered by the standard category selectors. The contents of the window are entirely customizable, and defined by the contents of the fragbuts.xml file inside the configuration directory. The sample file distributed with &RCL; (which you should be able to find under /usr/share/recoll/examples/fragbuts.xml), contains an example which filters the results from the WEB history. Here follows an example: <?xml version="1.0" encoding="UTF-8"?> <fragbuts version="1.0"> <radiobuttons> <fragbut> <label>Include Web Results</label> <frag></frag> </fragbut> <fragbut> <label>Exclude Web Results</label> <frag>-rclbes:BGL</frag> </fragbut> <fragbut> <label>Only Web Results</label> <frag>rclbes:BGL</frag> </fragbut> </radiobuttons> <buttons> <fragbut> <label>Year 2010</label> <frag>date:2010-01-01/2010-12-31</frag> </fragbut> <fragbut> <label>My Great Directory Only</label> <frag>dir:/my/great/directory</frag> </fragbut> </buttons> </fragbuts> Each radiobuttons or buttons section defines a line of checkbuttons or radiobuttons inside the window. Any number of buttons can be selected, but the radiobuttons in a line are exclusive. Each fragbut section defines the label for a button, and the Query Language fragment which will be added (as an AND filter) before performing the query if the button is active. This feature is new in &RCL; 1.20, and will probably be refined depending on user feedback. Complex/advanced search The advanced search dialog helps you build more complex queries without memorizing the search language constructs. It can be opened through the Tools menu or through the main toolbar. &RCL; keeps a history of searches. See Advanced search history. The dialog has two tabs: The first tab lets you specify terms to search for, and permits specifying multiple clauses which are combined to build the search. The second tab lets filter the results according to file size, date of modification, MIME type, or location. Click on the Start Search button in the advanced search dialog, or type Enter in any text field to start the search. The button in the main window always performs a simple search. Click on the Show query details link at the top of the result page to see the query expansion. Avanced search: the "find" tab This part of the dialog lets you constructc a query by combining multiple clauses of different types. Each entry field is configurable for the following modes: All terms. Any term. None of the terms. Phrase (exact terms in order within an adjustable window). Proximity (terms in any order within an adjustable window). Filename search. Additional entry fields can be created by clicking the Add clause button. When searching, the non-empty clauses will be combined either with an AND or an OR conjunction, depending on the choice made on the left (All clauses or Any clause). Entries of all types except "Phrase" and "Near" accept a mix of single words and phrases enclosed in double quotes. Stemming and wildcard expansion will be performed as for simple search. Phrases and Proximity searches These two clauses work in similar ways, with the difference that proximity searches do not impose an order on the words. In both cases, an adjustable number (slack) of non-matched words may be accepted between the searched ones (use the counter on the left to adjust this count). For phrases, the default count is zero (exact match). For proximity it is ten (meaning that two search terms, would be matched if found within a window of twelve words). Examples: a phrase search for quick fox with a slack of 0 will match quick fox but not quick brown fox. With a slack of 1 it will match the latter, but not fox quick. A proximity search for quick fox with the default slack will match the latter, and also a fox is a cunning and quick animal. Avanced search: the "filter" tab This part of the dialog has several sections which allow filtering the results of a search according to a number of criteria The first section allows filtering by dates of last modification. You can specify both a minimum and a maximum date. The initial values are set according to the oldest and newest documents found in the index. The next section allows filtering the results by file size. There are two entries for minimum and maximum size. Enter decimal numbers. You can use suffix multipliers: k/K, m/M, g/G, t/T for 1E3, 1E6, 1E9, 1E12 respectively. The next section allows filtering the results by their MIME types, or MIME categories (ie: media/text/message/etc.). You can transfer the types between two boxes, to define which will be included or excluded by the search. The state of the file type selection can be saved as the default (the file type filter will not be activated at program start-up, but the lists will be in the restored state). The bottom section allows restricting the search results to a sub-tree of the indexed area. You can use the Invert checkbox to search for files not in the sub-tree instead. If you use directory filtering often and on big subsets of the file system, you may think of setting up multiple indexes instead, as the performance may be better. You can use relative/partial paths for filtering. Ie, entering dirA/dirB would match either /dir1/dirA/dirB/myfile1 or /dir2/dirA/dirB/someother/myfile2. Avanced search history The advanced search tool memorizes the last 100 searches performed. You can walk the saved searches by using the up and down arrow keys while the keyboard focus belongs to the advanced search dialog. The complex search history can be erased, along with the one for simple search, by selecting the File Erase Search History menu entry. The term explorer tool &RCL; automatically manages the expansion of search terms to their derivatives (ie: plural/singular, verb inflections). But there are other cases where the exact search term is not known. For example, you may not remember the exact spelling, or only know the beginning of the name. The search will only propose replacement terms with spelling variations when no matching document were found. In some cases, both proper spellings and mispellings are present in the index, and it may be interesting to look for them explicitely. The term explorer tool (started from the toolbar icon or from the Term explorer entry of the Tools menu) can be used to search the full index terms list. It has three modes of operations: Wildcard In this mode of operation, you can enter a search string with shell-like wildcards (*, ?, []). ie: xapi* would display all index terms beginning with xapi. (More about wildcards here). Regular expression This mode will accept a regular expression as input. Example: word[0-9]+. The expression is implicitely anchored at the beginning. Ie: press will match pression but not expression. You can use .*press to match the latter, but be aware that this will cause a full index term list scan, which can be quite long. Stem expansion This mode will perform the usual stem expansion normally done as part user input processing. As such it is probably mostly useful to demonstrate the process. Spelling/Phonetic In this mode, you enter the term as you think it is spelled, and &RCL; will do its best to find index terms that sound like your entry. This mode uses the Aspell spelling application, which must be installed on your system for things to work (if your documents contain non-ascii characters, &RCL; needs an aspell version newer than 0.60 for UTF-8 support). The language which is used to build the dictionary out of the index terms (which is done at the end of an indexing pass) is the one defined by your NLS environment. Weird things will probably happen if languages are mixed up. Note that in cases where &RCL; does not know the beginning of the string to search for (ie a wildcard expression like *coll), the expansion can take quite a long time because the full index term list will have to be processed. The expansion is currently limited at 10000 results for wildcards and regular expressions. It is possible to change the limit in the configuration file. Double-clicking on a term in the result list will insert it into the simple search entry field. You can also cut/paste between the result list and any entry field (the end of lines will be taken care of). Multiple indexes See the section describing the use of multiple indexes for generalities. Only the aspects concerning the recoll GUI are described here. A recoll program instance is always associated with a specific index, which is the one to be updated when requested from the File menu, but it can use any number of &RCL; indexes for searching. The external indexes can be selected through the external indexes tab in the preferences dialog. Index selection is performed in two phases. A set of all usable indexes must first be defined, and then the subset of indexes to be used for searching. These parameters are retained across program executions (there are kept separately for each &RCL; configuration). The set of all indexes is usually quite stable, while the active ones might typically be adjusted quite frequently. The main index (defined by RECOLL_CONFDIR) is always active. If this is undesirable, you can set up your base configuration to index an empty directory. When adding a new index to the set, you can select either a &RCL; configuration directory, or directly a &XAP; index directory. In the first case, the &XAP; index directory will be obtained from the selected configuration. As building the set of all indexes can be a little tedious when done through the user interface, you can use the RECOLL_EXTRA_DBS environment variable to provide an initial set. This might typically be set up by a system administrator so that every user does not have to do it. The variable should define a colon-separated list of index directories, ie: export RECOLL_EXTRA_DBS=/some/place/xapiandb:/some/other/db Another environment variable, RECOLL_ACTIVE_EXTRA_DBS allows adding to the active list of indexes. This variable was suggested and implemented by a &RCL; user. It is mostly useful if you use scripts to mount external volumes with &RCL; indexes. By using RECOLL_EXTRA_DBS and RECOLL_ACTIVE_EXTRA_DBS, you can add and activate the index for the mounted volume when starting recoll. RECOLL_ACTIVE_EXTRA_DBS is available for &RCL; versions 1.17.2 and later. A change was made in the same update so that recoll will automatically deactivate unreachable indexes when starting up. Document history Documents that you actually view (with the internal preview or an external tool) are entered into the document history, which is remembered. You can display the history list by using the Tools/Doc History menu entry. You can erase the document history by using the Erase document history entry in the File menu. Sorting search results and collapsing duplicates The documents in a result list are normally sorted in order of relevance. It is possible to specify a different sort order, either by using the vertical arrows in the GUI toolbox to sort by date, or switching to the result table display and clicking on any header. The sort order chosen inside the result table remains active if you switch back to the result list, until you click one of the vertical arrows, until both are unchecked (you are back to sort by relevance). Sort parameters are remembered between program invocations, but result sorting is normally always inactive when the program starts. It is possible to keep the sorting activation state between program invocations by checking the Remember sort activation state option in the preferences. It is also possible to hide duplicate entries inside the result list (documents with the exact same contents as the displayed one). The test of identity is based on an MD5 hash of the document container, not only of the text contents (so that ie, a text document with an image added will not be a duplicate of the text only). Duplicates hiding is controlled by an entry in the GUI configuration dialog, and is off by default. As of release 1.19, when a result document does have undisplayed duplicates, a Dups link will be shown with the result list entry. Clicking the link will display the paths (URLs + ipaths) for the duplicate entries. Search tips, shortcuts Terms and search expansion Term completion Typing Esc Space in the simple search entry field while entering a word will either complete the current word if its beginning matches a unique term in the index, or open a window to propose a list of completions. Picking up new terms from result or preview text Double-clicking on a word in the result list or in a preview window will copy it to the simple search entry field. Wildcards Wildcards can be used inside search terms in all forms of searches. More about wildcards. Automatic suffixes Words like odt or ods can be automatically turned into query language ext:xxx clauses. This can be enabled in the Search preferences panel in the GUI. Disabling stem expansion Entering a capitalized word in any search field will prevent stem expansion (no search for gardening if you enter Garden instead of garden). This is the only case where character case should make a difference for a &RCL; search. You can also disable stem expansion or change the stemming language in the preferences. Finding related documents Selecting the Find similar documents entry in the result list paragraph right-click menu will select a set of "interesting" terms from the current result, and insert them into the simple search entry field. You can then possibly edit the list and start a search to find documents which may be apparented to the current result. File names File names are added as terms during indexing, and you can specify them as ordinary terms in normal search fields (&RCL; used to index all directories in the file path as terms. This has been abandoned as it did not seem really useful). Alternatively, you can use the specific file name search which will only look for file names, and may be faster than the generic search especially when using wildcards. Working with phrases and proximity Phrases and Proximity searches A phrase can be looked for by enclosing it in double quotes. Example: "user manual" will look only for occurrences of user immediately followed by manual. You can use the This phrase field of the advanced search dialog to the same effect. Phrases can be entered along simple terms in all simple or advanced search entry fields (except This exact phrase). AutoPhrases This option can be set in the preferences dialog. If it is set, a phrase will be automatically built and added to simple searches when looking for Any terms. This will not change radically the results, but will give a relevance boost to the results where the search terms appear as a phrase. Ie: searching for virtual reality will still find all documents where either virtual or reality or both appear, but those which contain virtual reality should appear sooner in the list. Phrase searches can strongly slow down a query if most of the terms in the phrase are common. This is why the autophrase option is off by default for &RCL; versions before 1.17. As of version 1.17, autophrase is on by default, but very common terms will be removed from the constructed phrase. The removal threshold can be adjusted from the search preferences. Phrases and abbreviations As of &RCL; version 1.17, dotted abbreviations like I.B.M. are also automatically indexed as a word without the dots: IBM. Searching for the word inside a phrase (ie: "the IBM company") will only match the dotted abrreviation if you increase the phrase slack (using the advanced search panel control, or the o query language modifier). Literal occurences of the word will be matched normally. Others Using fields You can use the query language and field specifications to only search certain parts of documents. This can be especially helpful with email, for example only searching emails from a specific originator: search tips from:helpfulgui Ajusting the result table columns When displaying results in table mode, you can use a right click on the table headers to activate a pop-up menu which will let you adjust what columns are displayed. You can drag the column headers to adjust their order. You can click them to sort by the field displayed in the column. You can also save the result list in CSV format. Changing the GUI geometry It is possible to configure the GUI in wide form factor by dragging the toolbars to one of the sides (their location is remembered between sessions), and moving the category filters to a menu (can be set in the Preferences GUI configuration User interface panel). Query explanation You can get an exact description of what the query looked for, including stem expansion, and Boolean operators used, by clicking on the result list header. Advanced search history As of &RCL; 1.18, you can display any of the last 100 complex searches performed by using the up and down arrow keys while the advanced search panel is active. Browsing the result list inside a preview window Entering Shift-Down or Shift-Up (Shift + an arrow key) in a preview window will display the next or the previous document from the result list. Any secondary search currently active will be executed on the new document. Scrolling the result list from the keyboard You can use PageUp and PageDown to scroll the result list, Shift+Home to go back to the first page. These work even while the focus is in the search entry. Result table: moving the focus to the table You can use Ctrl-r to move the focus from the search entry to the table, and then use the arrow keys to change the current row. Ctrl-Shift-s returns to the search. Result table: open / preview With the focus in the result table, you can use Ctrl-o to open the document from the current row, Ctrl-Shift-o to open the document and close recoll, Ctrl-d to preview the document. Editing a new search while the focus is not in the search entry You can use the Ctrl-Shift-S shortcut to return the cursor to the search entry (and select the current search text), while the focus is anywhere in the main window. Forced opening of a preview window You can use Shift+Click on a result list Preview link to force the creation of a preview window instead of a new tab in the existing one. Closing previews Entering Ctrl-W in a tab will close it (and, for the last tab, close the preview window). Entering Esc will close the preview window and all its tabs. Printing previews Entering Ctrl-P in a preview window will print the currently displayed text. Quitting Entering Ctrl-Q almost anywhere will close the application. Saving and restoring queries (1.21 and later) Both simple and advanced query dialogs save recent history, but the amount is limited: old queries will eventually be forgotten. Also, important queries may be difficult to find among others. This is why both types of queries can also be explicitely saved to files, from the GUI menus: File Save last query / Load last query The default location for saved queries is a subdirectory of the current configuration directory, but saved queries are ordinary files and can be written or moved anywhere. Some of the saved query parameters are part of the preferences (e.g. autophrase or the active external indexes), and may differ when the query is loaded from the time it was saved. In this case, &RCL; will warn of the differences, but will not change the user preferences. Customizing the search interface You can customize some aspects of the search interface by using the GUI configuration entry in the Preferences menu. There are several tabs in the dialog, dealing with the interface itself, the parameters used for searching and returning results, and what indexes are searched. User interface parameters: Highlight color for query terms: Terms from the user query are highlighted in the result list samples and the preview window. The color can be chosen here. Any Qt color string should work (ie red, #ff0000). The default is blue. Style sheet: The name of a Qt style sheet text file which is applied to the whole Recoll application on startup. The default value is empty, but there is a skeleton style sheet (recoll.qss) inside the /usr/share/recoll/examples directory. Using a style sheet, you can change most recoll graphical parameters: colors, fonts, etc. See the sample file for a few simple examples. You should be aware that parameters (e.g.: the background color) set inside the &RCL; GUI style sheet will override global system preferences, with possible strange side effects: for example if you set the foreground to a light color and the background to a dark one in the desktop preferences, but only the background is set inside the &RCL; style sheet, and it is light too, then text will appear light-on-light inside the &RCL; GUI. Maximum text size highlighted for preview Inserting highlights on search term inside the text before inserting it in the preview window involves quite a lot of processing, and can be disabled over the given text size to speed up loading. Prefer HTML to plain text for preview if set, Recoll will display HTML as such inside the preview window. If this causes problems with the Qt HTML display, you can uncheck it to display the plain text version instead. Plain text to HTML line style: when displaying plain text inside the preview window, &RCL; tries to preserve some of the original text line breaks and indentation. It can either use PRE HTML tags, which will well preserve the indentation but will force horizontal scrolling for long lines, or use BR tags to break at the original line breaks, which will let the editor introduce other line breaks according to the window width, but will lose some of the original indentation. The third option has been available in recent releases and is probably now the best one: use PRE tags with line wrapping. Choose editor applicationsr: this opens a dialog which allows you to select the application to be used to open each MIME type. The default is nornally to use the xdg-open utility, but you can override it. Exceptions: even wen xdg-open is used by default for opening documents, you can set exceptions for MIME types that will still be opened according to &RCL; preferences. This is useful for passing parameters like page numbers or search strings to applications that support them (e.g. evince). This cannot be done with xdg-open which only supports passing one parameter. Document filter choice style: this will let you choose if the document categories are displayed as a list or a set of buttons, or a menu. Start with simple search mode: this lets you choose the value of the simple search type on program startup. Either a fixed value (e.g. Query Language, or the value in use when the program last exited. Auto-start simple search on white space entry: if this is checked, a search will be executed each time you enter a space in the simple search input field. This lets you look at the result list as you enter new terms. This is off by default, you may like it or not... Start with advanced search dialog open : If you use this dialog frequently, checking the entries will get it to open when recoll starts. Remember sort activation state if set, Recoll will remember the sort tool stat between invocations. It normally starts with sorting disabled. Result list parameters: Number of results in a result page Result list font: There is quite a lot of information shown in the result list, and you may want to customize the font and/or font size. The rest of the fonts used by &RCL; are determined by your generic Qt config (try the qtconfig command). Edit result list paragraph format string: allows you to change the presentation of each result list entry. See the result list customisation section. Edit result page HTML header insert: allows you to define text inserted at the end of the result page HTML header. More detail in the result list customisation section. Date format: allows specifying the format used for displaying dates inside the result list. This should be specified as an strftime() string (man strftime). Abstract snippet separator: for synthetic abstracts built from index data, which are usually made of several snippets from different parts of the document, this defines the snippet separator, an ellipsis by default. Search parameters: Hide duplicate results: decides if result list entries are shown for identical documents found in different places. Stemming language: stemming obviously depends on the document's language. This listbox will let you chose among the stemming databases which were built during indexing (this is set in the main configuration file), or later added with recollindex -s (See the recollindex manual). Stemming languages which are dynamically added will be deleted at the next indexing pass unless they are also added in the configuration file. Automatically add phrase to simple searches: a phrase will be automatically built and added to simple searches when looking for Any terms. This will give a relevance boost to the results where the search terms appear as a phrase (consecutive and in order). Autophrase term frequency threshold percentage: very frequent terms should not be included in automatic phrase searches for performance reasons. The parameter defines the cutoff percentage (percentage of the documents where the term appears). Replace abstracts from documents: this decides if we should synthesize and display an abstract in place of an explicit abstract found within the document itself. Dynamically build abstracts: this decides if &RCL; tries to build document abstracts (lists of snippets) when displaying the result list. Abstracts are constructed by taking context from the document information, around the search terms. Synthetic abstract size: adjust to taste... Synthetic abstract context words: how many words should be displayed around each term occurrence. Query language magic file name suffixes: a list of words which automatically get turned into ext:xxx file name suffix clauses when starting a query language query (ie: doc xls xlsx...). This will save some typing for people who use file types a lot when querying. External indexes: This panel will let you browse for additional indexes that you may want to search. External indexes are designated by their database directory (ie: /home/someothergui/.recoll/xapiandb, /usr/local/recollglobal/xapiandb). Once entered, the indexes will appear in the External indexes list, and you can chose which ones you want to use at any moment by checking or unchecking their entries. Your main database (the one the current configuration indexes to), is always implicitly active. If this is not desirable, you can set up your configuration so that it indexes, for example, an empty directory. An alternative indexer may also need to implement a way of purging the index from stale data, The result list format Newer versions of Recoll (from 1.17) normally use WebKit HTML widgets for the result list and the snippets window (this may be disabled at build time). Total customisation is possible with full support for CSS and Javascript. Conversely, there are limits to what you can do with the older Qt QTextBrowser, but still, it is possible to decide what data each result will contain, and how it will be displayed. The result list presentation can be exhaustively customized by adjusting two elements: The paragraph format HTML code inside the header section. For versions 1.21 and later, this is also used for the snippets window The paragraph format and the header fragment can be edited from the Result list tab of the GUI configuration. The header fragment is used both for the result list and the snippets window. The snippets list is a table and has a snippets class attribute. Each paragraph in the result list is a table, with class respar, but this can be changed by editing the paragraph format. There are a few examples on the page about customising the result list on the &RCL; web site. The paragraph format This is an arbitrary HTML string where the following printf-like % substitutions will be performed: %AAbstract %DDate %IIcon image name. This is normally determined from the MIME type. The associations are defined inside the mimeconf configuration file. If a thumbnail for the file is found at the standard Freedesktop location, this will be displayed instead. %KKeywords (if any) %LPrecooked Preview, Edit, and possibly Snippets links %MMIME type %Nresult Number inside the result page %PParent folder Url. In the case of an embedded document, this is the parent folder for the top level container file. %RRelevance percentage %SSize information %TTitle or Filename if not set. %tTitle or Filename if not set. %UUrl The format of the Preview, Edit, and Snippets links is <a href="P%N">, <a href="E%N"> and <a href="A%N"> where docnum (%N) expands to the document number inside the result page). A link target defined as "F%N" will open the document corresponding to the %P parent folder expansion, usually creating a file manager window on the folder where the container file resides. E.g.: <a href="F%N">%P</a> A link target defined as R%N|scriptname will run the corresponding script on the result file (if the document is embedded, the script will be started on the top-level parent). See the section about defining scripts. In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for this document. Only stored fields can be accessed in this way, the value of indexed but not stored fields is not known at this point in the search process (see field configuration). There are currently very few fields stored by default, apart from the values above (only author and filename), so this feature will need some custom local configuration to be useful. An example candidate would be the recipient field which is generated by the message input handlers. The default value for the paragraph format string is: \n" "\n" "\n" "%L  %S   %T
\n" "%M %D    %U %i
\n" "%A %K\n" "\n" ]]>
You may, for example, try the following for a more web-like experience: %T
%A%U - %S - %L ]]>
Note that the P%N link in the above paragraph makes the title a preview link. Or the clean looking: %L %R   %T&
%S  %U
%A
%K ]]>
These samples, and some others are on the web site, with pictures to show how they look. It is also possible to define the value of the snippet separator inside the abstract section.
Searching with the KDE KIO slave What's this The &RCL; KIO slave allows performing a &RCL; search by entering an appropriate URL in a KDE open dialog, or with an HTML-based interface displayed in Konqueror. The HTML-based interface is similar to the Qt-based interface, but slightly less powerful for now. Its advantage is that you can perform your search while staying fully within the KDE framework: drag and drop from the result list works normally and you have your normal choice of applications for opening files. The alternative interface uses a directory view of search results. Due to limitations in the current KIO slave interface, it is currently not obviously useful (to me). The interface is described in more detail inside a help file which you can access by entering recoll:/ inside the konqueror URL line (this works only if the recoll KIO slave has been previously installed). The instructions for building this module are located in the source tree. See: kde/kio/recoll/00README.txt. Some Linux distributions do package the kio-recoll module, so check before diving into the build process, maybe it's already out there ready for one-click installation. Searchable documents As a sample application, the &RCL; KIO slave could allow preparing a set of HTML documents (for example a manual) so that they become their own search interface inside konqueror. This can be done by either explicitly inserting ]]> links around some document areas, or automatically by adding a very small javascript program to the documents, like the following example, which would initiate a search by double-clicking any term: <script language="JavaScript"> function recollsearch() { var t = document.getSelection(); window.location.href = 'recoll://search/query?qtp=a&p=0&q=' + encodeURIComponent(t); } </script> .... <body ondblclick="recollsearch()"> Searching on the command line There are several ways to obtain search results as a text stream, without a graphical interface: By passing option to the recoll program. By using the recollq program. By writing a custom Python program, using the Recoll Python API. The first two methods work in the same way and accept/need the same arguments (except for the additional to recoll). The query to be executed is specified as command line arguments. recollq is not built by default. You can use the Makefile in the query directory to build it. This is a very simple program, and if you can program a little c++, you may find it useful to taylor its output format to your needs. Not that recollq is only really useful on systems where the Qt libraries (or even the X11 ones) are not available. Otherwise, just use recoll -t, which takes the exact same parameters and options which are described for recollq recollq has a man page (not installed by default, look in the doc/man directory). The Usage string is as follows: recollq: usage: -P: Show the date span for all the documents present in the index [-o|-a|-f] [-q] <query string> Runs a recoll query and displays result lines. Default: will interpret the argument(s) as a xesam query string query may be like: implicit AND, Exclusion, field spec: t1 -t2 title:t3 OR has priority: t1 OR t2 t3 OR t4 means (t1 OR t2) AND (t3 OR t4) Phrase: "t1 t2" (needs additional quoting on cmd line) -o Emulate the GUI simple search in ANY TERM mode -a Emulate the GUI simple search in ALL TERMS mode -f Emulate the GUI simple search in filename mode -q is just ignored (compatibility with the recoll GUI command line) Common options: -c <configdir> : specify config directory, overriding $RECOLL_CONFDIR -d also dump file contents -n [first-]<cnt> define the result slice. The default value for [first] is 0. Without the option, the default max count is 2000. Use n=0 for no limit -b : basic. Just output urls, no mime types or titles -Q : no result lines, just the processed query and result count -m : dump the whole document meta[] array for each result -A : output the document abstracts -S fld : sort by field <fld> -s stemlang : set stemming language to use (must exist in index...) Use -s "" to turn off stem expansion -D : sort descending -i <dbdir> : additional index, several can be given -e use url encoding (%xx) for urls -F <field name list> : output exactly these fields for each result. The field values are encoded in base64, output in one line and separated by one space character. This is the recommended format for use by other programs. Use a normal query with option -m to see the field names. Sample execution: recollq 'ilur -nautique mime:text/html' Recoll query: ((((ilur:(wqf=11) OR ilurs) AND_NOT (nautique:(wqf=11) OR nautiques OR nautiqu OR nautiquement)) FILTER Ttext/html)) 4 results text/html [file:///Users/uncrypted-dockes/projets/bateaux/ilur/comptes.html] [comptes.html] 18593 bytes text/html [file:///Users/uncrypted-dockes/projets/nautique/webnautique/articles/ilur1/index.html] [Constructio... text/html [file:///Users/uncrypted-dockes/projets/pagepers/index.html] [psxtcl/writemime/recoll]... text/html [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/recu-chasse-maree.... Path translations In some cases, the document paths stored inside the index do not match the actual ones, so that document previews and accesses will fail. This can occur in a number of circumstances: When using multiple indexes it is a relatively common occurrence that some will actually reside on a remote volume, for exemple mounted via NFS. In this case, the paths used to access the documents on the local machine are not necessarily the same than the ones used while indexing on the remote machine. For example, /home/me may have been used as a topdirs elements while indexing, but the directory might be mounted as /net/server/home/me on the local machine. The case may also occur with removable disks. It is perfectly possible to configure an index to live with the documents on the removable disk, but it may happen that the disk is not mounted at the same place so that the documents paths from the index are invalid. As a last exemple, one could imagine that a big directory has been moved, but that it is currently inconvenient to run the indexer. More generally, the path translation facility may be useful whenever the documents paths seen by the indexer are not the same as the ones which should be used at query time. &RCL; has a facility for rewriting access paths when extracting the data from the index. The translations can be defined for the main index and for any additional query index. In the above NFS example, &RCL; could be instructed to rewrite any file:///home/me URL from the index to file:///net/server/home/me, allowing accesses from the client. The translations are defined in the ptrans configuration file, which can be edited by hand or from the GUI external indexes configuration dialog. The query language The query language processor is activated in the GUI simple search entry when the search mode selector is set to Query Language. It can also be used with the KIO slave or the command line search. It broadly has the same capabilities as the complex search interface in the GUI. The language is based on the (seemingly defunct) Xesam user search language specification. If the results of a query language search puzzle you and you doubt what has been actually searched for, you can use the GUI Show Query link at the top of the result list to check the exact query which was finally executed by Xapian. Here follows a sample request that we are going to explain: author:"john doe" Beatles OR Lennon Live OR Unplugged -potatoes This would search for all documents with John Doe appearing as a phrase in the author field (exactly what this is would depend on the document type, ie: the From: header, for an email message), and containing either beatles or lennon and either live or unplugged but not potatoes (in any part of the document). An element is composed of an optional field specification, and a value, separated by a colon (the field separator is the last colon in the element). Examples: Eugenie, author:balzac, dc:title:grandet dc:title:"eugenie grandet" The colon, if present, means "contains". Xesam defines other relations, which are mostly unsupported for now (except in special cases, described further down). All elements in the search entry are normally combined with an implicit AND. It is possible to specify that elements be OR'ed instead, as in Beatles OR Lennon. The OR must be entered literally (capitals), and it has priority over the AND associations: word1 word2 OR word3 means word1 AND (word2 OR word3) not (word1 AND word2) OR word3. Explicit parenthesis are not supported. As of &RCL; 1.21, you can use parentheses to group elements, which will sometimes make things clearer, and may allow expressing combinations which would have been difficult otherwise. An element preceded by a - specifies a term that should not appear. As usual, words inside quotes define a phrase (the order of words is significant), so that title:"prejudice pride" is not the same as title:prejudice title:pride, and is unlikely to find a result. Words inside phrases and capitalized words are not stem-expanded. Wildcards may be used anywhere inside a term. Specifying a wild-card on the left of a term can produce a very slow search (or even an incorrect one if the expansion is truncated because of excessive size). Also see More about wildcards. To save you some typing, recent &RCL; versions (1.20 and later) interpret a comma-separated list of terms as an AND list inside the field. Use slash characters ('/') for an OR list. No white space is allowed. So author:john,lennon will search for documents with john and lennon inside the author field (in any order), and author:john/ringo would search for john or ringo. Modifiers can be set on a double-quote value, for example to specify a proximity search (unordered). See the modifier section. No space must separate the final double-quote and the modifiers value, e.g. "two one"po10 &RCL; currently manages the following default fields: title, subject or caption are synonyms which specify data to be searched for in the document title or subject. author or from for searching the documents originators. recipient or to for searching the documents recipients. keyword for searching the document-specified keywords (few documents actually have any). filename for the document's file name. This is not necessarily set for all documents: internal documents contained inside a compound one (for example an EPUB section) do not inherit the container file name any more, this was replaced by an explicit field (see next). Sub-documents can still have a specific filename, if it is implied by the document format, for example the attachment file name for an email attachment. containerfilename. This is set for all documents, both top-level and contained sub-documents, and is always the name of the filesystem directory entry which contains the data. The terms from this field can only be matched by an explicit field specification (as opposed to terms from filename which are also indexed as general document content). This avoids getting matches for all the sub-documents when searching for the container file name. ext specifies the file name extension (Ex: ext:html) &RCL; 1.20 and later have a way to specify aliases for the field names, which will save typing, for example by aliasing filename to fn or containerfilename to cfn. See the section about the fields file The field syntax also supports a few field-like, but special, criteria: dir for filtering the results on file location (Ex: dir:/home/me/somedir). -dir also works to find results not in the specified directory (release >= 1.15.8). Tilde expansion will be performed as usual (except for a bug in versions 1.19 to 1.19.11p1). Wildcards will be expanded, but please have a look at an important limitation of wildcards in path filters. Relative paths also make sense, for example, dir:share/doc would match either /usr/share/doc or /usr/local/share/doc Several dir clauses can be specified, both positive and negative. For example the following makes sense: dir:recoll dir:src -dir:utils -dir:common This would select results which have both recoll and src in the path (in any order), and which have not either utils or common. You can also use OR conjunctions with dir: clauses. A special aspect of dir clauses is that the values in the index are not transcoded to UTF-8, and never lower-cased or unaccented, but stored as binary. This means that you need to enter the values in the exact lower or upper case, and that searches for names with diacritics may sometimes be impossible because of character set conversion issues. Non-ASCII UNIX file paths are an unending source of trouble and are best avoided. You need to use double-quotes around the path value if it contains space characters. size for filtering the results on file size. Example: size<10000. You can use <, > or = as operators. You can specify a range like the following: size>100 size<1000. The usual k/K, m/M, g/G, t/T can be used as (decimal) multipliers. Ex: size>1k to search for files bigger than 1000 bytes. date for searching or filtering on dates. The syntax for the argument is based on the ISO8601 standard for dates and time intervals. Only dates are supported, no times. The general syntax is 2 elements separated by a / character. Each element can be a date or a period of time. Periods are specified as PnYnMnD. The n numbers are the respective numbers of years, months or days, any of which may be missing. Dates are specified as YYYY-MM-DD. The days and months parts may be missing. If the / is present but an element is missing, the missing element is interpreted as the lowest or highest date in the index. Examples: 2001-03-01/2002-05-01 the basic syntax for an interval of dates. 2001-03-01/P1Y2M the same specified with a period. 2001/ from the beginning of 2001 to the latest date in the index. 2001 the whole year of 2001 P2D/ means 2 days ago up to now if there are no documents with dates in the future. /2003 all documents from 2003 or older. Periods can also be specified with small letters (ie: p2y). mime or format for specifying the MIME type. This one is quite special because you can specify several values which will be OR'ed (the normal default for the language is AND). Ex: mime:text/plain mime:text/html. Specifying an explicit boolean operator before a mime specification is not supported and will produce strange results. You can filter out certain types by using negation (-mime:some/type), and you can use wildcards in the value (mime:text/*). Note that mime is the ONLY field with an OR default. You do need to use OR with ext terms for example. type or rclcat for specifying the category (as in text/media/presentation/etc.). The classification of MIME types in categories is defined in the &RCL; configuration (mimeconf), and can be modified or extended. The default category names are those which permit filtering results in the main GUI screen. Categories are OR'ed like MIME types above. This can't be negated with - either. The document input handlers used while indexing have the possibility to create other fields with arbitrary names, and aliases may be defined in the configuration, so that the exact field search possibilities may be different for you if someone took care of the customisation. Modifiers Some characters are recognized as search modifiers when found immediately after the closing double quote of a phrase, as in "some term"modifierchars. The actual "phrase" can be a single term of course. Supported modifiers: l can be used to turn off stemming (mostly makes sense with p because stemming is off by default for phrases). o can be used to specify a "slack" for phrase and proximity searches: the number of additional terms that may be found between the specified ones. If o is followed by an integer number, this is the slack, else the default is 10. p can be used to turn the default phrase search into a proximity one (unordered). Example:"order any in"p C will turn on case sensitivity (if the index supports it). D will turn on diacritics sensitivity (if the index supports it). A weight can be specified for a query element by specifying a decimal value at the start of the modifiers. Example: "Important"2.5. Search case and diacritics sensitivity For &RCL; versions 1.18 and later, and when working with a raw index (not the default), searches can be made sensitive to character case and diacritics. How this happens is controlled by configuration variables and what search data is entered. The general default is that searches are insensitive to case and diacritics. An entry of resume will match any of Resume, RESUME, résumé, Résumé etc. Two configuration variables can automate switching on sensitivity: autodiacsensIf this is set, search sensitivity to diacritics will be turned on as soon as an accented character exists in a search term. When the variable is set to true, resume will start a diacritics-unsensitive search, but résumé will be matched exactly. The default value is false. autocasesensIf this is set, search sensitivity to character case will be turned on as soon as an upper-case character exists in a search term except for the first one. When the variable is set to true, us or Us will start a diacritics-unsensitive search, but US will be matched exactly. The default value is true (contrary to autodiacsens). As in the past, capitalizing the first letter of a word will turn off its stem expansion and have no effect on case-sensitivity. You can also explicitely activate case and diacritics sensitivity by using modifiers with the query language. C will make the term case-sensitive, and D will make it diacritics-sensitive. Examples: "us"C will search for the term us exactly (Us will not be a match). "resume"D will search for the term resume exactly (résumé will not be a match). When either case or diacritics sensitivity is activated, stem expansion is turned off. Having both does not make much sense. Anchored searches and wildcards Some special characters are interpreted by &RCL; in search strings to expand or specialize the search. Wildcards expand a root term in controlled ways. Anchor characters can restrict a search to succeed only if the match is found at or near the beginning of the document or one of its fields. More about wildcards All words entered in &RCL; search fields will be processed for wildcard expansion before the request is finally executed. The wildcard characters are: * which matches 0 or more characters. ? which matches a single character. [] which allow defining sets of characters to be matched (ex: [abc] matches a single character which may be 'a' or 'b' or 'c', [0-9] matches any number. You should be aware of a few things when using wildcards. Using a wildcard character at the beginning of a word can make for a slow search because &RCL; will have to scan the whole index term list to find the matches. However, this is much less a problem for field searches, and queries like author:*@domain.com can sometimes be very useful. For &RCL; version 18 only, when working with a raw index (preserving character case and diacritics), the literal part of a wildcard expression will be matched exactly for case and diacritics. This is not true any more for versions 19 and later. Using a * at the end of a word can produce more matches than you would think, and strange search results. You can use the term explorer tool to check what completions exist for a given term. You can also see exactly what search was performed by clicking on the link at the top of the result list. In general, for natural language terms, stem expansion will produce better results than an ending * (stem expansion is turned off when any wildcard character appears in the term). Wildcards and path filtering Due to the way that &RCL; processes wildcards inside dir path filtering clauses, they will have a multiplicative effect on the query size. A clause containg wildcards in several paths elements, like, for example, dir:/home/me/*/*/docdir, will almost certainly fail if your indexed tree is of any realistic size. Depending on the case, you may be able to work around the issue by specifying the paths elements more narrowly, with a constant prefix, or by using 2 separate dir: clauses instead of multiple wildcards, as in dir:/home/me dir:docdir. The latter query is not equivalent to the initial one because it does not specify a number of directory levels, but that's the best we can do (and it may be actually more useful in some cases). Anchored searches Two characters are used to specify that a search hit should occur at the beginning or at the end of the text. ^ at the beginning of a term or phrase constrains the search to happen at the start, $ at the end force it to happen at the end. As this function is implemented as a phrase search it is possible to specify a maximum distance at which the hit should occur, either through the controls of the advanced search panel, or using the query language, for example, as in: "^someterm"o10 which would force someterm to be found within 10 terms of the start of the text. This can be combined with a field search as in somefield:"^someterm"o10 or somefield:someterm$. This feature can also be used with an actual phrase search, but in this case, the distance applies to the whole phrase and anchor, so that, for example, bla bla my unexpected term at the beginning of the text would be a match for "^my term"o5. Anchored searches can be very useful for searches inside somewhat structured documents like scientific articles, in case explicit metadata has not been supplied (a most frequent case), for example for looking for matches inside the abstract or the list of authors (which occur at the top of the document). Desktop integration Being independant of the desktop type has its drawbacks: &RCL; desktop integration is minimal. However there are a few tools available: The KDE KIO Slave was described in a previous section. If you use a recent version of Ubuntu Linux, you may find the Ubuntu Unity Lens module useful. There is also an independantly developed Krunner plugin. Here follow a few other things that may help. Hotkeying recoll It is surprisingly convenient to be able to show or hide the &RCL; GUI with a single keystroke. Recoll comes with a small Python script, based on the libwnck window manager interface library, which will allow you to do just this. The detailed instructions are on this wiki page. The KDE Kicker Recoll applet This is probably obsolete now. Anyway: The &RCL; source tree contains the source code to the recoll_applet, a small application derived from the find_applet. This can be used to add a small &RCL; launcher to the KDE panel. The applet is not automatically built with the main &RCL; programs, nor is it included with the main source distribution (because the KDE build boilerplate makes it relatively big). You can download its source from the recoll.org download page. Use the omnipotent configure;make;make install incantation to build and install. You can then add the applet to the panel by right-clicking the panel and choosing the Add applet entry. The recoll_applet has a small text window where you can type a &RCL; query (in query language form), and an icon which can be used to restrict the search to certain types of files. It is quite primitive, and launches a new recoll GUI instance every time (even if it is already running). You may find it useful anyway.
Programming interface &RCL; has an Application Programming Interface, usable both for indexing and searching, currently accessible from the Python language. Another less radical way to extend the application is to write input handlers for new types of documents. The processing of metadata attributes for documents (fields) is highly configurable. Writing a document input handler TerminologyThe small programs or pieces of code which handle the processing of the different document types for &RCL; used to be called filters, which is still reflected in the name of the directory which holds them and many configuration variables. They were named this way because one of their primary functions is to filter out the formatting directives and keep the text content. However these modules may have other behaviours, and the term input handler is now progressively substituted in the documentation. filter is still used in many places though. &RCL; input handlers cooperate to translate from the multitude of input document formats, simple ones as opendocument, acrobat), or compound ones such as Zip or Email, into the final &RCL; indexing input format, which is plain text. Most input handlers are executable programs or scripts. A few handlers are coded in C++ and live inside recollindex. This latter kind will not be described here. There are currently (1.18 and since 1.13) two kinds of external executable input handlers: Simple exec handlers run once and exit. They can be bare programs like antiword, or scripts using other programs. They are very simple to write, because they just need to print the converted document to the standard output. Their output can be plain text or HTML. HTML is usually preferred because it can store metadata fields and it allows preserving some of the formatting for the GUI preview. Multiple execm handlers can process multiple files (sparing the process startup time which can be very significant), or multiple documents per file (e.g.: for zip or chm files). They communicate with the indexer through a simple protocol, but are nevertheless a bit more complicated than the older kind. Most of new handlers are written in Python, using a common module to handle the protocol. There is an exception, rclimg which is written in Perl. The subdocuments output by these handlers can be directly indexable (text or HTML), or they can be other simple or compound documents that will need to be processed by another handler. In both cases, handlers deal with regular file system files, and can process either a single document, or a linear list of documents in each file. &RCL; is responsible for performing up to date checks, deal with more complex embedding and other upper level issues. A simple handler returning a document in text/plain format, can transfer no metadata to the indexer. Generic metadata, like document size or modification date, will be gathered and stored by the indexer. Handlers that produce text/html format can return an arbitrary amount of metadata inside HTML meta tags. These will be processed according to the directives found in the fields configuration file. The handlers that can handle multiple documents per file return a single piece of data to identify each document inside the file. This piece of data, called an ipath element will be sent back by &RCL; to extract the document at query time, for previewing, or for creating a temporary file to be opened by a viewer. The following section describes the simple handlers, and the next one gives a few explanations about the execm ones. You could conceivably write a simple handler with only the elements in the manual. This will not be the case for the other ones, for which you will have to look at the code. Simple input handlers &RCL; simple handlers are usually shell-scripts, but this is in no way necessary. Extracting the text from the native format is the difficult part. Outputting the format expected by &RCL; is trivial. Happily enough, most document formats have translators or text extractors which can be called from the handler. In some cases the output of the translating program is completely appropriate, and no intermediate shell-script is needed. Input handlers are called with a single argument which is the source file name. They should output the result to stdout. When writing a handler, you should decide if it will output plain text or HTML. Plain text is simpler, but you will not be able to add metadata or vary the output character encoding (this will be defined in a configuration file). Additionally, some formatting may be easier to preserve when previewing HTML. Actually the deciding factor is metadata: &RCL; has a way to extract metadata from the HTML header and use it for field searches.. The RECOLL_FILTER_FORPREVIEW environment variable (values yes, no) tells the handler if the operation is for indexing or previewing. Some handlers use this to output a slightly different format, for example stripping uninteresting repeated keywords (ie: Subject: for email) when indexing. This is not essential. You should look at one of the simple handlers, for example rclps for a starting point. Don't forget to make your handler executable before testing ! "Multiple" handlers If you can program and want to write an execm handler, it should not be too difficult to make sense of one of the existing modules. For example, look at rclzip which uses Zip file paths as identifiers (ipath), and rclics, which uses an integer index. Also have a look at the comments inside the internfile/mh_execm.h file and possibly at the corresponding module. execm handlers sometimes need to make a choice for the nature of the ipath elements that they use in communication with the indexer. Here are a few guidelines: Use ASCII or UTF-8 (if the identifier is an integer print it, for example, like printf %d would do). If at all possible, the data should make some kind of sense when printed to a log file to help with debugging. &RCL; uses a colon (:) as a separator to store a complex path internally (for deeper embedding). Colons inside the ipath elements output by a handler will be escaped, but would be a bad choice as a handler-specific separator (mostly, again, for debugging issues). In any case, the main goal is that it should be easy for the handler to extract the target document, given the file name and the ipath element. execm handlers will also produce a document with a null ipath element. Depending on the type of document, this may have some associated data (e.g. the body of an email message), or none (typical for an archive file). If it is empty, this document will be useful anyway for some operations, as the parent of the actual data documents. Telling &RCL; about the handler There are two elements that link a file to the handler which should process it: the association of file to MIME type and the association of a MIME type with a handler. The association of files to MIME types is mostly based on name suffixes. The types are defined inside the mimemap file. Example: .doc = application/msword If no suffix association is found for the file name, &RCL; will try to execute the file -i command to determine a MIME type. The association of file types to handlers is performed in the mimeconf file. A sample will probably be of better help than a long explanation: [index] application/msword = exec antiword -t -i 1 -m UTF-8;\ mimetype = text/plain ; charset=utf-8 application/ogg = exec rclogg text/rtf = exec unrtf --nopict --html; charset=iso-8859-1; mimetype=text/html application/x-chm = execm rclchm The fragment specifies that: application/msword files are processed by executing the antiword program, which outputs text/plain encoded in utf-8. application/ogg files are processed by the rclogg script, with default output type (text/html, with encoding specified in the header, or utf-8 by default). text/rtf is processed by unrtf, which outputs text/html. The iso-8859-1 encoding is specified because it is not the utf-8 default, and not output by unrtf in the HTML header section. application/x-chm is processed by a persistant handler. This is determined by the execm keyword. Input handler HTML output The output HTML could be very minimal like the following example: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> </head> <body> Some text content </body> </html> You should take care to escape some characters inside the text by transforming them into appropriate entities. At the very minimum, "&" should be transformed into "&amp;", "<" should be transformed into "&lt;". This is not always properly done by translating programs which output HTML, and of course never by those which output plain text. When encapsulating plain text in an HTML body, the display of a preview may be improved by enclosing the text inside <pre> tags. The character set needs to be specified in the header. It does not need to be UTF-8 (&RCL; will take care of translating it), but it must be accurate for good results. &RCL; will process meta tags inside the header as possible document fields candidates. Documents fields can be processed by the indexer in different ways, for searching or displaying inside query results. This is described in a following section. By default, the indexer will process the standard header fields if they are present: title, meta/description, and meta/keywords are both indexed and stored for query-time display. A predefined non-standard meta tag will also be processed by &RCL; without further configuration: if a date tag is present and has the right format, it will be used as the document date (for display and sorting), in preference to the file modification date. The date format should be as follows: <meta name="date" content="YYYY-mm-dd HH:MM:SS"> or <meta name="date" content="YYYY-mm-ddTHH:MM:SS"> Example: <meta name="date" content="2013-02-24 17:50:00"> Input handlers also have the possibility to "invent" field names. This should also be output as meta tags: <meta name="somefield" content="Some textual data" /> You can embed HTML markup inside the content of custom fields, for improving the display inside result lists. In this case, add a (wildly non-standard) markup attribute to tell &RCL; that the value is HTML and should not be escaped for display. <meta name="somefield" markup="html" content="Some <i>textual</i> data" /> As written above, the processing of fields is described in a further section. Page numbers The indexer will interpret ^L characters in the handler output as indicating page breaks, and will record them. At query time, this allows starting a viewer on the right page for a hit or a snippet. Currently, only the PDF, Postscript and DVI handlers generate page breaks. Field data processing Fields are named pieces of information in or about documents, like title, author, abstract. The field values for documents can appear in several ways during indexing: either output by input handlers as meta fields in the HTML header section, or extracted from file extended attributes, or added as attributes of the Doc object when using the API, or again synthetized internally by &RCL;. The &RCL; query language allows searching for text in a specific field. &RCL; defines a number of default fields. Additional ones can be output by handlers, and described in the fields configuration file. Fields can be: indexed, meaning that their terms are separately stored in inverted lists (with a specific prefix), and that a field-specific search is possible. stored, meaning that their value is recorded in the index data record for the document, and can be returned and displayed with search results. A field can be either or both indexed and stored. This and other aspects of fields handling is defined inside the fields configuration file. The sequence of events for field processing is as follows: During indexing, recollindex scans all meta fields in HTML documents (most document types are transformed into HTML at some point). It compares the name for each element to the configuration defining what should be done with fields (the fields file) If the name for the meta element matches one for a field that should be indexed, the contents are processed and the terms are entered into the index with the prefix defined in the fields file. If the name for the meta element matches one for a field that should be stored, the content of the element is stored with the document data record, from which it can be extracted and displayed at query time. At query time, if a field search is performed, the index prefix is computed and the match is only performed against appropriately prefixed terms in the index. At query time, the field can be displayed inside the result list by using the appropriate directive in the definition of the result list paragraph format. All fields are displayed on the fields screen of the preview window (which you can reach through the right-click menu). This is independant of the fact that the search which produced the results used the field or not. You can find more information in the section about the fields file, or in comments inside the file. You can also have a look at the example on the Wiki, detailing how one could add a page count field to pdf documents for displaying inside result lists. API Interface elements A few elements in the interface are specific and and need an explanation. udi An udi (unique document identifier) identifies a document. Because of limitations inside the index engine, it is restricted in length (to 200 bytes), which is why a regular URI cannot be used. The structure and contents of the udi is defined by the application and opaque to the index engine. For example, the internal file system indexer uses the complete document path (file path + internal path), truncated to length, the suppressed part being replaced by a hash value. ipath This data value (set as a field in the Doc object) is stored, along with the URL, but not indexed by &RCL;. Its contents are not interpreted, and its use is up to the application. For example, the &RCL; internal file system indexer stores the part of the document access path internal to the container file (ipath in this case is a list of subdocument sequential numbers). url and ipath are returned in every search result and permit access to the original document. Stored and indexed fields The fields file inside the &RCL; configuration defines which document fields are either "indexed" (searchable), "stored" (retrievable with search results), or both. Data for an external indexer, should be stored in a separate index, not the one for the &RCL; internal file system indexer, except if the latter is not used at all). The reason is that the main document indexer purge pass would remove all the other indexer's documents, as they were not seen during indexing. The main indexer documents would also probably be a problem for the external indexer purge operation. Python interface Introduction &RCL; versions after 1.11 define a Python programming interface, both for searching and indexing. The indexing portion has seen little use, but the searching one is used in the Recoll Ubuntu Unity Lens and Recoll Web UI. The API is inspired by the Python database API specification. There were two major changes in recent &RCL; versions: The basis for the &RCL; API changed from Python database API version 1.0 (&RCL; versions up to 1.18.1), to version 2.0 (&RCL; 1.18.2 and later). The recoll module became a package (with an internal recoll module) as of &RCL; version 1.19, in order to add more functions. For existing code, this only changes the way the interface must be imported. We will mostly describe the new API and package structure here. A paragraph at the end of this section will explain a few differences and ways to write code compatible with both versions. The Python interface can be found in the source package, under python/recoll. The python/recoll/ directory contains the usual setup.py. After configuring the main &RCL; code, you can use the script to build and install the Python module: cd recoll-xxx/python/recoll python setup.py build python setup.py install The normal &RCL; installer installs the Python API along with the main code. When installing from a repository, and depending on the distribution, the Python API can sometimes be found in a separate package. Recoll package The recoll package contains two modules: The recoll module contains functions and classes used to query (or update) the index. The rclextract module contains functions and classes used to access document data. The recoll module Functions connect(confdir=None, extra_dbs=None, writable = False) The connect() function connects to one or several &RCL; index(es) and returns a Db object. confdir may specify a configuration directory. The usual defaults apply. extra_dbs is a list of additional indexes (Xapian directories). writable decides if we can index new data through this connection. This call initializes the recoll module, and it should always be performed before any other call or object creation. Classes The Db class A Db object is created by a connect() call and holds a connection to a Recoll index. Methods Db.close() Closes the connection. You can't do anything with the Db object after this. Db.query(), Db.cursor() These aliases return a blank Query object for this index. Db.setAbstractParams(maxchars, contextwords) Set the parameters used to build snippets (sets of keywords in context text fragments). maxchars defines the maximum total size of the abstract. contextwords defines how many terms are shown around the keyword. Db.termMatch(match_type, expr, field='', maxlen=-1, casesens=False, diacsens=False, lang='english') Expand an expression against the index term list. Performs the basic function from the GUI term explorer tool. match_type can be either of wildcard, regexp or stem. Returns a list of terms expanded from the input expression. The Query class A Query object (equivalent to a cursor in the Python DB API) is created by a Db.query() call. It is used to execute index searches. Methods Query.sortby(fieldname, ascending=True) Sort results by fieldname, in ascending or descending order. Must be called before executing the search. Query.execute(query_string, stemming=1, stemlang="english") Starts a search for query_string, a &RCL; search language string. Query.executesd(SearchData) Starts a search for the query defined by the SearchData object. Query.fetchmany(size=query.arraysize) Fetches the next Doc objects in the current search results, and returns them as an array of the required size, which is by default the value of the arraysize data member. Query.fetchone() Fetches the next Doc object from the current search results. Query.close() Closes the query. The object is unusable after the call. Query.scroll(value, mode='relative') Adjusts the position in the current result set. mode can be relative or absolute. Query.getgroups() Retrieves the expanded query terms as a list of pairs. Meaningful only after executexx In each pair, the first entry is a list of user terms (of size one for simple terms, or more for group and phrase clauses), the second a list of query terms as derived from the user terms and used in the Xapian Query. Query.getxquery() Return the Xapian query description as a Unicode string. Meaningful only after executexx. Query.highlight(text, ishtml = 0, methods = object) Will insert <span "class=rclmatch">, </span> tags around the match areas in the input text and return the modified text. ishtml can be set to indicate that the input text is HTML and that HTML special characters should not be escaped. methods if set should be an object with methods startMatch(i) and endMatch() which will be called for each match and should return a begin and end tag Query.makedocabstract(doc, methods = object)) Create a snippets abstract for doc (a Doc object) by selecting text around the match terms. If methods is set, will also perform highlighting. See the highlight method. Query.__iter__() and Query.next() So that things like for doc in query: will work. Data descriptors Query.arraysize Default number of records processed by fetchmany (r/w). Query.rowcountNumber of records returned by the last execute. Query.rownumberNext index to be fetched from results. Normally increments after each fetchone() call, but can be set/reset before the call to effect seeking (equivalent to using scroll()). Starts at 0. The Doc class A Doc object contains index data for a given document. The data is extracted from the index when searching, or set by the indexer program when updating. The Doc object has many attributes to be read or set by its user. It matches exactly the Rcl::Doc C++ object. Some of the attributes are predefined, but, especially when indexing, others can be set, the name of which will be processed as field names by the indexing configuration. Inputs can be specified as Unicode or strings. Outputs are Unicode objects. All dates are specified as Unix timestamps, printed as strings. Please refer to the rcldb/rcldoc.h C++ file for a description of the predefined attributes. At query time, only the fields that are defined as stored either by default or in the fields configuration file will be meaningful in the Doc object. Especially this will not be the case for the document text. See the rclextract module for accessing document contents. Methods get(key), [] operator Retrieve the named doc attribute getbinurl()Retrieve the URL in byte array format (no transcoding), for use as parameter to a system call. items() Return a dictionary of doc object keys/values keys() list of doc object keys (attribute names). The SearchData class A SearchData object allows building a query by combining clauses, for execution by Query.executesd(). It can be used in replacement of the query language approach. The interface is going to change a little, so no detailed doc for now... Methods addclause(type='and'|'or'|'excl'|'phrase'|'near'|'sub', qstring=string, slack=0, field='', stemming=1, subSearch=SearchData) The rclextract module Index queries do not provide document content (only a partial and unprecise reconstruction is performed to show the snippets text). In order to access the actual document data, the data extraction part of the indexing process must be performed (subdocument access and format translation). This is not trivial in general. The rclextract module currently provides a single class which can be used to access the data content for result documents. Classes The Extractor class Methods Extractor(doc) An Extractor object is built from a Doc object, output from a query. Extractor.textextract(ipath) Extract document defined by ipath and return a Doc object. The doc.text field has the document text converted to either text/plain or text/html according to doc.mimetype. The typical use would be as follows: qdoc = query.fetchone() extractor = recoll.Extractor(qdoc) doc = extractor.textextract(qdoc.ipath) # use doc.text, e.g. for previewing Extractor.idoctofile(ipath, targetmtype, outfile='') Extracts document into an output file, which can be given explicitly or will be created as a temporary file to be deleted by the caller. Typical use: qdoc = query.fetchone() extractor = recoll.Extractor(qdoc) filename = extractor.idoctofile(qdoc.ipath, qdoc.mimetype) Example code The following sample would query the index with a user language string. See the python/samples directory inside the &RCL; source for other examples. The recollgui subdirectory has a very embryonic GUI which demonstrates the highlighting and data extraction functions. #!/usr/bin/env python 5: nres = 5 for i in range(nres): doc = query.fetchone() print "Result #%d" % (query.rownumber,) for k in ("title", "size"): print k, ":", getattr(doc, k).encode('utf-8') abs = db.makeDocAbstract(doc, query).encode('utf-8') print abs print ]]> Compatibility with the previous version The following code fragments can be used to ensure that code can run with both the old and the new API (as long as it does not use the new abilities of the new API of course). Adapting to the new package structure: Adapting to the change of nature of the next Query member. The same test can be used to choose to use the scroll() method (new) or set the next value (old). Installation and configuration Installing a binary copy &RCL; binary copies are always distributed as regular packages for your system. They can be obtained either through the system's normal software distribution framework (e.g. Debian/Ubuntu apt, FreeBSD ports, etc.), or from some type of "backports" repository providing versions newer than the standard ones, or found on the &RCL; WEB site in some cases. There used to exist another form of binary install, as pre-compiled source trees, but these are just less convenient than the packages and don't exist any more. The package management tools will usually automatically deal with hard dependancies for packages obtained from a proper package repository. You will have to deal with them by hand for downloaded packages (for example, when dpkg complains about missing dependancies). In all cases, you will have to check or install supporting applications for the file types that you want to index beyond those that are natively processed by &RCL; (text, HTML, email files, and a few others). You should also maybe have a look at the configuration section (but this may not be necessary for a quick test with default parameters). Most parameters can be more conveniently set from the GUI interface. Supporting packages &RCL; uses external applications to index some file types. You need to install them for the file types that you wish to have indexed (these are run-time optional dependencies. None is needed for building or running &RCL; except for indexing their specific file type). After an indexing pass, the commands that were found missing can be displayed from the recoll File menu. The list is stored in the missing text file inside the configuration directory. A list of common file types which need external commands follows. Many of the handlers need the iconv command, which is not always listed as a dependancy. Please note that, due to the relatively dynamic nature of this information, the most up to date version is now kept on &RCLAPPS; along with links to the home pages or best source/patches pages, and misc tips. The list below is not updated often and may be quite stale. For many Linux distributions, most of the commands listed can be installed from the package repositories. However, the packages are sometimes outdated, or not the best version for &RCL;, so you should take a look at &RCLAPPS; if a file type is important to you. As of &RCL; release 1.14, a number of XML-based formats that were handled by ad hoc handler code now use the xsltproc command, which usually comes with libxslt. These are: abiword, fb2 (ebooks), kword, openoffice, svg. Now for the list: Openoffice files need unzip and xsltproc. PDF files need pdftotext which is part of Poppler (usually comes with the poppler-utils package). Avoid the original one from Xpdf. Postscript files need pstotext. The original version has an issue with shell character in file names, which is corrected in recent packages. See &RCLAPPS; for more detail. MS Word needs antiword. It is also useful to have wvWare installed as it may be be used as a fallback for some files which antiword does not handle. MS Excel and PowerPoint are processed by internal Python handlers. MS Open XML (docx) needs xsltproc. Wordperfect files need wpd2html from the libwpd (or libwpd-tools on Ubuntu) package. RTF files need unrtf, which, in its older versions, has much trouble with non-western character sets. Many Linux distributions carry outdated unrtf versions. Check &RCLAPPS; for details. TeX files need untex or detex. Check &RCLAPPS; for sources if it's not packaged for your distribution. dvi files need dvips. djvu files need djvutxt and djvused from the DjVuLibre package. Audio files: &RCL; releases 1.14 and later use a single Python handler based on mutagen for all audio file types. Pictures: &RCL; uses the Exiftool Perl package to extract tag information. Most image file formats are supported. Note that there may not be much interest in indexing the technical tags (image size, aperture, etc.). This is only of interest if you store personal tags or textual descriptions inside the image files. chm: files in Microsoft help format need Python and the pychm module (which needs chmlib). ICS: up to &RCL; 1.13, iCalendar files need Python and the icalendar module. icalendar is not needed for newer versions, which use internal code. Zip archives need Python (and the standard zipfile module). Rar archives need Python, the rarfile Python module and the unrar utility. Midi karaoke files need Python and the Midi module Konqueror webarchive format with Python (uses the Tarfile module). Mimehtml web archive format (support based on the email handler, which introduces some mild weirdness, but still usable). Text, HTML, email folders, and Scribus files are processed internally. Lyx is used to index Lyx files. Many handlers need iconv and the standard sed and awk. Building from source Prerequisites If you can install any or all of the following through the package manager for your system, all the better. Especially Qt is a very big piece of software, but you will most probably be able to find a binary package. You may have to compile &XAP; but this is easy. The shopping list: C++ compiler. Up to &RCL; version 1.13.04, its absence can manifest itself by strange messages about a missing iconv_open. Development files for Xapian core. If you are building Xapian for an older CPU (before Pentium 4 or Athlon 64), you need to add the flag to the configure command. Else all Xapian application will crash with an illegal instruction error. Development files for Qt 4 . &RCL; has not been tested with Qt 5 yet. &RCL; 1.15.9 was the last version to support Qt 3. If you do not want to install or build the Qt Webkit module, &RCL; has a configuration option to disable its use (see further). Development files for X11 and zlib. You may also need libiconv. On Linux systems, the iconv interface is part of libc and you should not need to do anything special. Check the &RCL; download page for up to date version information. Building &RCL; has been built on Linux, FreeBSD, Mac OS X, and Solaris, most versions after 2005 should be ok, maybe some older ones too (Solaris 8 is ok). If you build on another system, and need to modify things, I would very much welcome patches. Configure options: will disable the code for phonetic matching of search terms. or will enable the code for real time indexing. Inotify support is enabled by default on recent Linux systems. will enable sending Zeitgeist events about the visited search results, and needs the qzeitgeist package. is available from version 1.17 to implement the result list with a Qt QTextBrowser instead of a WebKit widget if you do not or can't depend on the latter. is available from version 1.19 to suppress multithreading inside the indexing process. You can also use the run-time configuration to restrict recollindex to using a single thread, but the compile-time option may disable a few more unused locks. This only applies to the use of multithreading for the core index processing (data input). The &RCL; monitor mode always uses at least two threads of execution. will avoid building the Python module. will prevent fetching data from file extended attributes. Beyond a few standard attributes, fetching extended attributes data can only be useful is some application stores data in there, and also needs some simple configuration (see comments in the fields configuration file). will enable splitting camelCase words. This is not enabled by default as it has the unfortunate side-effect of making some phrase searches quite confusing: ie, "MySQL manual" would be matched by "MySQL manual" and "my sql manual" but not "mysql manual" (only inside phrase searches). Specify the version of the 'file' command to use (ie: --with-file-command=/usr/local/bin/file). Can be useful to enable the gnu version on systems where the native one is bad. Disable the Qt interface. Will allow building the indexer and the command line search program in absence of a Qt environment. Disable X11 connection monitoring inside recollindex. Together with --disable-qtgui, this allows building recoll without Qt and X11. will compile &RCL; with position-dependant code. This is incompatible with building the KIO or the Python or PHP extensions, but might yield very marginally faster code. Of course the usual autoconf configure options, like apply. Normal procedure: cd recoll-xxx ./configure make (practices usual hardship-repelling invocations) There is little auto-configuration. The configure script will mainly link one of the system-specific files in the mk directory to mk/sysconf. If your system is not known yet, it will tell you as much, and you may want to manually copy and modify one of the existing files (the new file name should be the output of uname ). Building on Solaris We did not test building the GUI on Solaris for recent versions. You will need at least Qt 4.4. There are some hints on an old web site page, they may still be valid. Someone did test the 1.19 indexer and Python module build, they do work, with a few minor glitches. Be sure to use GNU make and install. Installation Either type make install or execute recollinstall prefix, in the root of the source tree. This will copy the commands to prefix/bin and the sample configuration files, scripts and other shared data to prefix/share/recoll. If the installation prefix given to recollinstall is different from either the system default or the value which was specified when executing configure (as in configure --prefix /some/path), you will have to set the RECOLL_DATADIR environment variable to indicate where the shared data is to be found (ie for (ba)sh: export RECOLL_DATADIR=/some/path/share/recoll). You can then proceed to configuration. Configuration overview Most of the parameters specific to the recoll GUI are set through the Preferences menu and stored in the standard Qt place ($HOME/.config/Recoll.org/recoll.conf). You probably do not want to edit this by hand. &RCL; indexing options are set inside text configuration files located in a configuration directory. There can be several such directories, each of which defines the parameters for one index. The configuration files can be edited by hand or through the Index configuration dialog (Preferences menu). The GUI tool will try to respect your formatting and comments as much as possible, so it is quite possible to use both ways. The most accurate documentation for the configuration parameters is given by comments inside the default files, and we will just give a general overview here. By default, for each index, there are two sets of configuration files. System-wide configuration files are kept in a directory named like /usr/[local/]share/recoll/examples, and define default values, shared by all indexes. For each index, a parallel set of files defines the customized parameters. In addition (as of &RCL; version 1.19.7), it is possible to specify two additional configuration directories which will be stacked before and after the user configuration directory. These are defined by the RECOLL_CONFTOP and RECOLL_CONFMID environment variables. Values from configuration files inside the top directory will override user ones, values from configuration files inside the middle directory will override system ones and be overriden by user ones. These two variables may be of use to applications which augment &RCL; functionality, and need to add configuration data without disturbing the user's files. Please note that the two, currently single, values will probably be interpreted as colon-separated lists in the future: do not use colon characters inside the directory paths. The default location of the configuration is the .recoll directory in your home. Most people will only use this directory. This location can be changed, or others can be added with the RECOLL_CONFDIR environment variable or the option parameter to recoll and recollindex. If the .recoll directory does not exist when recoll or recollindex are started, it will be created with a set of empty configuration files. recoll will give you a chance to edit the configuration file before starting indexing. recollindex will proceed immediately. To avoid mistakes, the automatic directory creation will only occur for the default location, not if or RECOLL_CONFDIR were used (in the latter cases, you will have to create the directory). All configuration files share the same format. For example, a short extract of the main configuration file might look as follows: # Space-separated list of directories to index. topdirs = ~/docs /usr/share/doc [~/somedirectory-with-utf8-txt-files] defaultcharset = utf-8 There are three kinds of lines: Comment (starts with #) or empty. Parameter affectation (name = value). Section definition ([somedirname]). Depending on the type of configuration file, section definitions either separate groups of parameters or allow redefining some parameters for a directory sub-tree. They stay in effect until another section definition, or the end of file, is encountered. Some of the parameters used for indexing are looked up hierarchically from the current directory location upwards. Not all parameters can be meaningfully redefined, this is specified for each in the next section. When found at the beginning of a file path, the tilde character (~) is expanded to the name of the user's home directory, as a shell would do. White space is used for separation inside lists. List elements with embedded spaces can be quoted using double-quotes. Encoding issues Most of the configuration parameters are plain ASCII. Two particular sets of values may cause encoding issues: File path parameters may contain non-ascii characters and should use the exact same byte values as found in the file system directory. Usually, this means that the configuration file should use the system default locale encoding. The unac_except_trans parameter should be encoded in UTF-8. If your system locale is not UTF-8, and you need to also specify non-ascii file paths, this poses a difficulty because common text editors cannot handle multiple encodings in a single file. In this relatively unlikely case, you can edit the configuration file as two separate text files with appropriate encodings, and concatenate them to create the complete configuration. Environment variables RECOLL_CONFDIR Defines the main configuration directory. RECOLL_TMPDIR, TMPDIR Locations for temporary files, in this order of priority. The default if none of these is set is to use /tmp. Big temporary files may be created during indexing, mostly for decompressing, and also for processing, e.g. email attachments. RECOLL_CONFTOP, RECOLL_CONFMID Allow adding configuration directories with priorities below and above the user directory (see above the Configuration overview section for details). RECOLL_EXTRA_DBS, RECOLL_ACTIVE_EXTRA_DBS Help for setting up external indexes. See this paragraph for explanations. RECOLL_DATADIR Defines replacement for the default location of Recoll data files, normally found in, e.g., /usr/share/recoll). RECOLL_FILTERSDIR Defines replacement for the default location of Recoll filters, normally found in, e.g., /usr/share/recoll/filters). ASPELL_PROG aspell program to use for creating the spelling dictionary. The result has to be compatible with the libaspell which &RCL; is using. VARNAME Blabla The main configuration file, recoll.conf recoll.conf is the main configuration file. It defines things like what to index (top directories and things to ignore), and the default character set to use for document types which do not specify it internally. The default configuration will index your home directory. If this is not appropriate, start recoll to create a blank configuration, click Cancel, and edit the configuration file before restarting the command. This will start the initial indexing, which may take some time. Most of the following parameters can be changed from the Index Configuration menu in the recoll interface. Some can only be set by editing the configuration file. Parameters affecting what documents we index: topdirs Specifies the list of directories or files to index (recursively for directories). You can use symbolic links as elements of this list. See the followLinks option about following symbolic links found under the top elements (not followed by default). skippedNames A space-separated list of wilcard patterns for names of files or directories that should be completely ignored. The list defined in the default file is: skippedNames = #* bin CVS Cache cache* caughtspam tmp .thumbnails .svn \ *~ .beagle .git .hg .bzr loop.ps .xsession-errors \ .recoll* xapiandb recollrc recoll.conf The list can be redefined at any sub-directory in the indexed area. The top-level directories are not affected by this list (that is, a directory in topdirs might match and would still be indexed). The list in the default configuration does not exclude hidden directories (names beginning with a dot), which means that it may index quite a few things that you do not want. On the other hand, email user agents like thunderbird usually store messages in hidden directories, and you probably want this indexed. One possible solution is to have .* in skippedNames, and add things like ~/.thunderbird or ~/.evolution in topdirs. Not even the file names are indexed for patterns in this list. See the noContentSuffixes variable for an alternative approach which indexes the file names. noContentSuffixes This is a list of file name endings (not wildcard expressions, nor dot-delimited suffixes). Only the names of matching files will be indexed (no attempt at MIME type identification, no decompression, no content indexing). This can be redefined for subdirectories, and edited from the GUI. The default value is: noContentSuffixes = .md5 .map \ .o .lib .dll .a .sys .exe .com \ .mpp .mpt .vsd \ .img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz \ .dat .bak .rdf .log.gz .log .db .msf .pid \ ,v ~ # skippedPaths and daemSkippedPaths A space-separated list of patterns for paths of files or directories that should be skipped. There is no default in the sample configuration file, but the code always adds the configuration and database directories in there. skippedPaths is used both by batch and real time indexing. daemSkippedPaths can be used to specify things that should be indexed at startup, but not monitored. Example of use for skipping text files only in a specific directory: skippedPaths = ~/somedir/*.txt skippedPathsFnmPathname The values in the *skippedPaths variables are matched by default with fnmatch(3), with the FNM_PATHNAME flag. This means that '/' characters must be matched explicitely. You can set skippedPathsFnmPathname to 0 to disable the use of FNM_PATHNAME (meaning that /*/dir3 will match /dir1/dir2/dir3). zipSkippedNames A space-separated list of patterns for names of files or directories that should be ignored inside zip archives. This is used directly by the zip handler, and has a function similar to skippedNames, but works independantly. Can be redefined for filesystem subdirectories. For versions up to 1.19, you will need to update the Zip handler and install a supplementary Python module. The details are described on the &RCL; wiki. followLinks Specifies if the indexer should follow symbolic links while walking the file tree. The default is to ignore symbolic links to avoid multiple indexing of linked files. No effort is made to avoid duplication when this option is set to true. This option can be set individually for each of the topdirs members by using sections. It can not be changed below the topdirs level. indexedmimetypes &RCL; normally indexes any file which it knows how to read. This list lets you restrict the indexed MIME types to what you specify. If the variable is unspecified or the list empty (the default), all supported types are processed. Can be redefined for subdirectories. excludedmimetypes This list lets you exclude some MIME types from indexing. Can be redefined for subdirectories. compressedfilemaxkbs Size limit for compressed (.gz or .bz2) files. These need to be decompressed in a temporary directory for identification, which can be very wasteful if 'uninteresting' big compressed files are present. Negative means no limit, 0 means no processing of any compressed file. Defaults to -1. textfilemaxmbs Maximum size for text files. Very big text files are often uninteresting logs. Set to -1 to disable (default 20MB). textfilepagekbs If set to other than -1, text files will be indexed as multiple documents of the given page size. This may be useful if you do want to index very big text files as it will both reduce memory usage at index time and help with loading data to the preview window. A size of a few megabytes would seem reasonable (default: 1MB). membermaxkbs This defines the maximum size in kilobytes for an archive member (zip, tar or rar at the moment). Bigger entries will be skipped. indexallfilenames &RCL; indexes file names in a special section of the database to allow specific file names searches using wild cards. This parameter decides if file name indexing is performed only for files with MIME types that would qualify them for full text indexing, or for all files inside the selected subtrees, independently of MIME type. usesystemfilecommand Decide if we execute a system command (file by default) as a final step for determining the MIME type for a file (the main procedure uses suffix associations as defined in the mimemap file). This can be useful for files with suffix-less names, but it will also cause the indexing of many bogus "text" files. systemfilecommand Command to use for mime for mime type determination if usesystefilecommand is set. Recent versions of xdg-mime sometimes work better than file. processwebqueue If this is set, process the directory where Web browser plugins copy visited pages for indexing. webqueuedir The path to the web indexing queue. This is hard-coded in the Firefox plugin as ~/.recollweb/ToIndex so there should be no need to change it. Parameters affecting how we generate terms: Changing some of these parameters will imply a full reindex. Also, when using multiple indexes, it may not make sense to search indexes that don't share the values for these parameters, because they usually affect both search and index operations. indexStripChars Decide if we strip characters of diacritics and convert them to lower-case before terms are indexed. If we don't, searches sensitive to case and diacritics can be performed, but the index will be bigger, and some marginal weirdness may sometimes occur. The default is a stripped index (indexStripChars = 1) for now. When using multiple indexes for a search, this parameter must be defined identically for all. Changing the value implies an index reset. maxTermExpand Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. maxXapianClauses Maximum number of elementary clauses we can add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. nonumbers If this set to true, no terms will be generated for numbers. For example "123", "1.5e6", 192.168.1.4, would not be indexed ("value123" would still be). Numbers are often quite interesting to search for, and this should probably not be set except for special situations, ie, scientific documents with huge amounts of numbers in them. This can only be set for a whole index, not for a subtree. nocjk If this set to true, specific east asian (Chinese Korean Japanese) characters/word splitting is turned off. This will save a small amount of cpu if you have no CJK documents. If your document base does include such text but you are not interested in searching it, setting nocjk may be a significant time and space saver. cjkngramlen This lets you adjust the size of n-grams used for indexing CJK text. The default value of 2 is probably appropriate in most cases. A value of 3 would allow more precision and efficiency on longer words, but the index will be approximately twice as large. indexstemminglanguages A list of languages for which the stem expansion databases will be built. See recollindex 1 or use the recollindex command for possible values. You can add a stem expansion database for a different language by using recollindex , but it will be deleted during the next indexing. Only languages listed in the configuration file are permanent. defaultcharset The name of the character set used for files that do not contain a character set definition (ie: plain text files). This can be redefined for any sub-directory. If it is not set at all, the character set used is the one defined by the nls environment ( LC_ALL, LC_CTYPE, LANG), or iso8859-1 if nothing is set. unac_except_trans This is a list of characters, encoded in UTF-8, which should be handled specially when converting text to unaccented lowercase. For example, in Swedish, the letter a with diaeresis has full alphabet citizenship and should not be turned into an a. Each element in the space-separated list has the special character as first element and the translation following. The handling of both the lowercase and upper-case versions of a character should be specified, as appartenance to the list will turn-off both standard accent and case processing. Example for Swedish: unac_except_trans = åå Åå ää Ää öö Öö Note that the translation is not limited to a single character, you could very well have something like üue in the list. The default value set for unac_except_trans can't be listed here because I have trouble with SGML and UTF-8, but it only contains ligature decompositions: german ss, oe, ae, fi, fl. This parameter can't be defined for subdirectories, it is global, because there is no way to do otherwise when querying. If you have document sets which would need different values, you will have to index and query them separately. maildefcharset This can be used to define the default character set specifically for email messages which don't specify it. This is mainly useful for readpst (libpst) dumps, which are utf-8 but do not say so. localfields This allows setting fields for all documents under a given directory. Typical usage would be to set an "rclaptg" field, to be used in mimeview to select a specific viewer. If several fields are to be set, they should be separated with a semi-colon (';') character, which there is currently no way to escape. Also note the initial semi-colon. Example: localfields= ;rclaptg=gnus;other = val, then select specifier viewer with mimetype|tag=... in mimeview. testmodifusemtime If true, use mtime instead of default ctime to determine if a file has been modified (in addition to size, which is always used). Setting this can reduce re-indexing on systems where extended attributes are modified (by some other application), but not indexed (changing extended attributes only affects ctime). Notes: This may prevent detection of change in some marginal file rename cases (the target would need to have the same size and mtime). You should probably also set noxattrfields to 1 in this case, except if you still prefer to perform xattr indexing, for example if the local file update pattern makes it of value (as in general, there is a risk for pure extended attributes updates without file modification to go undetected). Perform a full index reset after changing the value of this parameter. noxattrfields Recoll versions 1.19 and later automatically translate file extended attributes into document fields (to be processed according to the parameters from the fields file). Setting this variable to 1 will disable the behaviour. metadatacmds This allows executing external commands for each file and storing the output in &RCL; document fields. This could be used for example to index external tag data. The value is a list of field names and commands, don't forget an initial semi-colon. Example: [/some/area/of/the/fs] metadatacmds = ; tags = tmsu tags %f; otherfield = somecmd -xx %f As a specially disgusting hack brought by &RCL; 1.19.7, if a "field name" begins with rclmulti, the data returned by the command is expected to contain multiple field values, in configuration file format. This allows setting several fields by executing a single command. Example: metadatacmds = ; rclmulti1 = somecmd %f If somecmd returns data in the form of: field1 = value1 field2 = value for field2 field1 and field2 will be set inside the document metadata. Parameters affecting where and how we store things: dbdir The name of the Xapian data directory. It will be created if needed when the index is initialized. If this is not an absolute path, it will be interpreted relative to the configuration directory. The value can have embedded spaces but starting or trailing spaces will be trimmed. You cannot use quotes here. idxstatusfile The name of the scratch file where the indexer process updates its status. Default: idxstatus.txt inside the configuration directory. maxfsoccuppc Maximum file system occupation before we stop indexing. The value is a percentage, corresponding to what the "Capacity" df output column shows. The default value is 0, meaning no checking. mboxcachedir The directory where mbox message offsets cache files are held. This is normally $RECOLL_CONFDIR/mboxcache, but it may be useful to share a directory between different configurations. mboxcacheminmbs The minimum mbox file size over which we cache the offsets. There is really no sense in caching offsets for small files. The default is 5 MB. webcachedir This is only used by the web browser plugin indexing code, and defines where the cache for visited pages will live. Default: $RECOLL_CONFDIR/webcache webcachemaxmbs This is only used by the web browser plugin indexing code, and defines the maximum size for the web page cache. Default: 40 MB. Quite unfortunately, this is only taken into account when creating the cache file. You need to delete the file for a change to be taken into account. idxflushmb Threshold (megabytes of new text data) where we flush from memory to disk index. Setting this can help control memory usage. A value of 0 means no explicit flushing, letting Xapian use its own default, which is flushing every 10000 (or XAPIAN_FLUSH_THRESHOLD) documents, which gives little memory usage control, as memory usage also depends on average document size. The default value is 10, and it is probably a bit low. If your system usually has free memory, you can try higher values between 20 and 80. In my experience, values beyond 100 are always counterproductive. Parameters affecting multithread processing The &RCL; indexing process recollindex can use multiple threads to speed up indexing on multiprocessor systems. The work done to index files is divided in several stages and some of the stages can be executed by multiple threads. The stages are: File system walking: this is always performed by the main thread. File conversion and data extraction. Text processing (splitting, stemming, etc.) &XAP; index update. You can also read a longer document about the transformation of &RCL; indexing to multithreading. The threads configuration is controlled by two configuration file parameters. thrQSizes This variable defines the job input queues configuration. There are three possible queues for stages 2, 3 and 4, and this parameter should give the queue depth for each stage (three integer values). If a value of -1 is used for a given stage, no queue is used, and the thread will go on performing the next stage. In practise, deep queues have not been shown to increase performance. A value of 0 for the first queue tells &RCL; to perform autoconfiguration (no need for the two other values in this case) - this is the default configuration. thrTCounts This defines the number of threads used for each stage. If a value of -1 is used for one of the queue depths, the corresponding thread count is ignored. It makes no sense to use a value other than 1 for the last stage because updating the &XAP; index is necessarily single-threaded (and protected by a mutex). The following example would use three queues (of depth 2), and 4 threads for converting source documents, 2 for processing their text, and one to update the index. This was tested to be the best configuration on the test system (quadri-processor with multiple disks). thrQSizes = 2 2 2 thrTCounts = 4 2 1 The following example would use a single queue, and the complete processing for each document would be performed by a single thread (several documents will still be processed in parallel in most cases). The threads will use mutual exclusion when entering the index update stage. In practise the performance would be close to the precedent case in general, but worse in certain cases (e.g. a Zip archive would be performed purely sequentially), so the previous approach is preferred. YMMV... The 2 last values for thrTCounts are ignored. thrQSizes = 2 -1 -1 thrTCounts = 6 1 1 The following example would disable multithreading. Indexing will be performed by a single thread. thrQSizes = -1 -1 -1 Miscellaneous parameters: autodiacsens IF the index is not stripped, decide if we automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity. Default is no. autocasesens IF the index is not stripped, decide if we automatically trigger character case sensitivity if the search term has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity. Default is yes. loglevel,daemloglevel Verbosity level for recoll and recollindex. A value of 4 lists quite a lot of debug/information messages. 2 only lists errors. The daemversion is specific to the indexing monitor daemon. logfilename, daemlogfilename Where the messages should go. 'stderr' can be used as a special value, and is the default. The daemversion is specific to the indexing monitor daemon. checkneedretryindexscript This defines the name for a command executed by recollindex when starting indexing. If the exit status of the command is 0, recollindex retries to index all files which previously could not be indexed because of data extraction errors. The default value is a script which checks if any of the common bin directories have changed (indicating that a helper program may have been installed). mondelaypatterns This allows specify wildcard path patterns (processed with fnmatch(3) with 0 flag), to match files which change too often and for which a delay should be observed before re-indexing. This is a space-separated list, each entry being a pattern and a time in seconds, separated by a colon. You can use double quotes if a path entry contains white space. Example: mondelaypatterns = *.log:20 "this one has spaces*:10" monixinterval Minimum interval (seconds) for processing the indexing queue. The real time monitor does not process each event when it comes in, but will wait this time for the queue to accumulate to diminish overhead and in order to aggregate multiple events to the same file. Default 30 S. monauxinterval Period (in seconds) at which the real time monitor will regenerate the auxiliary databases (spelling, stemming) if needed. The default is one hour. monioniceclass, monioniceclassdata These allow defining the ionice class and data used by the indexer (default class 3, no data). filtermaxseconds Maximum handler execution time, after which it is aborted. Some postscript programs just loop... filtermaxmbytes &RCL; 1.20.7 and later. Maximum handler memory utilisation. This uses setrlimit(RLIMIT_AS) on most systems (total virtual memory space size limit). Some programs may start with 500 MBytes of mapped shared libraries, so take this into account when choosing a value. The default is a liberal 2000MB. filtersdir A directory to search for the external input handler scripts used to index some types of files. The value should not be changed, except if you want to modify one of the default scripts. The value can be redefined for any sub-directory. iconsdir The name of the directory where recoll result list icons are stored. You can change this if you want different images. idxabsmlen &RCL; stores an abstract for each indexed file inside the database. The text can come from an actual 'abstract' section in the document or will just be the beginning of the document. It is stored in the index so that it can be displayed inside the result lists without decoding the original file. The idxabsmlen parameter defines the size of the stored abstract. The default value is 250 bytes. The search interface gives you the choice to display this stored text or a synthetic abstract built by extracting text around the search terms. If you always prefer the synthetic abstract, you can reduce this value and save a little space. idxmetastoredlen Maximum stored length for metadata fields. This does not affect indexing (the whole field is processed anyway), just the amount of data stored in the index for the purpose of displaying fields inside result lists or previews. The default value is 150 bytes which may be too low if you have custom fields. aspellLanguage Language definitions to use when creating the aspell dictionary. The value must match a set of aspell language definition files. You can type "aspell config" to see where these are installed (look for data-dir). The default if the variable is not set is to use your desktop national language environment to guess the value. noaspell If this is set, the aspell dictionary generation is turned off. Useful for cases where you don't need the functionality or when it is unusable because aspell crashes during dictionary generation. mhmboxquirks This allows definining location-related quirks for the mailbox handler. Currently only the tbird flag is defined, and it should be set for directories which hold Thunderbird data, as their folder format is weird. The fields file This file contains information about dynamic fields handling in &RCL;. Some very basic fields have hard-wired behaviour, and, mostly, you should not change the original data inside the fields file. But you can create custom fields fitting your data and handle them just like they were native ones. The fields file has several sections, which each define an aspect of fields processing. Quite often, you'll have to modify several sections to obtain the desired behaviour. We will only give a short description here, you should refer to the comments inside the default file for more detailed information. Field names should be lowercase alphabetic ASCII. [prefixes] A field becomes indexed (searchable) by having a prefix defined in this section. [stored] A field becomes stored (displayable inside results) by having its name listed in this section (typically with an empty value). [aliases] This section defines lists of synonyms for the canonical names used inside the [prefixes] and [stored] sections [queryaliases] This section also defines aliases for the canonic field names, with the difference that the substitution will only be used at query time, avoiding any possibility that the value would pick-up random metadata from documents. handler-specific sections Some input handlers may need specific configuration for handling fields. Only the email message handler currently has such a section (named [mail]). It allows indexing arbitrary email headers in addition to the ones indexed by default. Other such sections may appear in the future. Here follows a small example of a personal fields file. This would extract a specific email header and use it as a searchable field, with data displayable inside result lists. (Side note: as the email handler does no decoding on the values, only plain ascii headers can be indexed, and only the first occurrence will be used for headers that occur several times). [prefixes] # Index mailmytag contents (with the given prefix) mailmytag = XMTAG [stored] # Store mailmytag inside the document data record (so that it can be # displayed - as %(mailmytag) - in result lists). mailmytag = [queryaliases] filename = fn containerfilename = cfn [mail] # Extract the X-My-Tag mail header, and use it internally with the # mailmytag field name x-my-tag = mailmytag Extended attributes in the fields file &RCL; versions 1.19 and later process user extended file attributes as documents fields by default. Attributes are processed as fields of the same name, after removing the user prefix on Linux. The [xattrtofields] section of the fields file allows specifying translations from extended attributes names to &RCL; field names. An empty translation disables use of the corresponding attribute data. The mimemap file mimemap specifies the file name extension to MIME type mappings. For file names without an extension, or with an unknown one, the system's file command will be executed to determine the MIME type (this can be switched off inside the main configuration file). The mappings can be specified on a per-subtree basis, which may be useful in some cases. Example: gaim logs have a .txt extension but should be handled specially, which is possible because they are usually all located in one place. The recoll_noindex mimemap variable has been moved to recoll.conf and renamed to noContentSuffixes, while keeping the same function, as of &RCL; version 1.21. For older &RCL; versions, see the documentation for noContentSuffixes but use recoll_noindex in mimemap. The mimeconf file mimeconf specifies how the different MIME types are handled for indexing, and which icons are displayed in the recoll result lists. Changing the parameters in the [index] section is probably not a good idea except if you are a &RCL; developer. The [icons] section allows you to change the icons which are displayed by recoll in the result lists (the values are the basenames of the png images inside the iconsdir directory (specified in recoll.conf). The mimeview file mimeview specifies which programs are started when you click on an Open link in a result list. Ie: HTML is normally displayed using firefox, but you may prefer Konqueror, your openoffice.org program might be named oofice instead of openoffice etc. Changes to this file can be done by direct editing, or through the recoll GUI preferences dialog. If Use desktop preferences to choose document editor is checked in the &RCL; GUI preferences, all mimeview entries will be ignored except the one labelled application/x-all (which is set to use xdg-open by default). In this case, the xallexcepts top level variable defines a list of MIME type exceptions which will be processed according to the local entries instead of being passed to the desktop. This is so that specific &RCL; options such as a page number or a search string can be passed to applications that support them, such as the evince viewer. As for the other configuration files, the normal usage is to have a mimeview inside your own configuration directory, with just the non-default entries, which will override those from the central configuration file. All viewer definition entries must be placed under a [view] section. The keys in the file are normally MIME types. You can add an application tag to specialize the choice for an area of the filesystem (using a localfields specification in mimeconf). The syntax for the key is mimetype|tag The nouncompforviewmts entry, (placed at the top level, outside of the [view] section), holds a list of MIME types that should not be uncompressed before starting the viewer (if they are found compressed, ie: mydoc.doc.gz). The right side of each assignment holds a command to be executed for opening the file. The following substitutions are performed: %D Document date %f File name. This may be the name of a temporary file if it was necessary to create one (ie: to extract a subdocument from a container). %i Internal path, for subdocuments of containers. The format depends on the container type. If this appears in the command line, &RCL; will not create a temporary file to extract the subdocument, expecting the called application (possibly a script) to be able to handle it. %M MIME type %p Page index. Only significant for a subset of document types, currently only PDF, Postscript and DVI files. Can be used to start the editor at the right page for a match or snippet. %s Search term. The value will only be set for documents with indexed page numbers (ie: PDF). The value will be one of the matched search terms. It would allow pre-setting the value in the "Find" entry inside Evince for example, for easy highlighting of the term. %u Url. In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for the document. This could be used in combination with field customisation to help with opening the document. The <filename>ptrans</filename> file ptrans specifies query-time path translations. These can be useful in multiple cases. The file has a section for any index which needs translations, either the main one or additional query indexes. The sections are named with the &XAP; index directory names. No slash character should exist at the end of the paths (all comparisons are textual). An exemple should make things sufficiently clear [/home/me/.recoll/xapiandb] /this/directory/moved = /to/this/place [/path/to/additional/xapiandb] /server/volume1/docdir = /net/server/volume1/docdir /server/volume2/docdir = /net/server/volume2/docdir Examples of configuration adjustments Adding an external viewer for an non-indexed type Imagine that you have some kind of file which does not have indexable content, but for which you would like to have a functional Open link in the result list (when found by file name). The file names end in .blob and can be displayed by application blobviewer. You need two entries in the configuration files for this to work: In $RECOLL_CONFDIR/mimemap (typically ~/.recoll/mimemap), add the following line: .blob = application/x-blobapp Note that the MIME type is made up here, and you could call it diesel/oil just the same. In $RECOLL_CONFDIR/mimeview under the [view] section, add: application/x-blobapp = blobviewer %f We are supposing that blobviewer wants a file name parameter here, you would use %u if it liked URLs better. If you just wanted to change the application used by &RCL; to display a MIME type which it already knows, you would just need to edit mimeview. The entries you add in your personal file override those in the central configuration, which you do not need to alter. mimeview can also be modified from the Gui. Adding indexing support for a new file type Let us now imagine that the above .blob files actually contain indexable text and that you know how to extract it with a command line program. Getting &RCL; to index the files is easy. You need to perform the above alteration, and also to add data to the mimeconf file (typically in ~/.recoll/mimeconf): Under the [index] section, add the following line (more about the rclblob indexing script later): application/x-blobapp = exec rclblob Under the [icons] section, you should choose an icon to be displayed for the files inside the result lists. Icons are normally 64x64 pixels PNG files which live in /usr/[local/]share/recoll/images. Under the [categories] section, you should add the MIME type where it makes sense (you can also create a category). Categories may be used for filtering in advanced search. The rclblob handler should be an executable program or script which exists inside /usr/[local/]share/recoll/filters. It will be given a file name as argument and should output the text or html contents on the standard output. The filter programming section describes in more detail how to write an input handler.
recoll-1.21.5/doc/user/RCL.INSTALL.CONFIG.html0000644000175000017500000020216312603157603017473 0ustar dockesdockes5.4.Configuration overview

5.4.Configuration overview

Most of the parameters specific to the recoll GUI are set through the Preferences menu and stored in the standard Qt place ($HOME/.config/Recoll.org/recoll.conf). You probably do not want to edit this by hand.

Recoll indexing options are set inside text configuration files located in a configuration directory. There can be several such directories, each of which defines the parameters for one index.

The configuration files can be edited by hand or through the Index configuration dialog (Preferences menu). The GUI tool will try to respect your formatting and comments as much as possible, so it is quite possible to use both ways.

The most accurate documentation for the configuration parameters is given by comments inside the default files, and we will just give a general overview here.

By default, for each index, there are two sets of configuration files. System-wide configuration files are kept in a directory named like /usr/[local/]share/recoll/examples, and define default values, shared by all indexes. For each index, a parallel set of files defines the customized parameters.

In addition (as of Recoll version 1.19.7), it is possible to specify two additional configuration directories which will be stacked before and after the user configuration directory. These are defined by the RECOLL_CONFTOP and RECOLL_CONFMID environment variables. Values from configuration files inside the top directory will override user ones, values from configuration files inside the middle directory will override system ones and be overriden by user ones. These two variables may be of use to applications which augment Recoll functionality, and need to add configuration data without disturbing the user's files. Please note that the two, currently single, values will probably be interpreted as colon-separated lists in the future: do not use colon characters inside the directory paths.

The default location of the configuration is the .recoll directory in your home. Most people will only use this directory.

This location can be changed, or others can be added with the RECOLL_CONFDIR environment variable or the -c option parameter to recoll and recollindex.

If the .recoll directory does not exist when recoll or recollindex are started, it will be created with a set of empty configuration files. recoll will give you a chance to edit the configuration file before starting indexing. recollindex will proceed immediately. To avoid mistakes, the automatic directory creation will only occur for the default location, not if -c or RECOLL_CONFDIR were used (in the latter cases, you will have to create the directory).

All configuration files share the same format. For example, a short extract of the main configuration file might look as follows:

        # Space-separated list of directories to index.
        topdirs =  ~/docs /usr/share/doc

        [~/somedirectory-with-utf8-txt-files]
        defaultcharset = utf-8
        

There are three kinds of lines:

  • Comment (starts with #) or empty.

  • Parameter affectation (name = value).

  • Section definition ([somedirname]).

Depending on the type of configuration file, section definitions either separate groups of parameters or allow redefining some parameters for a directory sub-tree. They stay in effect until another section definition, or the end of file, is encountered. Some of the parameters used for indexing are looked up hierarchically from the current directory location upwards. Not all parameters can be meaningfully redefined, this is specified for each in the next section.

When found at the beginning of a file path, the tilde character (~) is expanded to the name of the user's home directory, as a shell would do.

White space is used for separation inside lists. List elements with embedded spaces can be quoted using double-quotes.

Encoding issues.Most of the configuration parameters are plain ASCII. Two particular sets of values may cause encoding issues:

  • File path parameters may contain non-ascii characters and should use the exact same byte values as found in the file system directory. Usually, this means that the configuration file should use the system default locale encoding.

  • The unac_except_trans parameter should be encoded in UTF-8. If your system locale is not UTF-8, and you need to also specify non-ascii file paths, this poses a difficulty because common text editors cannot handle multiple encodings in a single file. In this relatively unlikely case, you can edit the configuration file as two separate text files with appropriate encodings, and concatenate them to create the complete configuration.

5.4.1.Environment variables

RECOLL_CONFDIR

Defines the main configuration directory.

RECOLL_TMPDIR, TMPDIR

Locations for temporary files, in this order of priority. The default if none of these is set is to use /tmp. Big temporary files may be created during indexing, mostly for decompressing, and also for processing, e.g. email attachments.

RECOLL_CONFTOP, RECOLL_CONFMID

Allow adding configuration directories with priorities below and above the user directory (see above the Configuration overview section for details).

RECOLL_EXTRA_DBS, RECOLL_ACTIVE_EXTRA_DBS

Help for setting up external indexes. See this paragraph for explanations.

RECOLL_DATADIR

Defines replacement for the default location of Recoll data files, normally found in, e.g., /usr/share/recoll).

RECOLL_FILTERSDIR

Defines replacement for the default location of Recoll filters, normally found in, e.g., /usr/share/recoll/filters).

ASPELL_PROG

aspell program to use for creating the spelling dictionary. The result has to be compatible with the libaspell which Recoll is using.

VARNAME

Blabla

5.4.2.The main configuration file, recoll.conf

recoll.conf is the main configuration file. It defines things like what to index (top directories and things to ignore), and the default character set to use for document types which do not specify it internally.

The default configuration will index your home directory. If this is not appropriate, start recoll to create a blank configuration, click Cancel, and edit the configuration file before restarting the command. This will start the initial indexing, which may take some time.

Most of the following parameters can be changed from the Index Configuration menu in the recoll interface. Some can only be set by editing the configuration file.

5.4.2.1.Parameters affecting what documents we index:

topdirs

Specifies the list of directories or files to index (recursively for directories). You can use symbolic links as elements of this list. See the followLinks option about following symbolic links found under the top elements (not followed by default).

skippedNames

A space-separated list of wilcard patterns for names of files or directories that should be completely ignored. The list defined in the default file is:

skippedNames = #* bin CVS  Cache cache* caughtspam  tmp .thumbnails .svn \
 	       *~ .beagle .git .hg .bzr loop.ps .xsession-errors \
	       .recoll* xapiandb recollrc recoll.conf 

The list can be redefined at any sub-directory in the indexed area.

The top-level directories are not affected by this list (that is, a directory in topdirs might match and would still be indexed).

The list in the default configuration does not exclude hidden directories (names beginning with a dot), which means that it may index quite a few things that you do not want. On the other hand, email user agents like thunderbird usually store messages in hidden directories, and you probably want this indexed. One possible solution is to have .* in skippedNames, and add things like ~/.thunderbird or ~/.evolution in topdirs.

Not even the file names are indexed for patterns in this list. See the noContentSuffixes variable for an alternative approach which indexes the file names.

noContentSuffixes

This is a list of file name endings (not wildcard expressions, nor dot-delimited suffixes). Only the names of matching files will be indexed (no attempt at MIME type identification, no decompression, no content indexing). This can be redefined for subdirectories, and edited from the GUI. The default value is:

noContentSuffixes = .md5 .map \
       .o .lib .dll .a .sys .exe .com \
       .mpp .mpt .vsd \
	   .img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz \
       .dat .bak .rdf .log.gz .log .db .msf .pid \
       ,v ~ #

skippedPaths and daemSkippedPaths

A space-separated list of patterns for paths of files or directories that should be skipped. There is no default in the sample configuration file, but the code always adds the configuration and database directories in there.

skippedPaths is used both by batch and real time indexing. daemSkippedPaths can be used to specify things that should be indexed at startup, but not monitored.

Example of use for skipping text files only in a specific directory:

skippedPaths = ~/somedir/*.txt
              
skippedPathsFnmPathname

The values in the *skippedPaths variables are matched by default with fnmatch(3), with the FNM_PATHNAME flag. This means that '/' characters must be matched explicitely. You can set skippedPathsFnmPathname to 0 to disable the use of FNM_PATHNAME (meaning that /*/dir3 will match /dir1/dir2/dir3).

zipSkippedNames

A space-separated list of patterns for names of files or directories that should be ignored inside zip archives. This is used directly by the zip handler, and has a function similar to skippedNames, but works independantly. Can be redefined for filesystem subdirectories. For versions up to 1.19, you will need to update the Zip handler and install a supplementary Python module. The details are described on the Recoll wiki.

followLinks

Specifies if the indexer should follow symbolic links while walking the file tree. The default is to ignore symbolic links to avoid multiple indexing of linked files. No effort is made to avoid duplication when this option is set to true. This option can be set individually for each of the topdirs members by using sections. It can not be changed below the topdirs level.

indexedmimetypes

Recoll normally indexes any file which it knows how to read. This list lets you restrict the indexed MIME types to what you specify. If the variable is unspecified or the list empty (the default), all supported types are processed. Can be redefined for subdirectories.

excludedmimetypes

This list lets you exclude some MIME types from indexing. Can be redefined for subdirectories.

compressedfilemaxkbs

Size limit for compressed (.gz or .bz2) files. These need to be decompressed in a temporary directory for identification, which can be very wasteful if 'uninteresting' big compressed files are present. Negative means no limit, 0 means no processing of any compressed file. Defaults to -1.

textfilemaxmbs

Maximum size for text files. Very big text files are often uninteresting logs. Set to -1 to disable (default 20MB).

textfilepagekbs

If set to other than -1, text files will be indexed as multiple documents of the given page size. This may be useful if you do want to index very big text files as it will both reduce memory usage at index time and help with loading data to the preview window. A size of a few megabytes would seem reasonable (default: 1MB).

membermaxkbs

This defines the maximum size in kilobytes for an archive member (zip, tar or rar at the moment). Bigger entries will be skipped.

indexallfilenames

Recoll indexes file names in a special section of the database to allow specific file names searches using wild cards. This parameter decides if file name indexing is performed only for files with MIME types that would qualify them for full text indexing, or for all files inside the selected subtrees, independently of MIME type.

usesystemfilecommand

Decide if we execute a system command (file -i by default) as a final step for determining the MIME type for a file (the main procedure uses suffix associations as defined in the mimemap file). This can be useful for files with suffix-less names, but it will also cause the indexing of many bogus "text" files.

systemfilecommand

Command to use for mime for mime type determination if usesystefilecommand is set. Recent versions of xdg-mime sometimes work better than file.

processwebqueue

If this is set, process the directory where Web browser plugins copy visited pages for indexing.

webqueuedir

The path to the web indexing queue. This is hard-coded in the Firefox plugin as ~/.recollweb/ToIndex so there should be no need to change it.

5.4.2.2.Parameters affecting how we generate terms:

Changing some of these parameters will imply a full reindex. Also, when using multiple indexes, it may not make sense to search indexes that don't share the values for these parameters, because they usually affect both search and index operations.

indexStripChars

Decide if we strip characters of diacritics and convert them to lower-case before terms are indexed. If we don't, searches sensitive to case and diacritics can be performed, but the index will be bigger, and some marginal weirdness may sometimes occur. The default is a stripped index (indexStripChars = 1) for now. When using multiple indexes for a search, this parameter must be defined identically for all. Changing the value implies an index reset.

maxTermExpand

Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list.

maxXapianClauses

Maximum number of elementary clauses we can add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations.

nonumbers

If this set to true, no terms will be generated for numbers. For example "123", "1.5e6", 192.168.1.4, would not be indexed ("value123" would still be). Numbers are often quite interesting to search for, and this should probably not be set except for special situations, ie, scientific documents with huge amounts of numbers in them. This can only be set for a whole index, not for a subtree.

nocjk

If this set to true, specific east asian (Chinese Korean Japanese) characters/word splitting is turned off. This will save a small amount of cpu if you have no CJK documents. If your document base does include such text but you are not interested in searching it, setting nocjk may be a significant time and space saver.

cjkngramlen

This lets you adjust the size of n-grams used for indexing CJK text. The default value of 2 is probably appropriate in most cases. A value of 3 would allow more precision and efficiency on longer words, but the index will be approximately twice as large.

indexstemminglanguages

A list of languages for which the stem expansion databases will be built. See recollindex(1) or use the recollindex -l command for possible values. You can add a stem expansion database for a different language by using recollindex -s, but it will be deleted during the next indexing. Only languages listed in the configuration file are permanent.

defaultcharset

The name of the character set used for files that do not contain a character set definition (ie: plain text files). This can be redefined for any sub-directory. If it is not set at all, the character set used is the one defined by the nls environment ( LC_ALL, LC_CTYPE, LANG), or iso8859-1 if nothing is set.

unac_except_trans

This is a list of characters, encoded in UTF-8, which should be handled specially when converting text to unaccented lowercase. For example, in Swedish, the letter a with diaeresis has full alphabet citizenship and should not be turned into an a. Each element in the space-separated list has the special character as first element and the translation following. The handling of both the lowercase and upper-case versions of a character should be specified, as appartenance to the list will turn-off both standard accent and case processing. Example for Swedish:

unac_except_trans =       
            

Note that the translation is not limited to a single character, you could very well have something like ue in the list.

The default value set for unac_except_trans can't be listed here because I have trouble with SGML and UTF-8, but it only contains ligature decompositions: german ss, oe, ae, fi, fl.

This parameter can't be defined for subdirectories, it is global, because there is no way to do otherwise when querying. If you have document sets which would need different values, you will have to index and query them separately.

maildefcharset

This can be used to define the default character set specifically for email messages which don't specify it. This is mainly useful for readpst (libpst) dumps, which are utf-8 but do not say so.

localfields

This allows setting fields for all documents under a given directory. Typical usage would be to set an "rclaptg" field, to be used in mimeview to select a specific viewer. If several fields are to be set, they should be separated with a semi-colon (';') character, which there is currently no way to escape. Also note the initial semi-colon. Example: localfields= ;rclaptg=gnus;other = val, then select specifier viewer with mimetype|tag=... in mimeview.

testmodifusemtime

If true, use mtime instead of default ctime to determine if a file has been modified (in addition to size, which is always used). Setting this can reduce re-indexing on systems where extended attributes are modified (by some other application), but not indexed (changing extended attributes only affects ctime). Notes:

  • This may prevent detection of change in some marginal file rename cases (the target would need to have the same size and mtime).

  • You should probably also set noxattrfields to 1 in this case, except if you still prefer to perform xattr indexing, for example if the local file update pattern makes it of value (as in general, there is a risk for pure extended attributes updates without file modification to go undetected).

Perform a full index reset after changing the value of this parameter.

noxattrfields

Recoll versions 1.19 and later automatically translate file extended attributes into document fields (to be processed according to the parameters from the fields file). Setting this variable to 1 will disable the behaviour.

metadatacmds

This allows executing external commands for each file and storing the output in Recoll document fields. This could be used for example to index external tag data. The value is a list of field names and commands, don't forget an initial semi-colon. Example:

[/some/area/of/the/fs]
metadatacmds = ; tags = tmsu tags %f; otherfield = somecmd -xx %f
                

As a specially disgusting hack brought by Recoll 1.19.7, if a "field name" begins with rclmulti, the data returned by the command is expected to contain multiple field values, in configuration file format. This allows setting several fields by executing a single command. Example:

metadatacmds = ; rclmulti1 = somecmd %f
                

If somecmd returns data in the form of:

field1 = value1
field2 = value for field2
                

field1 and field2 will be set inside the document metadata.

5.4.2.3.Parameters affecting where and how we store things:

dbdir

The name of the Xapian data directory. It will be created if needed when the index is initialized. If this is not an absolute path, it will be interpreted relative to the configuration directory. The value can have embedded spaces but starting or trailing spaces will be trimmed. You cannot use quotes here.

idxstatusfile

The name of the scratch file where the indexer process updates its status. Default: idxstatus.txt inside the configuration directory.

maxfsoccuppc

Maximum file system occupation before we stop indexing. The value is a percentage, corresponding to what the "Capacity" df output column shows. The default value is 0, meaning no checking.

mboxcachedir

The directory where mbox message offsets cache files are held. This is normally $RECOLL_CONFDIR/mboxcache, but it may be useful to share a directory between different configurations.

mboxcacheminmbs

The minimum mbox file size over which we cache the offsets. There is really no sense in caching offsets for small files. The default is 5 MB.

webcachedir

This is only used by the web browser plugin indexing code, and defines where the cache for visited pages will live. Default: $RECOLL_CONFDIR/webcache

webcachemaxmbs

This is only used by the web browser plugin indexing code, and defines the maximum size for the web page cache. Default: 40 MB. Quite unfortunately, this is only taken into account when creating the cache file. You need to delete the file for a change to be taken into account.

idxflushmb

Threshold (megabytes of new text data) where we flush from memory to disk index. Setting this can help control memory usage. A value of 0 means no explicit flushing, letting Xapian use its own default, which is flushing every 10000 (or XAPIAN_FLUSH_THRESHOLD) documents, which gives little memory usage control, as memory usage also depends on average document size. The default value is 10, and it is probably a bit low. If your system usually has free memory, you can try higher values between 20 and 80. In my experience, values beyond 100 are always counterproductive.

5.4.2.4.Parameters affecting multithread processing

The Recoll indexing process recollindex can use multiple threads to speed up indexing on multiprocessor systems. The work done to index files is divided in several stages and some of the stages can be executed by multiple threads. The stages are:

  1. File system walking: this is always performed by the main thread.
  2. File conversion and data extraction.
  3. Text processing (splitting, stemming, etc.)
  4. Xapian index update.

You can also read a longer document about the transformation of Recoll indexing to multithreading.

The threads configuration is controlled by two configuration file parameters.

thrQSizes

This variable defines the job input queues configuration. There are three possible queues for stages 2, 3 and 4, and this parameter should give the queue depth for each stage (three integer values). If a value of -1 is used for a given stage, no queue is used, and the thread will go on performing the next stage. In practise, deep queues have not been shown to increase performance. A value of 0 for the first queue tells Recoll to perform autoconfiguration (no need for the two other values in this case) - this is the default configuration.

thrTCounts

This defines the number of threads used for each stage. If a value of -1 is used for one of the queue depths, the corresponding thread count is ignored. It makes no sense to use a value other than 1 for the last stage because updating the Xapian index is necessarily single-threaded (and protected by a mutex).

The following example would use three queues (of depth 2), and 4 threads for converting source documents, 2 for processing their text, and one to update the index. This was tested to be the best configuration on the test system (quadri-processor with multiple disks).

thrQSizes = 2 2 2
thrTCounts =  4 2 1

The following example would use a single queue, and the complete processing for each document would be performed by a single thread (several documents will still be processed in parallel in most cases). The threads will use mutual exclusion when entering the index update stage. In practise the performance would be close to the precedent case in general, but worse in certain cases (e.g. a Zip archive would be performed purely sequentially), so the previous approach is preferred. YMMV... The 2 last values for thrTCounts are ignored.

thrQSizes = 2 -1 -1
thrTCounts =  6 1 1

The following example would disable multithreading. Indexing will be performed by a single thread.

thrQSizes = -1 -1 -1

5.4.2.5.Miscellaneous parameters:

autodiacsens

IF the index is not stripped, decide if we automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity. Default is no.

autocasesens

IF the index is not stripped, decide if we automatically trigger character case sensitivity if the search term has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity. Default is yes.

loglevel,daemloglevel

Verbosity level for recoll and recollindex. A value of 4 lists quite a lot of debug/information messages. 2 only lists errors. The daemversion is specific to the indexing monitor daemon.

logfilename, daemlogfilename

Where the messages should go. 'stderr' can be used as a special value, and is the default. The daemversion is specific to the indexing monitor daemon.

checkneedretryindexscript

This defines the name for a command executed by recollindex when starting indexing. If the exit status of the command is 0, recollindex retries to index all files which previously could not be indexed because of data extraction errors. The default value is a script which checks if any of the common bin directories have changed (indicating that a helper program may have been installed).

mondelaypatterns

This allows specify wildcard path patterns (processed with fnmatch(3) with 0 flag), to match files which change too often and for which a delay should be observed before re-indexing. This is a space-separated list, each entry being a pattern and a time in seconds, separated by a colon. You can use double quotes if a path entry contains white space. Example:

mondelaypatterns = *.log:20 "this one has spaces*:10"
              
monixinterval

Minimum interval (seconds) for processing the indexing queue. The real time monitor does not process each event when it comes in, but will wait this time for the queue to accumulate to diminish overhead and in order to aggregate multiple events to the same file. Default 30 S.

monauxinterval

Period (in seconds) at which the real time monitor will regenerate the auxiliary databases (spelling, stemming) if needed. The default is one hour.

monioniceclass, monioniceclassdata

These allow defining the ionice class and data used by the indexer (default class 3, no data).

filtermaxseconds

Maximum handler execution time, after which it is aborted. Some postscript programs just loop...

filtermaxmbytes

Recoll 1.20.7 and later. Maximum handler memory utilisation. This uses setrlimit(RLIMIT_AS) on most systems (total virtual memory space size limit). Some programs may start with 500 MBytes of mapped shared libraries, so take this into account when choosing a value. The default is a liberal 2000MB.

filtersdir

A directory to search for the external input handler scripts used to index some types of files. The value should not be changed, except if you want to modify one of the default scripts. The value can be redefined for any sub-directory.

iconsdir

The name of the directory where recoll result list icons are stored. You can change this if you want different images.

idxabsmlen

Recoll stores an abstract for each indexed file inside the database. The text can come from an actual 'abstract' section in the document or will just be the beginning of the document. It is stored in the index so that it can be displayed inside the result lists without decoding the original file. The idxabsmlen parameter defines the size of the stored abstract. The default value is 250 bytes. The search interface gives you the choice to display this stored text or a synthetic abstract built by extracting text around the search terms. If you always prefer the synthetic abstract, you can reduce this value and save a little space.

idxmetastoredlen

Maximum stored length for metadata fields. This does not affect indexing (the whole field is processed anyway), just the amount of data stored in the index for the purpose of displaying fields inside result lists or previews. The default value is 150 bytes which may be too low if you have custom fields.

aspellLanguage

Language definitions to use when creating the aspell dictionary. The value must match a set of aspell language definition files. You can type "aspell config" to see where these are installed (look for data-dir). The default if the variable is not set is to use your desktop national language environment to guess the value.

noaspell

If this is set, the aspell dictionary generation is turned off. Useful for cases where you don't need the functionality or when it is unusable because aspell crashes during dictionary generation.

mhmboxquirks

This allows definining location-related quirks for the mailbox handler. Currently only the tbird flag is defined, and it should be set for directories which hold Thunderbird data, as their folder format is weird.

5.4.3.The fields file

This file contains information about dynamic fields handling in Recoll. Some very basic fields have hard-wired behaviour, and, mostly, you should not change the original data inside the fields file. But you can create custom fields fitting your data and handle them just like they were native ones.

The fields file has several sections, which each define an aspect of fields processing. Quite often, you'll have to modify several sections to obtain the desired behaviour.

We will only give a short description here, you should refer to the comments inside the default file for more detailed information.

Field names should be lowercase alphabetic ASCII.

[prefixes]

A field becomes indexed (searchable) by having a prefix defined in this section.

[stored]

A field becomes stored (displayable inside results) by having its name listed in this section (typically with an empty value).

[aliases]

This section defines lists of synonyms for the canonical names used inside the [prefixes] and [stored] sections

[queryaliases]

This section also defines aliases for the canonic field names, with the difference that the substitution will only be used at query time, avoiding any possibility that the value would pick-up random metadata from documents.

handler-specific sections

Some input handlers may need specific configuration for handling fields. Only the email message handler currently has such a section (named [mail]). It allows indexing arbitrary email headers in addition to the ones indexed by default. Other such sections may appear in the future.

Here follows a small example of a personal fields file. This would extract a specific email header and use it as a searchable field, with data displayable inside result lists. (Side note: as the email handler does no decoding on the values, only plain ascii headers can be indexed, and only the first occurrence will be used for headers that occur several times).

[prefixes]
# Index mailmytag contents (with the given prefix)
mailmytag = XMTAG

[stored]
# Store mailmytag inside the document data record (so that it can be
# displayed - as %(mailmytag) - in result lists).
mailmytag = 

[queryaliases]
filename = fn
containerfilename = cfn

[mail]
# Extract the X-My-Tag mail header, and use it internally with the
# mailmytag field name
x-my-tag = mailmytag

5.4.3.1.Extended attributes in the fields file

Recoll versions 1.19 and later process user extended file attributes as documents fields by default.

Attributes are processed as fields of the same name, after removing the user prefix on Linux.

The [xattrtofields] section of the fields file allows specifying translations from extended attributes names to Recoll field names. An empty translation disables use of the corresponding attribute data.

5.4.4.The mimemap file

mimemap specifies the file name extension to MIME type mappings.

For file names without an extension, or with an unknown one, the system's file -i command will be executed to determine the MIME type (this can be switched off inside the main configuration file).

The mappings can be specified on a per-subtree basis, which may be useful in some cases. Example: gaim logs have a .txt extension but should be handled specially, which is possible because they are usually all located in one place.

The recoll_noindex mimemap variable has been moved to recoll.conf and renamed to noContentSuffixes, while keeping the same function, as of Recoll version 1.21. For older Recoll versions, see the documentation for noContentSuffixes but use recoll_noindex in mimemap.

5.4.5.The mimeconf file

mimeconf specifies how the different MIME types are handled for indexing, and which icons are displayed in the recoll result lists.

Changing the parameters in the [index] section is probably not a good idea except if you are a Recoll developer.

The [icons] section allows you to change the icons which are displayed by recoll in the result lists (the values are the basenames of the png images inside the iconsdir directory (specified in recoll.conf).

5.4.6.The mimeview file

mimeview specifies which programs are started when you click on an Open link in a result list. Ie: HTML is normally displayed using firefox, but you may prefer Konqueror, your openoffice.org program might be named oofice instead of openoffice etc.

Changes to this file can be done by direct editing, or through the recoll GUI preferences dialog.

If Use desktop preferences to choose document editor is checked in the Recoll GUI preferences, all mimeview entries will be ignored except the one labelled application/x-all (which is set to use xdg-open by default).

In this case, the xallexcepts top level variable defines a list of MIME type exceptions which will be processed according to the local entries instead of being passed to the desktop. This is so that specific Recoll options such as a page number or a search string can be passed to applications that support them, such as the evince viewer.

As for the other configuration files, the normal usage is to have a mimeview inside your own configuration directory, with just the non-default entries, which will override those from the central configuration file.

All viewer definition entries must be placed under a [view] section.

The keys in the file are normally MIME types. You can add an application tag to specialize the choice for an area of the filesystem (using a localfields specification in mimeconf). The syntax for the key is mimetype|tag

The nouncompforviewmts entry, (placed at the top level, outside of the [view] section), holds a list of MIME types that should not be uncompressed before starting the viewer (if they are found compressed, ie: mydoc.doc.gz).

The right side of each assignment holds a command to be executed for opening the file. The following substitutions are performed:

  • %D.Document date

  • %f.File name. This may be the name of a temporary file if it was necessary to create one (ie: to extract a subdocument from a container).

  • %i.Internal path, for subdocuments of containers. The format depends on the container type. If this appears in the command line, Recoll will not create a temporary file to extract the subdocument, expecting the called application (possibly a script) to be able to handle it.

  • %M.MIME type

  • %p.Page index. Only significant for a subset of document types, currently only PDF, Postscript and DVI files. Can be used to start the editor at the right page for a match or snippet.

  • %s.Search term. The value will only be set for documents with indexed page numbers (ie: PDF). The value will be one of the matched search terms. It would allow pre-setting the value in the "Find" entry inside Evince for example, for easy highlighting of the term.

  • %u.Url.

In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for the document. This could be used in combination with field customisation to help with opening the document.

5.4.7.The ptrans file

ptrans specifies query-time path translations. These can be useful in multiple cases.

The file has a section for any index which needs translations, either the main one or additional query indexes. The sections are named with the Xapian index directory names. No slash character should exist at the end of the paths (all comparisons are textual). An exemple should make things sufficiently clear

          [/home/me/.recoll/xapiandb]
          /this/directory/moved = /to/this/place

          [/path/to/additional/xapiandb]
          /server/volume1/docdir = /net/server/volume1/docdir
          /server/volume2/docdir = /net/server/volume2/docdir
        

5.4.8.Examples of configuration adjustments

5.4.8.1.Adding an external viewer for an non-indexed type

Imagine that you have some kind of file which does not have indexable content, but for which you would like to have a functional Open link in the result list (when found by file name). The file names end in .blob and can be displayed by application blobviewer.

You need two entries in the configuration files for this to work:

  • In $RECOLL_CONFDIR/mimemap (typically ~/.recoll/mimemap), add the following line:

    .blob = application/x-blobapp
    

    Note that the MIME type is made up here, and you could call it diesel/oil just the same.

  • In $RECOLL_CONFDIR/mimeview under the [view] section, add:

    application/x-blobapp = blobviewer %f
    

    We are supposing that blobviewer wants a file name parameter here, you would use %u if it liked URLs better.

If you just wanted to change the application used by Recoll to display a MIME type which it already knows, you would just need to edit mimeview. The entries you add in your personal file override those in the central configuration, which you do not need to alter. mimeview can also be modified from the Gui.

5.4.8.2.Adding indexing support for a new file type

Let us now imagine that the above .blob files actually contain indexable text and that you know how to extract it with a command line program. Getting Recoll to index the files is easy. You need to perform the above alteration, and also to add data to the mimeconf file (typically in ~/.recoll/mimeconf):

  • Under the [index] section, add the following line (more about the rclblob indexing script later):

    application/x-blobapp = exec rclblob
    
  • Under the [icons] section, you should choose an icon to be displayed for the files inside the result lists. Icons are normally 64x64 pixels PNG files which live in /usr/[local/]share/recoll/images.

  • Under the [categories] section, you should add the MIME type where it makes sense (you can also create a category). Categories may be used for filtering in advanced search.

The rclblob handler should be an executable program or script which exists inside /usr/[local/]share/recoll/filters. It will be given a file name as argument and should output the text or html contents on the standard output.

The filter programming section describes in more detail how to write an input handler.

recoll-1.21.5/doc/user/RCL.INSTALL.EXTERNAL.html0000644000175000017500000002256212603157603017753 0ustar dockesdockes5.2.Supporting packages

5.2.Supporting packages

Recoll uses external applications to index some file types. You need to install them for the file types that you wish to have indexed (these are run-time optional dependencies. None is needed for building or running Recoll except for indexing their specific file type).

After an indexing pass, the commands that were found missing can be displayed from the recoll File menu. The list is stored in the missing text file inside the configuration directory.

A list of common file types which need external commands follows. Many of the handlers need the iconv command, which is not always listed as a dependancy.

Please note that, due to the relatively dynamic nature of this information, the most up to date version is now kept on http://www.recoll.org/features.html along with links to the home pages or best source/patches pages, and misc tips. The list below is not updated often and may be quite stale.

For many Linux distributions, most of the commands listed can be installed from the package repositories. However, the packages are sometimes outdated, or not the best version for Recoll, so you should take a look at http://www.recoll.org/features.html if a file type is important to you.

As of Recoll release 1.14, a number of XML-based formats that were handled by ad hoc handler code now use the xsltproc command, which usually comes with libxslt. These are: abiword, fb2 (ebooks), kword, openoffice, svg.

Now for the list:

  • Openoffice files need unzip and xsltproc.

  • PDF files need pdftotext which is part of Poppler (usually comes with the poppler-utils package). Avoid the original one from Xpdf.

  • Postscript files need pstotext. The original version has an issue with shell character in file names, which is corrected in recent packages. See http://www.recoll.org/features.html for more detail.

  • MS Word needs antiword. It is also useful to have wvWare installed as it may be be used as a fallback for some files which antiword does not handle.

  • MS Excel and PowerPoint are processed by internal Python handlers.

  • MS Open XML (docx) needs xsltproc.

  • Wordperfect files need wpd2html from the libwpd (or libwpd-tools on Ubuntu) package.

  • RTF files need unrtf, which, in its older versions, has much trouble with non-western character sets. Many Linux distributions carry outdated unrtf versions. Check http://www.recoll.org/features.html for details.

  • TeX files need untex or detex. Check http://www.recoll.org/features.html for sources if it's not packaged for your distribution.

  • dvi files need dvips.

  • djvu files need djvutxt and djvused from the DjVuLibre package.

  • Audio files: Recoll releases 1.14 and later use a single Python handler based on mutagen for all audio file types.

  • Pictures: Recoll uses the Exiftool Perl package to extract tag information. Most image file formats are supported. Note that there may not be much interest in indexing the technical tags (image size, aperture, etc.). This is only of interest if you store personal tags or textual descriptions inside the image files.

  • chm: files in Microsoft help format need Python and the pychm module (which needs chmlib).

  • ICS: up to Recoll 1.13, iCalendar files need Python and the icalendar module. icalendar is not needed for newer versions, which use internal code.

  • Zip archives need Python (and the standard zipfile module).

  • Rar archives need Python, the rarfile Python module and the unrar utility.

  • Midi karaoke files need Python and the Midi module

  • Konqueror webarchive format with Python (uses the Tarfile module).

  • Mimehtml web archive format (support based on the email handler, which introduces some mild weirdness, but still usable).

Text, HTML, email folders, and Scribus files are processed internally. Lyx is used to index Lyx files. Many handlers need iconv and the standard sed and awk.

recoll-1.21.5/doc/user/RCL.INSTALL.html0000644000175000017500000000721712603157603016532 0ustar dockesdockesChapter5.Installation and configuration

Chapter5.Installation and configuration

5.1.Installing a binary copy

Recoll binary copies are always distributed as regular packages for your system. They can be obtained either through the system's normal software distribution framework (e.g. Debian/Ubuntu apt, FreeBSD ports, etc.), or from some type of "backports" repository providing versions newer than the standard ones, or found on the Recoll WEB site in some cases.

There used to exist another form of binary install, as pre-compiled source trees, but these are just less convenient than the packages and don't exist any more.

The package management tools will usually automatically deal with hard dependancies for packages obtained from a proper package repository. You will have to deal with them by hand for downloaded packages (for example, when dpkg complains about missing dependancies).

In all cases, you will have to check or install supporting applications for the file types that you want to index beyond those that are natively processed by Recoll (text, HTML, email files, and a few others).

You should also maybe have a look at the configuration section (but this may not be necessary for a quick test with default parameters). Most parameters can be more conveniently set from the GUI interface.

recoll-1.21.5/doc/user/RCL.SEARCH.DESKTOP.html0000644000175000017500000001220112603157603017466 0ustar dockesdockes3.8.Desktop integration

3.8.Desktop integration

Being independant of the desktop type has its drawbacks: Recoll desktop integration is minimal. However there are a few tools available:

Here follow a few other things that may help.

3.8.1.Hotkeying recoll

It is surprisingly convenient to be able to show or hide the Recoll GUI with a single keystroke. Recoll comes with a small Python script, based on the libwnck window manager interface library, which will allow you to do just this. The detailed instructions are on this wiki page.

3.8.2.The KDE Kicker Recoll applet

This is probably obsolete now. Anyway:

The Recoll source tree contains the source code to the recoll_applet, a small application derived from the find_applet. This can be used to add a small Recoll launcher to the KDE panel.

The applet is not automatically built with the main Recoll programs, nor is it included with the main source distribution (because the KDE build boilerplate makes it relatively big). You can download its source from the recoll.org download page. Use the omnipotent configure;make;make install incantation to build and install.

You can then add the applet to the panel by right-clicking the panel and choosing the Add applet entry.

The recoll_applet has a small text window where you can type a Recoll query (in query language form), and an icon which can be used to restrict the search to certain types of files. It is quite primitive, and launches a new recoll GUI instance every time (even if it is already running). You may find it useful anyway.

recoll-1.21.5/doc/user/RCL.SEARCH.PTRANS.html0000644000175000017500000001044212603157603017371 0ustar dockesdockes3.4.Path translations

3.4.Path translations

In some cases, the document paths stored inside the index do not match the actual ones, so that document previews and accesses will fail. This can occur in a number of circumstances:

  • When using multiple indexes it is a relatively common occurrence that some will actually reside on a remote volume, for exemple mounted via NFS. In this case, the paths used to access the documents on the local machine are not necessarily the same than the ones used while indexing on the remote machine. For example, /home/me may have been used as a topdirs elements while indexing, but the directory might be mounted as /net/server/home/me on the local machine.

  • The case may also occur with removable disks. It is perfectly possible to configure an index to live with the documents on the removable disk, but it may happen that the disk is not mounted at the same place so that the documents paths from the index are invalid.

  • As a last exemple, one could imagine that a big directory has been moved, but that it is currently inconvenient to run the indexer.

More generally, the path translation facility may be useful whenever the documents paths seen by the indexer are not the same as the ones which should be used at query time.

Recoll has a facility for rewriting access paths when extracting the data from the index. The translations can be defined for the main index and for any additional query index.

In the above NFS example, Recoll could be instructed to rewrite any file:///home/me URL from the index to file:///net/server/home/me, allowing accesses from the client.

The translations are defined in the ptrans configuration file, which can be edited by hand or from the GUI external indexes configuration dialog.

recoll-1.21.5/doc/user/RCL.PROGRAM.API.html0000644000175000017500000005663112603157603017147 0ustar dockesdockes4.3.API

4.3.API

4.3.1.Interface elements

A few elements in the interface are specific and and need an explanation.

udi

An udi (unique document identifier) identifies a document. Because of limitations inside the index engine, it is restricted in length (to 200 bytes), which is why a regular URI cannot be used. The structure and contents of the udi is defined by the application and opaque to the index engine. For example, the internal file system indexer uses the complete document path (file path + internal path), truncated to length, the suppressed part being replaced by a hash value.

ipath

This data value (set as a field in the Doc object) is stored, along with the URL, but not indexed by Recoll. Its contents are not interpreted, and its use is up to the application. For example, the Recoll internal file system indexer stores the part of the document access path internal to the container file (ipath in this case is a list of subdocument sequential numbers). url and ipath are returned in every search result and permit access to the original document.

Stored and indexed fields

The fields file inside the Recoll configuration defines which document fields are either "indexed" (searchable), "stored" (retrievable with search results), or both.

Data for an external indexer, should be stored in a separate index, not the one for the Recoll internal file system indexer, except if the latter is not used at all). The reason is that the main document indexer purge pass would remove all the other indexer's documents, as they were not seen during indexing. The main indexer documents would also probably be a problem for the external indexer purge operation.

4.3.2.Python interface

4.3.2.1.Introduction

Recoll versions after 1.11 define a Python programming interface, both for searching and indexing. The indexing portion has seen little use, but the searching one is used in the Recoll Ubuntu Unity Lens and Recoll Web UI.

The API is inspired by the Python database API specification. There were two major changes in recent Recoll versions:

  • The basis for the Recoll API changed from Python database API version 1.0 (Recoll versions up to 1.18.1), to version 2.0 (Recoll 1.18.2 and later).
  • The recoll module became a package (with an internal recoll module) as of Recoll version 1.19, in order to add more functions. For existing code, this only changes the way the interface must be imported.

We will mostly describe the new API and package structure here. A paragraph at the end of this section will explain a few differences and ways to write code compatible with both versions.

The Python interface can be found in the source package, under python/recoll.

The python/recoll/ directory contains the usual setup.py. After configuring the main Recoll code, you can use the script to build and install the Python module:

            cd recoll-xxx/python/recoll
            python setup.py build
            python setup.py install
          

The normal Recoll installer installs the Python API along with the main code.

When installing from a repository, and depending on the distribution, the Python API can sometimes be found in a separate package.

4.3.2.2.Recoll package

The recoll package contains two modules:

  • The recoll module contains functions and classes used to query (or update) the index.

  • The rclextract module contains functions and classes used to access document data.

4.3.2.3.The recoll module

Functions
connect(confdir=None, extra_dbs=None, writable = False)
The connect() function connects to one or several Recoll index(es) and returns a Db object.
  • confdir may specify a configuration directory. The usual defaults apply.
  • extra_dbs is a list of additional indexes (Xapian directories).
  • writable decides if we can index new data through this connection.
This call initializes the recoll module, and it should always be performed before any other call or object creation.
Classes
The Db class

A Db object is created by a connect() call and holds a connection to a Recoll index.

Methods

Db.close()
Closes the connection. You can't do anything with the Db object after this.
Db.query(), Db.cursor()
These aliases return a blank Query object for this index.
Db.setAbstractParams(maxchars, contextwords)
Set the parameters used to build snippets (sets of keywords in context text fragments). maxchars defines the maximum total size of the abstract. contextwords defines how many terms are shown around the keyword.
Db.termMatch(match_type, expr, field='', maxlen=-1, casesens=False, diacsens=False, lang='english')
Expand an expression against the index term list. Performs the basic function from the GUI term explorer tool. match_type can be either of wildcard, regexp or stem. Returns a list of terms expanded from the input expression.
The Query class

A Query object (equivalent to a cursor in the Python DB API) is created by a Db.query() call. It is used to execute index searches.

Methods

Query.sortby(fieldname, ascending=True)
Sort results by fieldname, in ascending or descending order. Must be called before executing the search.
Query.execute(query_string, stemming=1, stemlang="english")
Starts a search for query_string, a Recoll search language string.
Query.executesd(SearchData)
Starts a search for the query defined by the SearchData object.
Query.fetchmany(size=query.arraysize)
Fetches the next Doc objects in the current search results, and returns them as an array of the required size, which is by default the value of the arraysize data member.
Query.fetchone()
Fetches the next Doc object from the current search results.
Query.close()
Closes the query. The object is unusable after the call.
Query.scroll(value, mode='relative')
Adjusts the position in the current result set. mode can be relative or absolute.
Query.getgroups()
Retrieves the expanded query terms as a list of pairs. Meaningful only after executexx In each pair, the first entry is a list of user terms (of size one for simple terms, or more for group and phrase clauses), the second a list of query terms as derived from the user terms and used in the Xapian Query.
Query.getxquery()
Return the Xapian query description as a Unicode string. Meaningful only after executexx.
Query.highlight(text, ishtml = 0, methods = object)
Will insert <span "class=rclmatch">, </span> tags around the match areas in the input text and return the modified text. ishtml can be set to indicate that the input text is HTML and that HTML special characters should not be escaped. methods if set should be an object with methods startMatch(i) and endMatch() which will be called for each match and should return a begin and end tag
Query.makedocabstract(doc, methods = object))
Create a snippets abstract for doc (a Doc object) by selecting text around the match terms. If methods is set, will also perform highlighting. See the highlight method.
Query.__iter__() and Query.next()
So that things like for doc in query: will work.

Data descriptors

Query.arraysize
Default number of records processed by fetchmany (r/w).
Query.rowcount
Number of records returned by the last execute.
Query.rownumber
Next index to be fetched from results. Normally increments after each fetchone() call, but can be set/reset before the call to effect seeking (equivalent to using scroll()). Starts at 0.
The Doc class

A Doc object contains index data for a given document. The data is extracted from the index when searching, or set by the indexer program when updating. The Doc object has many attributes to be read or set by its user. It matches exactly the Rcl::Doc C++ object. Some of the attributes are predefined, but, especially when indexing, others can be set, the name of which will be processed as field names by the indexing configuration. Inputs can be specified as Unicode or strings. Outputs are Unicode objects. All dates are specified as Unix timestamps, printed as strings. Please refer to the rcldb/rcldoc.h C++ file for a description of the predefined attributes.

At query time, only the fields that are defined as stored either by default or in the fields configuration file will be meaningful in the Doc object. Especially this will not be the case for the document text. See the rclextract module for accessing document contents.

Methods

get(key), [] operator
Retrieve the named doc attribute
getbinurl()
Retrieve the URL in byte array format (no transcoding), for use as parameter to a system call.
items()
Return a dictionary of doc object keys/values
keys()
list of doc object keys (attribute names).
The SearchData class

A SearchData object allows building a query by combining clauses, for execution by Query.executesd(). It can be used in replacement of the query language approach. The interface is going to change a little, so no detailed doc for now...

Methods

addclause(type='and'|'or'|'excl'|'phrase'|'near'|'sub', qstring=string, slack=0, field='', stemming=1, subSearch=SearchData)

4.3.2.4.The rclextract module

Index queries do not provide document content (only a partial and unprecise reconstruction is performed to show the snippets text). In order to access the actual document data, the data extraction part of the indexing process must be performed (subdocument access and format translation). This is not trivial in general. The rclextract module currently provides a single class which can be used to access the data content for result documents.

Classes
The Extractor class

Methods

Extractor(doc)
An Extractor object is built from a Doc object, output from a query.
Extractor.textextract(ipath)
Extract document defined by ipath and return a Doc object. The doc.text field has the document text converted to either text/plain or text/html according to doc.mimetype. The typical use would be as follows:
qdoc = query.fetchone()
extractor = recoll.Extractor(qdoc)
doc = extractor.textextract(qdoc.ipath)
# use doc.text, e.g. for previewing
Extractor.idoctofile(ipath, targetmtype, outfile='')
Extracts document into an output file, which can be given explicitly or will be created as a temporary file to be deleted by the caller. Typical use:
qdoc = query.fetchone()
extractor = recoll.Extractor(qdoc)
filename = extractor.idoctofile(qdoc.ipath, qdoc.mimetype)

4.3.2.5.Example code

The following sample would query the index with a user language string. See the python/samples directory inside the Recoll source for other examples. The recollgui subdirectory has a very embryonic GUI which demonstrates the highlighting and data extraction functions.

#!/usr/bin/env python

from recoll import recoll

db = recoll.connect()
db.setAbstractParams(maxchars=80, contextwords=4)

query = db.query()
nres = query.execute("some user question")
print "Result count: ", nres
if nres > 5:
    nres = 5
for i in range(nres):
    doc = query.fetchone()
    print "Result #%d" % (query.rownumber,)
    for k in ("title", "size"):
        print k, ":", getattr(doc, k).encode('utf-8')
    abs = db.makeDocAbstract(doc, query).encode('utf-8')
    print abs
    print


4.3.2.6.Compatibility with the previous version

The following code fragments can be used to ensure that code can run with both the old and the new API (as long as it does not use the new abilities of the new API of course).

Adapting to the new package structure:


try:
    from recoll import recoll
    from recoll import rclextract
    hasextract = True
except:
    import recoll
    hasextract = False

Adapting to the change of nature of the next Query member. The same test can be used to choose to use the scroll() method (new) or set the next value (old).


       rownum = query.next if type(query.next) == int else \
                 query.rownumber

recoll-1.21.5/doc/user/RCL.INSTALL.BUILDING.html0000644000175000017500000003144012603157603017721 0ustar dockesdockes5.3.Building from source

5.3.Building from source

5.3.1.Prerequisites

If you can install any or all of the following through the package manager for your system, all the better. Especially Qt is a very big piece of software, but you will most probably be able to find a binary package.

You may have to compile Xapian but this is easy.

The shopping list:

  • C++ compiler. Up to Recoll version 1.13.04, its absence can manifest itself by strange messages about a missing iconv_open.

  • Development files for Xapian core.

    Important

    If you are building Xapian for an older CPU (before Pentium 4 or Athlon 64), you need to add the --disable-sse flag to the configure command. Else all Xapian application will crash with an illegal instruction error.

  • Development files for Qt 4 . Recoll has not been tested with Qt 5 yet. Recoll 1.15.9 was the last version to support Qt 3. If you do not want to install or build the Qt Webkit module, Recoll has a configuration option to disable its use (see further).

  • Development files for X11 and zlib.

  • You may also need libiconv. On Linux systems, the iconv interface is part of libc and you should not need to do anything special.

Check the Recoll download page for up to date version information.

5.3.2.Building

Recoll has been built on Linux, FreeBSD, Mac OS X, and Solaris, most versions after 2005 should be ok, maybe some older ones too (Solaris 8 is ok). If you build on another system, and need to modify things, I would very much welcome patches.

Configure options:

  • --without-aspell will disable the code for phonetic matching of search terms.

  • --with-fam or --with-inotify will enable the code for real time indexing. Inotify support is enabled by default on recent Linux systems.

  • --with-qzeitgeist will enable sending Zeitgeist events about the visited search results, and needs the qzeitgeist package.

  • --disable-webkit is available from version 1.17 to implement the result list with a Qt QTextBrowser instead of a WebKit widget if you do not or can't depend on the latter.

  • --disable-idxthreads is available from version 1.19 to suppress multithreading inside the indexing process. You can also use the run-time configuration to restrict recollindex to using a single thread, but the compile-time option may disable a few more unused locks. This only applies to the use of multithreading for the core index processing (data input). The Recoll monitor mode always uses at least two threads of execution.

  • --disable-python-module will avoid building the Python module.

  • --disable-xattr will prevent fetching data from file extended attributes. Beyond a few standard attributes, fetching extended attributes data can only be useful is some application stores data in there, and also needs some simple configuration (see comments in the fields configuration file).

  • --enable-camelcase will enable splitting camelCase words. This is not enabled by default as it has the unfortunate side-effect of making some phrase searches quite confusing: ie, "MySQL manual" would be matched by "MySQL manual" and "my sql manual" but not "mysql manual" (only inside phrase searches).

  • --with-file-command Specify the version of the 'file' command to use (ie: --with-file-command=/usr/local/bin/file). Can be useful to enable the gnu version on systems where the native one is bad.

  • --disable-qtgui Disable the Qt interface. Will allow building the indexer and the command line search program in absence of a Qt environment.

  • --disable-x11mon Disable X11 connection monitoring inside recollindex. Together with --disable-qtgui, this allows building recoll without Qt and X11.

  • --disable-pic will compile Recoll with position-dependant code. This is incompatible with building the KIO or the Python or PHP extensions, but might yield very marginally faster code.

  • Of course the usual autoconf configure options, like --prefix apply.

Normal procedure:

        cd recoll-xxx
        ./configure
        make
        (practices usual hardship-repelling invocations)
      

There is little auto-configuration. The configure script will mainly link one of the system-specific files in the mk directory to mk/sysconf. If your system is not known yet, it will tell you as much, and you may want to manually copy and modify one of the existing files (the new file name should be the output of uname -s).

5.3.2.1.Building on Solaris

We did not test building the GUI on Solaris for recent versions. You will need at least Qt 4.4. There are some hints on an old web site page, they may still be valid.

Someone did test the 1.19 indexer and Python module build, they do work, with a few minor glitches. Be sure to use GNU make and install.

5.3.3.Installation

Either type make install or execute recollinstall prefix, in the root of the source tree. This will copy the commands to prefix/bin and the sample configuration files, scripts and other shared data to prefix/share/recoll.

If the installation prefix given to recollinstall is different from either the system default or the value which was specified when executing configure (as in configure --prefix /some/path), you will have to set the RECOLL_DATADIR environment variable to indicate where the shared data is to be found (ie for (ba)sh: export RECOLL_DATADIR=/some/path/share/recoll).

You can then proceed to configuration.

recoll-1.21.5/doc/user/RCL.INTRODUCTION.RECOLL.html0000644000175000017500000002377312603157602020330 0ustar dockesdockes1.3.Recoll overview

1.3.Recoll overview

Recoll uses the Xapian information retrieval library as its storage and retrieval engine. Xapian is a very mature package using a sophisticated probabilistic ranking model.

The Xapian library manages an index database which describes where terms appear in your document files. It efficiently processes the complex queries which are produced by the Recoll query expansion mechanism, and is in charge of the all-important relevance computation task.

Recoll provides the mechanisms and interface to get data into and out of the index. This includes translating the many possible document formats into pure text, handling term variations (using Xapian stemmers), and spelling approximations (using the aspell speller), interpreting user queries and presenting results.

In a shorter way, Recoll does the dirty footwork, Xapian deals with the intelligent parts of the process.

The Xapian index can be big (roughly the size of the original document set), but it is not a document archive. Recoll can only display documents that still exist at the place from which they were indexed. (Actually, there is a way to reconstruct a document from the information in the index, but the result is not nice, as all formatting, punctuation and capitalization are lost).

Recoll stores all internal data in Unicode UTF-8 format, and it can index files of many types with different character sets, encodings, and languages into the same index. It can process documents embedded inside other documents (for example a pdf document stored inside a Zip archive sent as an email attachment...), down to an arbitrary depth.

Stemming is the process by which Recoll reduces words to their radicals so that searching does not depend, for example, on a word being singular or plural (floor, floors), or on a verb tense (flooring, floored). Because the mechanisms used for stemming depend on the specific grammatical rules for each language, there is a separate Xapian stemmer module for most common languages where stemming makes sense.

Recoll stores the unstemmed versions of terms in the main index and uses auxiliary databases for term expansion (one for each stemming language), which means that you can switch stemming languages between searches, or add a language without needing a full reindex.

Storing documents written in different languages in the same index is possible, and commonly done. In this situation, you can specify several stemming languages for the index.

Recoll currently makes no attempt at automatic language recognition, which means that the stemmer will sometimes be applied to terms from other languages with potentially strange results. In practise, even if this introduces possibilities of confusion, this approach has been proven quite useful, and it is much less cumbersome than separating your documents according to what language they are written in.

Before version 1.18, Recoll stripped most accents and diacritics from terms, and converted them to lower case before either storing them in the index or searching for them. As a consequence, it was impossible to search for a particular capitalization of a term (US / us), or to discriminate two terms based on diacritics (sake / sak, mate / mat).

As of version 1.18, Recoll can optionally store the raw terms, without accent stripping or case conversion. In this configuration, it is still possible (and most common) for a query to be insensitive to case and/or diacritics. Appropriate term expansions are performed before actually accessing the main index. This is described in more detail in the section about index case and diacritics sensitivity.

Recoll has many parameters which define exactly what to index, and how to classify and decode the source documents. These are kept in configuration files. A default configuration is copied into a standard location (usually something like /usr/[local/]share/recoll/examples) during installation. The default values set by the configuration files in this directory may be overridden by values that you set inside your personal configuration, found by default in the .recoll sub-directory of your home directory. The default configuration will index your home directory with default parameters and should be sufficient for giving Recoll a try, but you may want to adjust it later, which can be done either by editing the text files or by using configuration menus in the recoll GUI. Some other parameters affecting only the recoll GUI are stored in the standard location defined by Qt.

The indexing process is started automatically the first time you execute the recoll GUI. Indexing can also be performed by executing the recollindex command. Recoll indexing is multithreaded by default when appropriate hardware resources are available, and can perform in parallel multiple tasks among text extraction, segmentation and index updates.

Searches are usually performed inside the recoll GUI, which has many options to help you find what you are looking for. However, there are other ways to perform Recoll searches: mostly a command line interface, a Python programming interface, a KDE KIO slave module, and Ubuntu Unity Lens (for older versions) or Scope (for current versions) modules.

recoll-1.21.5/doc/user/RCL.INDEXING.EXTATTR.html0000644000175000017500000000634712603157602017765 0ustar dockesdockes2.5.Extended attributes data

2.5.Extended attributes data

User extended attributes are named pieces of information that most modern file systems can attach to any file.

Recoll versions 1.19 and later process extended attributes as document fields by default. For older versions, this has to be activated at build time.

A freedesktop standard defines a few special attributes, which are handled as such by Recoll:

mime_type

If set, this overrides any other determination of the file MIME type.

charset
If set, this defines the file character set (mostly useful for plain text files).

By default, other attributes are handled as Recoll fields. On Linux, the user prefix is removed from the name. This can be configured more precisely inside the fields configuration file.

recoll-1.21.5/doc/user/usermanual-italian.html0000644000175000017500000030112412602163537020574 0ustar dockesdockes Recoll user manual

Recoll: manuale utente

Jean-Francois Dockes

Questo documento spiega le nozioni della ricerca testuale e descrive l'installazione e l'uso di Recoll.



Capitolo 1. Introduzione

1.1. Per gli impazienti

Se non amate leggere manuali (chi lo ama?) e vorreste provare subito Recoll, eseguite allora l'installazione e lanciate recoll, che per default inizierà ad indicizzare la vostra home cartella, permettendovi di fare subito una ricerca non appena il processo di indicizzazione sarà terminato.

Non fate così, però, se la vostra home cartella contiene un gran numero di documenti e non avete voglia di aspettare o avete poco spazio sul disco. In questo caso potrebbe convenirvi di editare per prima cosa il file di  configurazione per estringere l'area da indicizzare.

Fate inoltre attenzione che potreste dover installare le applicazioni di supporto esterne per indicizzare quei documenti che le richiedono (ad esempio antiword per documenti ms-word).


1.2. Ricerca a tutto testo

Recoll è un'applicazione per la ricerca a tutto testo. Le applicazioni di ricerca a tutto testo vi permettono di trovare ciò che cercate in base al contenuto dei files e non al loro nome o estensione. Più in dettaglio vi lasciano specificare le parole (termini di ricerca) che dovrebbero (o non dovrebbereo) essere nel testo che cercate e vi ritornano una lista di documenti che soddisfano tale criterio, ordinati in maniera tale che quelli più rilevanti appaiano in cima alla lista.

Non hai bisogno di ricordare in che file o e-mail hai scritto una certa informazione. Semplicemente chiedi di trovare i termini che ti interessano e lo strumento ti ritornerà una lista di documenti che li conetngono, in modo simile a quello che fa un motore di ricerca su internet.

Recoll cerca di determinare quali documenti sono più rilevanti al fine della ricerca dei termini inseriti. Gli algritmi che determinano la rilevanza possono essere molto complessi e in generale sono inferiori alla potenza e rapidità della mente umana. La qualità nella determinazione della rilevanza è probabilmente il fattore più importante di uno strumento di ricerca.

In molti casi cercate tutte le forme di una parola, non una forma specifica. Queste differenti forme possono includere plurali, diverse coniugazioni di verbi, o parole derivate da una radice comune o stem (ad esempio: floopianor, piani, pianoforte, ripiano...). Recoll per default espande la ricerca a tutte queste variazioni parole che hanno in comune la stessa radice o stem). Questa espansione può essere disabilitata in qualsiasi momento.

Lo stemming, per se stesso, non risolve errori di ortografia, nè può fare ricerche fonetiche. Recoll supporta queste caratteristiche attraverso uno strumento specifico (il terminale di esplorazione) che vi lascia esplorare i termini contenuti nell'indice in differenti maniere.


1.3. Panoramica di Recoll

Recoll usa la libreria di ricerca informazioni Xapian  come suo motore di ricerca e indicizzazione. Xapian è un programma molto maturo che usa un modello di rilevanza probabilistica molto sofisticato. Recoll provvede l'interfaccia per indicizzare del sistema ed estrarli in base alla ricerca.

In pratica, Xapian lavora ricordandosi i termini (parole) contenuti nei vari documenti. Conoscenza acquisita tramite il procedimento chiamato indicizzazione.

L'indice risultante può essere molto grande (a spanna la grandezza dei files indicizzati), ma non è un archivio di documenti. Recoll può mostrare solo i documenti che si trovano ancora là dove sono stati indicizzati. (In effetti esiste un modo per ricostruire un documento dalle informazioni racchiuse nell'indice, ma il risultato non è bello dal momento che il testo è tutto minuscolo e sono perdute le informazioni di formattazione).

Recoll immagazzina tutte le informazioni sando il formato Unicode UTF-8 e può indicizzare files con  un differente set di caratteri, diverse codifiche e lingue sullo stesso indice. Posside filtri di ingresso per molteplici tipi di files.

Lo stemming dipende dalla lingua del documento. Recoll immagazzina i termini senza stem e usa database ausiliari per espandere (stemming) le parole. Può farlo scegliendo tra lingue diverse o aggiungendo nuove lingue senza dover rifare l'indice. Immagazzinare documenti in diverse lingue nello stesso indice è possibile, e nella pratica utile, ma può introdurre possibilità di confusione. Recoll attualmente non fa alcun tentativo per riconoscere automaticamente la lingua.

Recoll ha molti parametri per definire esattamente ciò che deve indicizzare e come classificare e decodificare il sorgente dei documenti. Questi parametri sono contenuti in un file di configurazione. La configurazione standard è messa in una cartella standard (normalmente qualcosa come /usr/[local/]share/recoll/examples) durante l'installazione. I parametri di default possono essere cambiati con valori da voi scelti e messi nel vostro file di configurazione personale che deve trovarsi nella cartella .recoll nella vostra home cartella. Il file di configurazione fornito di default dovrebbe essere sufficente per indicizzare la vostra home cartella e permettervi così di provare Recoll, salvo naturalmente personalizzarlo in seguito.

L'indicizzazione comincia automaticamente la prima volta che lanciate l'interfaccia grafica di ricerca di recoll oppure eseguendo il comando recollindex.

La ricerca viene fatta col programma recoll che ha numerose opzioni per farvi trovare quello che effettivamente state cercando.


Capitolo 2. Indicizzazione

2.1. Introduzione

L'indicizzazione è il processo che analizza i documenti e mette i dati nel database. Il processo di indicizzazione di Recoll è normalmente incrementale, vale a dire che i documenti vengono analizzati e indicizzati solo se hanno subito modifiche. Alla prima esecuzione, naturalmente, tutti i documenti vengono analizzati e indicizzati..Il processo (indicizzazione completa) può essere eseguito in seguito specificando un'opzione al comando di indicizzazione (recollindex -z).

L'indicizzazione con Recoll può essere fatta con due metodi diversi:

  • Indicizzazione periodica: l'indicizzazione avviene in tempi prestabiliti, eseguendo il comando recollindex. L'uso tipico è quello di fare una indicizzazione durante la notte programmando l'evento con cron.

  • Indicizzazione in tempo reale: l'indicizzazione avviene non appena un file viene creato o cambiato. In questo caso recollindex gira come un  demone e usa il monitoraggio del file-system fornito da Fam, Gamin o inotify per scoprire gli eventuali cambiamenti. Monitorare un grosso albero di cartelle può consumare molte risorse.

La scelta tra i due metodi è principalmente questione di preferenze e può essere combinata costruendo indici diversi (ad esempio: indicizzazione periodica per una grossa cartella di documenti e indicizzazione in tempo reale per una piccola home cartella). Monitorare grandi sezioni del disco  può richiedere risorse significative del sistema senza portare vantaggi considerevoli.

Recoll riconosce alcuni differenti tipi di documenti. I parametri per il riconoscimento dei documenti sono nei files di configurazione. La maggior parte dei tipi, come l'HTML o i files di un wordprocessor, sono un unico documento. Altri tipi, come le mail cartelle, possono contenere molti singoli documenti indicizzati.

Recoll processa files di testo, HTML, openoffice ed e-mail internamente. Altri tipi (ad esempio: files postscript, pdf, ms-word, rtf) richiedono applicazioni esterne per poter essere processati. La lista di queste applicazioni è nella sezione installazione.

Senza ulteriori configurazioni, Recoll indicizzerà tutti i files della vostra home cartella, usando i parametri della configurazione di default.

In qualche caso potreste essere interessati ad indicizzare aree differenti del vostro file system in database separati. Potete farlo utilizzando la configurazione multipla di cartelle, indicizzando ciascuna area del file system in uno specifico database. Vedi la sezione su come usare database multipli per avere maggiori informazione sulla configurazione e indicizzazione multipla.


2.2. Salvare l'indice

Normalmente la cartella dove viene salvato l'indice è la sotto cartella xapiandb nella cartella di configurazione di Recoll, tipicamente $HOME/.recoll/xapiandb/. Questo però può essere cambiato in due modi differenti (con due differenti scopi):

  • Puoi specificare una differente cartella di configurazione tramite la variabile di ambiente RECOLL_CONFDIR, oppure usando l'opzione -c nei comandi di  Recoll. Questo metodo è usato tipicamente per indicizzare differenti aree del file system in differenti indici. Per esempio, coi seguenti comandi:

    export RECOLL_CONFDIR=~/.indexes-email
    recoll

    Recoll userò il file di configurazione che trova in ~/.indexes-email/ e, (se non specificato altrimenti in recoll.conf) cercherà l'indice in in ~/.indexes-email/xapiandb/.

    Usare diverse cartella di configurazionee diverse  opzioni di configurazione permette di adattare le configurazioni e gli indici ai dati presenti nelle varie aree dove volete effettuare le ricerche.

  • Potete specificare un indirizzo diverso per salvare l'indice editando il parametro the dbdir che si trova nel file di configurazione (vedi la  sezione di configurazione). Questometodo va usato se vuoi mantenere la cartella di configurazione nel suo indirizzo di default, ma vuoi mettere l'indice da qualche altra parte, generalmente per ragioni di spazio.

La grandezza dell'indice è determinata dal volume dei documenti da indicizzare, ma il rapporto può variare molto. Per un insieme di documenti normalmente misto il volume dell'indice è molto vicino a quello dei documenti indicizzati In casi specifici (ad esempio un insieme di mbox compresse), il volume dell'indice può essere molto più grande di quello dei documenti stessi. Può anche essere molto più piccolo se l'insieme di documenti contiene molte immagini e altri dati non indicizzati (un esempio estremo è dato dai files mp3 dove solo i tags vengono indicizzati).

Naturalmente immagini, suoni e video non incrementano il volume dell'indice, il che ha come conseguenza che, oggi (2006), il volume dell'indice sarà comunque trascurabile rispetto all'ammontare dei dati contenuti nel vostro computer.

La cartella contenente l'indice (xapiandb) contiene solo dati che possono essere ricostruiti in qualsiasi momento re-indicizzando il tutto, e quindi può essere cancellata senza problemi.


2.2.1. Sicurezza

L'indice di Recoll non contiene le copie dei documenti indicizzati. Ma conyiene abbastanza dati da permettere una ricostruzione piuttosto completa e comprensibile. Nel caso vengano indicizzati documenti confidenziali lìaccesso alla cartella del database dovrebbe essere limitato.

Dalla versione 1.4, Recoll crea la cartella di configurazione con i permessi 0700 (accessibile solo per il proprietario). Visto che bormalmente la cartella del database è una sub cartella di questa, la protezione dovrebbe essere sufficenta.

Se usi un'altra configurazione dovresti pensare al tipo di protezione che l'indice dovrebbe avere e settare la cartella corrispondente e i files con i permessi del caso.


2.3. Configurazione dell'indicizzazione

Puoi controllare le aree del file system da indicizzare e come processare i files tramite le variabili nei files di configurazione di Recoll.

Puoi anche usare indici multipli definiti da configurazioni separate, normalmente  per separare indici personali e indici in comune, oppure per avvantaggiarsi dell'organizzazione dei tuoi dati e aumentare la precisione.

La prima volta che lanci recoll, verrai richiesto se vuoi che recoll costruisca l'indice oppure no. Se vuoi sistemare la configurazione prima che venga creato l'indice, clicca ora su Cancel. Facendo così avrai creato la cartella ~/.recoll contenente files di configurazione vuoti.

La configurazione è documentata all'interno del  capitolo installazione di questo documento, o nella pagina man di recoll.conf(5) man page. La variabile di maggiore  e immediato interesse è probabilmente topdirs, che determina quali cartelle indicizzare.

Le applicazioni esterne necessarie per indicizzare tipi di files diversi da txt, HTML o email (ad esempio: pdf, postscript, ms-word...) sono indicate nella sezione pacchetti esterni.


2.4. Indicizzazione periodica

2.4.1.Iniziare l'indicizzazione

L'indicizzazione viene eseguita o tramite il programma recollindex, o lanciando il thread di indicizzazione dal programma recoll (usa il menu File). Entrambi i modi fanno uso della variabile RECOLL_CONFDIR o accettano l'opzione -c confdir per specificare la cartella di configurazione da usare.

Se il programma recoll non trova alcun indice quando è lanciato, inizia automaticamente l'indicizzazione (a meno che non clicchi sul tasto Cancel).

E' meglio non interrompere il processo di indicizzazione perchè facendo così, il più delle volte, l'indice viene corrotto. Questo non è un problema serio visto che tutto quello che devi fare è cancellare l'indice e riavviare l'indicizzazione. I files dell'indice sono normalmente nella cartella $HOME/.recoll/xapiandb, che puoi tranquillamente cancellare se necessario. In alternativa puoi avviare recollindex con l'opzione -z, opzione che cancella il database prima di fare l'indicewhich will reset the database before indexing.


2.4.2. Usare cron per l'indicizzazione automatica

Il modo più semplice per avere un'indicizzazione automatica è usare cron per fare l'indicizzazione ogni notte. Ad esempio la seguente linea aggiunta a crontab esegue l'indicizzazione ogni giorno alle 3:30AM (supponendo che recollindex sia nel vostro PATH):

30 3 * * * recollindex > /tmp/recolltrace 2>&1

Il comando usuale per editare crontab è crontab -e (che normalmente lancia l'editor vi per editare crontab). Potreste ovviamente avere strumenti più sofisticati  nel vostro sistema atti allo scopo.


2.5. Indicizzazione in tempo reale

L'indicizzazione in tempo reale si ottiene con il comando recollindex -m. Con questa opzione, recollindex viene lanciato dal terminele e diventa un demone, monitorando in continuazione i cambiamenti e tenendo così aggiornato l'indice.

L'indicizzazione in tempo reale viene impostata alla configurazione del pacchetto (prima della compilazione) con l'opzione --with[out]-fam or --with[out]-inotify. Per default viene scelto inotify per i sistemi che lo supportano.

Lo script rclmon.sh può essere usato per lanciare e fermare il demone. Si trova nella cartella examples di recoll (normalmente /usr/local/[share/]recoll/examples).

Il lancio del demone è normalmente eseguito come parte della sessione dell'utente. Ad esempio la mia sessione fuori moda xdm ha lo script .xsession con le seguenti linne alla fine:

recollconf=$HOME/.recoll-home
recolldata=/usr/local/share/recoll
RECOLL_CONFDIR=$recollconf $recolldata/examples/rclmon.sh start

fvwm

Viene lanciato prima il demone e poil il window-manager, per il quale la sessione aspetta.

Per default il demone di indicizzazione monitorizza lo stato della sessione X11 ed esce quando questa finisce (non è necessario chiuderlo esplicitamente). Il monitoraggio della sessione X11 può essere disabilitato con l'opzione -x di recollindex.

Con KDE, puoi mettere un piccolo script per lanciare recollindex -m nella $HOME/.kde/Autostart. Verrà eseguito ogni volta che inizia la sessione KDE.

Esiste un meccanismo simile anche per Gnome (trova lo strumento per il controllo della gestione nel menu e usa la linguetta "Startup programs").

Per default, il demone di indicizzazione scrive i suoi messaggiin un file dentro la cartella di configurazione (ciò è controllato dai parametri daemlogfilename e daemloglevel di configurazione). Puoi naturalmente cambiarli. Il file di log fviene troncato all'avvio del demone. Se il demone è sempre in funzione, il file di log può diventare molto grosso a seconda del livello di log scelto.

Sebbene l'indicizzazione real time sia apprezzabile, può causare un alto carico del sistema, ad esempio se cambiano dati come le e-mail. Probabilmente ti conviene non abilitarla se il tuo sistema è a corto di risorse. L'indicizzazione periodica è sufficente nella maggior parte dei casi.


Capitolo 3. Ricerca

Il programma recoll provvede l'interfaccia paer la ricerca. Utilizza le librerie QT.


3.1. Ricerca semplice

  1. Lancia il programma recoll.

  2. Scegli il modo di reicerca: Qualsiasi o Tutti o Nome File.

  3. Entra la/e parola/e da cercare nel campo testo nella parte superiore della finestra.

  4. Clicca sul bottone Cerca o clicca il tasto Enter per iniziare la ricerca.

Il modo di default iniziale di ricerca è Qualsiasi. Questo cercherà quei documenti che contengano qualsiasi delle parole cercate (ill documento che ne contiene di più avrà maggiore rilevanza). Tutte mostrerà solo quei documenti che contengono tutte le parole cercate. Nome File cerca solo tra i nomi dei files e permette l'uso dei Caratteri Jolly (*, ? , []).

Puoi anche cercare frasi (parole adiacenti in un dato ordine) racchiudendo tra virgolette le parole di ricerca. Ad esempio: "realtà virtuale".

Maiuscole e minuscole non hanno alcuna influenza sulla ricerca, con l'unica eccezione che puoi disabilitare lo stemming (ricerca delle parole che contengono quella data) scrivendo il primo carattere maiuscolo. Ad esempio: la ricerca di  casa cercherà anche  caso, case, casi, casato, casale, ecc., ma la ricerca di Casa cercherà solo casa, con caratteri maiuscoli o minuscoli (lo stemming può essere disbilitato globalmente nelle preferenze).

Recoll si ricorda gli ultimi termini di ricerca. Per richiamarli puoi usare il combobox della casella di ricerca. Tieni però a mente che vengono ricordate solo le parole, ma non il modo (Qualsiasi, Tutte, Nome file).

I tasti Esc Space mentre si sta scrivendo una parola nella ricerca semplice aprono una finestra con i possibili completamenti della parole. Questi ultimi sono tratti dalle parole esistenti nel database.

Un doppio clic su una parola della lista dei risultati o nella finestra di visualizzazione inserisce la parola stessa nel campo di ricerca semplice.

Puoi usare la voce di menu Strumenti/Ricerca avanzata per aprire la finestra di dialogo per ricerche più complesse.


3.2. La lista dei risultati

Lanciata la ricerca verrà immediatamente mostrata nella finestra principale la lista dei risultati.

Per default, i documenti sono presentati in ordine di rilevanza (nel limite in cui il sistema riesce a stimare la rilevanza). Puoi ordinarli in maniera diversa usando la voce di menu Strumenti / Ordina: scegli parametri.

Se clicchi sul link Preview di uno dei risultati si pare una finestra di Visualizzaxione interna col testo del documento. Un ulteriore clic sul link Preview di un altro risultato, aprirà una seconda linguetta. Puoi usare  Shift+Click per forzare l'apertura di una seconda finestra di visualizzazione che può essere utile per vedere ad esempio due pagine dello stesso documento.

Cliccando sul link Edit verrà aperto un visualizzatore esterno (generalmente il programma che ha creato il file). Il programma che deve essere aperto viene configurato attraverso il dialogo di preferenze, oppure editando il file di configurazione mimeview.

I link Preview e Edit possono non essere presenti per tutti i risultati. Ciò significa che Recoll non ha la configurazione necessaria per la visualizzazione di un determinato tipo di file (che quindi sarà stato indicizzato solo per nome), o non sa con quale programma esterno aprirlo. Spesso ciò può essere sistemato con apposite aggiunte ai files di configurazione mimemap e mimeview (l'ultimo può essere modificato con la finestra di dialogo delle preferenza).

Cliccando sul link Dettagli ricerca nella parte superiore della finestra di ricerca verrò mostrata la stringa di ricerca utilizzata, dopo l'eventuale applicazione dello stemming e/o di altri processi.

Un doppio clic su qualsiasi parola della finestra di visualizzazione inserice  tale parola nel campo di ricerca semplice. Un doppio clic su qualsiasi parola della lista dei risultati avrà lo stesso risultato.

La lsista dei risultati è divisa in pagine (il numero di risultati per pagina può essere impostato nelle preferenze). Passi da una pagina all'altra con i tasti frecce della tastiera oppure col link a fondo pagina  della lista dei risultati.


3.2.1. Il clic col tasto destro del mouse sulla lista dei risultati

Oltre ai links preview ed edit, puoi ottenere un menu pop-up menu cliccando col tasto destro su di una linea della lista dei risultati. Il menu ha le seguenti voci:

  • Preview

  • Edita

  • Copia il nome del file

  • Copia l'Url

  • Trova documenti simili

  • Apri cartella del documento

Le voci Preview e Edita hanno la stessa funzione dei links corrispondenti. 

Le due voci seguenti copiano rispettivamente l'indirizzo e il nome  o l'url del file nella clipboard per poterli incollare in un'altra applicazione.

La voce Trova documenti simili seleziona un certo numero di parole rilevanti del documento e le scrive nella casella di ricerca semplice ed effettua la ricerca per trovare documenti correlati con quello di partenza.

La voce Apri cartella del documento apre la cartella ove si trova il documento (il programma per l'apertura della cartella si imposta nei files di configurazione. Di default è Rox).

3.3. La finestra di visualizzazione

La finestra di visualizzazione si apre cliccando sul link Preview nella lista dei risultati.

Una successiva richiesta di visualizzazione apre una nuova linguetta nella finestra di visualizzazione stessa.

Eseguendo una nuova ricerca e attivando la finestra di visualizzazione, se ne aprirà una seconda mentre la prima resta aperta fintanto che non venga chiusa.

Puoi chiudere una linguetta della finestra di visualizzazione coi tasti ^W (Ctrl + W) sulla finestra. Chiudendo l'ultima linguetta chiudi anche la finestra.

Naturalmente puoi chiudere la linguetta (e la finestra) col bottone Chiudi Tab nella parte superiore della finestra stessa.

Puoi vedere documenti successivi o precedenti della lista dei risultati nella finestra di visualizzazione con i tasti Shift+Down or Shift+Up (dove Down e Up sono i tasti freccia).

La finestra di visualizzazione ha una ricerca interna. Puoi iniziare la ricerca scrivendo una slash (/) all'interno del testo o tramite la casella per la ricerca , immettendo il testo da cercare e premendo il tasto cerca. Puoi usare i tasti Seguente e Precedente per trovare ricorrenze successive o precedenti. Puoi anche usare il tasto F3, all'interno dell'area di testo, per trovare la prossima ricorrenza.

Se hai immesso dei termini di ricerca e usi i tasti ^Up/^Down per passare da un documento all'altro, la ricerca inizia con ogni nuovo documento. Se il termine di ricerca è trovato, il cursore si posiziona sulla prima ricorrenza.


Nessuna parola
  • Tutte le parole.

  • Qualsiasi parola.

  • None of the terms.

  • Questa frase (le parole esatte nell'ordine preciso in campi numerata).

  • Parole simili (parole in qualsiasi ordine in campi numerati).condizione

  • Nome del file con Caratteri Jolly.



Altri campi possono essere creati cliccando sul bottone Aggiungi condizione.

Tutti i campi saranno tra loro combinati con le clausole AND o OR. Tutti i tipi di condizioni, ad eccezione di "Questa frase" e "Parole simili" accettano un insieme di parole singole e frasi (racchiuse tra virgolette). L'espansione (Stemming) viene fatta per tutte le parole che non iniziano con una maiuscola, ma non per le frasi.

La ricerca avanzata permette di cercare tra documenti di un tipo specifico (ad esmpio: solo testo semplice, o testo rtf, o testo/HTML o application/pdf ecc...). La selzione del tipo di file (mime) può essere salvata come default. (il filtro non sarà attivato al lancio di recoll, ma la lista sarà presente come era stata salvata).

Si può anche restringere la ricerca ad un sotto insieme delle cartelle indicizzate. Se questa è un'opzione che usi spesso, puoi anche pensare a fare diversi indici così da migliorare la performance.

Per iniziare la ricerca clicca sul bottone Cerca o premi Enter in qualsiasi campo di ricerca. Il bottone nella finestra principale esegue sempre e solo una ricerca semplice.

Clicca sul link 'mostra stringa' in alto nella finestra principale per vedere la stringa di ricerca applicata.


3.5. Il terminale di esplorazione

Recoll utilizza automaticamente l'espansione dei termini di ricerca ai loro derivati (ad esempio: plurali/singolare, coniugazioni dei verbi). Ma ci sono altri casi in cui l'estto termine di ricerca non è conosciuto. Ad esempio potresti ricordarti la pronincia ma non come il termine viene scritto, oppure conoscere solamente l'inizio della parola da cercare.

Il terminale di esplorazione (lanciato tramite la sua piccola icona nella finestra principale o dal menu 'Strumenti') può essere usato per le ricerche nell'indice del  database. Ha tre modi operativi:

Caratteri Jolly

In questo modo operativo si possono usare stringhe con caratteri jolly (*, ?). ad esempio: xapi* .

Espressioni regolari

In questa modalità sono accettate le espressioni regolari. Esempio: word[0-9]+ .

Espansione grammaticale

Questa modalità esegue la normale espansione (stemming). In questo senso è utile per mostrare il suo funzionamento.

Ortografia/Fonetica

In questa modalità si inserisce il termine come si pensa sia scritto e Recoll farà del suo meglio per trovare termini inseriti nel suo indice che suonino simili. Questa modalità usa Aspell, che quindi deve essere installata sul vostro sistema affinchè le cose funzionino per il verso giusto. La lingua usata nella costruzione del dizionario (cosa che avviene alla fine dell'indicizzazione) è quella di sistema. Cose strane possono accadere se più lingue sono mischiate.

Nota che nel caso Recoll non conosca l'inizio della parola da cercare(ad esempio un carattere jolly come *asa), l'espansione può richiedere un certo tempo perchè la ricercaviene fatta sull'indice completo. L'espansione al momento è limitata ai primi 200 risultati nel caso di caratteri jolly o espressioni regolari.

Un doppio clic su di un termine nella lista dei risultati lo inserisce nella casella della ricerca semplice nella finestra principale. Si può naturalmente nche copiare e incollare tra la lista dei risultati e la casella di ricerca.


3.6. Database multipli

Database e indici multipli di Recoll dpossono essere creati usando differenti cartelle di configurazione che conterranno di norma differenti indici per differenti aree del file system. Un indice specifico può essere selezionato per aggiornarlo o per effettuare una ricerca usando la variabile di sistema RECOLL_CONFDIR oppure lìopzione -c di recoll e recollindex.

Una istanza di recollindex può aggiornare o indicizzare solo un indice specifico.

Una istanza di recoll è anche associata ad un indice specifico, che è quello che viene aggiornato, ma si possono usare più indici di Recoll per la ricerca. Gli indici esterni possono essere selezionati tramite la linguetta Indici esterni nel dialogo delle preferenze.

La selezione dell'indice viene fatta in due fasi Un set di indici utilizzabili deve essere prima definito, e dopo si può indicare un sotto insieme di indici da usare per la ricerca. Naturalmente questi parametri sono conservati da una esecuzione del programma ad un'altra (sono registrati separatamente per ogni configurazione di Recoll). Il set di tutti gli indici è generalmente fisso, mentre l'indice attivo viene probabilmente cambiato frequentemente.

L'indice principale (definito da RECOLL_CONFDIR) è sempre attivo. Se ciò non è desiderabile, puoi far sì che la tua configurazione punti all'indicizzazione di una cartella vuota.

Poichè costruire tutti gli indici può essere noioso se fatto dall'interfaccia grafica si può usare la variabile di sistema RECOLL_EXTRA_DBS per costruire il set iniziale. Questo lo fa normalmente l'amministratore del sistema così che non debba farlo ogni utente. La variabile dovrebbe definire una lista separata da due punti delle cartelle da indicizzare. Ad esempio:

export RECOLL_EXTRA_DBS=/qualche/cartella/xapiandb:/qualche/altra/db

Un tipico scenario d'uso per gli indici multipli per un amministratore potrebbe essere la creazione di un indice di dati comuni su cui tu potresti fare una ricerca e un indice per i tuoi dati personali. Naturalmente ci sono altre possibilità. Ci sono molti casi in cui conosci il sotto insieme di cartelle che devi esaminare per trovare il risultato e quindi , restringendo il campo di ricerca, è possibile aumentare l'efficenza e la precisione della ricerca stessa. Ciò può essere fatto anche con l'opzione che limita le cartelle su cui si effettua la ricerca nella finestra della ricerca avanzata, ma l'indicizzazione multipla può aumentare la performance e valere la pena di essere provata.


3.7. Storia dei documenti

I documenti che hai visto col visualizzatore o con un programma esterno sono annotati nello storico dei documenti e quindi ricordati. Puoi vedere la lista dello storico con la voce di menu Strumenti/Storia documenti.


3.8. Ordinare il risultato della ricerca

I documenti nella lista dei risultati sono normalmente ordinati in base della loro rilevanza. E' possibile specificare un diverso criterio usano la finestra di dialogo Ordina risultati (localizzata nel menu Strumenti).

Lo strumento ordina un numero di documenti ordinati per rilevanza in base a determinati criteri. I criteri attualmente sono la data e il tipo mime.

La scelta per l'ordinamento resta invariata sino a quando non viene cambiata o il programma non viene chiuso. Il tipo di ordinamento è indicato all'inizio della lista dei risultati.


3.9. Consigli per la ricerca, scorciatoie

Completamento della parola. I tasti Esc Spaceifinchè si sta scrivendo una parola nella casella di ricerca semplice completano la stessa se essa è unica nel database, altrimenti aprono una finestra da cui si pppuò scegliere fra le parole suggerite.

Prendere nuove parole dalla lista dei risultati o dalla finestra di visualizzazione. Un doppio clic su una parola nella lista dei risultati o nel testo della finestra di visualizzazionie copia la stessa nella casella di ricerca semplice.

Disabilitare l'espansione (stemming). Scrivendo una parola nella casella di ricerca con la prima lettera maiuscola disabilita l'espansione (nessuna ricerca per casino se hai inserito Casa). Questo è l'unico caso in cui le maiuscole o minuscole hanno importanza nella ricerca. E' anche possibile eliminare l'espansione (stemming) o cambiare la lingua nelle preferenze.

Frasi. Per cercare una frase basta racchiuderla tra virgolette. Esempio: "user manual" cercherà per tutte le ricorrenze di 'user' seguito immediatamente da 'manual'. Puoi anche usare il campo 'Questa frase' nel dialogo avanzato di ricerca con lo stesso effetto. Frasi possono essere immesse insieme a parole sia nella casella di ricerca semplice che nelle caselle della ricerca avanzata, con escluione della casell 'Questa frase'.

Scorrere la lista dei risultati nella finestra di visualizzazione (1.5). I tasti  Shift-Down o Shift-Up (Shift +una freccia) nella finestra di visualizzazione mostra il documento successivo o precedente della lista dei risultati. Ogni ricerca secondaria attualmente attiva verrà eseguita nel nuovo documento.

Forzare l'apertura di una nuova finestra di visualizzazione (1.6). Con Shift+Click sul link Preview di un risultato della lista dei risultati si apre una nuova finestra di visualizzazione invece di una nuova linguetta su quella già visualizzata.

Aggiungi automaticamente frase (1.5). Questa opzione può essere impostata nella finestra di configurazione. Quando è settata sarà costruita automaticamente una frase con le parole della ricerca e aggiunta alla ricerca se è impostata a 'Qualsiasi parola'I. Ciò non cambia radicalmente il risultato della ricerca, ma aumenta la rilevanza per quei documenti dove le parole cercate costituiscono una frase. ad esempio: cercando le parole virtual reality saranno comunque trovati tutti i documenti contenenti le parole 'virtual', 'reality' o entrambe, ma in cima alla lista appariranno i documenti, se ci sono, che contengono la frase 'virtual reality.

Trovare documenti simili. Se nel menu che appare cliccando col taso destro nella lista dei risultati si sceglie la voce 'Documenti simili', un numero di parole 'interessanti' contenute nel documento selezionato viene messo nella casella di ricerca semplice e viene avviata una nuova ricerca. In questo modo, eventualmente editando ulteriormente la casella di ricerca semplice, puoi trovare documenti in qualche maniera simili o correlati al primo.

Nome file. Durante l'indicizzazione sono aggiunti anche i nomi dei files. Puoi quindi inserirli come un normale termine di ricerca (Recoll indicizzava tutte le cartelle come termini. Questo però è stato abbandonato non sembrando molto utilel). In alternativa puoi usare l'opzione 'Nome file' e la ricerca avverrà esclusivamente tra i nomi dei files (in tal caso è possibile usare i caratteri jolly).

Stringa di ricerca. Puoi vedere la stringa con cui è stata effettuata la ricerca, incluse le espansioni e gli operatori Booleani, cliccando sul link 'mostra stringa' all'inizio della lista dei risultati.

Chiudere la finestra di visualizzazione. Il tasto ^W in una linguetta, la chiude (e, se questa è l'ultima linguetta, chiude anche la finestra). Il tasto Esc chiude tutte le linguette e la finestra di visualizzazione.

Chiudere il programma. Il tast ^Q quasi dappertutto chiude il programma.


3.10. Personalizzare l'interfaccia di ricerca

E' possibile personalizzare alcuni aspetti dell'interfaccia di ricerca usando la voce 'configurazione ricerca' del menu 'Preferenze'.

Ci sono due linguette nella finestra di dialogo che riguardano l'interfaccia stessa e i criteri adottati per la ricerca e la presentazione dei risultati.

Interfaccia utente:

  • Numero di risultati per pagina

  • Fonts per la lista dei risultati: Ci sono molte informazioni visualizzate nella lista dei risultati e potresti voler personalizzare i caratteri e la loro dimensioneT. I caratteri usati da Recoll sono quelli della tua configurazione di  QT(prova il comando qtconfig).

  • Stringa di formattazione dei risultati: ti permette di cambiare la presentazione di ciascun risultato nella lista. Usa string del tipo qt-html dove le seguenti sostituzioni, in modo simile al comando printf %, vengono fatte:

    • %A. Riassunto

    • %D. Data

    • %K. Parole chiave (se ci sono)

    • %L. links Preview e Edit

    • %M. Tipo Mime

    • %N. Numero del risultato

    • %R. Rilevanza in %

    • %S. Grandezza

    • %T. Titolo

    • %U. Url

    I valori di default value per la stringa sono:
    %R %S %L &nbsp;&nbsp;<b>%T</b><br>
    %M&nbsp;%D&nbsp;&nbsp;&nbsp;<i>%U</i><br>
    %A %K

    Puoi provare, ad esempio, la seguente stringa per una lista più simile all'esperienza del Web:
    <u><b><a href="P%N">%T</a></b></u>&nbsp;%R&nbsp;%D<br>
    %A<font color=#B22C1D>%U - %M - %S</font> - %L

    Il formato dei links Preview e Edit è <a href="Pdocnum"> and <a href="Edocnum"> where docnum è quello che %N dovrebbe stampare. Questo rende il titolo nel formato dell'esempio un link per la finestra di visualizzazione.

  • Browser HTML: qui puoi scegliere il browser preferito, che verrà avviato col menu 'Aiuto' per leggere il manuale utente. Puoi inserire semplicemente il nome, se il browser è nel tuo path, oppure l'indirizzo completo.

  • Mostra le icone nella lista dei risultati: le icone nella lista dei risultati possono essere disabilitate. Portano via molta memoria e tutto sommato non contengono informazioni essenziali.

  • Inizia la ricerca quando digiti uno spazio: se lo contrassegni, la ricerca inizia non appena digiti uno spazio nella casella di ricerca. Questo ti permette di vedere i risultati prima di immettere una seconda parola. E' disabilitato per default, che ti piaccia o no...



Parametri di ricerca:

  • Lingua per l'espansione grammaticale: l'espansione (stemming) dipende evidentemente dalla lingua. Qui puoi scegliere tra le lingue con cui sono stati costruiti i database di espansione durante l'indicizzazione (questo viene stabilito nel  file principale di configurazione), o pià tardi aggiunto col comando recollindex -s (Vedi il manuale per recollindex). Le lingue di espansione aggiunte dinamicamente saranno cancellate alla successiva indicizzazione, a meno che non siano aggiunte al file di configurazione principale.

  • Costruisci dinamicamente il riassunto: questo decide se Recoll cerca di costruire un riassunto del documento quando lo mostra nella lista dei risultati. I riassunti vengono costruiti prendendo informazioni dal contesto del documento attorno alle parole trovate. Questo può rallentare la visualizzazione della lista dei risultati per grossi documenti e, se vuoi, puoi disabilitarlo.

  • Rimpiazza i riassunti esistenti nel documento: questo decide se costruire un riassunto al posto un riassunto già esistente nel documento.

  • Numero caratteri per il riassunto: scegli quello che preferisci...

  • numero di parole del riassunto per ogni termine nel documento: quante parole devono essere mostrate intorno ad ogni ricorrenza trovata nel documento.



Indici esterni: Questa linguetta ti permette di navigare eventuali altri indici su cui vorresti effettuare la ricerca. Gli indici esterni sono assegnati dalla cartella del loro database (ad esempio: /home/someothergui/.recoll/xapiandb, /usr/local/recollglobal/xapiandb).

Una volta scelto, l'indice apparirà nella lista 'Tutti gli indici', e puoi scegliere quale usare spstandolo alla/dalla lista 'Indici attivi'.

Il tuo database (quello della configueazione attuale) è sempre implicitamente attivo. Se ciò non è desiderabile, puoi sempre fare una configurazione che indicizzi, ad esempio, una cartella vuota.


Capitolo 4. Installazione

4.1. Installare un pacchetto pre-compilato

L'installazione binaria di Recoll è sempre lincata staticamente alla libreria di xapian , e non ha altre dipendenze. Devi solo eventualmente installare i  pacchetti esterni per i tipi di files che vuoi indicizzare diversi da testo, HTML ed e-mail.


4.1.1. Installazione con un programma di installazione

Se usi un sistem del tipo BSD o sistemi che usano pacchetti pre-compilati (RPM o altri), segui semplicemente le procedure usuali, e magari dai un'occhiata alla  sezione di configurazione (anche se non è necessario per provare il programma con i parametri di default).


4.1.2. Installare Recoll pre-compilato

I pacchetti binari sono semplicemente un insieme di cartelle compresse dove solo le parti utili sono conservate (gli esguibili e la configurazione di esempio).

I binari eseguibili sono compilati con un link statico alla libreria libxapian e libiconv, tper rendere l'installazione più semplice(nessuna dipendenza). Questo comunque significa che non potete cambiare le versioni che sono state usate.

Dopo l'estrazione del file tar, procedi con l'installazione come se avessi compilato il tutto da sorgente (ciò significa dare il comando make install). L'albero delle cartelle va in /usr/local.

Puoi inoltre desiderare di installare le applicazioni esterne necessarie per processare determinati tipi di files (ad esempio: acrobat, postscript ...). Vedi la prossima sessione.

Alla fine, se vuoi, dòà un'occhiata alla  sezione di configurazione.


4.2. Pacchetti esterni utilizzabili

Recollusa applicazioni esterne per indicizzare alcuni tipi di files. Devi quindi installare quelle necessarie ai tipi di files che vuoi indicizzare (queste sono dipendenze di run-time. Nessuna di queste applicazioni è necessaria per compilare Recoll):

  • Openoffice: è supportato nativamente, ma necessita del programma unzip, che quindi deve essere installato.

  • PDF: pdftotext è parte del pacchetto Xpdf.

  • Postscript: pstotext.

  • MS Word: antiword.

  • MS Excel and PowerPoint: catdoc.

  • RTF: unrtf

  • dvi: dvips

  • djvu: DjVuLibre

  • MP3: Recoll usa il comado id3info del pacchetto id3lib per estrarre i tag. Senza questo pacchetto, solo i nomi saranno indicizzati.

Text, HTML, cartelle e-mail e files Openoffice sono processati internamente.


4.3. Compilare da sorgente

4.3.1. Prerequisiti

Come minimo è necessario scaricare e installare il pacchetto xapian core (Recoll attualmente usa la versione 0.attualmente usa le versionidevelopment currently uses version 3.3.5, ma qualsiasi versione 3.3 probabilmente è OK).

Quasi certamente sarete in grado di trovare un pacchetto binario per qt per il vostro sistema, ma probabilmente dovrete compilare Xapian, ma questo non è difficile (se stai usando FreeBSD, c'è un port).

Ti serve anche libiconv. Recoll attualmente usa la versione 1.9 (questo non dovrebbe essere critico). Sui sistemi Linux, l'interfaccia iconv fa parte di libc e quindi non dovrebbe essere necessario fare niente di speciale.


4.3.2. Compilazione

Recoll è stato compilato su Linux (redhat7.3, mandriva 2005/6, Fedora Core 3/4/5, Ubuntu Edgy 64bit), FreeBSD e Solaris 8. Se lo compili su un altro sistema, Idesidererei vivamente ricevere eventuali patches.

A seconad della configurazione di qt nel vostro sistema, potreste dover settare le variabili di sistema QTDIR e QMAKESPECS:

  • QTDIR dovrebbe puntare alla cartell superiore a quella che contiene i files 'include' di qt (ad esempio: se qt.h è in /usr/local/qt/include/qt.h, QTDIR dovrebbe essere /usr/local/qt).

  • QMAKESPECS dovrebbe puntare ad una delle sotto-cartelle mkspecs di qt (ad esempio: linux-g++).

Su molti sistemi Linux, QTDIR è settata dallo script di login, e QMAKESPECS inon è becessaria perchè c'è un link simbolico in mkspecs/.

Opzioni per configure: --without-aspell disabilita il codice per la ricerca fonetica. --with-fam o --with-inotify abilita il codice per l'indicizzazione in tempo reale real time indexing. Il supporto inotify è abilitato di default nei sistemi Linux recenti.

Procedura normale:

 cd recoll-xxx
configure
make

Piccola auto-configurazione. Lo script di configurazione essenzialmente linca uno dei files specifici del sistema nella cartella mk alla cartella mk/sysconf. Se il vostro sistema non è attualmente conosciuto ve lo dirà e, se volete, potete copiare e modificare manualmente uno dei files esistenti (il nome del file dovrebbe essere il risultato del comando uname -s).


4.3.3. Installazione

Dai il comado make install oppure esegui recollinstall prefix, nella cartella root. Questo copierà gli eseguibili nella cartella prefix/bin e gli esempi di configurazione, scripts e altri dati nella cartella prefix/share/recoll.

Se il prefisso di installazione dato al comando recollinstall è differente da quello usato eseguendo il comando configure, dovete settare la variabile di sistema RECOLL_DATADIR per indicare dove sono i dati comuni.

Potete poi procedere alla  configurazione.


4.4. Panoramica della configurazione

La maggior parte dei parametri specifici della GUI di Recoll sono determinati attraverso il menu 'Preferenze'e salvate nlla cartella standard delle applicazion QT ($HOME/.qt/recollrc). probabilmnete non hai alcuna necessità di editare tale file.

Per altre opzioni, Recoll usa files di configurazione testuali. Al momento devi editarli a mano (c'è ancora qualche speranza per uno strimento di configurazione grafico in futuro). La più accurata documentazione per i parametri di configurazione si trova nei commenti negli stessi files di default e qui quindi troverai una semplice panoramica.

Ci sono due insiemi di files di configurazione. Quelli per la configurazione generale del sistema si trovano nella cartella /usr/[local/]share/recoll/examples, e definiscono i valori di default per tutto il sistema. Un insieme parallelo di files di configurazione esiste nella cartella .recoll nella tua cartella home. Questa cartella può essere cambiata con la variabile di sistema RECOLL_CONFDIR o con l'opzione -c per recoll e recollindex.

Se la cartella .recoll non esiste, essa viene creata lanciando la prima volta recoll o recollindex, e viene riempita con un insieme vuoto di files di configurazione. recoll vi dà la scelta se editare i files di configurazione prima di iniziare la creazione dell'indice, recollindex invece procederà immediatamente.

Tutti ifiles di configurazione hanno lo stesso formato. Ad esempio, un piccolo estratto del file di configurazione principale può essere simile al seguente::

 # Space-separated list of directories to index.
topdirs = ~/docs /usr/share/doc

[~/somedirectory-with-utf8-txt-files]
defaultcharset = utf-8

Ci sono tre specie di linne:

  • Commenti (iniziano con #) o sono vuoti.

  • Settaggio dei parametri (nome = valore).

  • Definizione delle sezioni ([nome di qualche cartella]).

La definizione delle sezioni permette di ridefinire alcuni parametri  per le sotto-cartelle. Restano effettivi sinchè viene trovata un'altra definizione di sezione, o si arriva alla fine del file. Alcuni dei parametri usati per l'indicizzazione sono considerati partendo dalla cartella attuale e salendo. Non tutti i parametri possono essere ridefiniti in maniera comprensibile, ma questo sarà spiegato di seguito nella prossima sezione.

La tilde (~) indica l'indirizzo completo della cartella dell'utente.

Spazi vuoti sono usati come separatori nelle liste. Elementi che contengono spazi devono pertanto essere racchiusi tra virgolette.


4.4.1. File di configurazione principale

recoll.conf è il file di configurazione principale Definisce cosa indicizzareIt  (cartella radice e cose da ignorare), e il set di caratteri di default da usare per i documenti che non lo definiscono specificamente al loro interno.

La configurazione di default indicizzerò la vostra cartella home intera. Se questo non va bene lanciate  recoll per creare un set di configurazione vuoto, cliccate su Cancel, ed editate i files di configurazione prima di lanciare nuovamente recoll (o recollindex). Verrà così iniziata l'indicizzazione, cosa che può richiedere un certo tempo.

Parametri:

topdirs

Specifica la lista di cartelle e/o files da indicizzare (recursivamente per le cartelle). L0indicizzazione non segue eventuali liks simbolici all'interno dell'albero delle cartelle. Se la cartella radice è un link simbolico, l'indicizzazione non inizia e viene mostrato un avviso di errore.

dbdir

E' il nome della cartella Xapian dei dati. La cartella, se necessario, verrà creata all'inizio dell'indicizzazione. Se non è un indirizzo assoluto, verrà interpretato come relativo alla cartella di configurazioneI.

skippedNames

Una lista di cartelle e nomi di files, separati da uno spazio vuoto, di ciò che deve essere completamente ignorato dal processo di indicizzazione. The list defined in La lista di default è:e default file is:

*~ #* bin CVS Cache caughtspam tmp

Alla lista possono essere aggiunte sotto-cartelle, che però devono essere nell'albero delle cartelle definite in topdirs.

Le cartelle presenti in topdirs non risentono di eventuali omonimi in skippedNames (vale a dire che una cartella scritta in topdirs viene indicizzata comunque, anche se il suo nome compare nella lista di skippedNames).

La lista della configurazione di default non esclude le cartelle nascoste (nomi preceduti da un punto), il che significa che verranno indicizzte anche alcune cose che non vorreste. D'altra parte i programmi di posta, come thunderbird, normalmente salvano i messaggi in cartelle nascoste e probabilmente volete indicizzarli. Una possibile soluzione è avere .* in skippedNames, e aggiungere qualcosa come  ~/.thunderbird o ~/.evolution in topdirs.

loglevel,daemloglevel

Livello di verbosità per recoll e recollindex. Un valore di 4 produce molti messaggi di debug/informationi. 2 solo una lista di errori. Daemversion è specifico al demone che monitorizza l'indicizzazione.

logfilename, daemlogfilename

Dove vanno i messaggi. 'stderr' può essere usato come valore speciale, ed è quello di default.

filtersdir

La cartella ove cercare gli sripts esterni necessari ad indicizzare alcuni tipi di files. Non dovrebbe esserci motivo per cambiarlo, a meno che non vogliate modificare gli script originali mettendoli altrove. Il valore può essere ridefinito per ogni sott-cartella.

indexstemminglanguages

Una lista di lingue per le quali verrà costruito il database per l'espansione grammaticale. Guardate recollindex(1) per possibili valori (man recollindex). Puoi aggiungere un database per qualsiasi lingua usando il comando recollindex -s, ma tale database verrà cancellato alla successiva re-indicizzazione Soltanto i database delle ingue listate nella configurazione sono permanenti.

defaultcharset

Nome del set di caratteri usati per files che non hanno una definizione dei caratteri (ad esempio: files plain text). Può essere definito per ogni sub-cartella, se non è dato alcun set di caratteriviene utilizzato quello di sistema (LC_ALL, LC_CTYPE, LANG), or iso8859-1.

guesscharset

Decide se cercare di indovinare il set di caratteri del documanto qualora questo non sia specificato nel documento stesso (ad esempio: files plain text). Ciò non funziona bene in molti casi, e probabilmente non dovrebbe essere usato.

usesystemfilecommand

Decide se usare il comando di sistema file -i per determinare il tipo mime del file (la procedura normale usa l'associazione dei suffissi come definiti nel file  mimemap). Ciò può essere utile per files senza suffisso, ma causa anche l'indicizzazione di molti strani files di "testo".

indexallfilenames

Recoll indicizza i nomi dei files in una speciale sezione del database per permettere le ricerche dei nomi dei files anche con i caratteri jolly Questo parametro decide se indicizzare solo i nomi di files che hanno un suffisso che ne permette l'indicizzazione completa, o se indicizzarli tutti indipendentemente dal suffisso.

idxabsmlen

Recoll salva un riassunto per ogni file indicizzato nel database. Questo è quello che viene mostrato nella lista dei risultati senza dover leggere il file originale. Questo parametro definisce la dimensione del riassunto salvato (che può provenire dall'attuale sezione o dall'inizio del testo). Il valore di default è 250 caratteri.

iconsdir

Il nome della cartella dove si trovano le icone che vengono mostrate nella lista dei risultati. La puoi cambiare se vuoi immagini differenti.


4.4.2. Il file mimemap

mimemap specifica l'estensione mime del file per la sua mappatura nei tipi mime.

Per i files senza un'estensione o con un'estensione non riconosciuta viene eseguito il comando di sistema file -i per determinarne  il tipo mime (ciò può essere disbilitato nel file di configurazione).

La mappatura può essere specificata su una base di sotto-cartelle, cosa che può essere utile in certe occasioni. Esempio: i logs di gaim hanno un'estensione .txt ma dovrebbero essere trattai diversamente, cosa che è possibile perchè essi generalmente sono posti in ina specifica cartella.

mimemap ha anche una variabile recoll_noindex che è una lista di suffissi. I files con tali suffissi vengono ignorati (il che evita decompressioni o esecuzioni non necessarie ). Questo è una duplicazione parziale della variabile skippedNames inel file di configurazione principale, però con due differenza: non riguarda le cartelle, e non può dipendere dalla locazione nel file system (è un parametro di configurazione generale). Potete quindi fare con skippedNames tutto quello che fa recoll_noindex. L'ultimo parametro è usato normalmente per cose che si sa non sono indicizzabili con una determinata versione di Recoll. Mettendole in questo file si evita di toccare la variabile skippedNames più orientata all'utente e alla localizzazione.


4.4.3. Il file mimeconf

mimeconf specifica come vengono trattati i vari tipi mime per l'indicizzazione, e quali icone devono essere mostrate nella lista dei risultati di recoll.

Cambiare i parametri nella sezione [index] non è probabilmente una buona idea a meno che non siate sviluppatori di Recoll.

La sezione [icons] permette di cambiare le icone che vengono mostrate nella lista dei risultati (i nomi sono quelli delle immagini png, senza suffisso, che si trovano nella cartella iconsdir (specificata in recoll.conf).


4.4.4. Il file mimeview

mimeview specifica il programma che deve essere lanciato quando clicchi su Edit nella lista dei risultati. ad esempio: HTML viene normalmente aperto con firefox, ma potresti preferire Konqueror, il programma openoffice.org potrebbe essere chiamato oofice invece di openoffice etc.

Cambiamenti a questo file possono essere fatti direttamente o attraverso il dialogo 'Preferenze' del programma recoll.

Come tutti gli altri files di configurazione, l'uso normale è avere un mimeview nella vostra cartella personale, con solo le voci non di default, che si sovrapporrà a quello centrale per tutto il sistema.

Per favore prendi nota che queste 'entrate' devono essere fatte in una sezione nominata [view] section.


4.4.5. Esempio

Esempio:

pensiamo di aggiungere la possibilità di indicizzare i files con estensione .lyx (file fatti col programma Lyx) in modo da poter avere una visualizzazione corretta degli stessi e di poterli aprire con il programma Lyx quando clicchiamo sul link edit. Dovremo, so già non l'abbiamo, procurarci dal sito di recoll lo script rcllyx necessario per l'indicizzazione dei files .lyx.
Tale script è un file di testo e va messo nella cartella /usr/share/recoll/filters e reso eseguibile.

Vogliamo inoltre poter aprire i file con estensione .kwd e .kwt (flies fatti con Kword) con il polor programma: Kword. (Questi files non potranno essere indicizzate, se non con il loro nome (quindi niente visualizzazione, ma possibilità di apertura degli stessi).

Per prima cosa dobbiamo trovare il tipo mime dato dal sistema ai  files di Lyx e di Kword. Troveremo che il tipo per ifiles di Lyx è application/x-lyx mentre per i files di Kword application/x-kword
(La procedura è molto semplice. Ad esempi con KDE si apre konqueror, il menu impostazioni/associazione caratteri, si mette l'estensione del file nell'apposita casella e si prende nota dell'associazione corrispondente.)

A questo punto possiamo procedere. Di seguito i tre files modificati, dove le linee in neretto  si riferiscono ai files Lyx, mentre quello rosse ai files di Kword.

MIMEMAP
# @(#$Id: usermanual-italian.html,v 1.1 2007-02-02 10:05:22 dockes Exp $  (C) 2004 J.F.Dockes
# Recoll: associations of file name extensions to mime types

.txt = text/plain
.text = text/plain
.d    = text/plain
.lyx = application/x-lyx
.kwt = application/x-kword
.kwd = application/x-kword

# Source files. Defining them as text/x-c will enable ext viewer. If
# text/plain they will be somewhat indexed
.cpp = text/x-c
.h   = text/x-c
.c   = text/x-c
.cc  = text/x-c

.rtf  = text/rtf

.html = text/html
.htm = text/html
.shtml = text/html
.php = text/html

.pdf = application/pdf

.ps = application/postscript
.eps = application/postscript
.ai = application/postscript

.dvi = application/x-dvi

.djvu = image/vnd.djvu

.gz = application/x-gzip
.Z = application/x-gzip
.bz2 = application/x-bzip2
#.Z  = application/x-compress

.doc = application/msword
.ppt = application/vnd.ms-powerpoint
.xls = application/vnd.ms-excel

# OpenOffice / opendocument. We handle opendocument as old openoffice files
# for now
.sxc = application/vnd.sun.xml.calc
.ods = application/vnd.sun.xml.calc
.stc = application/vnd.sun.xml.calc.template
.sxd = application/vnd.sun.xml.draw
.std = application/vnd.sun.xml.draw.template
.sxi = application/vnd.sun.xml.impress
.odp = application/vnd.sun.xml.impress
.sti = application/vnd.sun.xml.impress.template
.sxm = application/vnd.sun.xml.math
.sxw = application/vnd.sun.xml.writer
.odt = application/vnd.sun.xml.writer
.sxg = application/vnd.sun.xml.writer.global
.stw = application/vnd.sun.xml.writer.template


.wpd = application/vnd.wordperfect
.rtf = text/rtf

.mp3 = audio/mpeg
.png = image/png
.jpg = image/jpeg

# A list of stuff that we don't want to touch at all (for now). Having the
# suffixes listed in there speeds up things quite a lot by avoiding
# unneeded decompression or 'file' calls. File names still get indexed if
# indexallfilenames is set
recoll_noindex = .tar.gz .tgz .tar.bz2 .tbz .log.gz .md5 .map \
       .m4 .tcl .js .sh .pl .awk \
       .o .lib .dll .a \
       .dat .bak .rdf .log .db .ini .msf .pid \
       .gnm .gnumeric .tex \
       .gif .bmp .xpm \
       ,v ~ #

# Special handling of .txt files inside ~/.gaim directory
[~/.gaim]
.txt = text/x-gaim-log

MIMECONF
# @(#$Id: usermanual-italian.html,v 1.1 2007-02-02 10:05:22 dockes Exp $  (C) 2004 J.F.Dockes

# Recoll : associations of mime types to processing filters.
# There are different sections for decompression, 'interning' for indexing
# and preview, and external viewers

## #######################################
# Decompression: these types need a first pass to create a temp file to
# work with. We use a script because uncompress utilities usually work in
# place, which is not suitable.
#
# The %t parameter will be substituted to the name of a temporary directory
# by recoll. This directory is guaranteed empty when calling the filter
#
# The %f parameter will be substituted with the input file.
#
# The script (ie: rcluncomp) must output the uncompressed file name on
# stdout.
application/x-gzip  =  uncompress rcluncomp gunzip %f %t
application/x-compress = uncompress rcluncomp gunzip %f %t
application/x-bzip2 =  uncompress rcluncomp bunzip2 %f %t

## ###################################
# Filters for indexing and internal preview.
# The external (exec) filters  output the document in simple html format,
# have a look at the scripts.
[index]
application/msword = exec rcldoc
application/pdf = exec rclpdf
application/postscript = exec rclps
application/vnd.ms-powerpoint = exec rclppt
application/vnd.ms-excel = exec rclxls
application/vnd.sun.xml.calc = exec rclsoff
application/vnd.sun.xml.calc.template = exec rclsoff
application/vnd.sun.xml.draw = exec rclsoff
application/vnd.sun.xml.draw.template = exec rclsoff
application/vnd.sun.xml.impress = exec rclsoff
application/vnd.sun.xml.impress.template = exec rclsoff
application/vnd.sun.xml.math = exec rclsoff
application/vnd.sun.xml.writer = exec rclsoff
application/vnd.sun.xml.writer.global = exec rclsoff
application/vnd.sun.xml.writer.template = exec rclsoff
application/x-dvi = exec rcldvi
audio/mpeg = exec rclmedia
image/vnd.djvu = exec rcldjvu
message/rfc822 = internal
text/html  = internal
text/plain = internal
text/rtf = exec rclrtf
text/x-gaim-log = exec rclgaim
text/x-mail = internal
application/x-lyx = exec rcllyx

## #############################################
# Icons to be used in the result list if required by gui config
[icons]
application/msword = wordprocessing
application/pdf = pdf
application/postscript = postscript
application/vnd.ms-excel = spreadsheet
application/vnd.ms-powerpoint = presentation
application/vnd.sun.xml.calc = spreadsheet
application/vnd.sun.xml.calc.template = spreadsheet
application/vnd.sun.xml.draw = drawing
application/vnd.sun.xml.draw.template = drawing
application/vnd.sun.xml.impress = presentation
application/vnd.sun.xml.impress.template = presentation
application/vnd.sun.xml.writer = wordprocessing
application/vnd.sun.xml.writer.global = wordprocessing
application/vnd.sun.xml.writer.template = wordprocessing
application/x-fsdirectory = folder
application/x-dvi = document
audio/mpeg = sownd
image/jpeg = image
image/png = image
image/vnd.djvu = document
message/rfc822 = message
text/html = html
text/plain = txt
text/x-mail = message
text/x-c = source
application/x-lyx = wordprocessing
application/x-kword = wordprocessing

[categories]

texts = application/msword \
      application/pdf \
      application/postscript \
      application/vnd.sun.xml.writer \
      application/vnd.sun.xml.writer.global \
      application/vnd.sun.xml.writer.template \
      application/x-dvi \
      image/vnd.djvu \
      text/html \
      text/plain \
      application/x-lyx \
     application/x-kword \
      text/rtf

spreadsheets = application/vnd.ms-excel \
         application/vnd.sun.xml.calc \
         application/vnd.sun.xml.calc.template

presentations = application/vnd.ms-powerpoint \
          application/vnd.sun.xml.impress \
          application/vnd.sun.xml.impress.template

media = audio/mpeg \
      image/jpeg \
      image/png \

messages = message/rfc822 \
     text/x-gaim-log \
     text/x-mail \

other = application/vnd.sun.xml.draw \
      application/vnd.sun.xml.draw.template \
      application/vnd.sun.xml.math \
      application/x-fsdirectory

MIMEVIEW

# @(#$Id: mimeview,v 1.2 2006/12/19 08:40:50 dockes Exp $  (C) 2004 J.F.Dockes

## ##########################################
# External viewers, launched by the recoll GUI when you click on a result
# 'edit' link

[view]
application/msword = openoffice %f
application/pdf  = kpdf %f
application/postscript = gv %f
application/vnd.ms-excel = openoffice %f
application/vnd.ms-powerpoint = openoffice %f
application/vnd.sun.xml.calc = openoffice %f
application/vnd.sun.xml.calc.template = openoffice %f
application/vnd.sun.xml.draw = openoffice %f
application/vnd.sun.xml.draw.template = openoffice %f
application/vnd.sun.xml.impress = openoffice %f
application/vnd.sun.xml.impress.template = openoffice %f
application/vnd.sun.xml.math = openoffice %f
application/vnd.sun.xml.writer = openoffice %f
application/vnd.sun.xml.writer.global = openoffice %f
application/vnd.sun.xml.writer.template = openoffice %f
application/x-fsdirectory = rox %f
application/x-dvi = xdvi %f
audio/mpeg = xmms %f
image/jpeg = gimp %f
image/png = gimp %f
image/vnd.djvu = djview %f
# Or firefox -remote "openFile(%u)"
text/html = konqueror %u
application/x-lyx = lyx %f
application/x-kword = kword %f


recoll-1.21.5/doc/man/0000755000175000017500000000000012603155721013704 5ustar dockesdockesrecoll-1.21.5/doc/man/recollindex.10000644000175000017500000001605712603155721016307 0ustar dockesdockes.\" $Id: recollindex.1,v 1.7 2008-09-05 10:25:54 dockes Exp $ (C) 2005 J.F.Dockes\$ .TH RECOLLINDEX 1 "8 January 2006" .SH NAME recollindex \- indexing command for the Recoll full text search system .SH SYNOPSIS .B recollindex \-h .br .B recollindex [ .B \-c ] [ .B \-z|\-Z ] [ .B \-k ] .br .B recollindex [ .B \-c ] .B \-m [ .B \-w ] [ .B \-D ] [ .B \-x ] [ .B \-C ] [ .B \-n|-k ] .br .B recollindex [ .B \-c ] .B \-i [ .B \-Z ] [ .B \-k ] [ .B \-f ] [] .br .B recollindex [ .B \-c ] .B \-r [ .B \-Z ] [ .B \-K ] [ .B \-e ] [ .B \-f ] [ .B \-p pattern ] .br .B recollindex [ .B \-c ] .B \-e [] .br .B recollindex [ .B \-c ] .B \-l .br .B recollindex [ .B \-c ] .B \-s .br .B recollindex [ .B \-c ] .B \-S .br .B recollindex [ .B \-c ] .B \-E .SH DESCRIPTION The .B recollindex utility allows you to perform indexing operations for the Recoll text search system. .PP As indexing can sometimes take a long time, the command can be interrupted by sending an interrupt (Ctrl-C, SIGINT) or terminate (SIGTERM) signal. Some time may elapse before the process exits, because it needs to properly flush and close the index. This can also be done from the recoll GUI (menu entry: File/Stop_Indexing). After such an interruption, the index will be somewhat inconsistent because some operations which are normally performed at the end of the indexing pass will have been skipped (for example, the stemming and spelling databases will be inexistant or out of date). You just need to restart indexing at a later time to restore consistency. The indexing will restart at the interruption point (the full file tree will be traversed, but files that were indexed up to the interruption and for which the index is still up to date will not need to be reindexed). .PP The .B \-c option specifies the configuration directory name, overriding the default or $RECOLL_CONFDIR. .PP There are several modes of operation. .PP The normal mode will index the set of files described in the configuration file .B recoll.conf. This will incrementally update the database with files that changed since the last run. If option .B \-z is given, the database will be erased before starting. If option .B \-Z is given, the database will not be reset, but all files will be considered as needing reindexing (in place reset). .PP As of version 1.21, .B recollindex usually does not process again files which previously failed to index (for example because of a missing helper program). If option .B \-k is given, .B recollindex will try again to process all failed files. Please note that .B recollindex may also decide to retry failed files if the auxiliary checking script defined by the "checkneedretryindexscript" configuration variable indicates that this should happen. .PP If option .B \-m is given, recollindex is started for real time monitoring, using the file system monitoring package it was configured for (either fam, gamin, or inotify). This mode must have been explicitly configured when building the package, it is not available by default. The program will normally detach from the controlling terminal and become a daemon. If option .B \-D is given, it will stay in the foreground. Option .B \-w can be used to specify that the program should sleep for the specified time before indexing begins. The default value is 60. The daemon normally monitors the X11 session and exits when it is reset. Option .B \-x disables this X11 session monitoring (daemon will stay alive even if it cannot connect to the X11 server). You need to use this too if you use the daemon without an X11 context. You can use option .B \-n to skip the initial incrementing pass which is normally performed before monitoring starts. Once monitoring is started, the daemon normally monitors the configuration and restarts from scratch if a change is made. You can disable this with option .B \-C .PP .B recollindex \-i will index individual files into the database. The stem expansion and aspell databases will not be updated. The skippedPaths and skippedNames configuration variables will be used, so that some files may be skipped. You can tell recollindex to ignore skippedPaths and skippedNames by setting the .B \-f option. This allows fully custom file selection for a given subtree, for which you would add the top directory to skippedPaths, and use any custom tool to generate the file list (ie: a tool from a source code control system). .PP .PP .B recollindex \-e will erase data for individual files from the database. The stem expansion databases will not be updated. .PP Options .B \-i and .B \-e can be combined. This will first perform the purge, then the indexing. .PP With options .B \-i or .B \-e , if no file names are given on the command line, they will be read from stdin, so that you could for example run: .PP find /path/to/dir \-print | recollindex \-e \-i .PP to force the reindexing of a directory tree (which has to exist inside the file system area defined by .I topdirs in recoll.conf). You could mostly accomplish the same thing with .PP find /path/to/dir \-print | recollindex \-Z \-i .PP The latter will perform a less thorough job of purging stale sub-documents though. .PP .B recollindex \-r mostly works like .B \-i , but the parameter is a single directory, which will be recursively updated. This mostly does nothing more than .B find topdir | recollindex \-i but it may be more convenient to use when started from another program. This retries failed files by default, use option .B \-K to change. One or multiple .B \-p options can be used to set shell-type selection patterns (e.g.: *.pdf). .PP .B recollindex \-l will list the names of available language stemmers. .PP .B recollindex \-s will build the stem expansion database for a given language, which may or may not be part of the list in the configuration file. If the language is not part of the configuration, the stem expansion database will be deleted at the end of the next normal indexing run. You can get the list of stemmer names from the .B recollindex \-l command. Note that this is mostly for experimental use, the normal way to add a stemming language is to set it in the configuration, either by editing "recoll.conf" or by using the GUI indexing configuration dialog. .br At the time of this writing, the following languages are recognized (out of Xapian's stem.h): .IP \(bu danish .IP \(bu dutch .IP \(bu english Martin Porter's 2002 revision of his stemmer .IP \(bu english_lovins Lovin's stemmer .IP \(bu english_porter Porter's stemmer as described in his 1980 paper .IP \(bu finnish .IP \(bu french .IP \(bu german .IP \(bu italian .IP \(bu norwegian .IP \(bu portuguese .IP \(bu russian .IP \(bu spanish .IP \(bu swedish .PP .B recollindex \-S will rebuild the phonetic/orthographic index. This feature uses the .B aspell package, which must be installed on the system. .PP .B recollindex \-E will check the configuration file for topdirs and other relevant paths existence (to help catch typos). .SH SEE ALSO .PP recoll(1) recoll.conf(5) recoll-1.21.5/doc/man/recoll.10000644000175000017500000000431412602163537015253 0ustar dockesdockes.\" $Id: recoll.1,v 1.3 2007-11-13 18:42:18 dockes Exp $ (C) 2005 J.F.Dockes\$ .TH RECOLL 1 "8 January 2006" .SH NAME recoll \- user interface for the Recoll full text search system .SH SYNOPSIS .B recoll [ .B \-c ] [ .B \-o | .B \-l | .B \-f | .B \-a ] [ .B \-t ] [ .B \-q ] .B recoll [ .B \-c ] .SH DESCRIPTION In the first form, the .B recoll command will start the graphical user interface for querying the .B Recoll database. .PP On the first run, .B recoll will create the user configuration which can be customized before starting the first indexation. .PP The .B \-c option specifies the configuration directory name, overriding the default or $RECOLL_CONFDIR. .PP The .B \-q option can be used to specify an initial query on the command line. This query will be interpreted by default as a query language string. If .B \-a is specified, the query string will be interpreted as an .I all words simple search query. If .B \-o is specified, the query string will be interpreted as an .I any word simple search query. If .B \-f is specified, the query string will be interpreted as a .I file name simple search query. If .B \-l is specified, the query string will be interpreted as a .I query language simple search query. .PP If .B \-t is specified, the Graphical User Interface will not be started, and results will be printed to the standard output. Additional options understood by the .B recollq command may be specified in this case. These can control the output format and the maximum number of results to be printed. .PP Please refer to online help for a full description. .PP In the second form, the .B recoll command can be used to start a native viewer for a document indexed by Recoll. It will understand a final URL fragment (separated by a '#' character) to indicate an .I ipath , the specifier for the part of the Recoll document access path which is is internal to a container such as a mbox folder or a zip archive, and will, if needed, create a temporary file to let a normal system utility display the document. .PP The second form is mostly used for opening embedded documents from the Ubuntu Unity Recoll lens. .SH SEE ALSO .PP recollindex(1) recollq(1) recoll.conf(5) recoll-1.21.5/doc/man/recoll.conf.50000644000175000017500000003673312602163537016215 0ustar dockesdockes.TH RECOLL.CONF 5 "14 November 2012" .SH NAME recoll.conf \- main personal configuration file for Recoll .SH DESCRIPTION This file defines the index configuration for the Recoll full-text search system. .LP The system-wide configuration file is normally located inside /usr/[local]/share/recoll/examples. Any parameter set in the common file may be overridden by setting it in the personal configuration file, by default: .IR $HOME/.recoll/recoll.conf .LP Please note while we try to keep this manual page reasonably up to date, it will frequently lag the current state of the software. The best source of information about the configuration are the comments in the system-wide configuration file. .LP A short extract of the file might look as follows: .IP .nf # Space-separated list of directories to index. topdirs = ~/docs /usr/share/doc [~/somedirectory-with-utf8-txt-files] defaultcharset = utf-8 .fi .LP There are three kinds of lines: .RS .IP \(bu Comment or empty .IP \(bu Parameter affectation .IP \(bu Section definition .RE .LP Empty lines or lines beginning with # are ignored. .LP Affectation lines are in the form 'name = value'. .LP Section lines allow redefining a parameter for a directory subtree. Some of the parameters used for indexing are looked up hierarchically from the more to the less specific. Not all parameters can be meaningfully redefined, this is specified for each in the next section. .LP The tilde character (~) is expanded in file names to the name of the user's home directory. .LP Where values are lists, white space is used for separation, and elements with embedded spaces can be quoted with double-quotes. .SH OPTIONS .TP .BI "topdirs = " directories Specifies the list of directories to index (recursively). .TP .BI "skippedNames = " patterns A space-separated list of patterns for names of files or directories that should be completely ignored. The list defined in the default file is: .sp .nf *~ #* bin CVS Cache caughtspam tmp .fi The list can be redefined for subdirectories, but is only actually changed for the top level ones in .I topdirs .TP .BI "skippedPaths = " patterns A space-separated list of patterns for paths the indexer should not descend into. Together with topdirs, this allows pruning the indexed tree to one's content. .B daemSkippedPaths can be used to define a specific value for the real time indexing monitor. .TP .BI "skippedPathsFnmPathname = " 0/1 The values in the *skippedPaths variables are matched by default with fnmatch(3), with the FNM_PATHNAME and FNM_LEADING_DIR flags. This means that '/' characters must be matched explicitly. You can set skippedPathsFnmPathname to 0 to disable the use of FNM_PATHNAME (meaning that /*/dir3 will match /dir1/dir2/dir3). .TP .BI "followLinks = " boolean Specifies if the indexer should follow symbolic links while walking the file tree. The default is to ignore symbolic links to avoid multiple indexing of linked files. No effort is made to avoid duplication when this option is set to true. This option can be set individually for each of the .I topdirs members by using sections. It can not be changed below the .I topdirs level. .TP .BI "indexedmimetypes = " list Recoll normally indexes any file which it knows how to read. This list lets you restrict the indexed mime types to what you specify. If the variable is unspecified or the list empty (the default), all supported types are processed. .TP .BI "compressedfilemaxkbs = " value Size limit for compressed (.gz or .bz2) files. These need to be decompressed in a temporary directory for identification, which can be very wasteful if 'uninteresting' big compressed files are present. Negative means no limit, 0 means no processing of any compressed file. Defaults to \-1. .TP .BI "textfilemaxmbs = " value Maximum size for text files. Very big text files are often uninteresting logs. Set to \-1 to disable (default 20MB). .TP .BI "textfilepagekbs = " value If this is set to other than \-1, text files will be indexed as multiple documents of the given page size. This may be useful if you do want to index very big text files as it will both reduce memory usage at index time and help with loading data to the preview window. A size of a few megabytes would seem reasonable (default: 1000 : 1MB). .TP .BI "membermaxkbs = " "value in kilobytes" This defines the maximum size for an archive member (zip, tar or rar at the moment). Bigger entries will be skipped. Current default: 50000 (50 MB). .TP .BI "indexallfilenames = " boolean Recoll indexes file names into a special section of the database to allow specific file names searches using wild cards. This parameter decides if file name indexing is performed only for files with mime types that would qualify them for full text indexing, or for all files inside the selected subtrees, independent of mime type. .TP .BI "usesystemfilecommand = " boolean Decide if we use the .B "file \-i" system command as a final step for determining the mime type for a file (the main procedure uses suffix associations as defined in the .B mimemap file). This can be useful for files with suffixless names, but it will also cause the indexing of many bogus "text" files. .TP .BI "processbeaglequeue = " 0/1 If this is set, process the directory where Beagle Web browser plugins copy visited pages for indexing. Of course, Beagle MUST NOT be running, else things will behave strangely. .TP .BI "beaglequeuedir = " directory path The path to the Beagle indexing queue. This is hard-coded in the Beagle plugin as ~/.beagle/ToIndex so there should be no need to change it. .TP .BI "indexStripChars = " 0/1 Decide if we strip characters of diacritics and convert them to lower-case before terms are indexed. If we don't, searches sensitive to case and diacritics can be performed, but the index will be bigger, and some marginal weirdness may sometimes occur. The default is a stripped index (indexStripChars = 1) for now. When using multiple indexes for a search, this parameter must be defined identically for all. Changing the value implies an index reset. .TP .BI "maxTermExpand = " value Maximum expansion count for a single term (e.g.: when using wildcards). The default of 10000 is reasonable and will avoid queries that appear frozen while the engine is walking the term list. .TP .BI "maxXapianClauses = " value Maximum number of elementary clauses we can add to a single Xapian query. In some cases, the result of term expansion can be multiplicative, and we want to avoid using excessive memory. The default of 100 000 should be both high enough in most cases and compatible with current typical hardware configurations. .TP .BI "nonumbers = " 0/1 If this set to true, no terms will be generated for numbers. For example "123", "1.5e6", 192.168.1.4, would not be indexed ("value123" would still be). Numbers are often quite interesting to search for, and this should probably not be set except for special situations, ie, scientific documents with huge amounts of numbers in them. This can only be set for a whole index, not for a subtree. .TP .BI "nocjk = " boolean If this set to true, specific east asian (Chinese Korean Japanese) characters/word splitting is turned off. This will save a small amount of cpu if you have no CJK documents. If your document base does include such text but you are not interested in searching it, setting .I nocjk may be a significant time and space saver. .TP .BI "cjkngramlen = " value This lets you adjust the size of n-grams used for indexing CJK text. The default value of 2 is probably appropriate in most cases. A value of 3 would allow more precision and efficiency on longer words, but the index will be approximately twice as large. .TP .BI "indexstemminglanguages = " languages A list of languages for which the stem expansion databases will be built. See recollindex(1) for possible values. .TP .BI "defaultcharset = " charset The name of the character set used for files that do not contain a character set definition (ie: plain text files). This can be redefined for any subdirectory. .TP .BI "unac_except_trans = " "list of utf-8 groups" This is a list of characters, encoded in UTF-8, which should be handled specially when converting text to unaccented lowercase. For example, in Swedish, the letter "a with diaeresis" has full alphabet citizenship and should not be turned into an a. .br Each element in the space-separated list has the special character as first element and the translation following. The handling of both the lowercase and upper-case versions of a character should be specified, as appartenance to the list will turn-off both standard accent and case processing. .br Note that the translation is not limited to a single character. .br This parameter cannot be redefined for subdirectories, it is global, because there is no way to do otherwise when querying. If you have document sets which would need different values, you will have to index and query them separately. .TP .BI "maildefcharset = " character set name This can be used to define the default character set specifically for email messages which don't specify it. This is mainly useful for readpst (libpst) dumps, which are utf-8 but do not say so. .TP .BI "localfields = " "fieldname = value:..." This allows setting fields for all documents under a given directory. Typical usage would be to set an "rclaptg" field, to be used in mimeview to select a specific viewer. If several fields are to be set, they should be separated with a colon (':') character (which there is currently no way to escape). Ie: localfields= rclaptg=gnus:other = val, then select specifier viewer with mimetype|tag=... in mimeview. .TP .BI "dbdir = " directory The name of the Xapian database directory. It will be created if needed when the database is initialized. If this is not an absolute pathname, it will be taken relative to the configuration directory. .TP .BI "idxstatusfile = " "file path" The name of the scratch file where the indexer process updates its status. Default: idxstatus.txt inside the configuration directory. .TP .BI "maxfsoccuppc = " percentnumber Maximum file system occupation before we stop indexing. The value is a percentage, corresponding to what the "Capacity" df output column shows. The default value is 0, meaning no checking. .TP .BI "mboxcachedir = " "directory path" The directory where mbox message offsets cache files are held. This is normally $RECOLL_CONFDIR/mboxcache, but it may be useful to share a directory between different configurations. .TP .BI "mboxcacheminmbs = " "value in megabytes" The minimum mbox file size over which we cache the offsets. There is really no sense in caching offsets for small files. The default is 5 MB. .TP .BI "webcachedir = " "directory path" This is only used by the Beagle web browser plugin indexing code, and defines where the cache for visited pages will live. Default: $RECOLL_CONFDIR/webcache .TP .BI "webcachemaxmbs = " "value in megabytes" This is only used by the Beagle web browser plugin indexing code, and defines the maximum size for the web page cache. Default: 40 MB. .TP .BI "idxflushmb = " megabytes Threshold (megabytes of new text data) where we flush from memory to disk index. Setting this can help control memory usage. A value of 0 means no explicit flushing, letting Xapian use its own default, which is flushing every 10000 documents (or XAPIAN_FLUSH_THRESHOLD), meaning that memory usage depends on average document size. The default value is 10. .TP .BI "autodiacsens = " 0/1 IF the index is not stripped, decide if we automatically trigger diacritics sensitivity if the search term has accented characters (not in unac_except_trans). Else you need to use the query language and the D modifier to specify diacritics sensitivity. Default is no. .TP .BI "autocasesens = " 0/1 IF the index is not stripped, decide if we automatically trigger character case sensitivity if the search term has upper-case characters in any but the first position. Else you need to use the query language and the C modifier to specify character-case sensitivity. Default is yes. .TP .BI "loglevel = " value Verbosity level for recoll and recollindex. A value of 4 lists quite a lot of debug/information messages. 3 lists only errors. .B daemloglevel can be used to specify a different value for the real-time indexing daemon. .TP .BI "logfilename = " file Where should the messages go. 'stderr' can be used as a special value. .B daemlogfilename can be used to specify a different value for the real-time indexing daemon. .TP .BI "mondelaypatterns = " "list of patterns" This allows specify wildcard path patterns (processed with fnmatch(3) with 0 flag), to match files which change too often and for which a delay should be observed before re-indexing. This is a space-separated list, each entry being a pattern and a time in seconds, separated by a colon. You can use double quotes if a path entry contains white space. Example: .sp mondelaypatterns = *.log:20 "this one has spaces*:10" .TP .BI "monixinterval = " "value in seconds Minimum interval (seconds) for processing the indexing queue. The real time monitor does not process each event when it comes in, but will wait this time for the queue to accumulate to diminish overhead and in order to aggregate multiple events to the same file. Default 30 S. .TP .BI "monauxinterval = " "value in seconds Period (in seconds) at which the real time monitor will regenerate the auxiliary databases (spelling, stemming) if needed. The default is one hour. .TP .BI "monioniceclass, monioniceclassdata" These allow defining the ionice class and data used by the indexer (default class 3, no data). .TP .BI "filtermaxseconds = " "value in seconds" Maximum filter execution time, after which it is aborted. Some postscript programs just loop... .TP .BI "filtersdir = " directory A directory to search for the external filter scripts used to index some types of files. The value should not be changed, except if you want to modify one of the default scripts. The value can be redefined for any subdirectory. .TP .BI "iconsdir = " directory The name of the directory where .B recoll result list icons are stored. You can change this if you want different images. .TP .BI "idxabsmlen = " value Recoll stores an abstract for each indexed file inside the database. The text can come from an actual 'abstract' section in the document or will just be the beginning of the document. It is stored in the index so that it can be displayed inside the result lists without decoding the original file. The .I idxabsmlen parameter defines the size of the stored abstract. The default value is 250 bytes. The search interface gives you the choice to display this stored text or a synthetic abstract built by extracting text around the search terms. If you always prefer the synthetic abstract, you can reduce this value and save a little space. .TP .BI "aspellLanguage = " lang Language definitions to use when creating the aspell dictionary. The value must match a set of aspell language definition files. You can type "aspell config" to see where these are installed (look for data-dir). The default if the variable is not set is to use your desktop national language environment to guess the value. .TP .BI "noaspell = " boolean If this is set, the aspell dictionary generation is turned off. Useful for cases where you don't need the functionality or when it is unusable because aspell crashes during dictionary generation. .TP .BI "mhmboxquirks = " flags This allows definining location-related quirks for the mailbox handler. Currently only the tbird flag is defined, and it should be set for directories which hold Thunderbird data, as their folder format is weird. .SH SEE ALSO .PP recollindex(1) recoll(1) recoll-1.21.5/doc/man/recollq.10000644000175000017500000000624112602163537015435 0ustar dockesdockes.\" $Id: recollq.1,v 1.1 2007-11-13 10:07:35 dockes Exp $ (C) 2005 J.F.Dockes\$ .TH RECOLLQ 1 "13 November 2007" .SH NAME recollq \- command line / standard output Recoll query command. .SH SYNOPSIS .B recollq [ .B \-c ] [ .B \-o | .B \-f | .B \-a ] [ .B \-b ] [ .B \-d ] [ .B \-A ] [ .B \-e ] [ .B \-m ] [ .B \-n <[first-]cnt> ] [ .B \-Q ] [ .B \-s ] [ .B \-S ] [ .B \-D ] [ .B \-i ] [ .B \-F ] .B recollq \-P .SH DESCRIPTION The .B recollq command will execute the Recoll query specified on the command line and print the results to the standard output. It is primarily designed for diagnostics, or piping the data to some other program. The basic format and its variations can be useful for command line querying. The \-F option should exclusively be used for using the output data in another program, as it is the only one for which output is guaranteed to be fully parseable. .PP The .B \-c option specifies the configuration directory name, overriding the default or $RECOLL_CONFDIR. .PP The query string is built by concatenating all arguments found at the end of the command line (after the options). It will be interpreted by default as a query language string. Quoting should be used as needed to escape characters that might be interpreted by the shell (ie: wildcards). .B \-a is specified, the query string will be interpreted as an .I all words simple search query. If .B \-o is specified, the query string will be interpreted as an .I any word simple search query. If .B \-f is specified, the query string will be interpreted as a .I file name simple search query. .PP .B \-b (basic) can be specified to only print the result urls in the output stream. .PP If .B \-d is set, the text for the result files contents will be dumped to stdout. .PP If .B \-m is set, the whole metadata array will be dumped for each document. .PP If .B \-A is set, the document abstracts will be printed. .PP .B \-S sorts the results according to the specified field. Use .B \-D for descending order. .PP .B \-n can be used to set the maximum number of results that should be printed. The default is 2000. Use a value of 0 for no limit. .PP .B \-s selects the word stemming language. The value should match an existing stemming database (as set in the configuration or added with recollindex \-s). .PP .B \-i adds the specified Xapian index to the set used for the query. Can be specified multiple times. .PP .B \-F should be used for piping the data to another program. After 2 initial lines showing the actual query and the estimated result counts, it will print one line for each result document. Each line will have exactly the fields requested on the command line. Fields are encoded in base64 and separated by one space character. Empty fields are indicated by consecutive space characters. There is one additional space character at the end of each line. .PP .B recollq \-P (Period) will print the minimum and maximum modification years for documents in the index. .SH SEE ALSO .PP recollindex(1) recollq(1) recoll.conf(5) recoll-1.21.5/doc/prog/0000755000175000017500000000000012602163537014103 5ustar dockesdockesrecoll-1.21.5/doc/prog/filters.txt0000644000175000017500000000275212602163537016322 0ustar dockesdockes/*!@filters \page filters About filters \section filtintro Overview Before a document can be processed either for indexing or previewing, it must be translated into an internal common format. The MimeHandler class defines the virtual interface for filters. There are derived classes for text, html (MimeHandlerHtml), and mail folders (MimeHandlerMail) There is also a derived class (MimeHandlerExec) that will execute an external program to translate the document to simple html (to be further processed by MimeHandlerHtml). To extend Recoll for a new document type, you may either subclass the MimeHandler class (look at one of the existing subclasses), or write an external filter, which will probably be the simpler solution in most cases. \section extfilts External filters Filters are programs (usually shell scripts) that will turn a document of foreign type into something that Recoll can understand. HTML was chosen as a pivot format for its ability to carry structured information. The meta-information tags that Recoll will use at the moment are the following: - title - charset - keywords - description For an example, you can take a look at the rclsoff filter which translates openoffice documents. The filter is executed with the input file name as a parameter and should output the result to stdout. \section extassoc Associating a filter to a mime type This is done in the mimeconf configuration file. Take a look at the file, the format is self-explanatory. */ recoll-1.21.5/doc/prog/Doxyfile0000644000175000017500000014133112602163537015614 0ustar dockesdockes# Doxyfile 1.4.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = Recoll # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, # Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese, # Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian, # Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, # Swedish, and Ukrainian. OUTPUT_LANGUAGE = English # This tag can be used to specify the encoding used in the generated output. # The encoding is not always determined by the language that is chosen, # but also whether or not the output is meant for Windows or non-Windows users. # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES # forces the Windows encoding (this is the default for the Windows binary), # whereas setting the tag to NO uses a Unix-style encoding (the default for # all platforms other than Windows). USE_WINDOWS_ENCODING = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explicit @brief command for a brief description. JAVADOC_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources # only. Doxygen will then generate output that is more tailored for Java. # For instance, namespaces will be presented as packages, qualified scopes # will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # If the sources in your project are distributed over multiple directories # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. SHOW_DIRECTORIES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from the # version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the progam writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be abled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = NO # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = ../src top.txt filters.txt # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = .moc .ui # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. EXCLUDE_PATTERNS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER # is applied to all files. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = docprog_html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_PREDEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse # the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option is superseded by the HAVE_DOT option below. This is only a # fallback. It is recommended to install and use dot, since it yields more # powerful graphs. CLASS_DIAGRAMS = YES # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a call dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable call graphs for selected # functions only using the \callgraph command. CALL_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that a graph may be further truncated if the graph's # image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH # and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), # the graph is not depth-constrained. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is disabled by default, which results in a white background. # Warning: Depending on the platform used, enabling this option may lead to # badly anti-aliased labels on the edges of a graph (i.e. they become hard to # read). DOT_TRANSPARENT = NO # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO recoll-1.21.5/doc/prog/Makefile0000644000175000017500000000007712602163537015547 0ustar dockesdockesdocumentation: doxygen Doxyfile clean: rm -f docprog_html/* recoll-1.21.5/doc/prog/top.txt0000644000175000017500000000126012602163537015445 0ustar dockesdockes/*!@mainpage Recoll: A personal/desktop text-search program \author email address: jfd@recoll.org \section intro Introduction Home page: http://www.recoll.org This is the documentation for Recoll, a personal text search tool. Recoll is written in C++, has a QT-based gui and uses the Xapian full text search engine. Recoll supports a number of document types, the decoding of which is either performed with internal code or an externally executed, program. It should be relatively easy to write a new filter for some yet unsupported file type, and the documentation for this is found here: Writing input filters */ recoll-1.21.5/configure0000755000175000017500000064730112652665242014316 0ustar dockesdockes#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for Recoll 1.21.5. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Recoll' PACKAGE_TARNAME='recoll' PACKAGE_VERSION='1.21.5' PACKAGE_STRING='Recoll 1.21.5' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="index/recollindex.cpp" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS RCLLIBVERSION RCLVERSION NODYNLIB NOPYTHON NOTHREADS NOPIC LIBQZEITGEIST QMAKE_DISABLE_ZEITGEIST QMAKE_ENABLE_ZEITGEIST QMAKE_DISABLE_WEBKIT QMAKE_ENABLE_WEBKIT NOCMDLINE NOQTMAKE HAVE_MKDTEMP XAPIANCXXFLAGS QTRECOLL_DATADIR QTGUI QMAKE LIBFAM LIBXAPIANSTATICEXTRA LIBXAPIANDIR LIBXAPIAN LIBICONV INCICONV X_LIBX11 X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF QMAKEPATH XAPIAN_CONFIG2 XAPIAN_CONFIG1 XAPIAN_CONFIG0 aspellProg fileProg CXXCPP EGREP GREP CPP ac_ct_CC CFLAGS CC OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_largefile enable_posix_spawn with_file_command with_aspell with_inotify with_fam enable_idxthreads enable_camelcase enable_python_module enable_pic enable_qtgui enable_webkit with_qzeitgeist enable_x11mon with_x ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CC CFLAGS CPP CXXCPP XMKMF' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures Recoll 1.21.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/recoll] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of Recoll 1.21.5:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-largefile omit support for large files --enable-posix_spawn Enable the use of posix_spawn(). --disable-idxthreads Disable multithread indexing. --enable-camelcase Enable splitting camelCase words. This is not enabled by default as this makes phrase matches more difficult: you need to use matching case in the phrase query to get a match. Ie querying for "MySQL manual" and "my sql manual" are the same, but not the same as "mysql manual" (in phrases only and you could raise the phrase slack to get a match). --disable-python-module Do not build the Python module. --disable-pic Do not compile library objects as position independant code. This is incompatible with the php or python extensions. --disable-qtgui Disable the QT-based graphical user interface. --disable-webkit Disable use of qt-webkit (only meaningful if qtgui is enabled). --disable-x11mon Disable recollindex support for X11 session monitoring. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-file-command Specify version of 'file' command (ie: --with-file-command=/usr/local/bin/file) --without-aspell Disable use of aspell spelling package to provide term expansion to other spellings --with-inotify Use inotify for almost real time indexing of modified files (the default is yes on Linux). --with-fam Use File Alteration Monitor for almost real time indexing of modified files. Give the fam/gamin library as argument (ie: /usr/lib/libfam.so) if configure does not find the right one. --with-qzeitgeist Enable the use of the qzeitgeist library to send zeitgeist events. --with-x use the X Window System Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags CPP C preprocessor CXXCPP C++ preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF Recoll configure 1.21.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_cxx_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_cxx_check_func LINENO FUNC VAR # ------------------------------------ # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_cxx_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by Recoll $as_me 1.21.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers common/autoconfig.h" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 $as_echo_n "checking whether the C++ compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C++ compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 $as_echo_n "checking for C++ compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test C$CXX = C ; then as_fn_error $? "C++ compiler needed. Please install one (ie: gnu g++)" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac sys=`uname | tr / _ | awk -F_ '{print $1}'` if test ! -f mk/$sys ; then { $as_echo "$as_me:${as_lineno-$LINENO}: No system configuration file found in mk/ for uname = '$sys'. Trying with Default file. If the build fails, you'll need to write a configuration file, starting from one of the existing ones." >&5 $as_echo "$as_me: No system configuration file found in mk/ for uname = '$sys'. Trying with Default file. If the build fails, you'll need to write a configuration file, starting from one of the existing ones." >&6;} sys=Default fi (cd mk; rm -f sysconf; ln -s $sys sysconf) # There a few Recoll users on Mac OS X and a few things are just not worth # supporting if test X$sys = XDarwin ; then NODYNLIB=# fi # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } if ${ac_cv_sys_largefile_CC+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : break fi rm -f core conftest.err conftest.$ac_objext CC="$CC -n32" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_largefile_CC=' -n32'; break fi rm -f core conftest.err conftest.$ac_objext break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 $as_echo "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } if ${ac_cv_sys_file_offset_bits+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=64; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } if ${ac_cv_sys_large_files+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 $as_echo "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _LARGE_FILES $ac_cv_sys_large_files _ACEOF ;; esac rm -rf conftest* fi fi # OpenBSD needs sys/param.h for mount.h to compile for ac_header in sys/param.h, spawn.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in posix_spawn, setrlimit do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_posix_spawn" = xyes; then : # Check whether --enable-posix_spawn was given. if test "${enable_posix_spawn+set}" = set; then : enableval=$enable_posix_spawn; posixSpawnEnabled=$enableval else posixSpawnEnabled=no fi fi if test X$posixSpawnEnabled = Xyes ; then $as_echo "#define USE_POSIX_SPAWN 1" >>confdefs.h fi # Check for where to find unordered_map etc. ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default" if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : $as_echo "#define HAVE_TR1_UNORDERED /**/" >>confdefs.h fi ac_fn_cxx_check_header_mongrel "$LINENO" "unordered_map" "ac_cv_header_unordered_map" "$ac_includes_default" if test "x$ac_cv_header_unordered_map" = xyes; then : $as_echo "#define HAVE_CXX0X_UNORDERED /**/" >>confdefs.h fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu for ac_header in sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_PARAM_H # include #endif " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Use specific 'file' command ? (Useful on solaris to specify # /usr/local/bin/file instead of the system's which doesn't understand '-i' # Check whether --with-file-command was given. if test "${with_file_command+set}" = set; then : withval=$with_file_command; withFileCommand=$withval else withFileCommand=file fi case $withFileCommand in file) # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_fileProg+:} false; then : $as_echo_n "(cached) " >&6 else case $fileProg in [\\/]* | ?:[\\/]*) ac_cv_path_fileProg="$fileProg" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_fileProg="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi fileProg=$ac_cv_path_fileProg if test -n "$fileProg"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fileProg" >&5 $as_echo "$fileProg" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) fileProg=$withFileCommand;; esac if test ! -x "$fileProg"; then as_fn_error $? "$fileProg does not exist or is not executable" "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define FILE_PROG "$fileProg" _ACEOF # Can't use Solaris standard 'file' command, it doesn't support -i if test X$sys != XSunOS -o X$fileProg != X/usr/bin/file; then $as_echo "#define USE_SYSTEM_FILE_COMMAND 1" >>confdefs.h fi # Use aspell to provide spelling expansions ? # The default is yes. If we do find an aspell installation, we use it. Else # we do compile the aspell module using an internal copy of aspell.h # Only --with-aspell=no will completely disable aspell support # Check whether --with-aspell was given. if test "${with_aspell+set}" = set; then : withval=$with_aspell; withAspell=$withval else withAspell=yes fi case $withAspell in no);; yes) # Extract the first word of "aspell", so it can be a program name with args. set dummy aspell; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_aspellProg+:} false; then : $as_echo_n "(cached) " >&6 else case $aspellProg in [\\/]* | ?:[\\/]*) ac_cv_path_aspellProg="$aspellProg" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_aspellProg="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi aspellProg=$ac_cv_path_aspellProg if test -n "$aspellProg"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aspellProg" >&5 $as_echo "$aspellProg" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) # The argument should be the path to the aspell program aspellProg=$withAspell ;; esac if test X$withAspell != Xno ; then $as_echo "#define RCL_USE_ASPELL 1" >>confdefs.h if test X$aspellProg != X ; then aspellBase=`dirname $aspellProg` aspellBase=`dirname $aspellBase` cat >>confdefs.h <<_ACEOF #define ASPELL_PROG "$aspellProg" _ACEOF if test -f $aspellBase/include/aspell.h ; then cat >>confdefs.h <<_ACEOF #define ASPELL_INCLUDE "$aspellBase/include/aspell.h" _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&5 $as_echo "$as_me: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&6;} $as_echo "#define ASPELL_INCLUDE \"aspell-local.h\"" >>confdefs.h fi else # aspell support enabled but no aspell install yet { $as_echo "$as_me:${as_lineno-$LINENO}: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&5 $as_echo "$as_me: aspell support enabled but aspell package not found. Compiling with internal aspell interface file" >&6;} $as_echo "#define ASPELL_INCLUDE \"aspell-local.h\"" >>confdefs.h fi fi if test -f /usr/include/sys/inotify.h -o -f /usr/include/linux/inotify.h; then inot_default=yes else inot_default=no fi # Real time monitoring with inotify # Check whether --with-inotify was given. if test "${with_inotify+set}" = set; then : withval=$with_inotify; withInotify=$withval else withInotify=$inot_default fi if test X$withInotify != Xno ; then { $as_echo "$as_me:${as_lineno-$LINENO}: enabled support for inotify monitoring" >&5 $as_echo "$as_me: enabled support for inotify monitoring" >&6;} $as_echo "#define RCL_MONITOR 1" >>confdefs.h $as_echo "#define RCL_USE_INOTIFY 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: inotify not found, inotify monitoring disabled" >&5 $as_echo "$as_me: inotify not found, inotify monitoring disabled" >&6;} fi # Real time monitoring with FAM # Check whether --with-fam was given. if test "${with_fam+set}" = set; then : withval=$with_fam; withFam=$withval else withFam=yes fi if test X$withFam != Xno -a X$withInotify != Xno ; then { $as_echo "$as_me:${as_lineno-$LINENO}: FAM support enabled but inotify support also enabled. Disabling FAM support and using inotify" >&5 $as_echo "$as_me: FAM support enabled but inotify support also enabled. Disabling FAM support and using inotify" >&6;} withFam=no fi famLib="" case $withFam in no);; yes) for dir in /usr/local/lib ${libdir};do if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi done if test X$famLib = X ; then { $as_echo "$as_me:${as_lineno-$LINENO}: FAM library not found, disabling FAM and real time indexing support" >&5 $as_echo "$as_me: FAM library not found, disabling FAM and real time indexing support" >&6;} withFam=no fi ;; *) # The argument should be the path to the fam library famLib=$withFam ;; esac if test X$withFam != Xno ; then $as_echo "#define RCL_MONITOR 1" >>confdefs.h $as_echo "#define RCL_USE_FAM 1" >>confdefs.h if test X$famLib != X ; then famLibDir=`dirname $famLib` famBase=`dirname $famLibDir` famBLib=`basename $famLib .so | sed -e s/lib//` if test ! -f $famBase/include/fam.h ; then as_fn_error $? "fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" "$LINENO" 5 fi LIBFAM="-L$famLibDir -l$famBLib" { $as_echo "$as_me:${as_lineno-$LINENO}: fam library directive: $LIBFAM" >&5 $as_echo "$as_me: fam library directive: $LIBFAM" >&6;} cat >>confdefs.h <<_ACEOF #define FAM_INCLUDE "$famBase/include/fam.h" _ACEOF else as_fn_error $? "fam library not found" "$LINENO" 5 fi fi # Enable use of threads in the indexing pipeline. # This is disabled by default as we usually care little about indexing # absolute performance (more about impact on usability and total # resources used). # Check whether --enable-idxthreads was given. if test "${enable_idxthreads+set}" = set; then : enableval=$enable_idxthreads; idxthreadsEnabled=$enableval else idxthreadsEnabled=yes fi if test X$idxthreadsEnabled = Xyes ; then $as_echo "#define IDX_THREADS 1" >>confdefs.h NOTHREADS="" else NOTHREADS="#" fi # Enable CamelCase word splitting. This is optional because it causes # problems with phrases: with camelcase enabled, "MySQL manual" # will be matched by "MySQL manual" and "my sql manual" but not # "mysql manual" (which would need increased slack as manual is now at pos # 2 instead of 1 # Check whether --enable-camelcase was given. if test "${enable_camelcase+set}" = set; then : enableval=$enable_camelcase; camelcaseEnabled=$enableval else camelcaseEnabled=no fi if test X$camelcaseEnabled = Xyes ; then $as_echo "#define RCL_SPLIT_CAMELCASE 1" >>confdefs.h fi # Disable building the python module. This is built by default, because # it's really the easiest way to interface and extend recoll. It forces PIC # objects for everything (indexing performance impact: 1%), because it's # just not worth building the lib twice # You can still have a non-pic recoll with: # configure --disable-python-module; make; make install;make clean # configure; make; cd python/recoll; make install # if test X$sys != XDarwin ; then # Check whether --enable-python-module was given. if test "${enable_python_module+set}" = set; then : enableval=$enable_python_module; pythonEnabled=$enableval else pythonEnabled=yes fi if test X$pythonEnabled = Xyes ; then NOPYTHON="" else NOPYTHON="#" fi else NOPYTHON="#" fi # Build PIC objects for the library ? # Check whether --enable-pic was given. if test "${enable_pic+set}" = set; then : enableval=$enable_pic; picEnabled=$enableval else picEnabled=forpython fi case $picEnabled in forpython) picEnabled=$pythonEnabled; NOPIC=$NOPYTHON;; yes) NOPIC="";; *) NOPIC="#";; esac if test X$pythonEnabled = Xyes -a X$picEnabled != Xyes; then as_fn_error $? "Python build needs PIC library" "$LINENO" 5 fi if test X$NOPIC != X; then NODYNLIB=# fi for ac_func in mkdtemp do : ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" if test "x$ac_cv_func_mkdtemp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MKDTEMP 1 _ACEOF fi done ##### Look for iconv. This can exist in either libc (ie: Linux, solaris) or ##### libiconv. We'd need a --with-libiconv= option ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu LIBICONV="" S_LIBS=$LIBS S_CPPFLAGS=$CPPFLAGS for dir in ${libdir} /opt/local/lib /usr/local/lib;do CPPFLAGS="$S_CPPFLAGS -I$dir/../include" LIBS="$S_LIBS -L$dir" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : LIBICONV="-L$dir";INCICONV=-I$dir/../include fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test A"$LIBICONV" != A ; then break fi LIBS="$S_LIBS -L$dir -liconv" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : LIBICONV="-L$dir -liconv";INCICONV=-I$dir/../include fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test A"$LIBICONV" != A ; then break fi done LIBS=$S_LIBS CPPFLAGS=$S_CPPFLAGS if test A"$LIBICONV" = A ; then as_fn_error $? "Cannot find iconv_open anywhere. Please install iconv" "$LINENO" 5 exit 1 fi #echo LIBICONV $LIBICONV #echo INCICONV $INCICONV CPPFLAGS="$CPPFLAGS $INCICONV" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of inbuf parameter to iconv" >&5 $as_echo_n "checking for type of inbuf parameter to iconv... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv(0,(const char **)0,(size_t *)0,(char **)0,(size_t *)0); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : rcl_iconv_inbuf_const="1" else rcl_iconv_inbuf_const="0" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test X$rcl_iconv_inbuf_const = X1 ; then $as_echo "#define RCL_ICONV_INBUF_CONST 1" >>confdefs.h fi ############# Putenv { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of string parameter to putenv" >&5 $as_echo_n "checking for type of string parameter to putenv... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { putenv((const char *)0); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : rcl_putenv_string_const="1" else rcl_putenv_string_const="0" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test X$rcl_putenv_string_const = X1 ; then $as_echo "#define PUTENV_ARG_CONST 1" >>confdefs.h fi #### Look for Xapian. Done in a strange way to work around autoconf # cache XAPIAN_CONFIG=no if test "$XAPIAN_CONFIG" = "no"; then # Extract the first word of "xapian-config", so it can be a program name with args. set dummy xapian-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XAPIAN_CONFIG0+:} false; then : $as_echo_n "(cached) " >&6 else case $XAPIAN_CONFIG0 in [\\/]* | ?:[\\/]*) ac_cv_path_XAPIAN_CONFIG0="$XAPIAN_CONFIG0" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_XAPIAN_CONFIG0="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_XAPIAN_CONFIG0" && ac_cv_path_XAPIAN_CONFIG0="no" ;; esac fi XAPIAN_CONFIG0=$ac_cv_path_XAPIAN_CONFIG0 if test -n "$XAPIAN_CONFIG0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG0" >&5 $as_echo "$XAPIAN_CONFIG0" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi XAPIAN_CONFIG=$XAPIAN_CONFIG0 fi if test "$XAPIAN_CONFIG" = "no"; then # Extract the first word of "xapian-config-1.3", so it can be a program name with args. set dummy xapian-config-1.3; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XAPIAN_CONFIG1+:} false; then : $as_echo_n "(cached) " >&6 else case $XAPIAN_CONFIG1 in [\\/]* | ?:[\\/]*) ac_cv_path_XAPIAN_CONFIG1="$XAPIAN_CONFIG1" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_XAPIAN_CONFIG1="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_XAPIAN_CONFIG1" && ac_cv_path_XAPIAN_CONFIG1="no" ;; esac fi XAPIAN_CONFIG1=$ac_cv_path_XAPIAN_CONFIG1 if test -n "$XAPIAN_CONFIG1"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG1" >&5 $as_echo "$XAPIAN_CONFIG1" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi XAPIAN_CONFIG=$XAPIAN_CONFIG1 fi if test "$XAPIAN_CONFIG" = "no"; then # Extract the first word of "xapian-config-1.1", so it can be a program name with args. set dummy xapian-config-1.1; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XAPIAN_CONFIG2+:} false; then : $as_echo_n "(cached) " >&6 else case $XAPIAN_CONFIG2 in [\\/]* | ?:[\\/]*) ac_cv_path_XAPIAN_CONFIG2="$XAPIAN_CONFIG2" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_XAPIAN_CONFIG2="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_XAPIAN_CONFIG2" && ac_cv_path_XAPIAN_CONFIG2="no" ;; esac fi XAPIAN_CONFIG2=$ac_cv_path_XAPIAN_CONFIG2 if test -n "$XAPIAN_CONFIG2"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG2" >&5 $as_echo "$XAPIAN_CONFIG2" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi XAPIAN_CONFIG=$XAPIAN_CONFIG2 fi if test "$XAPIAN_CONFIG" = "no" ; then as_fn_error $? "Cannot find xapian-config command in $PATH. Is xapian-core installed ?" "$LINENO" 5 exit 1 fi LIBXAPIAN=`$XAPIAN_CONFIG --libs` # The --static thing fails with older Xapians. Happily enough they don't # need it either (because there are no needed libraries (no uuid and we # deal explicitely with libz) LIBXAPIANSTATICEXTRA=`$XAPIAN_CONFIG --static --libs 2> /dev/null` # Workaround for problem in xapian-config in some versions: wrongly lists # libstdc++.la in the lib list for i in $LIBXAPIAN ; do case $i in *stdc++*|-lm|-lgcc_s|-lc);; *) tmpxaplib="$tmpxaplib $i";; esac done LIBXAPIAN=$tmpxaplib # Also recent xapian libs need lz even when they think they don't... LIBXAPIAN="$LIBXAPIAN -lz" LIBXAPIANDIR=`$XAPIAN_CONFIG --libs | awk '{print $1}'` case A"$LIBXAPIANDIR" in A-L*) LIBXAPIANDIR=`echo $LIBXAPIANDIR | sed -e 's/-L//'`;; *) LIBXAPIANDIR="";; esac XAPIANCXXFLAGS=`$XAPIAN_CONFIG --cxxflags` #echo XAPIAN_CONFIG: $XAPIAN_CONFIG #echo LIBXAPIAN: $LIBXAPIAN #echo LIBXAPIANDIR: $LIBXAPIANDIR #echo LIBXAPIANSTATICEXTRA: $LIBXAPIANSTATICEXTRA #echo XAPIANCXXFLAGS: $XAPIANCXXFLAGS #### QT # The way qt and its tools (qmake especially) are installed is very # different between systems (and maybe qt versions) # # In general we need QTDIR to be set, because it is used inside the # qmake-generated makefiles. But there are exceptions: ie on debian3.1 (at # least on the sourceforge compile farm), QTDIR is not needed because qmake # generates hard paths (and is installed in /usr/bin). We don't want to # force the user to set QTDIR if it is not needed. # # The logic is then to first look for qmake, possibly using QTDIR if it is # set. # # If QTDIR is not set, we then generate a bogus qt project and check if # QTDIR is needed in the Makefile, in which case we complain. # # QMAKESPEC: on most Linux system, there is a 'default' link inside the # mkspecs directory, so that QMAKESPEC is not needed. # If QMAKESPEC is not set and needed, the qmake test at the previous test # will have failed, and we tell the user to check his environment. # # Check whether --enable-qtgui was given. if test "${enable_qtgui+set}" = set; then : enableval=$enable_qtgui; enableQT=$enableval else enableQT="yes" fi if test "$enableQT" != "yes" ; then NOQTMAKE="#" NOCMDLINE="" else NOQTMAKE="" NOCMDLINE="#" if test X$QTDIR != X ; then PATH=$PATH:$QTDIR/bin export PATH fi if test X$QMAKE = X ; then QMAKE=qmake fi case $QMAKE in */*) QMAKEPATH=$QMAKE;; *) # Extract the first word of "$QMAKE", so it can be a program name with args. set dummy $QMAKE; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_QMAKEPATH+:} false; then : $as_echo_n "(cached) " >&6 else case $QMAKEPATH in [\\/]* | ?:[\\/]*) ac_cv_path_QMAKEPATH="$QMAKEPATH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_QMAKEPATH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_QMAKEPATH" && ac_cv_path_QMAKEPATH="NOTFOUND" ;; esac fi QMAKEPATH=$ac_cv_path_QMAKEPATH if test -n "$QMAKEPATH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKEPATH" >&5 $as_echo "$QMAKEPATH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; esac if test X$QMAKEPATH = XNOTFOUND ; then as_fn_error $? "Cannot find the qmake program. Maybe you need to install qt development files and tools and/or set the QTDIR environment variable?" "$LINENO" 5 fi QMAKE=$QMAKEPATH # MAC OS X: we don't support this (the native search tool is more than # good enough), but we make things work just enough so that the program can # be compiled and roughly installed (not as a .app, but to /usr/local), # basically to enable using a Macbook for development if test X$sys = XDarwin ; then # The default is xcode QMAKE="${QMAKE} -spec macx-g++" fi # Discriminate qt3/4. Qt3 qmake prints its version on stderr but we don't # depend on this. We try to detect the qt 4 version string instead. qmakevers="`${QMAKE} --version 2>&1`" #echo "qmake version: $qmakevers" v4=`expr "$qmakevers" : '.*Qt *version *4.*'` v5=`expr "$qmakevers" : '.*Qt *version *5.*'` if test X$v4 = X0 -a X$v5 = X0; then as_fn_error $? "qmake seems to be using Qt version 3 which is not supported any more" "$LINENO" 5 QTGUI=qtgui else if test X$v4 != X0 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: using qt version 4 user interface" >&5 $as_echo "$as_me: using qt version 4 user interface" >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: using qt version 5 user interface" >&5 $as_echo "$as_me: using qt version 5 user interface" >&6;} fi QTGUI=qtgui fi cd $QTGUI # We just want a .pro file: no problem with unsubstituted variables at # this point. test -f recoll.pro && chmod +w recoll.pro cp recoll.pro.in recoll.pro #echo QMAKE ${QMAKE} ${QMAKE} recoll.pro if test $? != 0 ; then as_fn_error $? "Cannot use qmake to generate a Makefile. Maybe you need to check the QTDIR and QMAKESPEC environment variables?" "$LINENO" 5 fi # is QTDIR set and do we actually need it ? if test X$QTDIR = X ; then QTDIRNEEDED=`grep INCPATH Makefile | grep = | grep QTDIR` if test "X$QTDIRNEEDED" != "X" ; then as_fn_error $? "You need to set the QTDIR variable to point to the QT installation. If there is no default mkspecs, you should also set QMAKESPEC" "$LINENO" 5 fi fi cd .. ##### Using Qt webkit for reslist display? Else Qt textbrowser # Check whether --enable-webkit was given. if test "${enable_webkit+set}" = set; then : enableval=$enable_webkit; enableWebkit=$enableval else enableWebkit="yes" fi if test "$enableWebkit" = "yes" ; then QMAKE_ENABLE_WEBKIT="" QMAKE_DISABLE_WEBKIT="#" else QMAKE_ENABLE_WEBKIT="#" QMAKE_DISABLE_WEBKIT="" fi ##### Using QZeitGeist lib ? Default no for now # Check whether --with-qzeitgeist was given. if test "${with_qzeitgeist+set}" = set; then : withval=$with_qzeitgeist; withQZeitgeist=$withval else withQZeitgeist="no" fi case "$withQZeitgeist" in no) LIBQZEITGEIST=;; yes) LIBQZEITGEIST=-lqzeitgeist;; *) LIBQZEITGEIST=$withQZeitgeist;; esac if test "$withQZeitgeist" != "no" ; then QMAKE_ENABLE_ZEITGEIST="" QMAKE_DISABLE_ZEITGEIST="#" else QMAKE_ENABLE_ZEITGEIST="#" QMAKE_DISABLE_ZEITGEIST="" fi ac_config_files="$ac_config_files $QTGUI/recoll.pro" ##################### End QT stuff fi ### X11: this is needed for the session monitoring code (in recollindex -m) # Check whether --enable-x11mon was given. if test "${enable_x11mon+set}" = set; then : enableval=$enable_x11mon; enableX11mon=$enableval else enableX11mon="yes" fi if test X$withInotify = Xno -a X$withFam = Xno ; then enableX11mon=no fi if test "$enableX11mon" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi X_LIBX11=-lX11 else $as_echo "#define DISABLE_X11MON 1" >>confdefs.h X_LIBX11="" fi #echo X_CFLAGS "'$X_CFLAGS'" X_PRE_LIBS "'$X_PRE_LIBS'" X_LIBS \ # "'$X_LIBS'" X_LIBX11 "'$X_LIBX11'" X_EXTRA_LIBS "'$X_EXTRA_LIBS'" # We have to expand prefix in here, couldn't find a way to do it inside # the qt gui .pro file or Makefile. This just means that you can't change # prefix at build time. It works at install time because we dont' use the # qtgui Makefile m_prefix=$prefix test "X$m_prefix" = "XNONE" && m_prefix=/usr/local m_datadir=${m_prefix}/share QTRECOLL_DATADIR=${m_datadir}/recoll RCLVERSION=`cat VERSION` RCLLIBVERSION=$RCLVERSION # All object files depend on localdefs which has the cc flags. Avoid # changing it unless necessary ac_config_files="$ac_config_files Makefile" ac_config_files="$ac_config_files common/rclversion.h" ac_config_files="$ac_config_files lib/mkMake" ac_config_files="$ac_config_files mk/localdefs.new:mk/localdefs.in" ac_config_files="$ac_config_files python/recoll/setup.py" ac_config_files="$ac_config_files recollinstall" ac_config_files="$ac_config_files sampleconf/recoll.conf" for d in bincimapmime index lib query do rm -f $d/alldeps.stamp cp -f /dev/null $d/alldeps done cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by Recoll $as_me 1.21.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ Recoll config.status 1.21.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "common/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS common/autoconfig.h" ;; "$QTGUI/recoll.pro") CONFIG_FILES="$CONFIG_FILES $QTGUI/recoll.pro" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "common/rclversion.h") CONFIG_FILES="$CONFIG_FILES common/rclversion.h" ;; "lib/mkMake") CONFIG_FILES="$CONFIG_FILES lib/mkMake" ;; "mk/localdefs.new") CONFIG_FILES="$CONFIG_FILES mk/localdefs.new:mk/localdefs.in" ;; "python/recoll/setup.py") CONFIG_FILES="$CONFIG_FILES python/recoll/setup.py" ;; "recollinstall") CONFIG_FILES="$CONFIG_FILES recollinstall" ;; "sampleconf/recoll.conf") CONFIG_FILES="$CONFIG_FILES sampleconf/recoll.conf" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi if cmp -s mk/localdefs mk/localdefs.new ; then rm -f mk/localdefs.new else mv -f mk/localdefs.new mk/localdefs fi recoll-1.21.5/utils/0000755000175000017500000000000012652665251013534 5ustar dockesdockesrecoll-1.21.5/utils/mimeparse.cpp0000644000175000017500000006700412602163572016223 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_MIMEPARSE #include #include #include #include #include #include #include #include #include "mimeparse.h" #include "base64.h" #include "transcode.h" #include "smallut.h" #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ //#define DEBUG_MIMEPARSE #ifdef DEBUG_MIMEPARSE #define DPRINT(X) fprintf X #else #define DPRINT(X) #endif // Parsing a header value. Only content-type and content-disposition // have parameters, but others are compatible with content-type // syntax, only, parameters are not used. So we can parse all like: // // headertype: value [; paramname=paramvalue] ... // // Value and paramvalues can be quoted strings, and there can be // comments too. Note that RFC2047 is explicitly forbidden for // parameter values (RFC2231 must be used), but I have seen it used // anyway (ie: thunderbird 1.0) // // Ref: RFC2045/6/7 (MIME) RFC2183/2231 (content-disposition and encodings) /** Decode a MIME parameter value encoded according to rfc2231 * * Example input withs input charset == "": * [iso-8859-1'french'RE%A0%3A_Smoke_Tests%20bla] * Or (if charset is set) : RE%A0%3A_Smoke_Tests%20bla * * @param in input string, ascii with rfc2231 markup * @param out output string * @param charset if empty: decode string like 'charset'lang'more%20stuff, * else just do the %XX part * @return out output string encoded in utf-8 */ bool rfc2231_decode(const string &in, string &out, string &charset) { string::size_type pos1, pos2=0; if (charset.empty()) { if ((pos1 = in.find("'")) == string::npos) return false; charset = in.substr(0, pos1); // fprintf(stderr, "Charset: [%s]\n", charset.c_str()); pos1++; if ((pos2 = in.find("'", pos1)) == string::npos) return false; // We have no use for lang for now // string lang = in.substr(pos1, pos2-pos1); // fprintf(stderr, "Lang: [%s]\n", lang.c_str()); pos2++; } string raw; qp_decode(in.substr(pos2), raw, '%'); // fprintf(stderr, "raw [%s]\n", raw.c_str()); if (!transcode(raw, out, charset, "UTF-8")) return false; return true; } ///////////////////////////////////////// /// Decoding of MIME fields values and parameters // The lexical token returned by find_next_token class Lexical { public: enum kind {none, token, separator}; kind what; string value; string error; char quote; Lexical() : what(none), quote(0) {} void reset() {what = none; value.erase(); error.erase();quote = 0;} }; // Skip mime comment. This must be called with in[start] == '(' static string::size_type skip_comment(const string &in, string::size_type start, Lexical &lex) { int commentlevel = 0; for (; start < in.size(); start++) { if (in[start] == '\\') { // Skip escaped char. if (start+1 < in.size()) { start++; continue; } else { lex.error.append("\\ at end of string "); return in.size(); } } if (in[start] == '(') commentlevel++; if (in[start] == ')') { if (--commentlevel == 0) break; } } if (start == in.size() && commentlevel != 0) { lex.error.append("Unclosed comment "); return in.size(); } return start; } // Skip initial whitespace and (possibly nested) comments. static string::size_type skip_whitespace_and_comment(const string &in, string::size_type start, Lexical &lex) { while (1) { if ((start = in.find_first_not_of(" \t\r\n", start)) == string::npos) return in.size(); if (in[start] == '(') { if ((start = skip_comment(in, start, lex)) == string::npos) return string::npos; } else { break; } } return start; } /// Find next token in mime header value string. /// @return the next starting position in string, string::npos for error /// @param in the input string /// @param start the starting position /// @param lex the returned token and its description /// @param delims separators we should look for static string::size_type find_next_token(const string &in, string::size_type start, Lexical &lex, string delims = ";=") { char oquot, cquot; start = skip_whitespace_and_comment(in, start, lex); if (start == string::npos || start == in.size()) return in.size(); // Begins with separator ? return it. string::size_type delimi = delims.find_first_of(in[start]); if (delimi != string::npos) { lex.what = Lexical::separator; lex.value = delims[delimi]; return start+1; } // Check for start of quoted string oquot = in[start]; switch (oquot) { case '<': cquot = '>';break; case '"': cquot = '"';break; default: cquot = 0; break; } if (cquot != 0) { // Quoted string parsing string::size_type end; start++; // Skip quote character for (end = start;end < in.size() && in[end] != cquot; end++) { if (in[end] == '\\') { // Skip escaped char. if (end+1 < in.size()) { end++; } else { // backslash at end of string: error lex.error.append("\\ at end of string "); return string::npos; } } } if (end == in.size()) { // Found end of string before closing quote character: error lex.error.append("Unclosed quoted string "); return string::npos; } lex.what = Lexical::token; lex.value = in.substr(start, end-start); lex.quote = oquot; return ++end; } else { string::size_type end = in.find_first_of(delims + "\r\n \t(", start); lex.what = Lexical::token; lex.quote = 0; if (end == string::npos) { end = in.size(); lex.value = in.substr(start); } else { lex.value = in.substr(start, end-start); } return end; } } // Classes for handling rfc2231 value continuations class Chunk { public: Chunk() : decode(false) {} bool decode; string value; }; class Chunks { public: vector chunks; }; void stringtolower(string &out, const string& in) { for (string::size_type i = 0; i < in.size(); i++) out.append(1, char(tolower(in[i]))); } // Parse MIME field value. Should look like: // somevalue ; param1=val1;param2=val2 bool parseMimeHeaderValue(const string& value, MimeHeaderValue& parsed) { parsed.value.erase(); parsed.params.clear(); Lexical lex; string::size_type start = 0; // Get the field value start = find_next_token(value, start, lex); if (start == string::npos || lex.what != Lexical::token) return false; parsed.value = lex.value; map rawparams; // Look for parameters for (;;) { string paramname, paramvalue; lex.reset(); start = find_next_token(value, start, lex); if (start == value.size()) break; if (start == string::npos) { //fprintf(stderr, "Find_next_token error(1)\n"); return false; } if (lex.what == Lexical::separator && lex.value[0] == ';') continue; if (lex.what != Lexical::token) return false; stringtolower(paramname, lex.value); start = find_next_token(value, start, lex); if (start == string::npos || lex.what != Lexical::separator || lex.value[0] != '=') { //fprintf(stderr, "Find_next_token error (2)\n"); return false; } start = find_next_token(value, start, lex); if (start == string::npos || lex.what != Lexical::token) { //fprintf(stderr, "Parameter has no value!"); return false; } paramvalue = lex.value; rawparams[paramname] = paramvalue; //fprintf(stderr, "RAW: name [%s], value [%s]\n", paramname.c_str(), // paramvalue.c_str()); } // fprintf(stderr, "Number of raw params %d\n", rawparams.size()); // RFC2231 handling: // - if a parameter name ends in * it must be decoded // - If a parameter name looks line name*ii[*] it is a // partial value, and must be concatenated with other such. map chunks; for (map::const_iterator it = rawparams.begin(); it != rawparams.end(); it++) { string nm = it->first; // fprintf(stderr, "NM: [%s]\n", nm.c_str()); if (nm.empty()) // ?? continue; Chunk chunk; if (nm[nm.length()-1] == '*') { nm.erase(nm.length() - 1); chunk.decode = true; } else chunk.decode = false; // fprintf(stderr, "NM1: [%s]\n", nm.c_str()); chunk.value = it->second; // Look for another asterisk in nm. If none, assign index 0 string::size_type aster; int idx = 0; if ((aster = nm.rfind("*")) != string::npos) { string num = nm.substr(aster+1); //fprintf(stderr, "NUM: [%s]\n", num.c_str()); nm.erase(aster); idx = atoi(num.c_str()); } Chunks empty; if (chunks.find(nm) == chunks.end()) chunks[nm] = empty; chunks[nm].chunks.resize(idx+1); chunks[nm].chunks[idx] = chunk; //fprintf(stderr, "CHNKS: nm [%s], idx %d, decode %d, value [%s]\n", // nm.c_str(), idx, int(chunk.decode), chunk.value.c_str()); } // For each parameter name, concatenate its chunks and possibly // decode Note that we pass the whole concatenated string to // decoding if the first chunk indicates that decoding is needed, // which is not right because there might be uncoded chunks // according to the rfc. for (map::const_iterator it = chunks.begin(); it != chunks.end(); it++) { if (it->second.chunks.empty()) continue; string nm = it->first; // Create the name entry if (parsed.params.find(nm) == parsed.params.end()) parsed.params[nm].clear(); // Concatenate all chunks and decode the whole if the first one needs // to. Yes, this is not quite right. string value; for (vector::const_iterator vi = it->second.chunks.begin(); vi != it->second.chunks.end(); vi++) { value += vi->value; } if (it->second.chunks[0].decode) { string charset; rfc2231_decode(value, parsed.params[nm], charset); } else { // rfc2047 MUST NOT but IS used by some agents rfc2047_decode(value, parsed.params[nm]); } //fprintf(stderr, "FINAL: nm [%s], value [%s]\n", //nm.c_str(), parsed.params[nm].c_str()); } return true; } // Decode a string encoded with quoted-printable encoding. // we reuse the code for rfc2231 % encoding, even if the eol // processing is not useful in this case bool qp_decode(const string& in, string &out, char esc) { out.reserve(in.length()); string::size_type ii; for (ii = 0; ii < in.length(); ii++) { if (in[ii] == esc) { ii++; // Skip '=' or '%' if(ii >= in.length() - 1) { // Need at least 2 more chars break; } else if (in[ii] == '\r' && in[ii+1] == '\n') { // Soft nl, skip ii++; } else if (in[ii] != '\n' && in[ii] != '\r') { // decode char c = in[ii]; char co; if(c >= 'A' && c <= 'F') { co = char((c - 'A' + 10) * 16); } else if (c >= 'a' && c <= 'f') { co = char((c - 'a' + 10) * 16); } else if (c >= '0' && c <= '9') { co = char((c - '0') * 16); } else { return false; } if(++ii >= in.length()) break; c = in[ii]; if (c >= 'A' && c <= 'F') { co += char(c - 'A' + 10); } else if (c >= 'a' && c <= 'f') { co += char(c - 'a' + 10); } else if (c >= '0' && c <= '9') { co += char(c - '0'); } else { return false; } out += co; } } else { out += in[ii]; } } return true; } // Decode an word encoded as quoted printable or base 64 static bool rfc2047_decodeParsed(const std::string& charset, const std::string& encoding, const std::string& value, std::string &utf8) { DPRINT((stderr, "DecodeParsed: charset [%s] enc [%s] val [%s]\n", charset.c_str(), encoding.c_str(), value.c_str())); utf8.clear(); string decoded; if (!stringlowercmp("b", encoding)) { if (!base64_decode(value, decoded)) return false; DPRINT((stderr, "FromB64: [%s]\n", decoded.c_str())); } else if (!stringlowercmp("q", encoding)) { if (!qp_decode(value, decoded)) return false; // Need to translate _ to ' ' here string temp; for (string::size_type pos = 0; pos < decoded.length(); pos++) if (decoded[pos] == '_') temp += ' '; else temp += decoded[pos]; decoded = temp; DPRINT((stderr, "FromQP: [%s]\n", decoded.c_str())); } else { DPRINT((stderr, "Bad encoding [%s]\n", encoding.c_str())); return false; } if (!transcode(decoded, utf8, charset, "UTF-8")) { DPRINT((stderr, "Transcode failed\n")); return false; } return true; } // Parse a mail header value encoded according to RFC2047. // This is not supposed to be used for MIME parameter values, but it // happens. // Bugs: // - We should turn off decoding while inside quoted strings // typedef enum {rfc2047ready, rfc2047open_eq, rfc2047charset, rfc2047encoding, rfc2047value, rfc2047close_q} Rfc2047States; bool rfc2047_decode(const std::string& in, std::string &out) { DPRINT((stderr, "rfc2047_decode: [%s]\n", in.c_str())); Rfc2047States state = rfc2047ready; string encoding, charset, value, utf8; out.clear(); for (string::size_type ii = 0; ii < in.length(); ii++) { char ch = in[ii]; switch (state) { case rfc2047ready: { DPRINT((stderr, "STATE: ready, ch %c\n", ch)); switch (ch) { // Whitespace: stay ready case ' ': case ' ': value += ch;break; // '=' -> forward to next state case '=': state = rfc2047open_eq; break; DPRINT((stderr, "STATE: open_eq\n")); // Other: go back to sleep default: value += ch; state = rfc2047ready; } } break; case rfc2047open_eq: { DPRINT((stderr, "STATE: open_eq, ch %c\n", ch)); switch (ch) { case '?': { // Transcode current (unencoded part) value: // we sometimes find 8-bit chars in // there. Interpret as Iso8859. if (value.length() > 0) { transcode(value, utf8, "ISO-8859-1", "UTF-8"); out += utf8; value.clear(); } state = rfc2047charset; } break; default: state = rfc2047ready; out += '='; out += ch;break; } } break; case rfc2047charset: { DPRINT((stderr, "STATE: charset, ch %c\n", ch)); switch (ch) { case '?': state = rfc2047encoding; break; default: charset += ch; break; } } break; case rfc2047encoding: { DPRINT((stderr, "STATE: encoding, ch %c\n", ch)); switch (ch) { case '?': state = rfc2047value; break; default: encoding += ch; break; } } break; case rfc2047value: { DPRINT((stderr, "STATE: value, ch %c\n", ch)); switch (ch) { case '?': state = rfc2047close_q; break; default: value += ch;break; } } break; case rfc2047close_q: { DPRINT((stderr, "STATE: close_q, ch %c\n", ch)); switch (ch) { case '=': { DPRINT((stderr, "End of encoded area. Charset %s, Encoding %s\n", charset.c_str(), encoding.c_str())); string utf8; state = rfc2047ready; if (!rfc2047_decodeParsed(charset, encoding, value, utf8)) { return false; } out += utf8; charset.clear(); encoding.clear(); value.clear(); } break; default: state = rfc2047value; value += '?';value += ch;break; } } break; default: // ?? DPRINT((stderr, "STATE: default ?? ch %c\n", ch)); return false; } } if (value.length() > 0) { transcode(value, utf8, "ISO-8859-1", "UTF-8"); out += utf8; value.clear(); } if (state != rfc2047ready) return false; return true; } #define DEBUGDATE 0 #if DEBUGDATE #define DATEDEB(X) fprintf X #else #define DATEDEB(X) #endif // Convert rfc822 date to unix time. A date string normally looks like: // Mon, 3 Jul 2006 09:51:58 +0200 // But there are many close common variations // And also hopeless things like: Fri Nov 3 13:13:33 2006 time_t rfc2822DateToUxTime(const string& dt) { // Strip everything up to first comma if any, we don't need weekday, // then break into tokens vector toks; string::size_type idx; if ((idx = dt.find_first_of(",")) != string::npos) { if (idx == dt.length() - 1) { DATEDEB((stderr, "Bad rfc822 date format (short1): [%s]\n", dt.c_str())); return (time_t)-1; } string date = dt.substr(idx+1); stringToTokens(date, toks, " \t:"); } else { // No comma. Enter strangeland stringToTokens(dt, toks, " \t:"); // Test for date like: Sun Nov 19 06:18:41 2006 // 0 1 2 3 4 5 6 // and change to: 19 Nov 2006 06:18:41 if (toks.size() == 7) { if (toks[0].length() == 3 && toks[0].find_first_of("0123456789") == string::npos) { swap(toks[0], toks[2]); swap(toks[6], toks[2]); toks.pop_back(); } } } #if DEBUGDATE for (list::iterator it = toks.begin(); it != toks.end(); it++) { DATEDEB((stderr, "[%s] ", it->c_str())); } DATEDEB((stderr, "\n")); #endif if (toks.size() < 6) { DATEDEB((stderr, "Bad rfc822 date format (toks cnt): [%s]\n", dt.c_str())); return (time_t)-1; } if (toks.size() == 6) { // Probably no timezone, sometimes happens toks.push_back("+0000"); } struct tm tm; memset(&tm, 0, sizeof(tm)); // Load struct tm with appropriate tokens, possibly converting // when needed vector::iterator it = toks.begin(); // Day of month: no conversion needed tm.tm_mday = atoi(it->c_str()); it++; // Month. Only Jan-Dec are legal. January, February do happen // though. Convert to 0-11 if (*it == "Jan" || *it == "January") tm.tm_mon = 0; else if (*it == "Feb" || *it == "February") tm.tm_mon = 1; else if (*it == "Mar" || *it == "March") tm.tm_mon = 2; else if (*it == "Apr" || *it == "April") tm.tm_mon = 3; else if (*it == "May") tm.tm_mon = 4; else if (*it == "Jun" || *it == "June") tm.tm_mon = 5; else if (*it == "Jul" || *it == "July") tm.tm_mon = 6; else if (*it == "Aug" || *it == "August") tm.tm_mon = 7; else if (*it == "Sep" || *it == "September") tm.tm_mon = 8; else if (*it == "Oct" || *it == "October") tm.tm_mon = 9; else if (*it == "Nov" || *it == "November") tm.tm_mon = 10; else if (*it == "Dec" || *it == "December") tm.tm_mon = 11; else { DATEDEB((stderr, "Bad rfc822 date format (month): [%s]\n", dt.c_str())); return (time_t)-1; } it++; // Year. Struct tm counts from 1900. 2 char years are quite rare // but do happen. I've seen 00 happen so count small values from 2000 tm.tm_year = atoi(it->c_str()); if (it->length() == 2) { if (tm.tm_year < 10) tm.tm_year += 2000; else tm.tm_year += 1900; } if (tm.tm_year > 1900) tm.tm_year -= 1900; it++; // Hour minute second need no adjustments tm.tm_hour = atoi(it->c_str()); it++; tm.tm_min = atoi(it->c_str()); it++; tm.tm_sec = atoi(it->c_str()); it++; // Timezone is supposed to be either +-XYZT or a zone name int zonesecs = 0; if (it->length() < 1) { DATEDEB((stderr, "Bad rfc822 date format (zlen): [%s]\n", dt.c_str())); return (time_t)-1; } if (it->at(0) == '-' || it->at(0) == '+') { // Note that +xy:zt (instead of +xyzt) sometimes happen, we // may want to process it one day if (it->length() < 5) { DATEDEB((stderr, "Bad rfc822 date format (zlen1): [%s]\n", dt.c_str())); goto nozone; } zonesecs = 3600*((it->at(1)-'0') * 10 + it->at(2)-'0')+ (it->at(3)-'0')*10 + it->at(4)-'0'; zonesecs = it->at(0) == '+' ? -1 * zonesecs : zonesecs; } else { int hours; if (*it == "A") hours= 1; else if (*it == "B") hours= 2; else if (*it == "C") hours= 3; else if (*it == "D") hours= 4; else if (*it == "E") hours= 5; else if (*it == "F") hours= 6; else if (*it == "G") hours= 7; else if (*it == "H") hours= 8; else if (*it == "I") hours= 9; else if (*it == "K") hours= 10; else if (*it == "L") hours= 11; else if (*it == "M") hours= 12; else if (*it == "N") hours= -1; else if (*it == "O") hours= -2; else if (*it == "P") hours= -3; else if (*it == "Q") hours= -4; else if (*it == "R") hours= -5; else if (*it == "S") hours= -6; else if (*it == "T") hours= -7; else if (*it == "U") hours= -8; else if (*it == "V") hours= -9; else if (*it == "W") hours= -10; else if (*it == "X") hours= -11; else if (*it == "Y") hours= -12; else if (*it == "Z") hours= 0; else if (*it == "UT") hours= 0; else if (*it == "GMT") hours= 0; else if (*it == "EST") hours= 5; else if (*it == "EDT") hours= 4; else if (*it == "CST") hours= 6; else if (*it == "CDT") hours= 5; else if (*it == "MST") hours= 7; else if (*it == "MDT") hours= 6; else if (*it == "PST") hours= 8; else if (*it == "PDT") hours= 7; // Non standard names // Standard Time (or Irish Summer Time?) is actually +5.5 else if (*it == "CET") hours= -1; else if (*it == "JST") hours= -9; else if (*it == "IST") hours= -5; else if (*it == "WET") hours= 0; else if (*it == "MET") hours= -1; else { DATEDEB((stderr, "Bad rfc822 date format (zname): [%s]\n", dt.c_str())); // Forget tz goto nozone; } zonesecs = 3600 * hours; } DATEDEB((stderr, "Tz: [%s] -> %d\n", it->c_str(), zonesecs)); nozone: // Compute the UTC Unix time value #ifndef sun time_t tim = timegm(&tm); #else // No timegm on Sun. Use mktime, then correct for local timezone time_t tim = mktime(&tm); // altzone and timezone hold the difference in seconds between UTC // and local. They are negative for places east of greenwich // // mktime takes our buffer to be local time, so it adds timezone // to the conversion result (if timezone is < 0 it's currently // earlier in greenwhich). // // We have to substract it back (hey! hopefully! maybe we have to // add it). Who can really know? tim -= timezone; #endif // And add in the correction from the email's Tz tim += zonesecs; DATEDEB((stderr, "Date: %s uxtime %ld \n", ctime(&tim), tim)); return tim; } #else #include #include #include #include #include #include "mimeparse.h" #include "readfile.h" using namespace std; extern bool rfc2231_decode(const string& in, string& out, string& charset); extern time_t rfc2822DateToUxTime(const string& date); static const char *thisprog; static char usage [] = "-p: header value and parameter test\n" "-q: qp decoding\n" "-b: base64\n" "-7: rfc2047\n" "-1: rfc2331\n" "-t: date time\n" " \n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_p 0x2 #define OPT_q 0x4 #define OPT_b 0x8 #define OPT_7 0x10 #define OPT_1 0x20 #define OPT_t 0x40 int main(int argc, const char **argv) { int count = 10; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'p': op_flags |= OPT_p; break; case 'q': op_flags |= OPT_q; break; case 'b': op_flags |= OPT_b; break; case '1': op_flags |= OPT_1; break; case '7': op_flags |= OPT_7; break; case 't': op_flags |= OPT_t; break; default: Usage(); break; } b1: argc--; argv++; } if (argc != 0) Usage(); if (op_flags & OPT_p) { // Mime header value and parameters extraction const char *tr[] = { "text/html;charset = UTF-8 ; otherparam=garb; \n" "QUOTEDPARAM=\"quoted value\"", "text/plain; charset=ASCII\r\n name=\"809D3016_5691DPS_5.2.LIC\"", "application/x-stuff;" "title*0*=us-ascii'en'This%20is%20even%20more%20;" "title*1*=%2A%2A%2Afun%2A%2A%2A%20;" "title*2=\"isn't it!\"" }; for (unsigned int i = 0; i < sizeof(tr) / sizeof(char *); i++) { MimeHeaderValue parsed; if (!parseMimeHeaderValue(tr[i], parsed)) { fprintf(stderr, "PARSE ERROR for [%s]\n", tr[i]); } printf("Field value: [%s]\n", parsed.value.c_str()); map::iterator it; for (it = parsed.params.begin();it != parsed.params.end();it++) { if (it == parsed.params.begin()) printf("Parameters:\n"); printf(" [%s] = [%s]\n", it->first.c_str(), it->second.c_str()); } } } else if (op_flags & OPT_q) { // Quoted printable stuff const char *qp = "=41=68 =e0 boire=\r\n continue 1ere\ndeuxieme\n\r3eme " "agrave is: '=E0' probable skipped decode error: =\n" "Actual decode error =xx this wont show"; string out; if (!qp_decode(string(qp), out)) { fprintf(stderr, "qp_decode returned error\n"); } printf("Decoded: '%s'\n", out.c_str()); } else if (op_flags & OPT_b) { // Base64 //'C'est boire qu'il nous faut viter l'excs.' //'Deuxime ligne' //'Troisime ligne' //'Et la fin (pas de nl). ' const char *b64 = "Qydlc3Qg4CBib2lyZSBxdSdpbCBub3VzIGZhdXQg6XZpdGVyIGwnZXhj6HMuCkRldXhp6G1l\r\n" "IGxpZ25lClRyb2lzaehtZSBsaWduZQpFdCBsYSBmaW4gKHBhcyBkZSBubCkuIA==\r\n"; string out; if (!base64_decode(string(b64), out)) { fprintf(stderr, "base64_decode returned error\n"); exit(1); } printf("Decoded: [%s]\n", out.c_str()); #if 0 string coded, decoded; const char *fname = "/tmp/recoll_decodefail"; if (!file_to_string(fname, coded)) { fprintf(stderr, "Cant read %s\n", fname); exit(1); } if (!base64_decode(coded, decoded)) { fprintf(stderr, "base64_decode returned error\n"); exit(1); } printf("Decoded: [%s]\n", decoded.c_str()); #endif } else if (op_flags & (OPT_7|OPT_1)) { // rfc2047 char line [1024]; string out; bool res; while (fgets(line, 1023, stdin)) { int l = strlen(line); if (l == 0) continue; line[l-1] = 0; fprintf(stderr, "Line: [%s]\n", line); string charset; if (op_flags & OPT_7) { res = rfc2047_decode(line, out); } else { res = rfc2231_decode(line, out, charset); } if (res) fprintf(stderr, "Out: [%s] cs %s\n", out.c_str(), charset.c_str()); else fprintf(stderr, "Decoding failed\n"); } } else if (op_flags & OPT_t) { time_t t; const char *dates[] = { " Wed, 13 Sep 2006 11:40:26 -0700 (PDT)", " Mon, 3 Jul 2006 09:51:58 +0200", " Wed, 13 Sep 2006 08:19:48 GMT-07:00", " Wed, 13 Sep 2006 11:40:26 -0700 (PDT)", " Sat, 23 Dec 89 19:27:12 EST", " 13 Jan 90 08:23:29 GMT"}; for (unsigned int i = 0; i [%s]\n", dates[i], datebuf); } printf("Enter date:\n"); char line [1024]; while (fgets(line, 1023, stdin)) { int l = strlen(line); if (l == 0) continue; line[l-1] = 0; t = rfc2822DateToUxTime(line); struct tm *tm = localtime(&t); char datebuf[100]; strftime(datebuf, 99, " %Y-%m-%d %H:%M:%S %z", tm); printf("[%s] -> [%s]\n", line, datebuf); } } exit(0); } #endif // TEST_MIMEPARSE recoll-1.21.5/utils/wipedir.h0000644000175000017500000000211212602163540015331 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FILEUT_H_INCLUDED_ #define _FILEUT_H_INCLUDED_ /* Copyright (C) 2004 J.F.Dockes */ #include /** * Remove all files inside directory. * @return 0 if ok, count of remaining entries (ie: subdirs), or -1 for error */ int wipedir(const std::string& dirname, bool topalso = 0, bool recurse = 0); #endif /* _FILEUT_H_INCLUDED_ */ recoll-1.21.5/utils/idfile.cpp0000644000175000017500000001224012602163572015465 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_IDFILE #include // for access(2) #include #include #include #include #include #include "idfile.h" #include "debuglog.h" #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ // Bogus code to avoid bogus valgrind mt warnings about the // initialization of treat_mbox_... which I can't even remember the // use of (it's not documented or ever set) static int treat_mbox_as_rfc822; class InitTMAR { public: InitTMAR() { treat_mbox_as_rfc822 = getenv("RECOLL_TREAT_MBOX_AS_RFC822") ? 1 : -1; } }; static InitTMAR initTM; /** * This code is currently ONLY used to identify mbox and mail message files * which are badly handled by standard mime type identifiers * There is a very old (circa 1990) mbox format using blocks of ^A (0x01) chars * to separate messages, that we don't recognize currently */ // Mail headers we compare to: static const char *mailhs[] = {"From: ", "Received: ", "Message-Id: ", "To: ", "Date: ", "Subject: ", "Status: ", "In-Reply-To: "}; static const int mailhsl[] = {6, 10, 12, 4, 6, 9, 8, 13}; static const int nmh = sizeof(mailhs) / sizeof(char *); const int wantnhead = 3; // fn is for message printing static string idFileInternal(istream& input, const char *fn) { bool line1HasFrom = false; bool gotnonempty = false; int lookslikemail = 0; // emacs VM sometimes inserts very long lines with continuations or // not (for folder information). This forces us to look at many // lines and long ones int lnum = 1; for (int loop = 1; loop < 200; loop++, lnum++) { #define LL 2*1024 char cline[LL+1]; cline[LL] = 0; input.getline(cline, LL-1); if (input.fail()) { if (input.bad()) { LOGERR(("idfile: error while reading [%s]\n", fn)); return string(); } // Must be eof ? break; } // gcount includes the \n int ll = input.gcount() - 1; if (ll > 0) gotnonempty = true; LOGDEB2(("idfile: lnum %d ll %d: [%s]\n", lnum, ll, cline)); // Check for a few things that can't be found in a mail file, // (optimization to get a quick negative) // Empty lines if (ll <= 0) { // Accept a few empty lines at the beginning of the file, // otherwise this is the end of headers if (gotnonempty || lnum > 10) { LOGDEB2(("Got empty line\n")); break; } else { // Don't increment the line counter for initial empty lines. lnum--; continue; } } // emacs vm can insert VERY long header lines. if (ll > LL - 20) { LOGDEB2(("idFile: Line too long\n")); return string(); } // Check for mbox 'From ' line if (lnum == 1 && !strncmp("From ", cline, 5)) { if (treat_mbox_as_rfc822 == -1) { line1HasFrom = true; LOGDEB2(("idfile: line 1 has From_\n")); } continue; } // Except for a possible first line with 'From ', lines must // begin with whitespace or have a colon // (hope no one comes up with a longer header name ! if (!isspace(cline[0])) { char *cp = strchr(cline, ':'); if (cp == 0 || (cp - cline) > 70) { LOGDEB2(("idfile: can't be mail header line: [%s]\n", cline)); break; } } // Compare to known headers for (int i = 0; i < nmh; i++) { if (!strncasecmp(mailhs[i], cline, mailhsl[i])) { //fprintf(stderr, "Got [%s]\n", mailhs[i]); lookslikemail++; break; } } if (lookslikemail >= wantnhead) break; } if (line1HasFrom) lookslikemail++; if (lookslikemail >= wantnhead) return line1HasFrom ? string("text/x-mail") : string("message/rfc822"); return string(); } string idFile(const char *fn) { ifstream input; input.open(fn, ios::in); if (!input.is_open()) { LOGERR(("idFile: could not open [%s]\n", fn)); return string(); } return idFileInternal(input, fn); } string idFileMem(const string& data) { stringstream s(data, stringstream::in); return idFileInternal(s, ""); } #else #include #include #include #include #include #include using namespace std; #include "debuglog.h" #include "idfile.h" int main(int argc, char **argv) { if (argc < 2) { cerr << "Usage: idfile filename" << endl; exit(1); } DebugLog::getdbl()->setloglevel(DEBDEB1); DebugLog::setfilename("stderr"); for (int i = 1; i < argc; i++) { string mime = idFile(argv[i]); cout << argv[i] << " : " << mime << endl; } exit(0); } #endif recoll-1.21.5/utils/md5.h0000644000175000017500000000212212602163540014354 0ustar dockesdockes/* $OpenBSD: md5.h,v 1.15 2004/05/03 17:30:14 millert Exp $ */ /* * This code implements the MD5 message-digest algorithm. * The algorithm is due to Ron Rivest. This code was * written by Colin Plumb in 1993, no copyright is claimed. * This code is in the public domain; do with it what you wish. * * Equivalent code is available from RSA Data Security, Inc. * This code has been tested against that, and is equivalent, * except that you don't need to include two pages of legalese * with every copy. */ #ifndef _MD5_H_ #define _MD5_H_ #define MD5_BLOCK_LENGTH 64 #define MD5_DIGEST_LENGTH 16 #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH * 2 + 1) typedef struct MD5Context { u_int32_t state[4]; /* state */ u_int64_t count; /* number of bits, mod 2^64 */ u_int8_t buffer[MD5_BLOCK_LENGTH]; /* input buffer */ } MD5_CTX; void MD5Init(MD5_CTX *); void MD5Update(MD5_CTX *, const u_int8_t *, size_t); void MD5Pad(MD5_CTX *); void MD5Final(u_int8_t [MD5_DIGEST_LENGTH], MD5_CTX *); void MD5Transform(u_int32_t [4], const u_int8_t [MD5_BLOCK_LENGTH]); #endif /* _MD5_H_ */ recoll-1.21.5/utils/execmd.h0000644000175000017500000002376612602163572015162 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _EXECMD_H_INCLUDED_ #define _EXECMD_H_INCLUDED_ #include #include #include #include #include "netcon.h" /** * Callback function object to advise of new data arrival, or just periodic * heartbeat if cnt is 0. * * To interrupt the command, the code using ExecCmd should either * raise an exception inside newData() (and catch it in doexec's caller), or * call ExecCmd::setKill() * */ class ExecCmdAdvise { public: virtual ~ExecCmdAdvise() {} virtual void newData(int cnt) = 0; }; /** * Callback function object to get more input data. Data has to be provided * in the initial input string, set it to empty to signify eof. */ class ExecCmdProvide { public: virtual ~ExecCmdProvide() {} virtual void newData() = 0; }; /** * Execute command possibly taking both input and output (will do * asynchronous io as appropriate for things to work). * * Input to the command can be provided either once in a parameter to doexec * or provided in chunks by setting a callback which will be called to * request new data. In this case, the 'input' parameter to doexec may be * empty (but not null) * * Output from the command is normally returned in a single string, but a * callback can be set to be called whenever new data arrives, in which case * it is permissible to consume the data and erase the string. * * Note that SIGPIPE should be ignored and SIGCLD blocked when calling doexec, * else things might fail randomly. (This is not done inside the class because * of concerns with multithreaded programs). * */ class ExecCmd { public: // Use vfork instead of fork. Our vfork usage is multithread-compatible as // far as I can see, but just in case... static void useVfork(bool on); /** * Add/replace environment variable before executing command. This must * be called before doexec() to have an effect (possibly multiple * times for several variables). * @param envassign an environment assignment string ("name=value") */ void putenv(const std::string &envassign); void putenv(const std::string &name, const std::string& value); /** * Try to set a limit on child process vm size. This will use * setrlimit() and RLIMIT_AS/VMEM if available. Parameter is in * units of 2**10. Must be called before starting the command, default * is inherit from parent. */ void setrlimit_as(int mbytes); /** * Set function objects to call whenever new data is available or on * select timeout / whenever new data is needed to send. Must be called * before doexec() */ void setAdvise(ExecCmdAdvise *adv) {m_advise = adv;} void setProvide(ExecCmdProvide *p) {m_provide = p;} /** * Set select timeout in milliseconds. The default is 1 S. * This is NOT a time after which an error will occur, but the period of * the calls to the cancellation check routine. */ void setTimeout(int mS) {if (mS > 30) m_timeoutMs = mS;} /** * Set destination for stderr data. The default is to let it alone (will * usually go to the terminal or to wherever the desktop messages go). * There is currently no option to put stderr data into a program variable * If the parameter can't be opened for writing, the command's * stderr will be closed. */ void setStderr(const std::string &stderrFile) {m_stderrFile = stderrFile;} /** * Execute command. * * Both input and output can be specified, and asynchronous * io (select-based) is used to prevent blocking. This will not * work if input and output need to be synchronized (ie: Q/A), but * works ok for filtering. * The function is exception-safe. In case an exception occurs in the * advise callback, fds and pids will be cleaned-up properly. * * @param cmd the program to execute. This must be an absolute file name * or exist in the PATH. * @param args the argument vector (NOT including argv[0]). * @param input Input to send TO the command. * @param output Output FROM the command. * @return the exec ouput status (0 if ok), or -1 */ int doexec(const std::string &cmd, const std::vector& args, const std::string *input = 0, std::string *output = 0); /* * The next four methods can be used when a Q/A dialog needs to be * performed with the command */ int startExec(const std::string &cmd, const std::vector& args, bool has_input, bool has_output); int send(const std::string& data); int receive(std::string& data, int cnt = -1); int getline(std::string& data); int wait(); /** Wait with WNOHANG set. @return true if process exited, false else. @param O: status, the wait(2) call's status value */ bool maybereap(int *status); pid_t getChildPid() {return m_pid;} /** * Cancel/kill command. This can be called from another thread or * from the advise callback, which could also raise an exception to * accomplish the same thing */ void setKill() {m_killRequest = true;} /** * Get rid of current process (become ready for start). */ void zapChild() {setKill(); (void)wait();} ExecCmd() : m_advise(0), m_provide(0), m_timeoutMs(1000), m_rlimit_as_mbytes(0) { reset(); } ~ExecCmd(); /** * Utility routine: check if/where a command is found according to the * current PATH (or the specified one * @param cmd command name * @param exe on return, executable path name if found * @param path exec seach path to use instead of getenv(PATH) * @return true if found */ static bool which(const std::string& cmd, std::string& exe, const char* path = 0); /** * Execute command and return stdout output in a string * @param cmd input: command and args * @param out output: what the command printed * @return true if exec status was 0 */ static bool backtick(const std::vector cmd, std::string& out); friend class ExecCmdRsrc; private: static bool o_useVfork; std::vector m_env; ExecCmdAdvise *m_advise; ExecCmdProvide *m_provide; bool m_killRequest; int m_timeoutMs; int m_rlimit_as_mbytes; std::string m_stderrFile; // Pipe for data going to the command int m_pipein[2]; NetconP m_tocmd; // Pipe for data coming out int m_pipeout[2]; NetconP m_fromcmd; // Subprocess id pid_t m_pid; // Saved sigmask sigset_t m_blkcld; // Reset internal state indicators. Any resources should have been // previously freed void reset() { m_killRequest = false; m_pipein[0] = m_pipein[1] = m_pipeout[0] = m_pipeout[1] = -1; m_pid = -1; sigemptyset(&m_blkcld); } // Child process code inline void dochild(const std::string &cmd, const char **argv, const char **envv, bool has_input, bool has_output); /* Copyconst and assignment private and forbidden */ ExecCmd(const ExecCmd &) {} ExecCmd& operator=(const ExecCmd &) {return *this;}; }; /** * Rexecute self process with the same arguments. * * Note that there are some limitations: * - argv[0] has to be valid: an executable name which will be found in * the path when exec is called in the initial working directory. This is * by no means guaranteed. The shells do this, but argv[0] could be an * arbitrary string. * - The initial working directory must be found and remain valid. * - We don't try to do anything with fd 0,1,2. If they were changed by the * program, their initial meaning won't be the same as at the moment of the * initial invocation. * - We don't restore the signals. Signals set to be blocked * or ignored by the program will remain ignored even if this was not their * initial state. * - The environment is also not restored. * - Others system aspects ? * - Other program state: application-dependant. Any external cleanup * (temp files etc.) must be performed by the application. ReExec() * duplicates the atexit() function to make this easier, but the * ReExec().atexit() calls must be done explicitely, this is not automatic * * In short, this is usable in reasonably controlled situations and if there * are no security issues involved, but this does not perform miracles. */ class ReExec { public: ReExec() {} ReExec(int argc, char *argv[]); void init(int argc, char *argv[]); int atexit(void (*function)(void)) { m_atexitfuncs.push(function); return 0; } void reexec(); const std::string& getreason() {return m_reason;} // Insert new args into the initial argv. idx designates the place // before which the new args are inserted (the default of 1 // inserts after argv[0] which would probably be an appropriate // place for additional options) void insertArgs(const std::vector& args, int idx = 1); void removeArg(const std::string& arg); private: std::vector m_argv; std::string m_curdir; int m_cfd; std::string m_reason; std::stack m_atexitfuncs; }; #endif /* _EXECMD_H_INCLUDED_ */ recoll-1.21.5/utils/pathut.cpp0000644000175000017500000005117212602163572015545 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_PATHUT #include "autoconfig.h" #include #include #include #include #include #include #include #include #include #include #include #include // Let's include all files where statfs can be defined and hope for no // conflict... #ifdef HAVE_SYS_MOUNT_H #include #endif #ifdef HAVE_SYS_STATFS_H #include #endif #ifdef HAVE_SYS_STATVFS_H #include #endif #ifdef HAVE_SYS_VFS_H #include #endif #include #include #include #include #include #include using namespace std; #include "pathut.h" #include "transcode.h" #include "wipedir.h" #include "md5ut.h" bool fsocc(const string &path, int *pc, long long *blocks) { #ifdef sun struct statvfs buf; if (statvfs(path.c_str(), &buf) != 0) { return false; } #else struct statfs buf; if (statfs(path.c_str(), &buf) != 0) { return false; } #endif // used blocks double fpc = 0.0; #define FSOCC_USED (double(buf.f_blocks - buf.f_bfree)) #define FSOCC_TOTAVAIL (FSOCC_USED + double(buf.f_bavail)) if (FSOCC_TOTAVAIL > 0) { fpc = 100.0 * FSOCC_USED / FSOCC_TOTAVAIL; } *pc = int(fpc); if (blocks) { *blocks = 0; #define FSOCC_MB (1024*1024) if (buf.f_bsize > 0) { int ratio = buf.f_bsize > FSOCC_MB ? buf.f_bsize / FSOCC_MB : FSOCC_MB / buf.f_bsize; *blocks = buf.f_bsize > FSOCC_MB ? ((long long)buf.f_bavail) * ratio : ((long long)buf.f_bavail) / ratio; } } return true; } const string& tmplocation() { static string stmpdir; if (stmpdir.empty()) { const char *tmpdir = getenv("RECOLL_TMPDIR"); if (tmpdir == 0) tmpdir = getenv("TMPDIR"); if (tmpdir == 0) tmpdir = "/tmp"; stmpdir = string(tmpdir); } return stmpdir; } bool maketmpdir(string& tdir, string& reason) { tdir = path_cat(tmplocation(), "rcltmpXXXXXX"); char *cp = strdup(tdir.c_str()); if (!cp) { reason = "maketmpdir: out of memory (for file name !)\n"; tdir.erase(); return false; } if (! #ifdef HAVE_MKDTEMP mkdtemp(cp) #else mktemp(cp) #endif // HAVE_MKDTEMP ) { free(cp); reason = "maketmpdir: mktemp failed for [" + tdir + "] : " + strerror(errno); tdir.erase(); return false; } tdir = cp; free(cp); #ifndef HAVE_MKDTEMP if (mkdir(tdir.c_str(), 0700) < 0) { reason = string("maketmpdir: mkdir ") + tdir + " failed"; tdir.erase(); return false; } #endif return true; } TempFileInternal::TempFileInternal(const string& suffix) : m_noremove(false) { string filename = path_cat(tmplocation(), "rcltmpfXXXXXX"); char *cp = strdup(filename.c_str()); if (!cp) { m_reason = "Out of memory (for file name !)\n"; return; } // Yes using mkstemp this way is awful (bot the suffix adding and // using mkstemp() just to avoid the warnings) int fd; if ((fd = mkstemp(cp)) < 0) { free(cp); m_reason = "TempFileInternal: mkstemp failed\n"; return; } close(fd); unlink(cp); filename = cp; free(cp); m_filename = filename + suffix; if (close(open(m_filename.c_str(), O_CREAT|O_EXCL, 0600)) != 0) { m_reason = string("Could not open/create") + m_filename; m_filename.erase(); } } TempFileInternal::~TempFileInternal() { if (!m_filename.empty() && !m_noremove) unlink(m_filename.c_str()); } TempDir::TempDir() { if (!maketmpdir(m_dirname, m_reason)) { m_dirname.erase(); return; } } TempDir::~TempDir() { if (!m_dirname.empty()) { (void)wipedir(m_dirname, true, true); m_dirname.erase(); } } bool TempDir::wipe() { if (m_dirname.empty()) { m_reason = "TempDir::wipe: no directory !\n"; return false; } if (wipedir(m_dirname, false, true)) { m_reason = "TempDir::wipe: wipedir failed\n"; return false; } return true; } void path_catslash(string &s) { if (s.empty() || s[s.length() - 1] != '/') s += '/'; } string path_cat(const string &s1, const string &s2) { string res = s1; path_catslash(res); res += s2; return res; } string path_getfather(const string &s) { string father = s; // ?? if (father.empty()) return "./"; if (father[father.length() - 1] == '/') { // Input ends with /. Strip it, handle special case for root if (father.length() == 1) return father; father.erase(father.length()-1); } string::size_type slp = father.rfind('/'); if (slp == string::npos) return "./"; father.erase(slp); path_catslash(father); return father; } string path_getsimple(const string &s) { string simple = s; if (simple.empty()) return simple; string::size_type slp = simple.rfind('/'); if (slp == string::npos) return simple; simple.erase(0, slp+1); return simple; } string path_basename(const string &s, const string &suff) { string simple = path_getsimple(s); string::size_type pos = string::npos; if (suff.length() && simple.length() > suff.length()) { pos = simple.rfind(suff); if (pos != string::npos && pos + suff.length() == simple.length()) return simple.substr(0, pos); } return simple; } string path_suffix(const string& s) { string::size_type dotp = s.rfind('.'); if (dotp == string::npos) return string(); return s.substr(dotp+1); } string path_home() { uid_t uid = getuid(); struct passwd *entry = getpwuid(uid); if (entry == 0) { const char *cp = getenv("HOME"); if (cp) return cp; else return "/"; } string homedir = entry->pw_dir; path_catslash(homedir); return homedir; } string path_tildexpand(const string &s) { if (s.empty() || s[0] != '~') return s; string o = s; if (s.length() == 1) { o.replace(0, 1, path_home()); } else if (s[1] == '/') { o.replace(0, 2, path_home()); } else { string::size_type pos = s.find('/'); int l = (pos == string::npos) ? s.length() - 1 : pos - 1; struct passwd *entry = getpwnam(s.substr(1, l).c_str()); if (entry) o.replace(0, l+1, entry->pw_dir); } return o; } string path_absolute(const string &is) { if (is.length() == 0) return is; string s = is; if (s[0] != '/') { char buf[MAXPATHLEN]; if (!getcwd(buf, MAXPATHLEN)) { return string(); } s = path_cat(string(buf), s); } return s; } #include string path_canon(const string &is, const string* cwd) { if (is.length() == 0) return is; string s = is; if (s[0] != '/') { char buf[MAXPATHLEN]; const char *cwdp = buf; if (cwd) { cwdp = cwd->c_str(); } else { if (!getcwd(buf, MAXPATHLEN)) { return string(); } } s = path_cat(string(cwdp), s); } vector elems; stringToTokens(s, elems, "/"); vector cleaned; for (vector::const_iterator it = elems.begin(); it != elems.end(); it++){ if (*it == "..") { if (!cleaned.empty()) cleaned.pop_back(); } else if (it->empty() || *it == ".") { } else { cleaned.push_back(*it); } } string ret; if (!cleaned.empty()) { for (vector::const_iterator it = cleaned.begin(); it != cleaned.end(); it++) { ret += "/"; ret += *it; } } else { ret = "/"; } return ret; } bool makepath(const string& ipath) { string path = path_canon(ipath); vector elems; stringToTokens(path, elems, "/"); path = "/"; for (vector::const_iterator it = elems.begin(); it != elems.end(); it++){ path += *it; // Not using path_isdir() here, because this cant grok symlinks // If we hit an existing file, no worry, mkdir will just fail. if (access(path.c_str(), 0) != 0) { if (mkdir(path.c_str(), 0700) != 0) { return false; } } path += "/"; } return true; } vector path_dirglob(const string &dir, const string pattern) { vector res; glob_t mglob; string mypat=path_cat(dir, pattern); if (glob(mypat.c_str(), 0, 0, &mglob)) { return res; } for (int i = 0; i < int(mglob.gl_pathc); i++) { res.push_back(mglob.gl_pathv[i]); } globfree(&mglob); return res; } bool path_isdir(const string& path) { struct stat st; if (lstat(path.c_str(), &st) < 0) return false; if (S_ISDIR(st.st_mode)) return true; return false; } // Allowed punctuation in the path part of an URI according to RFC2396 // -_.!~*'():@&=+$, /* 21 ! 22 " 23 # 24 $ 25 % 26 & 27 ' 28 ( 29 ) 2A * 2B + 2C , 2D - 2E . 2F / 30 0 ... 39 9 3A : 3B ; 3C < 3D = 3E > 3F ? 40 @ 41 A ... 5A Z 5B [ 5C \ 5D ] 5E ^ 5F _ 60 ` 61 a ... 7A z 7B { 7C | 7D } 7E ~ 7F DEL */ string url_encode(const string& url, string::size_type offs) { string out = url.substr(0, offs); const char *cp = url.c_str(); for (string::size_type i = offs; i < url.size(); i++) { unsigned int c; const char *h = "0123456789ABCDEF"; c = cp[i]; if (c <= 0x20 || c >= 0x7f || c == '"' || c == '#' || c == '%' || c == ';' || c == '<' || c == '>' || c == '?' || c == '[' || c == '\\' || c == ']' || c == '^' || c == '`' || c == '{' || c == '|' || c == '}' ) { out += '%'; out += h[(c >> 4) & 0xf]; out += h[c & 0xf]; } else { out += char(c); } } return out; } string url_gpath(const string& url) { // Remove the access schema part (or whatever it's called) string::size_type colon = url.find_first_of(":"); if (colon == string::npos || colon == url.size() - 1) return url; // If there are non-alphanum chars before the ':', then there // probably is no scheme. Whatever... for (string::size_type i = 0; i < colon; i++) { if (!isalnum(url.at(i))) return url; } // In addition we canonize the path to remove empty host parts // (for compatibility with older versions of recoll where file:// // was hardcoded, but the local path was used for doc // identification. return path_canon(url.substr(colon+1)); } string url_parentfolder(const string& url) { // In general, the parent is the directory above the full path string parenturl = path_getfather(url_gpath(url)); // But if this is http, make sure to keep the host part. Recoll // only has file or http urls for now. bool isfileurl = urlisfileurl(url); if (!isfileurl && parenturl == "/") { parenturl = url_gpath(url); } return isfileurl ? string("file://") + parenturl : string("http://") + parenturl; } // Convert to file path if url is like file: // Note: this only works with our internal pseudo-urls which are not // encoded/escaped string fileurltolocalpath(string url) { if (url.find("file://") == 0) url = url.substr(7, string::npos); else return string(); // Removing the fragment part. This is exclusively used when // executing a viewer for the recoll manual, and we only strip the // part after # if it is preceded by .html string::size_type pos; if ((pos = url.rfind(".html#")) != string::npos) { url.erase(pos+5); } else if ((pos = url.rfind(".htm#")) != string::npos) { url.erase(pos+4); } return url; } bool urlisfileurl(const string& url) { return url.find("file://") == 0; } // Printable url: this is used to transcode from the system charset // into either utf-8 if transcoding succeeds, or url-encoded bool printableUrl(const string &fcharset, const string &in, string &out) { int ecnt = 0; if (!transcode(in, out, fcharset, "UTF-8", &ecnt) || ecnt) { out = url_encode(in, 7); } return true; } bool readdir(const string& dir, string& reason, set& entries) { struct stat st; int statret; ostringstream msg; DIR *d = 0; statret = lstat(dir.c_str(), &st); if (statret == -1) { msg << "readdir: cant stat " << dir << " errno " << errno; goto out; } if (!S_ISDIR(st.st_mode)) { msg << "readdir: " << dir << " not a directory"; goto out; } if (access(dir.c_str(), R_OK) < 0) { msg << "readdir: no read access to " << dir; goto out; } d = opendir(dir.c_str()); if (d == 0) { msg << "readdir: cant opendir " << dir << ", errno " << errno; goto out; } struct dirent *ent; while ((ent = readdir(d)) != 0) { if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) continue; entries.insert(ent->d_name); } out: if (d) closedir(d); reason = msg.str(); if (reason.empty()) return true; return false; } // We do not want to mess with the pidfile content in the destructor: // the lock might still be in use in a child process. In fact as much // as we'd like to reset the pid inside the file when we're done, it // would be very difficult to do it right and it's probably best left // alone. Pidfile::~Pidfile() { if (m_fd >= 0) ::close(m_fd); m_fd = -1; } pid_t Pidfile::read_pid() { int fd = ::open(m_path.c_str(), O_RDONLY); if (fd == -1) return (pid_t)-1; char buf[16]; int i = read(fd, buf, sizeof(buf) - 1); ::close(fd); if (i <= 0) return (pid_t)-1; buf[i] = '\0'; char *endptr; pid_t pid = strtol(buf, &endptr, 10); if (endptr != &buf[i]) return (pid_t)-1; return pid; } int Pidfile::flopen() { const char *path = m_path.c_str(); if ((m_fd = ::open(path, O_RDWR|O_CREAT, 0644)) == -1) { m_reason = "Open failed: [" + m_path + "]: " + strerror(errno); return -1; } #ifdef sun struct flock lockdata; lockdata.l_start = 0; lockdata.l_len = 0; lockdata.l_type = F_WRLCK; lockdata.l_whence = SEEK_SET; if (fcntl(m_fd, F_SETLK, &lockdata) != 0) { int serrno = errno; (void)::close(m_fd); errno = serrno; m_reason = "fcntl lock failed"; return -1; } #else int operation = LOCK_EX | LOCK_NB; if (flock(m_fd, operation) == -1) { int serrno = errno; (void)::close(m_fd); errno = serrno; m_reason = "flock failed"; return -1; } #endif // ! sun if (ftruncate(m_fd, 0) != 0) { /* can't happen [tm] */ int serrno = errno; (void)::close(m_fd); errno = serrno; m_reason = "ftruncate failed"; return -1; } return 0; } pid_t Pidfile::open() { if (flopen() < 0) { return read_pid(); } return (pid_t)0; } int Pidfile::write_pid() { /* truncate to allow multiple calls */ if (ftruncate(m_fd, 0) == -1) { m_reason = "ftruncate failed"; return -1; } char pidstr[20]; sprintf(pidstr, "%u", int(getpid())); lseek(m_fd, 0, 0); if (::write(m_fd, pidstr, strlen(pidstr)) != (ssize_t)strlen(pidstr)) { m_reason = "write failed"; return -1; } return 0; } int Pidfile::close() { return ::close(m_fd); } int Pidfile::remove() { return unlink(m_path.c_str()); } // Freedesktop standard paths for cache directory (thumbnails are now in there) static const string& xdgcachedir() { static string xdgcache; if (xdgcache.empty()) { const char *cp = getenv("XDG_CACHE_HOME"); if (cp == 0) xdgcache = path_cat(path_home(), ".cache"); else xdgcache = string(cp); } return xdgcache; } static const string& thumbnailsdir() { static string thumbnailsd; if (thumbnailsd.empty()) { thumbnailsd = path_cat(xdgcachedir(), "thumbnails"); if (access(thumbnailsd.c_str(), 0) != 0) { thumbnailsd = path_cat(path_home(), ".thumbnails"); } } return thumbnailsd; } // Place for 256x256 files static const string thmbdirlarge = "large"; // 128x128 static const string thmbdirnormal = "normal"; static void thumbname(const string& url, string& name) { string digest; string l_url = url_encode(url); MD5String(l_url, digest); MD5HexPrint(digest, name); name += ".png"; } bool thumbPathForUrl(const string& url, int size, string& path) { string name; thumbname(url, name); if (size <= 128) { path = path_cat(thumbnailsdir(), thmbdirnormal); path = path_cat(path, name); if (access(path.c_str(), R_OK) == 0) { return true; } } path = path_cat(thumbnailsdir(), thmbdirlarge); path = path_cat(path, name); if (access(path.c_str(), R_OK) == 0) { return true; } // File does not exist. Path corresponds to the large version at this point, // fix it if needed. if (size <= 128) { path = path_cat(path_home(), thmbdirnormal); path = path_cat(path, name); } return false; } // Call funcs that need static init (not initially reentrant) void pathut_init_mt() { path_home(); tmplocation(); thumbnailsdir(); } #else // TEST_PATHUT #include #include using namespace std; #include "pathut.h" void path_to_thumb(const string& _input) { string input(_input); // Make absolute path if needed if (input[0] != '/') input = path_absolute(input); input = string("file://") + path_canon(input); string path; //path = url_encode(input, 7); thumbPathForUrl(input, 7, path); cout << path << endl; } const char *tstvec[] = {"", "/", "/dir", "/dir/", "/dir1/dir2", "/dir1/dir2", "./dir", "./dir1/", "dir", "../dir", "/dir/toto.c", "/dir/.c", "/dir/toto.txt", "toto.txt1" }; const string ttvec[] = {"/dir", "", "~", "~/sub", "~root", "~root/sub", "~nosuch", "~nosuch/sub"}; int nttvec = sizeof(ttvec) / sizeof(string); const char *thisprog; int main(int argc, const char **argv) { thisprog = *argv++;argc--; string s; vector::const_iterator it; #if 0 for (unsigned int i = 0;i < sizeof(tstvec) / sizeof(char *); i++) { cout << tstvec[i] << " Father " << path_getfather(tstvec[i]) << endl; } for (unsigned int i = 0;i < sizeof(tstvec) / sizeof(char *); i++) { cout << tstvec[i] << " Simple " << path_getsimple(tstvec[i]) << endl; } for (unsigned int i = 0;i < sizeof(tstvec) / sizeof(char *); i++) { cout << tstvec[i] << " Basename " << path_basename(tstvec[i], ".txt") << endl; } #endif #if 0 for (int i = 0; i < nttvec; i++) { cout << "tildexp: '" << ttvec[i] << "' -> '" << path_tildexpand(ttvec[i]) << "'" << endl; } #endif #if 0 const string canontst[] = {"/dir1/../../..", "/////", "", "/dir1/../../.././/////dir2///////", "../../", "../../../../../../../../../../" }; unsigned int nttvec = sizeof(canontst) / sizeof(string); for (unsigned int i = 0; i < nttvec; i++) { cout << "canon: '" << canontst[i] << "' -> '" << path_canon(canontst[i]) << "'" << endl; } #endif #if 0 if (argc != 2) { cerr << "Usage: trpathut " << endl; exit(1); } string dir = *argv++;argc--; string pattern = *argv++;argc--; vector matched = path_dirglob(dir, pattern); for (it = matched.begin(); it != matched.end();it++) { cout << *it << endl; } #endif #if 0 if (argc != 1) { fprintf(stderr, "Usage: fsocc: trpathut \n"); exit(1); } string path = *argv++;argc--; int pc; long long blocks; if (!fsocc(path, &pc, &blocks)) { fprintf(stderr, "fsocc failed\n"); return 1; } printf("pc %d, megabytes %ld\n", pc, blocks); #endif #if 0 Pidfile pidfile("/tmp/pathutpidfile"); pid_t pid; if ((pid = pidfile.open()) != 0) { cerr << "open failed. reason: " << pidfile.getreason() << " return " << pid << endl; exit(1); } pidfile.write_pid(); sleep(10); pidfile.close(); pidfile.remove(); #endif #if 1 if (argc > 1) { cerr << "Usage: thumbpath " << endl; exit(1); } string input; if (argc == 1) { input = *argv++; if (input.empty()) { cerr << "Usage: thumbpath " << endl; exit(1); } path_to_thumb(input); } else { while (getline(cin, input)) path_to_thumb(input); } exit(0); #endif #if 0 if (argc != 1) { cerr << "Usage: trpathut " << endl; exit(1); } string fn = *argv++;argc--; string ext = path_suffix(fn); cout << "Suffix: [" << ext << "]" << endl; return 0; #endif } #endif // TEST_PATHUT recoll-1.21.5/utils/idfile.h0000644000175000017500000000226012602163540015126 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _IDFILE_H_INCLUDED_ #define _IDFILE_H_INCLUDED_ #include // Look at data inside file or string, and return mime type or empty string. // // The system's file utility does a bad job on mail folders. idFile // only looks for mail file types for now, but this may change extern std::string idFile(const char *fn); extern std::string idFileMem(const std::string& data); #endif /* _IDFILE_H_INCLUDED_ */ recoll-1.21.5/utils/ecrontab.h0000644000175000017500000000550312602163540015472 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _ECRONTAB_H_INCLUDED_ #define _ECRONTAB_H_INCLUDED_ /** Utility function to manage lines inside a user crontab * * Lines managed by this routine are marked with a hopefuly unique marker * and discriminated by a selector, both environment variable settings. * Example: * 30 8 * * * RCLCRONTAB_RCLINDEX= RECOLL_CONFDIR=/path/to/dir recollindex ... * RCLCRONTAB_RCLINDEX is the line marker, and the RECOLL_CONFDIR value * allows selecting the affected line. * * This approach allows leaving alone lines which do have a * RECOLL_CONFDIR value but not managed by us. The marker and selector * values are chosen by the caller, which should apply some thought to * chosing sane values. */ #include #include using std::string; using std::vector; /** Add, replace or delete a command inside a crontab file * * @param marker selects lines managed by this module and should take the form * of a (possibly empty) environment variable assignement. * @param id selects the appropriate line to affect and will usually be an * actual variable assignment (see above) * @param sched is a standard cron schedule spec (ie: 30 8 * * *) * @param cmd is the command to execute (the last part of the line). * Set it to an empty string to delete the line from the crontab * @param reason error message * * "marker" and "id" should look like reasonable env variable assignements. * Only ascii capital letters, numbers and _ before the '=' */ bool editCrontab(const string& marker, const string& id, const string& sched, const string& cmd, string& reason ); /** * check crontab for unmanaged lines * @param marker same as above, typically RCLCRONTAB_RCLINDEX= * @param data string to look for on lines NOT marked, typically "recollindex" * @return true if unmanaged lines exist, false else. */ bool checkCrontabUnmanaged(const string& marker, const string& data); /** Retrieve the scheduling for a crontab entry */ bool getCrontabSched(const string& marker, const string& id, vector& sched); #endif /* _ECRONTAB_H_INCLUDED_ */ recoll-1.21.5/utils/fstreewalk.h0000644000175000017500000001111212602163540016035 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FSTREEWALK_H_INCLUDED_ #define _FSTREEWALK_H_INCLUDED_ #include #include #ifndef NO_NAMESPACES using std::string; using std::vector; #endif class FsTreeWalkerCB; struct stat; /** * Class implementing a unix directory recursive walk. * * A user-defined function object is called for every file or * directory. Patterns to be ignored can be set before starting the * walk. Options control whether we follow symlinks and whether we recurse * on subdirectories. */ class FsTreeWalker { public: // Global option to use FNM_PATHNAME when matching paths (for // skippedPaths). // We initially used FNM_PATHNAME, and we can't change it now // (because of all the config files around). So add global option // to not use the flag, which can be set from rclconfig by adding // a value to the config file (skippedPathsNoFnmPathname) static bool o_useFnmPathname; static void setNoFnmPathname() { o_useFnmPathname = false; } // Flags for call to processone(). FtwDirEnter is used when // entering a directory. FtwDirReturn is used when returning to it // after processing a subdirectory. enum CbFlag {FtwRegular, FtwDirEnter, FtwDirReturn}; enum Status {FtwOk=0, FtwError=1, FtwStop=2, FtwStatAll = FtwError|FtwStop}; enum Options {FtwOptNone = 0, FtwNoRecurse = 1, FtwFollow = 2, FtwNoCanon = 4, FtwSkipDotFiles = 8, // Tree walking options. Natural is close to depth first: process // directory entries as we see them, recursing into subdirectories at // once // Breadth means we process all files and dirs at a given directory level // before going deeper. // // FilesThenDirs is close to Natural, except that we process all files in a // given directory before going deeper: allows keeping only a single // directory open // We don't do pure depth first (process subdirs before files), this does // not appear to make any sense. FtwTravNatural = 0x10000, FtwTravBreadth = 0x20000, FtwTravFilesThenDirs = 0x40000, FtwTravBreadthThenDepth = 0x80000 }; static const int FtwTravMask; FsTreeWalker(int opts = FtwTravNatural); ~FsTreeWalker(); void setOpts(int opts); int getOpts(); void setDepthSwitch(int); void setMaxDepth(int); /** * Begin file system walk. * @param dir is not checked against the ignored patterns (this is * a feature and must not change. * @param cb the function object that will be called back for every * file-system object (called both at entry and exit for directories). */ Status walk(const string &dir, FsTreeWalkerCB& cb); /** Get explanation for error */ string getReason(); int getErrCnt(); /** * Add a pattern (file or dir) to be ignored (ie: #* , *~) */ bool addSkippedName(const string &pattern); /** Set the ignored patterns set */ bool setSkippedNames(const vector &patterns); /** Same for skipped paths: this are paths, not names, under which we do not descend (ie: /home/me/.recoll) */ bool addSkippedPath(const string &path); /** Set the ignored paths list */ bool setSkippedPaths(const vector &patterns); /** Test if path/name should be skipped. This can be used independantly of * an actual tree walk */ bool inSkippedPaths(const string& path, bool ckparents = false); bool inSkippedNames(const string& name); private: Status iwalk(const string &dir, struct stat *stp, FsTreeWalkerCB& cb); class Internal; Internal *data; }; class FsTreeWalkerCB { public: virtual ~FsTreeWalkerCB() {} virtual FsTreeWalker::Status processone(const string &, const struct stat *, FsTreeWalker::CbFlag) = 0; }; #endif /* _FSTREEWALK_H_INCLUDED_ */ recoll-1.21.5/utils/debuglog.cpp0000644000175000017500000002365612602163572016036 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_DEBUGLOG #define __USE_GNU #include #include #include #include #include #ifdef INCLUDE_NEW_H #include #endif #include #include using std::set; using std::string; #include "debuglog.h" #include "pathut.h" #include "smallut.h" #include "ptmutex.h" #ifndef freeZ #define freeZ(X) {if (X) {free(X);X=0;}} #endif #ifndef NO_NAMESPACES using namespace std; namespace DebugLog { #endif // NO_NAMESPACES bool DebugLog::isspecialname(const char *logname) { return !strcmp(logname, "stdout") || !strcmp(logname, "stderr"); } class DebugLogWriter { public: virtual ~DebugLogWriter() {} virtual int put(const char *s) = 0; }; class DLFWImpl { char *filename; FILE *fp; int truncate; public: // Open output file if needed, return 0 if ok void maybeopenfp() { if (fp) return; if (filename == 0) return; if (!strcmp(filename, "stdout")) { fp = stdout; } else if (!strcmp(filename, "stderr")) { fp = stderr; } else { fp = fopen(filename, (truncate) ? "w" : "a"); if (fp) { setvbuf(fp, 0, _IOLBF, 0); #ifdef O_APPEND { int flgs = 0; fcntl(fileno(fp), F_GETFL, &flgs); fcntl(fileno(fp), F_SETFL, flgs|O_APPEND); } #endif } } return; } void maybeclosefp() { #ifdef DEBUGDEBUG fprintf(stderr, "DebugLogImpl::maybeclosefp: filename %p, fp %p\n", filename, fp); #endif // Close current file if open, and not stdout/stderr if (fp && (filename == 0 || (strcmp(filename, "stdout") && strcmp(filename, "stderr")))) { fclose(fp); } fp = 0; freeZ(filename); } public: DLFWImpl() : filename(0), fp(0), truncate(1) { setfilename("stderr", 0); } ~DLFWImpl() { maybeclosefp(); } int setfilename(const char *fn, int trnc) { maybeclosefp(); filename = strdup(fn); truncate = trnc; maybeopenfp(); return 0; } const char *getfilename() { return filename; } int put(const char *s) { maybeopenfp(); if (fp) return fputs(s, fp); return -1; } }; class DebugLogFileWriter : public DebugLogWriter { DLFWImpl *impl; PTMutexInit loglock; public: DebugLogFileWriter() { impl = new DLFWImpl; } virtual ~DebugLogFileWriter() { delete impl; } virtual int setfilename(const char *fn, int trnc) { PTMutexLocker lock(loglock); return impl ? impl->setfilename(fn, trnc) : -1; } virtual const char *getfilename() { PTMutexLocker lock(loglock); return impl ? impl->getfilename() : 0; } virtual int reopen() { PTMutexLocker lock(loglock); if (!impl) return -1; string fn = impl->getfilename(); return impl->setfilename(fn.c_str(), 1); } virtual int put(const char *s) { PTMutexLocker lock(loglock); return impl ? impl->put(s) : -1; }; }; static set yesfiles; static void initfiles() { const char *cp = getenv("DEBUGLOG_FILES"); if (!cp) return; vector files; stringToTokens(cp, files, ","); yesfiles.insert(files.begin(), files.end()); } static bool fileInFiles(const string& file) { string sf = path_getsimple(file); if (yesfiles.find(sf) != yesfiles.end()) { //fprintf(stderr, "Debug ON: %s \n", file.c_str()); return true; } //fprintf(stderr, "Debug OFF: %s \n", file.c_str()); return false; } #ifdef _WINDOWS #include static void datestring(char *d, int sz) { SYSTEMTIME buf; GetLocalTime(&buf); int year = buf.wYear % 100; snprintf(d, sz, "%02d%02d%02d%02d%02d%02d", year, int(buf.wMonth), int(buf.wDay), int(buf.wHour), int(buf.wMinute), int(buf.wSecond)); } #define vsnprintf _vsnprintf #else // !WINDOWS -> #include static void datestring(char *d, int sz) { struct tm *tmp; time_t tim = time((time_t*)0); tmp = localtime(&tim); int year = tmp->tm_year % 100; snprintf(d, sz, "%02d%02d%02d%02d%02d%02d", year, tmp->tm_mon+1, tmp->tm_mday, tmp->tm_hour, tmp->tm_min, tmp->tm_sec); } #endif // !WINDOWS void DebugLog::prolog(int lev, const char *f, int line) { if (!writer) return; if (!yesfiles.empty() && !fileInFiles(f)) { fileyes = false; return; } else { fileyes = true; } if (dodate) { char dts[100]; datestring(dts, 100); writer->put(dts); } char buf[100]; sprintf(buf, ":%d:", lev); writer->put(buf); #if DEBUGLOG_SHOW_PID sprintf(buf, "%d:", getpid()); writer->put(buf); #endif #if DEBUGLOG_SHOW_THREAD sprintf(buf, "%lx:", (unsigned long)pthread_self()); writer->put(buf); #endif writer->put(f); sprintf(buf, ":%d:", line); writer->put(buf); } void DebugLog::log(const char *s ...) { if (!writer || !fileyes) return; va_list ap; va_start(ap,s); #ifdef HAVE_VASPRINTF_nono // not sure vasprintf is really such a great idea char *buf; vasprintf(&buf, s, ap); if (buf) { #else char buf[4096]; // It's possible that they also wouldn't have vsnprintf but what then ? vsnprintf(buf, 4096, s, ap); { #endif writer->put(buf); } #ifdef HAVE_VASPRINTF_nono if (buf) free(buf); #endif } void DebugLog::setloglevel(int lev) { debuglevel = lev; while (!levels.empty()) levels.pop(); pushlevel(lev); } void DebugLog::pushlevel(int lev) { debuglevel = lev; levels.push(lev); } void DebugLog::poplevel() { if (levels.empty()) debuglevel = 0; if (levels.size() > 1) levels.pop(); debuglevel = levels.top(); } //////////////////////////////////////////////////////////// // Global functions ////////////////////////////////////// static DebugLogFileWriter lwriter; static DebugLogFileWriter *theWriter = &lwriter; const char *getfilename() { return theWriter ? theWriter->getfilename() : 0; } int setfilename(const char *fname, int trnc) { return theWriter ? theWriter->setfilename(fname, trnc) : -1; } int reopen() { return theWriter ? theWriter->reopen() : -1; } #if DEBUGLOG_USE_THREADS #include static pthread_key_t dbl_key; static pthread_once_t key_once = PTHREAD_ONCE_INIT; static void thrdatadel(void *data) { // fprintf(stderr, "DebugLog:: thrdatadel: %p\n", data); DebugLog *dbl = (DebugLog *)data; delete dbl; pthread_setspecific(dbl_key, 0); } static void once_routine(void) { int status; status = pthread_key_create(&dbl_key, thrdatadel); if (status != 0) { fprintf(stderr, "debuglog: cant initialize pthread " "thread private storage key\n"); abort(); } } DebugLog *getdbl() { int status = pthread_once(&key_once, once_routine); if (status != 0) { fprintf(stderr, "debuglog: cant initialize pthread " "thread private storage key (pthread_once)\n"); abort(); } DebugLog *dbl; if (!(dbl = (DebugLog *)pthread_getspecific(dbl_key))) { if ((dbl = new DebugLog) == 0) { fprintf(stderr, "debuglog: new DebugLog returned 0! "); abort(); } dbl->setwriter(theWriter); initfiles(); status = pthread_setspecific(dbl_key, dbl); if (status) { fprintf(stderr, "debuglog: cant initialize pthread " "thread private storage key (pthread_setspecific)\n"); abort(); } } return dbl; } #else // No threads -> static DebugLog *dbl; DebugLog *getdbl() { if (!dbl) { dbl = new DebugLog; dbl->setwriter(theWriter); initfiles(); } return dbl; } #endif #ifndef NO_NAMESPACES } #endif // NO_NAMESPACES ////////////////////////////////////////// TEST DRIVER ////////////////// #else /* TEST_DEBUGLOG */ #include #include #include #include #include "debuglog.h" #if DEBUGLOG_USE_THREADS //#define TEST_THREADS #endif #ifdef TEST_THREADS #include #endif const int iloop = 5; void *thread_test(void *data) { const char *s = (const char *)data; int lev = atoi(s); DebugLog::getdbl()->setloglevel(DEBDEB); for (int i = 1; i < iloop;i++) { switch (lev) { case 1: LOGFATAL(("Thread: %s count: %d\n", s, i));break; case 2: LOGERR(("Thread: %s count: %d\n", s, i));break; default: case 3: LOGINFO(("Thread: %s count: %d\n", s, i));break; } sleep(1); } return 0; } int main(int argc, char **argv) { #ifdef TEST_THREADS pthread_t t1, t2, t3; char name1[20]; strcpy(name1, "1"); pthread_create(&t1, 0, thread_test, name1); char name2[20]; strcpy(name2, "2"); pthread_create(&t2, 0, thread_test, name2); char name3[20]; strcpy(name3, "3"); pthread_create(&t3, 0, thread_test, name3); DebugLog::getdbl()->setloglevel(DEBDEB); for (int i = 1; i < iloop;i++) { LOGINFO(("LOGGING FROM MAIN\n")); sleep(1); } sleep(2); exit(0); #else LOGFATAL(("FATAL\n","Val")); DebugLog::getdbl()->logdate(1); LOGERR(("ERR\n","Val")); LOGINFO(("INFO\n","Val")); LOGDEB0(("DEBUG %s\n","valeur")); int lev; printf("Testing push. Initial level: %d\n", DebugLog::getdbl()->getlevel()); for (lev = 0; lev < 4;lev++) { DebugLog::getdbl()->pushlevel(lev); printf("Lev now %d\n", DebugLog::getdbl()->getlevel()); } printf("Testing pop\n"); for (lev = 0; lev < 7;lev++) { DebugLog::getdbl()->poplevel(); printf("Lev now %d\n", DebugLog::getdbl()->getlevel()); } #endif } #endif /* TEST_DEBUGLOG */ recoll-1.21.5/utils/cpuconf.h0000644000175000017500000000224612602163540015333 0ustar dockesdockes/* Copyright (C) 2013 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CPUCONF_H_INCLUDED_ #define _CPUCONF_H_INCLUDED_ /** Guess how many CPUs there are on this machine, to help with configuring threads */ struct CpuConf { CpuConf() : ncpus(1) {} // Virtual ones, including hyperthreading, we only care about this for now int ncpus; // int ncores; // int nsockets; }; extern bool getCpuConf(CpuConf& conf); #endif /* _CPUCONF_H_INCLUDED_ */ recoll-1.21.5/utils/execmd.cpp0000644000175000017500000007343312602163572015511 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_EXECMD #ifdef RECOLL_DATADIR #include "autoconfig.h" #else #include "config.h" #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_SPAWN_H #ifndef __USE_GNU #define __USE_GNU #define undef__USE_GNU #endif #include #ifdef undef__USE_GNU #undef __USE_GNU #endif #endif #include "execmd.h" #include "netcon.h" #include "closefrom.h" using namespace std; extern char **environ; bool ExecCmd::o_useVfork = false; #ifdef RECOLL_DATADIR #include "debuglog.h" #include "smallut.h" #else // If compiling outside of recoll, make the file as standalone as reasonable. #define LOGFATAL(X) #define LOGERR(X) #define LOGINFO(X) #define LOGDEB(X) #define LOGDEB0(X) #define LOGDEB1(X) #define LOGDEB2(X) #define LOGDEB3(X) #define LOGDEB4(X) #ifndef MIN #define MIN(A,B) ((A) < (B) ? (A) : (B)) #endif static void stringToTokens(const string &s, vector &tokens, const string &delims = " \t", bool skipinit=true); static void stringToTokens(const string& str, vector& tokens, const string& delims, bool skipinit) { string::size_type startPos = 0, pos; // Skip initial delims, return empty if this eats all. if (skipinit && (startPos = str.find_first_not_of(delims, 0)) == string::npos) { return; } while (startPos < str.size()) { // Find next delimiter or end of string (end of token) pos = str.find_first_of(delims, startPos); // Add token to the vector and adjust start if (pos == string::npos) { tokens.push_back(str.substr(startPos)); break; } else if (pos == startPos) { // Dont' push empty tokens after first if (tokens.empty()) tokens.push_back(string()); startPos = ++pos; } else { tokens.push_back(str.substr(startPos, pos - startPos)); startPos = ++pos; } } } #endif // RECOLL_DATADIR /* From FreeBSD's which command */ static bool exec_is_there(const char *candidate) { struct stat fin; /* XXX work around access(2) false positives for superuser */ if (access(candidate, X_OK) == 0 && stat(candidate, &fin) == 0 && S_ISREG(fin.st_mode) && (getuid() != 0 || (fin.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) != 0)) { return true; } return false; } bool ExecCmd::which(const string& cmd, string& exepath, const char* path) { if (cmd.empty()) return false; if (cmd[0] == '/') { if (exec_is_there(cmd.c_str())) { exepath = cmd; return true; } else { return false; } } const char *pp; if (path) { pp = path; } else { pp = getenv("PATH"); } if (pp == 0) return false; vector pels; stringToTokens(pp, pels, ":"); for (vector::iterator it = pels.begin(); it != pels.end(); it++) { if (it->empty()) *it = "."; string candidate = (it->empty() ? string(".") : *it) + "/" + cmd; if (exec_is_there(candidate.c_str())) { exepath = candidate; return true; } } return false; } void ExecCmd::useVfork(bool on) { // Just in case: there are competent people who believe that the // dynamic linker can sometimes deadlock if execve() is resolved // inside the vfork/exec window. Make sure it's done now. If "/" is // an executable file, we have a problem. const char *argv[] = {"/", 0}; execve("/", (char *const *)argv, environ); o_useVfork = on; } void ExecCmd::putenv(const string &ea) { m_env.push_back(ea); } void ExecCmd::putenv(const string &name, const string& value) { string ea = name + "=" + value; putenv(ea); } static void msleep(int millis) { struct timespec spec; spec.tv_sec = millis / 1000; spec.tv_nsec = (millis % 1000) * 1000000; nanosleep(&spec, 0); } /** A resource manager to ensure that execcmd cleans up if an exception is * raised in the callback, or at different places on errors occurring * during method executions */ class ExecCmdRsrc { public: ExecCmdRsrc(ExecCmd *parent) : m_parent(parent), m_active(true) {} void inactivate() {m_active = false;} ~ExecCmdRsrc() { if (!m_active || !m_parent) return; LOGDEB1(("~ExecCmdRsrc: working. mypid: %d\n", (int)getpid())); // Better to close the descs first in case the child is waiting in read if (m_parent->m_pipein[0] >= 0) close(m_parent->m_pipein[0]); if (m_parent->m_pipein[1] >= 0) close(m_parent->m_pipein[1]); if (m_parent->m_pipeout[0] >= 0) close(m_parent->m_pipeout[0]); if (m_parent->m_pipeout[1] >= 0) close(m_parent->m_pipeout[1]); // It's apparently possible for m_pid to be > 0 and getpgid to fail. In // this case, we have to conclude that the child process does // not exist. Not too sure what causes this, but the previous code // definitely tried to call killpg(-1,) from time to time. pid_t grp; if (m_parent->m_pid > 0 && (grp = getpgid(m_parent->m_pid)) > 0) { LOGDEB(("ExecCmd: killpg(%d, SIGTERM)\n", grp)); int ret = killpg(grp, SIGTERM); if (ret == 0) { for (int i = 0; i < 3; i++) { msleep(i == 0 ? 5 : (i == 1 ? 100 : 2000)); int status; (void)waitpid(m_parent->m_pid, &status, WNOHANG); if (kill(m_parent->m_pid, 0) != 0) break; if (i == 2) { LOGDEB(("ExecCmd: killpg(%d, SIGKILL)\n", grp)); killpg(grp, SIGKILL); (void)waitpid(m_parent->m_pid, &status, WNOHANG); } } } else { LOGERR(("ExecCmd: error killing process group %d: %d\n", grp, errno)); } } m_parent->m_tocmd.reset(); m_parent->m_fromcmd.reset(); pthread_sigmask(SIG_UNBLOCK, &m_parent->m_blkcld, 0); m_parent->reset(); } private: ExecCmd *m_parent; bool m_active; }; ExecCmd::~ExecCmd() { ExecCmdRsrc(this); } // In child process. Set up pipes and exec command. // This must not return. _exit() on error. // *** This can be called after a vfork, so no modification of the // process memory at all is allowed *** // The LOGXX calls should not be there, but they occur only after "impossible" // errors, which we would most definitely want to have a hint about. // // Note that any of the LOGXX calls could block on a mutex set in the // father process, so that only absolutely exceptional conditions, // should be logged, for debugging and post-mortem purposes // If one of the calls block, the problem manifests itself by 20mn // (filter timeout) of looping on "ExecCmd::doexec: selectloop // returned 1', because the father is waiting on the read descriptor inline void ExecCmd::dochild(const string &cmd, const char **argv, const char **envv, bool has_input, bool has_output) { // Start our own process group if (setpgid(0, getpid())) { LOGINFO(("ExecCmd::DOCHILD: setpgid(0, %d) failed: errno %d\n", getpid(), errno)); } // Restore SIGTERM to default. Really, signal handling should be // specified when creating the execmd, there might be other // signals to reset. Resetting SIGTERM helps Recoll get rid of its // filter children for now though. To be fixed one day... // Note that resetting to SIG_DFL is a portable use of // signal(). No need for sigaction() here. // There is supposedely a risk of problems if another thread was // calling a signal-affecting function when vfork was called. This // seems acceptable though as no self-respecting thread is going // to mess with the global process signal disposition. if (signal(SIGTERM, SIG_DFL) == SIG_ERR) { //LOGERR(("ExecCmd::DOCHILD: signal() failed, errno %d\n", errno)); } sigset_t sset; sigfillset(&sset); pthread_sigmask(SIG_UNBLOCK, &sset, 0); sigprocmask(SIG_UNBLOCK, &sset, 0); #ifdef HAVE_SETRLIMIT #if defined RLIMIT_AS || defined RLIMIT_VMEM || defined RLIMIT_DATA if (m_rlimit_as_mbytes > 2000 && sizeof(rlim_t) < 8) { // Impossible limit, don't use it m_rlimit_as_mbytes = 0; } if (m_rlimit_as_mbytes > 0) { struct rlimit ram_limit = { static_cast(m_rlimit_as_mbytes * 1024 * 1024), RLIM_INFINITY }; int resource; // RLIMIT_AS and RLIMIT_VMEM are usually synonyms when VMEM is // defined. RLIMIT_AS is Posix. Both don't really do what we // want, because they count e.g. shared lib mappings, which we // don't really care about. // RLIMIT_DATA only limits the data segment. Modern mallocs // use mmap and will not be bound. (Otoh if we only have this, // we're probably not modern). // So we're unsatisfied either way. #ifdef RLIMIT_AS resource = RLIMIT_AS; #elif defined RLIMIT_VMEM resource = RLIMIT_VMEM; #else resource = RLIMIT_DATA; #endif setrlimit(resource, &ram_limit); } #endif #endif // have_setrlimit if (has_input) { close(m_pipein[1]); if (m_pipein[0] != 0) { dup2(m_pipein[0], 0); close(m_pipein[0]); } } if (has_output) { close(m_pipeout[0]); if (m_pipeout[1] != 1) { if (dup2(m_pipeout[1], 1) < 0) { LOGERR(("ExecCmd::DOCHILD: dup2() failed. errno %d\n", errno)); } if (close(m_pipeout[1]) < 0) { LOGERR(("ExecCmd::DOCHILD: close() failed. errno %d\n", errno)); } } } // Do we need to redirect stderr ? if (!m_stderrFile.empty()) { int fd = open(m_stderrFile.c_str(), O_WRONLY|O_CREAT #ifdef O_APPEND |O_APPEND #endif , 0600); if (fd < 0) { close(2); } else { if (fd != 2) { dup2(fd, 2); } lseek(2, 0, 2); } } // Close all descriptors except 0,1,2 libclf_closefrom(3); execve(cmd.c_str(), (char *const*)argv, (char *const*)envv); // Hu ho. This should never have happened as we checked the // existence of the executable before calling dochild... Until we // did this check, this was the chief cause of LOG mutex deadlock LOGERR(("ExecCmd::DOCHILD: execve(%s) failed. errno %d\n", cmd.c_str(), errno)); _exit(127); } void ExecCmd::setrlimit_as(int mbytes) { m_rlimit_as_mbytes = mbytes; } int ExecCmd::startExec(const string &cmd, const vector& args, bool has_input, bool has_output) { { // Debug and logging string command = cmd + " "; for (vector::const_iterator it = args.begin(); it != args.end(); it++) { command += "{" + *it + "} "; } LOGDEB(("ExecCmd::startExec: (%d|%d) %s\n", has_input, has_output, command.c_str())); } // The resource manager ensures resources are freed if we return early ExecCmdRsrc e(this); if (has_input && pipe(m_pipein) < 0) { LOGERR(("ExecCmd::startExec: pipe(2) failed. errno %d\n", errno)); return -1; } if (has_output && pipe(m_pipeout) < 0) { LOGERR(("ExecCmd::startExec: pipe(2) failed. errno %d\n", errno)); return -1; } //////////// vfork setup section // We do here things that we could/should do after a fork(), but // not a vfork(). Does no harm to do it here in both cases, except // that it needs cleanup (as compared to doing it just before // exec()). // Allocate arg vector (2 more for arg0 + final 0) typedef const char *Ccharp; Ccharp *argv; argv = (Ccharp *)malloc((args.size()+2) * sizeof(char *)); if (argv == 0) { LOGERR(("ExecCmd::doexec: malloc() failed. errno %d\n", errno)); return -1; } // Fill up argv argv[0] = cmd.c_str(); int i = 1; vector::const_iterator it; for (it = args.begin(); it != args.end(); it++) { argv[i++] = it->c_str(); } argv[i] = 0; Ccharp *envv; int envsize; for (envsize = 0; ; envsize++) if (environ[envsize] == 0) break; envv = (Ccharp *)malloc((envsize + m_env.size() + 2) * sizeof(char *)); if (envv == 0) { LOGERR(("ExecCmd::doexec: malloc() failed. errno %d\n", errno)); free(argv); return -1; } int eidx; for (eidx = 0; eidx < envsize; eidx++) envv[eidx] = environ[eidx]; for (vector::const_iterator it = m_env.begin(); it != m_env.end(); it++) { envv[eidx++] = it->c_str(); } envv[eidx] = 0; // As we are going to use execve, not execvp, do the PATH thing. string exe; if (!which(cmd, exe)) { LOGERR(("ExecCmd::startExec: %s not found\n", cmd.c_str())); free(argv); free(envv); return -1; } //////////////////////////////// End vfork child prepare section. #if HAVE_POSIX_SPAWN && USE_POSIX_SPAWN // Note that posix_spawn provides no way to setrlimit() the child. { posix_spawnattr_t attrs; posix_spawnattr_init (&attrs); short flags; posix_spawnattr_getflags(&attrs, &flags); flags |= POSIX_SPAWN_USEVFORK; posix_spawnattr_setpgroup(&attrs, 0); flags |= POSIX_SPAWN_SETPGROUP; sigset_t sset; sigemptyset(&sset); posix_spawnattr_setsigmask (&attrs, &sset); flags |= POSIX_SPAWN_SETSIGMASK; sigemptyset(&sset); sigaddset(&sset, SIGTERM); posix_spawnattr_setsigdefault(&attrs, &sset); flags |= POSIX_SPAWN_SETSIGDEF; posix_spawnattr_setflags(&attrs, flags); posix_spawn_file_actions_t facts; posix_spawn_file_actions_init(&facts); if (has_input) { posix_spawn_file_actions_addclose(&facts, m_pipein[1]); if (m_pipein[0] != 0) { posix_spawn_file_actions_adddup2(&facts, m_pipein[0], 0); posix_spawn_file_actions_addclose(&facts, m_pipein[0]); } } if (has_output) { posix_spawn_file_actions_addclose(&facts, m_pipeout[0]); if (m_pipeout[1] != 1) { posix_spawn_file_actions_adddup2(&facts, m_pipeout[1], 1); posix_spawn_file_actions_addclose(&facts, m_pipeout[1]); } } // Do we need to redirect stderr ? if (!m_stderrFile.empty()) { int oflags = O_WRONLY|O_CREAT; #ifdef O_APPEND oflags |= O_APPEND; #endif posix_spawn_file_actions_addopen(&facts, 2, m_stderrFile.c_str(), oflags, 0600); } LOGDEB1(("using SPAWN\n")); // posix_spawn() does not have any standard way to ask for // calling closefrom(). Afaik there is a solaris extension for this, // but let's just add all fds for (int i = 3; i < libclf_maxfd(); i++) { posix_spawn_file_actions_addclose(&facts, i); } int ret = posix_spawn(&m_pid, exe.c_str(), &facts, &attrs, (char *const *)argv, (char *const *)envv); posix_spawnattr_destroy(&attrs); posix_spawn_file_actions_destroy(&facts); if (ret) { LOGERR(("ExecCmd::startExec: posix_spawn() failed. errno %d\n", ret)); return -1; } } #else if (o_useVfork) { LOGDEB1(("using VFORK\n")); m_pid = vfork(); } else { LOGDEB1(("using FORK\n")); m_pid = fork(); } if (m_pid < 0) { LOGERR(("ExecCmd::startExec: fork(2) failed. errno %d\n", errno)); return -1; } if (m_pid == 0) { // e.inactivate() is not needed. As we do not return, the call // stack won't be unwound and destructors of local objects // won't be called. dochild(exe, argv, envv, has_input, has_output); // dochild does not return. Just in case... _exit(1); } #endif // Father process //////////////////// // Vfork cleanup section free(argv); free(envv); /////////////////// // Set the process group for the child. This is also done in the // child process see wikipedia(Process_group) if (setpgid(m_pid, m_pid)) { // This can fail with EACCES if the son has already done execve // (linux at least) LOGDEB2(("ExecCmd: father setpgid(son)(%d,%d) errno %d (ok)\n", m_pid, m_pid, errno)); } sigemptyset(&m_blkcld); sigaddset(&m_blkcld, SIGCHLD); pthread_sigmask(SIG_BLOCK, &m_blkcld, 0); if (has_input) { close(m_pipein[0]); m_pipein[0] = -1; NetconCli *iclicon = new NetconCli(); iclicon->setconn(m_pipein[1]); m_tocmd = NetconP(iclicon); } if (has_output) { close(m_pipeout[1]); m_pipeout[1] = -1; NetconCli *oclicon = new NetconCli(); oclicon->setconn(m_pipeout[0]); m_fromcmd = NetconP(oclicon); } /* Don't want to undo what we just did ! */ e.inactivate(); return 0; } // Netcon callback. Send data to the command's input class ExecWriter : public NetconWorker { public: ExecWriter(const string *input, ExecCmdProvide *provide) : m_input(input), m_cnt(0), m_provide(provide) {} virtual int data(NetconData *con, Netcon::Event reason) { if (!m_input) return -1; LOGDEB1(("ExecWriter: input m_cnt %d input length %d\n", m_cnt, m_input->length())); if (m_cnt >= m_input->length()) { // Fd ready for more but we got none. if (m_provide) { m_provide->newData(); if (m_input->empty()) { return 0; } else { m_cnt = 0; } LOGDEB2(("ExecWriter: provide m_cnt %d input length %d\n", m_cnt, m_input->length())); } else { return 0; } } int ret = con->send(m_input->c_str() + m_cnt, m_input->length() - m_cnt); LOGDEB2(("ExecWriter: wrote %d to command\n", ret)); if (ret <= 0) { LOGERR(("ExecWriter: data: can't write\n")); return -1; } m_cnt += ret; return ret; } private: const string *m_input; unsigned int m_cnt; // Current offset inside m_input ExecCmdProvide *m_provide; }; // Netcon callback. Get data from the command output. class ExecReader : public NetconWorker { public: ExecReader(string *output, ExecCmdAdvise *advise) : m_output(output), m_advise(advise) {} virtual int data(NetconData *con, Netcon::Event reason) { char buf[8192]; int n = con->receive(buf, 8192); LOGDEB1(("ExecReader: got %d from command\n", n)); if (n < 0) { LOGERR(("ExecCmd::doexec: receive failed. errno %d\n", errno)); } else if (n > 0) { m_output->append(buf, n); if (m_advise) m_advise->newData(n); } // else n == 0, just return return n; } private: string *m_output; ExecCmdAdvise *m_advise; }; int ExecCmd::doexec(const string &cmd, const vector& args, const string *input, string *output) { if (startExec(cmd, args, input != 0, output != 0) < 0) { return -1; } // Cleanup in case we return early ExecCmdRsrc e(this); SelectLoop myloop; int ret = 0; if (input || output) { // Setup output if (output) { NetconCli *oclicon = dynamic_cast(m_fromcmd.get()); if (!oclicon) { LOGERR(("ExecCmd::doexec: no connection from command\n")); return -1; } oclicon->setcallback(RefCntr (new ExecReader(output, m_advise))); myloop.addselcon(m_fromcmd, Netcon::NETCONPOLL_READ); // Give up ownership m_fromcmd.reset(); } // Setup input if (input) { NetconCli *iclicon = dynamic_cast(m_tocmd.get()); if (!iclicon) { LOGERR(("ExecCmd::doexec: no connection from command\n")); return -1; } iclicon->setcallback(RefCntr (new ExecWriter(input, m_provide))); myloop.addselcon(m_tocmd, Netcon::NETCONPOLL_WRITE); // Give up ownership m_tocmd.reset(); } // Do the actual reading/writing/waiting myloop.setperiodichandler(0, 0, m_timeoutMs); while ((ret = myloop.doLoop()) > 0) { LOGDEB(("ExecCmd::doexec: selectloop returned %d\n", ret)); if (m_advise) m_advise->newData(0); if (m_killRequest) { LOGINFO(("ExecCmd::doexec: cancel request\n")); break; } } LOGDEB0(("ExecCmd::doexec: selectloop returned %d\n", ret)); // Check for interrupt request: we won't want to waitpid() if (m_advise) m_advise->newData(0); // The netcons don't take ownership of the fds: we have to close them // (have to do it before wait, this may be the signal the child is // waiting for exiting). if (input) { close(m_pipein[1]); m_pipein[1] = -1; } if (output) { close(m_pipeout[0]); m_pipeout[0] = -1; } } // Normal return: deactivate cleaner, wait() will do the cleanup e.inactivate(); int ret1 = ExecCmd::wait(); if (ret) return -1; return ret1; } int ExecCmd::send(const string& data) { NetconCli *con = dynamic_cast(m_tocmd.get()); if (con == 0) { LOGERR(("ExecCmd::send: outpipe is closed\n")); return -1; } unsigned int nwritten = 0; while (nwritten < data.length()) { if (m_killRequest) break; int n = con->send(data.c_str() + nwritten, data.length() - nwritten); if (n < 0) { LOGERR(("ExecCmd::send: send failed\n")); return -1; } nwritten += n; } return nwritten; } int ExecCmd::receive(string& data, int cnt) { NetconCli *con = dynamic_cast(m_fromcmd.get()); if (con == 0) { LOGERR(("ExecCmd::receive: inpipe is closed\n")); return -1; } const int BS = 4096; char buf[BS]; int ntot = 0; do { int toread = cnt > 0 ? MIN(cnt - ntot, BS) : BS; int n = con->receive(buf, toread); if (n < 0) { LOGERR(("ExecCmd::receive: error\n")); return -1; } else if (n > 0) { ntot += n; data.append(buf, n); } else { LOGDEB(("ExecCmd::receive: got 0\n")); break; } } while (cnt > 0 && ntot < cnt); return ntot; } int ExecCmd::getline(string& data) { NetconCli *con = dynamic_cast(m_fromcmd.get()); if (con == 0) { LOGERR(("ExecCmd::receive: inpipe is closed\n")); return -1; } const int BS = 1024; char buf[BS]; int n = con->getline(buf, BS); if (n < 0) { LOGERR(("ExecCmd::getline: error\n")); } else if (n > 0) { data.append(buf, n); } else { LOGDEB(("ExecCmd::getline: got 0\n")); } return n; } // Wait for command status and clean up all resources. int ExecCmd::wait() { ExecCmdRsrc e(this); int status = -1; if (!m_killRequest && m_pid > 0) { if (waitpid(m_pid, &status, 0) < 0) { LOGERR(("ExecCmd::waitpid: returned -1 errno %d\n", errno)); status = -1; } LOGDEB(("ExecCmd::wait: got status 0x%x\n", status)); m_pid = -1; } // Let the ExecCmdRsrc cleanup return status; } bool ExecCmd::maybereap(int *status) { ExecCmdRsrc e(this); *status = -1; if (m_pid <= 0) { // Already waited for ?? return true; } pid_t pid = waitpid(m_pid, status, WNOHANG); if (pid < 0) { LOGERR(("ExecCmd::maybereap: returned -1 errno %d\n", errno)); m_pid = -1; return true; } else if (pid == 0) { LOGDEB1(("ExecCmd::maybereap: not exited yet\n")); e.inactivate(); return false; } else { LOGDEB(("ExecCmd::maybereap: got status 0x%x\n", status)); m_pid = -1; return true; } } // Static bool ExecCmd::backtick(const vector cmd, string& out) { vector::const_iterator it = cmd.begin(); it++; vector args(it, cmd.end()); ExecCmd mexec; int status = mexec.doexec(*cmd.begin(), args, 0, &out); return status == 0; } /// ReExec class methods /////////////////////////////////////////////////// ReExec::ReExec(int argc, char *args[]) { init(argc, args); } void ReExec::init(int argc, char *args[]) { for (int i = 0; i < argc; i++) { m_argv.push_back(args[i]); } m_cfd = open(".", 0); char *cd = getcwd(0, 0); if (cd) m_curdir = cd; free(cd); } void ReExec::insertArgs(const vector& args, int idx) { vector::iterator it, cit; unsigned int cmpoffset = (unsigned int)-1; if (idx == -1 || string::size_type(idx) >= m_argv.size()) { it = m_argv.end(); if (m_argv.size() >= args.size()) { cmpoffset = m_argv.size() - args.size(); } } else { it = m_argv.begin() + idx; if (idx + args.size() <= m_argv.size()) { cmpoffset = idx; } } // Check that the option is not already there if (cmpoffset != (unsigned int)-1) { bool allsame = true; for (unsigned int i = 0; i < args.size(); i++) { if (m_argv[cmpoffset + i] != args[i]) { allsame = false; break; } } if (allsame) return; } m_argv.insert(it, args.begin(), args.end()); } void ReExec::removeArg(const string& arg) { for (vector::iterator it = m_argv.begin(); it != m_argv.end(); it++) { if (*it == arg) it = m_argv.erase(it); } } // Reexecute myself, as close as possible to the initial exec void ReExec::reexec() { #if 0 char *cwd; cwd = getcwd(0,0); FILE *fp = stdout; //fopen("/tmp/exectrace", "w"); if (fp) { fprintf(fp, "reexec: pwd: [%s] args: ", cwd?cwd:"getcwd failed"); for (vector::const_iterator it = m_argv.begin(); it != m_argv.end(); it++) { fprintf(fp, "[%s] ", it->c_str()); } fprintf(fp, "\n"); } #endif // Execute the atexit funcs while (!m_atexitfuncs.empty()) { (m_atexitfuncs.top())(); m_atexitfuncs.pop(); } // Try to get back to the initial working directory if (m_cfd < 0 || fchdir(m_cfd) < 0) { LOGINFO(("ReExec::reexec: fchdir failed, trying chdir\n")); if (!m_curdir.empty() && chdir(m_curdir.c_str())) { LOGERR(("ReExec::reexec: chdir failed\n")); } } // Close all descriptors except 0,1,2 libclf_closefrom(3); // Allocate arg vector (1 more for final 0) typedef const char *Ccharp; Ccharp *argv; argv = (Ccharp *)malloc((m_argv.size()+1) * sizeof(char *)); if (argv == 0) { LOGERR(("ExecCmd::doexec: malloc() failed. errno %d\n", errno)); return; } // Fill up argv int i = 0; vector::const_iterator it; for (it = m_argv.begin(); it != m_argv.end(); it++) { argv[i++] = it->c_str(); } argv[i] = 0; execvp(m_argv[0].c_str(), (char *const*)argv); } //////////////////////////////////////////////////////////////////// #else // TEST #include #include #include #include #include #include #include using namespace std; #include "debuglog.h" #include "cancelcheck.h" #include "execmd.h" static int op_flags; #define OPT_MOINS 0x1 #define OPT_b 0x4 #define OPT_w 0x8 #define OPT_c 0x10 #define OPT_r 0x20 const char *data = "Une ligne de donnees\n"; class MEAdv : public ExecCmdAdvise { public: ExecCmd *cmd; void newData(int cnt) { if (op_flags & OPT_c) { static int callcnt; if (callcnt++ == 3) { throw CancelExcept(); } } cerr << "newData(" << cnt << ")" << endl; // CancelCheck::instance().setCancel(); // CancelCheck::instance().checkCancel(); // cmd->setCancel(); } }; class MEPv : public ExecCmdProvide { public: FILE *m_fp; string *m_input; MEPv(string *i) : m_input(i) { m_fp = fopen("/etc/group", "r"); } ~MEPv() { if (m_fp) fclose(m_fp); } void newData() { char line[1024]; if (m_fp && fgets(line, 1024, m_fp)) { m_input->assign((const char *)line); } else { m_input->erase(); } } }; static char *thisprog; static char usage [] = "trexecmd [-c|-r] cmd [arg1 arg2 ...]\n" " -c : test cancellation (ie: trexecmd -c sleep 1000)\n" " -r : test reexec\n" "trexecmd -w cmd : do the which thing\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } ReExec reexec; int main(int argc, char *argv[]) { reexec.init(argc, argv); if (0) { vector newargs; newargs.push_back("newarg"); newargs.push_back("newarg1"); newargs.push_back("newarg2"); newargs.push_back("newarg3"); newargs.push_back("newarg4"); reexec.insertArgs(newargs, 2); } thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'c': op_flags |= OPT_c; break; case 'r': op_flags |= OPT_r; break; case 'w': op_flags |= OPT_w; break; default: Usage(); break; } b1: argc--; argv++; } if (argc < 1) Usage(); string cmd = *argv++; argc--; vector l; while (argc > 0) { l.push_back(*argv++); argc--; } DebugLog::getdbl()->setloglevel(DEBDEB1); DebugLog::setfilename("stderr"); signal(SIGPIPE, SIG_IGN); if (op_flags & OPT_r) { chdir("/"); argv[0] = strdup(""); sleep(1); reexec.reexec(); } if (op_flags & OPT_w) { string path; if (ExecCmd::which(cmd, path)) { cout << path << endl; exit(0); } exit(1); } ExecCmd mexec; MEAdv adv; adv.cmd = &mexec; mexec.setAdvise(&adv); mexec.setTimeout(5); mexec.setStderr("/tmp/trexecStderr"); mexec.putenv("TESTVARIABLE1=TESTVALUE1"); mexec.putenv("TESTVARIABLE2=TESTVALUE2"); mexec.putenv("TESTVARIABLE3=TESTVALUE3"); string input, output; // input = data; string *ip = 0; ip = &input; MEPv pv(&input); mexec.setProvide(&pv); int status = -1; try { status = mexec.doexec(cmd, l, ip, &output); } catch (CancelExcept) { cerr << "CANCELLED" << endl; } fprintf(stderr, "Status: 0x%x\n", status); cout << output; exit (status >> 8); } #endif // TEST recoll-1.21.5/utils/pxattr.cpp0000644000175000017500000006421712602163540015561 0ustar dockesdockes/* Copyright (c) 2009 Jean-Francois Dockes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** \file pxattr.cpp \brief Portable External Attributes API */ // PXALINUX: platforms like kfreebsd which aren't linux but use the // same xattr interface #if defined(__gnu_linux__) || \ (defined(__FreeBSD_kernel__)&&defined(__GLIBC__)&&!defined(__FreeBSD__)) ||\ defined(__CYGWIN__) #define PXALINUX #endif // If the platform is not known yet, let this file be empty instead of // breaking the compile, this will let the build work if the rest of // the software is not actually calling us. If it does call us, this // will bring attention to the necessity of a port. // // If the platform is known not supporting extattrs (e.g.__OpenBSD__), // just let the methods return errors (like they would on a non-xattr // fs on e.g. linux) #if defined(__FreeBSD__) || defined(PXALINUX) || defined(__APPLE__) \ || defined(__OpenBSD__) #ifndef TEST_PXATTR #include #include #include #include #if defined(__FreeBSD__) #include #include #elif defined(PXALINUX) #include #elif defined(__APPLE__) #include #elif defined(__OpenBSD__) #else #error "Unknown system can't compile" #endif #include "pxattr.h" namespace pxattr { class AutoBuf { public: char *buf; AutoBuf() : buf(0) {} ~AutoBuf() {if (buf) free(buf); buf = 0;} bool alloc(int n) { if (buf) { free(buf); buf = 0; } buf = (char *)malloc(n); return buf != 0; } }; static bool get(int fd, const string& path, const string& _name, string *value, flags flags, nspace dom) { string name; if (!sysname(dom, _name, &name)) return false; ssize_t ret = -1; AutoBuf buf; #if defined(__FreeBSD__) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = extattr_get_link(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), 0, 0); } else { ret = extattr_get_file(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), 0, 0); } } else { ret = extattr_get_fd(fd, EXTATTR_NAMESPACE_USER, name.c_str(), 0, 0); } if (ret < 0) return false; if (!buf.alloc(ret+1)) // Don't want to deal with possible ret=0 return false; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = extattr_get_link(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), buf.buf, ret); } else { ret = extattr_get_file(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), buf.buf, ret); } } else { ret = extattr_get_fd(fd, EXTATTR_NAMESPACE_USER, name.c_str(), buf.buf, ret); } #elif defined(PXALINUX) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = lgetxattr(path.c_str(), name.c_str(), 0, 0); } else { ret = getxattr(path.c_str(), name.c_str(), 0, 0); } } else { ret = fgetxattr(fd, name.c_str(), 0, 0); } if (ret < 0) return false; if (!buf.alloc(ret+1)) // Don't want to deal with possible ret=0 return false; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = lgetxattr(path.c_str(), name.c_str(), buf.buf, ret); } else { ret = getxattr(path.c_str(), name.c_str(), buf.buf, ret); } } else { ret = fgetxattr(fd, name.c_str(), buf.buf, ret); } #elif defined(__APPLE__) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = getxattr(path.c_str(), name.c_str(), 0, 0, 0, XATTR_NOFOLLOW); } else { ret = getxattr(path.c_str(), name.c_str(), 0, 0, 0, 0); } } else { ret = fgetxattr(fd, name.c_str(), 0, 0, 0, 0); } if (ret < 0) return false; if (!buf.alloc(ret+1)) // Don't want to deal with possible ret=0 return false; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = getxattr(path.c_str(), name.c_str(), buf.buf, ret, 0, XATTR_NOFOLLOW); } else { ret = getxattr(path.c_str(), name.c_str(), buf.buf, ret, 0, 0); } } else { ret = fgetxattr(fd, name.c_str(), buf.buf, ret, 0, 0); } #else errno = ENOTSUP; #endif if (ret >= 0) value->assign(buf.buf, ret); return ret >= 0; } static bool set(int fd, const string& path, const string& _name, const string& value, flags flags, nspace dom) { string name; if (!sysname(dom, _name, &name)) return false; ssize_t ret = -1; #if defined(__FreeBSD__) if (flags & (PXATTR_CREATE|PXATTR_REPLACE)) { // Need to test existence bool exists = false; ssize_t eret; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { eret = extattr_get_link(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), 0, 0); } else { eret = extattr_get_file(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), 0, 0); } } else { eret = extattr_get_fd(fd, EXTATTR_NAMESPACE_USER, name.c_str(), 0, 0); } if (eret >= 0) exists = true; if (eret < 0 && errno != ENOATTR) return false; if ((flags & PXATTR_CREATE) && exists) { errno = EEXIST; return false; } if ((flags & PXATTR_REPLACE) && !exists) { errno = ENOATTR; return false; } } if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = extattr_set_link(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), value.c_str(), value.length()); } else { ret = extattr_set_file(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str(), value.c_str(), value.length()); } } else { ret = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, name.c_str(), value.c_str(), value.length()); } #elif defined(PXALINUX) int opts = 0; if (flags & PXATTR_CREATE) opts = XATTR_CREATE; else if (flags & PXATTR_REPLACE) opts = XATTR_REPLACE; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = lsetxattr(path.c_str(), name.c_str(), value.c_str(), value.length(), opts); } else { ret = setxattr(path.c_str(), name.c_str(), value.c_str(), value.length(), opts); } } else { ret = fsetxattr(fd, name.c_str(), value.c_str(), value.length(), opts); } #elif defined(__APPLE__) int opts = 0; if (flags & PXATTR_CREATE) opts = XATTR_CREATE; else if (flags & PXATTR_REPLACE) opts = XATTR_REPLACE; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = setxattr(path.c_str(), name.c_str(), value.c_str(), value.length(), 0, XATTR_NOFOLLOW|opts); } else { ret = setxattr(path.c_str(), name.c_str(), value.c_str(), value.length(), 0, opts); } } else { ret = fsetxattr(fd, name.c_str(), value.c_str(), value.length(), 0, opts); } #else errno = ENOTSUP; #endif return ret >= 0; } static bool del(int fd, const string& path, const string& _name, flags flags, nspace dom) { string name; if (!sysname(dom, _name, &name)) return false; int ret = -1; #if defined(__FreeBSD__) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = extattr_delete_link(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str()); } else { ret = extattr_delete_file(path.c_str(), EXTATTR_NAMESPACE_USER, name.c_str()); } } else { ret = extattr_delete_fd(fd, EXTATTR_NAMESPACE_USER, name.c_str()); } #elif defined(PXALINUX) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = lremovexattr(path.c_str(), name.c_str()); } else { ret = removexattr(path.c_str(), name.c_str()); } } else { ret = fremovexattr(fd, name.c_str()); } #elif defined(__APPLE__) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = removexattr(path.c_str(), name.c_str(), XATTR_NOFOLLOW); } else { ret = removexattr(path.c_str(), name.c_str(), 0); } } else { ret = fremovexattr(fd, name.c_str(), 0); } #else errno = ENOTSUP; #endif return ret >= 0; } static bool list(int fd, const string& path, vector* names, flags flags, nspace dom) { ssize_t ret = -1; AutoBuf buf; #if defined(__FreeBSD__) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = extattr_list_link(path.c_str(), EXTATTR_NAMESPACE_USER, 0, 0); } else { ret = extattr_list_file(path.c_str(), EXTATTR_NAMESPACE_USER, 0, 0); } } else { ret = extattr_list_fd(fd, EXTATTR_NAMESPACE_USER, 0, 0); } if (ret < 0) return false; if (!buf.alloc(ret+1)) // NEEDED on FreeBSD (no ending null) return false; buf.buf[ret] = 0; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = extattr_list_link(path.c_str(), EXTATTR_NAMESPACE_USER, buf.buf, ret); } else { ret = extattr_list_file(path.c_str(), EXTATTR_NAMESPACE_USER, buf.buf, ret); } } else { ret = extattr_list_fd(fd, EXTATTR_NAMESPACE_USER, buf.buf, ret); } #elif defined(PXALINUX) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = llistxattr(path.c_str(), 0, 0); } else { ret = listxattr(path.c_str(), 0, 0); } } else { ret = flistxattr(fd, 0, 0); } if (ret < 0) return false; if (!buf.alloc(ret+1)) // Don't want to deal with possible ret=0 return false; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = llistxattr(path.c_str(), buf.buf, ret); } else { ret = listxattr(path.c_str(), buf.buf, ret); } } else { ret = flistxattr(fd, buf.buf, ret); } #elif defined(__APPLE__) if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = listxattr(path.c_str(), 0, 0, XATTR_NOFOLLOW); } else { ret = listxattr(path.c_str(), 0, 0, 0); } } else { ret = flistxattr(fd, 0, 0, 0); } if (ret < 0) return false; if (!buf.alloc(ret+1)) // Don't want to deal with possible ret=0 return false; if (fd < 0) { if (flags & PXATTR_NOFOLLOW) { ret = listxattr(path.c_str(), buf.buf, ret, XATTR_NOFOLLOW); } else { ret = listxattr(path.c_str(), buf.buf, ret, 0); } } else { ret = flistxattr(fd, buf.buf, ret, 0); } #else errno = ENOTSUP; #endif if (ret < 0) return false; char *bufstart = buf.buf; // All systems return a 0-separated string list except FreeBSD // which has length, value pairs, length is a byte. #if defined(__FreeBSD__) char *cp = buf.buf; unsigned int len; while (cp < buf.buf + ret + 1) { len = *cp; *cp = 0; cp += len + 1; } bufstart = buf.buf + 1; *cp = 0; // don't forget, we allocated one more #endif if (ret > 0) { int pos = 0; while (pos < ret) { string n = string(bufstart + pos); string n1; if (pxname(PXATTR_USER, n, &n1)) { names->push_back(n1); } pos += n.length() + 1; } } return true; } static const string nullstring(""); bool get(const string& path, const string& _name, string *value, flags flags, nspace dom) { return get(-1, path, _name, value, flags, dom); } bool get(int fd, const string& _name, string *value, flags flags, nspace dom) { return get(fd, nullstring, _name, value, flags, dom); } bool set(const string& path, const string& _name, const string& value, flags flags, nspace dom) { return set(-1, path, _name, value, flags, dom); } bool set(int fd, const string& _name, const string& value, flags flags, nspace dom) { return set(fd, nullstring, _name, value, flags, dom); } bool del(const string& path, const string& _name, flags flags, nspace dom) { return del(-1, path, _name, flags, dom); } bool del(int fd, const string& _name, flags flags, nspace dom) { return del(fd, nullstring, _name, flags, dom); } bool list(const string& path, vector* names, flags flags, nspace dom) { return list(-1, path, names, flags, dom); } bool list(int fd, vector* names, flags flags, nspace dom) { return list(fd, nullstring, names, flags, dom); } #if defined(PXALINUX) || defined(COMPAT1) static const string userstring("user."); #else static const string userstring(""); #endif bool sysname(nspace dom, const string& pname, string* sname) { if (dom != PXATTR_USER) { errno = EINVAL; return false; } *sname = userstring + pname; return true; } bool pxname(nspace dom, const string& sname, string* pname) { if (!userstring.empty() && sname.find(userstring) != 0) { errno = EINVAL; return false; } *pname = sname.substr(userstring.length()); return true; } } // namespace pxattr #else // TEST_PXATTR Testing / driver -> #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #include "pxattr.h" static void dotests(); // \-quote character c in input \ -> \\, nl -> \n cr -> \rc -> \c static void quote(const string& in, string& out, int c) { out.clear(); for (string::const_iterator it = in.begin(); it != in.end(); it++) { if (*it == '\\') { out += "\\\\"; } else if (*it == "\n"[0]) { out += "\\n"; } else if (*it == "\r"[0]) { out += "\\r"; } else if (*it == c) { out += "\\"; out += c; } else { out += *it; } } } // \-unquote input \n -> nl, \r -> cr, \c -> c static void unquote(const string& in, string& out) { out.clear(); for (unsigned int i = 0; i < in.size(); i++) { if (in[i] == '\\') { if (i == in.size() -1) { out += in[i]; } else { int c = in[++i]; switch (c) { case 'n': out += "\n";break; case 'r': out += "\r";break; default: out += c; } } } else { out += in[i]; } } } // Find first unquoted c in input: c preceded by odd number of backslashes string::size_type find_first_unquoted(const string& in, int c) { int q = 0; for (unsigned int i = 0;i < in.size(); i++) { if (in[i] == '\\') { q++; } else if (in[i] == c) { if (q&1) { // quoted q = 0; } else { return i; } } else { q = 0; } } return string::npos; } static const string PATH_START("Path: "); static void listattrs(const string& path) { vector names; if (!pxattr::list(path, &names)) { if (errno == ENOENT) { return; } perror("pxattr::list"); exit(1); } if (names.empty()) return; // Sorting the names would not be necessary but it makes easier comparing // backups sort(names.begin(), names.end()); string quoted; quote(path, quoted, 0); cout << PATH_START << quoted << endl; for (vector::const_iterator it = names.begin(); it != names.end(); it++) { string value; if (!pxattr::get(path, *it, &value)) { if (errno == ENOENT) { return; } perror("pxattr::get"); exit(1); } quote(*it, quoted, '='); cout << " " << quoted << "="; quote(value, quoted, 0); cout << quoted << endl; } } void setxattr(const string& path, const string& name, const string& value) { if (!pxattr::set(path, name, value)) { perror("pxattr::set"); exit(1); } } // Restore xattrs stored in file created by pxattr -lR output static void restore(const char *backupnm) { istream *input; ifstream fin; if (!strcmp(backupnm, "stdin")) { input = &cin; } else { fin.open(backupnm, ios::in); input = &fin; } bool done = false; int linenum = 0; string path; map attrs; while (!done) { string line; getline(*input, line); if (!input->good()) { if (input->bad()) { cerr << "Input I/O error" << endl; exit(1); } done = true; } else { linenum++; } // cout << "Got line " << linenum << " : [" << line << "] done " << // done << endl; if (line.find(PATH_START) == 0 || done) { if (!path.empty() && !attrs.empty()) { for (map::const_iterator it = attrs.begin(); it != attrs.end(); it++) { setxattr(path, it->first, it->second); } } if (!done) { line = line.substr(PATH_START.size(), string::npos); unquote(line, path); attrs.clear(); } } else if (line.empty()) { continue; } else { // Should be attribute line if (line[0] != ' ') { cerr << "Found bad line (no space) at " << linenum << endl; exit(1); } string::size_type pos = find_first_unquoted(line, '='); if (pos == string::npos || pos < 2 || pos >= line.size()) { cerr << "Found bad line at " << linenum << endl; exit(1); } string qname = line.substr(1, pos-1); pair entry; unquote(qname, entry.first); unquote(line.substr(pos+1), entry.second); attrs.insert(entry); } } } void printxattr(const string &path, const string& name) { cout << "Path: " << path << endl; string value; if (!pxattr::get(path, name, &value)) { if (errno == ENOENT) { return; } perror("pxattr::get"); exit(1); } cout << " " << name << " => " << value << endl; } void delxattr(const string &path, const string& name) { if (pxattr::del(path, name) < 0) { perror("pxattr::del"); exit(1); } } static char *thisprog; static char usage [] = "pxattr [-h] -n name pathname [...] : show value for name\n" "pxattr [-h] -n name -v value pathname [...] : add/replace attribute\n" "pxattr [-h] -x name pathname [...] : delete attribute\n" "pxattr [-h] [-l] [-R] pathname [...] : list attribute names and values\n" " [-h] : don't follow symbolic links (act on link itself)\n" " [-R] : recursive listing. Args should be directory(ies)\n" " For all the options above, if no pathname arguments are given, pxattr\n" " will read file names on stdin, one per line.\n" "pxattr -S Restore xattrs from file created by pxattr -lR output\n" " if backupfile is 'stdin', reads from stdin\n" "pxattr -T: run tests on temp file in current directory" "\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_n 0x2 #define OPT_v 0x4 #define OPT_h 0x8 #define OPT_x 0x10 #define OPT_l 0x20 #define OPT_T 0x40 #define OPT_R 0x80 #define OPT_S 0x100 static string name, value; int processfile(const char* fn, const struct stat *sb, int typeflag) { //cout << "processfile " << fn << " opflags " << op_flags << endl; if (op_flags & OPT_l) { listattrs(fn); } else if (op_flags & OPT_n) { if (op_flags & OPT_v) { setxattr(fn, name, value); } else { printxattr(fn, name); } } else if (op_flags & OPT_x) { delxattr(fn, name); } return 0; } int main(int argc, char **argv) { thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'l': op_flags |= OPT_l; break; case 'n': op_flags |= OPT_n; if (argc < 2) Usage(); name = *(++argv); argc--; goto b1; case 'R': op_flags |= OPT_R; break; case 'S': op_flags |= OPT_S; break; case 'T': op_flags |= OPT_T; break; case 'v': op_flags |= OPT_v; if (argc < 2) Usage(); value = *(++argv); argc--; goto b1; case 'x': op_flags |= OPT_x; if (argc < 2) Usage(); name = *(++argv); argc--; goto b1; default: Usage(); break; } b1: argc--; argv++; } if (op_flags & OPT_T) { if (argc > 0) Usage(); dotests(); exit(0); } if (op_flags & OPT_S) { if (argc != 1) Usage(); restore(argv[0]); exit(0); } // Default option is 'list' if ((op_flags&(OPT_l|OPT_n|OPT_x)) == 0) op_flags |= OPT_l; bool readstdin = false; if (argc == 0) readstdin = true; for (;;) { const char *fn = 0; if (argc > 0) { fn = *argv++; argc--; } else if (readstdin) { static char filename[1025]; if (!fgets(filename, 1024, stdin)) break; filename[strlen(filename)-1] = 0; fn = filename; } else break; if (op_flags & OPT_R) { if (ftw(fn, processfile, 20)) exit(1); } else { processfile(fn, 0, 0); } } exit(0); } static void fatal(const string& s) { perror(s.c_str()); exit(1); } static bool testbackups() { static const char *top = "ttop"; static const char *d1 = "d1"; static const char *d2 = "d2"; static const char *tfn1 = "tpxattr1.txt"; static const char *tfn2 = "tpxattr2.txt"; static const char *dump = "attrdump.txt"; static const char *NAMES[] = {"ORG.PXATTR.NAME1", "ORG=PXATTR\"=\\=\n", "=", "Name4"}; static const char *VALUES[] = {"VALUE1", "VALUE2", "VALUE3=VALUE3equal", "VALUE4\n is more like" " normal text\n with new lines and \"\\\" \\\" backslashes"}; static const int nattrs = sizeof(NAMES) / sizeof(char *); if (mkdir(top, 0777)) fatal("Cant mkdir ttop"); if (chdir(top)) fatal("cant chdir ttop"); if (mkdir(d1, 0777) || mkdir(d2, 0777)) fatal("Can't mkdir ttdop/dx\n"); if (chdir(d1)) fatal("chdir d1"); int fd; if ((fd = open(tfn1, O_RDWR|O_CREAT, 0755)) < 0) fatal("create d1/tpxattr1.txt"); /* Set attrs */ for (int i = 0; i < nattrs; i++) { if (!pxattr::set(fd, NAMES[i], VALUES[i])) fatal("pxattr::set"); } close(fd); if ((fd = open(tfn2, O_RDWR|O_CREAT, 0755)) < 0) fatal("create d1/tpxattr2.txt"); /* Set attrs */ for (int i = 0; i < nattrs; i++) { if (!pxattr::set(fd, NAMES[i], VALUES[i])) fatal("pxattr::set"); } close(fd); /* Create dump */ string cmd; cmd = string("pxattr -lR . > " ) + dump; if (system(cmd.c_str())) fatal(cmd + " in d1"); if (chdir("../d2")) fatal("chdir ../d2"); if (close(open(tfn1, O_RDWR|O_CREAT, 0755))) fatal("create d2/tpxattr.txt"); if (close(open(tfn2, O_RDWR|O_CREAT, 0755))) fatal("create d2/tpxattr.txt"); cmd = string("pxattr -S ../d1/" ) + dump; if (system(cmd.c_str())) fatal(cmd); cmd = string("pxattr -lR . > " ) + dump; if (system(cmd.c_str())) fatal(cmd + " in d2"); cmd = string("diff ../d1/") + dump + " " + dump; if (system(cmd.c_str())) fatal(cmd); cmd = string("cat ") + dump; system(cmd.c_str()); if (1) { unlink(dump); unlink(tfn1); unlink(tfn2); if (chdir("../d1")) fatal("chdir ../d1"); unlink(dump); unlink(tfn1); unlink(tfn2); if (chdir("../")) fatal("chdir .. 1"); if (rmdir(d1)) fatal("rmdir d1"); if (rmdir(d2)) fatal("rmdir d2"); if (chdir("../")) fatal("chdir .. 2"); if (rmdir(top)) fatal("rmdir ttop"); } return true; } static void dotests() { static const char *tfn = "pxattr_testtmp.xyz"; static const char *NAMES[] = {"ORG.PXATTR.NAME1", "ORG.PXATTR.N2", "ORG.PXATTR.LONGGGGGGGGisSSSHHHHHHHHHNAME3"}; static const char *VALUES[] = {"VALUE1", "VALUE2", "VALUE3"}; static bool verbose = true; /* Create test file if it doesn't exist, remove all attributes */ int fd = open(tfn, O_RDWR|O_CREAT, 0755); if (fd < 0) { perror("open/create"); exit(1); } if (verbose) fprintf(stdout, "Cleanup old attrs\n"); vector names; if (!pxattr::list(tfn, &names)) { perror("pxattr::list"); exit(1); } for (vector::const_iterator it = names.begin(); it != names.end(); it++) { string value; if (!pxattr::del(fd, *it)) { perror("pxattr::del"); exit(1); } } /* Check that there are no attributes left */ names.clear(); if (!pxattr::list(tfn, &names)) { perror("pxattr::list"); exit(1); } if (names.size() != 0) { fprintf(stderr, "Attributes remain after initial cleanup !\n"); for (vector::const_iterator it = names.begin(); it != names.end(); it++) { fprintf(stderr, "%s\n", (*it).c_str()); } exit(1); } /* Create attributes, check existence and value */ if (verbose) fprintf(stdout, "Creating extended attributes\n"); for (int i = 0; i < 3; i++) { if (!pxattr::set(fd, NAMES[i], VALUES[i])) { perror("pxattr::set"); exit(1); } } if (verbose) fprintf(stdout, "Checking creation\n"); for (int i = 0; i < 3; i++) { string value; if (!pxattr::get(tfn, NAMES[i], &value)) { perror("pxattr::get"); exit(1); } if (value.compare(VALUES[i])) { fprintf(stderr, "Wrong value after create !\n"); exit(1); } } /* Delete one, check list */ if (verbose) fprintf(stdout, "Delete one\n"); if (!pxattr::del(tfn, NAMES[1])) { perror("pxattr::del one name"); exit(1); } if (verbose) fprintf(stdout, "Check list\n"); for (int i = 0; i < 3; i++) { string value; if (!pxattr::get(fd, NAMES[i], &value)) { if (i == 1) continue; perror("pxattr::get"); exit(1); } else if (i == 1) { fprintf(stderr, "Name at index 1 still exists after deletion\n"); exit(1); } if (value.compare(VALUES[i])) { fprintf(stderr, "Wrong value after delete 1 !\n"); exit(1); } } /* Test the CREATE/REPLACE flags */ // Set existing with flag CREATE should fail if (verbose) fprintf(stdout, "Testing CREATE/REPLACE flags use\n"); if (pxattr::set(tfn, NAMES[0], VALUES[0], pxattr::PXATTR_CREATE)) { fprintf(stderr, "Create existing with flag CREATE succeeded !\n"); exit(1); } // Set new with flag REPLACE should fail if (pxattr::set(tfn, NAMES[1], VALUES[1], pxattr::PXATTR_REPLACE)) { fprintf(stderr, "Create new with flag REPLACE succeeded !\n"); exit(1); } // Set new with flag CREATE should succeed if (!pxattr::set(fd, NAMES[1], VALUES[1], pxattr::PXATTR_CREATE)) { fprintf(stderr, "Create new with flag CREATE failed !\n"); exit(1); } // Set existing with flag REPLACE should succeed if (!pxattr::set(fd, NAMES[0], VALUES[0], pxattr::PXATTR_REPLACE)) { fprintf(stderr, "Create existing with flag REPLACE failed !\n"); exit(1); } close(fd); unlink(tfn); if (testbackups()) exit(0); exit(1); } #endif // Testing pxattr #endif // Supported systems. recoll-1.21.5/utils/x11mon.cpp0000644000175000017500000000332712602163540015355 0ustar dockesdockes#ifndef TEST_X11MON /* Copyright (C) 2006 J.F.Dockes */ // Poll state of X11 connectibility (to detect end of user session). #include "autoconfig.h" #ifndef DISABLE_X11MON #include #include #include #include #define DODEBUG #ifdef DODEBUG #define DEBUG(X) fprintf X #else #define DEBUG(X) fprintf X #endif static Display *m_display; static bool m_ok; static jmp_buf env; static int errorHandler(Display *, XErrorEvent*) { DEBUG((stderr, "x11mon: error handler: Got X11 error\n")); m_ok = false; return 0; } static int ioErrorHandler(Display *) { DEBUG((stderr, "x11mon: error handler: Got X11 IO error\n")); m_ok = false; m_display = 0; longjmp(env, 1); } bool x11IsAlive() { // Xlib always exits on IO errors. Need a setjmp to avoid this (will jump // from IO error handler instead of returning). if (setjmp(env)) { DEBUG((stderr, "x11IsAlive: Long jump\n")); return false; } if (m_display == 0) { signal(SIGPIPE, SIG_IGN); XSetErrorHandler(errorHandler); XSetIOErrorHandler(ioErrorHandler); if ((m_display = XOpenDisplay(0)) == 0) { DEBUG((stderr, "x11IsAlive: cant connect\n")); m_ok = false; return false; } } m_ok = true; bool sync= XSynchronize(m_display, true); XNoOp(m_display); XSynchronize(m_display, sync); return m_ok; } #else bool x11IsAlive() { return true; } #endif /* DISABLE_X11MON */ #else // Test driver #include #include #include #include "x11mon.h" int main(int argc, char **argv) { for (;;) { if (!x11IsAlive()) { fprintf(stderr, "x11IsAlive failed\n"); } else { fprintf(stderr, "x11IsAlive Ok\n"); } sleep(1); } } #endif recoll-1.21.5/utils/Makefile0000644000175000017500000001446112602163572015174 0ustar dockesdockesdepth = .. include $(depth)/mk/sysconf # Use a static link for some of the utility programs so that they can be # executed independantly of the installed version of recoll. None of them # are part of the official distrib anyway LIBRECOLL = ../lib/librecoll.a PROGS = pxattr trclosefrom trecrontab \ trnetcon trcopyfile trcircache trmd5 trreadfile trfileudi \ trconftree wipedir smallut trfstreewalk trpathut transcode trbase64 \ trmimeparse trexecmd utf8iter idfile all: librecoll PXATTROBJS = trpxattr.o pxattr.o pxattr: $(PXATTROBJS) $(CXX) -o pxattr $(PXATTROBJS) trpxattr.o : pxattr.cpp $(CXX) -c $(CXXFLAGS) -DTEST_PXATTR -o $@ pxattr.cpp ECRONTAB_OBJS= trecrontab.o trecrontab : $(ECRONTAB_OBJS) $(CXX) -o trecrontab $(ECRONTAB_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trecrontab.o : ecrontab.cpp ecrontab.h $(CXX) -o trecrontab.o -c $(ALL_CXXFLAGS) \ -DTEST_ECRONTAB ecrontab.cpp CLOSEFROM_OBJS= trclosefrom.o trclosefrom : $(CLOSEFROM_OBJS) $(CXX) -o trclosefrom $(CLOSEFROM_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trclosefrom.o : closefrom.cpp closefrom.h $(CXX) -o trclosefrom.o -c $(ALL_CXXFLAGS) \ -DTEST_CLOSEFROM closefrom.cpp FSTREEWALK_OBJS= trfstreewalk.o trfstreewalk : $(FSTREEWALK_OBJS) $(CXX) -o trfstreewalk $(FSTREEWALK_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trfstreewalk.o : fstreewalk.cpp fstreewalk.h $(CXX) -o trfstreewalk.o -c $(ALL_CXXFLAGS) \ -DTEST_FSTREEWALK fstreewalk.cpp APPFORMIME_OBJS= trappformime.o trappformime : $(APPFORMIME_OBJS) $(CXX) -o trappformime $(APPFORMIME_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trappformime.o : appformime.cpp $(CXX) -o trappformime.o -c $(ALL_CXXFLAGS) \ -DTEST_APPFORMIME appformime.cpp READFILE_OBJS= trreadfile.o trreadfile : $(READFILE_OBJS) $(CXX) -o trreadfile $(READFILE_OBJS) $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trreadfile.o : readfile.cpp readfile.h $(CXX) -o trreadfile.o -c $(ALL_CXXFLAGS) \ -DTEST_READFILE readfile.cpp CPUCONF_OBJS= trcpuconf.o trcpuconf : $(CPUCONF_OBJS) $(CXX) -o trcpuconf $(CPUCONF_OBJS) $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trcpuconf.o : cpuconf.cpp cpuconf.h $(CXX) -o trcpuconf.o -c $(ALL_CXXFLAGS) -DTEST_CPUCONF cpuconf.cpp CIRCACHE_OBJS= trcircache.o trcircache : $(CIRCACHE_OBJS) $(CXX) -o trcircache $(CIRCACHE_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) -lz trcircache.o : circache.cpp circache.h $(CXX) -o trcircache.o -c $(ALL_CXXFLAGS) \ -DTEST_CIRCACHE circache.cpp COPYFILE_OBJS= trcopyfile.o trcopyfile : $(COPYFILE_OBJS) $(CXX) -o trcopyfile $(COPYFILE_OBJS) $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trcopyfile.o : copyfile.cpp copyfile.h $(CXX) -o trcopyfile.o -c $(ALL_CXXFLAGS) \ -DTEST_COPYFILE copyfile.cpp MD5_OBJS= trmd5.o md5.o trmd5 : $(MD5_OBJS) $(CXX) -o trmd5 $(MD5_OBJS) $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trmd5.o : md5ut.cpp md5ut.h md5.h $(CXX) -o trmd5.o -c $(ALL_CXXFLAGS) -DTEST_MD5 md5ut.cpp PATHUT_OBJS= trpathut.o trpathut : $(PATHUT_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trpathut $(PATHUT_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trpathut.o : pathut.cpp pathut.h $(CXX) -o trpathut.o -c $(ALL_CXXFLAGS) -DTEST_PATHUT pathut.cpp NETCON_OBJS= trnetcon.o trnetcon : $(NETCON_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trnetcon $(NETCON_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trnetcon.o : netcon.cpp netcon.h $(CXX) -o trnetcon.o -c $(ALL_CXXFLAGS) -DTEST_NETCON netcon.cpp FILEUDI_OBJS= trfileudi.o trfileudi : $(FILEUDI_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trfileudi $(FILEUDI_OBJS) trfileudi.o : fileudi.cpp fileudi.h $(CXX) -o trfileudi.o -c $(ALL_CXXFLAGS) -DTEST_FILEUDI fileudi.cpp EXECMD_OBJS= trexecmd.o trexecmd : $(EXECMD_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trexecmd $(EXECMD_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trexecmd.o : execmd.cpp execmd.h $(CXX) -o trexecmd.o -c $(ALL_CXXFLAGS) -DTEST_EXECMD execmd.cpp TRANSCODE_OBJS= trtranscode.o transcode : $(TRANSCODE_OBJS) $(CXX) $(ALL_CXXFLAGS) -o transcode $(TRANSCODE_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trtranscode.o : transcode.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_TRANSCODE -c -o trtranscode.o \ transcode.cpp IDFILE_OBJS= tridfile.o idfile : $(IDFILE_OBJS) $(CXX) $(ALL_CXXFLAGS) -o idfile $(IDFILE_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) tridfile.o : idfile.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_IDFILE -c -o tridfile.o idfile.cpp MIMEPARSE_OBJS= trmimeparse.o trmimeparse : $(MIMEPARSE_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trmimeparse $(MIMEPARSE_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trmimeparse.o : mimeparse.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_MIMEPARSE -c -o trmimeparse.o \ mimeparse.cpp SMALLUT_OBJS= trsmallut.o ../lib/smallut.o smallut : $(SMALLUT_OBJS) smallut.h $(CXX) $(ALL_CXXFLAGS) -o smallut $(SMALLUT_OBJS) \ $(LIBRECOLL) $(LIBICONV) trsmallut.o : smallut.cpp smallut.h $(CXX) $(ALL_CXXFLAGS) -DTEST_SMALLUT -c -o trsmallut.o smallut.cpp ../lib/smallut.o: smallut.cpp smallut.h cd ../lib;make smallut.o WIPEDIR_OBJS= trwipedir.o wipedir : $(WIPEDIR_OBJS) $(CXX) $(ALL_CXXFLAGS) -o wipedir $(WIPEDIR_OBJS) $(LIBICONV) $(LIBSYS) trwipedir.o : wipedir.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_WIPEDIR -c -o trwipedir.o wipedir.cpp UTF8ITER_OBJS= trutf8iter.o utf8iter : $(UTF8ITER_OBJS) $(CXX) $(ALL_CXXFLAGS) -o utf8iter $(UTF8ITER_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trutf8iter.o : utf8iter.cpp utf8iter.h $(CXX) $(ALL_CXXFLAGS) -DTEST_UTF8ITER -c -o trutf8iter.o utf8iter.cpp CONFTREE_OBJS= trconftree.o trconftree : $(CONFTREE_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trconftree $(CONFTREE_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trconftree.o : conftree.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_CONFTREE -c -o trconftree.o conftree.cpp BASE64_OBJS= trbase64.o trbase64 : $(BASE64_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trbase64 $(BASE64_OBJS) trbase64.o : base64.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_BASE64 -c -o trbase64.o base64.cpp X11MON_OBJS= trx11mon.o x11mon.o trx11mon : $(X11MON_OBJS) $(CXX) $(ALL_CXXFLAGS) -o trx11mon $(X11MON_OBJS) -L/usr/X11R6/lib -lX11 trx11mon.o : x11mon.cpp x11mon.h $(CXX) -o trx11mon.o -c $(ALL_CXXFLAGS) -DTEST_X11MON x11mon.cpp x11mon.o: x11mon.cpp $(CXX) -c -I/usr/X11R6/include $(ALL_CXXFLAGS) x11mon.cpp include $(depth)/mk/commontargets recoll-1.21.5/utils/refcntr.h0000644000175000017500000000252212602163572015343 0ustar dockesdockes#ifndef _REFCNTR_H_ #define _REFCNTR_H_ // See Stroustrup C++ 3rd ed, p. 783 template class RefCntr { X *rep; int *pcount; public: RefCntr() : rep(0), pcount(0) {} explicit RefCntr(X *pp) : rep(pp), pcount(new int(1)) {} RefCntr(const RefCntr &r) : rep(r.rep), pcount(r.pcount) { if (pcount) (*pcount)++; } RefCntr& operator=(const RefCntr& r) { if (rep == r.rep) return *this; if (pcount && --(*pcount) == 0) { delete rep; delete pcount; } rep = r.rep; pcount = r.pcount; if (pcount) (*pcount)++; return *this; } void release() { if (pcount && --(*pcount) == 0) { delete rep; delete pcount; } rep = 0; pcount = 0; } void reset() { release(); } ~RefCntr() { release(); } X *operator->() {return rep;} X *getptr() const {return rep;} X *get() const {return rep;} const X *getconstptr() const {return rep;} int getcnt() const {return pcount ? *pcount : 0;} bool isNull() const {return rep == 0;} bool isNotNull() const {return rep != 0;} operator bool() const {return rep != 0;} }; #endif /*_REFCNTR_H_ */ recoll-1.21.5/utils/utf8iter.h0000644000175000017500000001646312602163572015463 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _UTF8ITER_H_INCLUDED_ #define _UTF8ITER_H_INCLUDED_ #ifdef UTF8ITER_CHECK #include "assert.h" #endif #include /** * A small helper class to iterate over utf8 strings. This is not an * STL iterator and does not much error checking. It is designed purely * for recoll usage, where the utf-8 string comes out of iconv in most cases * and is assumed legal. We just try to catch cases where there would be * a risk of crash. */ class Utf8Iter { public: Utf8Iter(const std::string &in) : m_s(in), m_cl(0), m_pos(0), m_charpos(0) { update_cl(); } const std::string& buffer() const {return m_s;} void rewind() { m_cl = 0; m_pos = 0; m_charpos = 0; update_cl(); } /** "Direct" access. Awfully inefficient as we skip from start or current * position at best. This can only be useful for a lookahead from the * current position */ unsigned int operator[](unsigned int charpos) const { std::string::size_type mypos = 0; unsigned int mycp = 0; if (charpos >= m_charpos) { mypos = m_pos; mycp = m_charpos; } int l; while (mypos < m_s.length() && mycp != charpos) { l = get_cl(mypos); if (l <= 0 || !poslok(mypos, l) || !checkvalidat(mypos, l)) return (unsigned int)-1; mypos += l; ++mycp; } if (mypos < m_s.length() && mycp == charpos) { l = get_cl(mypos); if (poslok(mypos, l) && checkvalidat(mypos, l)) return getvalueat(mypos, l); } return (unsigned int)-1; } /** Increment current position to next utf-8 char */ std::string::size_type operator++(int) { // Note: m_cl may be zero at eof if user's test not right // this shouldn't crash the program until actual data access #ifdef UTF8ITER_CHECK assert(m_cl != 0); #endif if (m_cl == 0) return std::string::npos; m_pos += m_cl; m_charpos++; update_cl(); return m_pos; } /** operator* returns the ucs4 value as a machine integer*/ unsigned int operator*() { #ifdef UTF8ITER_CHECK assert(m_cl > 0); #endif return m_cl == 0 ? (unsigned int)-1 : getvalueat(m_pos, m_cl); } /** Append current utf-8 possibly multi-byte character to string param. This needs to be fast. No error checking. */ unsigned int appendchartostring(std::string &out) const { #ifdef UTF8ITER_CHECK assert(m_cl != 0); #endif out.append(&m_s[m_pos], m_cl); return m_cl; } /** Return current character as string */ operator std::string() { #ifdef UTF8ITER_CHECK assert(m_cl != 0); #endif return m_cl > 0 ? m_s.substr(m_pos, m_cl) : std::string(); } bool eof() const { return m_pos == m_s.length(); } bool error() const { return m_cl == 0; } /** Return current byte offset in input string */ std::string::size_type getBpos() const { return m_pos; } /** Return current character length */ std::string::size_type getBlen() const { return m_cl; } /** Return current unicode character offset in input string */ std::string::size_type getCpos() const { return m_charpos; } private: // String we're working with const std::string& m_s; // Character length at current position. A value of zero indicates // an error. unsigned int m_cl; // Current byte offset in string. std::string::size_type m_pos; // Current character position unsigned int m_charpos; // Check position and cl against string length bool poslok(std::string::size_type p, int l) const { #ifdef UTF8ITER_CHECK assert(p != std::string::npos && l > 0 && p + l <= m_s.length()); #endif return p != std::string::npos && l > 0 && p + l <= m_s.length(); } // Update current char length in object state, check // for errors inline void update_cl() { m_cl = 0; if (m_pos >= m_s.length()) return; m_cl = get_cl(m_pos); if (!poslok(m_pos, m_cl)) { // Used to set eof here for safety, but this is bad because it // basically prevents the caller to discriminate error and eof. // m_pos = m_s.length(); m_cl = 0; return; } if (!checkvalidat(m_pos, m_cl)) { m_cl = 0; } } inline bool checkvalidat(std::string::size_type p, int l) const { switch (l) { case 1: return (unsigned char)m_s[p] < 128; case 2: return (((unsigned char)m_s[p]) & 224) == 192 && (((unsigned char)m_s[p+1]) & 192) == 128; case 3: return (((unsigned char)m_s[p]) & 240) == 224 && (((unsigned char)m_s[p+1]) & 192) == 128 && (((unsigned char)m_s[p+2]) & 192) == 128 ; case 4: return (((unsigned char)m_s[p]) & 248) == 240 && (((unsigned char)m_s[p+1]) & 192) == 128 && (((unsigned char)m_s[p+2]) & 192) == 128 && (((unsigned char)m_s[p+3]) & 192) == 128 ; default: return false; } } // Get character byte length at specified position. Returns 0 for error. inline int get_cl(std::string::size_type p) const { unsigned int z = (unsigned char)m_s[p]; if (z <= 127) { return 1; } else if ((z & 224) == 192) { return 2; } else if ((z & 240) == 224) { return 3; } else if ((z & 248) == 240) { return 4; } #ifdef UTF8ITER_CHECK assert(z <= 127 || (z & 224) == 192 || (z & 240) == 224 || (z & 248) == 240); #endif return 0; } // Compute value at given position. No error checking. inline unsigned int getvalueat(std::string::size_type p, int l) const { switch (l) { case 1: #ifdef UTF8ITER_CHECK assert((unsigned char)m_s[p] < 128); #endif return (unsigned char)m_s[p]; case 2: #ifdef UTF8ITER_CHECK assert( ((unsigned char)m_s[p] & 224) == 192 && ((unsigned char)m_s[p+1] & 192) == 128 ); #endif return ((unsigned char)m_s[p] - 192) * 64 + (unsigned char)m_s[p+1] - 128 ; case 3: #ifdef UTF8ITER_CHECK assert( (((unsigned char)m_s[p]) & 240) == 224 && (((unsigned char)m_s[p+1]) & 192) == 128 && (((unsigned char)m_s[p+2]) & 192) == 128 ); #endif return ((unsigned char)m_s[p] - 224) * 4096 + ((unsigned char)m_s[p+1] - 128) * 64 + (unsigned char)m_s[p+2] - 128; case 4: #ifdef UTF8ITER_CHECK assert( (((unsigned char)m_s[p]) & 248) == 240 && (((unsigned char)m_s[p+1]) & 192) == 128 && (((unsigned char)m_s[p+2]) & 192) == 128 && (((unsigned char)m_s[p+3]) & 192) == 128 ); #endif return ((unsigned char)m_s[p]-240)*262144 + ((unsigned char)m_s[p+1]-128)*4096 + ((unsigned char)m_s[p+2]-128)*64 + (unsigned char)m_s[p+3]-128; default: #ifdef UTF8ITER_CHECK assert(l <= 4); #endif return (unsigned int)-1; } } }; #endif /* _UTF8ITER_H_INCLUDED_ */ recoll-1.21.5/utils/cpuconf.cpp0000644000175000017500000000405612602163572015674 0ustar dockesdockes/* Copyright (C) 2013 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_CPUCONF #include "autoconfig.h" #include "cpuconf.h" #include "execmd.h" #include "smallut.h" #if defined(__gnu_linux__) bool getCpuConf(CpuConf& conf) { vector cmdv = create_vector("sh")("-c") ("egrep ^processor /proc/cpuinfo | wc -l"); string result; if (!ExecCmd::backtick(cmdv, result)) return false; conf.ncpus = atoi(result.c_str()); if (conf.ncpus < 1 || conf.ncpus > 100) conf.ncpus = 1; return true; } #elif defined(__FreeBSD__) bool getCpuConf(CpuConf& conf) { vector cmdv = create_vector("sysctl")("hw.ncpu"); string result; if (!ExecCmd::backtick(cmdv, result)) return false; conf.ncpus = atoi(result.c_str()); if (conf.ncpus < 1 || conf.ncpus > 100) conf.ncpus = 1; return true; } //#elif defined(__APPLE__) #else // Any other system // Generic, pretend there is one bool getCpuConf(CpuConf& cpus) { cpus.ncpus = 1; return true; } #endif #else // TEST_CPUCONF #include #include using namespace std; #include "cpuconf.h" // Test driver int main(int argc, const char **argv) { CpuConf cpus; if (!getCpuConf(cpus)) { cerr << "getCpuConf failed" << endl; exit(1); } cout << "Cpus: " << cpus.ncpus << endl; exit(0); } #endif // TEST_CPUCONF recoll-1.21.5/utils/rclionice.cpp0000644000175000017500000000307312602163540016177 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "rclionice.h" #include "execmd.h" #include "debuglog.h" using namespace std; bool rclionice(const string& clss, const string& cdata) { string ionicexe; if (!ExecCmd::which("ionice", ionicexe)) { // ionice not found, bail out LOGDEB0(("rclionice: ionice not found\n")); return false; } vector args; args.push_back("-c"); args.push_back(clss); if (!cdata.empty()) { args.push_back("-n"); args.push_back(cdata); } char cpid[100]; sprintf(cpid, "%d", getpid()); args.push_back("-p"); args.push_back(cpid); ExecCmd cmd; int status = cmd.doexec(ionicexe, args); if (status) { LOGERR(("rclionice: failed, status 0x%x\n", status)); return false; } return true; } recoll-1.21.5/utils/closefrom.h0000644000175000017500000000211412602163540015661 0ustar dockesdockes#ifndef _closefrom_h_included_ #define _closefrom_h_included_ /* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Close all descriptors >= fd */ extern int libclf_closefrom(int fd); /* Retrieve max open fd. This might be the actual max open one (not thread-safe) or a system max value. */ extern int libclf_maxfd(int flags=0); #endif /* _closefrom_h_included_ */ recoll-1.21.5/utils/rclionice.h0000644000175000017500000000173112602163540015643 0ustar dockesdockes/* Copyright (C) 2011 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RCLIONICE_H_INCLUDED_ #define _RCLIONICE_H_INCLUDED_ #include using std::string; extern bool rclionice(const string& clss, const string& classdata); #endif /* _RCLIONICE_H_INCLUDED_ */ recoll-1.21.5/utils/copyfile.cpp0000644000175000017500000001507512602163572016054 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_COPYFILE #include #include #include #include #include #include #include #include #include #include "copyfile.h" #include "debuglog.h" using namespace std; #define CPBSIZ 8192 bool copyfile(const char *src, const char *dst, string &reason, int flags) { int sfd = -1; int dfd = -1; bool ret = false; char buf[CPBSIZ]; int oflags = O_WRONLY|O_CREAT|O_TRUNC; LOGDEB(("copyfile: %s to %s\n", src, dst)); if ((sfd = ::open(src, O_RDONLY)) < 0) { reason += string("open ") + src + ": " + strerror(errno); goto out; } if (flags & COPYFILE_EXCL) { oflags |= O_EXCL; } if ((dfd = ::open(dst, oflags, 0644)) < 0) { reason += string("open/creat ") + dst + ": " + strerror(errno); // If we fail because of an open/truncate error, we do not // want to unlink the file, we might succeed... flags |= COPYFILE_NOERRUNLINK; goto out; } for (;;) { int didread; didread = ::read(sfd, buf, CPBSIZ); if (didread < 0) { reason += string("read src ") + src + ": " + strerror(errno); goto out; } if (didread == 0) break; if (::write(dfd, buf, didread) != didread) { reason += string("write dst ") + src + ": " + strerror(errno); goto out; } } ret = true; out: if (ret == false && !(flags©FILE_NOERRUNLINK)) ::unlink(dst); if (sfd >= 0) ::close(sfd); if (dfd >= 0) ::close(dfd); return ret; } bool stringtofile(const string& dt, const char *dst, string& reason, int flags) { LOGDEB(("stringtofile:\n")); int dfd = -1; bool ret = false; int oflags = O_WRONLY|O_CREAT|O_TRUNC; LOGDEB(("stringtofile: %u bytes to %s\n", (unsigned int)dt.size(), dst)); if (flags & COPYFILE_EXCL) { oflags |= O_EXCL; } if ((dfd = ::open(dst, oflags, 0644)) < 0) { reason += string("open/creat ") + dst + ": " + strerror(errno); // If we fail because of an open/truncate error, we do not // want to unlink the file, we might succeed... flags |= COPYFILE_NOERRUNLINK; goto out; } if (::write(dfd, dt.c_str(), size_t(dt.size())) != ssize_t(dt.size())) { reason += string("write dst ") + ": " + strerror(errno); goto out; } ret = true; out: if (ret == false && !(flags©FILE_NOERRUNLINK)) ::unlink(dst); if (dfd >= 0) ::close(dfd); return ret; } bool renameormove(const char *src, const char *dst, string &reason) { // First try rename(2). If this succeeds we're done. If this fails // with EXDEV, try to copy. Unix really should have a library function // for this. if (rename(src, dst) == 0) { return true; } if (errno != EXDEV) { reason += string("rename(2) failed: ") + strerror(errno); return false; } struct stat st; if (stat(src, &st) < 0) { reason += string("Can't stat ") + src + " : " + strerror(errno); return false; } if (!copyfile(src, dst, reason)) return false; struct stat st1; if (stat(dst, &st1) < 0) { reason += string("Can't stat ") + dst + " : " + strerror(errno); return false; } // Try to preserve modes, owner, times. This may fail for a number // of reasons if ((st1.st_mode & 0777) != (st.st_mode & 0777)) { if (chmod(dst, st.st_mode&0777) != 0) { reason += string("Chmod ") + dst + "Error : " + strerror(errno); } } if (st.st_uid != st1.st_uid || st.st_gid != st1.st_gid) { if (chown(dst, st.st_uid, st.st_gid) != 0) { reason += string("Chown ") + dst + "Error : " + strerror(errno); } } struct timeval times[2]; times[0].tv_sec = st.st_atime; times[0].tv_usec = 0; times[1].tv_sec = st.st_mtime; times[1].tv_usec = 0; utimes(dst, times); // All ok, get rid of origin if (unlink(src) < 0) { reason += string("Can't unlink ") + src + "Error : " + strerror(errno); } return true; } #else #include #include #include #include #include #include "copyfile.h" using namespace std; static int op_flags; #define OPT_MOINS 0x1 #define OPT_m 0x2 #define OPT_e 0x4 static const char *thisprog; static char usage [] = "trcopyfile [-m] src dst\n" " -m : move instead of copying\n" " -e : fail if dest exists (only for copy)\n" "\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } int main(int argc, const char **argv) { thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'm': op_flags |= OPT_m; break; case 'e': op_flags |= OPT_e; break; default: Usage(); break; } argc--; argv++; } if (argc != 2) Usage(); string src = *argv++;argc--; string dst = *argv++;argc--; bool ret; string reason; if (op_flags & OPT_m) { ret = renameormove(src.c_str(), dst.c_str(), reason); } else { int flags = 0; if (op_flags & OPT_e) { flags |= COPYFILE_EXCL; } ret = copyfile(src.c_str(), dst.c_str(), reason, flags); } if (!ret) { cerr << reason << endl; exit(1); } else { cout << "Succeeded" << endl; if (!reason.empty()) { cout << "Warnings: " << reason << endl; } exit(0); } } #endif recoll-1.21.5/utils/smallut.cpp0000644000175000017500000010632512602164432015716 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_SMALLUT #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "unordered_defs.h" using namespace std; #include "smallut.h" #include "utf8iter.h" #include "hldata.h" #include "cstr.h" void map_ss_cp_noshr(const map s, map *d) { for (map::const_iterator it= s.begin(); it != s.end(); it++) { d->insert( pair(string(it->first.begin(), it->first.end()), string(it->second.begin(), it->second.end()))); } } int stringicmp(const string & s1, const string& s2) { string::const_iterator it1 = s1.begin(); string::const_iterator it2 = s2.begin(); int size1 = s1.length(), size2 = s2.length(); char c1, c2; if (size1 < size2) { while (it1 != s1.end()) { c1 = ::toupper(*it1); c2 = ::toupper(*it2); if (c1 != c2) { return c1 > c2 ? 1 : -1; } ++it1; ++it2; } return size1 == size2 ? 0 : -1; } else { while (it2 != s2.end()) { c1 = ::toupper(*it1); c2 = ::toupper(*it2); if (c1 != c2) { return c1 > c2 ? 1 : -1; } ++it1; ++it2; } return size1 == size2 ? 0 : 1; } } void stringtolower(string& io) { string::iterator it = io.begin(); string::iterator ite = io.end(); while (it != ite) { *it = ::tolower(*it); it++; } } string stringtolower(const string& i) { string o = i; stringtolower(o); return o; } extern int stringisuffcmp(const string& s1, const string& s2) { string::const_reverse_iterator r1 = s1.rbegin(), re1 = s1.rend(), r2 = s2.rbegin(), re2 = s2.rend(); while (r1 != re1 && r2 != re2) { char c1 = ::toupper(*r1); char c2 = ::toupper(*r2); if (c1 != c2) { return c1 > c2 ? 1 : -1; } ++r1; ++r2; } return 0; } // s1 is already lowercase int stringlowercmp(const string & s1, const string& s2) { string::const_iterator it1 = s1.begin(); string::const_iterator it2 = s2.begin(); int size1 = s1.length(), size2 = s2.length(); char c2; if (size1 < size2) { while (it1 != s1.end()) { c2 = ::tolower(*it2); if (*it1 != c2) { return *it1 > c2 ? 1 : -1; } ++it1; ++it2; } return size1 == size2 ? 0 : -1; } else { while (it2 != s2.end()) { c2 = ::tolower(*it2); if (*it1 != c2) { return *it1 > c2 ? 1 : -1; } ++it1; ++it2; } return size1 == size2 ? 0 : 1; } } // s1 is already uppercase int stringuppercmp(const string & s1, const string& s2) { string::const_iterator it1 = s1.begin(); string::const_iterator it2 = s2.begin(); int size1 = s1.length(), size2 = s2.length(); char c2; if (size1 < size2) { while (it1 != s1.end()) { c2 = ::toupper(*it2); if (*it1 != c2) { return *it1 > c2 ? 1 : -1; } ++it1; ++it2; } return size1 == size2 ? 0 : -1; } else { while (it2 != s2.end()) { c2 = ::toupper(*it2); if (*it1 != c2) { return *it1 > c2 ? 1 : -1; } ++it1; ++it2; } return size1 == size2 ? 0 : 1; } } // Compare charset names, removing the more common spelling variations bool samecharset(const string &cs1, const string &cs2) { string mcs1, mcs2; // Remove all - and _, turn to lowecase for (unsigned int i = 0; i < cs1.length();i++) { if (cs1[i] != '_' && cs1[i] != '-') { mcs1 += ::tolower(cs1[i]); } } for (unsigned int i = 0; i < cs2.length();i++) { if (cs2[i] != '_' && cs2[i] != '-') { mcs2 += ::tolower(cs2[i]); } } return mcs1 == mcs2; } template bool stringToStrings(const string &s, T &tokens, const string& addseps) { string current; tokens.clear(); enum states {SPACE, TOKEN, INQUOTE, ESCAPE}; states state = SPACE; for (unsigned int i = 0; i < s.length(); i++) { switch (s[i]) { case '"': switch(state) { case SPACE: state=INQUOTE; continue; case TOKEN: current += '"'; continue; case INQUOTE: tokens.insert(tokens.end(), current); current.clear(); state = SPACE; continue; case ESCAPE: current += '"'; state = INQUOTE; continue; } break; case '\\': switch(state) { case SPACE: case TOKEN: current += '\\'; state=TOKEN; continue; case INQUOTE: state = ESCAPE; continue; case ESCAPE: current += '\\'; state = INQUOTE; continue; } break; case ' ': case '\t': case '\n': case '\r': switch(state) { case SPACE: continue; case TOKEN: tokens.insert(tokens.end(), current); current.clear(); state = SPACE; continue; case INQUOTE: case ESCAPE: current += s[i]; continue; } break; default: if (!addseps.empty() && addseps.find(s[i]) != string::npos) { switch(state) { case ESCAPE: state = INQUOTE; break; case INQUOTE: break; case SPACE: tokens.insert(tokens.end(), string(1, s[i])); continue; case TOKEN: tokens.insert(tokens.end(), current); current.erase(); tokens.insert(tokens.end(), string(1, s[i])); state = SPACE; continue; } } else switch(state) { case ESCAPE: state = INQUOTE; break; case SPACE: state = TOKEN; break; case TOKEN: case INQUOTE: break; } current += s[i]; } } switch(state) { case SPACE: break; case TOKEN: tokens.insert(tokens.end(), current); break; case INQUOTE: case ESCAPE: return false; } return true; } template bool stringToStrings >(const string &, list &, const string&); template bool stringToStrings >(const string &, vector &,const string&); template bool stringToStrings >(const string &, set &, const string&); template bool stringToStrings > (const string &, STD_UNORDERED_SET &, const string&); template void stringsToString(const T &tokens, string &s) { for (typename T::const_iterator it = tokens.begin(); it != tokens.end(); it++) { bool hasblanks = false; if (it->find_first_of(" \t\n") != string::npos) hasblanks = true; if (it != tokens.begin()) s.append(1, ' '); if (hasblanks) s.append(1, '"'); for (unsigned int i = 0; i < it->length(); i++) { char car = it->at(i); if (car == '"') { s.append(1, '\\'); s.append(1, car); } else { s.append(1, car); } } if (hasblanks) s.append(1, '"'); } } template void stringsToString >(const list &, string &); template void stringsToString >(const vector &,string &); template void stringsToString >(const set &, string &); template string stringsToString(const T &tokens) { string out; stringsToString(tokens, out); return out; } template string stringsToString >(const list &); template string stringsToString >(const vector &); template string stringsToString >(const set &); template void stringsToCSV(const T &tokens, string &s, char sep) { s.erase(); for (typename T::const_iterator it = tokens.begin(); it != tokens.end(); it++) { bool needquotes = false; if (it->empty() || it->find_first_of(string(1, sep) + "\"\n") != string::npos) needquotes = true; if (it != tokens.begin()) s.append(1, sep); if (needquotes) s.append(1, '"'); for (unsigned int i = 0; i < it->length(); i++) { char car = it->at(i); if (car == '"') { s.append(2, '"'); } else { s.append(1, car); } } if (needquotes) s.append(1, '"'); } } template void stringsToCSV >(const list &, string &, char); template void stringsToCSV >(const vector &,string &, char); void stringToTokens(const string& str, vector& tokens, const string& delims, bool skipinit) { string::size_type startPos = 0, pos; // Skip initial delims, return empty if this eats all. if (skipinit && (startPos = str.find_first_not_of(delims, 0)) == string::npos) { return; } while (startPos < str.size()) { // Find next delimiter or end of string (end of token) pos = str.find_first_of(delims, startPos); // Add token to the vector and adjust start if (pos == string::npos) { tokens.push_back(str.substr(startPos)); break; } else if (pos == startPos) { // Dont' push empty tokens after first if (tokens.empty()) tokens.push_back(string()); startPos = ++pos; } else { tokens.push_back(str.substr(startPos, pos - startPos)); startPos = ++pos; } } } bool stringToBool(const string &s) { if (s.empty()) return false; if (isdigit(s[0])) { int val = atoi(s.c_str()); return val ? true : false; } if (s.find_first_of("yYtT") == 0) return true; return false; } void trimstring(string &s, const char *ws) { string::size_type pos = s.find_first_not_of(ws); if (pos == string::npos) { s.clear(); return; } s.replace(0, pos, string()); pos = s.find_last_not_of(ws); if (pos != string::npos && pos != s.length()-1) s.replace(pos+1, string::npos, string()); } // Remove some chars and replace them with spaces string neutchars(const string &str, const string &chars) { string out; neutchars(str, out, chars); return out; } void neutchars(const string &str, string &out, const string& chars) { string::size_type startPos, pos; for (pos = 0;;) { // Skip initial chars, break if this eats all. if ((startPos = str.find_first_not_of(chars, pos)) == string::npos) break; // Find next delimiter or end of string (end of token) pos = str.find_first_of(chars, startPos); // Add token to the output. Note: token cant be empty here if (pos == string::npos) { out += str.substr(startPos); } else { out += str.substr(startPos, pos - startPos) + " "; } } } /* Truncate a string to a given maxlength, avoiding cutting off midword * if reasonably possible. Note: we could also use textsplit, stopping when * we have enough, this would be cleanly utf8-aware but would remove * punctuation */ static const string cstr_SEPAR = " \t\n\r-:.;,/[]{}"; string truncate_to_word(const string &input, string::size_type maxlen) { string output; if (input.length() <= maxlen) { output = input; } else { output = input.substr(0, maxlen); string::size_type space = output.find_last_of(cstr_SEPAR); // Original version only truncated at space if space was found after // maxlen/2. But we HAVE to truncate at space, else we'd need to do // utf8 stuff to avoid truncating at multibyte char. In any case, // not finding space means that the text probably has no value. // Except probably for Asian languages, so we may want to fix this // one day if (space == string::npos) { output.erase(); } else { output.erase(space); } } return output; } void utf8truncate(string &s, int maxlen) { if (s.size() <= string::size_type(maxlen)) return; Utf8Iter iter(s); int pos = 0; while (iter++ != string::npos) if (iter.getBpos() < string::size_type(maxlen)) pos = iter.getBpos(); s.erase(pos); } // Escape things that would look like markup string escapeHtml(const string &in) { string out; for (string::size_type pos = 0; pos < in.length(); pos++) { switch(in.at(pos)) { case '<': out += "<"; break; case '&': out += "&"; break; default: out += in.at(pos); } } return out; } string escapeShell(const string &in) { string out; out += "\""; for (string::size_type pos = 0; pos < in.length(); pos++) { switch(in.at(pos)) { case '$': out += "\\$"; break; case '`': out += "\\`"; break; case '"': out += "\\\""; break; case '\n': out += "\\\n"; break; case '\\': out += "\\\\"; break; default: out += in.at(pos); } } out += "\""; return out; } // Substitute printf-like percent cmds inside a string bool pcSubst(const string& in, string& out, const map& subs) { string::const_iterator it; for (it = in.begin(); it != in.end();it++) { if (*it == '%') { if (++it == in.end()) { out += '%'; break; } if (*it == '%') { out += '%'; continue; } map::const_iterator tr; if ((tr = subs.find(*it)) != subs.end()) { out += tr->second; } else { // We used to do "out += *it;" here but this does not make // sense } } else { out += *it; } } return true; } bool pcSubst(const string& in, string& out, const map& subs) { out.erase(); string::size_type i; for (i = 0; i < in.size(); i++) { if (in[i] == '%') { if (++i == in.size()) { out += '%'; break; } if (in[i] == '%') { out += '%'; continue; } string key = ""; if (in[i] == '(') { if (++i == in.size()) { out += string("%("); break; } string::size_type j = in.find_first_of(")", i); if (j == string::npos) { // ??concatenate remaining part and stop out += in.substr(i-2); break; } key = in.substr(i, j-i); i = j; } else { key = in[i]; } map::const_iterator tr; if ((tr = subs.find(key)) != subs.end()) { out += tr->second; } else { // Substitute to nothing, that's the reasonable thing to do // instead of keeping the %(key) // out += key.size()==1? key : string("(") + key + string(")"); } } else { out += in[i]; } } return true; } // Convert byte count into unit (KB/MB...) appropriate for display string displayableBytes(off_t size) { char sizebuf[50]; const char *unit; double roundable = 0; if (size < 1000) { unit = " B "; roundable = double(size); } else if (size < 1E6) { unit = " KB "; roundable = double(size) / 1E3; } else if (size < 1E9) { unit = " MB "; roundable = double(size) / 1E6; } else { unit = " GB "; roundable = double(size) / 1E9; } size = round(roundable); sprintf(sizebuf, "%lld" "%s", (long long)size, unit); return string(sizebuf); } string breakIntoLines(const string& in, unsigned int ll, unsigned int maxlines) { string query = in; string oq; unsigned int nlines = 0; while (query.length() > 0) { string ss = query.substr(0, ll); if (ss.length() == ll) { string::size_type pos = ss.find_last_of(" "); if (pos == string::npos) { pos = query.find_first_of(" "); if (pos != string::npos) ss = query.substr(0, pos+1); else ss = query; } else { ss = ss.substr(0, pos+1); } } // This cant happen, but anyway. Be very sure to avoid an infinite loop if (ss.length() == 0) { oq = query; break; } oq += ss + "\n"; if (nlines++ >= maxlines) { oq += " ... \n"; break; } query= query.substr(ss.length()); } return oq; } //////////////////// #if 0 // Internal redefinition of system time interface to help with dependancies struct m_timespec { time_t tv_sec; long tv_nsec; }; #endif #ifndef CLOCK_REALTIME typedef int clockid_t; #define CLOCK_REALTIME 1 #endif #define MILLIS(TV) ( (long)(((TV).tv_sec - m_secs) * 1000L + \ ((TV).tv_nsec - m_nsecs) / 1000000)) #define MICROS(TV) ( (long)(((TV).tv_sec - m_secs) * 1000000L + \ ((TV).tv_nsec - m_nsecs) / 1000)) #define NANOS(TV) ( (long long)(((TV).tv_sec - m_secs) * 1000000000LL + \ ((TV).tv_nsec - m_nsecs))) // Using clock_gettime() is nice because it gives us ns res and it helps with // computing threads work times, but it's also a pita because it forces linking // with -lrt. So keep it optional. And not on the mac anyway // #define USE_CLOCK_GETTIME #ifdef __APPLE__ #undef USE_CLOCK_GETTIME #endif #ifndef USE_CLOCK_GETTIME #include #endif static void gettime(clockid_t clk_id, struct timespec *ts) { #ifndef USE_CLOCK_GETTIME struct timeval tv; gettimeofday(&tv, 0); ts->tv_sec = tv.tv_sec; ts->tv_nsec = tv.tv_usec * 1000; #else clock_gettime(clk_id, ts); #endif } ///// End system interface // Note: this not protected against multithread access and not reentrant, but // this is mostly debug code, and it won't crash, just show bad results. Also // the frozen thing is not used that much static timespec frozen_tv; void Chrono::refnow() { gettime(CLOCK_REALTIME, &frozen_tv); } Chrono::Chrono() { restart(); } // Reset and return value before rest in milliseconds long Chrono::restart() { struct timespec tv; gettime(CLOCK_REALTIME, &tv); long ret = MILLIS(tv); m_secs = tv.tv_sec; m_nsecs = tv.tv_nsec; return ret; } // Get current timer value, milliseconds long Chrono::millis(int frozen) { return nanos() / 1000000; } // long Chrono::micros(int frozen) { return nanos() / 1000; } long long Chrono::nanos(int frozen) { if (frozen) { return NANOS(frozen_tv); } else { struct timespec tv; gettime(CLOCK_REALTIME, &tv); return NANOS(tv); } } float Chrono::secs(int frozen) { struct timespec tv; gettime(CLOCK_REALTIME, &tv); float secs = (float)(frozen?frozen_tv.tv_sec:tv.tv_sec - m_secs); float nsecs = (float)(frozen?frozen_tv.tv_nsec:tv.tv_nsec - m_nsecs); return secs + nsecs * 1e-9; } // Date is Y[-M[-D]] static bool parsedate(vector::const_iterator& it, vector::const_iterator end, DateInterval *dip) { dip->y1 = dip->m1 = dip->d1 = dip->y2 = dip->m2 = dip->d2 = 0; if (it->length() > 4 || !it->length() || it->find_first_not_of("0123456789") != string::npos) { return false; } if (it == end || sscanf(it++->c_str(), "%d", &dip->y1) != 1) { return false; } if (it == end || *it == "/") return true; if (*it++ != "-") { return false; } if (it->length() > 2 || !it->length() || it->find_first_not_of("0123456789") != string::npos) { return false; } if (it == end || sscanf(it++->c_str(), "%d", &dip->m1) != 1) { return false; } if (it == end || *it == "/") return true; if (*it++ != "-") { return false; } if (it->length() > 2 || !it->length() || it->find_first_not_of("0123456789") != string::npos) { return false; } if (it == end || sscanf(it++->c_str(), "%d", &dip->d1) != 1) { return -1; } return true; } // Called with the 'P' already processed. Period ends at end of string // or at '/'. We dont' do a lot effort at validation and will happily // accept 10Y1Y4Y (the last wins) static bool parseperiod(vector::const_iterator& it, vector::const_iterator end, DateInterval *dip) { dip->y1 = dip->m1 = dip->d1 = dip->y2 = dip->m2 = dip->d2 = 0; while (it != end) { int value; if (it->find_first_not_of("0123456789") != string::npos) { return false; } if (sscanf(it++->c_str(), "%d", &value) != 1) { return false; } if (it == end || it->empty()) return false; switch (it->at(0)) { case 'Y': case 'y': dip->y1 = value;break; case 'M': case 'm': dip->m1 = value;break; case 'D': case 'd': dip->d1 = value;break; default: return false; } it++; if (it == end) return true; if (*it == "/") { return true; } } return true; } static void cerrdip(const string& s, DateInterval *dip) { cerr << s << dip->y1 << "-" << dip->m1 << "-" << dip->d1 << "/" << dip->y2 << "-" << dip->m2 << "-" << dip->d2 << endl; } // Compute date + period. Won't work out of the unix era. // or pre-1970 dates. Just convert everything to unixtime and // seconds (with average durations for months/years), add and convert // back static bool addperiod(DateInterval *dp, DateInterval *pp) { struct tm tm; // Create a struct tm with possibly non normalized fields and let // timegm sort it out memset(&tm, 0, sizeof(tm)); tm.tm_year = dp->y1 - 1900 + pp->y1; tm.tm_mon = dp->m1 + pp->m1 -1; tm.tm_mday = dp->d1 + pp->d1; #ifdef sun time_t tres = mktime(&tm); localtime_r(&tres, &tm); #else time_t tres = timegm(&tm); gmtime_r(&tres, &tm); #endif dp->y1 = tm.tm_year + 1900; dp->m1 = tm.tm_mon + 1; dp->d1 = tm.tm_mday; //cerrdip("Addperiod return", dp); return true; } int monthdays(int mon, int year) { switch (mon) { // We are returning a few two many 29 days februaries, no problem case 2: return (year % 4) == 0 ? 29 : 28; case 1:case 3:case 5:case 7: case 8:case 10:case 12: return 31; default: return 30; } } bool parsedateinterval(const string& s, DateInterval *dip) { vector vs; dip->y1 = dip->m1 = dip->d1 = dip->y2 = dip->m2 = dip->d2 = 0; DateInterval p1, p2, d1, d2; p1 = p2 = d1 = d2 = *dip; bool hasp1 = false, hasp2 = false, hasd1 = false, hasd2 = false, hasslash = false; if (!stringToStrings(s, vs, "PYMDpymd-/")) { return false; } if (vs.empty()) return false; vector::const_iterator it = vs.begin(); if (*it == "P" || *it == "p") { it++; if (!parseperiod(it, vs.end(), &p1)) { return false; } hasp1 = true; //cerrdip("p1", &p1); p1.y1 = -p1.y1; p1.m1 = -p1.m1; p1.d1 = -p1.d1; } else if (*it == "/") { hasslash = true; goto secondelt; } else { if (!parsedate(it, vs.end(), &d1)) { return false; } hasd1 = true; } // Got one element and/or / secondelt: if (it != vs.end()) { if (*it != "/") { return false; } hasslash = true; it++; if (it == vs.end()) { // ok } else if (*it == "P" || *it == "p") { it++; if (!parseperiod(it, vs.end(), &p2)) { return false; } hasp2 = true; } else { if (!parsedate(it, vs.end(), &d2)) { return false; } hasd2 = true; } } // 2 periods dont' make sense if (hasp1 && hasp2) { return false; } // Nothing at all doesn't either if (!hasp1 && !hasd1 && !hasp2 && !hasd2) { return false; } // Empty part means today IF other part is period, else means // forever (stays at 0) time_t now = time(0); struct tm *tmnow = gmtime(&now); if ((!hasp1 && !hasd1) && hasp2) { d1.y1 = 1900 + tmnow->tm_year; d1.m1 = tmnow->tm_mon + 1; d1.d1 = tmnow->tm_mday; hasd1 = true; } else if ((!hasp2 && !hasd2) && hasp1) { d2.y1 = 1900 + tmnow->tm_year; d2.m1 = tmnow->tm_mon + 1; d2.d1 = tmnow->tm_mday; hasd2 = true; } // Incomplete dates have different meanings depending if there is // a period or not (actual or infinite indicated by a / + empty) // // If there is no explicit period, an incomplete date indicates a // period of the size of the uncompleted elements. Ex: 1999 // actually means 1999/P12M // // If there is a period, the incomplete date should be extended // to the beginning or end of the unspecified portion. Ex: 1999/ // means 1999-01-01/ and /1999 means /1999-12-31 if (hasd1) { if (!(hasslash || hasp2)) { if (d1.m1 == 0) { p2.m1 = 12; d1.m1 = 1; d1.d1 = 1; } else if (d1.d1 == 0) { d1.d1 = 1; p2.d1 = monthdays(d1.m1, d1.y1); } hasp2 = true; } else { if (d1.m1 == 0) { d1.m1 = 1; d1.d1 = 1; } else if (d1.d1 == 0) { d1.d1 = 1; } } } // if hasd2 is true we had a / if (hasd2) { if (d2.m1 == 0) { d2.m1 = 12; d2.d1 = 31; } else if (d2.d1 == 0) { d2.d1 = monthdays(d2.m1, d2.y1); } } if (hasp1) { // Compute d1 d1 = d2; if (!addperiod(&d1, &p1)) { return false; } } else if (hasp2) { // Compute d2 d2 = d1; if (!addperiod(&d2, &p2)) { return false; } } dip->y1 = d1.y1; dip->m1 = d1.m1; dip->d1 = d1.d1; dip->y2 = d2.y1; dip->m2 = d2.m1; dip->d2 = d2.d1; return true; } void catstrerror(string *reason, const char *what, int _errno) { if (!reason) return; if (what) reason->append(what); reason->append(": errno: "); char nbuf[20]; sprintf(nbuf, "%d", _errno); reason->append(nbuf); reason->append(" : "); #ifdef sun // Note: sun strerror is noted mt-safe ?? reason->append(strerror(_errno)); #else #define ERRBUFSZ 200 char errbuf[ERRBUFSZ]; // There are 2 versions of strerror_r. // - The GNU one returns a pointer to the message (maybe // static storage or supplied buffer). // - The POSIX one always stores in supplied buffer and // returns 0 on success. As the possibility of error and // error code are not specified, we're basically doomed // cause we can't use a test on the 0 value to know if we // were returned a pointer... // Also couldn't find an easy way to disable the gnu version without // changing the cxxflags globally, so forget it. Recent gnu lib versions // normally default to the posix version. // At worse we get no message at all here. errbuf[0] = 0; strerror_r(_errno, errbuf, ERRBUFSZ); reason->append(errbuf); #endif } void HighlightData::toString(std::string& out) { out.append("\nUser terms (orthograph): "); for (std::set::const_iterator it = uterms.begin(); it != uterms.end(); it++) { out.append(" [").append(*it).append("]"); } out.append("\nUser terms to Query terms:"); for (map::const_iterator it = terms.begin(); it != terms.end(); it++) { out.append("[").append(it->first).append("]->["); out.append(it->second).append("] "); } out.append("\nGroups: "); char cbuf[200]; sprintf(cbuf, "Groups size %d grpsugidx size %d ugroups size %d", int(groups.size()), int(grpsugidx.size()), int(ugroups.size())); out.append(cbuf); unsigned int ugidx = (unsigned int)-1; for (unsigned int i = 0; i < groups.size(); i++) { if (ugidx != grpsugidx[i]) { ugidx = grpsugidx[i]; out.append("\n("); for (unsigned int j = 0; j < ugroups[ugidx].size(); j++) { out.append("[").append(ugroups[ugidx][j]).append("] "); } out.append(") ->"); } out.append(" {"); for (unsigned int j = 0; j < groups[i].size(); j++) { out.append("[").append(groups[i][j]).append("]"); } sprintf(cbuf, "%d", slacks[i]); out.append("}").append(cbuf); } out.append("\n"); } void HighlightData::append(const HighlightData& hl) { uterms.insert(hl.uterms.begin(), hl.uterms.end()); terms.insert(hl.terms.begin(), hl.terms.end()); size_t ugsz0 = ugroups.size(); ugroups.insert(ugroups.end(), hl.ugroups.begin(), hl.ugroups.end()); groups.insert(groups.end(), hl.groups.begin(), hl.groups.end()); slacks.insert(slacks.end(), hl.slacks.begin(), hl.slacks.end()); for (std::vector::const_iterator it = hl.grpsugidx.begin(); it != hl.grpsugidx.end(); it++) { grpsugidx.push_back(*it + ugsz0); } } static const char *vlang_to_code[] = { "be", "cp1251", "bg", "cp1251", "cs", "iso-8859-2", "el", "iso-8859-7", "he", "iso-8859-8", "hr", "iso-8859-2", "hu", "iso-8859-2", "ja", "eucjp", "kk", "pt154", "ko", "euckr", "lt", "iso-8859-13", "lv", "iso-8859-13", "pl", "iso-8859-2", "rs", "iso-8859-2", "ro", "iso-8859-2", "ru", "koi8-r", "sk", "iso-8859-2", "sl", "iso-8859-2", "sr", "iso-8859-2", "th", "iso-8859-11", "tr", "iso-8859-9", "uk", "koi8-u", }; string langtocode(const string& lang) { static STD_UNORDERED_MAP lang_to_code; if (lang_to_code.empty()) { for (unsigned int i = 0; i < sizeof(vlang_to_code) / sizeof(char *); i += 2) { lang_to_code[vlang_to_code[i]] = vlang_to_code[i+1]; } } STD_UNORDERED_MAP::const_iterator it = lang_to_code.find(lang); // Use cp1252 by default... if (it == lang_to_code.end()) return cstr_cp1252; return it->second; } string localelang() { const char *lang = getenv("LANG"); if (lang == 0 || *lang == 0 || !strcmp(lang, "C") || !strcmp(lang, "POSIX")) return "en"; string locale(lang); string::size_type under = locale.find_first_of("_"); if (under == string::npos) return locale; return locale.substr(0, under); } // Initialization for static stuff to be called from main thread before going // multiple void smallut_init_mt() { // Init langtocode() static table langtocode(""); } #else // TEST_SMALLUT #include using namespace std; #include #include "smallut.h" struct spair { const char *s1; const char *s2; }; struct spair pairs[] = { {"", ""}, {"", "a"}, {"a", ""}, {"a", "a"}, {"A", "a"}, {"a", "A"}, {"A", "A"}, {"12", "12"}, {"a", "ab"}, {"ab", "a"}, {"A", "Ab"}, {"a", "Ab"}, }; int npairs = sizeof(pairs) / sizeof(struct spair); struct spair suffpairs[] = { {"", ""}, {"", "a"}, {"a", ""}, {"a", "a"}, {"toto.txt", ".txt"}, {"TXT", "toto.txt"}, {"toto.txt", ".txt1"}, {"toto.txt1", ".txt"}, }; int nsuffpairs = sizeof(suffpairs) / sizeof(struct spair); // Periods test strings const char* periods[] = { "2001", // Year 2001 "2001/", // 2001 or later "2001/P3Y", // 2001 -> 2004 or 2005, ambiguous "2001-01-01/P3Y", // 01-2001 -> 01 2004 "2001-03-03/2001-05-01", // Explicit one "P3M/", // 3 months ago to now "P1Y1M/2001-03-01", // 2000-02-01/2001-03-01 "/2001", // From the epoch to the end of 2001 }; const int nperiods = sizeof(periods) / sizeof(char*); const char *thisprog; static void cerrdip(const string& s, DateInterval *dip) { cerr << s << dip->y1 << "-" << dip->m1 << "-" << dip->d1 << "/" << dip->y2 << "-" << dip->m2 << "-" << dip->d2 << endl; } int main(int argc, char **argv) { thisprog = *argv++;argc--; #if 1 if (argc <=0 ) { cerr << "Usage: smallut " << endl; exit(1); } string s = *argv++;argc--; vector vs; if (!stringToStrings(s, vs, ":-()")) { cerr << "Bad entry" << endl; exit(1); } for (vector::const_iterator it = vs.begin(); it != vs.end(); it++) cerr << "[" << *it << "] "; cerr << endl; exit(0); #elif 0 if (argc <=0 ) { cerr << "Usage: smallut " << endl; exit(1); } string s = *argv++;argc--; DateInterval di; if (!parsedateinterval(s, &di)) { cerr << "Parse failed" << endl; exit(1); } cerrdip("", &di); exit(0); #elif 0 DateInterval di; for (int i = 0; i < nperiods; i++) { if (!parsedateinterval(periods[i], &di)) { cerr << "Parsing failed for [" << periods[i] << "]" << endl; } else { cerrdip(string(periods[i]).append(" : "), &di); } } exit(0); #elif 0 for (int i = 0; i < npairs; i++) { { int c = stringicmp(pairs[i].s1, pairs[i].s2); printf("'%s' %s '%s' ", pairs[i].s1, c == 0 ? "==" : c < 0 ? "<" : ">", pairs[i].s2); } { int cl = stringlowercmp(pairs[i].s1, pairs[i].s2); printf("L '%s' %s '%s' ", pairs[i].s1, cl == 0 ? "==" : cl < 0 ? "<" : ">", pairs[i].s2); } { int cu = stringuppercmp(pairs[i].s1, pairs[i].s2); printf("U '%s' %s '%s' ", pairs[i].s1, cu == 0 ? "==" : cu < 0 ? "<" : ">", pairs[i].s2); } printf("\n"); } #elif 0 for (int i = 0; i < nsuffpairs; i++) { int c = stringisuffcmp(suffpairs[i].s1, suffpairs[i].s2); printf("[%s] %s [%s] \n", suffpairs[i].s1, c == 0 ? "matches" : c < 0 ? "<" : ">", suffpairs[i].s2); } #elif 0 std::string testit("\303\251l\303\251gant"); for (int sz = 10; sz >= 0; sz--) { utf8truncate(testit, sz); cout << testit << endl; } #elif 0 std::string testit("ligne\ndeuxieme ligne\r3eme ligne\r\n"); cout << "[" << neutchars(testit, "\r\n") << "]" << endl; string i, o; cout << "neutchars(null) is [" << neutchars(i, "\r\n") << "]" << endl; #elif 0 map substs; substs["a"] = "A_SUBST"; substs["title"] = "TITLE_SUBST"; string in = "a: %a title: %(title) pcpc: %% %"; string out; pcSubst(in, out, substs); cout << in << " => " << out << endl; in = "unfinished: %(unfinished"; pcSubst(in, out, substs); cout << in << " => " << out << endl; in = "unfinished: %("; pcSubst(in, out, substs); cout << in << " => " << out << endl; in = "empty: %()"; pcSubst(in, out, substs); cout << in << " => " << out << endl; substs.clear(); in = "a: %a title: %(title) pcpc: %% %"; pcSubst(in, out, substs); cout << "After map clear: " << in << " => " << out << endl; #elif 0 list tokens; tokens.push_back(""); tokens.push_back("a,b"); tokens.push_back("simple value"); tokens.push_back("with \"quotes\""); string out; stringsToCSV(tokens, out); cout << "CSV line: [" << out << "]" << endl; #endif } #endif recoll-1.21.5/utils/conftree.h0000644000175000017500000004034012602163540015500 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CONFTREE_H_ #define _CONFTREE_H_ /** * A simple configuration file implementation. * * Configuration files have lines like 'name = value', and/or like '[subkey]' * * Lines like '[subkey]' in the file define subsections, with independant * configuration namespaces. Only subsections holding at least one variable are * significant (empty subsections may be deleted during an update, or not) * * Whitespace around name and value is insignificant. * * The names are case-sensitive but don't depend on it, this might change * * Values can be queried for, or set. * * Any line without a '=' is a comment (a line like #var = value * actually assigns a variable named '#var', which is not a big issue) * * A configuration object can be created empty or by reading from a file or * a string. * All 'set' calls cause an immediate rewrite of the backing object if any * (file or string) * * The ConfTree derived class interprets the subkeys as file paths and * lets subdir keys hierarchically inherit the properties from * parents. * * The ConfStack class stacks several Con(Simple/Tree) objects so that * parameters from the top of the stack override the values from lower * (useful to have central/personal config files) */ #include #include #include #include // rh7.3 likes iostream better... #if defined(__GNUC__) && __GNUC__ < 3 #include #else #include #include #endif #ifndef NO_NAMESPACES using std::string; using std::vector; using std::map; using std::istream; using std::ostream; #endif // NO_NAMESPACES #include "pathut.h" /** Internal class used for storing presentation information */ class ConfLine { public: enum Kind {CFL_COMMENT, CFL_SK, CFL_VAR}; Kind m_kind; string m_data; ConfLine(Kind k, const string& d) : m_kind(k), m_data(d) { } bool operator==(const ConfLine& o) { return o.m_kind == m_kind && o.m_data == m_data; } }; /** * Virtual base class used to define an interface mostly useful for testing */ class ConfNull { public: enum StatusCode {STATUS_ERROR=0, STATUS_RO=1, STATUS_RW=2}; virtual ~ConfNull() {}; virtual int get(const string &name, string &value, const string &sk = string()) const = 0; virtual bool hasNameAnywhere(const string& nm) const = 0; virtual int set(const string &nm, const string &val, const string &sk = string()) = 0; virtual bool ok() const = 0; virtual vector getNames(const string &sk, const char* = 0)const = 0; virtual int erase(const string &, const string &) = 0; virtual int eraseKey(const string &) = 0; virtual void showall() const {}; virtual vector getSubKeys() const = 0; virtual vector getSubKeys(bool) const = 0; virtual bool holdWrites(bool) = 0; virtual bool sourceChanged() const = 0; }; /** * Manages a simple configuration file with subsections. */ class ConfSimple : public ConfNull { public: /** * Build the object by reading content from file. * @param filename file to open * @param readonly if true open readonly, else rw * @param tildexp try tilde (home dir) expansion for subkey values */ ConfSimple(const char *fname, int readonly = 0, bool tildexp = false); /** * Build the object by reading content from a string * @param data points to the data to parse. * @param readonly if true open readonly, else rw * @param tildexp try tilde (home dir) expansion for subsection names */ ConfSimple(const string& data, int readonly = 0, bool tildexp = false); /** * Build an empty object. This will be memory only, with no backing store. * @param readonly if true open read only, else rw * @param tildexp try tilde (home dir) expansion for subsection names */ ConfSimple(int readonly = 0, bool tildexp = false); virtual ~ConfSimple() {}; /** Origin file changed. Only makes sense if we read the data from a file */ virtual bool sourceChanged() const; /** * Decide if we actually rewrite the backing-store after modifying the * tree. */ virtual bool holdWrites(bool on) { m_holdWrites = on; if (on == false) { return write(); } else return true; } /** Clear, then reparse from string */ void reparse(const string& in); /** Clear all content */ void clear() { m_submaps.clear(); m_order.clear(); } /** * Get value for named parameter, from specified subsection (looks in * global space if sk is empty). * @return 0 if name not found, 1 else */ virtual int get(const string &name, string &value, const string &sk = string()) const; /** * Set value for named parameter in specified subsection (or global) * @return 0 for error, 1 else */ virtual int set(const string &nm, const string &val, const string &sk = string()); /** * Remove name and value from config */ virtual int erase(const string &name, const string &sk); /** * Erase all names under given subkey (and subkey itself) */ virtual int eraseKey(const string &sk); virtual StatusCode getStatus() const; virtual bool ok() const {return getStatus() != STATUS_ERROR;} /** * Walk the configuration values, calling function for each. * The function is called with a null nm when changing subsections (the * value is then the new subsection name) * @return WALK_STOP when/if the callback returns WALK_STOP, * WALK_CONTINUE else (got to end of config) */ enum WalkerCode {WALK_STOP, WALK_CONTINUE}; virtual WalkerCode sortwalk(WalkerCode (*wlkr)(void *cldata, const string &nm, const string &val), void *clidata) const; /** Print all values to stdout */ virtual void showall() const; /** Return all names in given submap. */ virtual vector getNames(const string &sk, const char *pattern = 0) const; /** Check if name is present in any submap. This is relatively expensive * but useful for saving further processing sometimes */ virtual bool hasNameAnywhere(const string& nm) const; /** * Return all subkeys */ virtual vector getSubKeys(bool) const { return getSubKeys(); } virtual vector getSubKeys() const; /** Test for subkey existence */ virtual bool hasSubKey(const string& sk) const { return m_submaps.find(sk) != m_submaps.end(); } virtual string getFilename() const {return m_filename;} /** * Copy constructor. Expensive but less so than a full rebuild */ ConfSimple(const ConfSimple &rhs) : ConfNull() { if ((status = rhs.status) == STATUS_ERROR) return; m_filename = rhs.m_filename; m_submaps = rhs.m_submaps; } /** * Assignement. This is expensive */ ConfSimple& operator=(const ConfSimple &rhs) { if (this != &rhs && (status = rhs.status) != STATUS_ERROR) { m_filename = rhs.m_filename; m_submaps = rhs.m_submaps; } return *this; } /** * Write in file format to out */ bool write(ostream& out) const; protected: bool dotildexpand; StatusCode status; private: // Set if we're working with a file string m_filename; time_t m_fmtime; // Configuration data submaps (one per subkey, the main data has a // null subkey) map > m_submaps; // Presentation data. We keep the comments, empty lines and // variable and subkey ordering information in there (for // rewriting the file while keeping hand-edited information) vector m_order; // Control if we're writing to the backing store bool m_holdWrites; void parseinput(istream& input); bool write(); // Internal version of set: no RW checking virtual int i_set(const string &nm, const string &val, const string &sk, bool init = false); bool i_changed(bool upd); }; /** * This is a configuration class which attaches tree-like signification to the * submap names. * * If a given variable is not found in the specified section, it will be * looked up the tree of section names, and in the global space. * * submap names should be '/' separated paths (ie: /sub1/sub2). No checking * is done, but else the class adds no functionality to ConfSimple. * * NOTE: contrary to common behaviour, the global or root space is NOT * designated by '/' but by '' (empty subkey). A '/' subkey will not * be searched at all. * * Note: getNames() : uses ConfSimple method, this does *not* inherit * names from englobing submaps. */ class ConfTree : public ConfSimple { public: /* The constructors just call ConfSimple's, asking for key tilde * expansion */ ConfTree(const char *fname, int readonly = 0) : ConfSimple(fname, readonly, true) {} ConfTree(const string &data, int readonly = 0) : ConfSimple(data, readonly, true) {} ConfTree(int readonly = 0) : ConfSimple(readonly, true) {} virtual ~ConfTree() {}; ConfTree(const ConfTree& r) : ConfSimple(r) {}; ConfTree& operator=(const ConfTree& r) { ConfSimple::operator=(r); return *this; } /** * Get value for named parameter, from specified subsection, or its * parents. * @return 0 if name not found, 1 else */ virtual int get(const string &name, string &value, const string &sk) const; }; /** * Use several config files, trying to get values from each in order. Used to * have a central config, with possible overrides from more specific * (ie personal) ones. * * Notes: it's ok for some of the files not to exist, but the last * one must or we generate an error. We open all trees readonly, except the * topmost one if requested. All writes go to the topmost file. Note that * erase() won't work except for parameters only defined in the topmost * file (it erases only from there). */ template class ConfStack : public ConfNull { public: /// Construct from configuration file names. The earler /// files in have priority when fetching values. Only the first /// file will be updated if ro is false and set() is used. ConfStack(const vector &fns, bool ro = true) { construct(fns, ro); } /// Construct out of single file name and multiple directories ConfStack(const string& nm, const vector& dirs, bool ro = true) { vector fns; for (vector::const_iterator it = dirs.begin(); it != dirs.end(); it++){ fns.push_back(path_cat(*it, nm)); } ConfStack::construct(fns, ro); } ConfStack(const ConfStack &rhs) : ConfNull() { init_from(rhs); } virtual ~ConfStack() { clear(); m_ok = false; } ConfStack& operator=(const ConfStack &rhs) { if (this != &rhs){ clear(); m_ok = rhs.m_ok; if (m_ok) init_from(rhs); } return *this; } virtual bool sourceChanged() const { typename vector::const_iterator it; for (it = m_confs.begin();it != m_confs.end();it++) { if ((*it)->sourceChanged()) return true; } return false; } virtual int get(const string &name, string &value, const string &sk, bool shallow) const { typename vector::const_iterator it; for (it = m_confs.begin();it != m_confs.end();it++) { if ((*it)->get(name, value, sk)) return true; if (shallow) break; } return false; } virtual int get(const string &name, string &value, const string &sk) const { return get(name, value, sk, false); } virtual bool hasNameAnywhere(const string& nm) const { typename vector::const_iterator it; for (it = m_confs.begin();it != m_confs.end();it++) { if ((*it)->hasNameAnywhere(nm)) return true; } return false; } virtual int set(const string &nm, const string &val, const string &sk = string()) { if (!m_ok) return 0; //LOGDEB2(("ConfStack::set [%s]:[%s] -> [%s]\n", sk.c_str(), //nm.c_str(), val.c_str())); // Avoid adding unneeded entries: if the new value matches the // one out from the deeper configs, erase or dont add it // from/to the topmost file typename vector::iterator it = m_confs.begin(); it++; while (it != m_confs.end()) { string value; if ((*it)->get(nm, value, sk)) { // This file has value for nm/sk. If it is the same as the new // one, no need for an entry in the topmost file. Else, stop // looking and add the new entry if (value == val) { m_confs.front()->erase(nm, sk); return true; } else { break; } } it++; } return m_confs.front()->set(nm, val, sk); } virtual int erase(const string &nm, const string &sk) { return m_confs.front()->erase(nm, sk); } virtual int eraseKey(const string &sk) { return m_confs.front()->eraseKey(sk); } virtual bool holdWrites(bool on) { return m_confs.front()->holdWrites(on); } virtual vector getNames(const string &sk, const char *pattern = 0) const { return getNames1(sk, pattern, false); } virtual vector getNamesShallow(const string &sk, const char *patt = 0) const { return getNames1(sk, patt, true); } virtual vector getNames1(const string &sk, const char *pattern, bool shallow) const { vector nms; typename vector::const_iterator it; bool skfound = false; for (it = m_confs.begin(); it != m_confs.end(); it++) { if ((*it)->hasSubKey(sk)) { skfound = true; vector lst = (*it)->getNames(sk, pattern); nms.insert(nms.end(), lst.begin(), lst.end()); } if (shallow && skfound) break; } sort(nms.begin(), nms.end()); vector::iterator uit = unique(nms.begin(), nms.end()); nms.resize(uit - nms.begin()); return nms; } virtual vector getSubKeys() const { return getSubKeys(false); } virtual vector getSubKeys(bool shallow) const { vector sks; typename vector::const_iterator it; for (it = m_confs.begin(); it != m_confs.end(); it++) { vector lst; lst = (*it)->getSubKeys(); sks.insert(sks.end(), lst.begin(), lst.end()); if (shallow) break; } sort(sks.begin(), sks.end()); vector::iterator uit = unique(sks.begin(), sks.end()); sks.resize(uit - sks.begin()); return sks; } virtual bool ok() const {return m_ok;} private: bool m_ok; vector m_confs; /// Reset to pristine void clear() { typename vector::iterator it; for (it = m_confs.begin();it != m_confs.end();it++) { delete (*it); } m_confs.clear(); } /// Common code to initialize from existing object void init_from(const ConfStack &rhs) { if ((m_ok = rhs.m_ok)) { typename vector::const_iterator it; for (it = rhs.m_confs.begin();it != rhs.m_confs.end();it++) { m_confs.push_back(new T(**it)); } } } /// Common construct from file names code void construct(const vector &fns, bool ro) { vector::const_iterator it; bool lastok = false; for (it = fns.begin(); it != fns.end(); it++) { T* p = new T(it->c_str(), ro); if (p && p->ok()) { m_confs.push_back(p); lastok = true; } else { delete p; lastok = false; if (!ro) { // For rw acccess, the topmost file needs to be ok // (ro is set to true after the first file) break; } } ro = true; } m_ok = lastok; } }; #endif /*_CONFTREE_H_ */ recoll-1.21.5/utils/fileudi.cpp0000644000175000017500000000763712602163572015670 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_FILEUDI #include #include #include "fileudi.h" #include "md5.h" #include "base64.h" using std::string; // Debug only #ifdef PATHHASH_HEX static void md5hexprint(const unsigned char hash[16], string &out) { out.erase(); out.reserve(33); static const char hex[]="0123456789abcdef"; for (int i = 0; i < 16; i++) { out.append(1, hex[hash[i] >> 4]); out.append(1, hex[hash[i] & 0x0f]); } } #endif // Size of the hashed result (base64 of 16 bytes of md5, minus 2 pad chars) #define HASHLEN 22 // Convert longish paths by truncating and appending hash of path // The full length of the base64-encoded (minus pad) of the md5 is 22 chars // We append this to the truncated path void pathHash(const std::string &path, std::string &phash, unsigned int maxlen) { if (maxlen < HASHLEN) { fprintf(stderr, "pathHash: internal error: requested len too small\n"); abort(); } if (path.length() <= maxlen) { phash = path; return; } // Compute the md5 unsigned char chash[16]; MD5_CTX ctx; MD5Init(&ctx); MD5Update(&ctx, (const unsigned char *)(path.c_str()+maxlen-HASHLEN), path.length() - (maxlen - HASHLEN)); MD5Final(chash, &ctx); #ifdef PATHHASH_HEX string hex; md5hexprint(chash, hex); printf("hex [%s]\n", hex.c_str()); #endif // Encode it to ascii. This shouldn't be strictly necessary as // xapian terms can be binary string hash; base64_encode(string((char *)chash, 16), hash); // We happen to know there will be 2 pad chars in there, that we // don't need as this won't ever be decoded. Resulting length is 22 hash.resize(hash.length() - 2); // Truncate path and append hash phash = path.substr(0, maxlen - HASHLEN) + hash; } // Maximum length for path/unique terms stored for each document. We truncate // longer paths and uniquize them by appending a hashed value. This // is done to avoid xapian max term length limitations, not // to gain space (we gain very little even with very short maxlens // like 30). The xapian max key length seems to be around 250. // The value for PATHHASHLEN includes the length of the hash part. #define PATHHASHLEN 150 // Compute the unique term used to link documents to their file-system source: // Hashed path + possible internal path void make_udi(const string& fn, const string& ipath, string &udi) { string s(fn); // Note that we append a "|" in all cases. Historical, could be removed s.append("|"); s.append(ipath); pathHash(s, udi, PATHHASHLEN); return; } #else // TEST_FILEUDI #include #include #include "fileudi.h" using namespace std; int main(int argc, char **argv) { string path="/usr/lib/toto.cpp"; string ipath = "1:2:3:4:5:10"; string udi; make_udi(path, ipath, udi); printf("udi [%s]\n", udi.c_str()); path = "/some/much/too/looooooooooooooong/path/bla/bla/bla" "/looooooooooooooong/path/bla/bla/bla/llllllllllllllllll" "/looooooooooooooong/path/bla/bla/bla/llllllllllllllllll"; ipath = "1:2:3:4:5:10" "1:2:3:4:5:10" "1:2:3:4:5:10"; make_udi(path, ipath, udi); printf("udi [%s]\n", udi.c_str()); } #endif // TEST_FILEUDI recoll-1.21.5/utils/pathut.h0000644000175000017500000001351212602163572015206 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PATHUT_H_INCLUDED_ #define _PATHUT_H_INCLUDED_ #include #include #include #include #include "refcntr.h" /// Add a / at the end if none there yet. extern void path_catslash(std::string &s); /// Concatenate 2 paths extern std::string path_cat(const std::string &s1, const std::string &s2); /// Get the simple file name (get rid of any directory path prefix extern std::string path_getsimple(const std::string &s); /// Simple file name + optional suffix stripping extern std::string path_basename(const std::string &s, const std::string &suff = std::string()); /// Component after last '.' extern std::string path_suffix(const std::string &s); /// Get the father directory extern std::string path_getfather(const std::string &s); /// Get the current user's home directory extern std::string path_home(); /// Expand ~ at the beginning of std::string extern std::string path_tildexpand(const std::string &s); /// Use getcwd() to make absolute path if needed. Beware: ***this can fail*** /// we return an empty path in this case. extern std::string path_absolute(const std::string &s); /// Clean up path by removing duplicated / and resolving ../ + make it absolute extern std::string path_canon(const std::string &s, const std::string *cwd=0); /// Use glob(3) to return the file names matching pattern inside dir extern std::vector path_dirglob(const std::string &dir, const std::string pattern); /// Encode according to rfc 1738 extern std::string url_encode(const std::string& url, std::string::size_type offs = 0); /// Transcode to utf-8 if possible or url encoding, for display. extern bool printableUrl(const std::string &fcharset, const std::string &in, std::string &out); //// Convert to file path if url is like file://. This modifies the //// input (and returns a copy for convenience) extern std::string fileurltolocalpath(std::string url); /// Test for file:/// url extern bool urlisfileurl(const std::string& url); /// extern std::string url_parentfolder(const std::string& url); /// Return the host+path part of an url. This is not a general /// routine, it does the right thing only in the recoll context extern std::string url_gpath(const std::string& url); /// Stat parameter and check if it's a directory extern bool path_isdir(const std::string& path); /// Dump directory extern bool readdir(const std::string& dir, std::string& reason, std::set& entries); /** A small wrapper around statfs et al, to return percentage of disk occupation */ bool fsocc(const std::string &path, int *pc, // Percent occupied long long *avmbs = 0 // Mbs available to non-superuser. Mb=1024*1024 ); /// Retrieve the temp dir location: $RECOLL_TMPDIR else $TMPDIR else /tmp extern const std::string& tmplocation(); /// Create temporary directory (inside the temp location) extern bool maketmpdir(std::string& tdir, std::string& reason); /// mkdir -p extern bool makepath(const std::string& path); /// Temporary file class class TempFileInternal { public: TempFileInternal(const std::string& suffix); ~TempFileInternal(); const char *filename() { return m_filename.c_str(); } const std::string &getreason() { return m_reason; } void setnoremove(bool onoff) { m_noremove = onoff; } bool ok() { return !m_filename.empty(); } private: std::string m_filename; std::string m_reason; bool m_noremove; }; typedef RefCntr TempFile; /// Temporary directory class. Recursively deleted by destructor. class TempDir { public: TempDir(); ~TempDir(); const char *dirname() {return m_dirname.c_str();} const std::string &getreason() {return m_reason;} bool ok() {return !m_dirname.empty();} /// Recursively delete contents but not self. bool wipe(); private: std::string m_dirname; std::string m_reason; TempDir(const TempDir &) {} TempDir& operator=(const TempDir &) {return *this;}; }; /// Lock/pid file class. This is quite close to the pidfile_xxx /// utilities in FreeBSD with a bit more encapsulation. I'd have used /// the freebsd code if it was available elsewhere class Pidfile { public: Pidfile(const std::string& path) : m_path(path), m_fd(-1) {} ~Pidfile(); /// Open/create the pid file. /// @return 0 if ok, > 0 for pid of existing process, -1 for other error. pid_t open(); /// Write pid into the pid file /// @return 0 ok, -1 error int write_pid(); /// Close the pid file (unlocks) int close(); /// Delete the pid file int remove(); const std::string& getreason() {return m_reason;} private: std::string m_path; int m_fd; std::string m_reason; pid_t read_pid(); int flopen(); }; // Freedesktop thumbnail standard path routine // On return, path will have the appropriate value in all cases, // returns true if the file already exists extern bool thumbPathForUrl(const std::string& url, int size, std::string& path); // Must be called in main thread before starting other threads extern void pathut_init_mt(); #endif /* _PATHUT_H_INCLUDED_ */ recoll-1.21.5/utils/hldata.h0000644000175000017500000000440212602163572015134 0ustar dockesdockes#ifndef _hldata_h_included_ #define _hldata_h_included_ #include #include #include /** Store data about user search terms and their expansions. This is used * mostly for highlighting result text and walking the matches, generating * spelling suggestions. */ struct HighlightData { /** The user terms, excluding those with wildcards. This list is * intended for orthographic suggestions so the terms are always * lowercased, unaccented or not depending on the type of index * (as the spelling dictionary is generated from the index terms). */ std::set uterms; /** The db query terms linked to the uterms entry they were expanded from. * This is used for aggregating term stats when generating snippets (for * choosing the best terms, allocating slots, etc. ) */ std::map terms; /** The original user terms-or-groups. This is for display * purposes: ie when creating a menu to look for a specific * matched group inside a preview window. We want to show the * user-entered data in the menu, not some transformation, so * these are always raw, diacritics and case preserved. */ std::vector > ugroups; /** Processed/expanded terms and groups. Used for looking for * regions to highlight. Terms are just groups with 1 entry. All * terms are transformed to be compatible with index content * (unaccented and lowercased as needed depending on * configuration), and the list may include values * expanded from the original terms by stem or wildcard expansion. */ std::vector > groups; /** Group slacks. Parallel to groups */ std::vector slacks; /** Index into ugroups for each group. Parallel to groups. As a * user term or group may generate many processed/expanded terms * or groups, this is how we relate an expansion to its source. */ std::vector grpsugidx; void clear() { uterms.clear(); ugroups.clear(); groups.clear(); slacks.clear(); grpsugidx.clear(); } void append(const HighlightData&); // Print (debug) void toString(std::string& out); }; #endif /* _hldata_h_included_ */ recoll-1.21.5/utils/cancelcheck.h0000644000175000017500000000440712602163540016122 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CANCELCHECK_H_INCLUDED_ #define _CANCELCHECK_H_INCLUDED_ /** * Common cancel checking mechanism * * The CancelCheck class is used as a singleton objet (private constructor). * The single instance can be accessed as CancelCheck::instance. * It is used as follows, in an asynchronous program where there is an * interactive (or otherwise controlling) task and a long-working one: * - The control task calls setCancel(), usually as a result of user * interaction, if the worker takes too long. * - The worker task calls checkCancel() at regular intervals, possibly as * a side-effect of some other progress-reporting call. If cancellation has * been requested, this will raise an exception, to be catched and processed * wherever the worker was invoked. * The worker side must be exception-clean, but this otherwise avoids * having to set-up code to handle a special cancellation error along * the whole worker call stack. */ class CancelExcept {}; class CancelCheck { public: static CancelCheck& instance() { static CancelCheck ck; return ck; } void setCancel(bool on = true) { cancelRequested = on; } void checkCancel() { if (cancelRequested) { cancelRequested = false; throw CancelExcept(); } } bool cancelState() {return cancelRequested;} private: bool cancelRequested; CancelCheck() : cancelRequested(false) {} CancelCheck& operator=(CancelCheck&); CancelCheck(const CancelCheck&); }; #endif /* _CANCELCHECK_H_INCLUDED_ */ recoll-1.21.5/utils/ecrontab.cpp0000644000175000017500000001513412602163540016026 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_ECRONTAB #include "autoconfig.h" #include #include "ecrontab.h" #include "execmd.h" #include "smallut.h" #include "debuglog.h" // Read crontab file and split it into lines. static bool eCrontabGetLines(vector& lines) { string crontab; ExecCmd croncmd; vector args; int status; // Retrieve current crontab contents. An error here means that no // crontab exists, and is not fatal, but we return a different // status than for an empty one args.push_back("-l"); if ((status = croncmd.doexec("crontab", args, 0, &crontab))) { lines.clear(); return false; } // Split crontab into lines stringToTokens(crontab, lines, "\n"); return true; } // Concatenate lines and write crontab static bool eCrontabWriteFile(const vector& lines, string& reason) { string crontab; ExecCmd croncmd; vector args; int status; for (vector::const_iterator it = lines.begin(); it != lines.end(); it++) { crontab += *it + "\n"; } args.push_back("-"); if ((status = croncmd.doexec("crontab", args, &crontab, 0))) { char nbuf[30]; sprintf(nbuf, "0x%x", status); reason = string("Exec crontab -l failed: status: ") + nbuf; return false; } return true; } // Add / change / delete entry identified by marker and id bool editCrontab(const string& marker, const string& id, const string& sched, const string& cmd, string& reason) { vector lines; if (!eCrontabGetLines(lines)) { // Special case: cmd is empty, no crontab, don't create one if (cmd.empty()) return true; } // Remove old copy if any for (vector::iterator it = lines.begin(); it != lines.end(); it++) { // Skip comment if (it->find_first_of("#") == it->find_first_not_of(" \t")) continue; if (it->find(marker) != string::npos && it->find(id) != string::npos) { lines.erase(it); break; } } if (!cmd.empty()) { string nline = sched + " " + marker + " " + id + " " + cmd; lines.push_back(nline); } if (!eCrontabWriteFile(lines, reason)) return false; return true; } bool checkCrontabUnmanaged(const string& marker, const string& data) { vector lines; if (!eCrontabGetLines(lines)) { // No crontab, answer is no return false; } // Scan crontab for (vector::iterator it = lines.begin(); it != lines.end(); it++) { if (it->find(marker) == string::npos && it->find(data) != string::npos) { return true; } } return false; } /** Retrieve the scheduling for a crontab entry */ bool getCrontabSched(const string& marker, const string& id, vector& sched) { LOGDEB0(("getCrontabSched: marker[%s], id[%s]\n", marker.c_str(), id.c_str())); vector lines; if (!eCrontabGetLines(lines)) { // No crontab, answer is no sched.clear(); return false; } string line; for (vector::iterator it = lines.begin(); it != lines.end(); it++) { // Skip comment if (it->find_first_of("#") == it->find_first_not_of(" \t")) continue; if (it->find(marker) != string::npos && it->find(id) != string::npos) { line = *it; break; } } stringToTokens(line, sched); sched.resize(5); return true; } #else // TEST -> #include #include #include #include #include #include #include using namespace std; #include "ecrontab.h" static char *thisprog; static char usage [] = " -a add or replace crontab line \n" " -d delete crontab line \n" " -s get scheduling \n" " -c check for unmanaged lines for string\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_a 0x2 #define OPT_d 0x4 #define OPT_w 0x8 #define OPT_c 0x10 #define OPT_s 0x20 const string& marker("RCLCRON_RCLINDEX="); // Note of course the -w does not make sense for a cron entry const string& cmd0("recollindex -w "); const string& id("RECOLL_CONFDIR=\"/home/dockes/.recoll/\""); const string& sched("30 8 * 1 *"); int main(int argc, char **argv) { thisprog = argv[0]; argc--; argv++; string wt = "10"; string cmd; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'a': op_flags |= OPT_a; break; case 'c': op_flags |= OPT_c; if (argc < 2) Usage(); cmd = *(++argv); argc--; goto b1; case 'd': op_flags |= OPT_d; break; case 's': op_flags |= OPT_s; break; case 'w': op_flags |= OPT_w; if (argc < 2) Usage(); wt = *(++argv); argc--; goto b1; default: Usage(); break; } b1: argc--; argv++; } if (argc != 0) Usage(); string reason; bool status = false; if (op_flags & OPT_a) { cmd = cmd0 + wt; status = editCrontab(marker, id, sched, cmd, reason); } else if (op_flags & OPT_d) { status = editCrontab(marker, id, sched, "", reason); } else if (op_flags & OPT_s) { vector sched; if (!(status = getCrontabSched(marker, id, sched))) { cerr << "getCrontabSched failed: " << reason << endl; exit(1); } cout << "sched vec size " << sched.size() << endl; cout << "mins " << sched[0] << " hours " << sched[1] << " days of month " << sched[2] << " months " << sched[3] << " days of week " << sched[4] << endl; exit(0); } else if (op_flags & OPT_c) { if ((status = checkCrontabUnmanaged(marker, cmd))) { cerr << "crontab has unmanaged lines for " << cmd << endl; exit(1); } exit(0); } else { Usage(); } if (!status) { cerr << "editCrontab failed: " << reason << endl; exit(1); } exit(0); } #endif // TEST recoll-1.21.5/utils/pxattr.h0000644000175000017500000001133212602163540015214 0ustar dockesdockes#ifndef _pxattr_h_included_ #define _pxattr_h_included_ /* @(#$Id: pxattr.h,v 1.5 2009-01-20 13:48:34 dockes Exp $ (C) 2009 J.F.Dockes Copyright (c) 2009 Jean-Francois Dockes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include #include using std::string; using std::vector; /** * Provide a uniform C++ API for extended file attributes on Linux/FreeBSD * and MacOSX. * * We only deal with user attributes. Other namespaces are very * system-specific and would be difficult to use in a portable way. * * Linux and FreeBSD treat differently the attributes name space * segmentation: Linux uses the first name segment ("user.", "system.", ...), * FreeBSD uses an enumeration. * * We handle this by using only domain-internal names in the interface: * that is, the caller specifies the names as, ie, 'org.myapp.somename' * not 'user.org.myapp.somename'. pxattr will deal with adding/removing * the 'user.' part as needed. * * MacOsX does not segment the attribute name space. * * In order to avoid conflicts, it is recommended that attributes * names be chosen in a "reverse dns" fashion, ie: * org.recoll.indexing.status * * The interface provided should work the same way on all 3 systems, * it papers over such differences as the "list" output format, * the existence of CREATE/UPDATE distinctions, etc. * * Diagnostics: all functions return false on error, and preserve the errno * value or set it as appropriate. * * For path-based interfaces, the PXATTR_NOFOLLOW flag can be set to decide if * symbolic links will be acted on or followed. */ namespace pxattr { /** nspace might be used in the future if we support multiple namespaces.*/ enum nspace { /** User name space */ PXATTR_USER }; /** Flags can modify the behaviour of some methods */ enum flags {PXATTR_NONE=0, /** Act on link instead of following it */ PXATTR_NOFOLLOW = 1, /** Fail if existing */ PXATTR_CREATE=2, /** Fail if new */ PXATTR_REPLACE=4 }; /** * Retrieve the named attribute from path. */ bool get(const string& path, const string& name, string* value, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * Retrieve the named attribute from open file. */ bool get(int fd, const string& name, string* value, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * Set the named attribute on path. */ bool set(const string& path, const string& name, const string& value, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * Set the named attribute on open file. */ bool set(int fd, const string& name, const string& value, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * Delete the named attribute from path. */ bool del(const string& path, const string& name, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * Delete the named attribute from open file. */ bool del(int fd, const string& name, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * List attribute names from path. */ bool list(const string& path, vector* names, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * List attribute names from open file. */ bool list(int fd, vector* names, flags flags = PXATTR_NONE, nspace dom = PXATTR_USER); /** * Compute actual/system attribute name from external name * (ie: myattr->user.myattr) */ bool sysname(nspace dom, const string& pname, string* sname); /** * Compute external name from actual/system name * (ie: user.myattr->myattr) */ bool pxname(nspace dom, const string& sname, string* pname); } #endif /* _pxattr_h_included_ */ recoll-1.21.5/utils/fstreewalk.cpp0000644000175000017500000004303012602163572016401 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #ifndef TEST_FSTREEWALK #include #include #include #include #include #include #include #include #include #include #include #include "cstr.h" #include "debuglog.h" #include "pathut.h" #include "fstreewalk.h" #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ bool FsTreeWalker::o_useFnmPathname = true; const int FsTreeWalker::FtwTravMask = FtwTravNatural| FtwTravBreadth|FtwTravFilesThenDirs|FtwTravBreadthThenDepth; class DirId { public: dev_t dev; ino_t ino; DirId(dev_t d, ino_t i) : dev(d), ino(i) {} bool operator<(const DirId& r) const { return dev < r.dev || (dev == r.dev && ino < r.ino); } }; class FsTreeWalker::Internal { public: Internal(int opts) : options(opts), depthswitch(4), maxdepth(-1), errors(0) { } int options; int depthswitch; int maxdepth; int basedepth; stringstream reason; vector skippedNames; vector skippedPaths; // When doing Breadth or FilesThenDirs traversal, we keep a list // of directory paths to be processed, and we do not recurse. deque dirs; int errors; set donedirs; void logsyserr(const char *call, const string ¶m) { errors++; reason << call << "(" << param << ") : " << errno << " : " << strerror(errno) << endl; } }; FsTreeWalker::FsTreeWalker(int opts) { data = new Internal(opts); } FsTreeWalker::~FsTreeWalker() { delete data; } void FsTreeWalker::setOpts(int opts) { if (data) { data->options = opts; } } int FsTreeWalker::getOpts() { if (data) { return data->options; } else { return 0; } } void FsTreeWalker::setDepthSwitch(int ds) { if (data) { data->depthswitch = ds; } } void FsTreeWalker::setMaxDepth(int md) { if (data) { data->maxdepth = md; } } string FsTreeWalker::getReason() { string reason = data->reason.str(); data->reason.str(string()); data->errors = 0; return reason; } int FsTreeWalker::getErrCnt() { return data->errors; } bool FsTreeWalker::addSkippedName(const string& pattern) { if (find(data->skippedNames.begin(), data->skippedNames.end(), pattern) == data->skippedNames.end()) data->skippedNames.push_back(pattern); return true; } bool FsTreeWalker::setSkippedNames(const vector &patterns) { data->skippedNames = patterns; return true; } bool FsTreeWalker::inSkippedNames(const string& name) { for (vector::const_iterator it = data->skippedNames.begin(); it != data->skippedNames.end(); it++) { if (fnmatch(it->c_str(), name.c_str(), 0) == 0) { return true; } } return false; } bool FsTreeWalker::addSkippedPath(const string& ipath) { string path = (data->options & FtwNoCanon) ? ipath : path_canon(ipath); if (find(data->skippedPaths.begin(), data->skippedPaths.end(), path) == data->skippedPaths.end()) data->skippedPaths.push_back(path); return true; } bool FsTreeWalker::setSkippedPaths(const vector &paths) { data->skippedPaths = paths; for (vector::iterator it = data->skippedPaths.begin(); it != data->skippedPaths.end(); it++) if (!(data->options & FtwNoCanon)) *it = path_canon(*it); return true; } bool FsTreeWalker::inSkippedPaths(const string& path, bool ckparents) { int fnmflags = o_useFnmPathname ? FNM_PATHNAME : 0; #ifdef FNM_LEADING_DIR if (ckparents) fnmflags |= FNM_LEADING_DIR; #endif for (vector::const_iterator it = data->skippedPaths.begin(); it != data->skippedPaths.end(); it++) { #ifndef FNM_LEADING_DIR if (ckparents) { string mpath = path; while (mpath.length() > 2) { if (fnmatch(it->c_str(), mpath.c_str(), fnmflags) == 0) return true; mpath = path_getfather(mpath); } } else #endif /* FNM_LEADING_DIR */ if (fnmatch(it->c_str(), path.c_str(), fnmflags) == 0) { return true; } } return false; } static inline int slashcount(const string& p) { int n = 0; for (unsigned int i = 0; i < p.size(); i++) if (p[i] == '/') n++; return n; } FsTreeWalker::Status FsTreeWalker::walk(const string& _top, FsTreeWalkerCB& cb) { string top = (data->options & FtwNoCanon) ? _top : path_canon(_top); if ((data->options & FtwTravMask) == 0) { data->options |= FtwTravNatural; } data->basedepth = slashcount(top); // Only used for breadthxx struct stat st; // We always follow symlinks at this point. Makes more sense. if (stat(top.c_str(), &st) == -1) { // Note that we do not return an error if the stat call // fails. A temp file may have gone away. data->logsyserr("stat", top); return errno == ENOENT ? FtwOk : FtwError; } // Recursive version, using the call stack to store state. iwalk // will process files and recursively descend into subdirs in // physical order of the current directory. if ((data->options & FtwTravMask) == FtwTravNatural) { return iwalk(top, &st, cb); } // Breadth first of filesThenDirs semi-depth first order // Managing queues of directories to be visited later, in breadth or // depth order. Null marker are inserted in the queue to indicate // father directory changes (avoids computing parents all the time). data->dirs.push_back(top); Status status; while (!data->dirs.empty()) { string dir, nfather; if (data->options & (FtwTravBreadth|FtwTravBreadthThenDepth)) { // Breadth first, pop and process an older dir at the // front of the queue. This will add any child dirs at the // back dir = data->dirs.front(); data->dirs.pop_front(); if (dir.empty()) { // Father change marker. if (data->dirs.empty()) break; dir = data->dirs.front(); data->dirs.pop_front(); nfather = path_getfather(dir); if (data->options & FtwTravBreadthThenDepth) { // Check if new depth warrants switch to depth first // traversal (will happen on next loop iteration). int curdepth = slashcount(dir) - data->basedepth; if (curdepth >= data->depthswitch) { //fprintf(stderr, "SWITCHING TO DEPTH FIRST\n"); data->options &= ~FtwTravMask; data->options |= FtwTravFilesThenDirs; } } } } else { // Depth first, pop and process latest dir dir = data->dirs.back(); data->dirs.pop_back(); if (dir.empty()) { // Father change marker. if (data->dirs.empty()) break; dir = data->dirs.back(); data->dirs.pop_back(); nfather = path_getfather(dir); } } // If changing parent directory, advise our user. if (!nfather.empty()) { if (stat(nfather.c_str(), &st) == -1) { data->logsyserr("stat", nfather); return errno == ENOENT ? FtwOk : FtwError; } if ((status = cb.processone(nfather, &st, FtwDirReturn)) & (FtwStop|FtwError)) { return status; } } if (stat(dir.c_str(), &st) == -1) { data->logsyserr("stat", dir); return errno == ENOENT ? FtwOk : FtwError; } // iwalk will not recurse in this case, just process file entries // and append subdir entries to the queue. status = iwalk(dir, &st, cb); if (status != FtwOk) return status; } return FtwOk; } // Note that the 'norecurse' flag is handled as part of the directory read. // This means that we always go into the top 'walk()' parameter if it is a // directory, even if norecurse is set. Bug or Feature ? FsTreeWalker::Status FsTreeWalker::iwalk(const string &top, struct stat *stp, FsTreeWalkerCB& cb) { Status status = FtwOk; bool nullpush = false; // Tell user to process the top entry itself if (S_ISDIR(stp->st_mode)) { if ((status = cb.processone(top, stp, FtwDirEnter)) & (FtwStop|FtwError)) { return status; } } else if (S_ISREG(stp->st_mode)) { return cb.processone(top, stp, FtwRegular); } else { return status; } int curdepth = slashcount(top) - data->basedepth; if (data->maxdepth >= 0 && curdepth >= data->maxdepth) { LOGDEB1(("FsTreeWalker::iwalk: Maxdepth reached: [%s]\n", top.c_str())); return status; } // This is a directory, read it and process entries: // Detect if directory already seen. This could just be several // symlinks pointing to the same place (if FtwFollow is set), it // could also be some other kind of cycle. In any case, there is // no point in entering again. // For now, we'll ignore the "other kind of cycle" part and only monitor // this is FtwFollow is set if (data->options & FtwFollow) { DirId dirid(stp->st_dev, stp->st_ino); if (data->donedirs.find(dirid) != data->donedirs.end()) { LOGINFO(("Not processing [%s] (already seen as other path)\n", top.c_str())); return status; } data->donedirs.insert(dirid); } DIR *d = opendir(top.c_str()); if (d == 0) { data->logsyserr("opendir", top); switch (errno) { case EPERM: case EACCES: case ENOENT: goto out; default: status = FtwError; goto out; } } struct dirent *ent; while ((ent = readdir(d)) != 0) { string fn; struct stat st; // Maybe skip dotfiles if ((data->options & FtwSkipDotFiles) && ent->d_name[0] == '.') continue; // Skip . and .. if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) continue; // Skipped file names match ? if (!data->skippedNames.empty()) { if (inSkippedNames(ent->d_name)) continue; } fn = path_cat(top, ent->d_name); int statret = (data->options & FtwFollow) ? stat(fn.c_str(), &st) : lstat(fn.c_str(), &st); if (statret == -1) { data->logsyserr("stat", fn); continue; } if (!data->skippedPaths.empty()) { // We do not check the ancestors. This means that you can have // a topdirs member under a skippedPath, to index a portion of // an ignored area. This is the way it had always worked, but // this was broken by 1.13.00 and the systematic use of // FNM_LEADING_DIR if (inSkippedPaths(fn, false)) continue; } if (S_ISDIR(st.st_mode)) { if (data->options & FtwNoRecurse) { status = cb.processone(fn, &st, FtwDirEnter); } else { if (data->options & FtwTravNatural) { status = iwalk(fn, &st, cb); } else { // If first subdir, push marker to separate // from entries for other dir. This is to help // with generating DirReturn callbacks if (!nullpush) { if (!data->dirs.empty() && !data->dirs.back().empty()) data->dirs.push_back(cstr_null); nullpush = true; } data->dirs.push_back(fn); continue; } } // Note: only recursive case gets here. if (status & (FtwStop|FtwError)) goto out; if (!(data->options & FtwNoRecurse)) if ((status = cb.processone(top, &st, FtwDirReturn)) & (FtwStop|FtwError)) goto out; } else if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) { if ((status = cb.processone(fn, &st, FtwRegular)) & (FtwStop|FtwError)) { goto out; } } // We ignore other file types (devices etc...) } // readdir loop out: if (d) closedir(d); return status; } #else // TEST_FSTREEWALK #include #include #include #include #include "rclinit.h" #include "rclconfig.h" #include "fstreewalk.h" using namespace std; static int op_flags; #define OPT_MOINS 0x1 #define OPT_p 0x2 #define OPT_P 0x4 #define OPT_r 0x8 #define OPT_c 0x10 #define OPT_b 0x20 #define OPT_d 0x40 #define OPT_m 0x80 #define OPT_L 0x100 #define OPT_w 0x200 #define OPT_M 0x400 #define OPT_D 0x800 class myCB : public FsTreeWalkerCB { public: FsTreeWalker::Status processone(const string &path, const struct stat *st, FsTreeWalker::CbFlag flg) { if (flg == FsTreeWalker::FtwDirEnter) { if (op_flags & OPT_r) cout << path << endl; else cout << "[Entering " << path << "]" << endl; } else if (flg == FsTreeWalker::FtwDirReturn) { cout << "[Returning to " << path << "]" << endl; } else if (flg == FsTreeWalker::FtwRegular) { cout << path << endl; } return FsTreeWalker::FtwOk; } }; static const char *thisprog; // Note that breadth first sorting is relatively expensive: less inode // locality, more disk usage (and also more user memory usage, does // not appear here). Some typical results on a real tree with 2.6 // million entries (220MB of name data) // Recoll 1.13 // time trfstreewalk / > /data/tmp/old // real 13m32.839s user 0m4.443s sys 0m31.128s // // Recoll 1.14 // time trfstreewalk / > /data/tmp/nat; // real 13m28.685s user 0m4.430s sys 0m31.083s // time trfstreewalk -d / > /data/tmp/depth; // real 13m30.051s user 0m4.140s sys 0m33.862s // time trfstreewalk -m / > /data/tmp/mixed; // real 14m53.245s user 0m4.244s sys 0m34.494s // time trfstreewalk -b / > /data/tmp/breadth; // real 17m10.585s user 0m4.532s sys 0m35.033s static char usage [] = "trfstreewalk [-p pattern] [-P ignpath] [-r] [-c] [-L] topdir\n" " -r : norecurse\n" " -c : no path canonification\n" " -L : follow symbolic links\n" " -b : use breadth first walk\n" " -d : use almost depth first (dir files, then subdirs)\n" " -m : use breadth up to 4 deep then switch to -d\n" " -w : unset default FNM_PATHNAME when using fnmatch() to match skipped paths\n" " -M : limit depth (works with -b/m/d)\n" " -D : skip dotfiles\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } int main(int argc, const char **argv) { vector patterns; vector paths; int maxdepth = -1; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'b': op_flags |= OPT_b; break; case 'c': op_flags |= OPT_c; break; case 'd': op_flags |= OPT_d; break; case 'D': op_flags |= OPT_D; break; case 'L': op_flags |= OPT_L; break; case 'm': op_flags |= OPT_m; break; case 'M': op_flags |= OPT_M; if (argc < 2) Usage(); maxdepth = atoi(*(++argv)); argc--; goto b1; case 'p': op_flags |= OPT_p; if (argc < 2) Usage(); patterns.push_back(*(++argv)); argc--; goto b1; case 'P': op_flags |= OPT_P; if (argc < 2) Usage(); paths.push_back(*(++argv)); argc--; goto b1; case 'r': op_flags |= OPT_r; break; case 'w': op_flags |= OPT_w; break; default: Usage(); break; } b1: argc--; argv++; } if (argc != 1) Usage(); string topdir = *argv++;argc--; int opt = 0; if (op_flags & OPT_r) opt |= FsTreeWalker::FtwNoRecurse; if (op_flags & OPT_c) opt |= FsTreeWalker::FtwNoCanon; if (op_flags & OPT_L) opt |= FsTreeWalker::FtwFollow; if (op_flags & OPT_D) opt |= FsTreeWalker::FtwSkipDotFiles; if (op_flags & OPT_b) opt |= FsTreeWalker::FtwTravBreadth; else if (op_flags & OPT_d) opt |= FsTreeWalker::FtwTravFilesThenDirs; else if (op_flags & OPT_m) opt |= FsTreeWalker::FtwTravBreadthThenDepth; string reason; if (!recollinit(0, 0, reason)) { fprintf(stderr, "Init failed: %s\n", reason.c_str()); exit(1); } if (op_flags & OPT_w) { FsTreeWalker::setNoFnmPathname(); } FsTreeWalker walker; walker.setOpts(opt); walker.setMaxDepth(maxdepth); walker.setSkippedNames(patterns); walker.setSkippedPaths(paths); myCB cb; walker.walk(topdir, cb); if (walker.getErrCnt() > 0) cout << walker.getReason(); } #endif // TEST_FSTREEWALK recoll-1.21.5/utils/circache.cpp0000644000175000017500000015105212615072544016001 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_CIRCACHE #include "autoconfig.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cstr.h" #include "circache.h" #include "conftree.h" #include "debuglog.h" #include "smallut.h" #include "md5.h" using namespace std; typedef unsigned char UCHAR; typedef unsigned int UINT; typedef unsigned long ULONG; static bool inflateToDynBuf(void *inp, UINT inlen, void **outpp, UINT *outlenp); /* * File structure: * - Starts with a 1-KB header block, with a param dictionary. * - Stored items follow. Each item has a header and 2 segments for * the metadata and the data. * The segment sizes are stored in the ascii header/marker: * circacheSizes = xxx yyy zzz * xxx bytes of metadata * yyy bytes of data * zzz bytes of padding up to next object (only one entry has non zero) * * There is a write position, which can be at eof while * the file is growing, or inside the file if we are recycling. This is stored * in the header (oheadoffs), together with the maximum size * * If we are recycling, we have to take care to compute the size of the * possible remaining area from the last object invalidated by the write, * pad it with neutral data and store the size in the new header. To help with * this, the address for the last object written is also kept in the header * (nheadoffs, npadsize) * */ // First block size #define CIRCACHE_FIRSTBLOCK_SIZE 1024 // Entry header. // 3 x 32 bits sizes as hex integers + 1 x 16 bits flag + at least 1 zero // 15 + 3x(9) + 3 + 1 = 46 static const char *headerformat = "circacheSizes = %x %x %x %hx"; #define CIRCACHE_HEADER_SIZE 64 class EntryHeaderData { public: EntryHeaderData() : dicsize(0), datasize(0), padsize(0), flags(0) {} UINT dicsize; UINT datasize; UINT padsize; unsigned short flags; }; enum EntryFlags {EFNone = 0, EFDataCompressed = 1}; // A callback class for the header-hopping function. class CCScanHook { public: virtual ~CCScanHook() {} enum status {Stop, Continue, Error, Eof}; virtual status takeone(off_t offs, const string& udi, const EntryHeaderData& d) = 0; }; // We have an auxiliary in-memory multimap of hashed-udi -> offset to // speed things up. This is created the first time the file is scanned // (on the first get), and not saved to disk. // The map key: hashed udi. As a very short hash seems sufficient, // maybe we could find something faster/simpler than md5? #define UDIHLEN 4 class UdiH { public: UCHAR h[UDIHLEN]; UdiH(const string& udi) { MD5_CTX ctx; MD5Init(&ctx); MD5Update(&ctx, (const UCHAR*)udi.c_str(), udi.length()); UCHAR md[16]; MD5Final(md, &ctx); memcpy(h, md, UDIHLEN); } string asHexString() const { static const char hex[]="0123456789abcdef"; string out; for (int i = 0; i < UDIHLEN; i++) { out.append(1, hex[h[i] >> 4]); out.append(1, hex[h[i] & 0x0f]); } return out; } bool operator==(const UdiH& r) const { for (int i = 0; i < UDIHLEN; i++) if (h[i] != r.h[i]) return false; return true; } bool operator<(const UdiH& r) const { for (int i = 0; i < UDIHLEN; i++) { if (h[i] < r.h[i]) return true; if (h[i] > r.h[i]) return false; } return false; } }; typedef multimap kh_type; typedef multimap::value_type kh_value_type; class CirCacheInternal { public: int m_fd; ////// These are cache persistent state and written to the first block: // Maximum file size, after which we begin reusing old space off_t m_maxsize; // Offset of the oldest header, or max file offset (file size) // while the file is growing. This is the next write position. off_t m_oheadoffs; // Offset of last write (newest header) off_t m_nheadoffs; // Pad size for newest entry. int m_npadsize; // Keep history or only last entry bool m_uniquentries; ///////////////////// End header entries // A place to hold data when reading char *m_buffer; size_t m_bufsiz; // Error messages ostringstream m_reason; // State for rewind/next/getcurrent operation. This could/should // be moved to a separate iterator. off_t m_itoffs; EntryHeaderData m_ithd; // Offset cache kh_type m_ofskh; bool m_ofskhcplt; // Has cache been fully read since open? // Add udi->offset translation to map bool khEnter(const string& udi, off_t ofs) { UdiH h(udi); LOGDEB2(("Circache::khEnter: h %s offs %lu udi [%s]\n", h.asHexString().c_str(), (ULONG)ofs, udi.c_str())); pair p = m_ofskh.equal_range(h); if (p.first != m_ofskh.end() && p.first->first == h) { for (kh_type::iterator it = p.first; it != p.second; it++) { LOGDEB2(("Circache::khEnter: col h %s, ofs %lu\n", it->first.asHexString().c_str(), (ULONG)it->second)); if (it->second == ofs) { // (h,offs) already there. Happens LOGDEB2(("Circache::khEnter: already there\n")); return true; } } } m_ofskh.insert(kh_value_type(h, ofs)); LOGDEB2(("Circache::khEnter: inserted\n")); return true; } void khDump() { for (kh_type::const_iterator it = m_ofskh.begin(); it != m_ofskh.end(); it++) { LOGDEB(("Circache::KHDUMP: %s %d\n", it->first.asHexString().c_str(), (ULONG)it->second)); } } // Return vector of candidate offsets for udi (possibly several // because there may be hash collisions, and also multiple // instances). bool khFind(const string& udi, vector& ofss) { ofss.clear(); UdiH h(udi); LOGDEB2(("Circache::khFind: h %s udi [%s]\n", h.asHexString().c_str(), udi.c_str())); pair p = m_ofskh.equal_range(h); #if 0 if (p.first == m_ofskh.end()) LOGDEB(("KHFIND: FIRST END()\n")); if (p.second == m_ofskh.end()) LOGDEB(("KHFIND: SECOND END()\n")); if (!(p.first->first == h)) LOGDEB(("KHFIND: NOKEY: %s %s\n", p.first->first.asHexString().c_str(), p.second->first.asHexString().c_str())); #endif if (p.first == m_ofskh.end() || !(p.first->first == h)) return false; for (kh_type::iterator it = p.first; it != p.second; it++) { ofss.push_back(it->second); } return true; } // Clear entry for udi/offs bool khClear(const pair& ref) { UdiH h(ref.first); pair p = m_ofskh.equal_range(h); if (p.first != m_ofskh.end() && (p.first->first == h)) { for (kh_type::iterator it = p.first; it != p.second; ) { kh_type::iterator tmp = it++; if (tmp->second == ref.second) m_ofskh.erase(tmp); } } return true; } // Clear entries for vector of udi/offs bool khClear(const vector >& udis) { for (vector >::const_iterator it = udis.begin(); it != udis.end(); it++) khClear(*it); return true; } // Clear all entries for udi bool khClear(const string& udi) { UdiH h(udi); pair p = m_ofskh.equal_range(h); if (p.first != m_ofskh.end() && (p.first->first == h)) { for (kh_type::iterator it = p.first; it != p.second; ) { kh_type::iterator tmp = it++; m_ofskh.erase(tmp); } } return true; } CirCacheInternal() : m_fd(-1), m_maxsize(-1), m_oheadoffs(-1), m_nheadoffs(0), m_npadsize(0), m_uniquentries(false), m_buffer(0), m_bufsiz(0), m_ofskhcplt(false) {} ~CirCacheInternal() { if (m_fd >= 0) close(m_fd); if (m_buffer) free(m_buffer); } char *buf(size_t sz) { if (m_bufsiz >= sz) return m_buffer; if ((m_buffer = (char *)realloc(m_buffer, sz))) { m_bufsiz = sz; } else { m_reason << "CirCache:: realloc(" << sz << ") failed"; m_bufsiz = 0; } return m_buffer; } // Name for the cache file string datafn(const string& d) { return path_cat(d, "circache.crch"); } bool writefirstblock() { if (m_fd < 0) { m_reason << "writefirstblock: not open "; return false; } ostringstream s; s << "maxsize = " << m_maxsize << "\n" << "oheadoffs = " << m_oheadoffs << "\n" << "nheadoffs = " << m_nheadoffs << "\n" << "npadsize = " << m_npadsize << "\n" << "unient = " << m_uniquentries << "\n" << " " << " " << " " << "\0"; int sz = int(s.str().size()); assert(sz < CIRCACHE_FIRSTBLOCK_SIZE); lseek(m_fd, 0, 0); if (write(m_fd, s.str().c_str(), sz) != sz) { m_reason << "writefirstblock: write() failed: errno " << errno; return false; } return true; } bool readfirstblock() { if (m_fd < 0) { m_reason << "readfirstblock: not open "; return false; } char bf[CIRCACHE_FIRSTBLOCK_SIZE]; lseek(m_fd, 0, 0); if (read(m_fd, bf, CIRCACHE_FIRSTBLOCK_SIZE) != CIRCACHE_FIRSTBLOCK_SIZE) { m_reason << "readfirstblock: read() failed: errno " << errno; return false; } string s(bf, CIRCACHE_FIRSTBLOCK_SIZE); ConfSimple conf(s, 1); string value; if (!conf.get("maxsize", value, cstr_null)) { m_reason << "readfirstblock: conf get maxsize failed"; return false; } m_maxsize = atoll(value.c_str()); if (!conf.get("oheadoffs", value, cstr_null)) { m_reason << "readfirstblock: conf get oheadoffs failed"; return false; } m_oheadoffs = atoll(value.c_str()); if (!conf.get("nheadoffs", value, cstr_null)) { m_reason << "readfirstblock: conf get nheadoffs failed"; return false; } m_nheadoffs = atoll(value.c_str()); if (!conf.get("npadsize", value, cstr_null)) { m_reason << "readfirstblock: conf get npadsize failed"; return false; } m_npadsize = atoll(value.c_str()); if (!conf.get("unient", value, cstr_null)) { m_uniquentries = false; } else { m_uniquentries = stringToBool(value); } return true; } bool writeEntryHeader(off_t offset, const EntryHeaderData& d) { if (m_fd < 0) { m_reason << "writeEntryHeader: not open "; return false; } char bf[CIRCACHE_HEADER_SIZE]; memset(bf, 0, CIRCACHE_HEADER_SIZE); snprintf(bf, CIRCACHE_HEADER_SIZE, headerformat, d.dicsize, d.datasize, d.padsize, d.flags); if (lseek(m_fd, offset, 0) != offset) { m_reason << "CirCache::weh: lseek(" << offset << ") failed: errno " << errno; return false; } if (write(m_fd, bf, CIRCACHE_HEADER_SIZE) != CIRCACHE_HEADER_SIZE) { m_reason << "CirCache::weh: write failed. errno " << errno; return false; } return true; } CCScanHook::status readEntryHeader(off_t offset, EntryHeaderData& d) { if (m_fd < 0) { m_reason << "readEntryHeader: not open "; return CCScanHook::Error; } if (lseek(m_fd, offset, 0) != offset) { m_reason << "readEntryHeader: lseek(" << offset << ") failed: errno " << errno; return CCScanHook::Error; } char bf[CIRCACHE_HEADER_SIZE]; int ret = read(m_fd, bf, CIRCACHE_HEADER_SIZE); if (ret == 0) { // Eof m_reason << " Eof "; return CCScanHook::Eof; } if (ret != CIRCACHE_HEADER_SIZE) { m_reason << " readheader: read failed errno " << errno; return CCScanHook::Error; } if (sscanf(bf, headerformat, &d.dicsize, &d.datasize, &d.padsize, &d.flags) != 4) { m_reason << " readEntryHeader: bad header at " << offset << " [" << bf << "]"; return CCScanHook::Error; } LOGDEB2(("Circache:readEntryHeader: dcsz %u dtsz %u pdsz %u flgs %hu\n", d.dicsize, d.datasize, d.padsize, d.flags)); return CCScanHook::Continue; } CCScanHook::status scan(off_t startoffset, CCScanHook *user, bool fold = false) { if (m_fd < 0) { m_reason << "scan: not open "; return CCScanHook::Error; } off_t so0 = startoffset; bool already_folded = false; while (true) { if (already_folded && startoffset == so0) { m_ofskhcplt = true; return CCScanHook::Eof; } EntryHeaderData d; CCScanHook::status st; switch ((st = readEntryHeader(startoffset, d))) { case CCScanHook::Continue: break; case CCScanHook::Eof: if (fold && !already_folded) { already_folded = true; startoffset = CIRCACHE_FIRSTBLOCK_SIZE; continue; } /* FALLTHROUGH */ default: return st; } string udi; if (d.dicsize) { // d.dicsize is 0 for erased entries char *bf; if ((bf = buf(d.dicsize+1)) == 0) { return CCScanHook::Error; } bf[d.dicsize] = 0; if (read(m_fd, bf, d.dicsize) != int(d.dicsize)) { m_reason << "scan: read failed errno " << errno; return CCScanHook::Error; } string b(bf, d.dicsize); ConfSimple conf(b, 1); if (!conf.get("udi", udi, cstr_null)) { m_reason << "scan: no udi in dic"; return CCScanHook::Error; } khEnter(udi, startoffset); } // Call callback CCScanHook::status a = user->takeone(startoffset, udi, d); switch (a) { case CCScanHook::Continue: break; default: return a; } startoffset += CIRCACHE_HEADER_SIZE + d.dicsize + d.datasize + d.padsize; } } bool readHUdi(off_t hoffs, EntryHeaderData& d, string& udi) { if (readEntryHeader(hoffs, d) != CCScanHook::Continue) return false; string dic; if (!readDicData(hoffs, d, dic, 0)) return false; if (d.dicsize == 0) { // This is an erased entry udi.erase(); return true; } ConfSimple conf(dic); if (!conf.get("udi", udi)) { m_reason << "Bad file: no udi in dic"; return false; } return true; } bool readDicData(off_t hoffs, EntryHeaderData& hd, string& dic, string* data) { off_t offs = hoffs + CIRCACHE_HEADER_SIZE; // This syscall could be avoided in some cases if we saved the offset // at each seek. In most cases, we just read the header and we are // at the right position if (lseek(m_fd, offs, 0) != offs) { m_reason << "CirCache::get: lseek(" << offs << ") failed: " << errno; return false; } char *bf = 0; if (hd.dicsize) { bf = buf(hd.dicsize); if (bf == 0) return false; if (read(m_fd, bf, hd.dicsize) != int(hd.dicsize)) { m_reason << "CirCache::get: read() failed: errno " << errno; return false; } dic.assign(bf, hd.dicsize); } else { dic.erase(); } if (data == 0) return true; if (hd.datasize) { bf = buf(hd.datasize); if (bf == 0) return false; if (read(m_fd, bf, hd.datasize) != int(hd.datasize)){ m_reason << "CirCache::get: read() failed: errno " << errno; return false; } if (hd.flags & EFDataCompressed) { LOGDEB1(("Circache:readdicdata: data compressed\n")); void *uncomp; unsigned int uncompsize; if (!inflateToDynBuf(bf, hd.datasize, &uncomp, &uncompsize)) { m_reason << "CirCache: decompression failed "; return false; } data->assign((char *)uncomp, uncompsize); free(uncomp); } else { LOGDEB1(("Circache:readdicdata: data NOT compressed\n")); data->assign(bf, hd.datasize); } } else { data->erase(); } return true; } }; CirCache::CirCache(const string& dir) : m_dir(dir) { m_d = new CirCacheInternal; LOGDEB0(("CirCache: [%s]\n", m_dir.c_str())); } CirCache::~CirCache() { delete m_d; m_d = 0; } string CirCache::getReason() { return m_d ? m_d->m_reason.str() : "Not initialized"; } // A scan callback which just records the last header offset and // padsize seen. This is used with a scan(nofold) to find the last // physical record in the file class CCScanHookRecord : public CCScanHook { public: off_t headoffs; off_t padsize; CCScanHookRecord() : headoffs(0), padsize(0) { } virtual status takeone(off_t offs, const string& udi, const EntryHeaderData& d) { headoffs = offs; padsize = d.padsize; LOGDEB2(("CCScanHookRecord::takeone: offs %lld padsize %lld\n", headoffs, padsize)); return Continue; } }; string CirCache::getpath() { return m_d->datafn(m_dir); } bool CirCache::create(off_t maxsize, int flags) { LOGDEB(("CirCache::create: [%s] maxsz %lld flags 0x%x\n", m_dir.c_str(), maxsize, flags)); if (m_d == 0) { LOGERR(("CirCache::create: null data\n")); return false; } struct stat st; if (stat(m_dir.c_str(), &st) < 0) { // Directory does not exist, create it if (mkdir(m_dir.c_str(), 0777) < 0) { m_d->m_reason << "CirCache::create: mkdir(" << m_dir << ") failed" << " errno " << errno; return false; } } else { // If the file exists too, and truncate is not set, switch // to open-mode. Still may need to update header params. if (access(m_d->datafn(m_dir).c_str(), 0) >= 0 && !(flags & CC_CRTRUNCATE)) { if (!open(CC_OPWRITE)) { return false; } if (maxsize == m_d->m_maxsize && ((flags & CC_CRUNIQUE) != 0) == m_d->m_uniquentries) { LOGDEB(("Header unchanged, no rewrite\n")); return true; } // If the new maxsize is bigger than current size, we need // to stop recycling if this is what we are doing. if (maxsize > m_d->m_maxsize && maxsize > st.st_size) { // Scan the file to find the last physical record. The // ohead is set at physical eof, and nhead is the last // scanned record CCScanHookRecord rec; m_d->scan(CIRCACHE_FIRSTBLOCK_SIZE, &rec, false); m_d->m_oheadoffs = lseek(m_d->m_fd, 0, SEEK_END); m_d->m_nheadoffs = rec.headoffs; m_d->m_npadsize = rec.padsize; } m_d->m_maxsize = maxsize; m_d->m_uniquentries = ((flags & CC_CRUNIQUE) != 0); LOGDEB(("CirCache::create: rewriting header with " "maxsize %lld oheadoffs %lld nheadoffs %lld " "npadsize %d unient %d\n", m_d->m_maxsize, m_d->m_oheadoffs, m_d->m_nheadoffs, m_d->m_npadsize, int(m_d->m_uniquentries))); return m_d->writefirstblock(); } // Else fallthrough to create file } if ((m_d->m_fd = ::open(m_d->datafn(m_dir).c_str(), O_CREAT | O_RDWR | O_TRUNC, 0666)) < 0) { m_d->m_reason << "CirCache::create: open/creat(" << m_d->datafn(m_dir) << ") failed " << "errno " << errno; return false; } m_d->m_maxsize = maxsize; m_d->m_oheadoffs = CIRCACHE_FIRSTBLOCK_SIZE; m_d->m_uniquentries = ((flags & CC_CRUNIQUE) != 0); char buf[CIRCACHE_FIRSTBLOCK_SIZE]; memset(buf, 0, CIRCACHE_FIRSTBLOCK_SIZE); if (::write(m_d->m_fd, buf, CIRCACHE_FIRSTBLOCK_SIZE) != CIRCACHE_FIRSTBLOCK_SIZE) { m_d->m_reason << "CirCache::create: write header failed, errno " << errno; return false; } return m_d->writefirstblock(); } bool CirCache::open(OpMode mode) { if (m_d == 0) { LOGERR(("CirCache::open: null data\n")); return false; } if (m_d->m_fd >= 0) ::close(m_d->m_fd); if ((m_d->m_fd = ::open(m_d->datafn(m_dir).c_str(), mode == CC_OPREAD ? O_RDONLY : O_RDWR)) < 0) { m_d->m_reason << "CirCache::open: open(" << m_d->datafn(m_dir) << ") failed " << "errno " << errno; return false; } return m_d->readfirstblock(); } class CCScanHookDump : public CCScanHook { public: virtual status takeone(off_t offs, const string& udi, const EntryHeaderData& d) { cout << "Scan: offs " << offs << " dicsize " << d.dicsize << " datasize " << d.datasize << " padsize " << d.padsize << " flags " << d.flags << " udi [" << udi << "]" << endl; return Continue; } }; bool CirCache::dump() { CCScanHookDump dumper; // Start at oldest header. This is eof while the file is growing, scan will // fold to bot at once. off_t start = m_d->m_oheadoffs; switch (m_d->scan(start, &dumper, true)) { case CCScanHook::Stop: cout << "Scan returns Stop??" << endl; return false; case CCScanHook::Continue: cout << "Scan returns Continue ?? " << CCScanHook::Continue << " " << getReason() << endl; return false; case CCScanHook::Error: cout << "Scan returns Error: " << getReason() << endl; return false; case CCScanHook::Eof: cout << "Scan returns Eof (ok)" << endl; return true; default: cout << "Scan returns Unknown ??" << endl; return false; } } class CCScanHookGetter : public CCScanHook { public: string m_udi; int m_targinstance; int m_instance; off_t m_offs; EntryHeaderData m_hd; CCScanHookGetter(const string &udi, int ti) : m_udi(udi), m_targinstance(ti), m_instance(0), m_offs(0){} virtual status takeone(off_t offs, const string& udi, const EntryHeaderData& d) { LOGDEB2(("Circache:Scan: off %ld udi [%s] dcsz %u dtsz %u pdsz %u " " flgs %hu\n", long(offs), udi.c_str(), (UINT)d.dicsize, (UINT)d.datasize, (UINT)d.padsize, d.flags)); if (!m_udi.compare(udi)) { m_instance++; m_offs = offs; m_hd = d; if (m_instance == m_targinstance) return Stop; } return Continue; } }; // instance == -1 means get latest. Otherwise specify from 1+ bool CirCache::get(const string& udi, string& dic, string& data, int instance) { Chrono chron; if (m_d->m_fd < 0) { m_d->m_reason << "CirCache::get: no data or not open"; return false; } LOGDEB0(("CirCache::get: udi [%s], instance %d\n", udi.c_str(), instance)); // If memory map is up to date, use it: if (m_d->m_ofskhcplt) { LOGDEB1(("CirCache::get: using ofskh\n")); //m_d->khDump(); vector ofss; if (m_d->khFind(udi, ofss)) { LOGDEB1(("Circache::get: h found, colls %d\n", ofss.size())); int finst = 1; EntryHeaderData d_good; off_t o_good = 0; for (vector::iterator it = ofss.begin(); it != ofss.end(); it++) { LOGDEB1(("Circache::get: trying offs %lu\n", (ULONG)*it)); EntryHeaderData d; string fudi; if (!m_d->readHUdi(*it, d, fudi)) return false; if (!fudi.compare(udi)) { // Found one, memorize offset. Done if instance // matches, else go on. If instance is -1 need to // go to the end anyway d_good = d; o_good = *it; if (finst == instance) { break; } else { finst++; } } } // Did we read an appropriate entry ? if (o_good != 0 && (instance == -1 || instance == finst)) { bool ret = m_d->readDicData(o_good, d_good, dic, &data); LOGDEB0(("Circache::get: hfound, %d mS\n", chron.millis())); return ret; } // Else try to scan anyway. } } CCScanHookGetter getter(udi, instance); off_t start = m_d->m_oheadoffs; CCScanHook::status ret = m_d->scan(start, &getter, true); if (ret == CCScanHook::Eof) { if (getter.m_instance == 0) return false; } else if (ret != CCScanHook::Stop) { return false; } bool bret = m_d->readDicData(getter.m_offs, getter.m_hd, dic, &data); LOGDEB0(("Circache::get: scanfound, %d mS\n", chron.millis())); return bret; } bool CirCache::erase(const string& udi) { if (m_d == 0) { LOGERR(("CirCache::erase: null data\n")); return false; } if (m_d->m_fd < 0) { m_d->m_reason << "CirCache::erase: no data or not open"; return false; } LOGDEB0(("CirCache::erase: udi [%s]\n", udi.c_str())); // If the mem cache is not up to date, update it, we're too lazy // to do a scan if (!m_d->m_ofskhcplt) { string dic, data; get("nosuchudi probably exists", dic, data); if (!m_d->m_ofskhcplt) { LOGERR(("CirCache::erase : cache not updated after get\n")); return false; } } vector ofss; if (!m_d->khFind(udi, ofss)) { // Udi not in there, erase ok LOGDEB(("CirCache::erase: khFind returns none\n")); return true; } for (vector::iterator it = ofss.begin(); it != ofss.end(); it++) { LOGDEB(("CirCache::erase: reading at %lu\n", (unsigned long)*it)); EntryHeaderData d; string fudi; if (!m_d->readHUdi(*it, d, fudi)) return false; LOGDEB(("CirCache::erase: found fudi [%s]\n", fudi.c_str())); if (!fudi.compare(udi)) { EntryHeaderData nd; nd.padsize = d.dicsize + d.datasize + d.padsize; LOGDEB(("CirCache::erase: rewriting at %lu\n", (unsigned long)*it)); if (*it == m_d->m_nheadoffs) m_d->m_npadsize = nd.padsize; if(!m_d->writeEntryHeader(*it, nd)) { LOGERR(("CirCache::erase: write header failed\n")); return false; } } } m_d->khClear(udi); return true; } // Used to scan the file ahead until we accumulated enough space for the new // entry. class CCScanHookSpacer : public CCScanHook { public: UINT sizewanted; UINT sizeseen; vector > squashed_udis; CCScanHookSpacer(int sz) : sizewanted(sz), sizeseen(0) {assert(sz > 0);} virtual status takeone(off_t offs, const string& udi, const EntryHeaderData& d) { LOGDEB2(("Circache:ScanSpacer:off %u dcsz %u dtsz %u pdsz %u udi[%s]\n", (UINT)offs, d.dicsize, d.datasize, d.padsize, udi.c_str())); sizeseen += CIRCACHE_HEADER_SIZE + d.dicsize + d.datasize + d.padsize; squashed_udis.push_back(make_pair(udi, offs)); if (sizeseen >= sizewanted) return Stop; return Continue; } }; bool CirCache::put(const string& udi, const ConfSimple *iconf, const string& data, unsigned int iflags) { if (m_d == 0) { LOGERR(("CirCache::put: null data\n")); return false; } if (m_d->m_fd < 0) { m_d->m_reason << "CirCache::put: no data or not open"; return false; } // We need the udi in input metadata string dic; if (!iconf || !iconf->get("udi", dic) || dic.empty() || dic.compare(udi)) { m_d->m_reason << "No/bad 'udi' entry in input dic"; LOGERR(("Circache::put: no/bad udi: DIC:[%s] UDI [%s]\n", dic.c_str(), udi.c_str())); return false; } // Possibly erase older entries. Need to do this first because we may be // able to reuse the space if the same udi was last written if (m_d->m_uniquentries && !erase(udi)) { LOGERR(("CirCache::put: can't erase older entries\n")); return false; } ostringstream s; iconf->write(s); dic = s.str(); // Data compression ? const char *datap = data.c_str(); unsigned int datalen = data.size(); unsigned short flags = 0; TempBuf compbuf; if (!(iflags & NoCompHint)) { ULONG len = compressBound(data.size()); char *bf = compbuf.setsize(len); if (bf != 0 && compress((Bytef*)bf, &len, (Bytef*)data.c_str(), data.size()) == Z_OK) { if (float(len) < 0.9 * float(data.size())) { // bf is local but it's our static buffer address datap = bf; datalen = len; flags |= EFDataCompressed; } } } struct stat st; if (fstat(m_d->m_fd, &st) < 0) { m_d->m_reason << "CirCache::put: fstat failed. errno " << errno; return false; } // Characteristics for the new entry. int nsize = CIRCACHE_HEADER_SIZE + dic.size() + datalen; int nwriteoffs = m_d->m_oheadoffs; int npadsize = 0; bool extending = false; LOGDEB(("CirCache::put: nsz %d oheadoffs %d\n", nsize, m_d->m_oheadoffs)); // Check if we can recover some pad space from the (physically) previous // entry. int recovpadsize = m_d->m_oheadoffs == CIRCACHE_FIRSTBLOCK_SIZE ? 0 : m_d->m_npadsize; if (recovpadsize != 0) { // Need to read the latest entry's header, to rewrite it with a // zero pad size EntryHeaderData pd; if (m_d->readEntryHeader(m_d->m_nheadoffs, pd) != CCScanHook::Continue){ return false; } if (int(pd.padsize) != m_d->m_npadsize) { m_d->m_reason << "CirCache::put: logic error: bad padsize "; return false; } if (pd.dicsize == 0) { // erased entry. Also recover the header space, no need to rewrite // the header, we're going to write on it. recovpadsize += CIRCACHE_HEADER_SIZE; } else { LOGDEB(("CirCache::put: recov. prev. padsize %d\n", pd.padsize)); pd.padsize = 0; if (!m_d->writeEntryHeader(m_d->m_nheadoffs, pd)) return false; // If we fail between here and the end, the file is broken. } nwriteoffs = m_d->m_oheadoffs - recovpadsize; } if (nsize <= recovpadsize) { // If the new entry fits entirely in the pad area from the // latest one, no need to recycle stuff LOGDEB(("CirCache::put: new fits in old padsize %d\n", recovpadsize)); npadsize = recovpadsize - nsize; } else if (st.st_size < m_d->m_maxsize) { // Still growing the file. npadsize = 0; extending = true; } else { // Scan the file until we have enough space for the new entry, // and determine the pad size up to the 1st preserved entry int scansize = nsize - recovpadsize; LOGDEB(("CirCache::put: scanning for size %d from offs %u\n", scansize, (UINT)m_d->m_oheadoffs)); CCScanHookSpacer spacer(scansize); switch (m_d->scan(m_d->m_oheadoffs, &spacer)) { case CCScanHook::Stop: LOGDEB(("CirCache::put: Scan ok, sizeseen %d\n", spacer.sizeseen)); npadsize = spacer.sizeseen - scansize; break; case CCScanHook::Eof: npadsize = 0; extending = true; break; case CCScanHook::Continue: case CCScanHook::Error: return false; } // Take the recycled entries off the multimap m_d->khClear(spacer.squashed_udis); } LOGDEB(("CirCache::put: writing %d at %d padsize %d\n", nsize, nwriteoffs, npadsize)); if (lseek(m_d->m_fd, nwriteoffs, 0) != nwriteoffs) { m_d->m_reason << "CirCache::put: lseek failed: " << errno; return false; } char head[CIRCACHE_HEADER_SIZE]; memset(head, 0, CIRCACHE_HEADER_SIZE); snprintf(head, CIRCACHE_HEADER_SIZE, headerformat, dic.size(), datalen, npadsize, flags); struct iovec vecs[3]; vecs[0].iov_base = head; vecs[0].iov_len = CIRCACHE_HEADER_SIZE; vecs[1].iov_base = (void *)dic.c_str(); vecs[1].iov_len = dic.size(); vecs[2].iov_base = (void *)datap; vecs[2].iov_len = datalen; if (writev(m_d->m_fd, vecs, 3) != nsize) { m_d->m_reason << "put: write failed. errno " << errno; if (extending) if (ftruncate(m_d->m_fd, m_d->m_oheadoffs) == -1) { m_d->m_reason << "put: ftruncate failed. errno " << errno; } return false; } m_d->khEnter(udi, nwriteoffs); // Update first block information m_d->m_nheadoffs = nwriteoffs; m_d->m_npadsize = npadsize; // New oldest header is the one just after the one we just wrote. m_d->m_oheadoffs = nwriteoffs + nsize + npadsize; if (nwriteoffs + nsize >= m_d->m_maxsize) { // Max size or top of file reached, next write at BOT. m_d->m_oheadoffs = CIRCACHE_FIRSTBLOCK_SIZE; } return m_d->writefirstblock(); } bool CirCache::rewind(bool& eof) { if (m_d == 0) { LOGERR(("CirCache::rewind: null data\n")); return false; } eof = false; off_t fsize = lseek(m_d->m_fd, 0, SEEK_END); if (fsize == (off_t)-1) { LOGERR(("CirCache::rewind: seek to EOF failed\n")); return false; } // Read oldest header. This is either at the position pointed to // by oheadoffs, or after the first block if the file is still // growing. if (m_d->m_oheadoffs == fsize) { m_d->m_itoffs = CIRCACHE_FIRSTBLOCK_SIZE; } else { m_d->m_itoffs = m_d->m_oheadoffs; } CCScanHook::status st = m_d->readEntryHeader(m_d->m_itoffs, m_d->m_ithd); switch(st) { case CCScanHook::Eof: eof = true; return false; case CCScanHook::Continue: return true; default: return false; } } bool CirCache::next(bool& eof) { if (m_d == 0) { LOGERR(("CirCache::next: null data\n")); return false; } eof = false; // Skip to next header, using values stored from previous one m_d->m_itoffs += CIRCACHE_HEADER_SIZE + m_d->m_ithd.dicsize + m_d->m_ithd.datasize + m_d->m_ithd.padsize; // Looped back ? if (m_d->m_itoffs == m_d->m_oheadoffs) { eof = true; return false; } // Read. If we hit physical eof, fold. CCScanHook::status st = m_d->readEntryHeader(m_d->m_itoffs, m_d->m_ithd); if (st == CCScanHook::Eof) { m_d->m_itoffs = CIRCACHE_FIRSTBLOCK_SIZE; if (m_d->m_itoffs == m_d->m_oheadoffs) { // Then the file is not folded yet (still growing) eof = true; return false; } st = m_d->readEntryHeader(m_d->m_itoffs, m_d->m_ithd); } if (st == CCScanHook::Continue) return true; return false; } bool CirCache::getCurrentUdi(string& udi) { if (m_d == 0) { LOGERR(("CirCache::getCurrentUdi: null data\n")); return false; } if (!m_d->readHUdi(m_d->m_itoffs, m_d->m_ithd, udi)) return false; return true; } bool CirCache::getCurrent(string& udi, string& dic, string& data) { if (m_d == 0) { LOGERR(("CirCache::getCurrent: null data\n")); return false; } if (!m_d->readDicData(m_d->m_itoffs, m_d->m_ithd, dic, &data)) return false; ConfSimple conf(dic, 1); conf.get("udi", udi, cstr_null); return true; } static void *allocmem( void *cp, /* The array to grow. may be NULL */ int sz, /* Unit size in bytes */ int *np, /* Pointer to current allocation number */ int min, /* Number to allocate the first time */ int maxinc) /* Maximum increment */ { if (cp == 0) { cp = malloc(min * sz); *np = cp ? min : 0; return cp; } int inc = (*np > maxinc) ? maxinc : *np; if ((cp = realloc(cp, (*np + inc) * sz)) != 0) *np += inc; return cp; } static bool inflateToDynBuf(void* inp, UINT inlen, void **outpp, UINT *outlenp) { z_stream d_stream; /* decompression stream */ LOGDEB0(("inflateToDynBuf: inlen %u\n", inlen)); d_stream.zalloc = (alloc_func)0; d_stream.zfree = (free_func)0; d_stream.opaque = (voidpf)0; // Compression works well on html files, 4-6 is quite common, Otoh we // maybe passed a big, little if at all compressed image or pdf file, // So we set the initial allocation at 3 times the input size const int imul = 3; const int mxinc = 20; char *outp = 0; int alloc = 0; d_stream.next_in = (Bytef*)inp; d_stream.avail_in = inlen; d_stream.next_out = 0; d_stream.avail_out = 0; int err; if ((err = inflateInit(&d_stream)) != Z_OK) { LOGERR(("Inflate: inflateInit: err %d msg %s\n", err, d_stream.msg)); free(outp); return false; } for (;;) { LOGDEB2(("InflateToDynBuf: avail_in %d total_in %d avail_out %d " "total_out %d\n", d_stream.avail_in, d_stream.total_in, d_stream.avail_out, d_stream.total_out)); if (d_stream.avail_out == 0) { if ((outp = (char*)allocmem(outp, inlen, &alloc, imul, mxinc)) == 0) { LOGERR(("Inflate: out of memory, current alloc %d\n", alloc*inlen)); inflateEnd(&d_stream); return false; } else { LOGDEB2(("inflateToDynBuf: realloc(%d) ok\n", alloc * inlen)); } d_stream.avail_out = alloc * inlen - d_stream.total_out; d_stream.next_out = (Bytef*)(outp + d_stream.total_out); } err = inflate(&d_stream, Z_NO_FLUSH); if (err == Z_STREAM_END) break; if (err != Z_OK) { LOGERR(("Inflate: error %d msg %s\n", err, d_stream.msg)); inflateEnd(&d_stream); free(outp); return false; } } *outlenp = d_stream.total_out; *outpp = (Bytef *)outp; if ((err = inflateEnd(&d_stream)) != Z_OK) { LOGERR(("Inflate: inflateEnd error %d msg %s\n", err, d_stream.msg)); return false; } LOGDEB0(("inflateToDynBuf: ok, output size %d\n", d_stream.total_out)); return true; } #else // TEST -> #include "autoconfig.h" #include #include #include #include #include #include #include #include #include #include "circache.h" #include "fileudi.h" #include "conftree.h" #include "readfile.h" #include "debuglog.h" using namespace std; // Copy all entries from occ to ncc. Both are already open. bool copyall(RefCntr occ, RefCntr ncc, int& nentries) { bool eof = false; if (!occ->rewind(eof)) { if (!eof) { cerr << "Initial rewind failed" << endl; return false; } } nentries = 0; while (!eof) { string udi, sdic, data; if (!occ->getCurrent(udi, sdic, data)) { cerr << "getCurrent failed: " << occ->getReason() << endl; return false; } // Shouldn't getcurrent deal with this ? if (sdic.size() == 0) { //cerr << "Skip empty entry" << endl; occ->next(eof); continue; } ConfSimple dic(sdic); if (!dic.ok()) { cerr << "Could not parse entry attributes dic" << endl; return false; } //cerr << "UDI: " << udi << endl; if (!ncc->put(udi, &dic, data)) { cerr << "put failed: " << ncc->getReason() << " sdic [" << sdic << "]" << endl; return false; } nentries++; occ->next(eof); } return true; } // Resize circache. This can't be done easily if the write point is // inside the file (we already reached the old max size). We create a // new file with the new size and copy the old entries into it. The // old file is then renamed into a backup and the new file renamed in // place. bool resizecc(const string& dir, int newmbs) { // Create object for existing file and get the file name RefCntr occ(new CirCache(dir)); string ofn = occ->getpath(); // Check for previous backup string backupfn = ofn + ".orig"; if (access(backupfn.c_str(), 0) >= 0) { cerr << "Backup file " << backupfn << " exists, please move it out of the way" << endl; return false; } if (!occ->open(CirCache::CC_OPREAD)) { cerr << "Open failed in " << dir << " : " << occ->getReason() << endl; return false; } // Create the new empty file in a temporary directory string tmpdir = path_cat(dir, "tmp"); if (access(tmpdir.c_str(), 0) < 0) { if (mkdir(tmpdir.c_str(), 0700) < 0) { cerr << "Cant create temporary directory " << tmpdir << " "; perror("mkdir"); return false; } } RefCntr ncc(new CirCache(tmpdir)); string nfn = ncc->getpath(); if (!ncc->create(off_t(newmbs) * 1000 * 1024, CirCache::CC_CRUNIQUE | CirCache::CC_CRTRUNCATE)) { cerr << "Cant create new file in " << tmpdir << " : " << ncc->getReason() << endl; return false; } int nentries; if (!copyall(occ, ncc, nentries)) { cerr << "Copy failed\n"; return false; } // Done with our objects here, there is no close() method, so // delete them occ.release(); ncc.release(); // Create backup by renaming the old file if (rename(ofn.c_str(), backupfn.c_str()) < 0) { cerr << "Could not create backup " << backupfn << " : "; perror("rename"); return false; } cout << "Created backup file " << backupfn << endl; // Move the new file in place. if (rename(nfn.c_str(), ofn.c_str()) < 0) { cerr << "Could not rename new file from " << nfn << " to " << ofn << " : "; perror("rename"); return false; } cout << "Resize done, copied " << nentries << " entries " << endl; return true; } // Append all entries from sdir to ddir bool appendcc(const string ddir, const string& sdir) { // Open source file RefCntr occ(new CirCache(sdir)); if (!occ->open(CirCache::CC_OPREAD)) { cerr << "Open failed in " << sdir << " : " << occ->getReason() << endl; return false; } // Open dest file RefCntr ncc(new CirCache(ddir)); if (!ncc->open(CirCache::CC_OPWRITE)) { cerr << "Open failed in " << ddir << " : " << ncc->getReason() << endl; return false; } int nentries; if (!copyall(occ, ncc, nentries)) { cerr << "Copy failed\n"; return false; } occ.release(); ncc.release(); cout << "Copy done, copied " << nentries << " entries " << endl; return true; } static char *thisprog; static char usage [] = " -c [-u] : create\n" " -p [apath ...] : put files\n" " -d : dump\n" " -g [-i instance] [-D] : get\n" " -D: also dump data\n" " -e : erase\n" " -s : resize\n" " -a [ ...]: append old content to target\n" " The target should be first resized to hold all the data, else only\n" " as many entries as capacity permit will be retained\n" ; static void Usage(FILE *fp = stderr) { fprintf(fp, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_c 0x2 #define OPT_p 0x8 #define OPT_g 0x10 #define OPT_d 0x20 #define OPT_i 0x40 #define OPT_D 0x80 #define OPT_u 0x100 #define OPT_e 0x200 #define OPT_s 0x400 #define OPT_a 0x800 int main(int argc, char **argv) { int instance = -1; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'a': op_flags |= OPT_a; break; case 'c': op_flags |= OPT_c; break; case 'D': op_flags |= OPT_D; break; case 'd': op_flags |= OPT_d; break; case 'e': op_flags |= OPT_e; break; case 'g': op_flags |= OPT_g; break; case 'i': op_flags |= OPT_i; if (argc < 2) Usage(); if ((sscanf(*(++argv), "%d", &instance)) != 1) Usage(); argc--; goto b1; case 'p': op_flags |= OPT_p; break; case 's': op_flags |= OPT_s; break; case 'u': op_flags |= OPT_u; break; default: Usage(); break; } b1: argc--; argv++; } DebugLog::getdbl()->setloglevel(DEBERR); DebugLog::setfilename("stderr"); if (argc < 1) Usage(); string dir = *argv++;argc--; CirCache cc(dir); if (op_flags & OPT_c) { int flags = 0; if (op_flags & OPT_u) flags |= CirCache::CC_CRUNIQUE; if (!cc.create(100*1024, flags)) { cerr << "Create failed:" << cc.getReason() << endl; exit(1); } } else if (op_flags & OPT_s) { if (argc != 1) { Usage(); } int newmbs = atoi(*argv++);argc--; if (!resizecc(dir, newmbs)) { exit(1); } } else if (op_flags & OPT_a) { if (argc < 1) { Usage(); } while (argc) { if (!appendcc(dir, *argv++)) { return 1; } argc--; } } else if (op_flags & OPT_p) { if (argc < 1) Usage(); if (!cc.open(CirCache::CC_OPWRITE)) { cerr << "Open failed: " << cc.getReason() << endl; exit(1); } while (argc) { string fn = *argv++;argc--; char dic[1000]; string data, reason; if (!file_to_string(fn, data, &reason)) { cerr << "File_to_string: " << reason << endl; exit(1); } string udi; make_udi(fn, "", udi); sprintf(dic, "#whatever...\nmimetype = text/plain\nudi=%s\n", udi.c_str()); string sdic; sdic.assign(dic, strlen(dic)); ConfSimple conf(sdic); if (!cc.put(udi, &conf, data, 0)) { cerr << "Put failed: " << cc.getReason() << endl; cerr << "conf: ["; conf.write(cerr); cerr << "]" << endl; exit(1); } } cc.open(CirCache::CC_OPREAD); } else if (op_flags & OPT_g) { if (!cc.open(CirCache::CC_OPREAD)) { cerr << "Open failed: " << cc.getReason() << endl; exit(1); } while (argc) { string udi = *argv++;argc--; string dic, data; if (!cc.get(udi, dic, data, instance)) { cerr << "Get failed: " << cc.getReason() << endl; exit(1); } cout << "Dict: [" << dic << "]" << endl; if (op_flags & OPT_D) cout << "Data: [" << data << "]" << endl; } } else if (op_flags & OPT_e) { if (!cc.open(CirCache::CC_OPWRITE)) { cerr << "Open failed: " << cc.getReason() << endl; exit(1); } while (argc) { string udi = *argv++;argc--; string dic, data; if (!cc.erase(udi)) { cerr << "Erase failed: " << cc.getReason() << endl; exit(1); } } } else if (op_flags & OPT_d) { if (!cc.open(CirCache::CC_OPREAD)) { cerr << "Open failed: " << cc.getReason() << endl; exit(1); } cc.dump(); } else Usage(); exit(0); } #endif recoll-1.21.5/utils/transcode.h0000644000175000017500000000256212602163540015661 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _TRANSCODE_H_INCLUDED_ #define _TRANSCODE_H_INCLUDED_ /** * */ #include /** * c++ized interface to iconv * * @param in input string * @param out output string * @param icode input encoding * @param ocode input encoding * @param ecnt (output) number of transcoding errors * @return true if transcoding succeeded, even with errors. False for global * errors like unknown charset names */ extern bool transcode(const std::string &in, std::string &out, const std::string &icode, const std::string &ocode, int *ecnt = 0); #endif /* _TRANSCODE_H_INCLUDED_ */ recoll-1.21.5/utils/base64.h0000644000175000017500000000237312602163540014763 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _BASE64_H_INCLUDED_ #define _BASE64_H_INCLUDED_ #include void base64_encode(const std::string& in, std::string& out); bool base64_decode(const std::string& in, std::string& out); inline std::string base64_encode(const std::string& in) { std::string o; base64_encode(in, o); return o; } inline std::string base64_decode(const std::string& in) { std::string o; if (base64_decode(in, o)) return o; return std::string(); } #endif /* _BASE64_H_INCLUDED_ */ recoll-1.21.5/utils/workqueue.h0000644000175000017500000002537012602163572015735 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _WORKQUEUE_H_INCLUDED_ #define _WORKQUEUE_H_INCLUDED_ #include #include #include #include #include #include "debuglog.h" #include "ptmutex.h" /** * A WorkQueue manages the synchronisation around a queue of work items, * where a number of client threads queue tasks and a number of worker * threads take and execute them. The goal is to introduce some level * of parallelism between the successive steps of a previously single * threaded pipeline. For example data extraction / data preparation / index * update, but this could have other uses. * * There is no individual task status return. In case of fatal error, * the client or worker sets an end condition on the queue. A second * queue could conceivably be used for returning individual task * status. */ template class WorkQueue { public: /** Create a WorkQueue * @param name for message printing * @param hi number of tasks on queue before clients blocks. Default 0 * meaning no limit. hi == -1 means that the queue is disabled. * @param lo minimum count of tasks before worker starts. Default 1. */ WorkQueue(const string& name, size_t hi = 0, size_t lo = 1) : m_name(name), m_high(hi), m_low(lo), m_workers_exited(0), m_clients_waiting(0), m_workers_waiting(0), m_tottasks(0), m_nowake(0), m_workersleeps(0), m_clientsleeps(0) { m_ok = (pthread_cond_init(&m_ccond, 0) == 0) && (pthread_cond_init(&m_wcond, 0) == 0); } ~WorkQueue() { LOGDEB2(("WorkQueue::~WorkQueue:%s\n", m_name.c_str())); if (!m_worker_threads.empty()) setTerminateAndWait(); } /** Start the worker threads. * * @param nworkers number of threads copies to start. * @param start_routine thread function. It should loop * taking (QueueWorker::take()) and executing tasks. * @param arg initial parameter to thread function. * @return true if ok. */ bool start(int nworkers, void *(*start_routine)(void *), void *arg) { PTMutexLocker lock(m_mutex); for (int i = 0; i < nworkers; i++) { int err; pthread_t thr; if ((err = pthread_create(&thr, 0, start_routine, arg))) { LOGERR(("WorkQueue:%s: pthread_create failed, err %d\n", m_name.c_str(), err)); return false; } m_worker_threads.push_back(thr); } return true; } /** Add item to work queue, called from client. * * Sleeps if there are already too many. */ bool put(T t) { PTMutexLocker lock(m_mutex); if (!lock.ok() || !ok()) { LOGERR(("WorkQueue::put:%s: !ok or mutex_lock failed\n", m_name.c_str())); return false; } while (ok() && m_high > 0 && m_queue.size() >= m_high) { m_clientsleeps++; // Keep the order: we test ok() AFTER the sleep... m_clients_waiting++; if (pthread_cond_wait(&m_ccond, lock.getMutex()) || !ok()) { m_clients_waiting--; return false; } m_clients_waiting--; } m_queue.push(t); if (m_workers_waiting > 0) { // Just wake one worker, there is only one new task. pthread_cond_signal(&m_wcond); } else { m_nowake++; } return true; } /** Wait until the queue is inactive. Called from client. * * Waits until the task queue is empty and the workers are all * back sleeping. Used by the client to wait for all current work * to be completed, when it needs to perform work that couldn't be * done in parallel with the worker's tasks, or before shutting * down. Work can be resumed after calling this. Note that the * only thread which can call it safely is the client just above * (which can control the task flow), else there could be * tasks in the intermediate queues. * To rephrase: there is no warranty on return that the queue is actually * idle EXCEPT if the caller knows that no jobs are still being created. * It would be possible to transform this into a safe call if some kind * of suspend condition was set on the queue by waitIdle(), to be reset by * some kind of "resume" call. Not currently the case. */ bool waitIdle() { PTMutexLocker lock(m_mutex); if (!lock.ok() || !ok()) { LOGERR(("WorkQueue::waitIdle:%s: not ok or can't lock\n", m_name.c_str())); return false; } // We're done when the queue is empty AND all workers are back // waiting for a task. while (ok() && (m_queue.size() > 0 || m_workers_waiting != m_worker_threads.size())) { m_clients_waiting++; if (pthread_cond_wait(&m_ccond, lock.getMutex())) { m_clients_waiting--; m_ok = false; LOGERR(("WorkQueue::waitIdle:%s: cond_wait failed\n", m_name.c_str())); return false; } m_clients_waiting--; } return ok(); } /** Tell the workers to exit, and wait for them. * * Does not bother about tasks possibly remaining on the queue, so * should be called after waitIdle() for an orderly shutdown. */ void* setTerminateAndWait() { PTMutexLocker lock(m_mutex); LOGDEB(("setTerminateAndWait:%s\n", m_name.c_str())); if (m_worker_threads.empty()) { // Already called ? return (void*)0; } // Wait for all worker threads to have called workerExit() m_ok = false; while (m_workers_exited < m_worker_threads.size()) { pthread_cond_broadcast(&m_wcond); m_clients_waiting++; if (pthread_cond_wait(&m_ccond, lock.getMutex())) { LOGERR(("WorkQueue::setTerminate:%s: cond_wait failed\n", m_name.c_str())); m_clients_waiting--; return (void*)0; } m_clients_waiting--; } LOGINFO(("%s: tasks %u nowakes %u wsleeps %u csleeps %u\n", m_name.c_str(), m_tottasks, m_nowake, m_workersleeps, m_clientsleeps)); // Perform the thread joins and compute overall status // Workers return (void*)1 if ok void *statusall = (void*)1; std::list::iterator it; while (!m_worker_threads.empty()) { void *status; it = m_worker_threads.begin(); pthread_join(*it, &status); if (status == (void *)0) statusall = status; m_worker_threads.erase(it); } // Reset to start state. m_workers_exited = m_clients_waiting = m_workers_waiting = m_tottasks = m_nowake = m_workersleeps = m_clientsleeps = 0; m_ok = true; LOGDEB(("setTerminateAndWait:%s done\n", m_name.c_str())); return statusall; } /** Take task from queue. Called from worker. * * Sleeps if there are not enough. Signal if we go to sleep on empty * queue: client may be waiting for our going idle. */ bool take(T* tp, size_t *szp = 0) { PTMutexLocker lock(m_mutex); if (!lock.ok() || !ok()) { LOGDEB(("WorkQueue::take:%s: not ok\n", m_name.c_str())); return false; } while (ok() && m_queue.size() < m_low) { m_workersleeps++; m_workers_waiting++; if (m_queue.empty()) pthread_cond_broadcast(&m_ccond); if (pthread_cond_wait(&m_wcond, lock.getMutex()) || !ok()) { // !ok is a normal condition when shutting down if (ok()) LOGERR(("WorkQueue::take:%s: cond_wait failed or !ok\n", m_name.c_str())); m_workers_waiting--; return false; } m_workers_waiting--; } m_tottasks++; *tp = m_queue.front(); if (szp) *szp = m_queue.size(); m_queue.pop(); if (m_clients_waiting > 0) { // No reason to wake up more than one client thread pthread_cond_signal(&m_ccond); } else { m_nowake++; } return true; } /** Advertise exit and abort queue. Called from worker * * This would happen after an unrecoverable error, or when * the queue is terminated by the client. Workers never exit normally, * except when the queue is shut down (at which point m_ok is set to * false by the shutdown code anyway). The thread must return/exit * immediately after calling this. */ void workerExit() { LOGDEB(("workerExit:%s\n", m_name.c_str())); PTMutexLocker lock(m_mutex); m_workers_exited++; m_ok = false; pthread_cond_broadcast(&m_ccond); } size_t qsize() { PTMutexLocker lock(m_mutex); size_t sz = m_queue.size(); return sz; } private: bool ok() { bool isok = m_ok && m_workers_exited == 0 && !m_worker_threads.empty(); if (!isok) { LOGDEB(("WorkQueue:ok:%s: not ok m_ok %d m_workers_exited %d " "m_worker_threads size %d\n", m_name.c_str(), m_ok, m_workers_exited, int(m_worker_threads.size()))); } return isok; } long long nanodiff(const struct timespec& older, const struct timespec& newer) { return (newer.tv_sec - older.tv_sec) * 1000000000LL + newer.tv_nsec - older.tv_nsec; } // Configuration string m_name; size_t m_high; size_t m_low; // Status // Worker threads having called exit unsigned int m_workers_exited; bool m_ok; // Per-thread data. The data is not used currently, this could be // a set std::list m_worker_threads; // Synchronization std::queue m_queue; pthread_cond_t m_ccond; pthread_cond_t m_wcond; PTMutexInit m_mutex; // Client/Worker threads currently waiting for a job unsigned int m_clients_waiting; unsigned int m_workers_waiting; // Statistics unsigned int m_tottasks; unsigned int m_nowake; unsigned int m_workersleeps; unsigned int m_clientsleeps; }; #endif /* _WORKQUEUE_H_INCLUDED_ */ recoll-1.21.5/utils/debuglog.h0000644000175000017500000000742012602163540015465 0ustar dockesdockes/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DEBUGLOG_H_ #define _DEBUGLOG_H_ /* Macros for log and debug messages */ #include namespace DebugLog { #ifndef DEBUGLOG_USE_THREADS #define DEBUGLOG_USE_THREADS 1 #endif #define DEBFATAL 1 #define DEBERR 2 #define DEBINFO 3 #define DEBDEB 4 #define DEBDEB0 5 #define DEBDEB1 6 #define DEBDEB2 7 #define DEBDEB3 8 #ifndef STATICVERBOSITY #define STATICVERBOSITY DEBDEB0 #endif class DebugLogWriter; class DebugLog { std::stack levels; int debuglevel; int dodate; DebugLogWriter *writer; bool fileyes; public: DebugLog() : debuglevel(10), dodate(0), writer(0), fileyes(true) {} DebugLog(DebugLogWriter *w) : debuglevel(-1), dodate(0), writer(w), fileyes(true) {} virtual ~DebugLog() {} virtual void setwriter(DebugLogWriter *w) {writer = w;} virtual DebugLogWriter *getwriter() {return writer;} virtual void prolog(int lev, const char *srcfname, int line); virtual void log(const char *s ...); virtual void setloglevel(int lev); inline int getlevel() {return debuglevel;} virtual void pushlevel(int lev); virtual void poplevel(); virtual void logdate(int onoff) {dodate = onoff;} static bool isspecialname(const char *logname); }; extern DebugLog *getdbl(); extern const char *getfilename(); extern int setfilename(const char *fname, int trnc = 1); extern int reopen(); #if STATICVERBOSITY >= DEBFATAL #define LOGFATAL(X) {if (DebugLog::getdbl()->getlevel()>=DEBFATAL){DebugLog::getdbl()->prolog(DEBFATAL,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGFATAL(X) #endif #if STATICVERBOSITY >= DEBERR #define LOGERR(X) {if (DebugLog::getdbl()->getlevel()>=DEBERR){DebugLog::getdbl()->prolog(DEBERR,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGERR(X) #endif #if STATICVERBOSITY >= DEBINFO #define LOGINFO(X) {if (DebugLog::getdbl()->getlevel()>=DEBINFO){DebugLog::getdbl()->prolog(DEBINFO,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGINFO(X) #endif #if STATICVERBOSITY >= DEBDEB #define LOGDEB(X) {if (DebugLog::getdbl()->getlevel()>=DEBDEB){DebugLog::getdbl()->prolog(DEBDEB,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGDEB(X) #endif #if STATICVERBOSITY >= DEBDEB0 #define LOGDEB0(X) {if (DebugLog::getdbl()->getlevel()>=DEBDEB0){DebugLog::getdbl()->prolog(DEBDEB0,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGDEB0(X) #endif #if STATICVERBOSITY >= DEBDEB1 #define LOGDEB1(X) {if (DebugLog::getdbl()->getlevel()>=DEBDEB1){DebugLog::getdbl()->prolog(DEBDEB1,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGDEB1(X) #endif #if STATICVERBOSITY >= DEBDEB2 #define LOGDEB2(X) {if (DebugLog::getdbl()->getlevel()>=DEBDEB2){DebugLog::getdbl()->prolog(DEBDEB2,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGDEB2(X) #endif #if STATICVERBOSITY >= DEBDEB3 #define LOGDEB3(X) {if (DebugLog::getdbl()->getlevel()>=DEBDEB3){DebugLog::getdbl()->prolog(DEBDEB3,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}} #else #define LOGDEB3(X) #endif } #endif /* _DEBUGLOG_H_ */ recoll-1.21.5/utils/workqueue.cpp0000644000175000017500000000334512602163572016266 0ustar dockesdockes#include #include #include #include #include #include "workqueue.h" static char *thisprog; static char usage [] = " \n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_s 0x2 #define OPT_b 0x4 class Task { public: Task() : m_id(o_id++) {} int m_id; static int o_id; }; int Task::o_id; void *worker(void *vtp) { fprintf(stderr, "Worker working\n"); WorkQueue *tqp = (WorkQueue *)vtp; Task tsk; for (;;) { if (!tqp->take(&tsk)) { fprintf(stderr, "Worker: take failed\n"); return (void*)0; } fprintf(stderr, "WORKER: got task %d\n", tsk.m_id); if (tsk.m_id > 20) { tqp->workerExit(); break; } } return (void*)1; } int main(int argc, char **argv) { int count = 10; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 's': op_flags |= OPT_s; break; case 'b': op_flags |= OPT_b; if (argc < 2) Usage(); if ((sscanf(*(++argv), "%d", &count)) != 1) Usage(); argc--; goto b1; default: Usage(); break; } b1: argc--; argv++; } if (argc != 0) Usage(); WorkQueue wq(10); if (!wq.start(&worker, &wq)) { fprintf(stderr, "Start failed\n"); exit(1); } for (;;) { Task tsk; fprintf(stderr, "BOSS: put task %d\n", tsk.m_id); if (!wq.put(tsk)) { fprintf(stderr, "Boss: put failed\n"); exit(1); } if ((tsk.m_id % 10) == 0) sleep(1); } exit(0); } recoll-1.21.5/utils/appformime.h0000644000175000017500000000545312602163572016045 0ustar dockesdockes/* Copyright (C) 2014 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _APPFORMIME_H_INCLUDED_ #define _APPFORMIME_H_INCLUDED_ #include /** * Rather strangely, I could not find a reasonably simple piece of * code which would parse /usr/share/applications to return a list of * apps for a given mime type. So here goes. Note that the implementation * is very primitive for now (no use of cache file, no updating once built). * Also, this is not thread-safe, but could be made so quite easily. */ class DesktopDb { public: class AppDef { public: AppDef(const std::string& nm, const std::string& cmd) : name(nm), command(cmd) {} AppDef() {} std::string name; std::string command; }; /** Build/Get the db for the standard fdo directory */ static DesktopDb* getDb(); /** Constructor for a db based on a non-standard location */ DesktopDb(const string& dir); /** In case of error: what happened ? */ const string& getReason(); /** * Get a list of applications able to process a given MIME type. * @param mime MIME type we want the apps for * @param[output] apps appropriate applications * @param[output] reason if we fail, an explanation ? * @return true for no error (apps may still be empty). false if a serious * problem was detected. */ bool appForMime(const std::string& mime, vector *apps, std::string *reason = 0); /** * Get all applications defs: * @param[output] apps applications * @return true */ bool allApps(vector *apps); /** * Get app with given name */ bool appByName(const string& nm, AppDef& app); typedef map > AppMap; private: /** This is used by getDb() and builds a db for the standard location */ DesktopDb(); void build(const string& dir); DesktopDb(const DesktopDb &); DesktopDb& operator=(const DesktopDb &); AppMap m_appMap; std::string m_reason; bool m_ok; }; #endif /* _APPFORMIME_H_INCLUDED_ */ recoll-1.21.5/utils/smallut.h0000644000175000017500000001767712602163572015402 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SMALLUT_H_INCLUDED_ #define _SMALLUT_H_INCLUDED_ #include #include #include #include #include using std::string; using std::vector; using std::map; using std::set; // Note these are all ascii routines extern int stringicmp(const string& s1, const string& s2); // For find_if etc. struct StringIcmpPred { StringIcmpPred(const string& s1) : m_s1(s1) {} bool operator()(const string& s2) { return stringicmp(m_s1, s2) == 0; } const string& m_s1; }; extern int stringlowercmp(const string& alreadylower, const string& s2); extern int stringuppercmp(const string& alreadyupper, const string& s2); extern void stringtolower(string& io); extern string stringtolower(const string& io); // Is one string the end part of the other ? extern int stringisuffcmp(const string& s1, const string& s2); // Divine language from locale extern std::string localelang(); // Divine 8bit charset from language extern std::string langtocode(const string& lang); // Compare charset names, removing the more common spelling variations extern bool samecharset(const string &cs1, const string &cs2); // Parse date interval specifier into pair of y,m,d dates. The format // for the time interval is based on a subset of iso 8601 with // the addition of open intervals, and removal of all time indications. // 'P' is the Period indicator, it's followed by a length in // years/months/days (or any subset thereof) // Dates: YYYY-MM-DD YYYY-MM YYYY // Periods: P[nY][nM][nD] where n is an integer value. // At least one of YMD must be specified // The separator for the interval is /. Interval examples // YYYY/ (from YYYY) YYYY-MM-DD/P3Y (3 years after date) etc. // This returns a pair of y,m,d dates. struct DateInterval { int y1;int m1;int d1; int y2;int m2;int d2; }; extern bool parsedateinterval(const string&s, DateInterval *di); extern int monthdays(int mon, int year); /** * Parse input string into list of strings. * * Token delimiter is " \t\n" except inside dquotes. dquote inside * dquotes can be escaped with \ etc... * Input is handled a byte at a time, things will work as long as space tab etc. * have the ascii values and can't appear as part of a multibyte char. utf-8 ok * but so are the iso-8859-x and surely others. addseps do have to be * single-bytes */ template bool stringToStrings(const string& s, T &tokens, const string& addseps = ""); /** * Inverse operation: */ template void stringsToString(const T &tokens, string &s); template std::string stringsToString(const T &tokens); /** * Strings to CSV string. tokens containing the separator are quoted (") * " inside tokens is escaped as "" ([word "quote"] =>["word ""quote"""] */ template void stringsToCSV(const T &tokens, string &s, char sep = ','); /** * Split input string. No handling of quoting */ extern void stringToTokens(const string &s, vector &tokens, const string &delims = " \t", bool skipinit=true); /** Convert string to boolean */ extern bool stringToBool(const string &s); /** Remove instances of characters belonging to set (default {space, tab}) at beginning and end of input string */ extern void trimstring(string &s, const char *ws = " \t"); /** Escape things like < or & by turning them into entities */ extern string escapeHtml(const string &in); /** Replace some chars with spaces (ie: newline chars). This is not utf8-aware * so chars should only contain ascii */ extern string neutchars(const string &str, const string &chars); extern void neutchars(const string &str, string& out, const string &chars); /** Turn string into something that won't be expanded by a shell. In practise * quote with double-quotes and escape $`\ */ extern string escapeShell(const string &str); /** Truncate a string to a given maxlength, avoiding cutting off midword * if reasonably possible. */ extern string truncate_to_word(const string &input, string::size_type maxlen); /** Truncate in place in an utf8-legal way */ extern void utf8truncate(string &s, int maxlen); /** Convert byte count into unit (KB/MB...) appropriate for display */ string displayableBytes(off_t size); /** Break big string into lines */ string breakIntoLines(const string& in, unsigned int ll = 100, unsigned int maxlines= 50); /** Small utility to substitute printf-like percents cmds in a string */ bool pcSubst(const string& in, string& out, const map& subs); /** Substitute printf-like percents and also %(key) */ bool pcSubst(const string& in, string& out, const map& subs); /** Append system error message */ void catstrerror(string *reason, const char *what, int _errno); /** Compute times to help with perf issues */ class Chrono { public: Chrono(); /** Reset origin */ long restart(); /** Snapshot current time */ static void refnow(); /** Get current elapsed since creation or restart * * @param frozen give time since the last refnow call (this is to * allow for using one actual system call to get values from many * chrono objects, like when examining timeouts in a queue) */ long millis(int frozen = 0); long ms() {return millis();} long micros(int frozen = 0); long long nanos(int frozen = 0); float secs(int frozen = 0); private: long m_secs; long m_nsecs; }; /** Temp buffer with automatic deallocation */ struct TempBuf { TempBuf() : m_buf(0) {} TempBuf(int n) { m_buf = (char *)malloc(n); } ~TempBuf() { if (m_buf) free(m_buf); } char *setsize(int n) { return (m_buf = (char *)realloc(m_buf, n)); } char *buf() {return m_buf;} char *m_buf; }; inline void leftzeropad(string& s, unsigned len) { if (s.length() && s.length() < len) s = s.insert(0, len - s.length(), '0'); } // Duplicate map while ensuring no shared string data (to pass // to other thread): void map_ss_cp_noshr(const std::map s, std::map *d); // Code for static initialization of an stl map. Somewhat like Boost.assign. // Ref: http://stackoverflow.com/questions/138600/initializing-a-static-stdmapint-int-in-c // Example use: map m = create_map (1,2) (3,4) (5,6) (7,8); template class create_map { private: std::map m_map; public: create_map(const T& key, const U& val) { m_map[key] = val; } create_map& operator()(const T& key, const U& val) { m_map[key] = val; return *this; } operator std::map() { return m_map; } }; template class create_vector { private: std::vector m_vector; public: create_vector(const T& val) { m_vector.push_back(val); } create_vector& operator()(const T& val) { m_vector.push_back(val); return *this; } operator std::vector() { return m_vector; } }; #ifndef MIN #define MIN(A,B) (((A)<(B)) ? (A) : (B)) #endif #ifndef MAX #define MAX(A,B) (((A)>(B)) ? (A) : (B)) #endif #ifndef deleteZ #define deleteZ(X) {delete X;X = 0;} #endif void smallut_init_mt(); #endif /* _SMALLUT_H_INCLUDED_ */ recoll-1.21.5/utils/md5ut.h0000644000175000017500000000236412602163540014735 0ustar dockesdockes/* Copyright (C) 2014 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MD5UT_H_ #define _MD5UT_H_ #include #include "md5.h" /** md5 utility wrappers */ #include using std::string; extern void MD5Final(string& digest, MD5_CTX *); extern bool MD5File(const string& filename, string& digest, string *reason); extern string& MD5String(const string& data, string& digest); extern string& MD5HexPrint(const string& digest, string& xdigest); extern string& MD5HexScan(const string& xdigest, string& digest); #endif /* _MD5UT_H_ */ recoll-1.21.5/utils/mimeparse.h0000644000175000017500000000717012602163540015661 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _MIME_H_INCLUDED_ #define _MIME_H_INCLUDED_ /* Mime definitions RFC to 4-9-2006: 2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies. N. Freed, N. Borenstein. November 1996. (Format: TXT=72932 bytes) (Obsoletes RFC1521, RFC1522, RFC1590) (Updated by RFC2184, RFC2231) (Status: DRAFT STANDARD) 2046 Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types. N. Freed, N. Borenstein. November 1996. (Format: TXT=105854 bytes) (Obsoletes RFC1521, RFC1522, RFC1590) (Updated by RFC2646, RFC3798) (Status: DRAFT STANDARD) 2047 MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text. K. Moore. November 1996. (Format: TXT=33262 bytes) (Obsoletes RFC1521, RFC1522, RFC1590) (Updated by RFC2184, RFC2231) (Status: DRAFT STANDARD) 2183 Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field. R. Troost, S. Dorner, K. Moore, Ed.. August 1997. (Format: TXT=23150 bytes) (Updates RFC1806) (Updated by RFC2184, RFC2231) (Status: PROPOSED STANDARD) 2231 MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations. N. Freed, K. Moore. November 1997. (Format: TXT=19280 bytes) (Obsoletes RFC2184) (Updates RFC2045, RFC2047, RFC2183) (Status: PROPOSED STANDARD) */ #include #include #include #include "base64.h" #ifndef NO_NAMESPACES using std::string; #endif /** A class to represent a MIME header value with parameters */ class MimeHeaderValue { public: string value; std::map params; }; /** * Parse MIME Content-type and Content-disposition value * * @param in the input string should be like: value; pn1=pv1; pn2=pv2. * Example: text/plain; charset="iso-8859-1" */ extern bool parseMimeHeaderValue(const string& in, MimeHeaderValue& psd); /** * Quoted printable decoding. Doubles up as rfc2231 decoder, hence the esc * RFC2045 Quoted printable uses '=' , rfc2331 uses '%'. The two encodings are * otherwise similar. */ extern bool qp_decode(const string& in, string &out, char esc = '='); /** Decode an Internet mail field value encoded according to rfc2047 * * Example input: Some words =?iso-8859-1?Q?RE=A0=3A_Smoke_Tests?= more input * * Note that MIME parameter values are explicitly NOT to be encoded with * this encoding which is only for headers like Subject:, To:. But it * is sometimes used anyway... * * @param in input string, ascii with rfc2047 markup * @return out output string encoded in utf-8 */ extern bool rfc2047_decode(const string& in, string &out); /** Decode RFC2822 date to unix time (gmt secs from 1970 * * @param dt date string (the part after Date: ) * @return unix time */ time_t rfc2822DateToUxTime(const string& dt); #endif /* _MIME_H_INCLUDED_ */ recoll-1.21.5/utils/netcon.h0000644000175000017500000003216612602163572015175 0ustar dockesdockes#ifndef _NETCON_H_ #define _NETCON_H_ /* Copyright (C) 2002 Jean-Francois Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "refcntr.h" /// A set of classes to manage client-server communication over a /// connection-oriented network, or a pipe. /// /// The listening/connection-accepting code currently only uses /// TCP. The classes include client-side and server-side (accepting) /// endpoints. Netcon also has server-side static code to handle a set /// of client connections in parallel. This should be moved to a /// friend class. /// /// The client data transfer class can also be used for /// timeout-protected/asynchronous io using a given fd (ie a pipe /// descriptor) /// Base class for all network endpoints: class Netcon; typedef RefCntr NetconP; class SelectLoop; class Netcon { public: enum Event {NETCONPOLL_READ = 0x1, NETCONPOLL_WRITE=0x2}; Netcon() : m_peer(0), m_fd(-1), m_ownfd(true), m_didtimo(0), m_wantedEvents(0), m_loop(0) { } virtual ~Netcon(); /// Remember whom we're talking to. We let external code do this because /// the application may have a non-dns method to find the peer name. virtual void setpeer(const char *hostname); /// Retrieve the peer's hostname. Only works if it was set before ! virtual const char *getpeer() { return m_peer ? (const char *)m_peer : "none"; } /// Set or reset the TCP_NODELAY option. virtual int settcpnodelay(int on = 1); /// Did the last receive() call time out ? Resets the flag. virtual int timedout() { int s = m_didtimo; m_didtimo = 0; return s; } /// Return string version of last syscall error virtual char *sterror(); /// Return the socket descriptor virtual int getfd() { return m_fd; } /// Close the current connection if it is open virtual void closeconn(); /// Set/reset the non-blocking flag on the underlying fd. Returns /// prev state The default is that sockets are blocking except /// when added to the selectloop, or, transparently, to handle /// connection timeout issues. virtual int set_nonblock(int onoff); /// Decide what events the connection will be looking for /// (NETCONPOLL_READ, NETCONPOLL_WRITE) int setselevents(int evs) { return m_wantedEvents = evs; } /// Retrieve the connection's currently monitored set of events int getselevents() { return m_wantedEvents; } /// Add events to current set int addselevents(int evs) { return m_wantedEvents |= evs; } /// Clear events from current set int clearselevents(int evs) { return m_wantedEvents &= ~evs; } friend class SelectLoop; SelectLoop *getloop() { return m_loop; } /// Utility function for a simplified select() interface: check one fd /// for reading or writing, for a specified maximum number of seconds. static int select1(int fd, int secs, int writing = 0); protected: char *m_peer; // Name of the connected host int m_fd; bool m_ownfd; int m_didtimo; // Used when part of the selectloop map. short m_wantedEvents; SelectLoop *m_loop; // Method called by the selectloop when something can be done with a netcon virtual int cando(Netcon::Event reason) = 0; // Called when added to loop virtual void setloop(SelectLoop *loop) { m_loop = loop; } }; /// The selectloop interface is used to implement parallel servers. // The select loop mechanism allows several netcons to be used for io // in a program without blocking as long as there is data to be read // or written. In a multithread program which is also using select, it // would typically make sense to have one SelectLoop active per // thread. class SelectLoop { public: SelectLoop() : m_selectloopDoReturn(false), m_selectloopReturnValue(0), m_placetostart(0), m_periodichandler(0), m_periodicparam(0), m_periodicmillis(0) { } /// Loop waiting for events on the connections and call the /// cando() method on the object when something happens (this will in /// turn typically call the app callback set on the netcon). Possibly /// call the periodic handler (if set) at regular intervals. /// @return -1 for error. 0 if no descriptors left for i/o. 1 for periodic /// timeout (should call back in after processing) int doLoop(); /// Call from data handler: make selectloop return the param value void loopReturn(int value) { m_selectloopDoReturn = true; m_selectloopReturnValue = value; } /// Add a connection to be monitored (this will usually be called /// from the server's listen connection's accept callback) int addselcon(NetconP con, int events); /// Remove a connection from the monitored set. This is /// automatically called when EOF is detected on a connection. int remselcon(NetconP con); /// Set a function to be called periodically, or a time before return. /// @param handler the function to be called. /// - if it is 0, selectloop() will return after ms mS (and can be called /// again /// - if it is not 0, it will be called at ms mS intervals. If its return /// value is <= 0, selectloop will return. /// @param clp client data to be passed to handler at every call. /// @param ms milliseconds interval between handler calls or /// before return. Set to 0 for no periodic handler. void setperiodichandler(int (*handler)(void *), void *clp, int ms); private: // Set by client callback to tell selectloop to return. bool m_selectloopDoReturn; int m_selectloopReturnValue; int m_placetostart; // Map of NetconP indexed by fd std::map m_polldata; // The last time we did the periodic thing. Initialized by setperiodic() struct timeval m_lasthdlcall; // The call back function and its parameter int (*m_periodichandler)(void *); void *m_periodicparam; // The periodic interval int m_periodicmillis; void periodictimeout(struct timeval *tv); int maybecallperiodic(); }; /////////////////////// class NetconData; /// Class for the application callback routine (when in selectloop). /// /// This is set by the app on the NetconData by calling /// setcallback(). It is then called from the NetconData's cando() /// routine, itself called by selectloop. /// /// It would be nicer to override cando() in a subclass instead of /// setting a callback, but this can't be done conveniently because /// accept() always creates a base NetconData (another approach would /// be to pass a factory function to the listener, to create /// NetconData derived classes). class NetconWorker { public: virtual ~NetconWorker() {} virtual int data(NetconData *con, Netcon::Event reason) = 0; }; /// Base class for connections that actually transfer data. T class NetconData : public Netcon { public: NetconData() : m_buf(0), m_bufbase(0), m_bufbytes(0), m_bufsize(0) { } virtual ~NetconData(); /// Write data to the connection. /// @param buf the data buffer /// @param cnt the number of bytes we should try to send /// @param expedited send data in as 'expedited' data. /// @return the count of bytes actually transferred, -1 if an /// error occurred. virtual int send(const char *buf, int cnt, int expedited = 0); /// Read from the connection /// @param buf the data buffer /// @param cnt the number of bytes we should try to read (but we return /// as soon as we get data) /// @param timeo maximum number of seconds we should be waiting for data. /// @return the count of bytes actually read. 0 for timeout (call /// didtimo() to discriminate from EOF). -1 if an error occurred. virtual int receive(char *buf, int cnt, int timeo = -1); /// Loop on receive until cnt bytes are actually read or a timeout occurs virtual int doreceive(char *buf, int cnt, int timeo = -1); /// Check for data being available for reading virtual int readready(); /// Check for data being available for writing virtual int writeready(); /// Read a line of text on an ascii connection. Returns -1 or byte count /// including final 0. \n is kept virtual int getline(char *buf, int cnt, int timeo = -1); /// Set handler to be called when the connection is placed in the /// selectloop and an event occurs. virtual void setcallback(RefCntr user) { m_user = user; } private: char *m_buf; // Buffer. Only used when doing getline()s char *m_bufbase; // Pointer to current 1st byte of useful data int m_bufbytes; // Bytes of data. int m_bufsize; // Total buffer size RefCntr m_user; virtual int cando(Netcon::Event reason); // Selectloop slot }; /// Network endpoint, client side. class NetconCli : public NetconData { public: NetconCli(int silent = 0) { m_silentconnectfailure = silent; } /// Open connection to specified host and named service. Set host /// to an absolute path name for an AF_UNIX service. serv is /// ignored in this case. int openconn(const char *host, const char *serv, int timeo = -1); /// Open connection to specified host and numeric port. port is in /// HOST byte order. Set host to an absolute path name for an /// AF_UNIX service. serv is ignored in this case. int openconn(const char *host, unsigned int port, int timeo = -1); /// Reuse existing fd. /// We DONT take ownership of the fd, and do no closin' EVEN on an /// explicit closeconn() or setconn() (use getfd(), close, /// setconn(-1) if you need to really close the fd and have no /// other copy). int setconn(int fd); /// Do not log message if openconn() fails. void setSilentFail(int onoff) { m_silentconnectfailure = onoff; } private: int m_silentconnectfailure; // No logging of connection failures if set }; class NetconServCon; #ifdef NETCON_ACCESSCONTROL struct intarrayparam { int len; unsigned int *intarray; }; #endif /* NETCON_ACCESSCONTROL */ /// Server listening end point. /// /// if NETCON_ACCESSCONTROL is defined during compilation, /// NetconServLis has primitive access control features: okaddrs holds /// the host addresses for the hosts which we allow to connect to /// us. okmasks holds the masks to be used for comparison. okmasks /// can be shorter than okaddrs, in which case we use the last entry /// for all addrs beyond the masks array length. Both arrays are /// retrieved from the configuration file when we create the endpoint /// the key is either based on the service name (ex: cdpathdb_okaddrs, /// cdpathdb_okmasks), or "default" if the service name is not found /// (ex: default_okaddrs, default_okmasks) class NetconServLis : public Netcon { public: NetconServLis() { #ifdef NETCON_ACCESSCONTROL permsinit = 0; okaddrs.len = okmasks.len = 0; okaddrs.intarray = okmasks.intarray = 0; #endif /* NETCON_ACCESSCONTROL */ } ~NetconServLis(); /// Open named service. Used absolute pathname to create an /// AF_UNIX path-based socket instead of an IP one. int openservice(const char *serv, int backlog = 10); /// Open service by port number. int openservice(int port, int backlog = 10); /// Wait for incoming connection. Returned connected Netcon NetconServCon *accept(int timeo = -1); protected: /// This should be overriden in a derived class to handle incoming /// connections. It will usually call NetconServLis::accept(), and /// insert the new connection in the selectloop. virtual int cando(Netcon::Event reason); // Empty if port was numeric, else service name or socket path std::string m_serv; private: #ifdef NETCON_ACCESSCONTROL int permsinit; struct intarrayparam okaddrs; struct intarrayparam okmasks; int initperms(const char *servicename); int initperms(int port); int checkperms(void *cli, int clilen); #endif /* NETCON_ACCESSCONTROL */ }; /// Server-side accepted client connection. The only specific code /// allows closing the listening endpoint in the child process (in the /// case of a forking server) class NetconServCon : public NetconData { public: NetconServCon(int newfd, Netcon* lis = 0) { m_liscon = lis; m_fd = newfd; } /// This is for forked servers that want to get rid of the main socket void closeLisCon() { if (m_liscon) { m_liscon->closeconn(); } } private: Netcon* m_liscon; }; #endif /* _NETCON_H_ */ recoll-1.21.5/utils/utf8iter.cpp0000644000175000017500000001013612602163572016005 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "debuglog.h" #include "transcode.h" #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ #define UTF8ITER_CHECK #include "utf8iter.h" #include "readfile.h" const char *thisprog; static char usage [] = "utf8iter [opts] infile outfile\n" " converts infile to 32 bits unicode (processor order), for testing\n" "-v : print stuff as we go\n" ; void Usage() { fprintf(stderr, "%s:%s\n", thisprog, usage); exit(1); } static int op_flags; #define OPT_v 0x2 int main(int argc, char **argv) { thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) Usage(); while (**argv) switch (*(*argv)++) { case 'v': op_flags |= OPT_v; break; default: Usage(); break; } argc--;argv++; } if (argc != 2) { Usage(); } const char *infile = *argv++;argc--; const char *outfile = *argv++;argc--; string in; if (!file_to_string(infile, in)) { cerr << "Cant read file\n" << endl; exit(1); } vectorucsout1; string out, out1; Utf8Iter it(in); FILE *fp = fopen(outfile, "w"); if (fp == 0) { fprintf(stderr, "cant create %s\n", outfile); exit(1); } int nchars = 0; for (;!it.eof(); it++) { unsigned int value = *it; if (value == (unsigned int)-1) { cerr << "Conversion error occurred\n" << endl; exit(1); } if (op_flags & OPT_v) { printf("Value: 0x%x", value); if (value < 0x7f) printf(" (%c) ", value); printf("\n"); } // UTF-32LE or BE array ucsout1.push_back(value); // UTF-32LE or BE file fwrite(&value, 4, 1, fp); // Reconstructed utf8 strings (2 methods) if (!it.appendchartostring(out)) break; // conversion to string out1 += it; // fprintf(stderr, "%s", string(it).c_str()); nchars++; } fclose(fp); fprintf(stderr, "nchars %d\n", nchars); if (in.compare(out)) { fprintf(stderr, "error: out != in\n"); exit(1); } if (in != out1) { fprintf(stderr, "error: out1 != in\n"); exit(1); } // Rewind and do it a second time vectorucsout2; it.rewind(); for (int i = 0; ; i++) { unsigned int value; if ((value = it[i]) == (unsigned int)-1) { fprintf(stderr, "%d chars\n", i); break; } it++; ucsout2.push_back(value); } if (ucsout1 != ucsout2) { fprintf(stderr, "error: ucsout1 != ucsout2\n"); exit(1); } ucsout2.clear(); int ercnt; const char *encoding = "UTF-32LE"; // note : use BE on high-endian machine string ucs, ucs1; for (vector::iterator it = ucsout1.begin(); it != ucsout1.end(); it++) { unsigned int i = *it; ucs.append((const char *)&i, 4); } if (!transcode(ucs, ucs1, encoding, encoding, &ercnt) || ercnt) { fprintf(stderr, "Transcode check failed, ercount: %d\n", ercnt); exit(1); } if (ucs.compare(ucs1)) { fprintf(stderr, "error: ucsout1 != ucsout2 after iconv\n"); exit(1); } if (!transcode(ucs, ucs1, encoding, "UTF-8", &ercnt) || ercnt) { fprintf(stderr, "Transcode back to utf-8 check failed, ercount: %d\n", ercnt); exit(1); } if (ucs1.compare(in)) { fprintf(stderr, "Transcode back to utf-8 compare to in failed\n"); exit(1); } exit(0); } recoll-1.21.5/utils/conftree.cpp0000644000175000017500000006313212621306761016044 0ustar dockesdockes/* Copyright (C) 2003 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifndef TEST_CONFTREE #include // for access(2) #include #include #include #include #include #include #include #include using namespace std; #include "conftree.h" #include "pathut.h" #include "smallut.h" #undef DEBUG #ifdef DEBUG #define LOGDEB(X) fprintf X #else #define LOGDEB(X) #endif void ConfSimple::parseinput(istream &input) { string submapkey; string cline; bool appending = false; string line; bool eof = false; for (;;) { cline.clear(); std::getline(input, cline); LOGDEB((stderr, "Parse:line: [%s] status %d\n", cline.c_str(), int(status))); if (!input.good()) { if (input.bad()) { LOGDEB((stderr, "Parse: input.bad()\n")); status = STATUS_ERROR; return; } LOGDEB((stderr, "Parse: eof\n")); // Must be eof ? But maybe we have a partial line which // must be processed. This happens if the last line before // eof ends with a backslash, or there is no final \n eof = true; } { string::size_type pos = cline.find_last_not_of("\n\r"); if (pos == string::npos) { cline.clear(); } else if (pos != cline.length()-1) { cline.erase(pos+1); } } if (appending) line += cline; else line = cline; // Note that we trim whitespace before checking for backslash-eol // This avoids invisible whitespace problems. trimstring(line); if (line.empty() || line.at(0) == '#') { if (eof) break; m_order.push_back(ConfLine(ConfLine::CFL_COMMENT, line)); continue; } if (line[line.length() - 1] == '\\') { line.erase(line.length() - 1); appending = true; continue; } appending = false; if (line[0] == '[') { trimstring(line, "[]"); if (dotildexpand) submapkey = path_tildexpand(line); else submapkey = line; // No need for adding sk to order, will be done with first // variable insert. Also means that empty section are // expandable (won't be output when rewriting) // Another option would be to add the subsec to m_order here // and not do it inside i_set() if init is true continue; } // Look for first equal sign string::size_type eqpos = line.find("="); if (eqpos == string::npos) { m_order.push_back(ConfLine(ConfLine::CFL_COMMENT, line)); continue; } // Compute name and value, trim white space string nm, val; nm = line.substr(0, eqpos); trimstring(nm); val = line.substr(eqpos+1, string::npos); trimstring(val); if (nm.length() == 0) { m_order.push_back(ConfLine(ConfLine::CFL_COMMENT, line)); continue; } i_set(nm, val, submapkey, true); if (eof) break; } } ConfSimple::ConfSimple(int readonly, bool tildexp) : dotildexpand(tildexp), m_fmtime(0), m_holdWrites(false) { status = readonly ? STATUS_RO : STATUS_RW; } void ConfSimple::reparse(const string& d) { clear(); stringstream input(d, ios::in); parseinput(input); } ConfSimple::ConfSimple(const string& d, int readonly, bool tildexp) : dotildexpand(tildexp), m_fmtime(0), m_holdWrites(false) { status = readonly ? STATUS_RO : STATUS_RW; stringstream input(d, ios::in); parseinput(input); } ConfSimple::ConfSimple(const char *fname, int readonly, bool tildexp) : dotildexpand(tildexp), m_filename(fname), m_fmtime(0), m_holdWrites(false) { status = readonly ? STATUS_RO : STATUS_RW; ifstream input; if (readonly) { input.open(fname, ios::in); } else { ios::openmode mode = ios::in|ios::out; // It seems that there is no separate 'create if not exists' // open flag. Have to truncate to create, but dont want to do // this to an existing file ! if (access(fname, 0) < 0) { mode |= ios::trunc; } input.open(fname, mode); if (input.is_open()) { status = STATUS_RW; } else { input.clear(); input.open(fname, ios::in); if (input.is_open()) { status = STATUS_RO; } } } if (!input.is_open()) { status = STATUS_ERROR; return; } parseinput(input); i_changed(true); } ConfSimple::StatusCode ConfSimple::getStatus() const { switch (status) { case STATUS_RO: return STATUS_RO; case STATUS_RW: return STATUS_RW; default: return STATUS_ERROR; } } bool ConfSimple::sourceChanged() const { if (!m_filename.empty()) { struct stat st; if (stat(m_filename.c_str(), &st) == 0) { if (m_fmtime != st.st_mtime) { return true; } } } return false; } bool ConfSimple::i_changed(bool upd) { if (!m_filename.empty()) { struct stat st; if (stat(m_filename.c_str(), &st) == 0) { if (m_fmtime != st.st_mtime) { if (upd) m_fmtime = st.st_mtime; return true; } } } return false; } int ConfSimple::get(const string &nm, string &value, const string &sk) const { if (!ok()) return 0; // Find submap map >::const_iterator ss; if ((ss = m_submaps.find(sk)) == m_submaps.end()) return 0; // Find named value map::const_iterator s; if ((s = ss->second.find(nm)) == ss->second.end()) return 0; value = s->second; return 1; } // Appropriately output a subkey (nm=="") or variable line. // Splits long lines static ConfSimple::WalkerCode varprinter(void *f, const string &nm, const string &value) { ostream *output = (ostream *)f; if (nm.empty()) { *output << "\n[" << value << "]\n"; } else { string value1; if (value.length() < 60) { value1 = value; } else { string::size_type pos = 0; while (pos < value.length()) { string::size_type len = MIN(60, value.length() - pos); value1 += value.substr(pos, len); pos += len; if (pos < value.length()) value1 += "\\\n"; } } *output << nm << " = " << value1 << "\n"; } return ConfSimple::WALK_CONTINUE; } // Set variable and rewrite data int ConfSimple::set(const std::string &nm, const std::string &value, const string &sk) { if (status != STATUS_RW) return 0; LOGDEB((stderr, "ConfSimple::set [%s]:[%s] -> [%s]\n", sk.c_str(), nm.c_str(), value.c_str())); if (!i_set(nm, value, sk)) return 0; return write(); } // Internal set variable: no rw checking or file rewriting. If init is // set, we're doing initial parsing, else we are changing a parsed // tree (changes the way we update the order data) int ConfSimple::i_set(const std::string &nm, const std::string &value, const string &sk, bool init) { LOGDEB((stderr, "ConfSimple::i_set: nm[%s] val[%s] key[%s], init %d\n", nm.c_str(), value.c_str(), sk.c_str(), init)); // Values must not have embedded newlines if (value.find_first_of("\n\r") != string::npos) { LOGDEB((stderr, "ConfSimple::i_set: LF in value\n")); return 0; } bool existing = false; map >::iterator ss; // Test if submap already exists, else create it, and insert variable: if ((ss = m_submaps.find(sk)) == m_submaps.end()) { LOGDEB((stderr, "ConfSimple::i_set: new submap\n")); map submap; submap[nm] = value; m_submaps[sk] = submap; // Maybe add sk entry to m_order data: if (!sk.empty()) { ConfLine nl(ConfLine::CFL_SK, sk); // Append SK entry only if it's not already there (erase // does not remove entries from the order data, adn it may // be being recreated after deletion) if (find(m_order.begin(), m_order.end(), nl) == m_order.end()) { m_order.push_back(nl); } } } else { // Insert or update variable in existing map. map::iterator it; it = ss->second.find(nm); if (it == ss->second.end()) { ss->second.insert(pair(nm, value)); } else { it->second = value; existing = true; } } // If the variable already existed, no need to change the m_order data if (existing) { LOGDEB((stderr, "ConfSimple::i_set: existing var: no order update\n")); return 1; } // Add the new variable at the end of its submap in the order data. if (init) { // During the initial construction, just append: LOGDEB((stderr, "ConfSimple::i_set: init true: append\n")); m_order.push_back(ConfLine(ConfLine::CFL_VAR, nm)); return 1; } // Look for the start and end of the subkey zone. Start is either // at begin() for a null subkey, or just behind the subkey // entry. End is either the next subkey entry, or the end of // list. We insert the new entry just before end. vector::iterator start, fin; if (sk.empty()) { start = m_order.begin(); LOGDEB((stderr,"ConfSimple::i_set: null sk, start at top of order\n")); } else { start = find(m_order.begin(), m_order.end(), ConfLine(ConfLine::CFL_SK, sk)); if (start == m_order.end()) { // This is not logically possible. The subkey must // exist. We're doomed std::cerr << "Logical failure during configuration variable " "insertion" << endl; abort(); } } fin = m_order.end(); if (start != m_order.end()) { // The null subkey has no entry (maybe it should) if (!sk.empty()) start++; for (vector::iterator it = start; it != m_order.end(); it++) { if (it->m_kind == ConfLine::CFL_SK) { fin = it; break; } } } // It may happen that the order entry already exists because erase doesnt // update m_order if (find(start, fin, ConfLine(ConfLine::CFL_VAR, nm)) == fin) { m_order.insert(fin, ConfLine(ConfLine::CFL_VAR, nm)); } return 1; } int ConfSimple::erase(const string &nm, const string &sk) { if (status != STATUS_RW) return 0; map >::iterator ss; if ((ss = m_submaps.find(sk)) == m_submaps.end()) { return 0; } ss->second.erase(nm); if (ss->second.empty()) { m_submaps.erase(ss); } return write(); } int ConfSimple::eraseKey(const string &sk) { vector nms = getNames(sk); for (vector::iterator it = nms.begin(); it != nms.end(); it++) { erase(*it, sk); } return write(); } // Walk the tree, calling user function at each node ConfSimple::WalkerCode ConfSimple::sortwalk(WalkerCode (*walker)(void *,const string&,const string&), void *clidata) const { if (!ok()) return WALK_STOP; // For all submaps: for (map >::const_iterator sit = m_submaps.begin(); sit != m_submaps.end(); sit++) { // Possibly emit submap name: if (!sit->first.empty() && walker(clidata, string(), sit->first.c_str()) == WALK_STOP) return WALK_STOP; // Walk submap const map &sm = sit->second; for (map::const_iterator it = sm.begin();it != sm.end(); it++) { if (walker(clidata, it->first, it->second) == WALK_STOP) return WALK_STOP; } } return WALK_CONTINUE; } // Write to default output. This currently only does something if output is // a file bool ConfSimple::write() { if (!ok()) return false; if (m_holdWrites) return true; if (m_filename.length()) { ofstream output(m_filename.c_str(), ios::out|ios::trunc); if (!output.is_open()) return 0; return write(output); } else { // No backing store, no writing. Maybe one day we'll need it with // some kind of output string. This can't be the original string which // is currently readonly. //ostringstream output(m_ostring, ios::out | ios::trunc); return 1; } } // Write out the tree in configuration file format: // This does not check holdWrites, this is done by write(void), which // lets ie: showall work even when holdWrites is set bool ConfSimple::write(ostream& out) const { if (!ok()) return false; string sk; for (vector::const_iterator it = m_order.begin(); it != m_order.end(); it++) { switch(it->m_kind) { case ConfLine::CFL_COMMENT: out << it->m_data << endl; if (!out.good()) return false; break; case ConfLine::CFL_SK: sk = it->m_data; LOGDEB((stderr, "ConfSimple::write: SK [%s]\n", sk.c_str())); // Check that the submap still exists, and only output it if it // does if (m_submaps.find(sk) != m_submaps.end()) { out << "[" << it->m_data << "]" << endl; if (!out.good()) return false; } break; case ConfLine::CFL_VAR: string nm = it->m_data; LOGDEB((stderr, "ConfSimple::write: VAR [%s], sk [%s]\n", nm.c_str(), sk.c_str())); // As erase() doesnt update m_order we can find unexisting // variables, and must not output anything for them. Have // to use a ConfSimple::get() to check here, because // ConfTree's could retrieve from an ancestor even if the // local var is gone. string value; if (ConfSimple::get(nm, value, sk)) { varprinter(&out, nm, value); if (!out.good()) return false; break; } LOGDEB((stderr, "ConfSimple::write: no value: nm[%s] sk[%s]\n", nm.c_str(), sk.c_str())); break; } } return true; } void ConfSimple::showall() const { if (!ok()) return; write(std::cout); } vector ConfSimple::getNames(const string &sk, const char *pattern) const { vector mylist; if (!ok()) return mylist; map >::const_iterator ss; if ((ss = m_submaps.find(sk)) == m_submaps.end()) { return mylist; } mylist.reserve(ss->second.size()); map::const_iterator it; for (it = ss->second.begin(); it != ss->second.end(); it++) { if (pattern && 0 != fnmatch(pattern, it->first.c_str(), 0)) continue; mylist.push_back(it->first); } return mylist; } vector ConfSimple::getSubKeys() const { vector mylist; if (!ok()) return mylist; mylist.reserve(m_submaps.size()); map >::const_iterator ss; for (ss = m_submaps.begin(); ss != m_submaps.end(); ss++) { mylist.push_back(ss->first); } return mylist; } bool ConfSimple::hasNameAnywhere(const string& nm) const { vectorkeys = getSubKeys(); for (vector::const_iterator it = keys.begin(); it != keys.end(); it++) { string val; if (get(nm, val, *it)) return true; } return false; } // ////////////////////////////////////////////////////////////////////////// // ConfTree Methods: conftree interpret keys like a hierarchical file tree // ////////////////////////////////////////////////////////////////////////// int ConfTree::get(const std::string &name, string &value, const string &sk) const { if (sk.empty() || sk[0] != '/') { // LOGDEB((stderr, "ConfTree::get: looking in global space\n")); return ConfSimple::get(name, value, sk); } // Get writable copy of subkey path string msk = sk; // Handle the case where the config file path has an ending / and not // the input sk path_catslash(msk); // Look in subkey and up its parents until root ('') for (;;) { // LOGDEB((stderr,"ConfTree::get: looking for '%s' in '%s'\n", // name.c_str(), msk.c_str())); if (ConfSimple::get(name, value, msk)) return 1; string::size_type pos = msk.rfind("/"); if (pos != string::npos) { msk.replace(pos, string::npos, string()); } else break; } return 0; } #else // TEST_CONFTREE #include #include #include #include #include #include #include #include #include "conftree.h" #include "smallut.h" #include "readfile.h" using namespace std; static char *thisprog; bool complex_updates(const string& fn) { int fd; if ((fd = open(fn.c_str(), O_RDWR|O_TRUNC|O_CREAT, 0666)) < 0) { perror("open/create"); return false; } close(fd); ConfTree conf(fn.c_str()); if (!conf.ok()) { cerr << "Config init failed" << endl; return false; } conf.set("nm-1", "val-1", ""); conf.set("nm-2", "val-2", ""); conf.set("nm-1", "val1-1", "/dir1"); conf.set("nm-2", "val1-2", "/dir1"); conf.set("nm-1", "val2-1", "/dir2"); conf.set("nm-2", "val2-2", "/dir2"); conf.set("nm-1", "val11-1", "/dir1/dir1"); conf.set("nm-2", "val11-2", "/dir1/dir1"); conf.eraseKey("/dir2"); conf.set("nm-1", "val2-1", "/dir2"); conf.set("nm-2", "val2-2", "/dir2"); conf.erase("nm-1", ""); conf.erase("nm-2", ""); conf.eraseKey("/dir1"); conf.eraseKey("/dir2"); conf.eraseKey("/dir1/dir1"); conf.set("nm-1", "val1-1", "/dir1"); conf.set("nm-2", "val1-2", "/dir1"); conf.set("nm-1", "val-1", ""); conf.set("nm-1", "val2-1", "/dir2"); conf.set("nm-2", "val2-2", "/dir2"); conf.set("nm-1", "val11-1", "/dir1/dir1"); conf.set("nm-2", "val11-2", "/dir1/dir1"); conf.erase("nm-1", "/dir2"); conf.erase("nm-2", "/dir2"); conf.erase("nm-1", "/dir1/dir1"); conf.erase("nm-2", "/dir1/dir1"); string data; file_to_string(fn, data, 0); const string ref = "nm-1 = val-1\n" "[/dir1]\n" "nm-1 = val1-1\n" "nm-2 = val1-2\n" ; if (data.compare(ref)) { cerr << "Final file:" << endl << data << endl << "Differs from ref:" << endl << ref << endl; return false; } else { cout << "Updates test Ok" << endl; } return true; } ConfSimple::WalkerCode mywalker(void *, const string &nm, const string &value) { if (nm.empty()) printf("\n[%s]\n", value.c_str()); else printf("'%s' -> '%s'\n", nm.c_str(), value.c_str()); return ConfSimple::WALK_CONTINUE; } const char *longvalue = "Donnees012345678901234567890123456789012345678901234567890123456789AA" "0123456789012345678901234567890123456789012345678901234567890123456789FIN" ; void memtest(ConfSimple &c) { cout << "Initial:" << endl; c.showall(); if (c.set("nom", "avec nl \n 2eme ligne", "")) { fprintf(stderr, "set with embedded nl succeeded !\n"); exit(1); } if (!c.set(string("parm1"), string("1"), string("subkey1"))) { fprintf(stderr, "Set error"); exit(1); } if (!c.set("sparm", "Parametre \"string\" bla", "s2")) { fprintf(stderr, "Set error"); exit(1); } if (!c.set("long", longvalue, "")) { fprintf(stderr, "Set error"); exit(1); } cout << "Final:" << endl; c.showall(); } bool readwrite(ConfNull *conf) { if (conf->ok()) { // It's ok for the file to not exist here string value; if (conf->get("mypid", value)) { cout << "Value for mypid is [" << value << "]" << endl; } else { cout << "mypid not set" << endl; } if (conf->get("unstring", value)) { cout << "Value for unstring is ["<< value << "]" << endl; } else { cout << "unstring not set" << endl; } } char spid[100]; sprintf(spid, "%d", getpid()); if (!conf->set("mypid", spid)) { cerr << "Set mypid failed" << endl; } ostringstream ost; ost << "mypid" << getpid(); if (!conf->set(ost.str(), spid, "")) { cerr << "Set mypid failed (2)" << endl; } if (!conf->set("unstring", "Une jolie phrase pour essayer")) { cerr << "Set unstring failed" << endl; } return true; } bool query(ConfNull *conf, const string& nm, const string& sub) { if (!conf->ok()) { cerr << "Error opening or parsing file\n" << endl; return false; } string value; if (!conf->get(nm, value, sub)) { cerr << "name [" << nm << "] not found in [" << sub << "]" << endl; return false; } cout << "[" << sub << "] " << nm << " " << value << endl; return true; } bool erase(ConfNull *conf, const string& nm, const string& sub) { if (!conf->ok()) { cerr << "Error opening or parsing file\n" << endl; return false; } if (!conf->erase(nm, sub)) { cerr << "delete name [" << nm << "] in ["<< sub << "] failed" << endl; return false; } return true; } bool eraseKey(ConfNull *conf, const string& sub) { if (!conf->ok()) { cerr << "Error opening or parsing file\n" << endl; return false; } if (!conf->eraseKey(sub)) { cerr << "delete key [" << sub << "] failed" << endl; return false; } return true; } bool setvar(ConfNull *conf, const string& nm, const string& value, const string& sub) { if (!conf->ok()) { cerr << "Error opening or parsing file\n" << endl; return false; } if (!conf->set(nm, value, sub)) { cerr << "Set error\n" << endl; return false; } return true; } static char usage [] = "testconftree [opts] filename\n" "[-w] : read/write test.\n" "[-s] : string parsing test. Filename must hold parm 'strings'\n" "-a nm value sect : add/set nm,value in 'sect' which can be ''\n" "-q nm sect : subsection test: look for nm in 'sect' which can be ''\n" "-d nm sect : delete nm in 'sect' which can be ''\n" "-E sect : erase key (and all its names)\n" "-S : string io test. No filename in this case\n" "-V : volatile config test. No filename in this case\n" "-U : complex update test. Will erase the named file parameter\n" ; void Usage() { fprintf(stderr, "%s:%s\n", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_w 0x2 #define OPT_q 0x4 #define OPT_s 0x8 #define OPT_S 0x10 #define OPT_d 0x20 #define OPT_V 0x40 #define OPT_a 0x80 #define OPT_k 0x100 #define OPT_E 0x200 #define OPT_U 0x400 int main(int argc, char **argv) { const char *nm = 0; const char *sub = 0; const char *value = 0; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'a': op_flags |= OPT_a; if (argc < 4) Usage(); nm = *(++argv);argc--; value = *(++argv);argc--; sub = *(++argv);argc--; goto b1; case 'd': op_flags |= OPT_d; if (argc < 3) Usage(); nm = *(++argv);argc--; sub = *(++argv);argc--; goto b1; case 'E': op_flags |= OPT_E; if (argc < 2) Usage(); sub = *(++argv);argc--; goto b1; case 'k': op_flags |= OPT_k; break; case 'q': op_flags |= OPT_q; if (argc < 3) Usage(); nm = *(++argv);argc--; sub = *(++argv);argc--; goto b1; case 's': op_flags |= OPT_s; break; case 'S': op_flags |= OPT_S; break; case 'V': op_flags |= OPT_V; break; case 'U': op_flags |= OPT_U; break; case 'w': op_flags |= OPT_w; break; default: Usage(); break; } b1: argc--; argv++; } if ((op_flags & OPT_S)) { // String storage test if (argc != 0) Usage(); string s; ConfSimple c(s); memtest(c); exit(0); } else if ((op_flags & OPT_V)) { // No storage test if (argc != 0) Usage(); ConfSimple c; memtest(c); exit(0); } // Other tests use file(s) as backing store if (argc < 1) Usage(); if (op_flags & OPT_U) { exit(!complex_updates(argv[0])); } vector flist; while (argc--) { flist.push_back(*argv++); } bool ro = !(op_flags & (OPT_w|OPT_a|OPT_d|OPT_E)); ConfNull *conf = 0; switch (flist.size()) { case 0: Usage(); break; case 1: conf = new ConfTree(flist.front().c_str(), ro); break; default: conf = new ConfStack(flist, ro); break; } if (op_flags & OPT_w) { exit(!readwrite(conf)); } else if (op_flags & OPT_q) { exit(!query(conf, nm, sub)); } else if (op_flags & OPT_k) { if (!conf->ok()) { cerr << "conf init error" << endl; exit(1); } vectorlst = conf->getSubKeys(); for (vector::const_iterator it = lst.begin(); it != lst.end(); it++) { cout << *it << endl; } exit(0); } else if (op_flags & OPT_a) { exit(!setvar(conf, nm, value, sub)); } else if (op_flags & OPT_d) { exit(!erase(conf, nm, sub)); } else if (op_flags & OPT_E) { exit(!eraseKey(conf, sub)); } else if (op_flags & OPT_s) { if (!conf->ok()) { cerr << "Cant open /parse conf file " << endl; exit(1); } string source; if (!conf->get(string("strings"), source, "")) { cerr << "Cant get param 'strings'" << endl; exit(1); } cout << "source: [" << source << "]" << endl; vector strings; if (!stringToStrings(source, strings)) { cerr << "parse failed" << endl; exit(1); } for (vector::iterator it = strings.begin(); it != strings.end(); it++) { cout << "[" << *it << "]" << endl; } } else { if (!conf->ok()) { fprintf(stderr, "Open failed\n"); exit(1); } printf("LIST\n"); conf->showall(); //printf("WALK\n");conf->sortwalk(mywalker, 0); printf("\nNAMES in global space:\n"); vector names = conf->getNames(""); for (vector::iterator it = names.begin(); it!=names.end(); it++) cout << *it << " "; cout << endl; printf("\nNAMES in global space matching t* \n"); names = conf->getNames("", "t*"); for (vector::iterator it = names.begin(); it!=names.end(); it++) cout << *it << " "; cout << endl; } } #endif recoll-1.21.5/utils/utf8testin.txt0000644000175000017500000003335012602163540016403 0ustar dockesdockes UTF-8 encoded sample plain-text file ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ Markus Kuhn [ˈmaʳkʊs kuːn] — 2002-07-25 The ASCII compatible UTF-8 encoding used in this plain-text file is defined in Unicode, ISO 10646-1, and RFC 2279. Using Unicode/UTF-8, you can write in emails and source code things such as Mathematics and sciences: ∮ E⋅da = Q, n → ∞, ∑ f(i) = ∏ g(i), ⎧⎡⎛┌─────┐⎞⎤⎫ ⎪⎢⎜│a²+b³ ⎟⎥⎪ ∀x∈ℝ: ⌈x⌉ = −⌊−x⌋, α ∧ ¬β = ¬(¬α ∨ β), ⎪⎢⎜│───── ⎟⎥⎪ ⎪⎢⎜⎷ c₈ ⎟⎥⎪ ℕ ⊆ ℕ₀ ⊂ ℤ ⊂ ℚ ⊂ ℝ ⊂ ℂ, ⎨⎢⎜ ⎟⎥⎬ ⎪⎢⎜ ∞ ⎟⎥⎪ ⊥ < a ≠ b ≡ c ≤ d ≪ ⊤ ⇒ (⟦A⟧ ⇔ ⟪B⟫), ⎪⎢⎜ ⎲ ⎟⎥⎪ ⎪⎢⎜ ⎳aⁱ-bⁱ⎟⎥⎪ 2H₂ + O₂ ⇌ 2H₂O, R = 4.7 kΩ, ⌀ 200 mm ⎩⎣⎝i=1 ⎠⎦⎭ Linguistics and dictionaries: ði ıntəˈnæʃənəl fəˈnɛtık əsoʊsiˈeıʃn Y [ˈʏpsilɔn], Yen [jɛn], Yoga [ˈjoːgɑ] APL: ((V⍳V)=⍳⍴V)/V←,V ⌷←⍳→⍴∆∇⊃‾⍎⍕⌈ Nicer typography in plain text files: ╔══════════════════════════════════════════╗ ║ ║ ║ • ‘single’ and “double” quotes ║ ║ ║ ║ • Curly apostrophes: “We’ve been here” ║ ║ ║ ║ • Latin-1 apostrophe and accents: '´` ║ ║ ║ ║ • ‚deutsche‘ „Anführungszeichen“ ║ ║ ║ ║ • †, ‡, ‰, •, 3–4, —, −5/+5, ™, … ║ ║ ║ ║ • ASCII safety test: 1lI|, 0OD, 8B ║ ║ ╭─────────╮ ║ ║ • the euro symbol: │ 14.95 € │ ║ ║ ╰─────────╯ ║ ╚══════════════════════════════════════════╝ Combining characters: STARGΛ̊TE SG-1, a = v̇ = r̈, a⃑ ⊥ b⃑ Greek (in Polytonic): The Greek anthem: Σὲ γνωρίζω ἀπὸ τὴν κόψη τοῦ σπαθιοῦ τὴν τρομερή, σὲ γνωρίζω ἀπὸ τὴν ὄψη ποὺ μὲ βία μετράει τὴ γῆ. ᾿Απ᾿ τὰ κόκκαλα βγαλμένη τῶν ῾Ελλήνων τὰ ἱερά καὶ σὰν πρῶτα ἀνδρειωμένη χαῖρε, ὦ χαῖρε, ᾿Ελευθεριά! From a speech of Demosthenes in the 4th century BC: Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν, ὦ ἄνδρες ᾿Αθηναῖοι, ὅταν τ᾿ εἰς τὰ πράγματα ἀποβλέψω καὶ ὅταν πρὸς τοὺς λόγους οὓς ἀκούω· τοὺς μὲν γὰρ λόγους περὶ τοῦ τιμωρήσασθαι Φίλιππον ὁρῶ γιγνομένους, τὰ δὲ πράγματ᾿ εἰς τοῦτο προήκοντα, ὥσθ᾿ ὅπως μὴ πεισόμεθ᾿ αὐτοὶ πρότερον κακῶς σκέψασθαι δέον. οὐδέν οὖν ἄλλο μοι δοκοῦσιν οἱ τὰ τοιαῦτα λέγοντες ἢ τὴν ὑπόθεσιν, περὶ ἧς βουλεύεσθαι, οὐχὶ τὴν οὖσαν παριστάντες ὑμῖν ἁμαρτάνειν. ἐγὼ δέ, ὅτι μέν ποτ᾿ ἐξῆν τῇ πόλει καὶ τὰ αὑτῆς ἔχειν ἀσφαλῶς καὶ Φίλιππον τιμωρήσασθαι, καὶ μάλ᾿ ἀκριβῶς οἶδα· ἐπ᾿ ἐμοῦ γάρ, οὐ πάλαι γέγονεν ταῦτ᾿ ἀμφότερα· νῦν μέντοι πέπεισμαι τοῦθ᾿ ἱκανὸν προλαβεῖν ἡμῖν εἶναι τὴν πρώτην, ὅπως τοὺς συμμάχους σώσομεν. ἐὰν γὰρ τοῦτο βεβαίως ὑπάρξῃ, τότε καὶ περὶ τοῦ τίνα τιμωρήσεταί τις καὶ ὃν τρόπον ἐξέσται σκοπεῖν· πρὶν δὲ τὴν ἀρχὴν ὀρθῶς ὑποθέσθαι, μάταιον ἡγοῦμαι περὶ τῆς τελευτῆς ὁντινοῦν ποιεῖσθαι λόγον. Δημοσθένους, Γ´ ᾿Ολυνθιακὸς Georgian: From a Unicode conference invitation: გთხოვთ ახლავე გაიაროთ რეგისტრაცია Unicode-ის მეათე საერთაშორისო კონფერენციაზე დასასწრებად, რომელიც გაიმართება 10-12 მარტს, ქ. მაინცში, გერმანიაში. კონფერენცია შეჰკრებს ერთად მსოფლიოს ექსპერტებს ისეთ დარგებში როგორიცაა ინტერნეტი და Unicode-ი, ინტერნაციონალიზაცია და ლოკალიზაცია, Unicode-ის გამოყენება ოპერაციულ სისტემებსა, და გამოყენებით პროგრამებში, შრიფტებში, ტექსტების დამუშავებასა და მრავალენოვან კომპიუტერულ სისტემებში. Russian: From a Unicode conference invitation: Зарегистрируйтесь сейчас на Десятую Международную Конференцию по Unicode, которая состоится 10-12 марта 1997 года в Майнце в Германии. Конференция соберет широкий круг экспертов по вопросам глобального Интернета и Unicode, локализации и интернационализации, воплощению и применению Unicode в различных операционных системах и программных приложениях, шрифтах, верстке и многоязычных компьютерных системах. Thai (UCS Level 2): Excerpt from a poetry on The Romance of The Three Kingdoms (a Chinese classic 'San Gua'): [----------------------------|------------------------] ๏ แผ่นดินฮั่นเสื่อมโทรมแสนสังเวช พระปกเกศกองบู๊กู้ขึ้นใหม่ สิบสองกษัตริย์ก่อนหน้าแลถัดไป สององค์ไซร้โง่เขลาเบาปัญญา ทรงนับถือขันทีเป็นที่พึ่ง บ้านเมืองจึงวิปริตเป็นนักหนา โฮจิ๋นเรียกทัพทั่วหัวเมืองมา หมายจะฆ่ามดชั่วตัวสำคัญ เหมือนขับไสไล่เสือจากเคหา รับหมาป่าเข้ามาเลยอาสัญ ฝ่ายอ้องอุ้นยุแยกให้แตกกัน ใช้สาวนั้นเป็นชนวนชื่นชวนใจ พลันลิฉุยกุยกีกลับก่อเหตุ ช่างอาเพศจริงหนาฟ้าร้องไห้ ต้องรบราฆ่าฟันจนบรรลัย ฤๅหาใครค้ำชูกู้บรรลังก์ ฯ (The above is a two-column text. If combining characters are handled correctly, the lines of the second column should be aligned with the | character above.) Ethiopian: Proverbs in the Amharic language: ሰማይ አይታረስ ንጉሥ አይከሰስ። ብላ ካለኝ እንደአባቴ በቆመጠኝ። ጌጥ ያለቤቱ ቁምጥና ነው። ደሀ በሕልሙ ቅቤ ባይጠጣ ንጣት በገደለው። የአፍ ወለምታ በቅቤ አይታሽም። አይጥ በበላ ዳዋ ተመታ። ሲተረጉሙ ይደረግሙ። ቀስ በቀስ፥ ዕንቁላል በእግሩ ይሄዳል። ድር ቢያብር አንበሳ ያስር። ሰው እንደቤቱ እንጅ እንደ ጉረቤቱ አይተዳደርም። እግዜር የከፈተውን ጉሮሮ ሳይዘጋው አይድርም። የጎረቤት ሌባ፥ ቢያዩት ይስቅ ባያዩት ያጠልቅ። ሥራ ከመፍታት ልጄን ላፋታት። ዓባይ ማደሪያ የለው፥ ግንድ ይዞ ይዞራል። የእስላም አገሩ መካ የአሞራ አገሩ ዋርካ። ተንጋሎ ቢተፉ ተመልሶ ባፉ። ወዳጅህ ማር ቢሆን ጨርስህ አትላሰው። እግርህን በፍራሽህ ልክ ዘርጋ። Runes: ᚻᛖ ᚳᚹᚫᚦ ᚦᚫᛏ ᚻᛖ ᛒᚢᛞᛖ ᚩᚾ ᚦᚫᛗ ᛚᚪᚾᛞᛖ ᚾᚩᚱᚦᚹᛖᚪᚱᛞᚢᛗ ᚹᛁᚦ ᚦᚪ ᚹᛖᛥᚫ (Old English, which transcribed into Latin reads 'He cwaeth that he bude thaem lande northweardum with tha Westsae.' and means 'He said that he lived in the northern land near the Western Sea.') Braille: ⡌⠁⠧⠑ ⠼⠁⠒ ⡍⠜⠇⠑⠹⠰⠎ ⡣⠕⠌ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠙⠑⠁⠙⠒ ⠞⠕ ⠃⠑⠛⠔ ⠺⠊⠹⠲ ⡹⠻⠑ ⠊⠎ ⠝⠕ ⠙⠳⠃⠞ ⠱⠁⠞⠑⠧⠻ ⠁⠃⠳⠞ ⠹⠁⠞⠲ ⡹⠑ ⠗⠑⠛⠊⠌⠻ ⠕⠋ ⠙⠊⠎ ⠃⠥⠗⠊⠁⠇ ⠺⠁⠎ ⠎⠊⠛⠝⠫ ⠃⠹ ⠹⠑ ⠊⠇⠻⠛⠹⠍⠁⠝⠂ ⠹⠑ ⠊⠇⠻⠅⠂ ⠹⠑ ⠥⠝⠙⠻⠞⠁⠅⠻⠂ ⠁⠝⠙ ⠹⠑ ⠡⠊⠑⠋ ⠍⠳⠗⠝⠻⠲ ⡎⠊⠗⠕⠕⠛⠑ ⠎⠊⠛⠝⠫ ⠊⠞⠲ ⡁⠝⠙ ⡎⠊⠗⠕⠕⠛⠑⠰⠎ ⠝⠁⠍⠑ ⠺⠁⠎ ⠛⠕⠕⠙ ⠥⠏⠕⠝ ⠰⡡⠁⠝⠛⠑⠂ ⠋⠕⠗ ⠁⠝⠹⠹⠔⠛ ⠙⠑ ⠡⠕⠎⠑ ⠞⠕ ⠏⠥⠞ ⠙⠊⠎ ⠙⠁⠝⠙ ⠞⠕⠲ ⡕⠇⠙ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ ⡍⠔⠙⠖ ⡊ ⠙⠕⠝⠰⠞ ⠍⠑⠁⠝ ⠞⠕ ⠎⠁⠹ ⠹⠁⠞ ⡊ ⠅⠝⠪⠂ ⠕⠋ ⠍⠹ ⠪⠝ ⠅⠝⠪⠇⠫⠛⠑⠂ ⠱⠁⠞ ⠹⠻⠑ ⠊⠎ ⠏⠜⠞⠊⠊⠥⠇⠜⠇⠹ ⠙⠑⠁⠙ ⠁⠃⠳⠞ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ ⡊ ⠍⠊⠣⠞ ⠙⠁⠧⠑ ⠃⠑⠲ ⠔⠊⠇⠔⠫⠂ ⠍⠹⠎⠑⠇⠋⠂ ⠞⠕ ⠗⠑⠛⠜⠙ ⠁ ⠊⠕⠋⠋⠔⠤⠝⠁⠊⠇ ⠁⠎ ⠹⠑ ⠙⠑⠁⠙⠑⠌ ⠏⠊⠑⠊⠑ ⠕⠋ ⠊⠗⠕⠝⠍⠕⠝⠛⠻⠹ ⠔ ⠹⠑ ⠞⠗⠁⠙⠑⠲ ⡃⠥⠞ ⠹⠑ ⠺⠊⠎⠙⠕⠍ ⠕⠋ ⠳⠗ ⠁⠝⠊⠑⠌⠕⠗⠎ ⠊⠎ ⠔ ⠹⠑ ⠎⠊⠍⠊⠇⠑⠆ ⠁⠝⠙ ⠍⠹ ⠥⠝⠙⠁⠇⠇⠪⠫ ⠙⠁⠝⠙⠎ ⠩⠁⠇⠇ ⠝⠕⠞ ⠙⠊⠌⠥⠗⠃ ⠊⠞⠂ ⠕⠗ ⠹⠑ ⡊⠳⠝⠞⠗⠹⠰⠎ ⠙⠕⠝⠑ ⠋⠕⠗⠲ ⡹⠳ ⠺⠊⠇⠇ ⠹⠻⠑⠋⠕⠗⠑ ⠏⠻⠍⠊⠞ ⠍⠑ ⠞⠕ ⠗⠑⠏⠑⠁⠞⠂ ⠑⠍⠏⠙⠁⠞⠊⠊⠁⠇⠇⠹⠂ ⠹⠁⠞ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ (The first couple of paragraphs of "A Christmas Carol" by Dickens) Compact font selection example text: ABCDEFGHIJKLMNOPQRSTUVWXYZ /0123456789 abcdefghijklmnopqrstuvwxyz £©µÀÆÖÞßéöÿ –—‘“”„†•…‰™œŠŸž€ ΑΒΓΔΩαβγδω АБВГДабвгд ∀∂∈ℝ∧∪≡∞ ↑↗↨↻⇣ ┐┼╔╘░►☺♀ fi�⑀₂ἠḂӥẄɐː⍎אԱა Greetings in various languages: Hello world, Καλημέρα κόσμε, コンニチハ Box drawing alignment tests: █ ▉ ╔══╦══╗ ┌──┬──┐ ╭──┬──╮ ╭──┬──╮ ┏━━┳━━┓ ┎┒┏┑ ╷ ╻ ┏┯┓ ┌┰┐ ▊ ╱╲╱╲╳╳╳ ║┌─╨─┐║ │╔═╧═╗│ │╒═╪═╕│ │╓─╁─╖│ ┃┌─╂─┐┃ ┗╃╄┙ ╶┼╴╺╋╸┠┼┨ ┝╋┥ ▋ ╲╱╲╱╳╳╳ ║│╲ ╱│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╿ │┃ ┍╅╆┓ ╵ ╹ ┗┷┛ └┸┘ ▌ ╱╲╱╲╳╳╳ ╠╡ ╳ ╞╣ ├╢ ╟┤ ├┼─┼─┼┤ ├╫─╂─╫┤ ┣┿╾┼╼┿┫ ┕┛┖┚ ┌┄┄┐ ╎ ┏┅┅┓ ┋ ▍ ╲╱╲╱╳╳╳ ║│╱ ╲│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╽ │┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▎ ║└─╥─┘║ │╚═╤═╝│ │╘═╪═╛│ │╙─╀─╜│ ┃└─╂─┘┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▏ ╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ ▗▄▖▛▀▜ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█ ▝▀▘▙▄▟ recoll-1.21.5/utils/md5.cpp0000644000175000017500000001751712602163540014725 0ustar dockesdockes/* $OpenBSD: md5.c,v 1.7 2004/05/28 15:10:27 millert Exp $ */ /* * This code implements the MD5 message-digest algorithm. * The algorithm is due to Ron Rivest. This code was * written by Colin Plumb in 1993, no copyright is claimed. * This code is in the public domain; do with it what you wish. * * Equivalent code is available from RSA Data Security, Inc. * This code has been tested against that, and is equivalent, * except that you don't need to include two pages of legalese * with every copy. * * To compute the message digest of a chunk of bytes, declare an * MD5Context structure, pass it to MD5Init, call MD5Update as * needed on buffers full of bytes, and then call MD5Final, which * will fill a supplied 16-byte array with the digest. */ #include "autoconfig.h" //#include #include #include #include "md5.h" #define PUT_64BIT_LE(cp, value) do { \ (cp)[7] = (value) >> 56; \ (cp)[6] = (value) >> 48; \ (cp)[5] = (value) >> 40; \ (cp)[4] = (value) >> 32; \ (cp)[3] = (value) >> 24; \ (cp)[2] = (value) >> 16; \ (cp)[1] = (value) >> 8; \ (cp)[0] = (value); } while (0) #define PUT_32BIT_LE(cp, value) do { \ (cp)[3] = (value) >> 24; \ (cp)[2] = (value) >> 16; \ (cp)[1] = (value) >> 8; \ (cp)[0] = (value); } while (0) static u_int8_t PADDING[MD5_BLOCK_LENGTH] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; /* * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious * initialization constants. */ void MD5Init(MD5_CTX *ctx) { ctx->count = 0; ctx->state[0] = 0x67452301; ctx->state[1] = 0xefcdab89; ctx->state[2] = 0x98badcfe; ctx->state[3] = 0x10325476; } /* * Update context to reflect the concatenation of another buffer full * of bytes. */ void MD5Update(MD5_CTX *ctx, const unsigned char *input, size_t len) { size_t have, need; /* Check how many bytes we already have and how many more we need. */ have = (size_t)((ctx->count >> 3) & (MD5_BLOCK_LENGTH - 1)); need = MD5_BLOCK_LENGTH - have; /* Update bitcount */ ctx->count += (u_int64_t)len << 3; if (len >= need) { if (have != 0) { memcpy(ctx->buffer + have, input, need); MD5Transform(ctx->state, ctx->buffer); input += need; len -= need; have = 0; } /* Process data in MD5_BLOCK_LENGTH-byte chunks. */ while (len >= MD5_BLOCK_LENGTH) { MD5Transform(ctx->state, input); input += MD5_BLOCK_LENGTH; len -= MD5_BLOCK_LENGTH; } } /* Handle any remaining bytes of data. */ if (len != 0) memcpy(ctx->buffer + have, input, len); } /* * Pad pad to 64-byte boundary with the bit pattern * 1 0* (64-bit count of bits processed, MSB-first) */ void MD5Pad(MD5_CTX *ctx) { u_int8_t count[8]; size_t padlen; /* Convert count to 8 bytes in little endian order. */ PUT_64BIT_LE(count, ctx->count); /* Pad out to 56 mod 64. */ padlen = MD5_BLOCK_LENGTH - ((ctx->count >> 3) & (MD5_BLOCK_LENGTH - 1)); if (padlen < 1 + 8) padlen += MD5_BLOCK_LENGTH; MD5Update(ctx, PADDING, padlen - 8); /* padlen - 8 <= 64 */ MD5Update(ctx, count, 8); } /* * Final wrapup--call MD5Pad, fill in digest and zero out ctx. */ void MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx) { int i; MD5Pad(ctx); if (digest != NULL) { for (i = 0; i < 4; i++) PUT_32BIT_LE(digest + i * 4, ctx->state[i]); memset(ctx, 0, sizeof(*ctx)); } } /* The four core functions - F1 is optimized somewhat */ /* #define F1(x, y, z) (x & y | ~x & z) */ #define F1(x, y, z) (z ^ (x & (y ^ z))) #define F2(x, y, z) F1(z, x, y) #define F3(x, y, z) (x ^ y ^ z) #define F4(x, y, z) (y ^ (x | ~z)) /* This is the central step in the MD5 algorithm. */ #define MD5STEP(f, w, x, y, z, data, s) \ ( w += f(x, y, z) + data, w = w<>(32-s), w += x ) /* * The core of the MD5 algorithm, this alters an existing MD5 hash to * reflect the addition of 16 longwords of new data. MD5Update blocks * the data and converts bytes into longwords for this routine. */ void MD5Transform(u_int32_t state[4], const u_int8_t block[MD5_BLOCK_LENGTH]) { u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4]; #ifndef WORDS_BIGENDIAN memcpy(in, block, sizeof(in)); #else for (a = 0; a < MD5_BLOCK_LENGTH / 4; a++) { in[a] = (u_int32_t)( (u_int32_t)(block[a * 4 + 0]) | (u_int32_t)(block[a * 4 + 1]) << 8 | (u_int32_t)(block[a * 4 + 2]) << 16 | (u_int32_t)(block[a * 4 + 3]) << 24); } #endif a = state[0]; b = state[1]; c = state[2]; d = state[3]; MD5STEP(F1, a, b, c, d, in[ 0] + 0xd76aa478, 7); MD5STEP(F1, d, a, b, c, in[ 1] + 0xe8c7b756, 12); MD5STEP(F1, c, d, a, b, in[ 2] + 0x242070db, 17); MD5STEP(F1, b, c, d, a, in[ 3] + 0xc1bdceee, 22); MD5STEP(F1, a, b, c, d, in[ 4] + 0xf57c0faf, 7); MD5STEP(F1, d, a, b, c, in[ 5] + 0x4787c62a, 12); MD5STEP(F1, c, d, a, b, in[ 6] + 0xa8304613, 17); MD5STEP(F1, b, c, d, a, in[ 7] + 0xfd469501, 22); MD5STEP(F1, a, b, c, d, in[ 8] + 0x698098d8, 7); MD5STEP(F1, d, a, b, c, in[ 9] + 0x8b44f7af, 12); MD5STEP(F1, c, d, a, b, in[10] + 0xffff5bb1, 17); MD5STEP(F1, b, c, d, a, in[11] + 0x895cd7be, 22); MD5STEP(F1, a, b, c, d, in[12] + 0x6b901122, 7); MD5STEP(F1, d, a, b, c, in[13] + 0xfd987193, 12); MD5STEP(F1, c, d, a, b, in[14] + 0xa679438e, 17); MD5STEP(F1, b, c, d, a, in[15] + 0x49b40821, 22); MD5STEP(F2, a, b, c, d, in[ 1] + 0xf61e2562, 5); MD5STEP(F2, d, a, b, c, in[ 6] + 0xc040b340, 9); MD5STEP(F2, c, d, a, b, in[11] + 0x265e5a51, 14); MD5STEP(F2, b, c, d, a, in[ 0] + 0xe9b6c7aa, 20); MD5STEP(F2, a, b, c, d, in[ 5] + 0xd62f105d, 5); MD5STEP(F2, d, a, b, c, in[10] + 0x02441453, 9); MD5STEP(F2, c, d, a, b, in[15] + 0xd8a1e681, 14); MD5STEP(F2, b, c, d, a, in[ 4] + 0xe7d3fbc8, 20); MD5STEP(F2, a, b, c, d, in[ 9] + 0x21e1cde6, 5); MD5STEP(F2, d, a, b, c, in[14] + 0xc33707d6, 9); MD5STEP(F2, c, d, a, b, in[ 3] + 0xf4d50d87, 14); MD5STEP(F2, b, c, d, a, in[ 8] + 0x455a14ed, 20); MD5STEP(F2, a, b, c, d, in[13] + 0xa9e3e905, 5); MD5STEP(F2, d, a, b, c, in[ 2] + 0xfcefa3f8, 9); MD5STEP(F2, c, d, a, b, in[ 7] + 0x676f02d9, 14); MD5STEP(F2, b, c, d, a, in[12] + 0x8d2a4c8a, 20); MD5STEP(F3, a, b, c, d, in[ 5] + 0xfffa3942, 4); MD5STEP(F3, d, a, b, c, in[ 8] + 0x8771f681, 11); MD5STEP(F3, c, d, a, b, in[11] + 0x6d9d6122, 16); MD5STEP(F3, b, c, d, a, in[14] + 0xfde5380c, 23); MD5STEP(F3, a, b, c, d, in[ 1] + 0xa4beea44, 4); MD5STEP(F3, d, a, b, c, in[ 4] + 0x4bdecfa9, 11); MD5STEP(F3, c, d, a, b, in[ 7] + 0xf6bb4b60, 16); MD5STEP(F3, b, c, d, a, in[10] + 0xbebfbc70, 23); MD5STEP(F3, a, b, c, d, in[13] + 0x289b7ec6, 4); MD5STEP(F3, d, a, b, c, in[ 0] + 0xeaa127fa, 11); MD5STEP(F3, c, d, a, b, in[ 3] + 0xd4ef3085, 16); MD5STEP(F3, b, c, d, a, in[ 6] + 0x04881d05, 23); MD5STEP(F3, a, b, c, d, in[ 9] + 0xd9d4d039, 4); MD5STEP(F3, d, a, b, c, in[12] + 0xe6db99e5, 11); MD5STEP(F3, c, d, a, b, in[15] + 0x1fa27cf8, 16); MD5STEP(F3, b, c, d, a, in[2 ] + 0xc4ac5665, 23); MD5STEP(F4, a, b, c, d, in[ 0] + 0xf4292244, 6); MD5STEP(F4, d, a, b, c, in[7 ] + 0x432aff97, 10); MD5STEP(F4, c, d, a, b, in[14] + 0xab9423a7, 15); MD5STEP(F4, b, c, d, a, in[5 ] + 0xfc93a039, 21); MD5STEP(F4, a, b, c, d, in[12] + 0x655b59c3, 6); MD5STEP(F4, d, a, b, c, in[3 ] + 0x8f0ccc92, 10); MD5STEP(F4, c, d, a, b, in[10] + 0xffeff47d, 15); MD5STEP(F4, b, c, d, a, in[1 ] + 0x85845dd1, 21); MD5STEP(F4, a, b, c, d, in[8 ] + 0x6fa87e4f, 6); MD5STEP(F4, d, a, b, c, in[15] + 0xfe2ce6e0, 10); MD5STEP(F4, c, d, a, b, in[6 ] + 0xa3014314, 15); MD5STEP(F4, b, c, d, a, in[13] + 0x4e0811a1, 21); MD5STEP(F4, a, b, c, d, in[4 ] + 0xf7537e82, 6); MD5STEP(F4, d, a, b, c, in[11] + 0xbd3af235, 10); MD5STEP(F4, c, d, a, b, in[2 ] + 0x2ad7d2bb, 15); MD5STEP(F4, b, c, d, a, in[9 ] + 0xeb86d391, 21); state[0] += a; state[1] += b; state[2] += c; state[3] += d; } recoll-1.21.5/utils/copyfile.h0000644000175000017500000000317712602163540015514 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _COPYFILE_H_INCLUDED_ #define _COPYFILE_H_INCLUDED_ #include enum CopyfileFlags {COPYFILE_NONE = 0, COPYFILE_NOERRUNLINK = 1, COPYFILE_EXCL = 2, }; /** Copy src to dst. * * We destroy an existing dst except if COPYFILE_EXCL is set (or we if * have no permission...). * A partially copied dst is normally removed, except if COPYFILE_NOERRUNLINK * is set. */ extern bool copyfile(const char *src, const char *dst, std::string &reason, int flags = 0); /** Save c++ string to file */ extern bool stringtofile(const std::string& dt, const char *dst, std::string& reason, int flags = 0); /** Try to rename src. If this fails (different devices) copy then unlink src */ extern bool renameormove(const char *src, const char *dst, std::string &reason); #endif /* _COPYFILE_H_INCLUDED_ */ recoll-1.21.5/utils/readfile.h0000644000175000017500000000353412602163572015457 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _READFILE_H_INCLUDED_ #define _READFILE_H_INCLUDED_ #include #include using std::string; /** * Read file in chunks, calling an accumulator for each chunk. Can be used * for reading in a file, computing an md5... */ class FileScanDo { public: virtual ~FileScanDo() {} virtual bool init(size_t size, string *reason) = 0; virtual bool data(const char *buf, int cnt, string* reason) = 0; }; bool file_scan(const string &filename, FileScanDo* doer, string *reason = 0); /* Same but only process count cnt from offset offs. Set cnt to size_t(-1) * for no limit */ bool file_scan(const string &fn, FileScanDo* doer, off_t offs, size_t cnt, string *reason = 0); /** * Read file into string. * @return true for ok, false else */ bool file_to_string(const string &filename, string &data, string *reason = 0); /** Read file chunk into string. Set cnt to size_t(-1) for whole file */ bool file_to_string(const string &filename, string &data, off_t offs, size_t cnt, string *reason = 0); #endif /* _READFILE_H_INCLUDED_ */ recoll-1.21.5/utils/ptmutex.cpp0000644000175000017500000000514412602163572015744 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // // Small test program to evaluate the cost of using mutex locks: calls // to methods doing a small (150 bytes) base64 encoding job + string // manips, with and without locking. The performance cost is // negligible on all machines I tested (around 0.3% to 2% depending on // the system and machine), but not inexistent, you would not want // this in a tight loop. #include #include #include #include using namespace std; #include "ptmutex.h" #include "base64.h" static char *thisprog; static char usage [] = "ptmutex [-l] count\n" "\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_l 0x2 static const string convertbuffer = "* The recoll GUI program sometimes crashes when running a query while\ the indexing thread is active. Possible workarounds:"; static PTMutexInit o_lock; void workerlock(string& out) { PTMutexLocker locker(o_lock); base64_encode(convertbuffer, out); } void workernolock(string& out) { base64_encode(convertbuffer, out); } int main(int argc, char **argv) { int count = 0; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'l': op_flags |= OPT_l; break; default: Usage(); break; } b1: argc--; argv++; } if (argc != 1) Usage(); count = atoi(*argv++);argc--; if (op_flags & OPT_l) { fprintf(stderr, "Looping %d, locking\n", count); for (int i = 0; i < count; i++) { string s; workerlock(s); } } else { fprintf(stderr, "Looping %d, no locking\n", count); for (int i = 0; i < count; i++) { string s; workernolock(s); } } exit(0); } recoll-1.21.5/utils/wipedir.cpp0000644000175000017500000000732112602163572015700 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_WIPEDIR #include "autoconfig.h" #include #include #include #include #include #include #include #ifndef NO_NAMESPACES using namespace std; #endif /* NO_NAMESPACES */ #include "debuglog.h" #include "pathut.h" #include "wipedir.h" int wipedir(const string& dir, bool selfalso, bool recurse) { struct stat st; int statret; int ret = -1; statret = lstat(dir.c_str(), &st); if (statret == -1) { LOGERR(("wipedir: cant stat %s, errno %d\n", dir.c_str(), errno)); return -1; } if (!S_ISDIR(st.st_mode)) { LOGERR(("wipedir: %s not a directory\n", dir.c_str())); return -1; } if (access(dir.c_str(), R_OK|W_OK|X_OK) < 0) { LOGERR(("wipedir: no write access to %s\n", dir.c_str())); return -1; } DIR *d = opendir(dir.c_str()); if (d == 0) { LOGERR(("wipedir: cant opendir %s, errno %d\n", dir.c_str(), errno)); return -1; } int remaining = 0; struct dirent *ent; while ((ent = readdir(d)) != 0) { if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) continue; string fn = path_cat(dir, ent->d_name); struct stat st; int statret = lstat(fn.c_str(), &st); if (statret == -1) { LOGERR(("wipedir: cant stat %s, errno %d\n", fn.c_str(), errno)); goto out; } if (S_ISDIR(st.st_mode)) { if (recurse) { int rr = wipedir(fn, true, true); if (rr == -1) goto out; else remaining += rr; } else { remaining++; } } else { if (unlink(fn.c_str()) < 0) { LOGERR(("wipedir: cant unlink %s, errno %d\n", fn.c_str(), errno)); goto out; } } } ret = remaining; if (selfalso && ret == 0) { if (rmdir(dir.c_str()) < 0) { LOGERR(("wipedir: rmdir(%s) failed, errno %d\n", dir.c_str(), errno)); ret = -1; } } out: if (d) closedir(d); return ret; } #else // FILEUT_TEST #include #include #include #include "wipedir.h" using namespace std; static const char *thisprog; static int op_flags; #define OPT_MOINS 0x1 #define OPT_r 0x2 #define OPT_s 0x4 static char usage [] = "wipedir [-r -s] topdir\n" " -r : recurse\n" " -s : also delete topdir\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } int main(int argc, const char **argv) { thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'r': op_flags |= OPT_r; break; case 's': op_flags |= OPT_s; break; default: Usage(); break; } b1: argc--; argv++; } if (argc != 1) Usage(); string dir = *argv++;argc--; bool topalso = ((op_flags&OPT_s) != 0); bool recurse = ((op_flags&OPT_r) != 0); int cnt = wipedir(dir, topalso, recurse); printf("wipedir returned %d\n", cnt); exit(0); } #endif recoll-1.21.5/utils/md5ut.cpp0000644000175000017500000000711212602163572015271 0ustar dockesdockes/* Copyright (C) 2015 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_MD5 #include #include #include "md5ut.h" /* Convenience utilities */ void MD5Final(string &digest, MD5_CTX *context) { unsigned char d[16]; MD5Final (d, context); digest.assign((const char *)d, 16); } string& MD5String(const string& data, string& digest) { MD5_CTX ctx; MD5Init(&ctx); MD5Update(&ctx, (const unsigned char*)data.c_str(), data.length()); MD5Final(digest, &ctx); return digest; } string& MD5HexPrint(const string& digest, string &out) { out.erase(); out.reserve(33); static const char hex[]="0123456789abcdef"; const unsigned char *hash = (const unsigned char *)digest.c_str(); for (int i = 0; i < 16; i++) { out.append(1, hex[hash[i] >> 4]); out.append(1, hex[hash[i] & 0x0f]); } return out; } string& MD5HexScan(const string& xdigest, string& digest) { digest.erase(); if (xdigest.length() != 32) { return digest; } for (unsigned int i = 0; i < 16; i++) { unsigned int val; if (sscanf(xdigest.c_str() + 2*i, "%2x", &val) != 1) { digest.erase(); return digest; } digest.append(1, (unsigned char)val); } return digest; } #include "readfile.h" class FileScanMd5 : public FileScanDo { public: FileScanMd5(string& d) : digest(d) {} virtual bool init(size_t size, string *) { MD5Init(&ctx); return true; } virtual bool data(const char *buf, int cnt, string*) { MD5Update(&ctx, (const unsigned char*)buf, cnt); return true; } string &digest; MD5_CTX ctx; }; bool MD5File(const string& filename, string &digest, string *reason) { FileScanMd5 md5er(digest); if (!file_scan(filename, &md5er, reason)) return false; // We happen to know that digest and md5er.digest are the same object MD5Final(md5er.digest, &md5er.ctx); return true; } #else // TEST_MD5 // Test driver #include #include #include #include #include "md5ut.h" using namespace std; static const char *thisprog; static char usage [] = "trmd5 filename\n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } int main(int argc, const char **argv) { thisprog = argv[0]; argc--; argv++; if (argc != 1) Usage(); string filename = *argv++;argc--; string reason, digest; if (!MD5File(filename, digest, &reason)) { cerr << reason << endl; exit(1); } else { string hex; cout << "MD5 (" << filename << ") = " << MD5HexPrint(digest, hex) << endl; string digest1; MD5HexScan(hex, digest1); if (digest1.compare(digest)) { cout << "MD5HexScan Failure" << endl; cout << MD5HexPrint(digest, hex) << " " << digest.length() << " -> " << MD5HexPrint(digest1, hex) << " " << digest1.length() << endl; exit(1); } } exit(0); } #endif recoll-1.21.5/utils/closefrom.cpp0000644000175000017500000001732512602163540016226 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * Close all file descriptors above a given value. * * A Unix execXX() call used to execute another program does not close open * file descriptors by default. * * The only descriptors closed are those on which the FD_CLOEXEC flag was * set. FD_CLOEXEC is not easily usable on files opened by external * libraries. * * There are many reasons for closing file descriptors before * an exec (security, pipe control, the possibility that a bug will * trigger an unwanted write, etc.) * * A process has currently no POSIX way to determine the set of open file * descriptors or at least the highest value. Closing all files (except a few), * thus implies performing a close() system call on each entry up to the * maximum, which can be both relatively difficult to determine, and quite * high (ie: several thousands), incurring a non-negligible cost. * * A number of systems have non-portable support for mitigating or solving * this problem. * * This module supplies a portable interface to this functionality. * * The initial data on system interfaces was obtained from: * http://stackoverflow.com/questions/899038/\ * getting-the-highest-allocated-file-descriptor * * System interfaces: * FreeBSD: * - Has a closefrom() system call as of release 7.x around Sep 2009 * - Has a /dev/fd, directory which shows the current process' open * descriptors. Only descriptors 0, 1, 2 are shown except if * fdescfs is mounted which it is not by default * * Solaris: * - Solaris 10+ has closefrom, and can specify closefrom to posix_spawn() * * Linux: * - Has nothing. The method we initially used (listing /dev/fd) could * deadlock in multithread fork/exec context. We now use a close() * loop but there is no completely reliable way to determine the high limit. * glibc maintainers think that closefrom() is a bad idea * *especially* because it is implemented on *BSD and Solaris. Go * figure...: https://sourceware.org/bugzilla/show_bug.cgi?id=10353 * * Interface: * * int libclf_closefrom(fd) * @param fd All open file descriptors with equal or higher numeric * values will be closed. fd needs not be a valid descriptor. * @return 0 for success, -1 for error. */ #ifndef TEST_CLOSEFROM #include #include #include #include #include #include #include #include "closefrom.h" /* #define DEBUG_CLOSEFROM */ #ifdef DEBUG_CLOSEFROM #define DPRINT(X) fprintf X #else #define DPRINT(X) #endif /* Note: sudo has a closefrom implementation, needs a lot of autoconfig, but * we could use it instead. It's quite close to this though */ /*************************************************************************/ /* closefrom() exists on Solaris, netbsd and openbsd, but someone will * have to provide me the appropriate macro to test */ #if (defined(__FreeBSD__) && __FreeBSD_version >= 702104) /* Use closefrom() system call */ int libclf_closefrom(int fd0) { DPRINT((stderr, "libclf_closefrom: using closefrom(2)\n")); closefrom(fd0); return 0; } /*************************************************************************/ #elif defined(F_CLOSEM) /* Use fcntl(fd, F_CLOSEM) */ int libclf_closefrom(int fd0) { DPRINT((stderr, "libclf_closefrom: using fcntl(F_CLOSEM)\n")); // We need a valid descriptor for this to work. Try to dup stdin, else // go wild if (fcntl(0, F_GETFL) != -1) { if (fd0 != 0) dup2(0, fd0); } else { int fd = open("/etc/group", 0); // yes i am a unix man if (fd >= 0 && fd != fd0) { dup2(fd, fd0); close(fd); } } return fcntl(fd0, F_CLOSEM, 0); } /*************************************************************************/ #elif 0 && (defined(linux) || defined(__linux)) /* We don't do this on linux anymore because opendir() may call malloc which is unsafe in the [fork-exec] interval for a multithreaded program. Linux does not have a good solution for implementing closefrom as far as I know */ /* Use /proc/self/fd directory */ #include #include int libclf_closefrom(int fd0) { DIR *dirp; struct dirent *ent; DPRINT((stderr, "libclf_closefrom: using /proc\n")); dirp = opendir("/proc/self/fd"); if (dirp == 0) return -1; while ((ent = readdir(dirp)) != 0) { int fd; if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) continue; if (sscanf(ent->d_name, "%d", &fd) == 1 && fd >= fd0 && fd != dirfd(dirp)) { close(fd); } } closedir(dirp); return 0; } /*************************************************************************/ #else /* System has no native support for this functionality. * * Close all descriptors up to compiled/configured maximum. * The caller will usually have an idea of a reasonable maximum, else * we retrieve a value from the system. * * Note that there is actually no real guarantee that no open * descriptor higher than the reported limit can exist, as noted by * the Solaris man page for closefrom() */ static int closefrom_maxfd = -1; void libclf_setmaxfd(int max) { closefrom_maxfd = max; } #include #ifndef OPEN_MAX #define OPEN_MAX 1024 #endif int libclf_closefrom(int fd0) { int i, maxfd = closefrom_maxfd; if (maxfd < 0) { maxfd = libclf_maxfd(); } if (maxfd < 0) maxfd = OPEN_MAX; DPRINT((stderr, "libclf_closefrom: using loop to %d\n", maxfd)); for (i = fd0; i < maxfd; i++) { (void)close(i); } return 0; } #endif // Note that this will not work if the limit was lowered after a // higher fd was opened. But we don't call setrlimit() inside recoll // code, so we should be ok. It seems that sysconf(_SC_OPEN_MAX) // usually reports the soft limit, so it's redundant, but it could be // useful in case getrlimit() is not implemented (unlikely as they're // both POSIX.1-2001? int libclf_maxfd(int) { struct rlimit lim; getrlimit(RLIMIT_NOFILE, &lim); return int(lim.rlim_cur); } #else /* TEST_CLOSEFROM */ #include #include #include #include #include "closefrom.h" int main(int argc, char **argv) { int i; int fd0 = open("/etc/group", 0); if (fd0 < 0) { perror("open /etc/group"); exit(1); } if (dup2(fd0, 11) < 0) { perror("dup2->11"); exit(1); } if (dup2(fd0, 19) < 0) { perror("dup2->19"); exit(1); } if (dup2(fd0, 99)< 0) { perror("dup2->99 (ok)"); } if (dup2(fd0, 999) < 0) { perror("dup3->999 (ok)"); } libclf_closefrom(11); for (i = 0; i < 10000; i++) { if (fcntl(i, F_GETFL) != -1) { fprintf(stderr, "Descriptor %d is still open", i); if (i < 11) fprintf(stderr, " (OK)\n"); else fprintf(stderr, " (BAD)\n"); } } exit(0); } #endif recoll-1.21.5/utils/base64.cpp0000644000175000017500000002451512602163572015325 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #ifndef NO_NAMESPACES using std::string; #endif /* NO_NAMESPACES */ #undef DEBUG_BASE64 #ifdef DEBUG_BASE64 #define DPRINT(X) fprintf X #else #define DPRINT(X) #endif // This is adapted from FreeBSD's code, quite modified for performance. // Tests on a Mac pro 2.1G with a 166MB base64 file // // The original version used strchr to lookup the base64 value from // the input code: // real 0m13.053s user 0m12.574s sys 0m0.471s // Using a direct access, 256 entries table: // real 0m3.073s user 0m2.600s sys 0m0.439s // Using a variable to hold the array length (instead of in.length()): // real 0m2.972s user 0m2.527s sys 0m0.433s // Using values from the table instead of isspace() (final) // real 0m2.513s user 0m2.059s sys 0m0.439s // // The table has one entry per char value (0-256). Invalid base64 // chars take value 256, whitespace 255, Pad ('=') 254. // Valid char points contain their base64 value (0-63) static const int b64values[] = { /* 0 */ 256,/* 1 */ 256,/* 2 */ 256,/* 3 */ 256,/* 4 */ 256, /* 5 */ 256,/* 6 */ 256,/* 7 */ 256,/* 8 */ 256, /*9 ht */ 255,/* 10 nl */ 255,/* 11 vt */ 255,/* 12 np/ff*/ 255,/* 13 cr */ 255, /* 14 */ 256,/* 15 */ 256,/* 16 */ 256,/* 17 */ 256,/* 18 */ 256,/* 19 */ 256, /* 20 */ 256,/* 21 */ 256,/* 22 */ 256,/* 23 */ 256,/* 24 */ 256,/* 25 */ 256, /* 26 */ 256,/* 27 */ 256,/* 28 */ 256,/* 29 */ 256,/* 30 */ 256,/* 31 */ 256, /* 32 sp */ 255, /* ! */ 256,/* " */ 256,/* # */ 256,/* $ */ 256,/* % */ 256, /* & */ 256,/* ' */ 256,/* ( */ 256,/* ) */ 256,/* * */ 256, /* + */ 62, /* , */ 256,/* - */ 256,/* . */ 256, /* / */ 63, /* 0 */ 52,/* 1 */ 53,/* 2 */ 54,/* 3 */ 55,/* 4 */ 56,/* 5 */ 57,/* 6 */ 58, /* 7 */ 59,/* 8 */ 60,/* 9 */ 61, /* : */ 256,/* ; */ 256,/* < */ 256, /* = */ 254, /* > */ 256,/* ? */ 256,/* @ */ 256, /* A */ 0,/* B */ 1,/* C */ 2,/* D */ 3,/* E */ 4,/* F */ 5,/* G */ 6,/* H */ 7, /* I */ 8,/* J */ 9,/* K */ 10,/* L */ 11,/* M */ 12,/* N */ 13,/* O */ 14, /* P */ 15,/* Q */ 16,/* R */ 17,/* S */ 18,/* T */ 19,/* U */ 20,/* V */ 21, /* W */ 22,/* X */ 23,/* Y */ 24,/* Z */ 25, /* [ */ 256,/* \ */ 256,/* ] */ 256,/* ^ */ 256,/* _ */ 256,/* ` */ 256, /* a */ 26,/* b */ 27,/* c */ 28,/* d */ 29,/* e */ 30,/* f */ 31,/* g */ 32, /* h */ 33,/* i */ 34,/* j */ 35,/* k */ 36,/* l */ 37,/* m */ 38,/* n */ 39, /* o */ 40,/* p */ 41,/* q */ 42,/* r */ 43,/* s */ 44,/* t */ 45,/* u */ 46, /* v */ 47,/* w */ 48,/* x */ 49,/* y */ 50,/* z */ 51, /* { */ 256,/* | */ 256,/* } */ 256,/* ~ */ 256, 256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256, 256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256, 256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256, 256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256, 256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256, 256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256, 256,256,256,256,256,256,256,256, }; static const char Base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static const char Pad64 = '='; bool base64_decode(const string& in, string& out) { int io = 0, state = 0, ch = 0; unsigned int ii = 0; out.clear(); size_t ilen = in.length(); out.reserve(ilen); for (ii = 0; ii < ilen; ii++) { ch = (unsigned char)in[ii]; int value = b64values[ch]; if (value == 255) /* Skip whitespace anywhere. */ continue; if (ch == Pad64) break; if (value == 256) { /* A non-base64 character. */ DPRINT((stderr, "base64_dec: non-base64 char at pos %d\n", ii)); return false; } switch (state) { case 0: out += value << 2; state = 1; break; case 1: out[io] |= value >> 4; out += (value & 0x0f) << 4 ; io++; state = 2; break; case 2: out[io] |= value >> 2; out += (value & 0x03) << 6; io++; state = 3; break; case 3: out[io] |= value; io++; state = 0; break; default: fprintf(stderr, "base64_dec: internal!bad state!\n"); return false; } } /* * We are done decoding Base-64 chars. Let's see if we ended * on a byte boundary, and/or with erroneous trailing characters. */ if (ch == Pad64) { /* We got a pad char. */ ch = in[ii++]; /* Skip it, get next. */ switch (state) { case 0: /* Invalid = in first position */ case 1: /* Invalid = in second position */ DPRINT((stderr, "base64_dec: pad char in state 0/1\n")); return false; case 2: /* Valid, means one byte of info */ /* Skip any number of spaces. */ for (; ii < in.length(); ch = in[ii++]) if (!isspace((unsigned char)ch)) break; /* Make sure there is another trailing = sign. */ if (ch != Pad64) { DPRINT((stderr, "base64_dec: missing pad char!\n")); // Well, there are bad encoders out there. Let it pass // return false; } ch = in[ii++]; /* Skip the = */ /* Fall through to "single trailing =" case. */ /* FALLTHROUGH */ case 3: /* Valid, means two bytes of info */ /* * We know this char is an =. Is there anything but * whitespace after it? */ for (; ii < in.length(); ch = in[ii++]) if (!isspace((unsigned char)ch)) { DPRINT((stderr, "base64_dec: non-white at eod: 0x%x\n", (unsigned int)((unsigned char)ch))); // Well, there are bad encoders out there. Let it pass //return false; } /* * Now make sure for cases 2 and 3 that the "extra" * bits that slopped past the last full byte were * zeros. If we don't check them, they become a * subliminal channel. */ if (out[io] != 0) { DPRINT((stderr, "base64_dec: bad extra bits!\n")); // Well, there are bad encoders out there. Let it pass out[io] = 0; // return false; } // We've appended an extra 0. out.resize(io); } } else { /* * We ended by seeing the end of the string. Make sure we * have no partial bytes lying around. */ if (state != 0) { DPRINT((stderr, "base64_dec: bad final state\n")); return false; } } DPRINT((stderr, "base64_dec: ret ok, io %d sz %d len %d value [%s]\n", io, (int)out.size(), (int)out.length(), out.c_str())); return true; } #undef Assert #define Assert(X) void base64_encode(const string &in, string &out) { unsigned char input[3]; unsigned char output[4]; out.clear(); int srclength = in.length(); int sidx = 0; while (2 < srclength) { input[0] = in[sidx++]; input[1] = in[sidx++]; input[2] = in[sidx++]; srclength -= 3; output[0] = input[0] >> 2; output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4); output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6); output[3] = input[2] & 0x3f; Assert(output[0] < 64); Assert(output[1] < 64); Assert(output[2] < 64); Assert(output[3] < 64); out += Base64[output[0]]; out += Base64[output[1]]; out += Base64[output[2]]; out += Base64[output[3]]; } /* Now we worry about padding. */ if (0 != srclength) { /* Get what's left. */ input[0] = input[1] = input[2] = '\0'; for (int i = 0; i < srclength; i++) input[i] = in[sidx++]; output[0] = input[0] >> 2; output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4); output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6); Assert(output[0] < 64); Assert(output[1] < 64); Assert(output[2] < 64); out += Base64[output[0]]; out += Base64[output[1]]; if (srclength == 1) out += Pad64; else out += Base64[output[2]]; out += Pad64; } return; } #ifdef TEST_BASE64 #include #include #include "readfile.h" const char *thisprog; static char usage [] = "testfile\n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_i 0x2 #define OPT_P 0x4 int main(int argc, char **argv) { thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'i': op_flags |= OPT_i; break; default: Usage(); break; } argc--; argv++; } if (op_flags & OPT_i) { const char *values[] = {"", "1", "12", "123", "1234", "12345", "123456"}; int nvalues = sizeof(values) / sizeof(char *); string in, out, back; int err = 0; for (int i = 0; i < nvalues; i++) { in = values[i]; base64_encode(in, out); base64_decode(out, back); if (in != back) { fprintf(stderr, "In [%s] %d != back [%s] %d (out [%s] %d\n", in.c_str(), int(in.length()), back.c_str(), int(back.length()), out.c_str(), int(out.length()) ); err++; } } in.erase(); in += char(0); in += char(0); in += char(0); in += char(0); base64_encode(in, out); base64_decode(out, back); if (in != back) { fprintf(stderr, "In [%s] %d != back [%s] %d (out [%s] %d\n", in.c_str(), int(in.length()), back.c_str(), int(back.length()), out.c_str(), int(out.length()) ); err++; } exit(!(err == 0)); } else { if (argc > 1) Usage(); string infile; if (argc == 1) infile = *argv++;argc--; string idata, reason; if (!file_to_string(infile, idata, &reason)) { fprintf(stderr, "Can't read file: %s\n", reason.c_str()); exit(1); } string odata; if (!base64_decode(idata, odata)) { fprintf(stderr, "Decoding failed\n"); exit(1); } write(1, odata.c_str(), odata.size() * sizeof(string::value_type)); exit(0); } } #endif recoll-1.21.5/utils/transcode.cpp0000644000175000017500000001302112602163572016211 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_TRANSCODE #include "autoconfig.h" #include #include #ifndef NO_NAMESPACES using std::string; #endif /* NO_NAMESPACES */ #include #include #include "transcode.h" #include "debuglog.h" #include "ptmutex.h" #ifdef RCL_ICONV_INBUF_CONST #define ICV_P2_TYPE const char** #else #define ICV_P2_TYPE char** #endif // We gain approximately 25% exec time for word at a time conversions by // caching the iconv_open thing. // // We may also lose some concurrency on multiproc because of the // necessary locking, but we only have one processing-intensive // possible thread for now (the indexing one), so this is probably not // an issue (and could be worked around with a slightly more // sohisticated approach). #define ICONV_CACHE_OPEN bool transcode(const string &in, string &out, const string &icode, const string &ocode, int *ecnt) { LOGDEB2(("Transcode: %s -> %s\n", icode.c_str(), ocode.c_str())); #ifdef ICONV_CACHE_OPEN static iconv_t ic = (iconv_t)-1; static string cachedicode; static string cachedocode; static PTMutexInit o_cachediconv_mutex; PTMutexLocker locker(o_cachediconv_mutex); #else iconv_t ic; #endif bool ret = false; const int OBSIZ = 8192; char obuf[OBSIZ], *op; bool icopen = false; int mecnt = 0; out.erase(); size_t isiz = in.length(); out.reserve(isiz); const char *ip = in.c_str(); #ifdef ICONV_CACHE_OPEN if (cachedicode.compare(icode) || cachedocode.compare(ocode)) { if (ic != (iconv_t)-1) { iconv_close(ic); ic = (iconv_t)-1; } #endif if((ic = iconv_open(ocode.c_str(), icode.c_str())) == (iconv_t)-1) { out = string("iconv_open failed for ") + icode + " -> " + ocode; #ifdef ICONV_CACHE_OPEN cachedicode.erase(); cachedocode.erase(); #endif goto error; } #ifdef ICONV_CACHE_OPEN cachedicode.assign(icode); cachedocode.assign(ocode); } #endif icopen = true; while (isiz > 0) { size_t osiz; op = obuf; osiz = OBSIZ; if(iconv(ic, (ICV_P2_TYPE)&ip, &isiz, &op, &osiz) == (size_t)-1 && errno != E2BIG) { #if 0 out.erase(); out = string("iconv failed for ") + icode + " -> " + ocode + " : " + strerror(errno); #endif if (errno == EILSEQ) { LOGDEB1(("transcode:iconv: bad input seq.: shift, retry\n")); LOGDEB1((" Input consumed %d output produced %d\n", ip - in.c_str(), out.length() + OBSIZ - osiz)); out.append(obuf, OBSIZ - osiz); out += "?"; mecnt++; ip++;isiz--; continue; } // Normally only EINVAL is possible here: incomplete // multibyte sequence at the end. This is not fatal. Any // other is supposedly impossible, we return an error if (errno == EINVAL) goto out; else goto error; } out.append(obuf, OBSIZ - osiz); } #ifndef ICONV_CACHE_OPEN icopen = false; if(iconv_close(ic) == -1) { out.erase(); out = string("iconv_close failed for ") + icode + " -> " + ocode; goto error; } #endif out: ret = true; error: if (icopen) { #ifndef ICONV_CACHE_OPEN iconv_close(ic); #else // Just reset conversion iconv(ic, 0, 0, 0, 0); #endif } if (mecnt) LOGDEB(("transcode: [%s]->[%s] %d errors\n", icode.c_str(), ocode.c_str(), mecnt)); if (ecnt) *ecnt = mecnt; return ret; } #else #include #include #include #include #include #include #include using namespace std; #include "readfile.h" #include "transcode.h" // Repeatedly transcode a small string for timing measurements static const string testword("\xc3\xa9\x6c\x69\x6d\x69\x6e\xc3\xa9\xc3\xa0"); // Without cache 10e6 reps on y -> 6.68 // With cache -> 4.73 // With cache and lock -> 4.9 void looptest() { cout << testword << endl; string out; for (int i = 0; i < 10*1000*1000; i++) { if (!transcode(testword, out, "UTF-8", "UTF-16BE")) { cerr << "Transcode failed" << endl; break; } } } int main(int argc, char **argv) { #if 0 looptest(); exit(0); #endif if (argc != 5) { cerr << "Usage: transcode ifilename icode ofilename ocode" << endl; exit(1); } const string ifilename = argv[1]; const string icode = argv[2]; const string ofilename = argv[3]; const string ocode = argv[4]; string text; if (!file_to_string(ifilename, text)) { cerr << "Couldnt read file, errno " << errno << endl; exit(1); } string out; if (!transcode(text, out, icode, ocode)) { cerr << out << endl; exit(1); } int fd = open(ofilename.c_str(), O_CREAT|O_TRUNC|O_WRONLY, 0666); if (fd < 0) { perror("Open/create output"); exit(1); } if (write(fd, out.c_str(), out.length()) != (int)out.length()) { perror("write"); exit(1); } close(fd); exit(0); } #endif recoll-1.21.5/utils/strmatcher.h0000644000175000017500000000477212602163540016060 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _STRMATCHER_H_INCLUDED_ #define _STRMATCHER_H_INCLUDED_ #include // Encapsulating simple wildcard/regexp string matching. // Matcher class. Interface to either wildcard or regexp yes/no matcher class StrMatcher { public: StrMatcher(const std::string& exp) : m_sexp(exp) { } virtual ~StrMatcher() {}; virtual bool match(const std::string &val) const = 0; virtual std::string::size_type baseprefixlen() const = 0; virtual bool setExp(const std::string& newexp) { m_sexp = newexp; return true; } virtual bool ok() const { return true; } virtual const std::string& exp() { return m_sexp; } virtual StrMatcher *clone() = 0; const string& getreason() { return m_reason; } protected: std::string m_sexp; std::string m_reason; }; class StrWildMatcher : public StrMatcher { public: StrWildMatcher(const std::string& exp) : StrMatcher(exp) { } virtual ~StrWildMatcher() { } virtual bool match(const std::string& val) const; virtual std::string::size_type baseprefixlen() const; virtual StrWildMatcher *clone() { return new StrWildMatcher(m_sexp); } }; class StrRegexpMatcher : public StrMatcher { public: StrRegexpMatcher(const std::string& exp); virtual bool setExp(const std::string& newexp); virtual ~StrRegexpMatcher(); virtual bool match(const std::string& val) const; virtual std::string::size_type baseprefixlen() const; virtual bool ok() const; virtual StrRegexpMatcher *clone() { return new StrRegexpMatcher(m_sexp); } const string& getreason() { return m_reason; } private: void *m_compiled; bool m_errcode; }; #endif /* _STRMATCHER_H_INCLUDED_ */ recoll-1.21.5/utils/strmatcher.cpp0000644000175000017500000000521312602163572016407 0ustar dockesdockes/* Copyright (C) 2012 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include using std::string; #include "cstr.h" #include "debuglog.h" #include "strmatcher.h" #include "pathut.h" bool StrWildMatcher::match(const string& val) const { LOGDEB2(("StrWildMatcher::match: [%s] against [%s]\n", m_sexp.c_str(), val.c_str())); int ret = fnmatch(m_sexp.c_str(), val.c_str(), FNM_NOESCAPE); switch (ret) { case 0: return true; case FNM_NOMATCH: return false; default: LOGINFO(("StrWildMatcher::match:err: e [%s] s [%s] (%s) ret %d\n", m_sexp.c_str(), val.c_str(), url_encode(val).c_str(), ret)); return false; } } string::size_type StrWildMatcher::baseprefixlen() const { return m_sexp.find_first_of(cstr_wildSpecStChars); } StrRegexpMatcher::StrRegexpMatcher(const string& exp) : StrMatcher(exp), m_compiled(0), m_errcode(0) { setExp(exp); } bool StrRegexpMatcher::setExp(const string& exp) { if (m_compiled) { regfree((regex_t*)m_compiled); delete (regex_t*)m_compiled; } m_compiled = new regex_t; if ((m_errcode = regcomp((regex_t*)m_compiled, exp.c_str(), REG_EXTENDED|REG_NOSUB))) { char errbuf[200]; regerror(m_errcode, (regex_t*)m_compiled, errbuf, 199); m_reason = string("StrRegexpMatcher:regcomp failed for ") + exp + string(errbuf); return false; } m_sexp = exp; return true; } StrRegexpMatcher::~StrRegexpMatcher() { if (m_compiled) { regfree((regex_t*)m_compiled); delete (regex_t*)m_compiled; } } bool StrRegexpMatcher::match(const string& val) const { if (m_errcode) return false; return regexec((regex_t*)m_compiled, val.c_str(), 0, 0, 0) != REG_NOMATCH; } string::size_type StrRegexpMatcher::baseprefixlen() const { return m_sexp.find_first_of(cstr_regSpecStChars); } bool StrRegexpMatcher::ok() const { return !m_errcode; } recoll-1.21.5/utils/readfile.cpp0000644000175000017500000001525712602163572016017 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_READFILE #include "autoconfig.h" #include #include #include #include #ifndef O_STREAMING #define O_STREAMING 0 #endif #include #include #include #include #ifndef NO_NAMESPACES using std::string; #endif /* NO_NAMESPACES */ #include "readfile.h" #include "smallut.h" #ifndef MIN #define MIN(A,B) ((A) < (B) ? (A) : (B)) #endif class FileToString : public FileScanDo { public: FileToString(string& data) : m_data(data) {} string& m_data; bool init(size_t size, string *reason) { if (size > 0) m_data.reserve(size); return true; } bool data(const char *buf, int cnt, string *reason) { try { m_data.append(buf, cnt); } catch (...) { catstrerror(reason, "append", errno); return false; } return true; } }; bool file_to_string(const string &fn, string &data, string *reason) { return file_to_string(fn, data, 0, size_t(-1), reason); } bool file_to_string(const string &fn, string &data, off_t offs, size_t cnt, string *reason) { FileToString accum(data); return file_scan(fn, &accum, offs, cnt, reason); } bool file_scan(const string &fn, FileScanDo* doer, string *reason) { return file_scan(fn, doer, 0, size_t(-1), reason); } const int RDBUFSZ = 4096; // Note: the fstat() + reserve() (in init()) calls divide cpu usage almost by 2 // on both linux i586 and macosx (compared to just append()) // Also tried a version with mmap, but it's actually slower on the mac and not // faster on linux. bool file_scan(const string &fn, FileScanDo* doer, off_t startoffs, size_t cnttoread, string *reason) { bool ret = false; bool noclosing = true; int fd = 0; struct stat st; // Initialize st_size: if fn.empty() , the fstat() call won't happen. st.st_size = 0; // If we have a file name, open it, else use stdin. if (!fn.empty()) { fd = open(fn.c_str(), O_RDONLY|O_STREAMING); if (fd < 0 || fstat(fd, &st) < 0) { catstrerror(reason, "open/stat", errno); return false; } noclosing = false; } #if defined O_NOATIME && O_NOATIME != 0 if (fcntl(fd, F_SETFL, O_NOATIME) < 0) { // perror("fcntl"); } #endif if (cnttoread != (size_t)-1 && cnttoread) { doer->init(cnttoread+1, reason); } else if (st.st_size > 0) { doer->init(st.st_size+1, reason); } else { doer->init(0, reason); } off_t curoffs = 0; if (startoffs > 0 && !fn.empty()) { if (lseek(fd, startoffs, SEEK_SET) != startoffs) { catstrerror(reason, "lseek", errno); return false; } curoffs = startoffs; } char buf[RDBUFSZ]; size_t totread = 0; for (;;) { size_t toread = RDBUFSZ; if (startoffs > 0 && curoffs < startoffs) { toread = MIN(RDBUFSZ, startoffs - curoffs); } if (cnttoread != size_t(-1)) { toread = MIN(toread, cnttoread - totread); } int n = read(fd, buf, toread); if (n < 0) { catstrerror(reason, "read", errno); goto out; } if (n == 0) break; curoffs += n; if (curoffs - n < startoffs) continue; if (!doer->data(buf, n, reason)) { goto out; } totread += n; if (cnttoread > 0 && totread >= cnttoread) break; } ret = true; out: if (fd >= 0 && !noclosing) close(fd); return ret; } #else // Test #include "autoconfig.h" #include #include #include #include #include #include #include using namespace std; #include "readfile.h" #include "fstreewalk.h" using namespace std; class myCB : public FsTreeWalkerCB { public: FsTreeWalker::Status processone(const string &path, const struct stat *st, FsTreeWalker::CbFlag flg) { if (flg == FsTreeWalker::FtwDirEnter) { //cout << "[Entering " << path << "]" << endl; } else if (flg == FsTreeWalker::FtwDirReturn) { //cout << "[Returning to " << path << "]" << endl; } else if (flg == FsTreeWalker::FtwRegular) { //cout << path << endl; string s, reason; if (!file_to_string(path, s, &reason)) { cerr << "Failed: " << reason << " : " << path << endl; } else { //cout << //"================================================" << endl; cout << path << endl; // cout << s; } reason.clear(); } return FsTreeWalker::FtwOk; } }; static int op_flags; #define OPT_MOINS 0x1 #define OPT_c 0x2 #define OPT_o 0x4 static const char *thisprog; static char usage [] = "trreadfile [-o offs] [-c cnt] topdirorfile\n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } int main(int argc, const char **argv) { off_t offs = 0; size_t cnt = size_t(-1); thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'c': op_flags |= OPT_c; if (argc < 2) Usage(); cnt = atoll(*(++argv)); argc--; goto b1; case 'o': op_flags |= OPT_o; if (argc < 2) Usage(); offs = strtoull(*(++argv), 0, 0); argc--; goto b1; default: Usage(); break; } b1: argc--; argv++; } if (argc != 1) Usage(); string top = *argv++;argc--; cerr << "filename " << top << " offs " << offs << " cnt " << cnt << endl; struct stat st; if (!top.empty() && stat(top.c_str(), &st) < 0) { perror("stat"); exit(1); } if (!top.empty() && S_ISDIR(st.st_mode)) { FsTreeWalker walker; myCB cb; walker.walk(top, cb); if (walker.getErrCnt() > 0) cout << walker.getReason(); } else { string s, reason; if (!file_to_string(top, s, offs, cnt, &reason)) { cerr << reason << endl; exit(1); } else { cout << s; } } exit(0); } #endif //TEST_READFILE recoll-1.21.5/utils/fileudi.h0000644000175000017500000000252312602163540015315 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _FILEUDI_H_INCLUDED_ #define _FILEUDI_H_INCLUDED_ #include using std::string; // Unique Document Ids for the file-based indexer (main Recoll // indexer). Document Ids are built from a concatenation of the file // path and the internal path (ie: email number inside // folder/attachment number/etc.) As the size of Xapian terms is // limited, the Id path is truncated to a maximum length, and completed // by a hash of the remainder (including the ipath) extern void make_udi(const string& fn, const string& ipath, string &udi); #endif /* _FILEUDI_H_INCLUDED_ */ recoll-1.21.5/utils/x11mon.h0000644000175000017500000000165712602163540015026 0ustar dockesdockes#ifndef _X11MON_H_INCLUDED_ #define _X11MON_H_INCLUDED_ /* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** Poll X11 server status and connectivity */ extern bool x11IsAlive(); #endif /* _X11MON_H_INCLUDED_ */ recoll-1.21.5/utils/appformime.cpp0000644000175000017500000001410712602163572016374 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_APPFORMIME #include #include #include using namespace std; #include "pathut.h" #include "smallut.h" #include "appformime.h" static const string topappsdir("/usr/share/applications"); static const string desktopext("desktop"); static DesktopDb *theDb; class FstCb : public FsTreeWalkerCB { public: FstCb(DesktopDb::AppMap *appdefs) : m_appdefs(appdefs) { } virtual FsTreeWalker::Status processone(const string &, const struct stat *, FsTreeWalker::CbFlag); DesktopDb::AppMap *m_appdefs; }; FsTreeWalker::Status FstCb::processone(const string& fn, const struct stat *, FsTreeWalker::CbFlag flg) { if (flg != FsTreeWalker::FtwRegular) return FsTreeWalker::FtwOk; if (path_suffix(fn).compare(desktopext)) { //cerr << fn << " does not end with .desktop" << endl; return FsTreeWalker::FtwOk; } ConfSimple dt(fn.c_str(), true); if (!dt.ok()) { cerr << fn << " cant parse" << endl; return FsTreeWalker::FtwOk; } string tp, nm, cmd, mt; if (!dt.get("Type", tp, "Desktop Entry")) { //cerr << fn << " no Type" << endl; return FsTreeWalker::FtwOk; } if (tp.compare("Application")) { //cerr << fn << " wrong Type " << tp << endl; return FsTreeWalker::FtwOk; } if (!dt.get("Exec", cmd, "Desktop Entry")) { //cerr << fn << " no Exec" << endl; return FsTreeWalker::FtwOk; } if (!dt.get("Name", nm, "Desktop Entry")) { //cerr << fn << " no Name" << endl; nm = path_basename(fn, desktopext); } if (!dt.get("MimeType", mt, "Desktop Entry")) { //cerr << fn << " no MimeType" << endl; return FsTreeWalker::FtwOk; } DesktopDb::AppDef appdef(nm, cmd); // Breakup mime type list, and push app to mime entries vector mimes; stringToTokens(mt, mimes, ";"); for (vector::const_iterator it = mimes.begin(); it != mimes.end(); it++) { (*m_appdefs)[*it].push_back(appdef); } return FsTreeWalker::FtwOk; } DesktopDb* DesktopDb::getDb() { if (theDb == 0) { theDb = new DesktopDb(); } if (theDb && theDb->m_ok) return theDb; return 0; } void DesktopDb::build(const string& dir) { FstCb procapp(&m_appMap); FsTreeWalker walker; if (walker.walk(dir, procapp) != FsTreeWalker::FtwOk) { m_ok = false; m_reason = walker.getReason(); } m_ok = true; } DesktopDb::DesktopDb() { build(topappsdir); } DesktopDb::DesktopDb(const string& dir) { build(dir); } bool DesktopDb::appForMime(const string& mime, vector *apps, string *reason) { AppMap::const_iterator it = m_appMap.find(mime); if (it == m_appMap.end()) { if (reason) *reason = string("No application found for ") + mime; return false; } *apps = it->second; return true; } bool DesktopDb::allApps(vector *apps) { map allaps; for (AppMap::const_iterator it = m_appMap.begin(); it != m_appMap.end(); it++) { for (vector::const_iterator it1 = it->second.begin(); it1 != it->second.end(); it1++) { allaps.insert(pair (it1->name, AppDef(it1->name, it1->command))); } } for (map::const_iterator it = allaps.begin(); it != allaps.end(); it++) { apps->push_back(it->second); } return true; } bool DesktopDb::appByName(const string& nm, AppDef& app) { for (AppMap::const_iterator it = m_appMap.begin(); it != m_appMap.end(); it++) { for (vector::const_iterator it1 = it->second.begin(); it1 != it->second.end(); it1++) { if (!nm.compare(it1->name)) { app.name = it1->name; app.command = it1->command; return true; } } } return false; } const string& DesktopDb::getReason() { return m_reason; } #else // TEST_APPFORMIME #include #include #include #include #include #include #include #include using namespace std; #include "appformime.h" static char *thisprog; static char usage [] = " appformime \n\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } int main(int argc, char **argv) { thisprog = argv[0]; argc--; argv++; if (argc != 1) Usage(); string mime = *argv++;argc--; string reason; vector appdefs; DesktopDb *ddb = DesktopDb::getDb(); if (ddb == 0) { cerr << "Could not initialize desktop db: " << DesktopDb::getReason() << endl; exit(1); } if (!ddb->appForMime(mime, &appdefs, &reason)) { cerr << "appForMime failed: " << reason << endl; exit(1); } if (appdefs.empty()) { cerr << "No application found for [" << mime << "]" << endl; exit(1); } cout << mime << " -> "; for (vector::const_iterator it = appdefs.begin(); it != appdefs.end(); it++) { cout << "[" << it->name << ", " << it->command << "], "; } cout << endl; exit(0); } #endif //TEST_APPFORMIME recoll-1.21.5/utils/netcon.cpp0000644000175000017500000011254712602163572015532 0ustar dockesdockes/* Copyright (C) 2002 J.F. Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Wrapper classes for the socket interface #ifndef TEST_NETCON #include #include #include #include #ifdef _AIX #include #endif // _AIX #include #include #include #include #include #include #include #include #include #include #ifdef RECOLL_DATADIR #include "debuglog.h" #else #define LOGFATAL(X) #define LOGERR(X) #define LOGINFO(X) #define LOGDEB(X) #define LOGDEB0(X) #define LOGDEB1(X) #define LOGDEB2(X) #define LOGDEB3(X) #define LOGDEB4(X) #endif #include "netcon.h" using namespace std; #ifndef SOCKLEN_T #define SOCKLEN_T socklen_t #endif // Size of path buffer in sockaddr_un (AF_UNIX socket // addr). Mysteriously it's 108 (explicit value) under linux, no // define accessible. Let's take a little margin as it appears that // some systems use 92. I believe we could also malloc a variable size // struct but why bother. #ifndef UNIX_PATH_MAX #define UNIX_PATH_MAX 90 #endif // Need &one, &zero for setsockopt... static const int one = 1; static const int zero = 0; #define LOGSYSERR(who, call, spar) \ LOGERR(("%s: %s(%s) errno %d (%s)\n", who, call, \ spar, errno, strerror(errno))) #ifndef MIN #define MIN(a,b) (ab?a:b) #endif #ifndef freeZ #define freeZ(X) if (X) {free(X);X=0;} #endif #define MILLIS(OLD, NEW) ( (long)(((NEW).tv_sec - (OLD).tv_sec) * 1000 + \ ((NEW).tv_usec - (OLD).tv_usec) / 1000)) // Static method // Simplified interface to 'select()'. Only use one fd, for either // reading or writing. This is only used when not using the // selectloop() style of network i/o. // Note that timeo == 0 does NOT mean wait forever but no wait at all. int Netcon::select1(int fd, int timeo, int write) { int ret; struct timeval tv; fd_set rd; tv.tv_sec = timeo; tv.tv_usec = 0; FD_ZERO(&rd); FD_SET(fd, &rd); if (write) { ret = select(fd+1, 0, &rd, 0, &tv); } else { ret = select(fd+1, &rd, 0, 0, &tv); } if (!FD_ISSET(fd, &rd)) { LOGERR(("Netcon::select1: fd not ready after select ??\n")); return -1; } return ret; } void SelectLoop::setperiodichandler(int (*handler)(void *), void *p, int ms) { m_periodichandler = handler; m_periodicparam = p; m_periodicmillis = ms; if (m_periodicmillis > 0) { gettimeofday(&m_lasthdlcall, 0); } } // Compute the appropriate timeout so that the select call returns in // time to call the periodic routine. void SelectLoop::periodictimeout(struct timeval *tv) { // If periodic not set, the select call times out and we loop // after a very long time (we'd need to pass NULL to select for an // infinite wait, and I'm too lazy to handle it) if (m_periodicmillis <= 0) { tv->tv_sec = 10000; tv->tv_usec = 0; return; } struct timeval mtv; gettimeofday(&mtv, 0); int millis = m_periodicmillis - MILLIS(m_lasthdlcall, mtv); // millis <= 0 means we should have already done the thing. *dont* set the // tv to 0, which means no timeout at all ! if (millis <= 0) { millis = 1; } tv->tv_sec = millis / 1000; tv->tv_usec = (millis % 1000) * 1000; } // Check if it's time to call the handler. selectloop will return to // caller if it or we return 0 int SelectLoop::maybecallperiodic() { if (m_periodicmillis <= 0) { return 1; } struct timeval mtv; gettimeofday(&mtv, 0); int millis = m_periodicmillis - MILLIS(m_lasthdlcall, mtv); if (millis <= 0) { gettimeofday(&m_lasthdlcall, 0); if (m_periodichandler) { return m_periodichandler(m_periodicparam); } else { return 0; } } return 1; } int SelectLoop::doLoop() { for (;;) { if (m_selectloopDoReturn) { m_selectloopDoReturn = false; LOGDEB(("Netcon::selectloop: returning on request\n")); return m_selectloopReturnValue; } int nfds; fd_set rd, wd; FD_ZERO(&rd); FD_ZERO(&wd); // Walk the netcon map and set up the read and write fd_sets // for select() nfds = 0; for (map::iterator it = m_polldata.begin(); it != m_polldata.end(); it++) { NetconP &pll = it->second; int fd = it->first; LOGDEB2(("Selectloop: fd %d flags 0x%x\n",fd, pll->m_wantedEvents)); if (pll->m_wantedEvents & Netcon::NETCONPOLL_READ) { FD_SET(fd, &rd); nfds = MAX(nfds, fd + 1); } if (pll->m_wantedEvents & Netcon::NETCONPOLL_WRITE) { FD_SET(fd, &wd); nfds = MAX(nfds, fd + 1); } } if (nfds == 0) { // This should never happen in a server as we should at least // always monitor the main listening server socket. For a // client, it's up to client code to avoid or process this // condition. // Just in case there would still be open fds in there // (with no r/w flags set). Should not be needed, but safer m_polldata.clear(); LOGDEB1(("Netcon::selectloop: no fds\n")); return 0; } LOGDEB2(("Netcon::selectloop: selecting, nfds = %d\n", nfds)); // Compute the next timeout according to what might need to be // done apart from waiting for data struct timeval tv; periodictimeout(&tv); // Wait for something to happen int ret = select(nfds, &rd, &wd, 0, &tv); LOGDEB2(("Netcon::selectloop: select returns %d\n", ret)); if (ret < 0) { LOGSYSERR("Netcon::selectloop", "select", ""); return -1; } if (m_periodicmillis > 0) if (maybecallperiodic() <= 0) { return 1; } // Timeout, do it again. if (ret == 0) { continue; } // We don't start the fd sweep at 0, else some fds would be advantaged. // Note that we do an fd sweep, not a map sweep. This is // inefficient because the fd array may be very sparse. Otoh, the // map may change between 2 sweeps, so that we'd have to be smart // with the iterator. As the cost per unused fd is low (just 2 bit // flag tests), we keep it like this for now if (m_placetostart >= nfds) { m_placetostart = 0; } int i, fd; for (i = 0, fd = m_placetostart; i < nfds; i++, fd++) { if (fd >= nfds) { fd = 0; } int canread = FD_ISSET(fd, &rd); int canwrite = FD_ISSET(fd, &wd); bool none = !canread && !canwrite; LOGDEB2(("Netcon::selectloop: fd %d %s %s %s\n", fd, none ? "blocked" : "can" , canread ? "read" : "", canwrite ? "write" : "")); if (none) { continue; } map::iterator it = m_polldata.find(fd); if (it == m_polldata.end()) { /// This should not happen actually LOGDEB2(("Netcon::selectloop: fd %d not found\n", fd)); continue; } // Next start will be one beyond last serviced (modulo nfds) m_placetostart = fd + 1; NetconP &pll = it->second; if (canread && pll->cando(Netcon::NETCONPOLL_READ) <= 0) { pll->m_wantedEvents &= ~Netcon::NETCONPOLL_READ; } if (canwrite && pll->cando(Netcon::NETCONPOLL_WRITE) <= 0) { pll->m_wantedEvents &= ~Netcon::NETCONPOLL_WRITE; } if (!(pll->m_wantedEvents & (Netcon::NETCONPOLL_WRITE|Netcon::NETCONPOLL_READ))) { LOGDEB0(("Netcon::selectloop: fd %d has 0x%x mask, erasing\n", it->first, it->second->m_wantedEvents)); m_polldata.erase(it); } } // fd sweep } // forever loop LOGERR(("SelectLoop::doLoop: got out of loop !\n")); return -1; } // Add a connection to the monitored set. int SelectLoop::addselcon(NetconP con, int events) { if (!con) { return -1; } LOGDEB1(("Netcon::addselcon: fd %d\n", con->m_fd)); con->set_nonblock(1); con->setselevents(events); m_polldata[con->m_fd] = con; con->setloop(this); return 0; } // Remove a connection from the monitored set. int SelectLoop::remselcon(NetconP con) { if (!con) { return -1; } LOGDEB1(("Netcon::remselcon: fd %d\n", con->m_fd)); map::iterator it = m_polldata.find(con->m_fd); if (it == m_polldata.end()) { LOGDEB1(("Netcon::remselcon: con not found for fd %d\n", con->m_fd)); return -1; } con->setloop(0); m_polldata.erase(it); return 0; } ////////////////////////////////////////////////////////// // Base class (Netcon) methods Netcon::~Netcon() { closeconn(); if (m_peer) { free(m_peer); m_peer = 0; } } void Netcon::closeconn() { if (m_ownfd && m_fd >= 0) { close(m_fd); } m_fd = -1; m_ownfd = true; } char *Netcon::sterror() { return strerror(errno); } void Netcon::setpeer(const char *hostname) { if (m_peer) { free(m_peer); } m_peer = strdup(hostname); } int Netcon::settcpnodelay(int on) { LOGDEB2(( "Netcon::settcpnodelay\n" )); if (m_fd < 0) { LOGERR(("Netcon::settcpnodelay: connection not opened\n")); return -1; } char *cp = on ? (char *)&one : (char *)&zero; if (setsockopt(m_fd, IPPROTO_TCP, TCP_NODELAY, cp, sizeof(one)) < 0) { LOGSYSERR("NetconCli::settcpnodelay", "setsockopt", "TCP_NODELAY"); return -1; } return 0; } // Set/reset non-blocking flag on fd int Netcon::set_nonblock(int onoff) { int flags = fcntl(m_fd, F_GETFL, 0); if (flags != -1 ) { int newflags = onoff ? flags | O_NONBLOCK : flags & ~O_NONBLOCK; if (newflags != flags) if (fcntl(m_fd, F_SETFL, newflags) < 0) { return -1; } } return flags; } ///////////////////////////////////////////////////////////////////// // Data socket (NetconData) methods NetconData::~NetconData() { freeZ(m_buf); m_bufbase = 0; m_bufbytes = m_bufsize = 0; } int NetconData::send(const char *buf, int cnt, int expedited) { LOGDEB2(("NetconData::send: fd %d cnt %d expe %d\n", m_fd, cnt, expedited)); int flag = 0; if (m_fd < 0) { LOGERR(("NetconData::send: connection not opened\n")); return -1; } if (expedited) { LOGDEB2(("NetconData::send: expedited data, count %d bytes\n", cnt)); flag = MSG_OOB; } int ret; // There is a bug in the uthread version of sendto() in FreeBSD at // least up to 2.2.7, so avoid using it when possible if (flag) { ret = ::send(m_fd, buf, cnt, flag); } else { ret = ::write(m_fd, buf, cnt); } // Note: byte count may be different from cnt if fd is non-blocking if (ret < 0) { char fdcbuf[20]; sprintf(fdcbuf, "%d", m_fd); LOGSYSERR("NetconData::send", "send", fdcbuf); } return ret; } // Test for data available int NetconData::readready() { LOGDEB2(("NetconData::readready\n")); if (m_fd < 0) { LOGERR(("NetconData::readready: connection not opened\n")); return -1; } return select1(m_fd, 0); } // Test for writable int NetconData::writeready() { LOGDEB2(("NetconData::writeready\n")); if (m_fd < 0) { LOGERR(("NetconData::writeready: connection not opened\n")); return -1; } return select1(m_fd, 0, 1); } // Receive at most cnt bytes (maybe less) int NetconData::receive(char *buf, int cnt, int timeo) { LOGDEB2(("NetconData::receive: cnt %d timeo %d m_buf 0x%x m_bufbytes %d\n", cnt, timeo, m_buf, m_bufbytes)); if (m_fd < 0) { LOGERR(("NetconData::receive: connection not opened\n")); return -1; } int fromibuf = 0; // Get whatever might have been left in the buffer by a previous // getline, except if we're called to fill the buffer of course if (m_buf && m_bufbytes > 0 && (buf < m_buf || buf > m_buf + m_bufsize)) { fromibuf = MIN(m_bufbytes, cnt); memcpy(buf, m_bufbase, fromibuf); m_bufbytes -= fromibuf; m_bufbase += fromibuf; cnt -= fromibuf; LOGDEB2(("NetconData::receive: transferred %d from mbuf\n", fromibuf)); if (cnt <= 0) { return fromibuf; } } if (timeo > 0) { int ret = select1(m_fd, timeo); if (ret == 0) { LOGDEB2(("NetconData::receive timed out\n")); m_didtimo = 1; return -1; } if (ret < 0) { LOGSYSERR("NetconData::receive", "select", ""); return -1; } } m_didtimo = 0; if ((cnt = read(m_fd, buf + fromibuf, cnt)) < 0) { char fdcbuf[20]; sprintf(fdcbuf, "%d", m_fd); LOGSYSERR("NetconData::receive", "read", fdcbuf); return -1; } LOGDEB2(("NetconData::receive: normal return, cnt %d\n", cnt)); return fromibuf + cnt; } // Receive exactly cnt bytes (except for timeout) int NetconData::doreceive(char *buf, int cnt, int timeo) { int got, cur; LOGDEB2(("Netcon::doreceive: cnt %d, timeo %d\n", cnt, timeo)); cur = 0; while (cnt > cur) { got = receive(buf, cnt-cur, timeo); LOGDEB2(("Netcon::doreceive: got %d\n", got)); if (got < 0) { return -1; } if (got == 0) { return cur; } cur += got; buf += got; } return cur; } // Read data until cnt-1 characters are read or a newline is found. Add // null char at end of buffer and return. // As we don't know where the newline will be and it would be inefficient to // read a character at a time, we use a buffer // Unlike fgets, we return an integer status: // >0: number of characters returned, not including the final 0 // 0: EOF reached, no chars transferred // -1: error static const int defbufsize = 200; int NetconData::getline(char *buf, int cnt, int timeo) { LOGDEB2(("NetconData::getline: cnt %d, timeo %d\n", cnt, timeo)); if (m_buf == 0) { if ((m_buf = (char *)malloc(defbufsize)) == 0) { LOGSYSERR("NetconData::getline: Out of mem", "malloc", ""); return -1; } m_bufsize = defbufsize; m_bufbase = m_buf; m_bufbytes = 0; } char *cp = buf; for (;;) { // Transfer from buffer. Have to take a lot of care to keep counts and // pointers consistant in all end cases int maxtransf = MIN(m_bufbytes, cnt-1); int nn = maxtransf; LOGDEB2(("Before loop, bufbytes %d, maxtransf %d, nn: %d\n", m_bufbytes, maxtransf, nn)); for (nn = maxtransf; nn > 0;) { // This is not pretty but we want nn to be decremented for // each byte copied (even newline), and not become -1 if // we go to the end. Better ways welcome! nn--; if ((*cp++ = *m_bufbase++) == '\n') { break; } } // Update counts maxtransf -= nn; // Actual count transferred m_bufbytes -= maxtransf; cnt -= maxtransf; LOGDEB2(("After transfer: actual transf %d cnt %d, m_bufbytes %d\n", maxtransf, cnt, m_bufbytes)); // Finished ? if (cnt <= 1 || (cp > buf && cp[-1] == '\n')) { *cp = 0; return cp - buf; } // Transfer from net m_bufbase = m_buf; m_bufbytes = receive(m_buf, m_bufsize, timeo); if (m_bufbytes == 0) { // EOF *cp = 0; return cp - buf; } if (m_bufbytes < 0) { m_bufbytes = 0; *cp = 0; return -1; } } } // Called when selectloop detects that data can be read or written on // the connection. The user callback would normally have been set // up. If it is, call it and return. Else, perform housecleaning: read // and discard. int NetconData::cando(Netcon::Event reason) { LOGDEB2(("NetconData::cando\n")); if (m_user) { return m_user->data(this, reason); } // No user callback. Clean up by ourselves if (reason & NETCONPOLL_READ) { #define BS 200 char buf[BS]; int n; if ((n = receive(buf, BS)) < 0) { LOGSYSERR("NetconData::cando", "receive", ""); return -1; } if (n == 0) { // EOF return 0; } } clearselevents(NETCONPOLL_WRITE); return 1; } /////////////////////////////////////////////////////////////////////// // Methods for a client connection (NetconCli) int NetconCli::openconn(const char *host, unsigned int port, int timeo) { int ret = -1; LOGDEB2(("Netconcli::openconn: host %s, port %d\n", host, port)); closeconn(); struct sockaddr *saddr; socklen_t addrsize; struct sockaddr_in ip_addr; struct sockaddr_un unix_addr; if (host[0] != '/') { memset(&ip_addr, 0, sizeof(ip_addr)); ip_addr.sin_family = AF_INET; ip_addr.sin_port = htons(port); // Server name may be host name or IP address int addr; if ((addr = inet_addr(host)) != -1) { memcpy(&ip_addr.sin_addr, &addr, sizeof(addr)); } else { struct hostent *hp; if ((hp = gethostbyname(host)) == 0) { LOGERR(("NetconCli::openconn: gethostbyname(%s) failed\n", host)); return -1; } memcpy(&ip_addr.sin_addr, hp->h_addr, hp->h_length); } if ((m_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { LOGSYSERR("NetconCli::openconn", "socket", ""); return -1; } addrsize = sizeof(ip_addr); saddr = (sockaddr*)&ip_addr; } else { memset(&unix_addr, 0, sizeof(unix_addr)); unix_addr.sun_family = AF_UNIX; if (strlen(host) > UNIX_PATH_MAX - 1) { LOGERR(("NetconCli::openconn: name too long: %s\n", host)); return -1; } strcpy(unix_addr.sun_path, host); if ((m_fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { LOGSYSERR("NetconCli::openconn", "socket", ""); return -1; } addrsize = sizeof(unix_addr); saddr = (sockaddr*)&unix_addr; } if (timeo > 0) { set_nonblock(1); } if (connect(m_fd, saddr, addrsize) < 0) { if (timeo > 0) { if (errno != EINPROGRESS) { goto out; } if (select1(m_fd, timeo, 1) == 1) { goto connectok; } } if (m_silentconnectfailure == 0) { LOGSYSERR("NetconCli", "connect", ""); } goto out; } connectok: if (timeo > 0) { set_nonblock(0); } LOGDEB2(("NetconCli::connect: setting keepalive\n")); if (setsockopt(m_fd, SOL_SOCKET, SO_KEEPALIVE, (char *)&one, sizeof(one)) < 0) { LOGSYSERR("NetconCli::connect", "setsockopt", "KEEPALIVE"); } setpeer(host); LOGDEB2(("NetconCli::openconn: connection opened ok\n")); ret = 0; out: if (ret < 0) { closeconn(); } return ret; } // Same as previous, but get the port number from services int NetconCli::openconn(const char *host, const char *serv, int timeo) { LOGDEB2(("Netconcli::openconn: host %s, serv %s\n", host, serv)); if (host[0] != '/') { struct servent *sp; if ((sp = getservbyname(serv, "tcp")) == 0) { LOGERR(("NetconCli::openconn: getservbyname failed for %s\n",serv)); return -1; } // Callee expects the port number in host byte order return openconn(host, ntohs(sp->s_port), timeo); } else { return openconn(host, (unsigned int)0, timeo); } } int NetconCli::setconn(int fd) { LOGDEB2(("Netconcli::setconn: fd %d\n", fd)); closeconn(); m_fd = fd; m_ownfd = false; setpeer(""); return 0; } /////////////////////////////////////////////////////////////////////// // Methods for the main (listening) server connection NetconServLis::~NetconServLis() { #ifdef NETCON_ACCESSCONTROL freeZ(okaddrs.intarray); freeZ(okmasks.intarray); #endif } #if 0 // code for dumping a struct servent static void dump_servent(struct servent *servp) { fprintf(stderr, "Official name %s\n", servp->s_name); for (char **cpp = servp->s_aliases; *cpp; cpp++) { fprintf(stderr, "Nickname %s\n", *cpp); } fprintf(stderr, "Port %d\n", (int)ntohs((short)servp->s_port)); fprintf(stderr, "Proto %s\n", servp->s_proto); } #endif // Set up service. int NetconServLis::openservice(const char *serv, int backlog) { int port; struct servent *servp; if (!serv) { LOGERR(("NetconServLis::openservice: null serv??\n")); return -1; } LOGDEB1(("NetconServLis::openservice: serv %s\n", serv)); #ifdef NETCON_ACCESSCONTROL if (initperms(serv) < 0) { return -1; } #endif m_serv = serv; if (serv[0] != '/') { if ((servp = getservbyname(serv, "tcp")) == 0) { LOGERR(("NetconServLis::openservice: getservbyname failed for %s\n", serv)); return -1; } port = (int)ntohs((short)servp->s_port); return openservice(port, backlog); } else { if (strlen(serv) > UNIX_PATH_MAX - 1) { LOGERR(("NetconServLis::openservice: too long for AF_UNIX: %s\n", serv)); return -1; } int ret = -1; struct sockaddr_un addr; if ((m_fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { LOGSYSERR("NetconServLis", "socket", ""); return -1; } memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_UNIX; strcpy(addr.sun_path, serv); if (::bind(m_fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { LOGSYSERR("NetconServLis", "bind", ""); goto out; } if (listen(m_fd, backlog) < 0) { LOGSYSERR("NetconServLis", "listen", ""); goto out; } LOGDEB1(("NetconServLis::openservice: service opened ok\n")); ret = 0; out: if (ret < 0 && m_fd >= 0) { close(m_fd); m_fd = -1; } return ret; } } // Port is a natural host integer value int NetconServLis::openservice(int port, int backlog) { LOGDEB1(("NetconServLis::openservice: port %d\n", port)); #ifdef NETCON_ACCESSCONTROL if (initperms(port) < 0) { return -1; } #endif int ret = -1; struct sockaddr_in ipaddr; if ((m_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { LOGSYSERR("NetconServLis", "socket", ""); return -1; } (void) setsockopt(m_fd, SOL_SOCKET, SO_REUSEADDR,(char *)&one, sizeof(one)); #ifdef SO_REUSEPORT (void) setsockopt(m_fd, SOL_SOCKET, SO_REUSEPORT,(char *)&one, sizeof(one)); #endif /*SO_REUSEPORT*/ memset(&ipaddr, 0, sizeof(ipaddr)); ipaddr.sin_family = AF_INET; ipaddr.sin_addr.s_addr = htonl(INADDR_ANY); ipaddr.sin_port = htons((short)port); if (::bind(m_fd, (struct sockaddr *)&ipaddr, sizeof(ipaddr)) < 0) { LOGSYSERR("NetconServLis", "bind", ""); goto out; } if (listen(m_fd, backlog) < 0) { LOGSYSERR("NetconServLis", "listen", ""); goto out; } LOGDEB1(("NetconServLis::openservice: service opened ok\n")); ret = 0; out: if (ret < 0 && m_fd >= 0) { close(m_fd); m_fd = -1; } return ret; } #ifdef NETCON_ACCESSCONTROL int NetconServLis::initperms(int port) { if (permsinit) { return 0; } char sport[30]; sprintf(sport, "%d", port); return initperms(sport); } // Get authorized address lists from parameter file. This is disabled for now int NetconServLis::initperms(const char *serv) { if (permsinit) { return 0; } if (serv == 0 || *serv == 0 || strlen(serv) > 80) { LOGERR(("NetconServLis::initperms: bad service name %s\n", serv)); return -1; } char keyname[100]; sprintf(keyname, "%s_okaddrs", serv); if (genparams->getparam(keyname, &okaddrs, 1) < 0) { serv = "default"; sprintf(keyname, "%s_okaddrs", serv); if (genparams->getparam(keyname, &okaddrs) < 0) { LOGERR(("NetconServLis::initperms: no okaddrs found in config file\n")); return -1; } } sprintf(keyname, "%s_okmasks", serv); if (genparams->getparam(keyname, &okmasks)) { LOGERR(("NetconServLis::initperms: okmasks not found\n")); return -1; } if (okaddrs.len == 0 || okmasks.len == 0) { LOGERR(("NetconServLis::initperms: len 0 for okmasks or okaddrs\n")); return -1; } permsinit = 1; return 0; } #endif /* NETCON_ACCESSCONTROL */ // Sample cando routine for server master connection: delete newly // accepted connection. What else ? // This is to be overriden by a derived class method for an application // using the selectloop thing int NetconServLis::cando(Netcon::Event reason) { delete accept(); return 1; } NetconServCon * NetconServLis::accept(int timeo) { LOGDEB(("NetconServLis::accept\n")); if (timeo > 0) { int ret = select1(m_fd, timeo); if (ret == 0) { LOGDEB2(("NetconServLis::accept timed out\n")); m_didtimo = 1; return 0; } if (ret < 0) { LOGSYSERR("NetconServLis::accept", "select", ""); return 0; } } m_didtimo = 0; NetconServCon *con = 0; int newfd = -1; struct sockaddr_in who; struct sockaddr_un uwho; if (m_serv.empty() || m_serv[0] != '/') { SOCKLEN_T clilen = (SOCKLEN_T)sizeof(who); if ((newfd = ::accept(m_fd, (struct sockaddr *)&who, &clilen)) < 0) { LOGSYSERR("NetconServCon::accept", "accept", ""); goto out; } #ifdef NETCON_ACCESSCONTROL if (checkperms(&who, clilen) < 0) { goto out; } #endif } else { SOCKLEN_T clilen = (SOCKLEN_T)sizeof(uwho); if ((newfd = ::accept(m_fd, (struct sockaddr *)&uwho, &clilen)) < 0) { LOGSYSERR("NetconServCon::accept", "accept", ""); goto out; } } con = new NetconServCon(newfd); if (con == 0) { LOGERR(("NetconServLis::accept: new NetconServCon failed\n")); goto out; } // Retrieve peer's host name. Errors are non fatal if (m_serv.empty() || m_serv[0] != '/') { struct hostent *hp; if ((hp = gethostbyaddr((char *) & (who.sin_addr), sizeof(struct in_addr), AF_INET)) == 0) { LOGERR(("NetconServLis::accept: gethostbyaddr failed for addr 0x%lx\n", who.sin_addr.s_addr)); con->setpeer(inet_ntoa(who.sin_addr)); } else { con->setpeer(hp->h_name); } } else { con->setpeer(m_serv.c_str()); } LOGDEB2(("NetconServLis::accept: setting keepalive\n")); if (setsockopt(newfd, SOL_SOCKET, SO_KEEPALIVE, (char *)&one, sizeof(one)) < 0) { LOGSYSERR("NetconServLis::accept", "setsockopt", "KEEPALIVE"); } LOGDEB2(("NetconServLis::accept: got connect from %s\n", con->getpeer())); out: if (con == 0 && newfd >= 0) { close(newfd); } return con; } #ifdef NETCON_ACCESSCONTROL int NetconServLis::checkperms(void *cl, int) { // If okmasks and addrs were not initialized, the default is allow to all if (okmasks.len <= 0 || okaddrs.len <= 0) { return 0; } struct sockaddr *addr = (struct sockaddr *)cl; unsigned long ip_addr; if (addr->sa_family != AF_INET) { LOGERR(("NetconServLis::checkperms: connection from non-INET addr !\n")); return -1; } ip_addr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr); LOGDEB2(("checkperms: ip_addr: 0x%x\n", ip_addr)); for (int i = 0; i < okaddrs.len; i++) { unsigned int mask; if (i < okmasks.len) { mask = okmasks.intarray[i]; } else { mask = okmasks.intarray[okmasks.len-1]; } LOGDEB2(("checkperms: trying okaddr 0x%x, mask 0x%x\n", okaddrs.intarray[i], mask)); if ((ip_addr & mask) == (okaddrs.intarray[i] & mask)) { return (0); } } LOGERR(("NetconServLis::checkperm: connection from bad address 0x%x\n", ip_addr)); return -1; } #endif /* NETCON_ACCESSCONTROL */ #else /* !TEST_NETCON */ ///////////////////////////////////////////////////////////////////////// ////////// TEST DRIVER //////////////////////////////////////////////////////////////////////// #include #include #include #include #include #include "debuglog.h" #include "netcon.h" using namespace std; static char *thisprog; static char usage[] = "-c : Connects to trnetcon server, exchange message, then\n" " sleeps 10 S, except if option -n is given (sleep forever)\n" "\n" "-s : open service \n" ; static void Usage() { fprintf(stderr, "Usage : %s:\n %s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_s 0x2 /* Server */ #define OPT_c 0x4 /* Client */ #define OPT_n 0x8 /* Client sleeps forever */ extern int trycli(char *host, char *serv); extern int tryserv(char *serv); int nloop = 10; int main(int argc, char **argv) { char *host, *serv; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ { Usage(); } while (**argv) switch (*(*argv)++) { case 's': op_flags |= OPT_s; break; case 'c': op_flags |= OPT_c; break; case 'n': op_flags |= OPT_n; break; default: Usage(); break; } argc--; argv++; } DebugLog::setfilename("stderr"); DebugLog::getdbl()->setloglevel(DEBDEB2); if (op_flags & OPT_c) { if (argc != 2) { Usage(); } host = *argv++; argc--; serv = *argv++; argc--; exit(trycli(host, serv)); } else if (op_flags & OPT_s) { if (argc != 1) { Usage(); } serv = *argv++; argc--; exit(tryserv(serv)); } else { Usage(); } } static char buf[1024]; static int buflen = 1023; static char fromcli[200]; class CliNetconWorker : public NetconWorker { public: CliNetconWorker() : m_count(0) {} int data(NetconData *con, Netcon::Event reason) { LOGDEB(("clientdata\n")); if (reason & Netcon::NETCONPOLL_WRITE) { sprintf(fromcli, "Bonjour Bonjour client %d, count %d", getpid(), m_count); con->setselevents(Netcon::NETCONPOLL_READ); if (con->send(fromcli, strlen(fromcli) + 1) < 0) { fprintf(stderr, "send failed\n"); return -1; } m_count++; } if (reason & Netcon::NETCONPOLL_READ) { con->setselevents(Netcon::NETCONPOLL_WRITE); int n; if ((n = con->receive(buf, buflen)) < 0) { fprintf(stderr, "receive failed\n"); return -1; } if (n == 0) { // EOF, close connection return -1; } buf[n] = 0; fprintf(stderr, "%d received \"%s\"\n", getpid(), buf); if (op_flags & OPT_n) { pause(); } else { sleep(1); } } if (m_count >= 10) { fprintf(stderr, "Did 10, enough\n"); if (con->getloop()) { con->getloop()->loopReturn(0); } } return 0; } private: int m_count; }; int trycli(char *host, char *serv) { sprintf(fromcli, "Bonjour Bonjour je suis le client %d", getpid()); NetconCli *clicon = new NetconCli(); NetconP con(clicon); if (!con) { fprintf(stderr, "new NetconCli failed\n"); return 1; } int port = atoi(serv); int ret = port > 0 ? clicon->openconn(host, port) : clicon->openconn(host, serv); if (ret < 0) { fprintf(stderr, "openconn(%s, %s) failed\n", host, serv); return 1; } fprintf(stderr, "openconn(%s, %s) ok\n", host, serv); #ifdef NOSELLOOP for (int i = 0; i < nloop; i++) { if (con->send(fromcli, strlen(fromcli) + 1) < 0) { fprintf(stderr, "%d: Send failed\n", getpid()); return 1; } if (con->receive(buf, buflen) < 0) { perror("receive:"); fprintf(stderr, "%d: Receive failed\n", getpid()); return 1; } fprintf(stderr, "%d Received \"%s\"\n", getpid(), buf); if (op_flags & OPT_n) { pause(); } else { sleep(1); } } #else RefCntr worker = RefCntr(new CliNetconWorker()); clicon->setcallback(worker); SelectLoop myloop; myloop.addselcon(con, Netcon::NETCONPOLL_WRITE); fprintf(stderr, "client ready\n"); ret = myloop.doLoop(); if (ret < 0) { fprintf(stderr, "selectloop failed\n"); exit(1); } fprintf(stderr, "selectloop returned %d\n", ret); #endif return 0; } ////////////////////////////////////////////////////////////////// // Server-side sample code class ServNetconWorker : public NetconWorker { public: ServNetconWorker() : m_count(0) {} int data(NetconData *con, Netcon::Event reason) { LOGDEB(("serverdata\n")); if (reason & Netcon::NETCONPOLL_WRITE) { con->setselevents(Netcon::NETCONPOLL_READ); char fromserv[200]; sprintf(fromserv, "Du serveur: mon fd pour ce client est %d, mon compte %d", con->getfd(), ++m_count); if (con->send(fromserv, strlen(fromserv) + 1) < 0) { fprintf(stderr, "send failed\n"); return -1; } } if (reason & Netcon::NETCONPOLL_READ) { #define LL 200 char buf[LL+1]; int n; if ((n = con->receive(buf, LL)) < 0) { fprintf(stderr, "receive failed\n"); return -1; } if (n == 0) { return -1; } buf[n] = 0; fprintf(stderr, "%d received \"%s\"\n", getpid(), buf); con->setselevents(Netcon::NETCONPOLL_READ|Netcon::NETCONPOLL_WRITE); } return 0; } private: int m_count; }; class MyNetconServLis : public NetconServLis { public: MyNetconServLis(SelectLoop &loop) : NetconServLis(), m_loop(loop) { } protected: int cando(Netcon::Event reason) { NetconServCon *con = accept(); if (con == 0) { return -1; } RefCntr worker = RefCntr(new ServNetconWorker()); con->setcallback(worker); m_loop.addselcon(NetconP(con), NETCONPOLL_READ); return 1; } SelectLoop& m_loop; }; NetconP lis; void onexit(int sig) { fprintf(stderr, "Onexit: "); if (sig == SIGQUIT) { kill(getpid(), SIGKILL); } fprintf(stderr, "Exiting\n"); exit(0); } int tryserv(char *serv) { signal(SIGCHLD, SIG_IGN); SelectLoop myloop; MyNetconServLis *servlis = new MyNetconServLis(myloop); lis = NetconP(servlis); if (!lis) { fprintf(stderr, "new NetconServLis failed\n"); return 1; } // Prepare for cleanup struct sigaction sa; sa.sa_flags = 0; sa.sa_handler = onexit; sigemptyset(&sa.sa_mask); sigaction(SIGINT, &sa, 0); sigaction(SIGQUIT, &sa, 0); sigaction(SIGTERM, &sa, 0); int port = atoi(serv); int ret = port > 0 ? servlis->openservice(port) : servlis->openservice(serv); if (ret < 0) { fprintf(stderr, "openservice(%s) failed\n", serv); return 1; } myloop.addselcon(lis, Netcon::NETCONPOLL_READ); fprintf(stderr, "openservice(%s) Ok\n", serv); if (myloop.doLoop() < 0) { fprintf(stderr, "selectloop failed\n"); exit(1); } return 0; } #endif /* TEST_NETCON */ recoll-1.21.5/utils/circache.h0000644000175000017500000000644012602163540015437 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _circache_h_included_ #define _circache_h_included_ /** * A data cache implemented as a circularly managed file * * A single file is used to stored objects. The file grows to a * specified maximum size, then is rewritten from the start, * overwriting older entries. * * Data objects inside the cache each have two parts: a data segment and an * attribute (metadata) dictionary. * They are named using the same identifiers that are used inside the Recoll * index (the UDI). * * Inside the file. the UDIs are stored inside the entry dictionary * under the key "udi". * * It is assumed that the dictionary are small (they are routinely read/parsed) * */ #include #include #ifndef NO_NAMESPACES using std::string; #endif class ConfSimple; class CirCacheInternal; class CirCache { public: CirCache(const string& dir); virtual ~CirCache(); virtual string getReason(); enum CreateFlags {CC_CRNONE=0, // Unique entries: erase older instances when same udi // is stored. CC_CRUNIQUE=1, // Truncate file (restart from scratch). CC_CRTRUNCATE = 2}; virtual bool create(off_t maxsize, int flags); enum OpMode {CC_OPREAD, CC_OPWRITE}; virtual bool open(OpMode mode); virtual std::string getpath(); virtual bool get(const string& udi, string& dic, string& data, int instance = -1); // Note: the dicp MUST have an udi entry enum PutFlags {NoCompHint = 1}; virtual bool put(const string& udi, const ConfSimple *dicp, const string& data, unsigned int flags = 0); virtual bool erase(const string& udi); /** Walk the archive. * * Maybe we'll have separate iterators one day, but this is good * enough for now. No put() operations should be performed while * using these. */ /** Back to oldest */ virtual bool rewind(bool& eof); /** Get entry under cursor */ virtual bool getCurrent(string& udi, string& dic, string& data); /** Get current entry udi only. Udi can be empty (erased empty), caller * should call again */ virtual bool getCurrentUdi(string& udi); /** Skip to next. (false && !eof) -> error, (false&&eof)->EOF. */ virtual bool next(bool& eof); /* Debug. This writes the entry headers to stdout */ virtual bool dump(); protected: CirCacheInternal *m_d; string m_dir; private: CirCache(const CirCache&) {} CirCache& operator=(const CirCache&) {return *this;} }; #endif /* _circache_h_included_ */ recoll-1.21.5/utils/ptmutex.h0000644000175000017500000000354512602163540015407 0ustar dockesdockes/* Copyright (C) 2011 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PTMUTEX_H_INCLUDED_ #define _PTMUTEX_H_INCLUDED_ #include /// A trivial wrapper/helper for pthread mutex locks /// Lock storage with auto-initialization. Must be created before any /// lock-using thread of course (possibly as a static object). class PTMutexInit { public: pthread_mutex_t m_mutex; int m_status; PTMutexInit() { m_status = pthread_mutex_init(&m_mutex, 0); } }; /// Take the lock when constructed, release when deleted. Can be disabled /// by constructor params for conditional use. class PTMutexLocker { public: // The nolock arg enables conditional locking PTMutexLocker(PTMutexInit& l, bool nolock = false) : m_lock(l), m_status(-1) { if (!nolock) m_status = pthread_mutex_lock(&m_lock.m_mutex); } ~PTMutexLocker() { if (m_status == 0) pthread_mutex_unlock(&m_lock.m_mutex); } int ok() {return m_status == 0;} // For pthread_cond_wait etc. pthread_mutex_t *getMutex() { return &m_lock.m_mutex; } private: PTMutexInit& m_lock; int m_status; }; #endif /* _PTMUTEX_H_INCLUDED_ */ recoll-1.21.5/aspell/0000755000175000017500000000000012602163571013645 5ustar dockesdockesrecoll-1.21.5/aspell/rclaspell.h0000644000175000017500000000502412602163536016001 0ustar dockesdockes/* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RCLASPELL_H_INCLUDED_ #define _RCLASPELL_H_INCLUDED_ /* autoconfig.h must be included before this file */ #ifdef RCL_USE_ASPELL /** * Aspell speller interface class. * * Aspell is used to let the user find about spelling variations that may * exist in the document set for a given word. * A specific aspell dictionary is created out of all the terms in the * xapian index, and we then use it to expand a term to spelling neighbours. * We use the aspell C api for term expansion, but have * to execute the program to create dictionaries. */ #include #include #include "rclconfig.h" #include "rcldb.h" class AspellData; class Aspell { public: Aspell(RclConfig *cnf); ~Aspell(); /** Check health */ bool ok() const; /** Find the aspell command and shared library, init function pointers */ bool init(std::string &reason); /** Build dictionary out of index term list. This is done at the end * of an indexing pass. */ bool buildDict(Rcl::Db &db, std::string &reason); /** Check that word is in dictionary. Note that this would mean * that the EXACT word is: aspell just does a lookup, no * grammatical, case or diacritics magic of any kind * * @return true if word in dic, false if not. reason.size() -> error */ bool check(const std::string& term, std::string& reason); /** Return a list of possible expansions for a given word */ bool suggest(Rcl::Db &db, const std::string& term, std::list &suggestions, std::string &reason); private: std::string dicPath(); RclConfig *m_config; std::string m_lang; AspellData *m_data; bool make_speller(std::string& reason); }; #endif /* RCL_USE_ASPELL */ #endif /* _RCLASPELL_H_INCLUDED_ */ recoll-1.21.5/aspell/Makefile0000644000175000017500000000067612602163571015316 0ustar dockesdockesdepth = .. include $(depth)/mk/sysconf PROGS = rclaspell SRCS = rclaspell.cpp all: depend $(PROGS) librecoll RCLASPELL_OBJS= trrclaspell.o rclaspell : $(RCLASPELL_OBJS) $(CXX) $(ALL_CXXFLAGS) -o rclaspell $(RCLASPELL_OBJS) \ $(LIBRECOLL) $(LIBXAPIAN) $(LIBICONV) trrclaspell.o : rclaspell.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_RCLASPELL -c -o trrclaspell.o \ rclaspell.cpp include $(depth)/mk/commontargets include alldeps recoll-1.21.5/aspell/rclaspell.cpp0000644000175000017500000004057012602163536016341 0ustar dockesdockes#ifndef TEST_RCLASPELL /* Copyright (C) 2006 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #ifdef RCL_USE_ASPELL #include #include #include #include ASPELL_INCLUDE #include "pathut.h" #include "execmd.h" #include "rclaspell.h" #include "debuglog.h" #include "unacpp.h" #include "ptmutex.h" using namespace std; // Just a place where we keep the Aspell library entry points together class AspellApi { public: struct AspellConfig *(*new_aspell_config)(); int (*aspell_config_replace)(struct AspellConfig *, const char * key, const char * value); struct AspellCanHaveError *(*new_aspell_speller)(struct AspellConfig *); void (*delete_aspell_config)(struct AspellConfig *); void (*delete_aspell_can_have_error)(struct AspellCanHaveError *); struct AspellSpeller * (*to_aspell_speller)(struct AspellCanHaveError *); struct AspellConfig * (*aspell_speller_config)(struct AspellSpeller *); const struct AspellWordList * (*aspell_speller_suggest) (struct AspellSpeller *, const char *, int); int (*aspell_speller_check)(struct AspellSpeller *, const char *, int); struct AspellStringEnumeration * (*aspell_word_list_elements) (const struct AspellWordList * ths); const char * (*aspell_string_enumeration_next) (struct AspellStringEnumeration * ths); void (*delete_aspell_string_enumeration)(struct AspellStringEnumeration *); const struct AspellError *(*aspell_error) (const struct AspellCanHaveError *); const char *(*aspell_error_message)(const struct AspellCanHaveError *); const char *(*aspell_speller_error_message)(const struct AspellSpeller *); void (*delete_aspell_speller)(struct AspellSpeller *); }; static AspellApi aapi; static PTMutexInit o_aapi_mutex; #define NMTOPTR(NM, TP) \ if ((aapi.NM = TP dlsym(m_data->m_handle, #NM)) == 0) { \ badnames += #NM + string(" "); \ } static const char *aspell_lib_suffixes[] = { ".so", ".so.15", ".so.16" }; static const unsigned int nlibsuffs = sizeof(aspell_lib_suffixes) / sizeof(char *); // Stuff that we don't wish to see in the .h (possible sysdeps, etc.) class AspellData { public: AspellData() : m_handle(0), m_speller(0) {} ~AspellData() { LOGDEB2(("~AspellData\n")); if (m_handle) { dlclose(m_handle); m_handle = 0; } if (m_speller) { // Dumps core if I do this?? //aapi.delete_aspell_speller(m_speller); m_speller = 0; LOGDEB2(("~AspellData: speller done\n")); } } void *m_handle; string m_exec; AspellSpeller *m_speller; }; Aspell::Aspell(RclConfig *cnf) : m_config(cnf), m_data(0) { } Aspell::~Aspell() { deleteZ(m_data); } bool Aspell::init(string &reason) { PTMutexLocker locker(o_aapi_mutex); deleteZ(m_data); // Language: we get this from the configuration, else from the NLS // environment. The aspell language names used for selecting language // definition files (used to create dictionaries) are like en, fr if (!m_config->getConfParam("aspellLanguage", m_lang) || m_lang.empty()) { string lang = "en"; const char *cp; if ((cp = getenv("LC_ALL"))) lang = cp; else if ((cp = getenv("LANG"))) lang = cp; if (!lang.compare("C")) lang = "en"; m_lang = lang.substr(0, lang.find_first_of("_")); } m_data = new AspellData; const char *aspell_prog_from_env = getenv("ASPELL_PROG"); if (aspell_prog_from_env && access(aspell_prog_from_env, X_OK) == 0) { m_data->m_exec = aspell_prog_from_env; #ifdef ASPELL_PROG } else if (access(ASPELL_PROG, X_OK) == 0) { m_data->m_exec = ASPELL_PROG; #endif // ASPELL_PROG } else { ExecCmd::which("aspell", m_data->m_exec); } if (m_data->m_exec.empty()) { reason = "aspell program not found or not executable"; deleteZ(m_data); return false; } reason = "Could not open shared library "; string libbase("libaspell"); string lib; for (unsigned int i = 0; i < nlibsuffs; i++) { lib = libbase + aspell_lib_suffixes[i]; reason += string("[") + lib + "] "; if ((m_data->m_handle = dlopen(lib.c_str(), RTLD_LAZY)) != 0) { reason.erase(); goto found; } } found: if (m_data->m_handle == 0) { reason += string(" : ") + dlerror(); deleteZ(m_data); return false; } string badnames; NMTOPTR(new_aspell_config, (struct AspellConfig *(*)())); NMTOPTR(aspell_config_replace, (int (*)(struct AspellConfig *, const char *, const char *))); NMTOPTR(new_aspell_speller, (struct AspellCanHaveError *(*)(struct AspellConfig *))); NMTOPTR(delete_aspell_config, (void (*)(struct AspellConfig *))); NMTOPTR(delete_aspell_can_have_error, (void (*)(struct AspellCanHaveError *))); NMTOPTR(to_aspell_speller, (struct AspellSpeller *(*)(struct AspellCanHaveError *))); NMTOPTR(aspell_speller_config, (struct AspellConfig *(*)(struct AspellSpeller *))); NMTOPTR(aspell_speller_suggest, (const struct AspellWordList *(*)(struct AspellSpeller *, const char *, int))); NMTOPTR(aspell_speller_check, (int (*)(struct AspellSpeller *, const char *, int))); NMTOPTR(aspell_word_list_elements, (struct AspellStringEnumeration *(*) (const struct AspellWordList *))); NMTOPTR(aspell_string_enumeration_next, (const char * (*)(struct AspellStringEnumeration *))); NMTOPTR(delete_aspell_string_enumeration, (void (*)(struct AspellStringEnumeration *))); NMTOPTR(aspell_error, (const struct AspellError*(*)(const struct AspellCanHaveError *))); NMTOPTR(aspell_error_message, (const char *(*)(const struct AspellCanHaveError *))); NMTOPTR(aspell_speller_error_message, (const char *(*)(const struct AspellSpeller *))); NMTOPTR(delete_aspell_speller, (void (*)(struct AspellSpeller *))); if (!badnames.empty()) { reason = string("Aspell::init: symbols not found:") + badnames; deleteZ(m_data); return false; } return true; } bool Aspell::ok() const { return m_data != 0 && m_data->m_handle != 0; } string Aspell::dicPath() { return path_cat(m_config->getConfDir(), string("aspdict.") + m_lang + string(".rws")); } // The data source for the create dictionary aspell command. We walk // the term list, filtering out things that are probably not words. // Note that the manual for the current version (0.60) of aspell // states that utf-8 is not well supported, so that we should maybe // also filter all 8bit chars. class AspExecPv : public ExecCmdProvide { public: string *m_input; // pointer to string used as input buffer to command Rcl::TermIter *m_tit; Rcl::Db &m_db; AspExecPv(string *i, Rcl::TermIter *tit, Rcl::Db &db) : m_input(i), m_tit(tit), m_db(db) {} void newData() { while (m_db.termWalkNext(m_tit, *m_input)) { LOGDEB2(("Aspell::buildDict: term: [%s]\n", m_input->c_str())); if (!Rcl::Db::isSpellingCandidate(*m_input)) { LOGDEB2(("Aspell::buildDict: SKIP\n")); continue; } if (!o_index_stripchars) { string lower; if (!unacmaybefold(*m_input, lower, "UTF-8", UNACOP_FOLD)) continue; m_input->swap(lower); } // Got a non-empty sort-of appropriate term, let's send it to // aspell LOGDEB2(("Apell::buildDict: SEND\n")); m_input->append("\n"); return; } // End of data. Tell so. Exec will close cmd. m_input->erase(); } }; bool Aspell::buildDict(Rcl::Db &db, string &reason) { if (!ok()) return false; string addCreateParam; m_config->getConfParam("aspellAddCreateParam", addCreateParam); // We create the dictionary by executing the aspell command: // aspell --lang=[lang] create master [dictApath] string cmdstring(m_data->m_exec); ExecCmd aspell; vector args; args.push_back(string("--lang=")+ m_lang); cmdstring += string(" ") + string("--lang=") + m_lang; args.push_back("--encoding=utf-8"); cmdstring += string(" ") + "--encoding=utf-8"; if (!addCreateParam.empty()) { args.push_back(addCreateParam); cmdstring += string(" ") + addCreateParam; } args.push_back("create"); cmdstring += string(" ") + "create"; args.push_back("master"); cmdstring += string(" ") + "master"; args.push_back(dicPath()); cmdstring += string(" ") + dicPath(); // Have to disable stderr, as numerous messages about bad strings are // printed. We'd like to keep errors about missing databases though, so // make it configurable for diags bool keepStderr = false; m_config->getConfParam("aspellKeepStderr", &keepStderr); if (!keepStderr) aspell.setStderr("/dev/null"); Rcl::TermIter *tit = db.termWalkOpen(); if (tit == 0) { reason = "termWalkOpen failed\n"; return false; } string termbuf; AspExecPv pv(&termbuf, tit, db); aspell.setProvide(&pv); if (aspell.doexec(m_data->m_exec, args, &termbuf)) { ExecCmd cmd; args.clear(); args.push_back("dicts"); string dicts; bool hasdict = false; if (cmd.doexec(m_data->m_exec, args, 0, &dicts)) { vector vdicts; stringToTokens(dicts, vdicts, "\n\r\t "); if (find(vdicts.begin(), vdicts.end(), m_lang) != vdicts.end()) { hasdict = true; } } if (hasdict) reason = string( "\naspell dictionary creation command [") + cmdstring + string("] failed. Reason unknown.\n" "Try to set aspellKeepStderr = 1 in recoll.conf, and execute \n" "the indexing command in a terminal to see the aspell " "diagnostic output.\n"); else reason = string("aspell dictionary creation command failed:\n") + cmdstring + "\n" "One possible reason might be missing language " "data files for lang = " + m_lang + ". Maybe try to execute the command by hand for a better diag."; return false; } db.termWalkClose(tit); return true; } bool Aspell::make_speller(string& reason) { if (!ok()) return false; if (m_data->m_speller != 0) return true; AspellCanHaveError *ret; AspellConfig *config = aapi.new_aspell_config(); aapi.aspell_config_replace(config, "lang", m_lang.c_str()); aapi.aspell_config_replace(config, "encoding", "utf-8"); aapi.aspell_config_replace(config, "master", dicPath().c_str()); aapi.aspell_config_replace(config, "sug-mode", "fast"); // aapi.aspell_config_replace(config, "sug-edit-dist", "2"); ret = aapi.new_aspell_speller(config); aapi.delete_aspell_config(config); if (aapi.aspell_error(ret) != 0) { reason = aapi.aspell_error_message(ret); aapi.delete_aspell_can_have_error(ret); return false; } m_data->m_speller = aapi.to_aspell_speller(ret); return true; } bool Aspell::check(const string &iterm, string& reason) { LOGDEB2(("Aspell::check [%s]\n", iterm.c_str())); string mterm(iterm); if (!ok() || !make_speller(reason)) return false; if (iterm.empty()) return true; //?? if (!o_index_stripchars) { string lower; if (!unacmaybefold(mterm, lower, "UTF-8", UNACOP_FOLD)) { LOGERR(("Aspell::check : cant lowercase input\n")); return false; } mterm.swap(lower); } int ret = aapi.aspell_speller_check(m_data->m_speller, mterm.c_str(), mterm.length()); reason.clear(); switch (ret) { case 0: return false; case 1: return true; default: case -1: reason.append("Aspell error: "); reason.append(aapi.aspell_speller_error_message(m_data->m_speller)); return false; } } bool Aspell::suggest(Rcl::Db &db, const string &_term, list& suggestions, string& reason) { if (!ok() || !make_speller(reason)) return false; string mterm(_term); if (mterm.empty()) return true; //?? if (!o_index_stripchars) { string lower; if (!unacmaybefold(mterm, lower, "UTF-8", UNACOP_FOLD)) { LOGERR(("Aspell::check : cant lowercase input\n")); return false; } mterm.swap(lower); } AspellCanHaveError *ret; const AspellWordList *wl = aapi.aspell_speller_suggest(m_data->m_speller, mterm.c_str(), mterm.length()); if (wl == 0) { reason = aapi.aspell_speller_error_message(m_data->m_speller); return false; } AspellStringEnumeration *els = aapi.aspell_word_list_elements(wl); const char *word; while ((word = aapi.aspell_string_enumeration_next(els)) != 0) { // Check that the word exists in the index (we don't want // aspell computed stuff, only exact terms from the // dictionary). We used to also check that it stems // differently from the base word but this is complicated // (stemming on/off + language), so we now leave this to the // caller. if (db.termExists(word)) suggestions.push_back(word); } aapi.delete_aspell_string_enumeration(els); return true; } #endif // RCL_USE_ASPELL #else // TEST_RCLASPELL test driver -> #ifdef HAVE_CONFIG_H #include "autoconfig.h" #endif #ifdef RCL_USE_ASPELL #include #include #include #include #include #include using namespace std; #include "rclinit.h" #include "rclconfig.h" #include "rcldb.h" #include "rclaspell.h" static char *thisprog; RclConfig *rclconfig; static char usage [] = " -b : build dictionary\n" " -s : suggestions for term\n" " -c : check term\n" "\n" ; static void Usage(void) { fprintf(stderr, "%s: usage:\n%s", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_s 0x2 #define OPT_b 0x4 #define OPT_c 0x8 int main(int argc, char **argv) { string word; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'b': op_flags |= OPT_b; break; case 'c': op_flags |= OPT_c; if (argc < 2) Usage(); word = *(++argv); argc--; goto b1; case 's': op_flags |= OPT_s; if (argc < 2) Usage(); word = *(++argv); argc--; goto b1; default: Usage(); break; } b1: argc--; argv++; } if (argc != 0 || op_flags == 0) Usage(); string reason; rclconfig = recollinit(0, 0, reason); if (!rclconfig || !rclconfig->ok()) { fprintf(stderr, "Configuration problem: %s\n", reason.c_str()); exit(1); } string dbdir = rclconfig->getDbDir(); if (dbdir.empty()) { fprintf(stderr, "No db directory in configuration"); exit(1); } Rcl::Db rcldb(rclconfig); if (!rcldb.open(Rcl::Db::DbRO, 0)) { fprintf(stderr, "Could not open database in %s\n", dbdir.c_str()); exit(1); } Aspell aspell(rclconfig); if (!aspell.init(reason)) { cerr << "Init failed: " << reason << endl; exit(1); } if (op_flags & OPT_b) { if (!aspell.buildDict(rcldb, reason)) { cerr << "buildDict failed: " << reason << endl; exit(1); } } else if (op_flags & OPT_c) { bool ret = aspell.check(word, reason); if (!ret && reason.size()) { cerr << "Aspell error: " << reason << endl; return 1; } cout << word; if (ret) { cout << " is in dictionary" << endl; } else { cout << " not in dictionary" << endl; } } else { list suggs; if (!aspell.suggest(rcldb, word, suggs, reason)) { cerr << "suggest failed: " << reason << endl; exit(1); } cout << "Suggestions for " << word << ":" << endl; for (list::iterator it = suggs.begin(); it != suggs.end(); it++) { cout << *it << endl; } } exit(0); } #else int main(int argc, char **argv) {return 1;} #endif // RCL_USE_ASPELL #endif // TEST_RCLASPELL test driver recoll-1.21.5/aspell/aspell-local.h0000644000175000017500000006320012602163536016370 0ustar dockesdockes/* Automatically generated file. Do not edit directly. */ /* This file is part of The New Aspell * Copyright (C) 2001-2002 by Kevin Atkinson under the GNU LGPL * license version 2.0 or 2.1. You should have received a copy of the * LGPL license along with this library if you did not you can find it * at http://www.gnu.org/. */ #ifndef ASPELL_ASPELL__H #define ASPELL_ASPELL__H #ifdef __cplusplus extern "C" { #endif /******************************* type id *******************************/ union AspellTypeId { unsigned int num; char str[4]; }; typedef union AspellTypeId AspellTypeId; /************************** mutable container **************************/ typedef struct AspellMutableContainer AspellMutableContainer; int aspell_mutable_container_add(struct AspellMutableContainer * ths, const char * to_add); int aspell_mutable_container_remove(struct AspellMutableContainer * ths, const char * to_rem); void aspell_mutable_container_clear(struct AspellMutableContainer * ths); struct AspellMutableContainer * aspell_mutable_container_to_mutable_container(struct AspellMutableContainer * ths); /******************************* key info *******************************/ enum AspellKeyInfoType {AspellKeyInfoString, AspellKeyInfoInt, AspellKeyInfoBool, AspellKeyInfoList}; typedef enum AspellKeyInfoType AspellKeyInfoType; struct AspellKeyInfo { /* The name of the key. */ const char * name; /* The key type. */ enum AspellKeyInfoType type; /* The default value of the key. */ const char * def; /* A brief description of the key or NULL if internal value. */ const char * desc; int flags; int other_data; }; typedef struct AspellKeyInfo AspellKeyInfo; /******************************** config ********************************/ typedef struct AspellKeyInfoEnumeration AspellKeyInfoEnumeration; int aspell_key_info_enumeration_at_end(const struct AspellKeyInfoEnumeration * ths); const struct AspellKeyInfo * aspell_key_info_enumeration_next(struct AspellKeyInfoEnumeration * ths); void delete_aspell_key_info_enumeration(struct AspellKeyInfoEnumeration * ths); struct AspellKeyInfoEnumeration * aspell_key_info_enumeration_clone(const struct AspellKeyInfoEnumeration * ths); void aspell_key_info_enumeration_assign(struct AspellKeyInfoEnumeration * ths, const struct AspellKeyInfoEnumeration * other); typedef struct AspellConfig AspellConfig; struct AspellConfig * new_aspell_config(); void delete_aspell_config(struct AspellConfig * ths); struct AspellConfig * aspell_config_clone(const struct AspellConfig * ths); void aspell_config_assign(struct AspellConfig * ths, const struct AspellConfig * other); unsigned int aspell_config_error_number(const struct AspellConfig * ths); const char * aspell_config_error_message(const struct AspellConfig * ths); const struct AspellError * aspell_config_error(const struct AspellConfig * ths); /* Sets extra keys which this config class should * accept. begin and end are expected to point to * the beginning and ending of an array of Aspell * Key Info. */ void aspell_config_set_extra(struct AspellConfig * ths, const struct AspellKeyInfo * begin, const struct AspellKeyInfo * end); /* Returns the KeyInfo object for the * corresponding key or returns NULL and sets * error_num to PERROR_UNKNOWN_KEY if the key is * not valid. The pointer returned is valid for * the lifetime of the object. */ const struct AspellKeyInfo * aspell_config_keyinfo(struct AspellConfig * ths, const char * key); /* Returns a newly allocated enumeration of all * the possible objects this config class uses. */ struct AspellKeyInfoEnumeration * aspell_config_possible_elements(struct AspellConfig * ths, int include_extra); /* Returns the default value for given key which * may involve substituting variables, thus it is * not the same as keyinfo(key)->def returns NULL * and sets error_num to PERROR_UNKNOWN_KEY if * the key is not valid. Uses the temporary * string. */ const char * aspell_config_get_default(struct AspellConfig * ths, const char * key); /* Returns a newly allocated enumeration of all * the key/value pairs. This DOES not include ones * which are set to their default values. */ struct AspellStringPairEnumeration * aspell_config_elements(struct AspellConfig * ths); /* Inserts an item, if the item already exists it * will be replaced. Returns TRUE if it succeeded * or FALSE on error. If the key in not valid it * sets error_num to PERROR_UNKNOWN_KEY, if the * value is not valid it will set error_num to * PERROR_BAD_VALUE, if the value can not be * changed it sets error_num to * PERROR_CANT_CHANGE_VALUE, and if the value is * a list and you are trying to set its directory, * it sets error_num to PERROR_LIST_SET */ int aspell_config_replace(struct AspellConfig * ths, const char * key, const char * value); /* Remove a key and returns TRUE if it exists * otherwise return FALSE. This effectively sets * the key to its default value. Calling replace * with a value of "" will also call * remove. If the key does not exist then it sets * error_num to 0 or PERROR_NOT, if the key is * not valid then it sets error_num to * PERROR_UNKNOWN_KEY, if the value can not be * changed then it sets error_num to * PERROR_CANT_CHANGE_VALUE */ int aspell_config_remove(struct AspellConfig * ths, const char * key); int aspell_config_have(const struct AspellConfig * ths, const char * key); /* Returns NULL on error. */ const char * aspell_config_retrieve(struct AspellConfig * ths, const char * key); int aspell_config_retrieve_list(struct AspellConfig * ths, const char * key, struct AspellMutableContainer * lst); /* Return -1 on error, 0 if false, 1 if true. */ int aspell_config_retrieve_bool(struct AspellConfig * ths, const char * key); /* Return -1 on error. */ int aspell_config_retrieve_int(struct AspellConfig * ths, const char * key); /******************************** error ********************************/ struct AspellError { const char * mesg; const struct AspellErrorInfo * err; }; typedef struct AspellError AspellError; int aspell_error_is_a(const struct AspellError * ths, const struct AspellErrorInfo * e); struct AspellErrorInfo { const struct AspellErrorInfo * isa; const char * mesg; unsigned int num_parms; const char * parms[3]; }; typedef struct AspellErrorInfo AspellErrorInfo; /**************************** can have error ****************************/ typedef struct AspellCanHaveError AspellCanHaveError; unsigned int aspell_error_number(const struct AspellCanHaveError * ths); const char * aspell_error_message(const struct AspellCanHaveError * ths); const struct AspellError * aspell_error(const struct AspellCanHaveError * ths); void delete_aspell_can_have_error(struct AspellCanHaveError * ths); /******************************** errors ********************************/ extern const struct AspellErrorInfo * const aerror_other; extern const struct AspellErrorInfo * const aerror_operation_not_supported; extern const struct AspellErrorInfo * const aerror_cant_copy; extern const struct AspellErrorInfo * const aerror_unimplemented_method; extern const struct AspellErrorInfo * const aerror_file; extern const struct AspellErrorInfo * const aerror_cant_open_file; extern const struct AspellErrorInfo * const aerror_cant_read_file; extern const struct AspellErrorInfo * const aerror_cant_write_file; extern const struct AspellErrorInfo * const aerror_invalid_name; extern const struct AspellErrorInfo * const aerror_bad_file_format; extern const struct AspellErrorInfo * const aerror_dir; extern const struct AspellErrorInfo * const aerror_cant_read_dir; extern const struct AspellErrorInfo * const aerror_config; extern const struct AspellErrorInfo * const aerror_unknown_key; extern const struct AspellErrorInfo * const aerror_cant_change_value; extern const struct AspellErrorInfo * const aerror_bad_key; extern const struct AspellErrorInfo * const aerror_bad_value; extern const struct AspellErrorInfo * const aerror_duplicate; extern const struct AspellErrorInfo * const aerror_key_not_string; extern const struct AspellErrorInfo * const aerror_key_not_int; extern const struct AspellErrorInfo * const aerror_key_not_bool; extern const struct AspellErrorInfo * const aerror_key_not_list; extern const struct AspellErrorInfo * const aerror_no_value_reset; extern const struct AspellErrorInfo * const aerror_no_value_enable; extern const struct AspellErrorInfo * const aerror_no_value_disable; extern const struct AspellErrorInfo * const aerror_no_value_clear; extern const struct AspellErrorInfo * const aerror_language_related; extern const struct AspellErrorInfo * const aerror_unknown_language; extern const struct AspellErrorInfo * const aerror_unknown_soundslike; extern const struct AspellErrorInfo * const aerror_language_not_supported; extern const struct AspellErrorInfo * const aerror_no_wordlist_for_lang; extern const struct AspellErrorInfo * const aerror_mismatched_language; extern const struct AspellErrorInfo * const aerror_affix; extern const struct AspellErrorInfo * const aerror_corrupt_affix; extern const struct AspellErrorInfo * const aerror_invalid_cond; extern const struct AspellErrorInfo * const aerror_invalid_cond_strip; extern const struct AspellErrorInfo * const aerror_incorrect_encoding; extern const struct AspellErrorInfo * const aerror_encoding; extern const struct AspellErrorInfo * const aerror_unknown_encoding; extern const struct AspellErrorInfo * const aerror_encoding_not_supported; extern const struct AspellErrorInfo * const aerror_conversion_not_supported; extern const struct AspellErrorInfo * const aerror_pipe; extern const struct AspellErrorInfo * const aerror_cant_create_pipe; extern const struct AspellErrorInfo * const aerror_process_died; extern const struct AspellErrorInfo * const aerror_bad_input; extern const struct AspellErrorInfo * const aerror_invalid_string; extern const struct AspellErrorInfo * const aerror_invalid_word; extern const struct AspellErrorInfo * const aerror_invalid_affix; extern const struct AspellErrorInfo * const aerror_inapplicable_affix; extern const struct AspellErrorInfo * const aerror_unknown_unichar; extern const struct AspellErrorInfo * const aerror_word_list_flags; extern const struct AspellErrorInfo * const aerror_invalid_flag; extern const struct AspellErrorInfo * const aerror_conflicting_flags; extern const struct AspellErrorInfo * const aerror_version_control; extern const struct AspellErrorInfo * const aerror_bad_version_string; extern const struct AspellErrorInfo * const aerror_filter; extern const struct AspellErrorInfo * const aerror_cant_dlopen_file; extern const struct AspellErrorInfo * const aerror_empty_filter; extern const struct AspellErrorInfo * const aerror_no_such_filter; extern const struct AspellErrorInfo * const aerror_confusing_version; extern const struct AspellErrorInfo * const aerror_bad_version; extern const struct AspellErrorInfo * const aerror_identical_option; extern const struct AspellErrorInfo * const aerror_options_only; extern const struct AspellErrorInfo * const aerror_invalid_option_modifier; extern const struct AspellErrorInfo * const aerror_cant_describe_filter; extern const struct AspellErrorInfo * const aerror_filter_mode_file; extern const struct AspellErrorInfo * const aerror_mode_option_name; extern const struct AspellErrorInfo * const aerror_no_filter_to_option; extern const struct AspellErrorInfo * const aerror_bad_mode_key; extern const struct AspellErrorInfo * const aerror_expect_mode_key; extern const struct AspellErrorInfo * const aerror_mode_version_requirement; extern const struct AspellErrorInfo * const aerror_confusing_mode_version; extern const struct AspellErrorInfo * const aerror_bad_mode_version; extern const struct AspellErrorInfo * const aerror_missing_magic_expression; extern const struct AspellErrorInfo * const aerror_empty_file_ext; extern const struct AspellErrorInfo * const aerror_filter_mode_expand; extern const struct AspellErrorInfo * const aerror_unknown_mode; extern const struct AspellErrorInfo * const aerror_mode_extend_expand; extern const struct AspellErrorInfo * const aerror_filter_mode_magic; extern const struct AspellErrorInfo * const aerror_file_magic_pos; extern const struct AspellErrorInfo * const aerror_file_magic_range; extern const struct AspellErrorInfo * const aerror_missing_magic; extern const struct AspellErrorInfo * const aerror_bad_magic; extern const struct AspellErrorInfo * const aerror_expression; extern const struct AspellErrorInfo * const aerror_invalid_expression; /******************************* speller *******************************/ typedef struct AspellSpeller AspellSpeller; struct AspellCanHaveError * new_aspell_speller(struct AspellConfig * config); struct AspellSpeller * to_aspell_speller(struct AspellCanHaveError * obj); void delete_aspell_speller(struct AspellSpeller * ths); unsigned int aspell_speller_error_number(const struct AspellSpeller * ths); const char * aspell_speller_error_message(const struct AspellSpeller * ths); const struct AspellError * aspell_speller_error(const struct AspellSpeller * ths); struct AspellConfig * aspell_speller_config(struct AspellSpeller * ths); /* Returns 0 if it is not in the dictionary, * 1 if it is, or -1 on error. */ int aspell_speller_check(struct AspellSpeller * ths, const char * word, int word_size); /* Add this word to your own personal word list. */ int aspell_speller_add_to_personal(struct AspellSpeller * ths, const char * word, int word_size); /* Add this word to the current spelling session. */ int aspell_speller_add_to_session(struct AspellSpeller * ths, const char * word, int word_size); /* This is your own personal word list file plus * any extra words added during this session to * your own personal word list. */ const struct AspellWordList * aspell_speller_personal_word_list(struct AspellSpeller * ths); /* This is a list of words added to this session * that are not in the main word list or in your * own personal list but are considered valid for * this spelling session. */ const struct AspellWordList * aspell_speller_session_word_list(struct AspellSpeller * ths); /* This is the main list of words used during this * spelling session. */ const struct AspellWordList * aspell_speller_main_word_list(struct AspellSpeller * ths); int aspell_speller_save_all_word_lists(struct AspellSpeller * ths); int aspell_speller_clear_session(struct AspellSpeller * ths); /* Return NULL on error. * The word list returned by suggest is only * valid until the next call to suggest. */ const struct AspellWordList * aspell_speller_suggest(struct AspellSpeller * ths, const char * word, int word_size); int aspell_speller_store_replacement(struct AspellSpeller * ths, const char * mis, int mis_size, const char * cor, int cor_size); /******************************** filter ********************************/ typedef struct AspellFilter AspellFilter; void delete_aspell_filter(struct AspellFilter * ths); unsigned int aspell_filter_error_number(const struct AspellFilter * ths); const char * aspell_filter_error_message(const struct AspellFilter * ths); const struct AspellError * aspell_filter_error(const struct AspellFilter * ths); struct AspellFilter * to_aspell_filter(struct AspellCanHaveError * obj); /*************************** document checker ***************************/ struct AspellToken { unsigned int offset; unsigned int len; }; typedef struct AspellToken AspellToken; typedef struct AspellDocumentChecker AspellDocumentChecker; void delete_aspell_document_checker(struct AspellDocumentChecker * ths); unsigned int aspell_document_checker_error_number(const struct AspellDocumentChecker * ths); const char * aspell_document_checker_error_message(const struct AspellDocumentChecker * ths); const struct AspellError * aspell_document_checker_error(const struct AspellDocumentChecker * ths); /* Creates a new document checker. * The speller class is expected to last until * this class is destroyed. * If config is given it will be used to override * any relevent options set by this speller class. * The config class is not once this function is done. * If filter is given then it will take ownership of * the filter class and use it to do the filtering. * You are expected to free the checker when done. */ struct AspellCanHaveError * new_aspell_document_checker(struct AspellSpeller * speller); struct AspellDocumentChecker * to_aspell_document_checker(struct AspellCanHaveError * obj); /* Reset the internal state of the filter. * Should be called whenever a new document is * being filtered. */ void aspell_document_checker_reset(struct AspellDocumentChecker * ths); /* Process a string. * The string passed in should only be split on * white space characters. Furthermore, between * calls to reset, each string should be passed * in exactly once and in the order they appeared * in the document. Passing in strings out of * order, skipping strings or passing them in * more than once may lead to undefined results. */ void aspell_document_checker_process(struct AspellDocumentChecker * ths, const char * str, int size); /* Returns the next misspelled word in the * processed string. If there are no more * misspelled words, then token.word will be * NULL and token.size will be 0 */ struct AspellToken aspell_document_checker_next_misspelling(struct AspellDocumentChecker * ths); /* Returns the underlying filter class. */ struct AspellFilter * aspell_document_checker_filter(struct AspellDocumentChecker * ths); /****************************** word list ******************************/ typedef struct AspellWordList AspellWordList; int aspell_word_list_empty(const struct AspellWordList * ths); unsigned int aspell_word_list_size(const struct AspellWordList * ths); struct AspellStringEnumeration * aspell_word_list_elements(const struct AspellWordList * ths); /************************** string enumeration **************************/ typedef struct AspellStringEnumeration AspellStringEnumeration; void delete_aspell_string_enumeration(struct AspellStringEnumeration * ths); struct AspellStringEnumeration * aspell_string_enumeration_clone(const struct AspellStringEnumeration * ths); void aspell_string_enumeration_assign(struct AspellStringEnumeration * ths, const struct AspellStringEnumeration * other); int aspell_string_enumeration_at_end(const struct AspellStringEnumeration * ths); const char * aspell_string_enumeration_next(struct AspellStringEnumeration * ths); /********************************* info *********************************/ struct AspellModuleInfo { const char * name; double order_num; const char * lib_dir; struct AspellStringList * dict_dirs; struct AspellStringList * dict_exts; }; typedef struct AspellModuleInfo AspellModuleInfo; struct AspellDictInfo { /* The Name to identify this dictionary by. */ const char * name; /* The language code to identify this dictionary. * A two letter UPPER-CASE ISO 639 language code * and an optional two letter ISO 3166 country * code after a dash or underscore. */ const char * code; /* Any extra information to distinguish this * variety of dictionary from other dictionaries * which may have the same language and size. */ const char * jargon; int size; /* A two char digit code describing the size of * the dictionary: 10=tiny, 20=really small, * 30=small, 40=med-small, 50=med, 60=med-large, * 70=large, 80=huge, 90=insane. Please check * the README in aspell-lang-200?????.tar.bz2 or * see SCOWL (http://wordlist.sourceforge.net) * for an example of how these sizes are used. */ const char * size_str; struct AspellModuleInfo * module; }; typedef struct AspellDictInfo AspellDictInfo; typedef struct AspellModuleInfoList AspellModuleInfoList; struct AspellModuleInfoList * get_aspell_module_info_list(struct AspellConfig * config); int aspell_module_info_list_empty(const struct AspellModuleInfoList * ths); unsigned int aspell_module_info_list_size(const struct AspellModuleInfoList * ths); struct AspellModuleInfoEnumeration * aspell_module_info_list_elements(const struct AspellModuleInfoList * ths); typedef struct AspellDictInfoList AspellDictInfoList; struct AspellDictInfoList * get_aspell_dict_info_list(struct AspellConfig * config); int aspell_dict_info_list_empty(const struct AspellDictInfoList * ths); unsigned int aspell_dict_info_list_size(const struct AspellDictInfoList * ths); struct AspellDictInfoEnumeration * aspell_dict_info_list_elements(const struct AspellDictInfoList * ths); typedef struct AspellModuleInfoEnumeration AspellModuleInfoEnumeration; int aspell_module_info_enumeration_at_end(const struct AspellModuleInfoEnumeration * ths); const struct AspellModuleInfo * aspell_module_info_enumeration_next(struct AspellModuleInfoEnumeration * ths); void delete_aspell_module_info_enumeration(struct AspellModuleInfoEnumeration * ths); struct AspellModuleInfoEnumeration * aspell_module_info_enumeration_clone(const struct AspellModuleInfoEnumeration * ths); void aspell_module_info_enumeration_assign(struct AspellModuleInfoEnumeration * ths, const struct AspellModuleInfoEnumeration * other); typedef struct AspellDictInfoEnumeration AspellDictInfoEnumeration; int aspell_dict_info_enumeration_at_end(const struct AspellDictInfoEnumeration * ths); const struct AspellDictInfo * aspell_dict_info_enumeration_next(struct AspellDictInfoEnumeration * ths); void delete_aspell_dict_info_enumeration(struct AspellDictInfoEnumeration * ths); struct AspellDictInfoEnumeration * aspell_dict_info_enumeration_clone(const struct AspellDictInfoEnumeration * ths); void aspell_dict_info_enumeration_assign(struct AspellDictInfoEnumeration * ths, const struct AspellDictInfoEnumeration * other); /***************************** string list *****************************/ typedef struct AspellStringList AspellStringList; struct AspellStringList * new_aspell_string_list(); int aspell_string_list_empty(const struct AspellStringList * ths); unsigned int aspell_string_list_size(const struct AspellStringList * ths); struct AspellStringEnumeration * aspell_string_list_elements(const struct AspellStringList * ths); int aspell_string_list_add(struct AspellStringList * ths, const char * to_add); int aspell_string_list_remove(struct AspellStringList * ths, const char * to_rem); void aspell_string_list_clear(struct AspellStringList * ths); struct AspellMutableContainer * aspell_string_list_to_mutable_container(struct AspellStringList * ths); void delete_aspell_string_list(struct AspellStringList * ths); struct AspellStringList * aspell_string_list_clone(const struct AspellStringList * ths); void aspell_string_list_assign(struct AspellStringList * ths, const struct AspellStringList * other); /****************************** string map ******************************/ typedef struct AspellStringMap AspellStringMap; struct AspellStringMap * new_aspell_string_map(); int aspell_string_map_add(struct AspellStringMap * ths, const char * to_add); int aspell_string_map_remove(struct AspellStringMap * ths, const char * to_rem); void aspell_string_map_clear(struct AspellStringMap * ths); struct AspellMutableContainer * aspell_string_map_to_mutable_container(struct AspellStringMap * ths); void delete_aspell_string_map(struct AspellStringMap * ths); struct AspellStringMap * aspell_string_map_clone(const struct AspellStringMap * ths); void aspell_string_map_assign(struct AspellStringMap * ths, const struct AspellStringMap * other); int aspell_string_map_empty(const struct AspellStringMap * ths); unsigned int aspell_string_map_size(const struct AspellStringMap * ths); struct AspellStringPairEnumeration * aspell_string_map_elements(const struct AspellStringMap * ths); /* Insert a new element. * Will NOT overwrite an existing entry. * Returns FALSE if the element already exists. */ int aspell_string_map_insert(struct AspellStringMap * ths, const char * key, const char * value); /* Insert a new element. * Will overwrite an existing entry. * Always returns TRUE. */ int aspell_string_map_replace(struct AspellStringMap * ths, const char * key, const char * value); /* Looks up an element and returns the value. * Returns NULL if the element does not exist. * Returns an empty string if the element exists * but has a NULL value. */ const char * aspell_string_map_lookup(const struct AspellStringMap * ths, const char * key); /***************************** string pair *****************************/ struct AspellStringPair { const char * first; const char * second; }; typedef struct AspellStringPair AspellStringPair; /*********************** string pair enumeration ***********************/ typedef struct AspellStringPairEnumeration AspellStringPairEnumeration; int aspell_string_pair_enumeration_at_end(const struct AspellStringPairEnumeration * ths); struct AspellStringPair aspell_string_pair_enumeration_next(struct AspellStringPairEnumeration * ths); void delete_aspell_string_pair_enumeration(struct AspellStringPairEnumeration * ths); struct AspellStringPairEnumeration * aspell_string_pair_enumeration_clone(const struct AspellStringPairEnumeration * ths); void aspell_string_pair_enumeration_assign(struct AspellStringPairEnumeration * ths, const struct AspellStringPairEnumeration * other); /******************************** cache ********************************/ /* Reset the global cache(s) so that cache queries will * create a new object. If existing objects are still in * use they are not deleted. If which is NULL then all * caches will be reset. Current caches are "encode", * "decode", "dictionary", "language", and "keyboard". */ int aspell_reset_cache(const char * which); #ifdef __cplusplus } #endif #endif /* ASPELL_ASPELL__H */ recoll-1.21.5/unac/0000755000175000017500000000000012602163572013314 5ustar dockesdockesrecoll-1.21.5/unac/AUTHORS0000644000175000017500000000003412602163540014354 0ustar dockesdockesLoic Dachary loic@senga.org recoll-1.21.5/unac/unac.cpp0000644000175000017500000246564512602163572014774 0ustar dockesdockes/* * Copyright (C) 2000, 2001, 2002 Loic Dachary * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #ifdef RECOLL_DATADIR #include "autoconfig.h" #else #include "config.h" #endif /* RECOLL */ #endif /* HAVE_CONFIG_H */ #ifdef RECOLL_DATADIR /* Yes, recoll unac is actually c++, lets face modernity, I will not be caught writing another binary search */ #include #include #include #include #include "unordered_defs.h" using std::string; #include "smallut.h" /* Storage for the exception translations. These are chars which should not be translated according to what UnicodeData says, but instead according to some local rule. There will usually be very few of them, but they must be looked up for every translated char. */ STD_UNORDERED_MAP except_trans; static inline bool is_except_char(unsigned short c, string& trans) { STD_UNORDERED_MAP::const_iterator it = except_trans.find(c); if (it == except_trans.end()) return false; trans = it->second; return true; } #endif /* RECOLL_DATADIR */ /* * If configure.in has not defined this symbol, assume const. It * does not harm much: a warning will be issued during compilation. */ #ifndef ICONV_CONST #ifdef RCL_ICONV_INBUF_CONST #define ICONV_CONST const #else #define ICONV_CONST #endif #endif /* ICONV_CONST */ #include #include #include #include #ifdef HAVE_VSNPRINTF #include #include #endif /* HAVE_VSNPRINTF */ #include #include "unac.h" #include "unac_version.h" /* Generated by builder. Do not modify. Start tables */ /* * 00A0 NO-BREAK SPACE * 0020 SPACE * 00A8 DIAERESIS * 0020 SPACE * 00AA FEMININE ORDINAL INDICATOR * 0061 LATIN SMALL LETTER A * 00AF MACRON * 0020 SPACE * 00B2 SUPERSCRIPT TWO * 0032 DIGIT TWO * 00B3 SUPERSCRIPT THREE * 0033 DIGIT THREE * 00B4 ACUTE ACCENT * 0020 SPACE * 00B5 MICRO SIGN * 03BC GREEK SMALL LETTER MU * 00B8 CEDILLA * 0020 SPACE * 00B9 SUPERSCRIPT ONE * 0031 DIGIT ONE * 00BA MASCULINE ORDINAL INDICATOR * 006F LATIN SMALL LETTER O * 00BC VULGAR FRACTION ONE QUARTER * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0034 DIGIT FOUR * 00BD VULGAR FRACTION ONE HALF * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0032 DIGIT TWO * 00BE VULGAR FRACTION THREE QUARTERS * 0033 DIGIT THREE * 2044 FRACTION SLASH * 0034 DIGIT FOUR * 00C0 LATIN CAPITAL LETTER A WITH GRAVE * 0041 LATIN CAPITAL LETTER A * 00C1 LATIN CAPITAL LETTER A WITH ACUTE * 0041 LATIN CAPITAL LETTER A * 00C2 LATIN CAPITAL LETTER A WITH CIRCUMFLEX * 0041 LATIN CAPITAL LETTER A * 00C3 LATIN CAPITAL LETTER A WITH TILDE * 0041 LATIN CAPITAL LETTER A * 00C4 LATIN CAPITAL LETTER A WITH DIAERESIS * 0041 LATIN CAPITAL LETTER A * 00C5 LATIN CAPITAL LETTER A WITH RING ABOVE * 0041 LATIN CAPITAL LETTER A * 00C7 LATIN CAPITAL LETTER C WITH CEDILLA * 0043 LATIN CAPITAL LETTER C * 00C8 LATIN CAPITAL LETTER E WITH GRAVE * 0045 LATIN CAPITAL LETTER E * 00C9 LATIN CAPITAL LETTER E WITH ACUTE * 0045 LATIN CAPITAL LETTER E * 00CA LATIN CAPITAL LETTER E WITH CIRCUMFLEX * 0045 LATIN CAPITAL LETTER E * 00CB LATIN CAPITAL LETTER E WITH DIAERESIS * 0045 LATIN CAPITAL LETTER E * 00CC LATIN CAPITAL LETTER I WITH GRAVE * 0049 LATIN CAPITAL LETTER I * 00CD LATIN CAPITAL LETTER I WITH ACUTE * 0049 LATIN CAPITAL LETTER I * 00CE LATIN CAPITAL LETTER I WITH CIRCUMFLEX * 0049 LATIN CAPITAL LETTER I * 00CF LATIN CAPITAL LETTER I WITH DIAERESIS * 0049 LATIN CAPITAL LETTER I * 00D1 LATIN CAPITAL LETTER N WITH TILDE * 004E LATIN CAPITAL LETTER N * 00D2 LATIN CAPITAL LETTER O WITH GRAVE * 004F LATIN CAPITAL LETTER O * 00D3 LATIN CAPITAL LETTER O WITH ACUTE * 004F LATIN CAPITAL LETTER O * 00D4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX * 004F LATIN CAPITAL LETTER O * 00D5 LATIN CAPITAL LETTER O WITH TILDE * 004F LATIN CAPITAL LETTER O * 00D6 LATIN CAPITAL LETTER O WITH DIAERESIS * 004F LATIN CAPITAL LETTER O * 00D9 LATIN CAPITAL LETTER U WITH GRAVE * 0055 LATIN CAPITAL LETTER U * 00DA LATIN CAPITAL LETTER U WITH ACUTE * 0055 LATIN CAPITAL LETTER U * 00DB LATIN CAPITAL LETTER U WITH CIRCUMFLEX * 0055 LATIN CAPITAL LETTER U * 00DC LATIN CAPITAL LETTER U WITH DIAERESIS * 0055 LATIN CAPITAL LETTER U * 00DD LATIN CAPITAL LETTER Y WITH ACUTE * 0059 LATIN CAPITAL LETTER Y * 00E0 LATIN SMALL LETTER A WITH GRAVE * 0061 LATIN SMALL LETTER A * 00E1 LATIN SMALL LETTER A WITH ACUTE * 0061 LATIN SMALL LETTER A * 00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX * 0061 LATIN SMALL LETTER A * 00E3 LATIN SMALL LETTER A WITH TILDE * 0061 LATIN SMALL LETTER A * 00E4 LATIN SMALL LETTER A WITH DIAERESIS * 0061 LATIN SMALL LETTER A * 00E5 LATIN SMALL LETTER A WITH RING ABOVE * 0061 LATIN SMALL LETTER A * 00E7 LATIN SMALL LETTER C WITH CEDILLA * 0063 LATIN SMALL LETTER C * 00E8 LATIN SMALL LETTER E WITH GRAVE * 0065 LATIN SMALL LETTER E * 00E9 LATIN SMALL LETTER E WITH ACUTE * 0065 LATIN SMALL LETTER E * 00EA LATIN SMALL LETTER E WITH CIRCUMFLEX * 0065 LATIN SMALL LETTER E * 00EB LATIN SMALL LETTER E WITH DIAERESIS * 0065 LATIN SMALL LETTER E * 00EC LATIN SMALL LETTER I WITH GRAVE * 0069 LATIN SMALL LETTER I * 00ED LATIN SMALL LETTER I WITH ACUTE * 0069 LATIN SMALL LETTER I * 00EE LATIN SMALL LETTER I WITH CIRCUMFLEX * 0069 LATIN SMALL LETTER I * 00EF LATIN SMALL LETTER I WITH DIAERESIS * 0069 LATIN SMALL LETTER I * 00F1 LATIN SMALL LETTER N WITH TILDE * 006E LATIN SMALL LETTER N * 00F2 LATIN SMALL LETTER O WITH GRAVE * 006F LATIN SMALL LETTER O * 00F3 LATIN SMALL LETTER O WITH ACUTE * 006F LATIN SMALL LETTER O * 00F4 LATIN SMALL LETTER O WITH CIRCUMFLEX * 006F LATIN SMALL LETTER O * 00F5 LATIN SMALL LETTER O WITH TILDE * 006F LATIN SMALL LETTER O * 00F6 LATIN SMALL LETTER O WITH DIAERESIS * 006F LATIN SMALL LETTER O * 00F9 LATIN SMALL LETTER U WITH GRAVE * 0075 LATIN SMALL LETTER U * 00FA LATIN SMALL LETTER U WITH ACUTE * 0075 LATIN SMALL LETTER U * 00FB LATIN SMALL LETTER U WITH CIRCUMFLEX * 0075 LATIN SMALL LETTER U * 00FC LATIN SMALL LETTER U WITH DIAERESIS * 0075 LATIN SMALL LETTER U * 00FD LATIN SMALL LETTER Y WITH ACUTE * 0079 LATIN SMALL LETTER Y * 00FF LATIN SMALL LETTER Y WITH DIAERESIS * 0079 LATIN SMALL LETTER Y * 0100 LATIN CAPITAL LETTER A WITH MACRON * 0041 LATIN CAPITAL LETTER A * 0101 LATIN SMALL LETTER A WITH MACRON * 0061 LATIN SMALL LETTER A * 0102 LATIN CAPITAL LETTER A WITH BREVE * 0041 LATIN CAPITAL LETTER A * 0103 LATIN SMALL LETTER A WITH BREVE * 0061 LATIN SMALL LETTER A * 0104 LATIN CAPITAL LETTER A WITH OGONEK * 0041 LATIN CAPITAL LETTER A * 0105 LATIN SMALL LETTER A WITH OGONEK * 0061 LATIN SMALL LETTER A * 0106 LATIN CAPITAL LETTER C WITH ACUTE * 0043 LATIN CAPITAL LETTER C * 0107 LATIN SMALL LETTER C WITH ACUTE * 0063 LATIN SMALL LETTER C * 0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX * 0043 LATIN CAPITAL LETTER C * 0109 LATIN SMALL LETTER C WITH CIRCUMFLEX * 0063 LATIN SMALL LETTER C * 010A LATIN CAPITAL LETTER C WITH DOT ABOVE * 0043 LATIN CAPITAL LETTER C * 010B LATIN SMALL LETTER C WITH DOT ABOVE * 0063 LATIN SMALL LETTER C * 010C LATIN CAPITAL LETTER C WITH CARON * 0043 LATIN CAPITAL LETTER C * 010D LATIN SMALL LETTER C WITH CARON * 0063 LATIN SMALL LETTER C * 010E LATIN CAPITAL LETTER D WITH CARON * 0044 LATIN CAPITAL LETTER D * 010F LATIN SMALL LETTER D WITH CARON * 0064 LATIN SMALL LETTER D * 0112 LATIN CAPITAL LETTER E WITH MACRON * 0045 LATIN CAPITAL LETTER E * 0113 LATIN SMALL LETTER E WITH MACRON * 0065 LATIN SMALL LETTER E * 0114 LATIN CAPITAL LETTER E WITH BREVE * 0045 LATIN CAPITAL LETTER E * 0115 LATIN SMALL LETTER E WITH BREVE * 0065 LATIN SMALL LETTER E * 0116 LATIN CAPITAL LETTER E WITH DOT ABOVE * 0045 LATIN CAPITAL LETTER E * 0117 LATIN SMALL LETTER E WITH DOT ABOVE * 0065 LATIN SMALL LETTER E * 0118 LATIN CAPITAL LETTER E WITH OGONEK * 0045 LATIN CAPITAL LETTER E * 0119 LATIN SMALL LETTER E WITH OGONEK * 0065 LATIN SMALL LETTER E * 011A LATIN CAPITAL LETTER E WITH CARON * 0045 LATIN CAPITAL LETTER E * 011B LATIN SMALL LETTER E WITH CARON * 0065 LATIN SMALL LETTER E * 011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX * 0047 LATIN CAPITAL LETTER G * 011D LATIN SMALL LETTER G WITH CIRCUMFLEX * 0067 LATIN SMALL LETTER G * 011E LATIN CAPITAL LETTER G WITH BREVE * 0047 LATIN CAPITAL LETTER G * 011F LATIN SMALL LETTER G WITH BREVE * 0067 LATIN SMALL LETTER G * 0120 LATIN CAPITAL LETTER G WITH DOT ABOVE * 0047 LATIN CAPITAL LETTER G * 0121 LATIN SMALL LETTER G WITH DOT ABOVE * 0067 LATIN SMALL LETTER G * 0122 LATIN CAPITAL LETTER G WITH CEDILLA * 0047 LATIN CAPITAL LETTER G * 0123 LATIN SMALL LETTER G WITH CEDILLA * 0067 LATIN SMALL LETTER G * 0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX * 0048 LATIN CAPITAL LETTER H * 0125 LATIN SMALL LETTER H WITH CIRCUMFLEX * 0068 LATIN SMALL LETTER H * 0128 LATIN CAPITAL LETTER I WITH TILDE * 0049 LATIN CAPITAL LETTER I * 0129 LATIN SMALL LETTER I WITH TILDE * 0069 LATIN SMALL LETTER I * 012A LATIN CAPITAL LETTER I WITH MACRON * 0049 LATIN CAPITAL LETTER I * 012B LATIN SMALL LETTER I WITH MACRON * 0069 LATIN SMALL LETTER I * 012C LATIN CAPITAL LETTER I WITH BREVE * 0049 LATIN CAPITAL LETTER I * 012D LATIN SMALL LETTER I WITH BREVE * 0069 LATIN SMALL LETTER I * 012E LATIN CAPITAL LETTER I WITH OGONEK * 0049 LATIN CAPITAL LETTER I * 012F LATIN SMALL LETTER I WITH OGONEK * 0069 LATIN SMALL LETTER I * 0130 LATIN CAPITAL LETTER I WITH DOT ABOVE * 0049 LATIN CAPITAL LETTER I * 0132 LATIN CAPITAL LIGATURE IJ * 0049 LATIN CAPITAL LETTER I * 004A LATIN CAPITAL LETTER J * 0133 LATIN SMALL LIGATURE IJ * 0069 LATIN SMALL LETTER I * 006A LATIN SMALL LETTER J * 0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX * 004A LATIN CAPITAL LETTER J * 0135 LATIN SMALL LETTER J WITH CIRCUMFLEX * 006A LATIN SMALL LETTER J * 0136 LATIN CAPITAL LETTER K WITH CEDILLA * 004B LATIN CAPITAL LETTER K * 0137 LATIN SMALL LETTER K WITH CEDILLA * 006B LATIN SMALL LETTER K * 0139 LATIN CAPITAL LETTER L WITH ACUTE * 004C LATIN CAPITAL LETTER L * 013A LATIN SMALL LETTER L WITH ACUTE * 006C LATIN SMALL LETTER L * 013B LATIN CAPITAL LETTER L WITH CEDILLA * 004C LATIN CAPITAL LETTER L * 013C LATIN SMALL LETTER L WITH CEDILLA * 006C LATIN SMALL LETTER L * 013D LATIN CAPITAL LETTER L WITH CARON * 004C LATIN CAPITAL LETTER L * 013E LATIN SMALL LETTER L WITH CARON * 006C LATIN SMALL LETTER L * 013F LATIN CAPITAL LETTER L WITH MIDDLE DOT * 004C LATIN CAPITAL LETTER L * 00B7 MIDDLE DOT * 0140 LATIN SMALL LETTER L WITH MIDDLE DOT * 006C LATIN SMALL LETTER L * 00B7 MIDDLE DOT * 0143 LATIN CAPITAL LETTER N WITH ACUTE * 004E LATIN CAPITAL LETTER N * 0144 LATIN SMALL LETTER N WITH ACUTE * 006E LATIN SMALL LETTER N * 0145 LATIN CAPITAL LETTER N WITH CEDILLA * 004E LATIN CAPITAL LETTER N * 0146 LATIN SMALL LETTER N WITH CEDILLA * 006E LATIN SMALL LETTER N * 0147 LATIN CAPITAL LETTER N WITH CARON * 004E LATIN CAPITAL LETTER N * 0148 LATIN SMALL LETTER N WITH CARON * 006E LATIN SMALL LETTER N * 0149 LATIN SMALL LETTER N PRECEDED BY APOSTROPHE * 02BC MODIFIER LETTER APOSTROPHE * 006E LATIN SMALL LETTER N * 014C LATIN CAPITAL LETTER O WITH MACRON * 004F LATIN CAPITAL LETTER O * 014D LATIN SMALL LETTER O WITH MACRON * 006F LATIN SMALL LETTER O * 014E LATIN CAPITAL LETTER O WITH BREVE * 004F LATIN CAPITAL LETTER O * 014F LATIN SMALL LETTER O WITH BREVE * 006F LATIN SMALL LETTER O * 0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE * 004F LATIN CAPITAL LETTER O * 0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE * 006F LATIN SMALL LETTER O * 0154 LATIN CAPITAL LETTER R WITH ACUTE * 0052 LATIN CAPITAL LETTER R * 0155 LATIN SMALL LETTER R WITH ACUTE * 0072 LATIN SMALL LETTER R * 0156 LATIN CAPITAL LETTER R WITH CEDILLA * 0052 LATIN CAPITAL LETTER R * 0157 LATIN SMALL LETTER R WITH CEDILLA * 0072 LATIN SMALL LETTER R * 0158 LATIN CAPITAL LETTER R WITH CARON * 0052 LATIN CAPITAL LETTER R * 0159 LATIN SMALL LETTER R WITH CARON * 0072 LATIN SMALL LETTER R * 015A LATIN CAPITAL LETTER S WITH ACUTE * 0053 LATIN CAPITAL LETTER S * 015B LATIN SMALL LETTER S WITH ACUTE * 0073 LATIN SMALL LETTER S * 015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX * 0053 LATIN CAPITAL LETTER S * 015D LATIN SMALL LETTER S WITH CIRCUMFLEX * 0073 LATIN SMALL LETTER S * 015E LATIN CAPITAL LETTER S WITH CEDILLA * 0053 LATIN CAPITAL LETTER S * 015F LATIN SMALL LETTER S WITH CEDILLA * 0073 LATIN SMALL LETTER S * 0160 LATIN CAPITAL LETTER S WITH CARON * 0053 LATIN CAPITAL LETTER S * 0161 LATIN SMALL LETTER S WITH CARON * 0073 LATIN SMALL LETTER S * 0162 LATIN CAPITAL LETTER T WITH CEDILLA * 0054 LATIN CAPITAL LETTER T * 0163 LATIN SMALL LETTER T WITH CEDILLA * 0074 LATIN SMALL LETTER T * 0164 LATIN CAPITAL LETTER T WITH CARON * 0054 LATIN CAPITAL LETTER T * 0165 LATIN SMALL LETTER T WITH CARON * 0074 LATIN SMALL LETTER T * 0168 LATIN CAPITAL LETTER U WITH TILDE * 0055 LATIN CAPITAL LETTER U * 0169 LATIN SMALL LETTER U WITH TILDE * 0075 LATIN SMALL LETTER U * 016A LATIN CAPITAL LETTER U WITH MACRON * 0055 LATIN CAPITAL LETTER U * 016B LATIN SMALL LETTER U WITH MACRON * 0075 LATIN SMALL LETTER U * 016C LATIN CAPITAL LETTER U WITH BREVE * 0055 LATIN CAPITAL LETTER U * 016D LATIN SMALL LETTER U WITH BREVE * 0075 LATIN SMALL LETTER U * 016E LATIN CAPITAL LETTER U WITH RING ABOVE * 0055 LATIN CAPITAL LETTER U * 016F LATIN SMALL LETTER U WITH RING ABOVE * 0075 LATIN SMALL LETTER U * 0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE * 0055 LATIN CAPITAL LETTER U * 0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE * 0075 LATIN SMALL LETTER U * 0172 LATIN CAPITAL LETTER U WITH OGONEK * 0055 LATIN CAPITAL LETTER U * 0173 LATIN SMALL LETTER U WITH OGONEK * 0075 LATIN SMALL LETTER U * 0174 LATIN CAPITAL LETTER W WITH CIRCUMFLEX * 0057 LATIN CAPITAL LETTER W * 0175 LATIN SMALL LETTER W WITH CIRCUMFLEX * 0077 LATIN SMALL LETTER W * 0176 LATIN CAPITAL LETTER Y WITH CIRCUMFLEX * 0059 LATIN CAPITAL LETTER Y * 0177 LATIN SMALL LETTER Y WITH CIRCUMFLEX * 0079 LATIN SMALL LETTER Y * 0178 LATIN CAPITAL LETTER Y WITH DIAERESIS * 0059 LATIN CAPITAL LETTER Y * 0179 LATIN CAPITAL LETTER Z WITH ACUTE * 005A LATIN CAPITAL LETTER Z * 017A LATIN SMALL LETTER Z WITH ACUTE * 007A LATIN SMALL LETTER Z * 017B LATIN CAPITAL LETTER Z WITH DOT ABOVE * 005A LATIN CAPITAL LETTER Z * 017C LATIN SMALL LETTER Z WITH DOT ABOVE * 007A LATIN SMALL LETTER Z * 017D LATIN CAPITAL LETTER Z WITH CARON * 005A LATIN CAPITAL LETTER Z * 017E LATIN SMALL LETTER Z WITH CARON * 007A LATIN SMALL LETTER Z * 017F LATIN SMALL LETTER LONG S * 0073 LATIN SMALL LETTER S * 01A0 LATIN CAPITAL LETTER O WITH HORN * 004F LATIN CAPITAL LETTER O * 01A1 LATIN SMALL LETTER O WITH HORN * 006F LATIN SMALL LETTER O * 01AF LATIN CAPITAL LETTER U WITH HORN * 0055 LATIN CAPITAL LETTER U * 01B0 LATIN SMALL LETTER U WITH HORN * 0075 LATIN SMALL LETTER U * 01C4 LATIN CAPITAL LETTER DZ WITH CARON * 0044 LATIN CAPITAL LETTER D * 005A LATIN CAPITAL LETTER Z * 01C5 LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON * 0044 LATIN CAPITAL LETTER D * 007A LATIN SMALL LETTER Z * 01C6 LATIN SMALL LETTER DZ WITH CARON * 0064 LATIN SMALL LETTER D * 007A LATIN SMALL LETTER Z * 01C7 LATIN CAPITAL LETTER LJ * 004C LATIN CAPITAL LETTER L * 004A LATIN CAPITAL LETTER J * 01C8 LATIN CAPITAL LETTER L WITH SMALL LETTER J * 004C LATIN CAPITAL LETTER L * 006A LATIN SMALL LETTER J * 01C9 LATIN SMALL LETTER LJ * 006C LATIN SMALL LETTER L * 006A LATIN SMALL LETTER J * 01CA LATIN CAPITAL LETTER NJ * 004E LATIN CAPITAL LETTER N * 004A LATIN CAPITAL LETTER J * 01CB LATIN CAPITAL LETTER N WITH SMALL LETTER J * 004E LATIN CAPITAL LETTER N * 006A LATIN SMALL LETTER J * 01CC LATIN SMALL LETTER NJ * 006E LATIN SMALL LETTER N * 006A LATIN SMALL LETTER J * 01CD LATIN CAPITAL LETTER A WITH CARON * 0041 LATIN CAPITAL LETTER A * 01CE LATIN SMALL LETTER A WITH CARON * 0061 LATIN SMALL LETTER A * 01CF LATIN CAPITAL LETTER I WITH CARON * 0049 LATIN CAPITAL LETTER I * 01D0 LATIN SMALL LETTER I WITH CARON * 0069 LATIN SMALL LETTER I * 01D1 LATIN CAPITAL LETTER O WITH CARON * 004F LATIN CAPITAL LETTER O * 01D2 LATIN SMALL LETTER O WITH CARON * 006F LATIN SMALL LETTER O * 01D3 LATIN CAPITAL LETTER U WITH CARON * 0055 LATIN CAPITAL LETTER U * 01D4 LATIN SMALL LETTER U WITH CARON * 0075 LATIN SMALL LETTER U * 01D5 LATIN CAPITAL LETTER U WITH DIAERESIS AND MACRON * 0055 LATIN CAPITAL LETTER U * 01D6 LATIN SMALL LETTER U WITH DIAERESIS AND MACRON * 0075 LATIN SMALL LETTER U * 01D7 LATIN CAPITAL LETTER U WITH DIAERESIS AND ACUTE * 0055 LATIN CAPITAL LETTER U * 01D8 LATIN SMALL LETTER U WITH DIAERESIS AND ACUTE * 0075 LATIN SMALL LETTER U * 01D9 LATIN CAPITAL LETTER U WITH DIAERESIS AND CARON * 0055 LATIN CAPITAL LETTER U * 01DA LATIN SMALL LETTER U WITH DIAERESIS AND CARON * 0075 LATIN SMALL LETTER U * 01DB LATIN CAPITAL LETTER U WITH DIAERESIS AND GRAVE * 0055 LATIN CAPITAL LETTER U * 01DC LATIN SMALL LETTER U WITH DIAERESIS AND GRAVE * 0075 LATIN SMALL LETTER U * 01DE LATIN CAPITAL LETTER A WITH DIAERESIS AND MACRON * 0041 LATIN CAPITAL LETTER A * 01DF LATIN SMALL LETTER A WITH DIAERESIS AND MACRON * 0061 LATIN SMALL LETTER A * 01E0 LATIN CAPITAL LETTER A WITH DOT ABOVE AND MACRON * 0041 LATIN CAPITAL LETTER A * 01E1 LATIN SMALL LETTER A WITH DOT ABOVE AND MACRON * 0061 LATIN SMALL LETTER A * 01E2 LATIN CAPITAL LETTER AE WITH MACRON * 00C6 LATIN CAPITAL LETTER AE * 01E3 LATIN SMALL LETTER AE WITH MACRON * 00E6 LATIN SMALL LETTER AE * 01E6 LATIN CAPITAL LETTER G WITH CARON * 0047 LATIN CAPITAL LETTER G * 01E7 LATIN SMALL LETTER G WITH CARON * 0067 LATIN SMALL LETTER G * 01E8 LATIN CAPITAL LETTER K WITH CARON * 004B LATIN CAPITAL LETTER K * 01E9 LATIN SMALL LETTER K WITH CARON * 006B LATIN SMALL LETTER K * 01EA LATIN CAPITAL LETTER O WITH OGONEK * 004F LATIN CAPITAL LETTER O * 01EB LATIN SMALL LETTER O WITH OGONEK * 006F LATIN SMALL LETTER O * 01EC LATIN CAPITAL LETTER O WITH OGONEK AND MACRON * 004F LATIN CAPITAL LETTER O * 01ED LATIN SMALL LETTER O WITH OGONEK AND MACRON * 006F LATIN SMALL LETTER O * 01EE LATIN CAPITAL LETTER EZH WITH CARON * 01B7 LATIN CAPITAL LETTER EZH * 01EF LATIN SMALL LETTER EZH WITH CARON * 0292 LATIN SMALL LETTER EZH * 01F0 LATIN SMALL LETTER J WITH CARON * 006A LATIN SMALL LETTER J * 01F1 LATIN CAPITAL LETTER DZ * 0044 LATIN CAPITAL LETTER D * 005A LATIN CAPITAL LETTER Z * 01F2 LATIN CAPITAL LETTER D WITH SMALL LETTER Z * 0044 LATIN CAPITAL LETTER D * 007A LATIN SMALL LETTER Z * 01F3 LATIN SMALL LETTER DZ * 0064 LATIN SMALL LETTER D * 007A LATIN SMALL LETTER Z * 01F4 LATIN CAPITAL LETTER G WITH ACUTE * 0047 LATIN CAPITAL LETTER G * 01F5 LATIN SMALL LETTER G WITH ACUTE * 0067 LATIN SMALL LETTER G * 01F8 LATIN CAPITAL LETTER N WITH GRAVE * 004E LATIN CAPITAL LETTER N * 01F9 LATIN SMALL LETTER N WITH GRAVE * 006E LATIN SMALL LETTER N * 01FA LATIN CAPITAL LETTER A WITH RING ABOVE AND ACUTE * 0041 LATIN CAPITAL LETTER A * 01FB LATIN SMALL LETTER A WITH RING ABOVE AND ACUTE * 0061 LATIN SMALL LETTER A * 01FC LATIN CAPITAL LETTER AE WITH ACUTE * 00C6 LATIN CAPITAL LETTER AE * 01FD LATIN SMALL LETTER AE WITH ACUTE * 00E6 LATIN SMALL LETTER AE * 01FE LATIN CAPITAL LETTER O WITH STROKE AND ACUTE * 00D8 LATIN CAPITAL LETTER O WITH STROKE * 01FF LATIN SMALL LETTER O WITH STROKE AND ACUTE * 00F8 LATIN SMALL LETTER O WITH STROKE * 0200 LATIN CAPITAL LETTER A WITH DOUBLE GRAVE * 0041 LATIN CAPITAL LETTER A * 0201 LATIN SMALL LETTER A WITH DOUBLE GRAVE * 0061 LATIN SMALL LETTER A * 0202 LATIN CAPITAL LETTER A WITH INVERTED BREVE * 0041 LATIN CAPITAL LETTER A * 0203 LATIN SMALL LETTER A WITH INVERTED BREVE * 0061 LATIN SMALL LETTER A * 0204 LATIN CAPITAL LETTER E WITH DOUBLE GRAVE * 0045 LATIN CAPITAL LETTER E * 0205 LATIN SMALL LETTER E WITH DOUBLE GRAVE * 0065 LATIN SMALL LETTER E * 0206 LATIN CAPITAL LETTER E WITH INVERTED BREVE * 0045 LATIN CAPITAL LETTER E * 0207 LATIN SMALL LETTER E WITH INVERTED BREVE * 0065 LATIN SMALL LETTER E * 0208 LATIN CAPITAL LETTER I WITH DOUBLE GRAVE * 0049 LATIN CAPITAL LETTER I * 0209 LATIN SMALL LETTER I WITH DOUBLE GRAVE * 0069 LATIN SMALL LETTER I * 020A LATIN CAPITAL LETTER I WITH INVERTED BREVE * 0049 LATIN CAPITAL LETTER I * 020B LATIN SMALL LETTER I WITH INVERTED BREVE * 0069 LATIN SMALL LETTER I * 020C LATIN CAPITAL LETTER O WITH DOUBLE GRAVE * 004F LATIN CAPITAL LETTER O * 020D LATIN SMALL LETTER O WITH DOUBLE GRAVE * 006F LATIN SMALL LETTER O * 020E LATIN CAPITAL LETTER O WITH INVERTED BREVE * 004F LATIN CAPITAL LETTER O * 020F LATIN SMALL LETTER O WITH INVERTED BREVE * 006F LATIN SMALL LETTER O * 0210 LATIN CAPITAL LETTER R WITH DOUBLE GRAVE * 0052 LATIN CAPITAL LETTER R * 0211 LATIN SMALL LETTER R WITH DOUBLE GRAVE * 0072 LATIN SMALL LETTER R * 0212 LATIN CAPITAL LETTER R WITH INVERTED BREVE * 0052 LATIN CAPITAL LETTER R * 0213 LATIN SMALL LETTER R WITH INVERTED BREVE * 0072 LATIN SMALL LETTER R * 0214 LATIN CAPITAL LETTER U WITH DOUBLE GRAVE * 0055 LATIN CAPITAL LETTER U * 0215 LATIN SMALL LETTER U WITH DOUBLE GRAVE * 0075 LATIN SMALL LETTER U * 0216 LATIN CAPITAL LETTER U WITH INVERTED BREVE * 0055 LATIN CAPITAL LETTER U * 0217 LATIN SMALL LETTER U WITH INVERTED BREVE * 0075 LATIN SMALL LETTER U * 0218 LATIN CAPITAL LETTER S WITH COMMA BELOW * 0053 LATIN CAPITAL LETTER S * 0219 LATIN SMALL LETTER S WITH COMMA BELOW * 0073 LATIN SMALL LETTER S * 021A LATIN CAPITAL LETTER T WITH COMMA BELOW * 0054 LATIN CAPITAL LETTER T * 021B LATIN SMALL LETTER T WITH COMMA BELOW * 0074 LATIN SMALL LETTER T * 021E LATIN CAPITAL LETTER H WITH CARON * 0048 LATIN CAPITAL LETTER H * 021F LATIN SMALL LETTER H WITH CARON * 0068 LATIN SMALL LETTER H * 0226 LATIN CAPITAL LETTER A WITH DOT ABOVE * 0041 LATIN CAPITAL LETTER A * 0227 LATIN SMALL LETTER A WITH DOT ABOVE * 0061 LATIN SMALL LETTER A * 0228 LATIN CAPITAL LETTER E WITH CEDILLA * 0045 LATIN CAPITAL LETTER E * 0229 LATIN SMALL LETTER E WITH CEDILLA * 0065 LATIN SMALL LETTER E * 022A LATIN CAPITAL LETTER O WITH DIAERESIS AND MACRON * 004F LATIN CAPITAL LETTER O * 022B LATIN SMALL LETTER O WITH DIAERESIS AND MACRON * 006F LATIN SMALL LETTER O * 022C LATIN CAPITAL LETTER O WITH TILDE AND MACRON * 004F LATIN CAPITAL LETTER O * 022D LATIN SMALL LETTER O WITH TILDE AND MACRON * 006F LATIN SMALL LETTER O * 022E LATIN CAPITAL LETTER O WITH DOT ABOVE * 004F LATIN CAPITAL LETTER O * 022F LATIN SMALL LETTER O WITH DOT ABOVE * 006F LATIN SMALL LETTER O * 0230 LATIN CAPITAL LETTER O WITH DOT ABOVE AND MACRON * 004F LATIN CAPITAL LETTER O * 0231 LATIN SMALL LETTER O WITH DOT ABOVE AND MACRON * 006F LATIN SMALL LETTER O * 0232 LATIN CAPITAL LETTER Y WITH MACRON * 0059 LATIN CAPITAL LETTER Y * 0233 LATIN SMALL LETTER Y WITH MACRON * 0079 LATIN SMALL LETTER Y * 02B0 MODIFIER LETTER SMALL H * 0068 LATIN SMALL LETTER H * 02B1 MODIFIER LETTER SMALL H WITH HOOK * 0266 LATIN SMALL LETTER H WITH HOOK * 02B2 MODIFIER LETTER SMALL J * 006A LATIN SMALL LETTER J * 02B3 MODIFIER LETTER SMALL R * 0072 LATIN SMALL LETTER R * 02B4 MODIFIER LETTER SMALL TURNED R * 0279 LATIN SMALL LETTER TURNED R * 02B5 MODIFIER LETTER SMALL TURNED R WITH HOOK * 027B LATIN SMALL LETTER TURNED R WITH HOOK * 02B6 MODIFIER LETTER SMALL CAPITAL INVERTED R * 0281 LATIN LETTER SMALL CAPITAL INVERTED R * 02B7 MODIFIER LETTER SMALL W * 0077 LATIN SMALL LETTER W * 02B8 MODIFIER LETTER SMALL Y * 0079 LATIN SMALL LETTER Y * 02D8 BREVE * 0020 SPACE * 02D9 DOT ABOVE * 0020 SPACE * 02DA RING ABOVE * 0020 SPACE * 02DB OGONEK * 0020 SPACE * 02DC SMALL TILDE * 0020 SPACE * 02DD DOUBLE ACUTE ACCENT * 0020 SPACE * 02E0 MODIFIER LETTER SMALL GAMMA * 0263 LATIN SMALL LETTER GAMMA * 02E1 MODIFIER LETTER SMALL L * 006C LATIN SMALL LETTER L * 02E2 MODIFIER LETTER SMALL S * 0073 LATIN SMALL LETTER S * 02E3 MODIFIER LETTER SMALL X * 0078 LATIN SMALL LETTER X * 02E4 MODIFIER LETTER SMALL REVERSED GLOTTAL STOP * 0295 LATIN LETTER PHARYNGEAL VOICED FRICATIVE * 0300 COMBINING GRAVE ACCENT * 0000 * 0301 COMBINING ACUTE ACCENT * 0000 * 0302 COMBINING CIRCUMFLEX ACCENT * 0000 * 0303 COMBINING TILDE * 0000 * 0304 COMBINING MACRON * 0000 * 0305 COMBINING OVERLINE * 0000 * 0306 COMBINING BREVE * 0000 * 0307 COMBINING DOT ABOVE * 0000 * 0308 COMBINING DIAERESIS * 0000 * 0309 COMBINING HOOK ABOVE * 0000 * 030A COMBINING RING ABOVE * 0000 * 030B COMBINING DOUBLE ACUTE ACCENT * 0000 * 030C COMBINING CARON * 0000 * 030D COMBINING VERTICAL LINE ABOVE * 0000 * 030E COMBINING DOUBLE VERTICAL LINE ABOVE * 0000 * 030F COMBINING DOUBLE GRAVE ACCENT * 0000 * 0310 COMBINING CANDRABINDU * 0000 * 0311 COMBINING INVERTED BREVE * 0000 * 0312 COMBINING TURNED COMMA ABOVE * 0000 * 0313 COMBINING COMMA ABOVE * 0000 * 0314 COMBINING REVERSED COMMA ABOVE * 0000 * 0315 COMBINING COMMA ABOVE RIGHT * 0000 * 0316 COMBINING GRAVE ACCENT BELOW * 0000 * 0317 COMBINING ACUTE ACCENT BELOW * 0000 * 0318 COMBINING LEFT TACK BELOW * 0000 * 0319 COMBINING RIGHT TACK BELOW * 0000 * 031A COMBINING LEFT ANGLE ABOVE * 0000 * 031B COMBINING HORN * 0000 * 031C COMBINING LEFT HALF RING BELOW * 0000 * 031D COMBINING UP TACK BELOW * 0000 * 031E COMBINING DOWN TACK BELOW * 0000 * 031F COMBINING PLUS SIGN BELOW * 0000 * 0320 COMBINING MINUS SIGN BELOW * 0000 * 0321 COMBINING PALATALIZED HOOK BELOW * 0000 * 0322 COMBINING RETROFLEX HOOK BELOW * 0000 * 0323 COMBINING DOT BELOW * 0000 * 0324 COMBINING DIAERESIS BELOW * 0000 * 0325 COMBINING RING BELOW * 0000 * 0326 COMBINING COMMA BELOW * 0000 * 0327 COMBINING CEDILLA * 0000 * 0328 COMBINING OGONEK * 0000 * 0329 COMBINING VERTICAL LINE BELOW * 0000 * 032A COMBINING BRIDGE BELOW * 0000 * 032B COMBINING INVERTED DOUBLE ARCH BELOW * 0000 * 032C COMBINING CARON BELOW * 0000 * 032D COMBINING CIRCUMFLEX ACCENT BELOW * 0000 * 032E COMBINING BREVE BELOW * 0000 * 032F COMBINING INVERTED BREVE BELOW * 0000 * 0330 COMBINING TILDE BELOW * 0000 * 0331 COMBINING MACRON BELOW * 0000 * 0332 COMBINING LOW LINE * 0000 * 0333 COMBINING DOUBLE LOW LINE * 0000 * 0334 COMBINING TILDE OVERLAY * 0000 * 0335 COMBINING SHORT STROKE OVERLAY * 0000 * 0336 COMBINING LONG STROKE OVERLAY * 0000 * 0337 COMBINING SHORT SOLIDUS OVERLAY * 0000 * 0338 COMBINING LONG SOLIDUS OVERLAY * 0000 * 0339 COMBINING RIGHT HALF RING BELOW * 0000 * 033A COMBINING INVERTED BRIDGE BELOW * 0000 * 033B COMBINING SQUARE BELOW * 0000 * 033C COMBINING SEAGULL BELOW * 0000 * 033D COMBINING X ABOVE * 0000 * 033E COMBINING VERTICAL TILDE * 0000 * 033F COMBINING DOUBLE OVERLINE * 0000 * 0340 COMBINING GRAVE TONE MARK * 0000 * 0341 COMBINING ACUTE TONE MARK * 0000 * 0342 COMBINING GREEK PERISPOMENI * 0000 * 0343 COMBINING GREEK KORONIS * 0000 * 0344 COMBINING GREEK DIALYTIKA TONOS * 0000 * 0345 COMBINING GREEK YPOGEGRAMMENI * 0000 * 0346 COMBINING BRIDGE ABOVE * 0000 * 0347 COMBINING EQUALS SIGN BELOW * 0000 * 0348 COMBINING DOUBLE VERTICAL LINE BELOW * 0000 * 0349 COMBINING LEFT ANGLE BELOW * 0000 * 034A COMBINING NOT TILDE ABOVE * 0000 * 034B COMBINING HOMOTHETIC ABOVE * 0000 * 034C COMBINING ALMOST EQUAL TO ABOVE * 0000 * 034D COMBINING LEFT RIGHT ARROW BELOW * 0000 * 034E COMBINING UPWARDS ARROW BELOW * 0000 * 034F COMBINING GRAPHEME JOINER * 0000 * 0350 COMBINING RIGHT ARROWHEAD ABOVE * 0000 * 0351 COMBINING LEFT HALF RING ABOVE * 0000 * 0352 COMBINING FERMATA * 0000 * 0353 COMBINING X BELOW * 0000 * 0354 COMBINING LEFT ARROWHEAD BELOW * 0000 * 0355 COMBINING RIGHT ARROWHEAD BELOW * 0000 * 0356 COMBINING RIGHT ARROWHEAD AND UP ARROWHEAD BELOW * 0000 * 0357 COMBINING RIGHT HALF RING ABOVE * 0000 * 0358 COMBINING DOT ABOVE RIGHT * 0000 * 0359 COMBINING ASTERISK BELOW * 0000 * 035A COMBINING DOUBLE RING BELOW * 0000 * 035B COMBINING ZIGZAG ABOVE * 0000 * 035C COMBINING DOUBLE BREVE BELOW * 0000 * 035D COMBINING DOUBLE BREVE * 0000 * 035E COMBINING DOUBLE MACRON * 0000 * 035F COMBINING DOUBLE MACRON BELOW * 0000 * 0360 COMBINING DOUBLE TILDE * 0000 * 0361 COMBINING DOUBLE INVERTED BREVE * 0000 * 0362 COMBINING DOUBLE RIGHTWARDS ARROW BELOW * 0000 * 0363 COMBINING LATIN SMALL LETTER A * 0000 * 0364 COMBINING LATIN SMALL LETTER E * 0000 * 0365 COMBINING LATIN SMALL LETTER I * 0000 * 0366 COMBINING LATIN SMALL LETTER O * 0000 * 0367 COMBINING LATIN SMALL LETTER U * 0000 * 0368 COMBINING LATIN SMALL LETTER C * 0000 * 0369 COMBINING LATIN SMALL LETTER D * 0000 * 036A COMBINING LATIN SMALL LETTER H * 0000 * 036B COMBINING LATIN SMALL LETTER M * 0000 * 036C COMBINING LATIN SMALL LETTER R * 0000 * 036D COMBINING LATIN SMALL LETTER T * 0000 * 036E COMBINING LATIN SMALL LETTER V * 0000 * 036F COMBINING LATIN SMALL LETTER X * 0000 * 0374 GREEK NUMERAL SIGN * 02B9 MODIFIER LETTER PRIME * 037A GREEK YPOGEGRAMMENI * 0020 SPACE * 037E GREEK QUESTION MARK * 003B SEMICOLON * 0384 GREEK TONOS * 0020 SPACE * 0385 GREEK DIALYTIKA TONOS * 0020 SPACE * 0386 GREEK CAPITAL LETTER ALPHA WITH TONOS * 0391 GREEK CAPITAL LETTER ALPHA * 0387 GREEK ANO TELEIA * 00B7 MIDDLE DOT * 0388 GREEK CAPITAL LETTER EPSILON WITH TONOS * 0395 GREEK CAPITAL LETTER EPSILON * 0389 GREEK CAPITAL LETTER ETA WITH TONOS * 0397 GREEK CAPITAL LETTER ETA * 038A GREEK CAPITAL LETTER IOTA WITH TONOS * 0399 GREEK CAPITAL LETTER IOTA * 038C GREEK CAPITAL LETTER OMICRON WITH TONOS * 039F GREEK CAPITAL LETTER OMICRON * 038E GREEK CAPITAL LETTER UPSILON WITH TONOS * 03A5 GREEK CAPITAL LETTER UPSILON * 038F GREEK CAPITAL LETTER OMEGA WITH TONOS * 03A9 GREEK CAPITAL LETTER OMEGA * 0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS * 03B9 GREEK SMALL LETTER IOTA * 03AA GREEK CAPITAL LETTER IOTA WITH DIALYTIKA * 0399 GREEK CAPITAL LETTER IOTA * 03AB GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA * 03A5 GREEK CAPITAL LETTER UPSILON * 03AC GREEK SMALL LETTER ALPHA WITH TONOS * 03B1 GREEK SMALL LETTER ALPHA * 03AD GREEK SMALL LETTER EPSILON WITH TONOS * 03B5 GREEK SMALL LETTER EPSILON * 03AE GREEK SMALL LETTER ETA WITH TONOS * 03B7 GREEK SMALL LETTER ETA * 03AF GREEK SMALL LETTER IOTA WITH TONOS * 03B9 GREEK SMALL LETTER IOTA * 03B0 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS * 03C5 GREEK SMALL LETTER UPSILON * 03CA GREEK SMALL LETTER IOTA WITH DIALYTIKA * 03B9 GREEK SMALL LETTER IOTA * 03CB GREEK SMALL LETTER UPSILON WITH DIALYTIKA * 03C5 GREEK SMALL LETTER UPSILON * 03CC GREEK SMALL LETTER OMICRON WITH TONOS * 03BF GREEK SMALL LETTER OMICRON * 03CD GREEK SMALL LETTER UPSILON WITH TONOS * 03C5 GREEK SMALL LETTER UPSILON * 03CE GREEK SMALL LETTER OMEGA WITH TONOS * 03C9 GREEK SMALL LETTER OMEGA * 03D0 GREEK BETA SYMBOL * 03B2 GREEK SMALL LETTER BETA * 03D1 GREEK THETA SYMBOL * 03B8 GREEK SMALL LETTER THETA * 03D2 GREEK UPSILON WITH HOOK SYMBOL * 03A5 GREEK CAPITAL LETTER UPSILON * 03D3 GREEK UPSILON WITH ACUTE AND HOOK SYMBOL * 03A5 GREEK CAPITAL LETTER UPSILON * 03D4 GREEK UPSILON WITH DIAERESIS AND HOOK SYMBOL * 03A5 GREEK CAPITAL LETTER UPSILON * 03D5 GREEK PHI SYMBOL * 03C6 GREEK SMALL LETTER PHI * 03D6 GREEK PI SYMBOL * 03C0 GREEK SMALL LETTER PI * 03F0 GREEK KAPPA SYMBOL * 03BA GREEK SMALL LETTER KAPPA * 03F1 GREEK RHO SYMBOL * 03C1 GREEK SMALL LETTER RHO * 03F2 GREEK LUNATE SIGMA SYMBOL * 03C2 GREEK SMALL LETTER FINAL SIGMA * 03F4 GREEK CAPITAL THETA SYMBOL * 0398 GREEK CAPITAL LETTER THETA * 03F5 GREEK LUNATE EPSILON SYMBOL * 03B5 GREEK SMALL LETTER EPSILON * 03F9 GREEK CAPITAL LUNATE SIGMA SYMBOL * 03A3 GREEK CAPITAL LETTER SIGMA * 0400 CYRILLIC CAPITAL LETTER IE WITH GRAVE * 0415 CYRILLIC CAPITAL LETTER IE * 0401 CYRILLIC CAPITAL LETTER IO * 0415 CYRILLIC CAPITAL LETTER IE * 0403 CYRILLIC CAPITAL LETTER GJE * 0413 CYRILLIC CAPITAL LETTER GHE * 0407 CYRILLIC CAPITAL LETTER YI * 0406 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I * 040C CYRILLIC CAPITAL LETTER KJE * 041A CYRILLIC CAPITAL LETTER KA * 040D CYRILLIC CAPITAL LETTER I WITH GRAVE * 0418 CYRILLIC CAPITAL LETTER I * 040E CYRILLIC CAPITAL LETTER SHORT U * 0423 CYRILLIC CAPITAL LETTER U * 0419 CYRILLIC CAPITAL LETTER SHORT I * 0418 CYRILLIC CAPITAL LETTER I * 0439 CYRILLIC SMALL LETTER SHORT I * 0438 CYRILLIC SMALL LETTER I * 0450 CYRILLIC SMALL LETTER IE WITH GRAVE * 0435 CYRILLIC SMALL LETTER IE * 0451 CYRILLIC SMALL LETTER IO * 0435 CYRILLIC SMALL LETTER IE * 0453 CYRILLIC SMALL LETTER GJE * 0433 CYRILLIC SMALL LETTER GHE * 0457 CYRILLIC SMALL LETTER YI * 0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I * 045C CYRILLIC SMALL LETTER KJE * 043A CYRILLIC SMALL LETTER KA * 045D CYRILLIC SMALL LETTER I WITH GRAVE * 0438 CYRILLIC SMALL LETTER I * 045E CYRILLIC SMALL LETTER SHORT U * 0443 CYRILLIC SMALL LETTER U * 0476 CYRILLIC CAPITAL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT * 0474 CYRILLIC CAPITAL LETTER IZHITSA * 0477 CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT * 0475 CYRILLIC SMALL LETTER IZHITSA * 0483 COMBINING CYRILLIC TITLO * 0000 * 0484 COMBINING CYRILLIC PALATALIZATION * 0000 * 0485 COMBINING CYRILLIC DASIA PNEUMATA * 0000 * 0486 COMBINING CYRILLIC PSILI PNEUMATA * 0000 * 0487 COMBINING CYRILLIC POKRYTIE * 0000 * 0488 COMBINING CYRILLIC HUNDRED THOUSANDS SIGN * 0000 * 0489 COMBINING CYRILLIC MILLIONS SIGN * 0000 * 04C1 CYRILLIC CAPITAL LETTER ZHE WITH BREVE * 0416 CYRILLIC CAPITAL LETTER ZHE * 04C2 CYRILLIC SMALL LETTER ZHE WITH BREVE * 0436 CYRILLIC SMALL LETTER ZHE * 04D0 CYRILLIC CAPITAL LETTER A WITH BREVE * 0410 CYRILLIC CAPITAL LETTER A * 04D1 CYRILLIC SMALL LETTER A WITH BREVE * 0430 CYRILLIC SMALL LETTER A * 04D2 CYRILLIC CAPITAL LETTER A WITH DIAERESIS * 0410 CYRILLIC CAPITAL LETTER A * 04D3 CYRILLIC SMALL LETTER A WITH DIAERESIS * 0430 CYRILLIC SMALL LETTER A * 04D6 CYRILLIC CAPITAL LETTER IE WITH BREVE * 0415 CYRILLIC CAPITAL LETTER IE * 04D7 CYRILLIC SMALL LETTER IE WITH BREVE * 0435 CYRILLIC SMALL LETTER IE * 04DA CYRILLIC CAPITAL LETTER SCHWA WITH DIAERESIS * 04D8 CYRILLIC CAPITAL LETTER SCHWA * 04DB CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS * 04D9 CYRILLIC SMALL LETTER SCHWA * 04DC CYRILLIC CAPITAL LETTER ZHE WITH DIAERESIS * 0416 CYRILLIC CAPITAL LETTER ZHE * 04DD CYRILLIC SMALL LETTER ZHE WITH DIAERESIS * 0436 CYRILLIC SMALL LETTER ZHE * 04DE CYRILLIC CAPITAL LETTER ZE WITH DIAERESIS * 0417 CYRILLIC CAPITAL LETTER ZE * 04DF CYRILLIC SMALL LETTER ZE WITH DIAERESIS * 0437 CYRILLIC SMALL LETTER ZE * 04E2 CYRILLIC CAPITAL LETTER I WITH MACRON * 0418 CYRILLIC CAPITAL LETTER I * 04E3 CYRILLIC SMALL LETTER I WITH MACRON * 0438 CYRILLIC SMALL LETTER I * 04E4 CYRILLIC CAPITAL LETTER I WITH DIAERESIS * 0418 CYRILLIC CAPITAL LETTER I * 04E5 CYRILLIC SMALL LETTER I WITH DIAERESIS * 0438 CYRILLIC SMALL LETTER I * 04E6 CYRILLIC CAPITAL LETTER O WITH DIAERESIS * 041E CYRILLIC CAPITAL LETTER O * 04E7 CYRILLIC SMALL LETTER O WITH DIAERESIS * 043E CYRILLIC SMALL LETTER O * 04EA CYRILLIC CAPITAL LETTER BARRED O WITH DIAERESIS * 04E8 CYRILLIC CAPITAL LETTER BARRED O * 04EB CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS * 04E9 CYRILLIC SMALL LETTER BARRED O * 04EC CYRILLIC CAPITAL LETTER E WITH DIAERESIS * 042D CYRILLIC CAPITAL LETTER E * 04ED CYRILLIC SMALL LETTER E WITH DIAERESIS * 044D CYRILLIC SMALL LETTER E * 04EE CYRILLIC CAPITAL LETTER U WITH MACRON * 0423 CYRILLIC CAPITAL LETTER U * 04EF CYRILLIC SMALL LETTER U WITH MACRON * 0443 CYRILLIC SMALL LETTER U * 04F0 CYRILLIC CAPITAL LETTER U WITH DIAERESIS * 0423 CYRILLIC CAPITAL LETTER U * 04F1 CYRILLIC SMALL LETTER U WITH DIAERESIS * 0443 CYRILLIC SMALL LETTER U * 04F2 CYRILLIC CAPITAL LETTER U WITH DOUBLE ACUTE * 0423 CYRILLIC CAPITAL LETTER U * 04F3 CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE * 0443 CYRILLIC SMALL LETTER U * 04F4 CYRILLIC CAPITAL LETTER CHE WITH DIAERESIS * 0427 CYRILLIC CAPITAL LETTER CHE * 04F5 CYRILLIC SMALL LETTER CHE WITH DIAERESIS * 0447 CYRILLIC SMALL LETTER CHE * 04F8 CYRILLIC CAPITAL LETTER YERU WITH DIAERESIS * 042B CYRILLIC CAPITAL LETTER YERU * 04F9 CYRILLIC SMALL LETTER YERU WITH DIAERESIS * 044B CYRILLIC SMALL LETTER YERU * 0587 ARMENIAN SMALL LIGATURE ECH YIWN * 0565 ARMENIAN SMALL LETTER ECH * 0582 ARMENIAN SMALL LETTER YIWN * 0591 HEBREW ACCENT ETNAHTA * 0000 * 0592 HEBREW ACCENT SEGOL * 0000 * 0593 HEBREW ACCENT SHALSHELET * 0000 * 0594 HEBREW ACCENT ZAQEF QATAN * 0000 * 0595 HEBREW ACCENT ZAQEF GADOL * 0000 * 0596 HEBREW ACCENT TIPEHA * 0000 * 0597 HEBREW ACCENT REVIA * 0000 * 0598 HEBREW ACCENT ZARQA * 0000 * 0599 HEBREW ACCENT PASHTA * 0000 * 059A HEBREW ACCENT YETIV * 0000 * 059B HEBREW ACCENT TEVIR * 0000 * 059C HEBREW ACCENT GERESH * 0000 * 059D HEBREW ACCENT GERESH MUQDAM * 0000 * 059E HEBREW ACCENT GERSHAYIM * 0000 * 059F HEBREW ACCENT QARNEY PARA * 0000 * 05A0 HEBREW ACCENT TELISHA GEDOLA * 0000 * 05A1 HEBREW ACCENT PAZER * 0000 * 05A2 HEBREW ACCENT ATNAH HAFUKH * 0000 * 05A3 HEBREW ACCENT MUNAH * 0000 * 05A4 HEBREW ACCENT MAHAPAKH * 0000 * 05A5 HEBREW ACCENT MERKHA * 0000 * 05A6 HEBREW ACCENT MERKHA KEFULA * 0000 * 05A7 HEBREW ACCENT DARGA * 0000 * 05A8 HEBREW ACCENT QADMA * 0000 * 05A9 HEBREW ACCENT TELISHA QETANA * 0000 * 05AA HEBREW ACCENT YERAH BEN YOMO * 0000 * 05AB HEBREW ACCENT OLE * 0000 * 05AC HEBREW ACCENT ILUY * 0000 * 05AD HEBREW ACCENT DEHI * 0000 * 05AE HEBREW ACCENT ZINOR * 0000 * 05AF HEBREW MARK MASORA CIRCLE * 0000 * 05B0 HEBREW POINT SHEVA * 0000 * 05B1 HEBREW POINT HATAF SEGOL * 0000 * 05B2 HEBREW POINT HATAF PATAH * 0000 * 05B3 HEBREW POINT HATAF QAMATS * 0000 * 05B4 HEBREW POINT HIRIQ * 0000 * 05B5 HEBREW POINT TSERE * 0000 * 05B6 HEBREW POINT SEGOL * 0000 * 05B7 HEBREW POINT PATAH * 0000 * 05B8 HEBREW POINT QAMATS * 0000 * 05B9 HEBREW POINT HOLAM * 0000 * 05BA HEBREW POINT HOLAM HASER FOR VAV * 0000 * 05BB HEBREW POINT QUBUTS * 0000 * 05BC HEBREW POINT DAGESH OR MAPIQ * 0000 * 05BD HEBREW POINT METEG * 0000 * 05BF HEBREW POINT RAFE * 0000 * 05C1 HEBREW POINT SHIN DOT * 0000 * 05C2 HEBREW POINT SIN DOT * 0000 * 05C4 HEBREW MARK UPPER DOT * 0000 * 05C5 HEBREW MARK LOWER DOT * 0000 * 05C7 HEBREW POINT QAMATS QATAN * 0000 * 0610 ARABIC SIGN SALLALLAHOU ALAYHE WASSALLAM * 0000 * 0611 ARABIC SIGN ALAYHE ASSALLAM * 0000 * 0612 ARABIC SIGN RAHMATULLAH ALAYHE * 0000 * 0613 ARABIC SIGN RADI ALLAHOU ANHU * 0000 * 0614 ARABIC SIGN TAKHALLUS * 0000 * 0615 ARABIC SMALL HIGH TAH * 0000 * 0616 ARABIC SMALL HIGH LIGATURE ALEF WITH LAM WITH YEH * 0000 * 0617 ARABIC SMALL HIGH ZAIN * 0000 * 0618 ARABIC SMALL FATHA * 0000 * 0619 ARABIC SMALL DAMMA * 0000 * 061A ARABIC SMALL KASRA * 0000 * 0622 ARABIC LETTER ALEF WITH MADDA ABOVE * 0627 ARABIC LETTER ALEF * 0623 ARABIC LETTER ALEF WITH HAMZA ABOVE * 0627 ARABIC LETTER ALEF * 0624 ARABIC LETTER WAW WITH HAMZA ABOVE * 0648 ARABIC LETTER WAW * 0625 ARABIC LETTER ALEF WITH HAMZA BELOW * 0627 ARABIC LETTER ALEF * 0626 ARABIC LETTER YEH WITH HAMZA ABOVE * 064A ARABIC LETTER YEH * 064B ARABIC FATHATAN * 0000 * 064C ARABIC DAMMATAN * 0000 * 064D ARABIC KASRATAN * 0000 * 064E ARABIC FATHA * 0000 * 064F ARABIC DAMMA * 0000 * 0650 ARABIC KASRA * 0000 * 0651 ARABIC SHADDA * 0000 * 0652 ARABIC SUKUN * 0000 * 0653 ARABIC MADDAH ABOVE * 0000 * 0654 ARABIC HAMZA ABOVE * 0000 * 0655 ARABIC HAMZA BELOW * 0000 * 0656 ARABIC SUBSCRIPT ALEF * 0000 * 0657 ARABIC INVERTED DAMMA * 0000 * 0658 ARABIC MARK NOON GHUNNA * 0000 * 0659 ARABIC ZWARAKAY * 0000 * 065A ARABIC VOWEL SIGN SMALL V ABOVE * 0000 * 065B ARABIC VOWEL SIGN INVERTED SMALL V ABOVE * 0000 * 065C ARABIC VOWEL SIGN DOT BELOW * 0000 * 065D ARABIC REVERSED DAMMA * 0000 * 065E ARABIC FATHA WITH TWO DOTS * 0000 * 065F ARABIC WAVY HAMZA BELOW * 0000 * 0670 ARABIC LETTER SUPERSCRIPT ALEF * 0000 * 0675 ARABIC LETTER HIGH HAMZA ALEF * 0627 ARABIC LETTER ALEF * 0674 ARABIC LETTER HIGH HAMZA * 0676 ARABIC LETTER HIGH HAMZA WAW * 0648 ARABIC LETTER WAW * 0674 ARABIC LETTER HIGH HAMZA * 0677 ARABIC LETTER U WITH HAMZA ABOVE * 06C7 ARABIC LETTER U * 0674 ARABIC LETTER HIGH HAMZA * 0678 ARABIC LETTER HIGH HAMZA YEH * 064A ARABIC LETTER YEH * 0674 ARABIC LETTER HIGH HAMZA * 06C0 ARABIC LETTER HEH WITH YEH ABOVE * 06D5 ARABIC LETTER AE * 06C2 ARABIC LETTER HEH GOAL WITH HAMZA ABOVE * 06C1 ARABIC LETTER HEH GOAL * 06D3 ARABIC LETTER YEH BARREE WITH HAMZA ABOVE * 06D2 ARABIC LETTER YEH BARREE * 06D6 ARABIC SMALL HIGH LIGATURE SAD WITH LAM WITH ALEF MAKSURA * 0000 * 06D7 ARABIC SMALL HIGH LIGATURE QAF WITH LAM WITH ALEF MAKSURA * 0000 * 06D8 ARABIC SMALL HIGH MEEM INITIAL FORM * 0000 * 06D9 ARABIC SMALL HIGH LAM ALEF * 0000 * 06DA ARABIC SMALL HIGH JEEM * 0000 * 06DB ARABIC SMALL HIGH THREE DOTS * 0000 * 06DC ARABIC SMALL HIGH SEEN * 0000 * 06DF ARABIC SMALL HIGH ROUNDED ZERO * 0000 * 06E0 ARABIC SMALL HIGH UPRIGHT RECTANGULAR ZERO * 0000 * 06E1 ARABIC SMALL HIGH DOTLESS HEAD OF KHAH * 0000 * 06E2 ARABIC SMALL HIGH MEEM ISOLATED FORM * 0000 * 06E3 ARABIC SMALL LOW SEEN * 0000 * 06E4 ARABIC SMALL HIGH MADDA * 0000 * 06E7 ARABIC SMALL HIGH YEH * 0000 * 06E8 ARABIC SMALL HIGH NOON * 0000 * 06EA ARABIC EMPTY CENTRE LOW STOP * 0000 * 06EB ARABIC EMPTY CENTRE HIGH STOP * 0000 * 06EC ARABIC ROUNDED HIGH STOP WITH FILLED CENTRE * 0000 * 06ED ARABIC SMALL LOW MEEM * 0000 * 0711 SYRIAC LETTER SUPERSCRIPT ALAPH * 0000 * 0730 SYRIAC PTHAHA ABOVE * 0000 * 0731 SYRIAC PTHAHA BELOW * 0000 * 0732 SYRIAC PTHAHA DOTTED * 0000 * 0733 SYRIAC ZQAPHA ABOVE * 0000 * 0734 SYRIAC ZQAPHA BELOW * 0000 * 0735 SYRIAC ZQAPHA DOTTED * 0000 * 0736 SYRIAC RBASA ABOVE * 0000 * 0737 SYRIAC RBASA BELOW * 0000 * 0738 SYRIAC DOTTED ZLAMA HORIZONTAL * 0000 * 0739 SYRIAC DOTTED ZLAMA ANGULAR * 0000 * 073A SYRIAC HBASA ABOVE * 0000 * 073B SYRIAC HBASA BELOW * 0000 * 073C SYRIAC HBASA-ESASA DOTTED * 0000 * 073D SYRIAC ESASA ABOVE * 0000 * 073E SYRIAC ESASA BELOW * 0000 * 073F SYRIAC RWAHA * 0000 * 0740 SYRIAC FEMININE DOT * 0000 * 0741 SYRIAC QUSHSHAYA * 0000 * 0742 SYRIAC RUKKAKHA * 0000 * 0743 SYRIAC TWO VERTICAL DOTS ABOVE * 0000 * 0744 SYRIAC TWO VERTICAL DOTS BELOW * 0000 * 0745 SYRIAC THREE DOTS ABOVE * 0000 * 0746 SYRIAC THREE DOTS BELOW * 0000 * 0747 SYRIAC OBLIQUE LINE ABOVE * 0000 * 0748 SYRIAC OBLIQUE LINE BELOW * 0000 * 0749 SYRIAC MUSIC * 0000 * 074A SYRIAC BARREKH * 0000 * 07A6 THAANA ABAFILI * 0000 * 07A7 THAANA AABAAFILI * 0000 * 07A8 THAANA IBIFILI * 0000 * 07A9 THAANA EEBEEFILI * 0000 * 07AA THAANA UBUFILI * 0000 * 07AB THAANA OOBOOFILI * 0000 * 07AC THAANA EBEFILI * 0000 * 07AD THAANA EYBEYFILI * 0000 * 07AE THAANA OBOFILI * 0000 * 07AF THAANA OABOAFILI * 0000 * 07B0 THAANA SUKUN * 0000 * 07EB NKO COMBINING SHORT HIGH TONE * 0000 * 07EC NKO COMBINING SHORT LOW TONE * 0000 * 07ED NKO COMBINING SHORT RISING TONE * 0000 * 07EE NKO COMBINING LONG DESCENDING TONE * 0000 * 07EF NKO COMBINING LONG HIGH TONE * 0000 * 07F0 NKO COMBINING LONG LOW TONE * 0000 * 07F1 NKO COMBINING LONG RISING TONE * 0000 * 07F2 NKO COMBINING NASALIZATION MARK * 0000 * 07F3 NKO COMBINING DOUBLE DOT ABOVE * 0000 * 0816 SAMARITAN MARK IN * 0000 * 0817 SAMARITAN MARK IN-ALAF * 0000 * 0818 SAMARITAN MARK OCCLUSION * 0000 * 0819 SAMARITAN MARK DAGESH * 0000 * 081B SAMARITAN MARK EPENTHETIC YUT * 0000 * 081C SAMARITAN VOWEL SIGN LONG E * 0000 * 081D SAMARITAN VOWEL SIGN E * 0000 * 081E SAMARITAN VOWEL SIGN OVERLONG AA * 0000 * 081F SAMARITAN VOWEL SIGN LONG AA * 0000 * 0820 SAMARITAN VOWEL SIGN AA * 0000 * 0821 SAMARITAN VOWEL SIGN OVERLONG A * 0000 * 0822 SAMARITAN VOWEL SIGN LONG A * 0000 * 0823 SAMARITAN VOWEL SIGN A * 0000 * 0825 SAMARITAN VOWEL SIGN SHORT A * 0000 * 0826 SAMARITAN VOWEL SIGN LONG U * 0000 * 0827 SAMARITAN VOWEL SIGN U * 0000 * 0829 SAMARITAN VOWEL SIGN LONG I * 0000 * 082A SAMARITAN VOWEL SIGN I * 0000 * 082B SAMARITAN VOWEL SIGN O * 0000 * 082C SAMARITAN VOWEL SIGN SUKUN * 0000 * 082D SAMARITAN MARK NEQUDAA * 0000 * 0859 MANDAIC AFFRICATION MARK * 0000 * 085A MANDAIC VOCALIZATION MARK * 0000 * 085B MANDAIC GEMINATION MARK * 0000 * 08E4 ARABIC CURLY FATHA * 0000 * 08E5 ARABIC CURLY DAMMA * 0000 * 08E6 ARABIC CURLY KASRA * 0000 * 08E7 ARABIC CURLY FATHATAN * 0000 * 08E8 ARABIC CURLY DAMMATAN * 0000 * 08E9 ARABIC CURLY KASRATAN * 0000 * 08EA ARABIC TONE ONE DOT ABOVE * 0000 * 08EB ARABIC TONE TWO DOTS ABOVE * 0000 * 08EC ARABIC TONE LOOP ABOVE * 0000 * 08ED ARABIC TONE ONE DOT BELOW * 0000 * 08EE ARABIC TONE TWO DOTS BELOW * 0000 * 08EF ARABIC TONE LOOP BELOW * 0000 * 08F0 ARABIC OPEN FATHATAN * 0000 * 08F1 ARABIC OPEN DAMMATAN * 0000 * 08F2 ARABIC OPEN KASRATAN * 0000 * 08F3 ARABIC SMALL HIGH WAW * 0000 * 08F4 ARABIC FATHA WITH RING * 0000 * 08F5 ARABIC FATHA WITH DOT ABOVE * 0000 * 08F6 ARABIC KASRA WITH DOT BELOW * 0000 * 08F7 ARABIC LEFT ARROWHEAD ABOVE * 0000 * 08F8 ARABIC RIGHT ARROWHEAD ABOVE * 0000 * 08F9 ARABIC LEFT ARROWHEAD BELOW * 0000 * 08FA ARABIC RIGHT ARROWHEAD BELOW * 0000 * 08FB ARABIC DOUBLE RIGHT ARROWHEAD ABOVE * 0000 * 08FC ARABIC DOUBLE RIGHT ARROWHEAD ABOVE WITH DOT * 0000 * 08FD ARABIC RIGHT ARROWHEAD ABOVE WITH DOT * 0000 * 08FE ARABIC DAMMA WITH DOT * 0000 * 0A01 GURMUKHI SIGN ADAK BINDI * 0000 * 0A02 GURMUKHI SIGN BINDI * 0000 * 0A03 GURMUKHI SIGN VISARGA * 0000 * 0A33 GURMUKHI LETTER LLA * 0A32 GURMUKHI LETTER LA * 0A36 GURMUKHI LETTER SHA * 0A38 GURMUKHI LETTER SA * 0A3C GURMUKHI SIGN NUKTA * 0000 * 0A3E GURMUKHI VOWEL SIGN AA * 0000 * 0A3F GURMUKHI VOWEL SIGN I * 0000 * 0A40 GURMUKHI VOWEL SIGN II * 0000 * 0A41 GURMUKHI VOWEL SIGN U * 0000 * 0A42 GURMUKHI VOWEL SIGN UU * 0000 * 0A47 GURMUKHI VOWEL SIGN EE * 0000 * 0A48 GURMUKHI VOWEL SIGN AI * 0000 * 0A4B GURMUKHI VOWEL SIGN OO * 0000 * 0A4C GURMUKHI VOWEL SIGN AU * 0000 * 0A4D GURMUKHI SIGN VIRAMA * 0000 * 0A51 GURMUKHI SIGN UDAAT * 0000 * 0A59 GURMUKHI LETTER KHHA * 0A16 GURMUKHI LETTER KHA * 0A5A GURMUKHI LETTER GHHA * 0A17 GURMUKHI LETTER GA * 0A5B GURMUKHI LETTER ZA * 0A1C GURMUKHI LETTER JA * 0A5E GURMUKHI LETTER FA * 0A2B GURMUKHI LETTER PHA * 0A70 GURMUKHI TIPPI * 0000 * 0A71 GURMUKHI ADDAK * 0000 * 0A75 GURMUKHI SIGN YAKASH * 0000 * 0A81 GUJARATI SIGN CANDRABINDU * 0000 * 0A82 GUJARATI SIGN ANUSVARA * 0000 * 0A83 GUJARATI SIGN VISARGA * 0000 * 0ABC GUJARATI SIGN NUKTA * 0000 * 0ABE GUJARATI VOWEL SIGN AA * 0000 * 0ABF GUJARATI VOWEL SIGN I * 0000 * 0AC0 GUJARATI VOWEL SIGN II * 0000 * 0AC1 GUJARATI VOWEL SIGN U * 0000 * 0AC2 GUJARATI VOWEL SIGN UU * 0000 * 0AC3 GUJARATI VOWEL SIGN VOCALIC R * 0000 * 0AC4 GUJARATI VOWEL SIGN VOCALIC RR * 0000 * 0AC5 GUJARATI VOWEL SIGN CANDRA E * 0000 * 0AC7 GUJARATI VOWEL SIGN E * 0000 * 0AC8 GUJARATI VOWEL SIGN AI * 0000 * 0AC9 GUJARATI VOWEL SIGN CANDRA O * 0000 * 0ACB GUJARATI VOWEL SIGN O * 0000 * 0ACC GUJARATI VOWEL SIGN AU * 0000 * 0ACD GUJARATI SIGN VIRAMA * 0000 * 0AE2 GUJARATI VOWEL SIGN VOCALIC L * 0000 * 0AE3 GUJARATI VOWEL SIGN VOCALIC LL * 0000 * 0B01 ORIYA SIGN CANDRABINDU * 0000 * 0B02 ORIYA SIGN ANUSVARA * 0000 * 0B03 ORIYA SIGN VISARGA * 0000 * 0B3C ORIYA SIGN NUKTA * 0000 * 0B3E ORIYA VOWEL SIGN AA * 0000 * 0B3F ORIYA VOWEL SIGN I * 0000 * 0B40 ORIYA VOWEL SIGN II * 0000 * 0B41 ORIYA VOWEL SIGN U * 0000 * 0B42 ORIYA VOWEL SIGN UU * 0000 * 0B43 ORIYA VOWEL SIGN VOCALIC R * 0000 * 0B44 ORIYA VOWEL SIGN VOCALIC RR * 0000 * 0B47 ORIYA VOWEL SIGN E * 0000 * 0B48 ORIYA VOWEL SIGN AI * 0000 * 0B4B ORIYA VOWEL SIGN O * 0000 * 0B4C ORIYA VOWEL SIGN AU * 0000 * 0B4D ORIYA SIGN VIRAMA * 0000 * 0B56 ORIYA AI LENGTH MARK * 0000 * 0B57 ORIYA AU LENGTH MARK * 0000 * 0B5C ORIYA LETTER RRA * 0B21 ORIYA LETTER DDA * 0B5D ORIYA LETTER RHA * 0B22 ORIYA LETTER DDHA * 0B62 ORIYA VOWEL SIGN VOCALIC L * 0000 * 0B63 ORIYA VOWEL SIGN VOCALIC LL * 0000 * 0B82 TAMIL SIGN ANUSVARA * 0000 * 0B94 TAMIL LETTER AU * 0B92 TAMIL LETTER O * 0BBE TAMIL VOWEL SIGN AA * 0000 * 0BBF TAMIL VOWEL SIGN I * 0000 * 0BC0 TAMIL VOWEL SIGN II * 0000 * 0BC1 TAMIL VOWEL SIGN U * 0000 * 0BC2 TAMIL VOWEL SIGN UU * 0000 * 0BC6 TAMIL VOWEL SIGN E * 0000 * 0BC7 TAMIL VOWEL SIGN EE * 0000 * 0BC8 TAMIL VOWEL SIGN AI * 0000 * 0BCA TAMIL VOWEL SIGN O * 0000 * 0BCB TAMIL VOWEL SIGN OO * 0000 * 0BCC TAMIL VOWEL SIGN AU * 0000 * 0BCD TAMIL SIGN VIRAMA * 0000 * 0BD7 TAMIL AU LENGTH MARK * 0000 * 0C01 TELUGU SIGN CANDRABINDU * 0000 * 0C02 TELUGU SIGN ANUSVARA * 0000 * 0C03 TELUGU SIGN VISARGA * 0000 * 0C3E TELUGU VOWEL SIGN AA * 0000 * 0C3F TELUGU VOWEL SIGN I * 0000 * 0C40 TELUGU VOWEL SIGN II * 0000 * 0C41 TELUGU VOWEL SIGN U * 0000 * 0C42 TELUGU VOWEL SIGN UU * 0000 * 0C43 TELUGU VOWEL SIGN VOCALIC R * 0000 * 0C44 TELUGU VOWEL SIGN VOCALIC RR * 0000 * 0C46 TELUGU VOWEL SIGN E * 0000 * 0C47 TELUGU VOWEL SIGN EE * 0000 * 0C48 TELUGU VOWEL SIGN AI * 0000 * 0C4A TELUGU VOWEL SIGN O * 0000 * 0C4B TELUGU VOWEL SIGN OO * 0000 * 0C4C TELUGU VOWEL SIGN AU * 0000 * 0C4D TELUGU SIGN VIRAMA * 0000 * 0C55 TELUGU LENGTH MARK * 0000 * 0C56 TELUGU AI LENGTH MARK * 0000 * 0C62 TELUGU VOWEL SIGN VOCALIC L * 0000 * 0C63 TELUGU VOWEL SIGN VOCALIC LL * 0000 * 0C82 KANNADA SIGN ANUSVARA * 0000 * 0C83 KANNADA SIGN VISARGA * 0000 * 0CBC KANNADA SIGN NUKTA * 0000 * 0CBE KANNADA VOWEL SIGN AA * 0000 * 0CBF KANNADA VOWEL SIGN I * 0000 * 0CC0 KANNADA VOWEL SIGN II * 0000 * 0CC1 KANNADA VOWEL SIGN U * 0000 * 0CC2 KANNADA VOWEL SIGN UU * 0000 * 0CC3 KANNADA VOWEL SIGN VOCALIC R * 0000 * 0CC4 KANNADA VOWEL SIGN VOCALIC RR * 0000 * 0CC6 KANNADA VOWEL SIGN E * 0000 * 0CC7 KANNADA VOWEL SIGN EE * 0000 * 0CC8 KANNADA VOWEL SIGN AI * 0000 * 0CCA KANNADA VOWEL SIGN O * 0000 * 0CCB KANNADA VOWEL SIGN OO * 0000 * 0CCC KANNADA VOWEL SIGN AU * 0000 * 0CCD KANNADA SIGN VIRAMA * 0000 * 0CD5 KANNADA LENGTH MARK * 0000 * 0CD6 KANNADA AI LENGTH MARK * 0000 * 0CE2 KANNADA VOWEL SIGN VOCALIC L * 0000 * 0CE3 KANNADA VOWEL SIGN VOCALIC LL * 0000 * 0D02 MALAYALAM SIGN ANUSVARA * 0000 * 0D03 MALAYALAM SIGN VISARGA * 0000 * 0D3E MALAYALAM VOWEL SIGN AA * 0000 * 0D3F MALAYALAM VOWEL SIGN I * 0000 * 0D40 MALAYALAM VOWEL SIGN II * 0000 * 0D41 MALAYALAM VOWEL SIGN U * 0000 * 0D42 MALAYALAM VOWEL SIGN UU * 0000 * 0D43 MALAYALAM VOWEL SIGN VOCALIC R * 0000 * 0D44 MALAYALAM VOWEL SIGN VOCALIC RR * 0000 * 0D46 MALAYALAM VOWEL SIGN E * 0000 * 0D47 MALAYALAM VOWEL SIGN EE * 0000 * 0D48 MALAYALAM VOWEL SIGN AI * 0000 * 0D4A MALAYALAM VOWEL SIGN O * 0000 * 0D4B MALAYALAM VOWEL SIGN OO * 0000 * 0D4C MALAYALAM VOWEL SIGN AU * 0000 * 0D4D MALAYALAM SIGN VIRAMA * 0000 * 0D57 MALAYALAM AU LENGTH MARK * 0000 * 0D62 MALAYALAM VOWEL SIGN VOCALIC L * 0000 * 0D63 MALAYALAM VOWEL SIGN VOCALIC LL * 0000 * 0D82 SINHALA SIGN ANUSVARAYA * 0000 * 0D83 SINHALA SIGN VISARGAYA * 0000 * 0DCA SINHALA SIGN AL-LAKUNA * 0000 * 0DCF SINHALA VOWEL SIGN AELA-PILLA * 0000 * 0DD0 SINHALA VOWEL SIGN KETTI AEDA-PILLA * 0000 * 0DD1 SINHALA VOWEL SIGN DIGA AEDA-PILLA * 0000 * 0DD2 SINHALA VOWEL SIGN KETTI IS-PILLA * 0000 * 0DD3 SINHALA VOWEL SIGN DIGA IS-PILLA * 0000 * 0DD4 SINHALA VOWEL SIGN KETTI PAA-PILLA * 0000 * 0DD6 SINHALA VOWEL SIGN DIGA PAA-PILLA * 0000 * 0DD8 SINHALA VOWEL SIGN GAETTA-PILLA * 0000 * 0DD9 SINHALA VOWEL SIGN KOMBUVA * 0000 * 0DDA SINHALA VOWEL SIGN DIGA KOMBUVA * 0000 * 0DDB SINHALA VOWEL SIGN KOMBU DEKA * 0000 * 0DDC SINHALA VOWEL SIGN KOMBUVA HAA AELA-PILLA * 0000 * 0DDD SINHALA VOWEL SIGN KOMBUVA HAA DIGA AELA-PILLA * 0000 * 0DDE SINHALA VOWEL SIGN KOMBUVA HAA GAYANUKITTA * 0000 * 0DDF SINHALA VOWEL SIGN GAYANUKITTA * 0000 * 0DF2 SINHALA VOWEL SIGN DIGA GAETTA-PILLA * 0000 * 0DF3 SINHALA VOWEL SIGN DIGA GAYANUKITTA * 0000 * 0E31 THAI CHARACTER MAI HAN-AKAT * 0000 * 0E33 THAI CHARACTER SARA AM * 0E32 THAI CHARACTER SARA AA * 0E34 THAI CHARACTER SARA I * 0000 * 0E35 THAI CHARACTER SARA II * 0000 * 0E36 THAI CHARACTER SARA UE * 0000 * 0E37 THAI CHARACTER SARA UEE * 0000 * 0E38 THAI CHARACTER SARA U * 0000 * 0E39 THAI CHARACTER SARA UU * 0000 * 0E3A THAI CHARACTER PHINTHU * 0000 * 0E47 THAI CHARACTER MAITAIKHU * 0000 * 0E48 THAI CHARACTER MAI EK * 0000 * 0E49 THAI CHARACTER MAI THO * 0000 * 0E4A THAI CHARACTER MAI TRI * 0000 * 0E4B THAI CHARACTER MAI CHATTAWA * 0000 * 0E4C THAI CHARACTER THANTHAKHAT * 0000 * 0E4D THAI CHARACTER NIKHAHIT * 0000 * 0E4E THAI CHARACTER YAMAKKAN * 0000 * 0EB1 LAO VOWEL SIGN MAI KAN * 0000 * 0EB3 LAO VOWEL SIGN AM * 0EB2 LAO VOWEL SIGN AA * 0EB4 LAO VOWEL SIGN I * 0000 * 0EB5 LAO VOWEL SIGN II * 0000 * 0EB6 LAO VOWEL SIGN Y * 0000 * 0EB7 LAO VOWEL SIGN YY * 0000 * 0EB8 LAO VOWEL SIGN U * 0000 * 0EB9 LAO VOWEL SIGN UU * 0000 * 0EBB LAO VOWEL SIGN MAI KON * 0000 * 0EBC LAO SEMIVOWEL SIGN LO * 0000 * 0EC8 LAO TONE MAI EK * 0000 * 0EC9 LAO TONE MAI THO * 0000 * 0ECA LAO TONE MAI TI * 0000 * 0ECB LAO TONE MAI CATAWA * 0000 * 0ECC LAO CANCELLATION MARK * 0000 * 0ECD LAO NIGGAHITA * 0000 * 0EDC LAO HO NO * 0EAB LAO LETTER HO SUNG * 0E99 LAO LETTER NO * 0EDD LAO HO MO * 0EAB LAO LETTER HO SUNG * 0EA1 LAO LETTER MO * 0F0C TIBETAN MARK DELIMITER TSHEG BSTAR * 0F0B TIBETAN MARK INTERSYLLABIC TSHEG * 0F18 TIBETAN ASTROLOGICAL SIGN -KHYUD PA * 0000 * 0F19 TIBETAN ASTROLOGICAL SIGN SDONG TSHUGS * 0000 * 0F35 TIBETAN MARK NGAS BZUNG NYI ZLA * 0000 * 0F37 TIBETAN MARK NGAS BZUNG SGOR RTAGS * 0000 * 0F39 TIBETAN MARK TSA -PHRU * 0000 * 0F3E TIBETAN SIGN YAR TSHES * 0000 * 0F3F TIBETAN SIGN MAR TSHES * 0000 * 0F43 TIBETAN LETTER GHA * 0F42 TIBETAN LETTER GA * 0F4D TIBETAN LETTER DDHA * 0F4C TIBETAN LETTER DDA * 0F52 TIBETAN LETTER DHA * 0F51 TIBETAN LETTER DA * 0F57 TIBETAN LETTER BHA * 0F56 TIBETAN LETTER BA * 0F5C TIBETAN LETTER DZHA * 0F5B TIBETAN LETTER DZA * 0F69 TIBETAN LETTER KSSA * 0F40 TIBETAN LETTER KA * 0F71 TIBETAN VOWEL SIGN AA * 0000 * 0F72 TIBETAN VOWEL SIGN I * 0000 * 0F73 TIBETAN VOWEL SIGN II * 0000 * 0F74 TIBETAN VOWEL SIGN U * 0000 * 0F75 TIBETAN VOWEL SIGN UU * 0000 * 0F76 TIBETAN VOWEL SIGN VOCALIC R * 0000 * 0F77 TIBETAN VOWEL SIGN VOCALIC RR * 0000 * 0F78 TIBETAN VOWEL SIGN VOCALIC L * 0000 * 0F79 TIBETAN VOWEL SIGN VOCALIC LL * 0000 * 0F7A TIBETAN VOWEL SIGN E * 0000 * 0F7B TIBETAN VOWEL SIGN EE * 0000 * 0F7C TIBETAN VOWEL SIGN O * 0000 * 0F7D TIBETAN VOWEL SIGN OO * 0000 * 0F7E TIBETAN SIGN RJES SU NGA RO * 0000 * 0F7F TIBETAN SIGN RNAM BCAD * 0000 * 0F80 TIBETAN VOWEL SIGN REVERSED I * 0000 * 0F81 TIBETAN VOWEL SIGN REVERSED II * 0000 * 0F82 TIBETAN SIGN NYI ZLA NAA DA * 0000 * 0F83 TIBETAN SIGN SNA LDAN * 0000 * 0F84 TIBETAN MARK HALANTA * 0000 * 0F86 TIBETAN SIGN LCI RTAGS * 0000 * 0F87 TIBETAN SIGN YANG RTAGS * 0000 * 0F8D TIBETAN SUBJOINED SIGN LCE TSA CAN * 0000 * 0F8E TIBETAN SUBJOINED SIGN MCHU CAN * 0000 * 0F8F TIBETAN SUBJOINED SIGN INVERTED MCHU CAN * 0000 * 0F90 TIBETAN SUBJOINED LETTER KA * 0000 * 0F91 TIBETAN SUBJOINED LETTER KHA * 0000 * 0F92 TIBETAN SUBJOINED LETTER GA * 0000 * 0F93 TIBETAN SUBJOINED LETTER GHA * 0000 * 0F94 TIBETAN SUBJOINED LETTER NGA * 0000 * 0F95 TIBETAN SUBJOINED LETTER CA * 0000 * 0F96 TIBETAN SUBJOINED LETTER CHA * 0000 * 0F97 TIBETAN SUBJOINED LETTER JA * 0000 * 0F99 TIBETAN SUBJOINED LETTER NYA * 0000 * 0F9A TIBETAN SUBJOINED LETTER TTA * 0000 * 0F9B TIBETAN SUBJOINED LETTER TTHA * 0000 * 0F9C TIBETAN SUBJOINED LETTER DDA * 0000 * 0F9D TIBETAN SUBJOINED LETTER DDHA * 0000 * 0F9E TIBETAN SUBJOINED LETTER NNA * 0000 * 0F9F TIBETAN SUBJOINED LETTER TA * 0000 * 0FA0 TIBETAN SUBJOINED LETTER THA * 0000 * 0FA1 TIBETAN SUBJOINED LETTER DA * 0000 * 0FA2 TIBETAN SUBJOINED LETTER DHA * 0000 * 0FA3 TIBETAN SUBJOINED LETTER NA * 0000 * 0FA4 TIBETAN SUBJOINED LETTER PA * 0000 * 0FA5 TIBETAN SUBJOINED LETTER PHA * 0000 * 0FA6 TIBETAN SUBJOINED LETTER BA * 0000 * 0FA7 TIBETAN SUBJOINED LETTER BHA * 0000 * 0FA8 TIBETAN SUBJOINED LETTER MA * 0000 * 0FA9 TIBETAN SUBJOINED LETTER TSA * 0000 * 0FAA TIBETAN SUBJOINED LETTER TSHA * 0000 * 0FAB TIBETAN SUBJOINED LETTER DZA * 0000 * 0FAC TIBETAN SUBJOINED LETTER DZHA * 0000 * 0FAD TIBETAN SUBJOINED LETTER WA * 0000 * 0FAE TIBETAN SUBJOINED LETTER ZHA * 0000 * 0FAF TIBETAN SUBJOINED LETTER ZA * 0000 * 0FB0 TIBETAN SUBJOINED LETTER -A * 0000 * 0FB1 TIBETAN SUBJOINED LETTER YA * 0000 * 0FB2 TIBETAN SUBJOINED LETTER RA * 0000 * 0FB3 TIBETAN SUBJOINED LETTER LA * 0000 * 0FB4 TIBETAN SUBJOINED LETTER SHA * 0000 * 0FB5 TIBETAN SUBJOINED LETTER SSA * 0000 * 0FB6 TIBETAN SUBJOINED LETTER SA * 0000 * 0FB7 TIBETAN SUBJOINED LETTER HA * 0000 * 0FB8 TIBETAN SUBJOINED LETTER A * 0000 * 0FB9 TIBETAN SUBJOINED LETTER KSSA * 0000 * 0FBA TIBETAN SUBJOINED LETTER FIXED-FORM WA * 0000 * 0FBB TIBETAN SUBJOINED LETTER FIXED-FORM YA * 0000 * 0FBC TIBETAN SUBJOINED LETTER FIXED-FORM RA * 0000 * 0FC6 TIBETAN SYMBOL PADMA GDAN * 0000 * 1026 MYANMAR LETTER UU * 1025 MYANMAR LETTER U * 102B MYANMAR VOWEL SIGN TALL AA * 0000 * 102C MYANMAR VOWEL SIGN AA * 0000 * 102D MYANMAR VOWEL SIGN I * 0000 * 102E MYANMAR VOWEL SIGN II * 0000 * 102F MYANMAR VOWEL SIGN U * 0000 * 1030 MYANMAR VOWEL SIGN UU * 0000 * 1031 MYANMAR VOWEL SIGN E * 0000 * 1032 MYANMAR VOWEL SIGN AI * 0000 * 1033 MYANMAR VOWEL SIGN MON II * 0000 * 1034 MYANMAR VOWEL SIGN MON O * 0000 * 1035 MYANMAR VOWEL SIGN E ABOVE * 0000 * 1036 MYANMAR SIGN ANUSVARA * 0000 * 1037 MYANMAR SIGN DOT BELOW * 0000 * 1038 MYANMAR SIGN VISARGA * 0000 * 1039 MYANMAR SIGN VIRAMA * 0000 * 103A MYANMAR SIGN ASAT * 0000 * 103B MYANMAR CONSONANT SIGN MEDIAL YA * 0000 * 103C MYANMAR CONSONANT SIGN MEDIAL RA * 0000 * 103D MYANMAR CONSONANT SIGN MEDIAL WA * 0000 * 103E MYANMAR CONSONANT SIGN MEDIAL HA * 0000 * 1056 MYANMAR VOWEL SIGN VOCALIC R * 0000 * 1057 MYANMAR VOWEL SIGN VOCALIC RR * 0000 * 1058 MYANMAR VOWEL SIGN VOCALIC L * 0000 * 1059 MYANMAR VOWEL SIGN VOCALIC LL * 0000 * 105E MYANMAR CONSONANT SIGN MON MEDIAL NA * 0000 * 105F MYANMAR CONSONANT SIGN MON MEDIAL MA * 0000 * 1060 MYANMAR CONSONANT SIGN MON MEDIAL LA * 0000 * 1062 MYANMAR VOWEL SIGN SGAW KAREN EU * 0000 * 1063 MYANMAR TONE MARK SGAW KAREN HATHI * 0000 * 1064 MYANMAR TONE MARK SGAW KAREN KE PHO * 0000 * 1067 MYANMAR VOWEL SIGN WESTERN PWO KAREN EU * 0000 * 1068 MYANMAR VOWEL SIGN WESTERN PWO KAREN UE * 0000 * 1069 MYANMAR SIGN WESTERN PWO KAREN TONE-1 * 0000 * 106A MYANMAR SIGN WESTERN PWO KAREN TONE-2 * 0000 * 106B MYANMAR SIGN WESTERN PWO KAREN TONE-3 * 0000 * 106C MYANMAR SIGN WESTERN PWO KAREN TONE-4 * 0000 * 106D MYANMAR SIGN WESTERN PWO KAREN TONE-5 * 0000 * 1071 MYANMAR VOWEL SIGN GEBA KAREN I * 0000 * 1072 MYANMAR VOWEL SIGN KAYAH OE * 0000 * 1073 MYANMAR VOWEL SIGN KAYAH U * 0000 * 1074 MYANMAR VOWEL SIGN KAYAH EE * 0000 * 1082 MYANMAR CONSONANT SIGN SHAN MEDIAL WA * 0000 * 1083 MYANMAR VOWEL SIGN SHAN AA * 0000 * 1084 MYANMAR VOWEL SIGN SHAN E * 0000 * 1085 MYANMAR VOWEL SIGN SHAN E ABOVE * 0000 * 1086 MYANMAR VOWEL SIGN SHAN FINAL Y * 0000 * 1087 MYANMAR SIGN SHAN TONE-2 * 0000 * 1088 MYANMAR SIGN SHAN TONE-3 * 0000 * 1089 MYANMAR SIGN SHAN TONE-5 * 0000 * 108A MYANMAR SIGN SHAN TONE-6 * 0000 * 108B MYANMAR SIGN SHAN COUNCIL TONE-2 * 0000 * 108C MYANMAR SIGN SHAN COUNCIL TONE-3 * 0000 * 108D MYANMAR SIGN SHAN COUNCIL EMPHATIC TONE * 0000 * 108F MYANMAR SIGN RUMAI PALAUNG TONE-5 * 0000 * 109A MYANMAR SIGN KHAMTI TONE-1 * 0000 * 109B MYANMAR SIGN KHAMTI TONE-3 * 0000 * 109C MYANMAR VOWEL SIGN AITON A * 0000 * 109D MYANMAR VOWEL SIGN AITON AI * 0000 * 10FC MODIFIER LETTER GEORGIAN NAR * 10DC GEORGIAN LETTER NAR * 135D ETHIOPIC COMBINING GEMINATION AND VOWEL LENGTH MARK * 0000 * 135E ETHIOPIC COMBINING VOWEL LENGTH MARK * 0000 * 135F ETHIOPIC COMBINING GEMINATION MARK * 0000 * 1712 TAGALOG VOWEL SIGN I * 0000 * 1713 TAGALOG VOWEL SIGN U * 0000 * 1714 TAGALOG SIGN VIRAMA * 0000 * 1732 HANUNOO VOWEL SIGN I * 0000 * 1733 HANUNOO VOWEL SIGN U * 0000 * 1734 HANUNOO SIGN PAMUDPOD * 0000 * 1752 BUHID VOWEL SIGN I * 0000 * 1753 BUHID VOWEL SIGN U * 0000 * 1772 TAGBANWA VOWEL SIGN I * 0000 * 1773 TAGBANWA VOWEL SIGN U * 0000 * 17B4 KHMER VOWEL INHERENT AQ * 0000 * 17B5 KHMER VOWEL INHERENT AA * 0000 * 17B6 KHMER VOWEL SIGN AA * 0000 * 17B7 KHMER VOWEL SIGN I * 0000 * 17B8 KHMER VOWEL SIGN II * 0000 * 17B9 KHMER VOWEL SIGN Y * 0000 * 17BA KHMER VOWEL SIGN YY * 0000 * 17BB KHMER VOWEL SIGN U * 0000 * 17BC KHMER VOWEL SIGN UU * 0000 * 17BD KHMER VOWEL SIGN UA * 0000 * 17BE KHMER VOWEL SIGN OE * 0000 * 17BF KHMER VOWEL SIGN YA * 0000 * 17C0 KHMER VOWEL SIGN IE * 0000 * 17C1 KHMER VOWEL SIGN E * 0000 * 17C2 KHMER VOWEL SIGN AE * 0000 * 17C3 KHMER VOWEL SIGN AI * 0000 * 17C4 KHMER VOWEL SIGN OO * 0000 * 17C5 KHMER VOWEL SIGN AU * 0000 * 17C6 KHMER SIGN NIKAHIT * 0000 * 17C7 KHMER SIGN REAHMUK * 0000 * 17C8 KHMER SIGN YUUKALEAPINTU * 0000 * 17C9 KHMER SIGN MUUSIKATOAN * 0000 * 17CA KHMER SIGN TRIISAP * 0000 * 17CB KHMER SIGN BANTOC * 0000 * 17CC KHMER SIGN ROBAT * 0000 * 17CD KHMER SIGN TOANDAKHIAT * 0000 * 17CE KHMER SIGN KAKABAT * 0000 * 17CF KHMER SIGN AHSDA * 0000 * 17D0 KHMER SIGN SAMYOK SANNYA * 0000 * 17D1 KHMER SIGN VIRIAM * 0000 * 17D2 KHMER SIGN COENG * 0000 * 17D3 KHMER SIGN BATHAMASAT * 0000 * 17DD KHMER SIGN ATTHACAN * 0000 * 180B MONGOLIAN FREE VARIATION SELECTOR ONE * 0000 * 180C MONGOLIAN FREE VARIATION SELECTOR TWO * 0000 * 180D MONGOLIAN FREE VARIATION SELECTOR THREE * 0000 * 18A9 MONGOLIAN LETTER ALI GALI DAGALGA * 0000 * 1920 LIMBU VOWEL SIGN A * 0000 * 1921 LIMBU VOWEL SIGN I * 0000 * 1922 LIMBU VOWEL SIGN U * 0000 * 1923 LIMBU VOWEL SIGN EE * 0000 * 1924 LIMBU VOWEL SIGN AI * 0000 * 1925 LIMBU VOWEL SIGN OO * 0000 * 1926 LIMBU VOWEL SIGN AU * 0000 * 1927 LIMBU VOWEL SIGN E * 0000 * 1928 LIMBU VOWEL SIGN O * 0000 * 1929 LIMBU SUBJOINED LETTER YA * 0000 * 192A LIMBU SUBJOINED LETTER RA * 0000 * 192B LIMBU SUBJOINED LETTER WA * 0000 * 1930 LIMBU SMALL LETTER KA * 0000 * 1931 LIMBU SMALL LETTER NGA * 0000 * 1932 LIMBU SMALL LETTER ANUSVARA * 0000 * 1933 LIMBU SMALL LETTER TA * 0000 * 1934 LIMBU SMALL LETTER NA * 0000 * 1935 LIMBU SMALL LETTER PA * 0000 * 1936 LIMBU SMALL LETTER MA * 0000 * 1937 LIMBU SMALL LETTER RA * 0000 * 1938 LIMBU SMALL LETTER LA * 0000 * 1939 LIMBU SIGN MUKPHRENG * 0000 * 193A LIMBU SIGN KEMPHRENG * 0000 * 193B LIMBU SIGN SA-I * 0000 * 19B0 NEW TAI LUE VOWEL SIGN VOWEL SHORTENER * 0000 * 19B1 NEW TAI LUE VOWEL SIGN AA * 0000 * 19B2 NEW TAI LUE VOWEL SIGN II * 0000 * 19B3 NEW TAI LUE VOWEL SIGN U * 0000 * 19B4 NEW TAI LUE VOWEL SIGN UU * 0000 * 19B5 NEW TAI LUE VOWEL SIGN E * 0000 * 19B6 NEW TAI LUE VOWEL SIGN AE * 0000 * 19B7 NEW TAI LUE VOWEL SIGN O * 0000 * 19B8 NEW TAI LUE VOWEL SIGN OA * 0000 * 19B9 NEW TAI LUE VOWEL SIGN UE * 0000 * 19BA NEW TAI LUE VOWEL SIGN AY * 0000 * 19BB NEW TAI LUE VOWEL SIGN AAY * 0000 * 19BC NEW TAI LUE VOWEL SIGN UY * 0000 * 19BD NEW TAI LUE VOWEL SIGN OY * 0000 * 19BE NEW TAI LUE VOWEL SIGN OAY * 0000 * 19BF NEW TAI LUE VOWEL SIGN UEY * 0000 * 19C0 NEW TAI LUE VOWEL SIGN IY * 0000 * 19C8 NEW TAI LUE TONE MARK-1 * 0000 * 19C9 NEW TAI LUE TONE MARK-2 * 0000 * 1A17 BUGINESE VOWEL SIGN I * 0000 * 1A18 BUGINESE VOWEL SIGN U * 0000 * 1A19 BUGINESE VOWEL SIGN E * 0000 * 1A1A BUGINESE VOWEL SIGN O * 0000 * 1A1B BUGINESE VOWEL SIGN AE * 0000 * 1A55 TAI THAM CONSONANT SIGN MEDIAL RA * 0000 * 1A56 TAI THAM CONSONANT SIGN MEDIAL LA * 0000 * 1A57 TAI THAM CONSONANT SIGN LA TANG LAI * 0000 * 1A58 TAI THAM SIGN MAI KANG LAI * 0000 * 1A59 TAI THAM CONSONANT SIGN FINAL NGA * 0000 * 1A5A TAI THAM CONSONANT SIGN LOW PA * 0000 * 1A5B TAI THAM CONSONANT SIGN HIGH RATHA OR LOW PA * 0000 * 1A5C TAI THAM CONSONANT SIGN MA * 0000 * 1A5D TAI THAM CONSONANT SIGN BA * 0000 * 1A5E TAI THAM CONSONANT SIGN SA * 0000 * 1A60 TAI THAM SIGN SAKOT * 0000 * 1A61 TAI THAM VOWEL SIGN A * 0000 * 1A62 TAI THAM VOWEL SIGN MAI SAT * 0000 * 1A63 TAI THAM VOWEL SIGN AA * 0000 * 1A64 TAI THAM VOWEL SIGN TALL AA * 0000 * 1A65 TAI THAM VOWEL SIGN I * 0000 * 1A66 TAI THAM VOWEL SIGN II * 0000 * 1A67 TAI THAM VOWEL SIGN UE * 0000 * 1A68 TAI THAM VOWEL SIGN UUE * 0000 * 1A69 TAI THAM VOWEL SIGN U * 0000 * 1A6A TAI THAM VOWEL SIGN UU * 0000 * 1A6B TAI THAM VOWEL SIGN O * 0000 * 1A6C TAI THAM VOWEL SIGN OA BELOW * 0000 * 1A6D TAI THAM VOWEL SIGN OY * 0000 * 1A6E TAI THAM VOWEL SIGN E * 0000 * 1A6F TAI THAM VOWEL SIGN AE * 0000 * 1A70 TAI THAM VOWEL SIGN OO * 0000 * 1A71 TAI THAM VOWEL SIGN AI * 0000 * 1A72 TAI THAM VOWEL SIGN THAM AI * 0000 * 1A73 TAI THAM VOWEL SIGN OA ABOVE * 0000 * 1A74 TAI THAM SIGN MAI KANG * 0000 * 1A75 TAI THAM SIGN TONE-1 * 0000 * 1A76 TAI THAM SIGN TONE-2 * 0000 * 1A77 TAI THAM SIGN KHUEN TONE-3 * 0000 * 1A78 TAI THAM SIGN KHUEN TONE-4 * 0000 * 1A79 TAI THAM SIGN KHUEN TONE-5 * 0000 * 1A7A TAI THAM SIGN RA HAAM * 0000 * 1A7B TAI THAM SIGN MAI SAM * 0000 * 1A7C TAI THAM SIGN KHUEN-LUE KARAN * 0000 * 1A7F TAI THAM COMBINING CRYPTOGRAMMIC DOT * 0000 * 1B00 BALINESE SIGN ULU RICEM * 0000 * 1B01 BALINESE SIGN ULU CANDRA * 0000 * 1B02 BALINESE SIGN CECEK * 0000 * 1B03 BALINESE SIGN SURANG * 0000 * 1B04 BALINESE SIGN BISAH * 0000 * 1B06 BALINESE LETTER AKARA TEDUNG * 1B05 BALINESE LETTER AKARA * 1B08 BALINESE LETTER IKARA TEDUNG * 1B07 BALINESE LETTER IKARA * 1B0A BALINESE LETTER UKARA TEDUNG * 1B09 BALINESE LETTER UKARA * 1B0C BALINESE LETTER RA REPA TEDUNG * 1B0B BALINESE LETTER RA REPA * 1B0E BALINESE LETTER LA LENGA TEDUNG * 1B0D BALINESE LETTER LA LENGA * 1B12 BALINESE LETTER OKARA TEDUNG * 1B11 BALINESE LETTER OKARA * 1B34 BALINESE SIGN REREKAN * 0000 * 1B35 BALINESE VOWEL SIGN TEDUNG * 0000 * 1B36 BALINESE VOWEL SIGN ULU * 0000 * 1B37 BALINESE VOWEL SIGN ULU SARI * 0000 * 1B38 BALINESE VOWEL SIGN SUKU * 0000 * 1B39 BALINESE VOWEL SIGN SUKU ILUT * 0000 * 1B3A BALINESE VOWEL SIGN RA REPA * 0000 * 1B3B BALINESE VOWEL SIGN RA REPA TEDUNG * 0000 * 1B3C BALINESE VOWEL SIGN LA LENGA * 0000 * 1B3D BALINESE VOWEL SIGN LA LENGA TEDUNG * 0000 * 1B3E BALINESE VOWEL SIGN TALING * 0000 * 1B3F BALINESE VOWEL SIGN TALING REPA * 0000 * 1B40 BALINESE VOWEL SIGN TALING TEDUNG * 0000 * 1B41 BALINESE VOWEL SIGN TALING REPA TEDUNG * 0000 * 1B42 BALINESE VOWEL SIGN PEPET * 0000 * 1B43 BALINESE VOWEL SIGN PEPET TEDUNG * 0000 * 1B44 BALINESE ADEG ADEG * 0000 * 1B6B BALINESE MUSICAL SYMBOL COMBINING TEGEH * 0000 * 1B6C BALINESE MUSICAL SYMBOL COMBINING ENDEP * 0000 * 1B6D BALINESE MUSICAL SYMBOL COMBINING KEMPUL * 0000 * 1B6E BALINESE MUSICAL SYMBOL COMBINING KEMPLI * 0000 * 1B6F BALINESE MUSICAL SYMBOL COMBINING JEGOGAN * 0000 * 1B70 BALINESE MUSICAL SYMBOL COMBINING KEMPUL WITH JEGOGAN * 0000 * 1B71 BALINESE MUSICAL SYMBOL COMBINING KEMPLI WITH JEGOGAN * 0000 * 1B72 BALINESE MUSICAL SYMBOL COMBINING BENDE * 0000 * 1B73 BALINESE MUSICAL SYMBOL COMBINING GONG * 0000 * 1B80 SUNDANESE SIGN PANYECEK * 0000 * 1B81 SUNDANESE SIGN PANGLAYAR * 0000 * 1B82 SUNDANESE SIGN PANGWISAD * 0000 * 1BA1 SUNDANESE CONSONANT SIGN PAMINGKAL * 0000 * 1BA2 SUNDANESE CONSONANT SIGN PANYAKRA * 0000 * 1BA3 SUNDANESE CONSONANT SIGN PANYIKU * 0000 * 1BA4 SUNDANESE VOWEL SIGN PANGHULU * 0000 * 1BA5 SUNDANESE VOWEL SIGN PANYUKU * 0000 * 1BA6 SUNDANESE VOWEL SIGN PANAELAENG * 0000 * 1BA7 SUNDANESE VOWEL SIGN PANOLONG * 0000 * 1BA8 SUNDANESE VOWEL SIGN PAMEPET * 0000 * 1BA9 SUNDANESE VOWEL SIGN PANEULEUNG * 0000 * 1BAA SUNDANESE SIGN PAMAAEH * 0000 * 1BAB SUNDANESE SIGN VIRAMA * 0000 * 1BAC SUNDANESE CONSONANT SIGN PASANGAN MA * 0000 * 1BAD SUNDANESE CONSONANT SIGN PASANGAN WA * 0000 * 1BE6 BATAK SIGN TOMPI * 0000 * 1BE7 BATAK VOWEL SIGN E * 0000 * 1BE8 BATAK VOWEL SIGN PAKPAK E * 0000 * 1BE9 BATAK VOWEL SIGN EE * 0000 * 1BEA BATAK VOWEL SIGN I * 0000 * 1BEB BATAK VOWEL SIGN KARO I * 0000 * 1BEC BATAK VOWEL SIGN O * 0000 * 1BED BATAK VOWEL SIGN KARO O * 0000 * 1BEE BATAK VOWEL SIGN U * 0000 * 1BEF BATAK VOWEL SIGN U FOR SIMALUNGUN SA * 0000 * 1BF0 BATAK CONSONANT SIGN NG * 0000 * 1BF1 BATAK CONSONANT SIGN H * 0000 * 1BF2 BATAK PANGOLAT * 0000 * 1BF3 BATAK PANONGONAN * 0000 * 1C24 LEPCHA SUBJOINED LETTER YA * 0000 * 1C25 LEPCHA SUBJOINED LETTER RA * 0000 * 1C26 LEPCHA VOWEL SIGN AA * 0000 * 1C27 LEPCHA VOWEL SIGN I * 0000 * 1C28 LEPCHA VOWEL SIGN O * 0000 * 1C29 LEPCHA VOWEL SIGN OO * 0000 * 1C2A LEPCHA VOWEL SIGN U * 0000 * 1C2B LEPCHA VOWEL SIGN UU * 0000 * 1C2C LEPCHA VOWEL SIGN E * 0000 * 1C2D LEPCHA CONSONANT SIGN K * 0000 * 1C2E LEPCHA CONSONANT SIGN M * 0000 * 1C2F LEPCHA CONSONANT SIGN L * 0000 * 1C30 LEPCHA CONSONANT SIGN N * 0000 * 1C31 LEPCHA CONSONANT SIGN P * 0000 * 1C32 LEPCHA CONSONANT SIGN R * 0000 * 1C33 LEPCHA CONSONANT SIGN T * 0000 * 1C34 LEPCHA CONSONANT SIGN NYIN-DO * 0000 * 1C35 LEPCHA CONSONANT SIGN KANG * 0000 * 1C36 LEPCHA SIGN RAN * 0000 * 1C37 LEPCHA SIGN NUKTA * 0000 * 1CD0 VEDIC TONE KARSHANA * 0000 * 1CD1 VEDIC TONE SHARA * 0000 * 1CD2 VEDIC TONE PRENKHA * 0000 * 1CD4 VEDIC SIGN YAJURVEDIC MIDLINE SVARITA * 0000 * 1CD5 VEDIC TONE YAJURVEDIC AGGRAVATED INDEPENDENT SVARITA * 0000 * 1CD6 VEDIC TONE YAJURVEDIC INDEPENDENT SVARITA * 0000 * 1CD7 VEDIC TONE YAJURVEDIC KATHAKA INDEPENDENT SVARITA * 0000 * 1CD8 VEDIC TONE CANDRA BELOW * 0000 * 1CD9 VEDIC TONE YAJURVEDIC KATHAKA INDEPENDENT SVARITA SCHROEDER * 0000 * 1CDA VEDIC TONE DOUBLE SVARITA * 0000 * 1CDB VEDIC TONE TRIPLE SVARITA * 0000 * 1CDC VEDIC TONE KATHAKA ANUDATTA * 0000 * 1CDD VEDIC TONE DOT BELOW * 0000 * 1CDE VEDIC TONE TWO DOTS BELOW * 0000 * 1CDF VEDIC TONE THREE DOTS BELOW * 0000 * 1CE0 VEDIC TONE RIGVEDIC KASHMIRI INDEPENDENT SVARITA * 0000 * 1CE1 VEDIC TONE ATHARVAVEDIC INDEPENDENT SVARITA * 0000 * 1CE2 VEDIC SIGN VISARGA SVARITA * 0000 * 1CE3 VEDIC SIGN VISARGA UDATTA * 0000 * 1CE4 VEDIC SIGN REVERSED VISARGA UDATTA * 0000 * 1CE5 VEDIC SIGN VISARGA ANUDATTA * 0000 * 1CE6 VEDIC SIGN REVERSED VISARGA ANUDATTA * 0000 * 1CE7 VEDIC SIGN VISARGA UDATTA WITH TAIL * 0000 * 1CE8 VEDIC SIGN VISARGA ANUDATTA WITH TAIL * 0000 * 1CED VEDIC SIGN TIRYAK * 0000 * 1CF2 VEDIC SIGN ARDHAVISARGA * 0000 * 1CF3 VEDIC SIGN ROTATED ARDHAVISARGA * 0000 * 1CF4 VEDIC TONE CANDRA ABOVE * 0000 * 1D2C MODIFIER LETTER CAPITAL A * 0041 LATIN CAPITAL LETTER A * 1D2D MODIFIER LETTER CAPITAL AE * 00C6 LATIN CAPITAL LETTER AE * 1D2E MODIFIER LETTER CAPITAL B * 0042 LATIN CAPITAL LETTER B * 1D30 MODIFIER LETTER CAPITAL D * 0044 LATIN CAPITAL LETTER D * 1D31 MODIFIER LETTER CAPITAL E * 0045 LATIN CAPITAL LETTER E * 1D32 MODIFIER LETTER CAPITAL REVERSED E * 018E LATIN CAPITAL LETTER REVERSED E * 1D33 MODIFIER LETTER CAPITAL G * 0047 LATIN CAPITAL LETTER G * 1D34 MODIFIER LETTER CAPITAL H * 0048 LATIN CAPITAL LETTER H * 1D35 MODIFIER LETTER CAPITAL I * 0049 LATIN CAPITAL LETTER I * 1D36 MODIFIER LETTER CAPITAL J * 004A LATIN CAPITAL LETTER J * 1D37 MODIFIER LETTER CAPITAL K * 004B LATIN CAPITAL LETTER K * 1D38 MODIFIER LETTER CAPITAL L * 004C LATIN CAPITAL LETTER L * 1D39 MODIFIER LETTER CAPITAL M * 004D LATIN CAPITAL LETTER M * 1D3A MODIFIER LETTER CAPITAL N * 004E LATIN CAPITAL LETTER N * 1D3C MODIFIER LETTER CAPITAL O * 004F LATIN CAPITAL LETTER O * 1D3D MODIFIER LETTER CAPITAL OU * 0222 LATIN CAPITAL LETTER OU * 1D3E MODIFIER LETTER CAPITAL P * 0050 LATIN CAPITAL LETTER P * 1D3F MODIFIER LETTER CAPITAL R * 0052 LATIN CAPITAL LETTER R * 1D40 MODIFIER LETTER CAPITAL T * 0054 LATIN CAPITAL LETTER T * 1D41 MODIFIER LETTER CAPITAL U * 0055 LATIN CAPITAL LETTER U * 1D42 MODIFIER LETTER CAPITAL W * 0057 LATIN CAPITAL LETTER W * 1D43 MODIFIER LETTER SMALL A * 0061 LATIN SMALL LETTER A * 1D44 MODIFIER LETTER SMALL TURNED A * 0250 LATIN SMALL LETTER TURNED A * 1D45 MODIFIER LETTER SMALL ALPHA * 0251 LATIN SMALL LETTER ALPHA * 1D46 MODIFIER LETTER SMALL TURNED AE * 1D02 LATIN SMALL LETTER TURNED AE * 1D47 MODIFIER LETTER SMALL B * 0062 LATIN SMALL LETTER B * 1D48 MODIFIER LETTER SMALL D * 0064 LATIN SMALL LETTER D * 1D49 MODIFIER LETTER SMALL E * 0065 LATIN SMALL LETTER E * 1D4A MODIFIER LETTER SMALL SCHWA * 0259 LATIN SMALL LETTER SCHWA * 1D4B MODIFIER LETTER SMALL OPEN E * 025B LATIN SMALL LETTER OPEN E * 1D4C MODIFIER LETTER SMALL TURNED OPEN E * 025C LATIN SMALL LETTER REVERSED OPEN E * 1D4D MODIFIER LETTER SMALL G * 0067 LATIN SMALL LETTER G * 1D4F MODIFIER LETTER SMALL K * 006B LATIN SMALL LETTER K * 1D50 MODIFIER LETTER SMALL M * 006D LATIN SMALL LETTER M * 1D51 MODIFIER LETTER SMALL ENG * 014B LATIN SMALL LETTER ENG * 1D52 MODIFIER LETTER SMALL O * 006F LATIN SMALL LETTER O * 1D53 MODIFIER LETTER SMALL OPEN O * 0254 LATIN SMALL LETTER OPEN O * 1D54 MODIFIER LETTER SMALL TOP HALF O * 1D16 LATIN SMALL LETTER TOP HALF O * 1D55 MODIFIER LETTER SMALL BOTTOM HALF O * 1D17 LATIN SMALL LETTER BOTTOM HALF O * 1D56 MODIFIER LETTER SMALL P * 0070 LATIN SMALL LETTER P * 1D57 MODIFIER LETTER SMALL T * 0074 LATIN SMALL LETTER T * 1D58 MODIFIER LETTER SMALL U * 0075 LATIN SMALL LETTER U * 1D59 MODIFIER LETTER SMALL SIDEWAYS U * 1D1D LATIN SMALL LETTER SIDEWAYS U * 1D5A MODIFIER LETTER SMALL TURNED M * 026F LATIN SMALL LETTER TURNED M * 1D5B MODIFIER LETTER SMALL V * 0076 LATIN SMALL LETTER V * 1D5C MODIFIER LETTER SMALL AIN * 1D25 LATIN LETTER AIN * 1D5D MODIFIER LETTER SMALL BETA * 03B2 GREEK SMALL LETTER BETA * 1D5E MODIFIER LETTER SMALL GREEK GAMMA * 03B3 GREEK SMALL LETTER GAMMA * 1D5F MODIFIER LETTER SMALL DELTA * 03B4 GREEK SMALL LETTER DELTA * 1D60 MODIFIER LETTER SMALL GREEK PHI * 03C6 GREEK SMALL LETTER PHI * 1D61 MODIFIER LETTER SMALL CHI * 03C7 GREEK SMALL LETTER CHI * 1D62 LATIN SUBSCRIPT SMALL LETTER I * 0069 LATIN SMALL LETTER I * 1D63 LATIN SUBSCRIPT SMALL LETTER R * 0072 LATIN SMALL LETTER R * 1D64 LATIN SUBSCRIPT SMALL LETTER U * 0075 LATIN SMALL LETTER U * 1D65 LATIN SUBSCRIPT SMALL LETTER V * 0076 LATIN SMALL LETTER V * 1D66 GREEK SUBSCRIPT SMALL LETTER BETA * 03B2 GREEK SMALL LETTER BETA * 1D67 GREEK SUBSCRIPT SMALL LETTER GAMMA * 03B3 GREEK SMALL LETTER GAMMA * 1D68 GREEK SUBSCRIPT SMALL LETTER RHO * 03C1 GREEK SMALL LETTER RHO * 1D69 GREEK SUBSCRIPT SMALL LETTER PHI * 03C6 GREEK SMALL LETTER PHI * 1D6A GREEK SUBSCRIPT SMALL LETTER CHI * 03C7 GREEK SMALL LETTER CHI * 1D78 MODIFIER LETTER CYRILLIC EN * 043D CYRILLIC SMALL LETTER EN * 1D9B MODIFIER LETTER SMALL TURNED ALPHA * 0252 LATIN SMALL LETTER TURNED ALPHA * 1D9C MODIFIER LETTER SMALL C * 0063 LATIN SMALL LETTER C * 1D9D MODIFIER LETTER SMALL C WITH CURL * 0255 LATIN SMALL LETTER C WITH CURL * 1D9E MODIFIER LETTER SMALL ETH * 00F0 LATIN SMALL LETTER ETH * 1D9F MODIFIER LETTER SMALL REVERSED OPEN E * 025C LATIN SMALL LETTER REVERSED OPEN E * 1DA0 MODIFIER LETTER SMALL F * 0066 LATIN SMALL LETTER F * 1DA1 MODIFIER LETTER SMALL DOTLESS J WITH STROKE * 025F LATIN SMALL LETTER DOTLESS J WITH STROKE * 1DA2 MODIFIER LETTER SMALL SCRIPT G * 0261 LATIN SMALL LETTER SCRIPT G * 1DA3 MODIFIER LETTER SMALL TURNED H * 0265 LATIN SMALL LETTER TURNED H * 1DA4 MODIFIER LETTER SMALL I WITH STROKE * 0268 LATIN SMALL LETTER I WITH STROKE * 1DA5 MODIFIER LETTER SMALL IOTA * 0269 LATIN SMALL LETTER IOTA * 1DA6 MODIFIER LETTER SMALL CAPITAL I * 026A LATIN LETTER SMALL CAPITAL I * 1DA7 MODIFIER LETTER SMALL CAPITAL I WITH STROKE * 1D7B LATIN SMALL CAPITAL LETTER I WITH STROKE * 1DA8 MODIFIER LETTER SMALL J WITH CROSSED-TAIL * 029D LATIN SMALL LETTER J WITH CROSSED-TAIL * 1DA9 MODIFIER LETTER SMALL L WITH RETROFLEX HOOK * 026D LATIN SMALL LETTER L WITH RETROFLEX HOOK * 1DAA MODIFIER LETTER SMALL L WITH PALATAL HOOK * 1D85 LATIN SMALL LETTER L WITH PALATAL HOOK * 1DAB MODIFIER LETTER SMALL CAPITAL L * 029F LATIN LETTER SMALL CAPITAL L * 1DAC MODIFIER LETTER SMALL M WITH HOOK * 0271 LATIN SMALL LETTER M WITH HOOK * 1DAD MODIFIER LETTER SMALL TURNED M WITH LONG LEG * 0270 LATIN SMALL LETTER TURNED M WITH LONG LEG * 1DAE MODIFIER LETTER SMALL N WITH LEFT HOOK * 0272 LATIN SMALL LETTER N WITH LEFT HOOK * 1DAF MODIFIER LETTER SMALL N WITH RETROFLEX HOOK * 0273 LATIN SMALL LETTER N WITH RETROFLEX HOOK * 1DB0 MODIFIER LETTER SMALL CAPITAL N * 0274 LATIN LETTER SMALL CAPITAL N * 1DB1 MODIFIER LETTER SMALL BARRED O * 0275 LATIN SMALL LETTER BARRED O * 1DB2 MODIFIER LETTER SMALL PHI * 0278 LATIN SMALL LETTER PHI * 1DB3 MODIFIER LETTER SMALL S WITH HOOK * 0282 LATIN SMALL LETTER S WITH HOOK * 1DB4 MODIFIER LETTER SMALL ESH * 0283 LATIN SMALL LETTER ESH * 1DB5 MODIFIER LETTER SMALL T WITH PALATAL HOOK * 01AB LATIN SMALL LETTER T WITH PALATAL HOOK * 1DB6 MODIFIER LETTER SMALL U BAR * 0289 LATIN SMALL LETTER U BAR * 1DB7 MODIFIER LETTER SMALL UPSILON * 028A LATIN SMALL LETTER UPSILON * 1DB8 MODIFIER LETTER SMALL CAPITAL U * 1D1C LATIN LETTER SMALL CAPITAL U * 1DB9 MODIFIER LETTER SMALL V WITH HOOK * 028B LATIN SMALL LETTER V WITH HOOK * 1DBA MODIFIER LETTER SMALL TURNED V * 028C LATIN SMALL LETTER TURNED V * 1DBB MODIFIER LETTER SMALL Z * 007A LATIN SMALL LETTER Z * 1DBC MODIFIER LETTER SMALL Z WITH RETROFLEX HOOK * 0290 LATIN SMALL LETTER Z WITH RETROFLEX HOOK * 1DBD MODIFIER LETTER SMALL Z WITH CURL * 0291 LATIN SMALL LETTER Z WITH CURL * 1DBE MODIFIER LETTER SMALL EZH * 0292 LATIN SMALL LETTER EZH * 1DBF MODIFIER LETTER SMALL THETA * 03B8 GREEK SMALL LETTER THETA * 1DC0 COMBINING DOTTED GRAVE ACCENT * 0000 * 1DC1 COMBINING DOTTED ACUTE ACCENT * 0000 * 1DC2 COMBINING SNAKE BELOW * 0000 * 1DC3 COMBINING SUSPENSION MARK * 0000 * 1DC4 COMBINING MACRON-ACUTE * 0000 * 1DC5 COMBINING GRAVE-MACRON * 0000 * 1DC6 COMBINING MACRON-GRAVE * 0000 * 1DC7 COMBINING ACUTE-MACRON * 0000 * 1DC8 COMBINING GRAVE-ACUTE-GRAVE * 0000 * 1DC9 COMBINING ACUTE-GRAVE-ACUTE * 0000 * 1DCA COMBINING LATIN SMALL LETTER R BELOW * 0000 * 1DCB COMBINING BREVE-MACRON * 0000 * 1DCC COMBINING MACRON-BREVE * 0000 * 1DCD COMBINING DOUBLE CIRCUMFLEX ABOVE * 0000 * 1DCE COMBINING OGONEK ABOVE * 0000 * 1DCF COMBINING ZIGZAG BELOW * 0000 * 1DD0 COMBINING IS BELOW * 0000 * 1DD1 COMBINING UR ABOVE * 0000 * 1DD2 COMBINING US ABOVE * 0000 * 1DD3 COMBINING LATIN SMALL LETTER FLATTENED OPEN A ABOVE * 0000 * 1DD4 COMBINING LATIN SMALL LETTER AE * 0000 * 1DD5 COMBINING LATIN SMALL LETTER AO * 0000 * 1DD6 COMBINING LATIN SMALL LETTER AV * 0000 * 1DD7 COMBINING LATIN SMALL LETTER C CEDILLA * 0000 * 1DD8 COMBINING LATIN SMALL LETTER INSULAR D * 0000 * 1DD9 COMBINING LATIN SMALL LETTER ETH * 0000 * 1DDA COMBINING LATIN SMALL LETTER G * 0000 * 1DDB COMBINING LATIN LETTER SMALL CAPITAL G * 0000 * 1DDC COMBINING LATIN SMALL LETTER K * 0000 * 1DDD COMBINING LATIN SMALL LETTER L * 0000 * 1DDE COMBINING LATIN LETTER SMALL CAPITAL L * 0000 * 1DDF COMBINING LATIN LETTER SMALL CAPITAL M * 0000 * 1DE0 COMBINING LATIN SMALL LETTER N * 0000 * 1DE1 COMBINING LATIN LETTER SMALL CAPITAL N * 0000 * 1DE2 COMBINING LATIN LETTER SMALL CAPITAL R * 0000 * 1DE3 COMBINING LATIN SMALL LETTER R ROTUNDA * 0000 * 1DE4 COMBINING LATIN SMALL LETTER S * 0000 * 1DE5 COMBINING LATIN SMALL LETTER LONG S * 0000 * 1DE6 COMBINING LATIN SMALL LETTER Z * 0000 * 1DFC COMBINING DOUBLE INVERTED BREVE BELOW * 0000 * 1DFD COMBINING ALMOST EQUAL TO BELOW * 0000 * 1DFE COMBINING LEFT ARROWHEAD ABOVE * 0000 * 1DFF COMBINING RIGHT ARROWHEAD AND DOWN ARROWHEAD BELOW * 0000 * 1E00 LATIN CAPITAL LETTER A WITH RING BELOW * 0041 LATIN CAPITAL LETTER A * 1E01 LATIN SMALL LETTER A WITH RING BELOW * 0061 LATIN SMALL LETTER A * 1E02 LATIN CAPITAL LETTER B WITH DOT ABOVE * 0042 LATIN CAPITAL LETTER B * 1E03 LATIN SMALL LETTER B WITH DOT ABOVE * 0062 LATIN SMALL LETTER B * 1E04 LATIN CAPITAL LETTER B WITH DOT BELOW * 0042 LATIN CAPITAL LETTER B * 1E05 LATIN SMALL LETTER B WITH DOT BELOW * 0062 LATIN SMALL LETTER B * 1E06 LATIN CAPITAL LETTER B WITH LINE BELOW * 0042 LATIN CAPITAL LETTER B * 1E07 LATIN SMALL LETTER B WITH LINE BELOW * 0062 LATIN SMALL LETTER B * 1E08 LATIN CAPITAL LETTER C WITH CEDILLA AND ACUTE * 0043 LATIN CAPITAL LETTER C * 1E09 LATIN SMALL LETTER C WITH CEDILLA AND ACUTE * 0063 LATIN SMALL LETTER C * 1E0A LATIN CAPITAL LETTER D WITH DOT ABOVE * 0044 LATIN CAPITAL LETTER D * 1E0B LATIN SMALL LETTER D WITH DOT ABOVE * 0064 LATIN SMALL LETTER D * 1E0C LATIN CAPITAL LETTER D WITH DOT BELOW * 0044 LATIN CAPITAL LETTER D * 1E0D LATIN SMALL LETTER D WITH DOT BELOW * 0064 LATIN SMALL LETTER D * 1E0E LATIN CAPITAL LETTER D WITH LINE BELOW * 0044 LATIN CAPITAL LETTER D * 1E0F LATIN SMALL LETTER D WITH LINE BELOW * 0064 LATIN SMALL LETTER D * 1E10 LATIN CAPITAL LETTER D WITH CEDILLA * 0044 LATIN CAPITAL LETTER D * 1E11 LATIN SMALL LETTER D WITH CEDILLA * 0064 LATIN SMALL LETTER D * 1E12 LATIN CAPITAL LETTER D WITH CIRCUMFLEX BELOW * 0044 LATIN CAPITAL LETTER D * 1E13 LATIN SMALL LETTER D WITH CIRCUMFLEX BELOW * 0064 LATIN SMALL LETTER D * 1E14 LATIN CAPITAL LETTER E WITH MACRON AND GRAVE * 0045 LATIN CAPITAL LETTER E * 1E15 LATIN SMALL LETTER E WITH MACRON AND GRAVE * 0065 LATIN SMALL LETTER E * 1E16 LATIN CAPITAL LETTER E WITH MACRON AND ACUTE * 0045 LATIN CAPITAL LETTER E * 1E17 LATIN SMALL LETTER E WITH MACRON AND ACUTE * 0065 LATIN SMALL LETTER E * 1E18 LATIN CAPITAL LETTER E WITH CIRCUMFLEX BELOW * 0045 LATIN CAPITAL LETTER E * 1E19 LATIN SMALL LETTER E WITH CIRCUMFLEX BELOW * 0065 LATIN SMALL LETTER E * 1E1A LATIN CAPITAL LETTER E WITH TILDE BELOW * 0045 LATIN CAPITAL LETTER E * 1E1B LATIN SMALL LETTER E WITH TILDE BELOW * 0065 LATIN SMALL LETTER E * 1E1C LATIN CAPITAL LETTER E WITH CEDILLA AND BREVE * 0045 LATIN CAPITAL LETTER E * 1E1D LATIN SMALL LETTER E WITH CEDILLA AND BREVE * 0065 LATIN SMALL LETTER E * 1E1E LATIN CAPITAL LETTER F WITH DOT ABOVE * 0046 LATIN CAPITAL LETTER F * 1E1F LATIN SMALL LETTER F WITH DOT ABOVE * 0066 LATIN SMALL LETTER F * 1E20 LATIN CAPITAL LETTER G WITH MACRON * 0047 LATIN CAPITAL LETTER G * 1E21 LATIN SMALL LETTER G WITH MACRON * 0067 LATIN SMALL LETTER G * 1E22 LATIN CAPITAL LETTER H WITH DOT ABOVE * 0048 LATIN CAPITAL LETTER H * 1E23 LATIN SMALL LETTER H WITH DOT ABOVE * 0068 LATIN SMALL LETTER H * 1E24 LATIN CAPITAL LETTER H WITH DOT BELOW * 0048 LATIN CAPITAL LETTER H * 1E25 LATIN SMALL LETTER H WITH DOT BELOW * 0068 LATIN SMALL LETTER H * 1E26 LATIN CAPITAL LETTER H WITH DIAERESIS * 0048 LATIN CAPITAL LETTER H * 1E27 LATIN SMALL LETTER H WITH DIAERESIS * 0068 LATIN SMALL LETTER H * 1E28 LATIN CAPITAL LETTER H WITH CEDILLA * 0048 LATIN CAPITAL LETTER H * 1E29 LATIN SMALL LETTER H WITH CEDILLA * 0068 LATIN SMALL LETTER H * 1E2A LATIN CAPITAL LETTER H WITH BREVE BELOW * 0048 LATIN CAPITAL LETTER H * 1E2B LATIN SMALL LETTER H WITH BREVE BELOW * 0068 LATIN SMALL LETTER H * 1E2C LATIN CAPITAL LETTER I WITH TILDE BELOW * 0049 LATIN CAPITAL LETTER I * 1E2D LATIN SMALL LETTER I WITH TILDE BELOW * 0069 LATIN SMALL LETTER I * 1E2E LATIN CAPITAL LETTER I WITH DIAERESIS AND ACUTE * 0049 LATIN CAPITAL LETTER I * 1E2F LATIN SMALL LETTER I WITH DIAERESIS AND ACUTE * 0069 LATIN SMALL LETTER I * 1E30 LATIN CAPITAL LETTER K WITH ACUTE * 004B LATIN CAPITAL LETTER K * 1E31 LATIN SMALL LETTER K WITH ACUTE * 006B LATIN SMALL LETTER K * 1E32 LATIN CAPITAL LETTER K WITH DOT BELOW * 004B LATIN CAPITAL LETTER K * 1E33 LATIN SMALL LETTER K WITH DOT BELOW * 006B LATIN SMALL LETTER K * 1E34 LATIN CAPITAL LETTER K WITH LINE BELOW * 004B LATIN CAPITAL LETTER K * 1E35 LATIN SMALL LETTER K WITH LINE BELOW * 006B LATIN SMALL LETTER K * 1E36 LATIN CAPITAL LETTER L WITH DOT BELOW * 004C LATIN CAPITAL LETTER L * 1E37 LATIN SMALL LETTER L WITH DOT BELOW * 006C LATIN SMALL LETTER L * 1E38 LATIN CAPITAL LETTER L WITH DOT BELOW AND MACRON * 004C LATIN CAPITAL LETTER L * 1E39 LATIN SMALL LETTER L WITH DOT BELOW AND MACRON * 006C LATIN SMALL LETTER L * 1E3A LATIN CAPITAL LETTER L WITH LINE BELOW * 004C LATIN CAPITAL LETTER L * 1E3B LATIN SMALL LETTER L WITH LINE BELOW * 006C LATIN SMALL LETTER L * 1E3C LATIN CAPITAL LETTER L WITH CIRCUMFLEX BELOW * 004C LATIN CAPITAL LETTER L * 1E3D LATIN SMALL LETTER L WITH CIRCUMFLEX BELOW * 006C LATIN SMALL LETTER L * 1E3E LATIN CAPITAL LETTER M WITH ACUTE * 004D LATIN CAPITAL LETTER M * 1E3F LATIN SMALL LETTER M WITH ACUTE * 006D LATIN SMALL LETTER M * 1E40 LATIN CAPITAL LETTER M WITH DOT ABOVE * 004D LATIN CAPITAL LETTER M * 1E41 LATIN SMALL LETTER M WITH DOT ABOVE * 006D LATIN SMALL LETTER M * 1E42 LATIN CAPITAL LETTER M WITH DOT BELOW * 004D LATIN CAPITAL LETTER M * 1E43 LATIN SMALL LETTER M WITH DOT BELOW * 006D LATIN SMALL LETTER M * 1E44 LATIN CAPITAL LETTER N WITH DOT ABOVE * 004E LATIN CAPITAL LETTER N * 1E45 LATIN SMALL LETTER N WITH DOT ABOVE * 006E LATIN SMALL LETTER N * 1E46 LATIN CAPITAL LETTER N WITH DOT BELOW * 004E LATIN CAPITAL LETTER N * 1E47 LATIN SMALL LETTER N WITH DOT BELOW * 006E LATIN SMALL LETTER N * 1E48 LATIN CAPITAL LETTER N WITH LINE BELOW * 004E LATIN CAPITAL LETTER N * 1E49 LATIN SMALL LETTER N WITH LINE BELOW * 006E LATIN SMALL LETTER N * 1E4A LATIN CAPITAL LETTER N WITH CIRCUMFLEX BELOW * 004E LATIN CAPITAL LETTER N * 1E4B LATIN SMALL LETTER N WITH CIRCUMFLEX BELOW * 006E LATIN SMALL LETTER N * 1E4C LATIN CAPITAL LETTER O WITH TILDE AND ACUTE * 004F LATIN CAPITAL LETTER O * 1E4D LATIN SMALL LETTER O WITH TILDE AND ACUTE * 006F LATIN SMALL LETTER O * 1E4E LATIN CAPITAL LETTER O WITH TILDE AND DIAERESIS * 004F LATIN CAPITAL LETTER O * 1E4F LATIN SMALL LETTER O WITH TILDE AND DIAERESIS * 006F LATIN SMALL LETTER O * 1E50 LATIN CAPITAL LETTER O WITH MACRON AND GRAVE * 004F LATIN CAPITAL LETTER O * 1E51 LATIN SMALL LETTER O WITH MACRON AND GRAVE * 006F LATIN SMALL LETTER O * 1E52 LATIN CAPITAL LETTER O WITH MACRON AND ACUTE * 004F LATIN CAPITAL LETTER O * 1E53 LATIN SMALL LETTER O WITH MACRON AND ACUTE * 006F LATIN SMALL LETTER O * 1E54 LATIN CAPITAL LETTER P WITH ACUTE * 0050 LATIN CAPITAL LETTER P * 1E55 LATIN SMALL LETTER P WITH ACUTE * 0070 LATIN SMALL LETTER P * 1E56 LATIN CAPITAL LETTER P WITH DOT ABOVE * 0050 LATIN CAPITAL LETTER P * 1E57 LATIN SMALL LETTER P WITH DOT ABOVE * 0070 LATIN SMALL LETTER P * 1E58 LATIN CAPITAL LETTER R WITH DOT ABOVE * 0052 LATIN CAPITAL LETTER R * 1E59 LATIN SMALL LETTER R WITH DOT ABOVE * 0072 LATIN SMALL LETTER R * 1E5A LATIN CAPITAL LETTER R WITH DOT BELOW * 0052 LATIN CAPITAL LETTER R * 1E5B LATIN SMALL LETTER R WITH DOT BELOW * 0072 LATIN SMALL LETTER R * 1E5C LATIN CAPITAL LETTER R WITH DOT BELOW AND MACRON * 0052 LATIN CAPITAL LETTER R * 1E5D LATIN SMALL LETTER R WITH DOT BELOW AND MACRON * 0072 LATIN SMALL LETTER R * 1E5E LATIN CAPITAL LETTER R WITH LINE BELOW * 0052 LATIN CAPITAL LETTER R * 1E5F LATIN SMALL LETTER R WITH LINE BELOW * 0072 LATIN SMALL LETTER R * 1E60 LATIN CAPITAL LETTER S WITH DOT ABOVE * 0053 LATIN CAPITAL LETTER S * 1E61 LATIN SMALL LETTER S WITH DOT ABOVE * 0073 LATIN SMALL LETTER S * 1E62 LATIN CAPITAL LETTER S WITH DOT BELOW * 0053 LATIN CAPITAL LETTER S * 1E63 LATIN SMALL LETTER S WITH DOT BELOW * 0073 LATIN SMALL LETTER S * 1E64 LATIN CAPITAL LETTER S WITH ACUTE AND DOT ABOVE * 0053 LATIN CAPITAL LETTER S * 1E65 LATIN SMALL LETTER S WITH ACUTE AND DOT ABOVE * 0073 LATIN SMALL LETTER S * 1E66 LATIN CAPITAL LETTER S WITH CARON AND DOT ABOVE * 0053 LATIN CAPITAL LETTER S * 1E67 LATIN SMALL LETTER S WITH CARON AND DOT ABOVE * 0073 LATIN SMALL LETTER S * 1E68 LATIN CAPITAL LETTER S WITH DOT BELOW AND DOT ABOVE * 0053 LATIN CAPITAL LETTER S * 1E69 LATIN SMALL LETTER S WITH DOT BELOW AND DOT ABOVE * 0073 LATIN SMALL LETTER S * 1E6A LATIN CAPITAL LETTER T WITH DOT ABOVE * 0054 LATIN CAPITAL LETTER T * 1E6B LATIN SMALL LETTER T WITH DOT ABOVE * 0074 LATIN SMALL LETTER T * 1E6C LATIN CAPITAL LETTER T WITH DOT BELOW * 0054 LATIN CAPITAL LETTER T * 1E6D LATIN SMALL LETTER T WITH DOT BELOW * 0074 LATIN SMALL LETTER T * 1E6E LATIN CAPITAL LETTER T WITH LINE BELOW * 0054 LATIN CAPITAL LETTER T * 1E6F LATIN SMALL LETTER T WITH LINE BELOW * 0074 LATIN SMALL LETTER T * 1E70 LATIN CAPITAL LETTER T WITH CIRCUMFLEX BELOW * 0054 LATIN CAPITAL LETTER T * 1E71 LATIN SMALL LETTER T WITH CIRCUMFLEX BELOW * 0074 LATIN SMALL LETTER T * 1E72 LATIN CAPITAL LETTER U WITH DIAERESIS BELOW * 0055 LATIN CAPITAL LETTER U * 1E73 LATIN SMALL LETTER U WITH DIAERESIS BELOW * 0075 LATIN SMALL LETTER U * 1E74 LATIN CAPITAL LETTER U WITH TILDE BELOW * 0055 LATIN CAPITAL LETTER U * 1E75 LATIN SMALL LETTER U WITH TILDE BELOW * 0075 LATIN SMALL LETTER U * 1E76 LATIN CAPITAL LETTER U WITH CIRCUMFLEX BELOW * 0055 LATIN CAPITAL LETTER U * 1E77 LATIN SMALL LETTER U WITH CIRCUMFLEX BELOW * 0075 LATIN SMALL LETTER U * 1E78 LATIN CAPITAL LETTER U WITH TILDE AND ACUTE * 0055 LATIN CAPITAL LETTER U * 1E79 LATIN SMALL LETTER U WITH TILDE AND ACUTE * 0075 LATIN SMALL LETTER U * 1E7A LATIN CAPITAL LETTER U WITH MACRON AND DIAERESIS * 0055 LATIN CAPITAL LETTER U * 1E7B LATIN SMALL LETTER U WITH MACRON AND DIAERESIS * 0075 LATIN SMALL LETTER U * 1E7C LATIN CAPITAL LETTER V WITH TILDE * 0056 LATIN CAPITAL LETTER V * 1E7D LATIN SMALL LETTER V WITH TILDE * 0076 LATIN SMALL LETTER V * 1E7E LATIN CAPITAL LETTER V WITH DOT BELOW * 0056 LATIN CAPITAL LETTER V * 1E7F LATIN SMALL LETTER V WITH DOT BELOW * 0076 LATIN SMALL LETTER V * 1E80 LATIN CAPITAL LETTER W WITH GRAVE * 0057 LATIN CAPITAL LETTER W * 1E81 LATIN SMALL LETTER W WITH GRAVE * 0077 LATIN SMALL LETTER W * 1E82 LATIN CAPITAL LETTER W WITH ACUTE * 0057 LATIN CAPITAL LETTER W * 1E83 LATIN SMALL LETTER W WITH ACUTE * 0077 LATIN SMALL LETTER W * 1E84 LATIN CAPITAL LETTER W WITH DIAERESIS * 0057 LATIN CAPITAL LETTER W * 1E85 LATIN SMALL LETTER W WITH DIAERESIS * 0077 LATIN SMALL LETTER W * 1E86 LATIN CAPITAL LETTER W WITH DOT ABOVE * 0057 LATIN CAPITAL LETTER W * 1E87 LATIN SMALL LETTER W WITH DOT ABOVE * 0077 LATIN SMALL LETTER W * 1E88 LATIN CAPITAL LETTER W WITH DOT BELOW * 0057 LATIN CAPITAL LETTER W * 1E89 LATIN SMALL LETTER W WITH DOT BELOW * 0077 LATIN SMALL LETTER W * 1E8A LATIN CAPITAL LETTER X WITH DOT ABOVE * 0058 LATIN CAPITAL LETTER X * 1E8B LATIN SMALL LETTER X WITH DOT ABOVE * 0078 LATIN SMALL LETTER X * 1E8C LATIN CAPITAL LETTER X WITH DIAERESIS * 0058 LATIN CAPITAL LETTER X * 1E8D LATIN SMALL LETTER X WITH DIAERESIS * 0078 LATIN SMALL LETTER X * 1E8E LATIN CAPITAL LETTER Y WITH DOT ABOVE * 0059 LATIN CAPITAL LETTER Y * 1E8F LATIN SMALL LETTER Y WITH DOT ABOVE * 0079 LATIN SMALL LETTER Y * 1E90 LATIN CAPITAL LETTER Z WITH CIRCUMFLEX * 005A LATIN CAPITAL LETTER Z * 1E91 LATIN SMALL LETTER Z WITH CIRCUMFLEX * 007A LATIN SMALL LETTER Z * 1E92 LATIN CAPITAL LETTER Z WITH DOT BELOW * 005A LATIN CAPITAL LETTER Z * 1E93 LATIN SMALL LETTER Z WITH DOT BELOW * 007A LATIN SMALL LETTER Z * 1E94 LATIN CAPITAL LETTER Z WITH LINE BELOW * 005A LATIN CAPITAL LETTER Z * 1E95 LATIN SMALL LETTER Z WITH LINE BELOW * 007A LATIN SMALL LETTER Z * 1E96 LATIN SMALL LETTER H WITH LINE BELOW * 0068 LATIN SMALL LETTER H * 1E97 LATIN SMALL LETTER T WITH DIAERESIS * 0074 LATIN SMALL LETTER T * 1E98 LATIN SMALL LETTER W WITH RING ABOVE * 0077 LATIN SMALL LETTER W * 1E99 LATIN SMALL LETTER Y WITH RING ABOVE * 0079 LATIN SMALL LETTER Y * 1E9A LATIN SMALL LETTER A WITH RIGHT HALF RING * 0061 LATIN SMALL LETTER A * 02BE MODIFIER LETTER RIGHT HALF RING * 1E9B LATIN SMALL LETTER LONG S WITH DOT ABOVE * 0073 LATIN SMALL LETTER S * 1EA0 LATIN CAPITAL LETTER A WITH DOT BELOW * 0041 LATIN CAPITAL LETTER A * 1EA1 LATIN SMALL LETTER A WITH DOT BELOW * 0061 LATIN SMALL LETTER A * 1EA2 LATIN CAPITAL LETTER A WITH HOOK ABOVE * 0041 LATIN CAPITAL LETTER A * 1EA3 LATIN SMALL LETTER A WITH HOOK ABOVE * 0061 LATIN SMALL LETTER A * 1EA4 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND ACUTE * 0041 LATIN CAPITAL LETTER A * 1EA5 LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE * 0061 LATIN SMALL LETTER A * 1EA6 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND GRAVE * 0041 LATIN CAPITAL LETTER A * 1EA7 LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE * 0061 LATIN SMALL LETTER A * 1EA8 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE * 0041 LATIN CAPITAL LETTER A * 1EA9 LATIN SMALL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE * 0061 LATIN SMALL LETTER A * 1EAA LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND TILDE * 0041 LATIN CAPITAL LETTER A * 1EAB LATIN SMALL LETTER A WITH CIRCUMFLEX AND TILDE * 0061 LATIN SMALL LETTER A * 1EAC LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND DOT BELOW * 0041 LATIN CAPITAL LETTER A * 1EAD LATIN SMALL LETTER A WITH CIRCUMFLEX AND DOT BELOW * 0061 LATIN SMALL LETTER A * 1EAE LATIN CAPITAL LETTER A WITH BREVE AND ACUTE * 0041 LATIN CAPITAL LETTER A * 1EAF LATIN SMALL LETTER A WITH BREVE AND ACUTE * 0061 LATIN SMALL LETTER A * 1EB0 LATIN CAPITAL LETTER A WITH BREVE AND GRAVE * 0041 LATIN CAPITAL LETTER A * 1EB1 LATIN SMALL LETTER A WITH BREVE AND GRAVE * 0061 LATIN SMALL LETTER A * 1EB2 LATIN CAPITAL LETTER A WITH BREVE AND HOOK ABOVE * 0041 LATIN CAPITAL LETTER A * 1EB3 LATIN SMALL LETTER A WITH BREVE AND HOOK ABOVE * 0061 LATIN SMALL LETTER A * 1EB4 LATIN CAPITAL LETTER A WITH BREVE AND TILDE * 0041 LATIN CAPITAL LETTER A * 1EB5 LATIN SMALL LETTER A WITH BREVE AND TILDE * 0061 LATIN SMALL LETTER A * 1EB6 LATIN CAPITAL LETTER A WITH BREVE AND DOT BELOW * 0041 LATIN CAPITAL LETTER A * 1EB7 LATIN SMALL LETTER A WITH BREVE AND DOT BELOW * 0061 LATIN SMALL LETTER A * 1EB8 LATIN CAPITAL LETTER E WITH DOT BELOW * 0045 LATIN CAPITAL LETTER E * 1EB9 LATIN SMALL LETTER E WITH DOT BELOW * 0065 LATIN SMALL LETTER E * 1EBA LATIN CAPITAL LETTER E WITH HOOK ABOVE * 0045 LATIN CAPITAL LETTER E * 1EBB LATIN SMALL LETTER E WITH HOOK ABOVE * 0065 LATIN SMALL LETTER E * 1EBC LATIN CAPITAL LETTER E WITH TILDE * 0045 LATIN CAPITAL LETTER E * 1EBD LATIN SMALL LETTER E WITH TILDE * 0065 LATIN SMALL LETTER E * 1EBE LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND ACUTE * 0045 LATIN CAPITAL LETTER E * 1EBF LATIN SMALL LETTER E WITH CIRCUMFLEX AND ACUTE * 0065 LATIN SMALL LETTER E * 1EC0 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND GRAVE * 0045 LATIN CAPITAL LETTER E * 1EC1 LATIN SMALL LETTER E WITH CIRCUMFLEX AND GRAVE * 0065 LATIN SMALL LETTER E * 1EC2 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE * 0045 LATIN CAPITAL LETTER E * 1EC3 LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE * 0065 LATIN SMALL LETTER E * 1EC4 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND TILDE * 0045 LATIN CAPITAL LETTER E * 1EC5 LATIN SMALL LETTER E WITH CIRCUMFLEX AND TILDE * 0065 LATIN SMALL LETTER E * 1EC6 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND DOT BELOW * 0045 LATIN CAPITAL LETTER E * 1EC7 LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW * 0065 LATIN SMALL LETTER E * 1EC8 LATIN CAPITAL LETTER I WITH HOOK ABOVE * 0049 LATIN CAPITAL LETTER I * 1EC9 LATIN SMALL LETTER I WITH HOOK ABOVE * 0069 LATIN SMALL LETTER I * 1ECA LATIN CAPITAL LETTER I WITH DOT BELOW * 0049 LATIN CAPITAL LETTER I * 1ECB LATIN SMALL LETTER I WITH DOT BELOW * 0069 LATIN SMALL LETTER I * 1ECC LATIN CAPITAL LETTER O WITH DOT BELOW * 004F LATIN CAPITAL LETTER O * 1ECD LATIN SMALL LETTER O WITH DOT BELOW * 006F LATIN SMALL LETTER O * 1ECE LATIN CAPITAL LETTER O WITH HOOK ABOVE * 004F LATIN CAPITAL LETTER O * 1ECF LATIN SMALL LETTER O WITH HOOK ABOVE * 006F LATIN SMALL LETTER O * 1ED0 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND ACUTE * 004F LATIN CAPITAL LETTER O * 1ED1 LATIN SMALL LETTER O WITH CIRCUMFLEX AND ACUTE * 006F LATIN SMALL LETTER O * 1ED2 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND GRAVE * 004F LATIN CAPITAL LETTER O * 1ED3 LATIN SMALL LETTER O WITH CIRCUMFLEX AND GRAVE * 006F LATIN SMALL LETTER O * 1ED4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE * 004F LATIN CAPITAL LETTER O * 1ED5 LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE * 006F LATIN SMALL LETTER O * 1ED6 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND TILDE * 004F LATIN CAPITAL LETTER O * 1ED7 LATIN SMALL LETTER O WITH CIRCUMFLEX AND TILDE * 006F LATIN SMALL LETTER O * 1ED8 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND DOT BELOW * 004F LATIN CAPITAL LETTER O * 1ED9 LATIN SMALL LETTER O WITH CIRCUMFLEX AND DOT BELOW * 006F LATIN SMALL LETTER O * 1EDA LATIN CAPITAL LETTER O WITH HORN AND ACUTE * 004F LATIN CAPITAL LETTER O * 1EDB LATIN SMALL LETTER O WITH HORN AND ACUTE * 006F LATIN SMALL LETTER O * 1EDC LATIN CAPITAL LETTER O WITH HORN AND GRAVE * 004F LATIN CAPITAL LETTER O * 1EDD LATIN SMALL LETTER O WITH HORN AND GRAVE * 006F LATIN SMALL LETTER O * 1EDE LATIN CAPITAL LETTER O WITH HORN AND HOOK ABOVE * 004F LATIN CAPITAL LETTER O * 1EDF LATIN SMALL LETTER O WITH HORN AND HOOK ABOVE * 006F LATIN SMALL LETTER O * 1EE0 LATIN CAPITAL LETTER O WITH HORN AND TILDE * 004F LATIN CAPITAL LETTER O * 1EE1 LATIN SMALL LETTER O WITH HORN AND TILDE * 006F LATIN SMALL LETTER O * 1EE2 LATIN CAPITAL LETTER O WITH HORN AND DOT BELOW * 004F LATIN CAPITAL LETTER O * 1EE3 LATIN SMALL LETTER O WITH HORN AND DOT BELOW * 006F LATIN SMALL LETTER O * 1EE4 LATIN CAPITAL LETTER U WITH DOT BELOW * 0055 LATIN CAPITAL LETTER U * 1EE5 LATIN SMALL LETTER U WITH DOT BELOW * 0075 LATIN SMALL LETTER U * 1EE6 LATIN CAPITAL LETTER U WITH HOOK ABOVE * 0055 LATIN CAPITAL LETTER U * 1EE7 LATIN SMALL LETTER U WITH HOOK ABOVE * 0075 LATIN SMALL LETTER U * 1EE8 LATIN CAPITAL LETTER U WITH HORN AND ACUTE * 0055 LATIN CAPITAL LETTER U * 1EE9 LATIN SMALL LETTER U WITH HORN AND ACUTE * 0075 LATIN SMALL LETTER U * 1EEA LATIN CAPITAL LETTER U WITH HORN AND GRAVE * 0055 LATIN CAPITAL LETTER U * 1EEB LATIN SMALL LETTER U WITH HORN AND GRAVE * 0075 LATIN SMALL LETTER U * 1EEC LATIN CAPITAL LETTER U WITH HORN AND HOOK ABOVE * 0055 LATIN CAPITAL LETTER U * 1EED LATIN SMALL LETTER U WITH HORN AND HOOK ABOVE * 0075 LATIN SMALL LETTER U * 1EEE LATIN CAPITAL LETTER U WITH HORN AND TILDE * 0055 LATIN CAPITAL LETTER U * 1EEF LATIN SMALL LETTER U WITH HORN AND TILDE * 0075 LATIN SMALL LETTER U * 1EF0 LATIN CAPITAL LETTER U WITH HORN AND DOT BELOW * 0055 LATIN CAPITAL LETTER U * 1EF1 LATIN SMALL LETTER U WITH HORN AND DOT BELOW * 0075 LATIN SMALL LETTER U * 1EF2 LATIN CAPITAL LETTER Y WITH GRAVE * 0059 LATIN CAPITAL LETTER Y * 1EF3 LATIN SMALL LETTER Y WITH GRAVE * 0079 LATIN SMALL LETTER Y * 1EF4 LATIN CAPITAL LETTER Y WITH DOT BELOW * 0059 LATIN CAPITAL LETTER Y * 1EF5 LATIN SMALL LETTER Y WITH DOT BELOW * 0079 LATIN SMALL LETTER Y * 1EF6 LATIN CAPITAL LETTER Y WITH HOOK ABOVE * 0059 LATIN CAPITAL LETTER Y * 1EF7 LATIN SMALL LETTER Y WITH HOOK ABOVE * 0079 LATIN SMALL LETTER Y * 1EF8 LATIN CAPITAL LETTER Y WITH TILDE * 0059 LATIN CAPITAL LETTER Y * 1EF9 LATIN SMALL LETTER Y WITH TILDE * 0079 LATIN SMALL LETTER Y * 1F00 GREEK SMALL LETTER ALPHA WITH PSILI * 03B1 GREEK SMALL LETTER ALPHA * 1F01 GREEK SMALL LETTER ALPHA WITH DASIA * 03B1 GREEK SMALL LETTER ALPHA * 1F02 GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA * 03B1 GREEK SMALL LETTER ALPHA * 1F03 GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA * 03B1 GREEK SMALL LETTER ALPHA * 1F04 GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA * 03B1 GREEK SMALL LETTER ALPHA * 1F05 GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA * 03B1 GREEK SMALL LETTER ALPHA * 1F06 GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F07 GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F08 GREEK CAPITAL LETTER ALPHA WITH PSILI * 0391 GREEK CAPITAL LETTER ALPHA * 1F09 GREEK CAPITAL LETTER ALPHA WITH DASIA * 0391 GREEK CAPITAL LETTER ALPHA * 1F0A GREEK CAPITAL LETTER ALPHA WITH PSILI AND VARIA * 0391 GREEK CAPITAL LETTER ALPHA * 1F0B GREEK CAPITAL LETTER ALPHA WITH DASIA AND VARIA * 0391 GREEK CAPITAL LETTER ALPHA * 1F0C GREEK CAPITAL LETTER ALPHA WITH PSILI AND OXIA * 0391 GREEK CAPITAL LETTER ALPHA * 1F0D GREEK CAPITAL LETTER ALPHA WITH DASIA AND OXIA * 0391 GREEK CAPITAL LETTER ALPHA * 1F0E GREEK CAPITAL LETTER ALPHA WITH PSILI AND PERISPOMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F0F GREEK CAPITAL LETTER ALPHA WITH DASIA AND PERISPOMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F10 GREEK SMALL LETTER EPSILON WITH PSILI * 03B5 GREEK SMALL LETTER EPSILON * 1F11 GREEK SMALL LETTER EPSILON WITH DASIA * 03B5 GREEK SMALL LETTER EPSILON * 1F12 GREEK SMALL LETTER EPSILON WITH PSILI AND VARIA * 03B5 GREEK SMALL LETTER EPSILON * 1F13 GREEK SMALL LETTER EPSILON WITH DASIA AND VARIA * 03B5 GREEK SMALL LETTER EPSILON * 1F14 GREEK SMALL LETTER EPSILON WITH PSILI AND OXIA * 03B5 GREEK SMALL LETTER EPSILON * 1F15 GREEK SMALL LETTER EPSILON WITH DASIA AND OXIA * 03B5 GREEK SMALL LETTER EPSILON * 1F18 GREEK CAPITAL LETTER EPSILON WITH PSILI * 0395 GREEK CAPITAL LETTER EPSILON * 1F19 GREEK CAPITAL LETTER EPSILON WITH DASIA * 0395 GREEK CAPITAL LETTER EPSILON * 1F1A GREEK CAPITAL LETTER EPSILON WITH PSILI AND VARIA * 0395 GREEK CAPITAL LETTER EPSILON * 1F1B GREEK CAPITAL LETTER EPSILON WITH DASIA AND VARIA * 0395 GREEK CAPITAL LETTER EPSILON * 1F1C GREEK CAPITAL LETTER EPSILON WITH PSILI AND OXIA * 0395 GREEK CAPITAL LETTER EPSILON * 1F1D GREEK CAPITAL LETTER EPSILON WITH DASIA AND OXIA * 0395 GREEK CAPITAL LETTER EPSILON * 1F20 GREEK SMALL LETTER ETA WITH PSILI * 03B7 GREEK SMALL LETTER ETA * 1F21 GREEK SMALL LETTER ETA WITH DASIA * 03B7 GREEK SMALL LETTER ETA * 1F22 GREEK SMALL LETTER ETA WITH PSILI AND VARIA * 03B7 GREEK SMALL LETTER ETA * 1F23 GREEK SMALL LETTER ETA WITH DASIA AND VARIA * 03B7 GREEK SMALL LETTER ETA * 1F24 GREEK SMALL LETTER ETA WITH PSILI AND OXIA * 03B7 GREEK SMALL LETTER ETA * 1F25 GREEK SMALL LETTER ETA WITH DASIA AND OXIA * 03B7 GREEK SMALL LETTER ETA * 1F26 GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI * 03B7 GREEK SMALL LETTER ETA * 1F27 GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI * 03B7 GREEK SMALL LETTER ETA * 1F28 GREEK CAPITAL LETTER ETA WITH PSILI * 0397 GREEK CAPITAL LETTER ETA * 1F29 GREEK CAPITAL LETTER ETA WITH DASIA * 0397 GREEK CAPITAL LETTER ETA * 1F2A GREEK CAPITAL LETTER ETA WITH PSILI AND VARIA * 0397 GREEK CAPITAL LETTER ETA * 1F2B GREEK CAPITAL LETTER ETA WITH DASIA AND VARIA * 0397 GREEK CAPITAL LETTER ETA * 1F2C GREEK CAPITAL LETTER ETA WITH PSILI AND OXIA * 0397 GREEK CAPITAL LETTER ETA * 1F2D GREEK CAPITAL LETTER ETA WITH DASIA AND OXIA * 0397 GREEK CAPITAL LETTER ETA * 1F2E GREEK CAPITAL LETTER ETA WITH PSILI AND PERISPOMENI * 0397 GREEK CAPITAL LETTER ETA * 1F2F GREEK CAPITAL LETTER ETA WITH DASIA AND PERISPOMENI * 0397 GREEK CAPITAL LETTER ETA * 1F30 GREEK SMALL LETTER IOTA WITH PSILI * 03B9 GREEK SMALL LETTER IOTA * 1F31 GREEK SMALL LETTER IOTA WITH DASIA * 03B9 GREEK SMALL LETTER IOTA * 1F32 GREEK SMALL LETTER IOTA WITH PSILI AND VARIA * 03B9 GREEK SMALL LETTER IOTA * 1F33 GREEK SMALL LETTER IOTA WITH DASIA AND VARIA * 03B9 GREEK SMALL LETTER IOTA * 1F34 GREEK SMALL LETTER IOTA WITH PSILI AND OXIA * 03B9 GREEK SMALL LETTER IOTA * 1F35 GREEK SMALL LETTER IOTA WITH DASIA AND OXIA * 03B9 GREEK SMALL LETTER IOTA * 1F36 GREEK SMALL LETTER IOTA WITH PSILI AND PERISPOMENI * 03B9 GREEK SMALL LETTER IOTA * 1F37 GREEK SMALL LETTER IOTA WITH DASIA AND PERISPOMENI * 03B9 GREEK SMALL LETTER IOTA * 1F38 GREEK CAPITAL LETTER IOTA WITH PSILI * 0399 GREEK CAPITAL LETTER IOTA * 1F39 GREEK CAPITAL LETTER IOTA WITH DASIA * 0399 GREEK CAPITAL LETTER IOTA * 1F3A GREEK CAPITAL LETTER IOTA WITH PSILI AND VARIA * 0399 GREEK CAPITAL LETTER IOTA * 1F3B GREEK CAPITAL LETTER IOTA WITH DASIA AND VARIA * 0399 GREEK CAPITAL LETTER IOTA * 1F3C GREEK CAPITAL LETTER IOTA WITH PSILI AND OXIA * 0399 GREEK CAPITAL LETTER IOTA * 1F3D GREEK CAPITAL LETTER IOTA WITH DASIA AND OXIA * 0399 GREEK CAPITAL LETTER IOTA * 1F3E GREEK CAPITAL LETTER IOTA WITH PSILI AND PERISPOMENI * 0399 GREEK CAPITAL LETTER IOTA * 1F3F GREEK CAPITAL LETTER IOTA WITH DASIA AND PERISPOMENI * 0399 GREEK CAPITAL LETTER IOTA * 1F40 GREEK SMALL LETTER OMICRON WITH PSILI * 03BF GREEK SMALL LETTER OMICRON * 1F41 GREEK SMALL LETTER OMICRON WITH DASIA * 03BF GREEK SMALL LETTER OMICRON * 1F42 GREEK SMALL LETTER OMICRON WITH PSILI AND VARIA * 03BF GREEK SMALL LETTER OMICRON * 1F43 GREEK SMALL LETTER OMICRON WITH DASIA AND VARIA * 03BF GREEK SMALL LETTER OMICRON * 1F44 GREEK SMALL LETTER OMICRON WITH PSILI AND OXIA * 03BF GREEK SMALL LETTER OMICRON * 1F45 GREEK SMALL LETTER OMICRON WITH DASIA AND OXIA * 03BF GREEK SMALL LETTER OMICRON * 1F48 GREEK CAPITAL LETTER OMICRON WITH PSILI * 039F GREEK CAPITAL LETTER OMICRON * 1F49 GREEK CAPITAL LETTER OMICRON WITH DASIA * 039F GREEK CAPITAL LETTER OMICRON * 1F4A GREEK CAPITAL LETTER OMICRON WITH PSILI AND VARIA * 039F GREEK CAPITAL LETTER OMICRON * 1F4B GREEK CAPITAL LETTER OMICRON WITH DASIA AND VARIA * 039F GREEK CAPITAL LETTER OMICRON * 1F4C GREEK CAPITAL LETTER OMICRON WITH PSILI AND OXIA * 039F GREEK CAPITAL LETTER OMICRON * 1F4D GREEK CAPITAL LETTER OMICRON WITH DASIA AND OXIA * 039F GREEK CAPITAL LETTER OMICRON * 1F50 GREEK SMALL LETTER UPSILON WITH PSILI * 03C5 GREEK SMALL LETTER UPSILON * 1F51 GREEK SMALL LETTER UPSILON WITH DASIA * 03C5 GREEK SMALL LETTER UPSILON * 1F52 GREEK SMALL LETTER UPSILON WITH PSILI AND VARIA * 03C5 GREEK SMALL LETTER UPSILON * 1F53 GREEK SMALL LETTER UPSILON WITH DASIA AND VARIA * 03C5 GREEK SMALL LETTER UPSILON * 1F54 GREEK SMALL LETTER UPSILON WITH PSILI AND OXIA * 03C5 GREEK SMALL LETTER UPSILON * 1F55 GREEK SMALL LETTER UPSILON WITH DASIA AND OXIA * 03C5 GREEK SMALL LETTER UPSILON * 1F56 GREEK SMALL LETTER UPSILON WITH PSILI AND PERISPOMENI * 03C5 GREEK SMALL LETTER UPSILON * 1F57 GREEK SMALL LETTER UPSILON WITH DASIA AND PERISPOMENI * 03C5 GREEK SMALL LETTER UPSILON * 1F59 GREEK CAPITAL LETTER UPSILON WITH DASIA * 03A5 GREEK CAPITAL LETTER UPSILON * 1F5B GREEK CAPITAL LETTER UPSILON WITH DASIA AND VARIA * 03A5 GREEK CAPITAL LETTER UPSILON * 1F5D GREEK CAPITAL LETTER UPSILON WITH DASIA AND OXIA * 03A5 GREEK CAPITAL LETTER UPSILON * 1F5F GREEK CAPITAL LETTER UPSILON WITH DASIA AND PERISPOMENI * 03A5 GREEK CAPITAL LETTER UPSILON * 1F60 GREEK SMALL LETTER OMEGA WITH PSILI * 03C9 GREEK SMALL LETTER OMEGA * 1F61 GREEK SMALL LETTER OMEGA WITH DASIA * 03C9 GREEK SMALL LETTER OMEGA * 1F62 GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA * 03C9 GREEK SMALL LETTER OMEGA * 1F63 GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA * 03C9 GREEK SMALL LETTER OMEGA * 1F64 GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA * 03C9 GREEK SMALL LETTER OMEGA * 1F65 GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA * 03C9 GREEK SMALL LETTER OMEGA * 1F66 GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI * 03C9 GREEK SMALL LETTER OMEGA * 1F67 GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI * 03C9 GREEK SMALL LETTER OMEGA * 1F68 GREEK CAPITAL LETTER OMEGA WITH PSILI * 03A9 GREEK CAPITAL LETTER OMEGA * 1F69 GREEK CAPITAL LETTER OMEGA WITH DASIA * 03A9 GREEK CAPITAL LETTER OMEGA * 1F6A GREEK CAPITAL LETTER OMEGA WITH PSILI AND VARIA * 03A9 GREEK CAPITAL LETTER OMEGA * 1F6B GREEK CAPITAL LETTER OMEGA WITH DASIA AND VARIA * 03A9 GREEK CAPITAL LETTER OMEGA * 1F6C GREEK CAPITAL LETTER OMEGA WITH PSILI AND OXIA * 03A9 GREEK CAPITAL LETTER OMEGA * 1F6D GREEK CAPITAL LETTER OMEGA WITH DASIA AND OXIA * 03A9 GREEK CAPITAL LETTER OMEGA * 1F6E GREEK CAPITAL LETTER OMEGA WITH PSILI AND PERISPOMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1F6F GREEK CAPITAL LETTER OMEGA WITH DASIA AND PERISPOMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1F70 GREEK SMALL LETTER ALPHA WITH VARIA * 03B1 GREEK SMALL LETTER ALPHA * 1F71 GREEK SMALL LETTER ALPHA WITH OXIA * 03B1 GREEK SMALL LETTER ALPHA * 1F72 GREEK SMALL LETTER EPSILON WITH VARIA * 03B5 GREEK SMALL LETTER EPSILON * 1F73 GREEK SMALL LETTER EPSILON WITH OXIA * 03B5 GREEK SMALL LETTER EPSILON * 1F74 GREEK SMALL LETTER ETA WITH VARIA * 03B7 GREEK SMALL LETTER ETA * 1F75 GREEK SMALL LETTER ETA WITH OXIA * 03B7 GREEK SMALL LETTER ETA * 1F76 GREEK SMALL LETTER IOTA WITH VARIA * 03B9 GREEK SMALL LETTER IOTA * 1F77 GREEK SMALL LETTER IOTA WITH OXIA * 03B9 GREEK SMALL LETTER IOTA * 1F78 GREEK SMALL LETTER OMICRON WITH VARIA * 03BF GREEK SMALL LETTER OMICRON * 1F79 GREEK SMALL LETTER OMICRON WITH OXIA * 03BF GREEK SMALL LETTER OMICRON * 1F7A GREEK SMALL LETTER UPSILON WITH VARIA * 03C5 GREEK SMALL LETTER UPSILON * 1F7B GREEK SMALL LETTER UPSILON WITH OXIA * 03C5 GREEK SMALL LETTER UPSILON * 1F7C GREEK SMALL LETTER OMEGA WITH VARIA * 03C9 GREEK SMALL LETTER OMEGA * 1F7D GREEK SMALL LETTER OMEGA WITH OXIA * 03C9 GREEK SMALL LETTER OMEGA * 1F80 GREEK SMALL LETTER ALPHA WITH PSILI AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F81 GREEK SMALL LETTER ALPHA WITH DASIA AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F82 GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F83 GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F84 GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F85 GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F86 GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F87 GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1F88 GREEK CAPITAL LETTER ALPHA WITH PSILI AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F89 GREEK CAPITAL LETTER ALPHA WITH DASIA AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F8A GREEK CAPITAL LETTER ALPHA WITH PSILI AND VARIA AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F8B GREEK CAPITAL LETTER ALPHA WITH DASIA AND VARIA AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F8C GREEK CAPITAL LETTER ALPHA WITH PSILI AND OXIA AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F8D GREEK CAPITAL LETTER ALPHA WITH DASIA AND OXIA AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F8E GREEK CAPITAL LETTER ALPHA WITH PSILI AND PERISPOMENI AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F8F GREEK CAPITAL LETTER ALPHA WITH DASIA AND PERISPOMENI AND PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1F90 GREEK SMALL LETTER ETA WITH PSILI AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F91 GREEK SMALL LETTER ETA WITH DASIA AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F92 GREEK SMALL LETTER ETA WITH PSILI AND VARIA AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F93 GREEK SMALL LETTER ETA WITH DASIA AND VARIA AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F94 GREEK SMALL LETTER ETA WITH PSILI AND OXIA AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F95 GREEK SMALL LETTER ETA WITH DASIA AND OXIA AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F96 GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F97 GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1F98 GREEK CAPITAL LETTER ETA WITH PSILI AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1F99 GREEK CAPITAL LETTER ETA WITH DASIA AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1F9A GREEK CAPITAL LETTER ETA WITH PSILI AND VARIA AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1F9B GREEK CAPITAL LETTER ETA WITH DASIA AND VARIA AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1F9C GREEK CAPITAL LETTER ETA WITH PSILI AND OXIA AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1F9D GREEK CAPITAL LETTER ETA WITH DASIA AND OXIA AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1F9E GREEK CAPITAL LETTER ETA WITH PSILI AND PERISPOMENI AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1F9F GREEK CAPITAL LETTER ETA WITH DASIA AND PERISPOMENI AND PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1FA0 GREEK SMALL LETTER OMEGA WITH PSILI AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA1 GREEK SMALL LETTER OMEGA WITH DASIA AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA2 GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA3 GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA4 GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA5 GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA6 GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA7 GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FA8 GREEK CAPITAL LETTER OMEGA WITH PSILI AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FA9 GREEK CAPITAL LETTER OMEGA WITH DASIA AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FAA GREEK CAPITAL LETTER OMEGA WITH PSILI AND VARIA AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FAB GREEK CAPITAL LETTER OMEGA WITH DASIA AND VARIA AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FAC GREEK CAPITAL LETTER OMEGA WITH PSILI AND OXIA AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FAD GREEK CAPITAL LETTER OMEGA WITH DASIA AND OXIA AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FAE GREEK CAPITAL LETTER OMEGA WITH PSILI AND PERISPOMENI AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FAF GREEK CAPITAL LETTER OMEGA WITH DASIA AND PERISPOMENI AND PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FB0 GREEK SMALL LETTER ALPHA WITH VRACHY * 03B1 GREEK SMALL LETTER ALPHA * 1FB1 GREEK SMALL LETTER ALPHA WITH MACRON * 03B1 GREEK SMALL LETTER ALPHA * 1FB2 GREEK SMALL LETTER ALPHA WITH VARIA AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1FB3 GREEK SMALL LETTER ALPHA WITH YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1FB4 GREEK SMALL LETTER ALPHA WITH OXIA AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1FB6 GREEK SMALL LETTER ALPHA WITH PERISPOMENI * 03B1 GREEK SMALL LETTER ALPHA * 1FB7 GREEK SMALL LETTER ALPHA WITH PERISPOMENI AND YPOGEGRAMMENI * 03B1 GREEK SMALL LETTER ALPHA * 1FB8 GREEK CAPITAL LETTER ALPHA WITH VRACHY * 0391 GREEK CAPITAL LETTER ALPHA * 1FB9 GREEK CAPITAL LETTER ALPHA WITH MACRON * 0391 GREEK CAPITAL LETTER ALPHA * 1FBA GREEK CAPITAL LETTER ALPHA WITH VARIA * 0391 GREEK CAPITAL LETTER ALPHA * 1FBB GREEK CAPITAL LETTER ALPHA WITH OXIA * 0391 GREEK CAPITAL LETTER ALPHA * 1FBC GREEK CAPITAL LETTER ALPHA WITH PROSGEGRAMMENI * 0391 GREEK CAPITAL LETTER ALPHA * 1FBD GREEK KORONIS * 0020 SPACE * 1FBE GREEK PROSGEGRAMMENI * 03B9 GREEK SMALL LETTER IOTA * 1FBF GREEK PSILI * 0020 SPACE * 1FC0 GREEK PERISPOMENI * 0020 SPACE * 1FC1 GREEK DIALYTIKA AND PERISPOMENI * 0020 SPACE * 1FC2 GREEK SMALL LETTER ETA WITH VARIA AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1FC3 GREEK SMALL LETTER ETA WITH YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1FC4 GREEK SMALL LETTER ETA WITH OXIA AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1FC6 GREEK SMALL LETTER ETA WITH PERISPOMENI * 03B7 GREEK SMALL LETTER ETA * 1FC7 GREEK SMALL LETTER ETA WITH PERISPOMENI AND YPOGEGRAMMENI * 03B7 GREEK SMALL LETTER ETA * 1FC8 GREEK CAPITAL LETTER EPSILON WITH VARIA * 0395 GREEK CAPITAL LETTER EPSILON * 1FC9 GREEK CAPITAL LETTER EPSILON WITH OXIA * 0395 GREEK CAPITAL LETTER EPSILON * 1FCA GREEK CAPITAL LETTER ETA WITH VARIA * 0397 GREEK CAPITAL LETTER ETA * 1FCB GREEK CAPITAL LETTER ETA WITH OXIA * 0397 GREEK CAPITAL LETTER ETA * 1FCC GREEK CAPITAL LETTER ETA WITH PROSGEGRAMMENI * 0397 GREEK CAPITAL LETTER ETA * 1FCD GREEK PSILI AND VARIA * 0020 SPACE * 1FCE GREEK PSILI AND OXIA * 0020 SPACE * 1FCF GREEK PSILI AND PERISPOMENI * 0020 SPACE * 1FD0 GREEK SMALL LETTER IOTA WITH VRACHY * 03B9 GREEK SMALL LETTER IOTA * 1FD1 GREEK SMALL LETTER IOTA WITH MACRON * 03B9 GREEK SMALL LETTER IOTA * 1FD2 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND VARIA * 03B9 GREEK SMALL LETTER IOTA * 1FD3 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA * 03B9 GREEK SMALL LETTER IOTA * 1FD6 GREEK SMALL LETTER IOTA WITH PERISPOMENI * 03B9 GREEK SMALL LETTER IOTA * 1FD7 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND PERISPOMENI * 03B9 GREEK SMALL LETTER IOTA * 1FD8 GREEK CAPITAL LETTER IOTA WITH VRACHY * 0399 GREEK CAPITAL LETTER IOTA * 1FD9 GREEK CAPITAL LETTER IOTA WITH MACRON * 0399 GREEK CAPITAL LETTER IOTA * 1FDA GREEK CAPITAL LETTER IOTA WITH VARIA * 0399 GREEK CAPITAL LETTER IOTA * 1FDB GREEK CAPITAL LETTER IOTA WITH OXIA * 0399 GREEK CAPITAL LETTER IOTA * 1FDD GREEK DASIA AND VARIA * 0020 SPACE * 1FDE GREEK DASIA AND OXIA * 0020 SPACE * 1FDF GREEK DASIA AND PERISPOMENI * 0020 SPACE * 1FE0 GREEK SMALL LETTER UPSILON WITH VRACHY * 03C5 GREEK SMALL LETTER UPSILON * 1FE1 GREEK SMALL LETTER UPSILON WITH MACRON * 03C5 GREEK SMALL LETTER UPSILON * 1FE2 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND VARIA * 03C5 GREEK SMALL LETTER UPSILON * 1FE3 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA * 03C5 GREEK SMALL LETTER UPSILON * 1FE4 GREEK SMALL LETTER RHO WITH PSILI * 03C1 GREEK SMALL LETTER RHO * 1FE5 GREEK SMALL LETTER RHO WITH DASIA * 03C1 GREEK SMALL LETTER RHO * 1FE6 GREEK SMALL LETTER UPSILON WITH PERISPOMENI * 03C5 GREEK SMALL LETTER UPSILON * 1FE7 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND PERISPOMENI * 03C5 GREEK SMALL LETTER UPSILON * 1FE8 GREEK CAPITAL LETTER UPSILON WITH VRACHY * 03A5 GREEK CAPITAL LETTER UPSILON * 1FE9 GREEK CAPITAL LETTER UPSILON WITH MACRON * 03A5 GREEK CAPITAL LETTER UPSILON * 1FEA GREEK CAPITAL LETTER UPSILON WITH VARIA * 03A5 GREEK CAPITAL LETTER UPSILON * 1FEB GREEK CAPITAL LETTER UPSILON WITH OXIA * 03A5 GREEK CAPITAL LETTER UPSILON * 1FEC GREEK CAPITAL LETTER RHO WITH DASIA * 03A1 GREEK CAPITAL LETTER RHO * 1FED GREEK DIALYTIKA AND VARIA * 0020 SPACE * 1FEE GREEK DIALYTIKA AND OXIA * 0020 SPACE * 1FEF GREEK VARIA * 0060 GRAVE ACCENT * 1FF2 GREEK SMALL LETTER OMEGA WITH VARIA AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FF3 GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FF4 GREEK SMALL LETTER OMEGA WITH OXIA AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FF6 GREEK SMALL LETTER OMEGA WITH PERISPOMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FF7 GREEK SMALL LETTER OMEGA WITH PERISPOMENI AND YPOGEGRAMMENI * 03C9 GREEK SMALL LETTER OMEGA * 1FF8 GREEK CAPITAL LETTER OMICRON WITH VARIA * 039F GREEK CAPITAL LETTER OMICRON * 1FF9 GREEK CAPITAL LETTER OMICRON WITH OXIA * 039F GREEK CAPITAL LETTER OMICRON * 1FFA GREEK CAPITAL LETTER OMEGA WITH VARIA * 03A9 GREEK CAPITAL LETTER OMEGA * 1FFB GREEK CAPITAL LETTER OMEGA WITH OXIA * 03A9 GREEK CAPITAL LETTER OMEGA * 1FFC GREEK CAPITAL LETTER OMEGA WITH PROSGEGRAMMENI * 03A9 GREEK CAPITAL LETTER OMEGA * 1FFD GREEK OXIA * 0020 SPACE * 1FFE GREEK DASIA * 0020 SPACE * 2000 EN QUAD * 0020 SPACE * 2001 EM QUAD * 0020 SPACE * 2002 EN SPACE * 0020 SPACE * 2003 EM SPACE * 0020 SPACE * 2004 THREE-PER-EM SPACE * 0020 SPACE * 2005 FOUR-PER-EM SPACE * 0020 SPACE * 2006 SIX-PER-EM SPACE * 0020 SPACE * 2007 FIGURE SPACE * 0020 SPACE * 2008 PUNCTUATION SPACE * 0020 SPACE * 2009 THIN SPACE * 0020 SPACE * 200A HAIR SPACE * 0020 SPACE * 2011 NON-BREAKING HYPHEN * 2010 HYPHEN * 2017 DOUBLE LOW LINE * 0020 SPACE * 2024 ONE DOT LEADER * 002E FULL STOP * 2025 TWO DOT LEADER * 002E FULL STOP * 002E FULL STOP * 2026 HORIZONTAL ELLIPSIS * 002E FULL STOP * 002E FULL STOP * 002E FULL STOP * 202F NARROW NO-BREAK SPACE * 0020 SPACE * 2033 DOUBLE PRIME * 2032 PRIME * 2032 PRIME * 2034 TRIPLE PRIME * 2032 PRIME * 2032 PRIME * 2032 PRIME * 2036 REVERSED DOUBLE PRIME * 2035 REVERSED PRIME * 2035 REVERSED PRIME * 2037 REVERSED TRIPLE PRIME * 2035 REVERSED PRIME * 2035 REVERSED PRIME * 2035 REVERSED PRIME * 203C DOUBLE EXCLAMATION MARK * 0021 EXCLAMATION MARK * 0021 EXCLAMATION MARK * 203E OVERLINE * 0020 SPACE * 2047 DOUBLE QUESTION MARK * 003F QUESTION MARK * 003F QUESTION MARK * 2048 QUESTION EXCLAMATION MARK * 003F QUESTION MARK * 0021 EXCLAMATION MARK * 2049 EXCLAMATION QUESTION MARK * 0021 EXCLAMATION MARK * 003F QUESTION MARK * 2057 QUADRUPLE PRIME * 2032 PRIME * 2032 PRIME * 2032 PRIME * 2032 PRIME * 205F MEDIUM MATHEMATICAL SPACE * 0020 SPACE * 2070 SUPERSCRIPT ZERO * 0030 DIGIT ZERO * 2071 SUPERSCRIPT LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 2074 SUPERSCRIPT FOUR * 0034 DIGIT FOUR * 2075 SUPERSCRIPT FIVE * 0035 DIGIT FIVE * 2076 SUPERSCRIPT SIX * 0036 DIGIT SIX * 2077 SUPERSCRIPT SEVEN * 0037 DIGIT SEVEN * 2078 SUPERSCRIPT EIGHT * 0038 DIGIT EIGHT * 2079 SUPERSCRIPT NINE * 0039 DIGIT NINE * 207A SUPERSCRIPT PLUS SIGN * 002B PLUS SIGN * 207B SUPERSCRIPT MINUS * 2212 MINUS SIGN * 207C SUPERSCRIPT EQUALS SIGN * 003D EQUALS SIGN * 207D SUPERSCRIPT LEFT PARENTHESIS * 0028 LEFT PARENTHESIS * 207E SUPERSCRIPT RIGHT PARENTHESIS * 0029 RIGHT PARENTHESIS * 207F SUPERSCRIPT LATIN SMALL LETTER N * 006E LATIN SMALL LETTER N * 2080 SUBSCRIPT ZERO * 0030 DIGIT ZERO * 2081 SUBSCRIPT ONE * 0031 DIGIT ONE * 2082 SUBSCRIPT TWO * 0032 DIGIT TWO * 2083 SUBSCRIPT THREE * 0033 DIGIT THREE * 2084 SUBSCRIPT FOUR * 0034 DIGIT FOUR * 2085 SUBSCRIPT FIVE * 0035 DIGIT FIVE * 2086 SUBSCRIPT SIX * 0036 DIGIT SIX * 2087 SUBSCRIPT SEVEN * 0037 DIGIT SEVEN * 2088 SUBSCRIPT EIGHT * 0038 DIGIT EIGHT * 2089 SUBSCRIPT NINE * 0039 DIGIT NINE * 208A SUBSCRIPT PLUS SIGN * 002B PLUS SIGN * 208B SUBSCRIPT MINUS * 2212 MINUS SIGN * 208C SUBSCRIPT EQUALS SIGN * 003D EQUALS SIGN * 208D SUBSCRIPT LEFT PARENTHESIS * 0028 LEFT PARENTHESIS * 208E SUBSCRIPT RIGHT PARENTHESIS * 0029 RIGHT PARENTHESIS * 2090 LATIN SUBSCRIPT SMALL LETTER A * 0061 LATIN SMALL LETTER A * 2091 LATIN SUBSCRIPT SMALL LETTER E * 0065 LATIN SMALL LETTER E * 2092 LATIN SUBSCRIPT SMALL LETTER O * 006F LATIN SMALL LETTER O * 2093 LATIN SUBSCRIPT SMALL LETTER X * 0078 LATIN SMALL LETTER X * 2094 LATIN SUBSCRIPT SMALL LETTER SCHWA * 0259 LATIN SMALL LETTER SCHWA * 2095 LATIN SUBSCRIPT SMALL LETTER H * 0068 LATIN SMALL LETTER H * 2096 LATIN SUBSCRIPT SMALL LETTER K * 006B LATIN SMALL LETTER K * 2097 LATIN SUBSCRIPT SMALL LETTER L * 006C LATIN SMALL LETTER L * 2098 LATIN SUBSCRIPT SMALL LETTER M * 006D LATIN SMALL LETTER M * 2099 LATIN SUBSCRIPT SMALL LETTER N * 006E LATIN SMALL LETTER N * 209A LATIN SUBSCRIPT SMALL LETTER P * 0070 LATIN SMALL LETTER P * 209B LATIN SUBSCRIPT SMALL LETTER S * 0073 LATIN SMALL LETTER S * 209C LATIN SUBSCRIPT SMALL LETTER T * 0074 LATIN SMALL LETTER T * 20A8 RUPEE SIGN * 0052 LATIN CAPITAL LETTER R * 0073 LATIN SMALL LETTER S * 20D0 COMBINING LEFT HARPOON ABOVE * 0000 * 20D1 COMBINING RIGHT HARPOON ABOVE * 0000 * 20D2 COMBINING LONG VERTICAL LINE OVERLAY * 0000 * 20D3 COMBINING SHORT VERTICAL LINE OVERLAY * 0000 * 20D4 COMBINING ANTICLOCKWISE ARROW ABOVE * 0000 * 20D5 COMBINING CLOCKWISE ARROW ABOVE * 0000 * 20D6 COMBINING LEFT ARROW ABOVE * 0000 * 20D7 COMBINING RIGHT ARROW ABOVE * 0000 * 20D8 COMBINING RING OVERLAY * 0000 * 20D9 COMBINING CLOCKWISE RING OVERLAY * 0000 * 20DA COMBINING ANTICLOCKWISE RING OVERLAY * 0000 * 20DB COMBINING THREE DOTS ABOVE * 0000 * 20DC COMBINING FOUR DOTS ABOVE * 0000 * 20DD COMBINING ENCLOSING CIRCLE * 0000 * 20DE COMBINING ENCLOSING SQUARE * 0000 * 20DF COMBINING ENCLOSING DIAMOND * 0000 * 20E0 COMBINING ENCLOSING CIRCLE BACKSLASH * 0000 * 20E1 COMBINING LEFT RIGHT ARROW ABOVE * 0000 * 20E2 COMBINING ENCLOSING SCREEN * 0000 * 20E3 COMBINING ENCLOSING KEYCAP * 0000 * 20E4 COMBINING ENCLOSING UPWARD POINTING TRIANGLE * 0000 * 20E5 COMBINING REVERSE SOLIDUS OVERLAY * 0000 * 20E6 COMBINING DOUBLE VERTICAL STROKE OVERLAY * 0000 * 20E7 COMBINING ANNUITY SYMBOL * 0000 * 20E8 COMBINING TRIPLE UNDERDOT * 0000 * 20E9 COMBINING WIDE BRIDGE ABOVE * 0000 * 20EA COMBINING LEFTWARDS ARROW OVERLAY * 0000 * 20EB COMBINING LONG DOUBLE SOLIDUS OVERLAY * 0000 * 20EC COMBINING RIGHTWARDS HARPOON WITH BARB DOWNWARDS * 0000 * 20ED COMBINING LEFTWARDS HARPOON WITH BARB DOWNWARDS * 0000 * 20EE COMBINING LEFT ARROW BELOW * 0000 * 20EF COMBINING RIGHT ARROW BELOW * 0000 * 20F0 COMBINING ASTERISK ABOVE * 0000 * 2100 ACCOUNT OF * 0061 LATIN SMALL LETTER A * 002F SOLIDUS * 0063 LATIN SMALL LETTER C * 2101 ADDRESSED TO THE SUBJECT * 0061 LATIN SMALL LETTER A * 002F SOLIDUS * 0073 LATIN SMALL LETTER S * 2102 DOUBLE-STRUCK CAPITAL C * 0043 LATIN CAPITAL LETTER C * 2103 DEGREE CELSIUS * 00B0 DEGREE SIGN * 0043 LATIN CAPITAL LETTER C * 2105 CARE OF * 0063 LATIN SMALL LETTER C * 002F SOLIDUS * 006F LATIN SMALL LETTER O * 2106 CADA UNA * 0063 LATIN SMALL LETTER C * 002F SOLIDUS * 0075 LATIN SMALL LETTER U * 2107 EULER CONSTANT * 0190 LATIN CAPITAL LETTER OPEN E * 2109 DEGREE FAHRENHEIT * 00B0 DEGREE SIGN * 0046 LATIN CAPITAL LETTER F * 210A SCRIPT SMALL G * 0067 LATIN SMALL LETTER G * 210B SCRIPT CAPITAL H * 0048 LATIN CAPITAL LETTER H * 210C BLACK-LETTER CAPITAL H * 0048 LATIN CAPITAL LETTER H * 210D DOUBLE-STRUCK CAPITAL H * 0048 LATIN CAPITAL LETTER H * 210E PLANCK CONSTANT * 0068 LATIN SMALL LETTER H * 210F PLANCK CONSTANT OVER TWO PI * 0127 LATIN SMALL LETTER H WITH STROKE * 2110 SCRIPT CAPITAL I * 0049 LATIN CAPITAL LETTER I * 2111 BLACK-LETTER CAPITAL I * 0049 LATIN CAPITAL LETTER I * 2112 SCRIPT CAPITAL L * 004C LATIN CAPITAL LETTER L * 2113 SCRIPT SMALL L * 006C LATIN SMALL LETTER L * 2115 DOUBLE-STRUCK CAPITAL N * 004E LATIN CAPITAL LETTER N * 2116 NUMERO SIGN * 004E LATIN CAPITAL LETTER N * 006F LATIN SMALL LETTER O * 2119 DOUBLE-STRUCK CAPITAL P * 0050 LATIN CAPITAL LETTER P * 211A DOUBLE-STRUCK CAPITAL Q * 0051 LATIN CAPITAL LETTER Q * 211B SCRIPT CAPITAL R * 0052 LATIN CAPITAL LETTER R * 211C BLACK-LETTER CAPITAL R * 0052 LATIN CAPITAL LETTER R * 211D DOUBLE-STRUCK CAPITAL R * 0052 LATIN CAPITAL LETTER R * 2120 SERVICE MARK * 0053 LATIN CAPITAL LETTER S * 004D LATIN CAPITAL LETTER M * 2121 TELEPHONE SIGN * 0054 LATIN CAPITAL LETTER T * 0045 LATIN CAPITAL LETTER E * 004C LATIN CAPITAL LETTER L * 2122 TRADE MARK SIGN * 0054 LATIN CAPITAL LETTER T * 004D LATIN CAPITAL LETTER M * 2124 DOUBLE-STRUCK CAPITAL Z * 005A LATIN CAPITAL LETTER Z * 2126 OHM SIGN * 03A9 GREEK CAPITAL LETTER OMEGA * 2128 BLACK-LETTER CAPITAL Z * 005A LATIN CAPITAL LETTER Z * 212A KELVIN SIGN * 004B LATIN CAPITAL LETTER K * 212B ANGSTROM SIGN * 0041 LATIN CAPITAL LETTER A * 212C SCRIPT CAPITAL B * 0042 LATIN CAPITAL LETTER B * 212D BLACK-LETTER CAPITAL C * 0043 LATIN CAPITAL LETTER C * 212F SCRIPT SMALL E * 0065 LATIN SMALL LETTER E * 2130 SCRIPT CAPITAL E * 0045 LATIN CAPITAL LETTER E * 2131 SCRIPT CAPITAL F * 0046 LATIN CAPITAL LETTER F * 2133 SCRIPT CAPITAL M * 004D LATIN CAPITAL LETTER M * 2134 SCRIPT SMALL O * 006F LATIN SMALL LETTER O * 2135 ALEF SYMBOL * 05D0 HEBREW LETTER ALEF * 2136 BET SYMBOL * 05D1 HEBREW LETTER BET * 2137 GIMEL SYMBOL * 05D2 HEBREW LETTER GIMEL * 2138 DALET SYMBOL * 05D3 HEBREW LETTER DALET * 2139 INFORMATION SOURCE * 0069 LATIN SMALL LETTER I * 213B FACSIMILE SIGN * 0046 LATIN CAPITAL LETTER F * 0041 LATIN CAPITAL LETTER A * 0058 LATIN CAPITAL LETTER X * 213C DOUBLE-STRUCK SMALL PI * 03C0 GREEK SMALL LETTER PI * 213D DOUBLE-STRUCK SMALL GAMMA * 03B3 GREEK SMALL LETTER GAMMA * 213E DOUBLE-STRUCK CAPITAL GAMMA * 0393 GREEK CAPITAL LETTER GAMMA * 213F DOUBLE-STRUCK CAPITAL PI * 03A0 GREEK CAPITAL LETTER PI * 2140 DOUBLE-STRUCK N-ARY SUMMATION * 2211 N-ARY SUMMATION * 2145 DOUBLE-STRUCK ITALIC CAPITAL D * 0044 LATIN CAPITAL LETTER D * 2146 DOUBLE-STRUCK ITALIC SMALL D * 0064 LATIN SMALL LETTER D * 2147 DOUBLE-STRUCK ITALIC SMALL E * 0065 LATIN SMALL LETTER E * 2148 DOUBLE-STRUCK ITALIC SMALL I * 0069 LATIN SMALL LETTER I * 2149 DOUBLE-STRUCK ITALIC SMALL J * 006A LATIN SMALL LETTER J * 2150 VULGAR FRACTION ONE SEVENTH * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0037 DIGIT SEVEN * 2151 VULGAR FRACTION ONE NINTH * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0039 DIGIT NINE * 2152 VULGAR FRACTION ONE TENTH * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0031 DIGIT ONE * 0030 DIGIT ZERO * 2153 VULGAR FRACTION ONE THIRD * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0033 DIGIT THREE * 2154 VULGAR FRACTION TWO THIRDS * 0032 DIGIT TWO * 2044 FRACTION SLASH * 0033 DIGIT THREE * 2155 VULGAR FRACTION ONE FIFTH * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0035 DIGIT FIVE * 2156 VULGAR FRACTION TWO FIFTHS * 0032 DIGIT TWO * 2044 FRACTION SLASH * 0035 DIGIT FIVE * 2157 VULGAR FRACTION THREE FIFTHS * 0033 DIGIT THREE * 2044 FRACTION SLASH * 0035 DIGIT FIVE * 2158 VULGAR FRACTION FOUR FIFTHS * 0034 DIGIT FOUR * 2044 FRACTION SLASH * 0035 DIGIT FIVE * 2159 VULGAR FRACTION ONE SIXTH * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0036 DIGIT SIX * 215A VULGAR FRACTION FIVE SIXTHS * 0035 DIGIT FIVE * 2044 FRACTION SLASH * 0036 DIGIT SIX * 215B VULGAR FRACTION ONE EIGHTH * 0031 DIGIT ONE * 2044 FRACTION SLASH * 0038 DIGIT EIGHT * 215C VULGAR FRACTION THREE EIGHTHS * 0033 DIGIT THREE * 2044 FRACTION SLASH * 0038 DIGIT EIGHT * 215D VULGAR FRACTION FIVE EIGHTHS * 0035 DIGIT FIVE * 2044 FRACTION SLASH * 0038 DIGIT EIGHT * 215E VULGAR FRACTION SEVEN EIGHTHS * 0037 DIGIT SEVEN * 2044 FRACTION SLASH * 0038 DIGIT EIGHT * 215F FRACTION NUMERATOR ONE * 0031 DIGIT ONE * 2044 FRACTION SLASH * 2160 ROMAN NUMERAL ONE * 0049 LATIN CAPITAL LETTER I * 2161 ROMAN NUMERAL TWO * 0049 LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 2162 ROMAN NUMERAL THREE * 0049 LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 2163 ROMAN NUMERAL FOUR * 0049 LATIN CAPITAL LETTER I * 0056 LATIN CAPITAL LETTER V * 2164 ROMAN NUMERAL FIVE * 0056 LATIN CAPITAL LETTER V * 2165 ROMAN NUMERAL SIX * 0056 LATIN CAPITAL LETTER V * 0049 LATIN CAPITAL LETTER I * 2166 ROMAN NUMERAL SEVEN * 0056 LATIN CAPITAL LETTER V * 0049 LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 2167 ROMAN NUMERAL EIGHT * 0056 LATIN CAPITAL LETTER V * 0049 LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 2168 ROMAN NUMERAL NINE * 0049 LATIN CAPITAL LETTER I * 0058 LATIN CAPITAL LETTER X * 2169 ROMAN NUMERAL TEN * 0058 LATIN CAPITAL LETTER X * 216A ROMAN NUMERAL ELEVEN * 0058 LATIN CAPITAL LETTER X * 0049 LATIN CAPITAL LETTER I * 216B ROMAN NUMERAL TWELVE * 0058 LATIN CAPITAL LETTER X * 0049 LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 216C ROMAN NUMERAL FIFTY * 004C LATIN CAPITAL LETTER L * 216D ROMAN NUMERAL ONE HUNDRED * 0043 LATIN CAPITAL LETTER C * 216E ROMAN NUMERAL FIVE HUNDRED * 0044 LATIN CAPITAL LETTER D * 216F ROMAN NUMERAL ONE THOUSAND * 004D LATIN CAPITAL LETTER M * 2170 SMALL ROMAN NUMERAL ONE * 0069 LATIN SMALL LETTER I * 2171 SMALL ROMAN NUMERAL TWO * 0069 LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 2172 SMALL ROMAN NUMERAL THREE * 0069 LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 2173 SMALL ROMAN NUMERAL FOUR * 0069 LATIN SMALL LETTER I * 0076 LATIN SMALL LETTER V * 2174 SMALL ROMAN NUMERAL FIVE * 0076 LATIN SMALL LETTER V * 2175 SMALL ROMAN NUMERAL SIX * 0076 LATIN SMALL LETTER V * 0069 LATIN SMALL LETTER I * 2176 SMALL ROMAN NUMERAL SEVEN * 0076 LATIN SMALL LETTER V * 0069 LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 2177 SMALL ROMAN NUMERAL EIGHT * 0076 LATIN SMALL LETTER V * 0069 LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 2178 SMALL ROMAN NUMERAL NINE * 0069 LATIN SMALL LETTER I * 0078 LATIN SMALL LETTER X * 2179 SMALL ROMAN NUMERAL TEN * 0078 LATIN SMALL LETTER X * 217A SMALL ROMAN NUMERAL ELEVEN * 0078 LATIN SMALL LETTER X * 0069 LATIN SMALL LETTER I * 217B SMALL ROMAN NUMERAL TWELVE * 0078 LATIN SMALL LETTER X * 0069 LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 217C SMALL ROMAN NUMERAL FIFTY * 006C LATIN SMALL LETTER L * 217D SMALL ROMAN NUMERAL ONE HUNDRED * 0063 LATIN SMALL LETTER C * 217E SMALL ROMAN NUMERAL FIVE HUNDRED * 0064 LATIN SMALL LETTER D * 217F SMALL ROMAN NUMERAL ONE THOUSAND * 006D LATIN SMALL LETTER M * 2189 VULGAR FRACTION ZERO THIRDS * 0030 DIGIT ZERO * 2044 FRACTION SLASH * 0033 DIGIT THREE * 219A LEFTWARDS ARROW WITH STROKE * 2190 LEFTWARDS ARROW * 219B RIGHTWARDS ARROW WITH STROKE * 2192 RIGHTWARDS ARROW * 21AE LEFT RIGHT ARROW WITH STROKE * 2194 LEFT RIGHT ARROW * 21CD LEFTWARDS DOUBLE ARROW WITH STROKE * 21D0 LEFTWARDS DOUBLE ARROW * 21CE LEFT RIGHT DOUBLE ARROW WITH STROKE * 21D4 LEFT RIGHT DOUBLE ARROW * 21CF RIGHTWARDS DOUBLE ARROW WITH STROKE * 21D2 RIGHTWARDS DOUBLE ARROW * 2204 THERE DOES NOT EXIST * 2203 THERE EXISTS * 2209 NOT AN ELEMENT OF * 2208 ELEMENT OF * 220C DOES NOT CONTAIN AS MEMBER * 220B CONTAINS AS MEMBER * 2224 DOES NOT DIVIDE * 2223 DIVIDES * 2226 NOT PARALLEL TO * 2225 PARALLEL TO * 222C DOUBLE INTEGRAL * 222B INTEGRAL * 222B INTEGRAL * 222D TRIPLE INTEGRAL * 222B INTEGRAL * 222B INTEGRAL * 222B INTEGRAL * 222F SURFACE INTEGRAL * 222E CONTOUR INTEGRAL * 222E CONTOUR INTEGRAL * 2230 VOLUME INTEGRAL * 222E CONTOUR INTEGRAL * 222E CONTOUR INTEGRAL * 222E CONTOUR INTEGRAL * 2241 NOT TILDE * 223C TILDE OPERATOR * 2244 NOT ASYMPTOTICALLY EQUAL TO * 2243 ASYMPTOTICALLY EQUAL TO * 2247 NEITHER APPROXIMATELY NOR ACTUALLY EQUAL TO * 2245 APPROXIMATELY EQUAL TO * 2249 NOT ALMOST EQUAL TO * 2248 ALMOST EQUAL TO * 2260 NOT EQUAL TO * 003D EQUALS SIGN * 2262 NOT IDENTICAL TO * 2261 IDENTICAL TO * 226D NOT EQUIVALENT TO * 224D EQUIVALENT TO * 226E NOT LESS-THAN * 003C LESS-THAN SIGN * 226F NOT GREATER-THAN * 003E GREATER-THAN SIGN * 2270 NEITHER LESS-THAN NOR EQUAL TO * 2264 LESS-THAN OR EQUAL TO * 2271 NEITHER GREATER-THAN NOR EQUAL TO * 2265 GREATER-THAN OR EQUAL TO * 2274 NEITHER LESS-THAN NOR EQUIVALENT TO * 2272 LESS-THAN OR EQUIVALENT TO * 2275 NEITHER GREATER-THAN NOR EQUIVALENT TO * 2273 GREATER-THAN OR EQUIVALENT TO * 2278 NEITHER LESS-THAN NOR GREATER-THAN * 2276 LESS-THAN OR GREATER-THAN * 2279 NEITHER GREATER-THAN NOR LESS-THAN * 2277 GREATER-THAN OR LESS-THAN * 2280 DOES NOT PRECEDE * 227A PRECEDES * 2281 DOES NOT SUCCEED * 227B SUCCEEDS * 2284 NOT A SUBSET OF * 2282 SUBSET OF * 2285 NOT A SUPERSET OF * 2283 SUPERSET OF * 2288 NEITHER A SUBSET OF NOR EQUAL TO * 2286 SUBSET OF OR EQUAL TO * 2289 NEITHER A SUPERSET OF NOR EQUAL TO * 2287 SUPERSET OF OR EQUAL TO * 22AC DOES NOT PROVE * 22A2 RIGHT TACK * 22AD NOT TRUE * 22A8 TRUE * 22AE DOES NOT FORCE * 22A9 FORCES * 22AF NEGATED DOUBLE VERTICAL BAR DOUBLE RIGHT TURNSTILE * 22AB DOUBLE VERTICAL BAR DOUBLE RIGHT TURNSTILE * 22E0 DOES NOT PRECEDE OR EQUAL * 227C PRECEDES OR EQUAL TO * 22E1 DOES NOT SUCCEED OR EQUAL * 227D SUCCEEDS OR EQUAL TO * 22E2 NOT SQUARE IMAGE OF OR EQUAL TO * 2291 SQUARE IMAGE OF OR EQUAL TO * 22E3 NOT SQUARE ORIGINAL OF OR EQUAL TO * 2292 SQUARE ORIGINAL OF OR EQUAL TO * 22EA NOT NORMAL SUBGROUP OF * 22B2 NORMAL SUBGROUP OF * 22EB DOES NOT CONTAIN AS NORMAL SUBGROUP * 22B3 CONTAINS AS NORMAL SUBGROUP * 22EC NOT NORMAL SUBGROUP OF OR EQUAL TO * 22B4 NORMAL SUBGROUP OF OR EQUAL TO * 22ED DOES NOT CONTAIN AS NORMAL SUBGROUP OR EQUAL * 22B5 CONTAINS AS NORMAL SUBGROUP OR EQUAL TO * 2329 LEFT-POINTING ANGLE BRACKET * 3008 LEFT ANGLE BRACKET * 232A RIGHT-POINTING ANGLE BRACKET * 3009 RIGHT ANGLE BRACKET * 2460 CIRCLED DIGIT ONE * 0031 DIGIT ONE * 2461 CIRCLED DIGIT TWO * 0032 DIGIT TWO * 2462 CIRCLED DIGIT THREE * 0033 DIGIT THREE * 2463 CIRCLED DIGIT FOUR * 0034 DIGIT FOUR * 2464 CIRCLED DIGIT FIVE * 0035 DIGIT FIVE * 2465 CIRCLED DIGIT SIX * 0036 DIGIT SIX * 2466 CIRCLED DIGIT SEVEN * 0037 DIGIT SEVEN * 2467 CIRCLED DIGIT EIGHT * 0038 DIGIT EIGHT * 2468 CIRCLED DIGIT NINE * 0039 DIGIT NINE * 2469 CIRCLED NUMBER TEN * 0031 DIGIT ONE * 0030 DIGIT ZERO * 246A CIRCLED NUMBER ELEVEN * 0031 DIGIT ONE * 0031 DIGIT ONE * 246B CIRCLED NUMBER TWELVE * 0031 DIGIT ONE * 0032 DIGIT TWO * 246C CIRCLED NUMBER THIRTEEN * 0031 DIGIT ONE * 0033 DIGIT THREE * 246D CIRCLED NUMBER FOURTEEN * 0031 DIGIT ONE * 0034 DIGIT FOUR * 246E CIRCLED NUMBER FIFTEEN * 0031 DIGIT ONE * 0035 DIGIT FIVE * 246F CIRCLED NUMBER SIXTEEN * 0031 DIGIT ONE * 0036 DIGIT SIX * 2470 CIRCLED NUMBER SEVENTEEN * 0031 DIGIT ONE * 0037 DIGIT SEVEN * 2471 CIRCLED NUMBER EIGHTEEN * 0031 DIGIT ONE * 0038 DIGIT EIGHT * 2472 CIRCLED NUMBER NINETEEN * 0031 DIGIT ONE * 0039 DIGIT NINE * 2473 CIRCLED NUMBER TWENTY * 0032 DIGIT TWO * 0030 DIGIT ZERO * 2474 PARENTHESIZED DIGIT ONE * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0029 RIGHT PARENTHESIS * 2475 PARENTHESIZED DIGIT TWO * 0028 LEFT PARENTHESIS * 0032 DIGIT TWO * 0029 RIGHT PARENTHESIS * 2476 PARENTHESIZED DIGIT THREE * 0028 LEFT PARENTHESIS * 0033 DIGIT THREE * 0029 RIGHT PARENTHESIS * 2477 PARENTHESIZED DIGIT FOUR * 0028 LEFT PARENTHESIS * 0034 DIGIT FOUR * 0029 RIGHT PARENTHESIS * 2478 PARENTHESIZED DIGIT FIVE * 0028 LEFT PARENTHESIS * 0035 DIGIT FIVE * 0029 RIGHT PARENTHESIS * 2479 PARENTHESIZED DIGIT SIX * 0028 LEFT PARENTHESIS * 0036 DIGIT SIX * 0029 RIGHT PARENTHESIS * 247A PARENTHESIZED DIGIT SEVEN * 0028 LEFT PARENTHESIS * 0037 DIGIT SEVEN * 0029 RIGHT PARENTHESIS * 247B PARENTHESIZED DIGIT EIGHT * 0028 LEFT PARENTHESIS * 0038 DIGIT EIGHT * 0029 RIGHT PARENTHESIS * 247C PARENTHESIZED DIGIT NINE * 0028 LEFT PARENTHESIS * 0039 DIGIT NINE * 0029 RIGHT PARENTHESIS * 247D PARENTHESIZED NUMBER TEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0030 DIGIT ZERO * 0029 RIGHT PARENTHESIS * 247E PARENTHESIZED NUMBER ELEVEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0031 DIGIT ONE * 0029 RIGHT PARENTHESIS * 247F PARENTHESIZED NUMBER TWELVE * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0032 DIGIT TWO * 0029 RIGHT PARENTHESIS * 2480 PARENTHESIZED NUMBER THIRTEEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0033 DIGIT THREE * 0029 RIGHT PARENTHESIS * 2481 PARENTHESIZED NUMBER FOURTEEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0034 DIGIT FOUR * 0029 RIGHT PARENTHESIS * 2482 PARENTHESIZED NUMBER FIFTEEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0035 DIGIT FIVE * 0029 RIGHT PARENTHESIS * 2483 PARENTHESIZED NUMBER SIXTEEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0036 DIGIT SIX * 0029 RIGHT PARENTHESIS * 2484 PARENTHESIZED NUMBER SEVENTEEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0037 DIGIT SEVEN * 0029 RIGHT PARENTHESIS * 2485 PARENTHESIZED NUMBER EIGHTEEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0038 DIGIT EIGHT * 0029 RIGHT PARENTHESIS * 2486 PARENTHESIZED NUMBER NINETEEN * 0028 LEFT PARENTHESIS * 0031 DIGIT ONE * 0039 DIGIT NINE * 0029 RIGHT PARENTHESIS * 2487 PARENTHESIZED NUMBER TWENTY * 0028 LEFT PARENTHESIS * 0032 DIGIT TWO * 0030 DIGIT ZERO * 0029 RIGHT PARENTHESIS * 2488 DIGIT ONE FULL STOP * 0031 DIGIT ONE * 002E FULL STOP * 2489 DIGIT TWO FULL STOP * 0032 DIGIT TWO * 002E FULL STOP * 248A DIGIT THREE FULL STOP * 0033 DIGIT THREE * 002E FULL STOP * 248B DIGIT FOUR FULL STOP * 0034 DIGIT FOUR * 002E FULL STOP * 248C DIGIT FIVE FULL STOP * 0035 DIGIT FIVE * 002E FULL STOP * 248D DIGIT SIX FULL STOP * 0036 DIGIT SIX * 002E FULL STOP * 248E DIGIT SEVEN FULL STOP * 0037 DIGIT SEVEN * 002E FULL STOP * 248F DIGIT EIGHT FULL STOP * 0038 DIGIT EIGHT * 002E FULL STOP * 2490 DIGIT NINE FULL STOP * 0039 DIGIT NINE * 002E FULL STOP * 2491 NUMBER TEN FULL STOP * 0031 DIGIT ONE * 0030 DIGIT ZERO * 002E FULL STOP * 2492 NUMBER ELEVEN FULL STOP * 0031 DIGIT ONE * 0031 DIGIT ONE * 002E FULL STOP * 2493 NUMBER TWELVE FULL STOP * 0031 DIGIT ONE * 0032 DIGIT TWO * 002E FULL STOP * 2494 NUMBER THIRTEEN FULL STOP * 0031 DIGIT ONE * 0033 DIGIT THREE * 002E FULL STOP * 2495 NUMBER FOURTEEN FULL STOP * 0031 DIGIT ONE * 0034 DIGIT FOUR * 002E FULL STOP * 2496 NUMBER FIFTEEN FULL STOP * 0031 DIGIT ONE * 0035 DIGIT FIVE * 002E FULL STOP * 2497 NUMBER SIXTEEN FULL STOP * 0031 DIGIT ONE * 0036 DIGIT SIX * 002E FULL STOP * 2498 NUMBER SEVENTEEN FULL STOP * 0031 DIGIT ONE * 0037 DIGIT SEVEN * 002E FULL STOP * 2499 NUMBER EIGHTEEN FULL STOP * 0031 DIGIT ONE * 0038 DIGIT EIGHT * 002E FULL STOP * 249A NUMBER NINETEEN FULL STOP * 0031 DIGIT ONE * 0039 DIGIT NINE * 002E FULL STOP * 249B NUMBER TWENTY FULL STOP * 0032 DIGIT TWO * 0030 DIGIT ZERO * 002E FULL STOP * 249C PARENTHESIZED LATIN SMALL LETTER A * 0028 LEFT PARENTHESIS * 0061 LATIN SMALL LETTER A * 0029 RIGHT PARENTHESIS * 249D PARENTHESIZED LATIN SMALL LETTER B * 0028 LEFT PARENTHESIS * 0062 LATIN SMALL LETTER B * 0029 RIGHT PARENTHESIS * 249E PARENTHESIZED LATIN SMALL LETTER C * 0028 LEFT PARENTHESIS * 0063 LATIN SMALL LETTER C * 0029 RIGHT PARENTHESIS * 249F PARENTHESIZED LATIN SMALL LETTER D * 0028 LEFT PARENTHESIS * 0064 LATIN SMALL LETTER D * 0029 RIGHT PARENTHESIS * 24A0 PARENTHESIZED LATIN SMALL LETTER E * 0028 LEFT PARENTHESIS * 0065 LATIN SMALL LETTER E * 0029 RIGHT PARENTHESIS * 24A1 PARENTHESIZED LATIN SMALL LETTER F * 0028 LEFT PARENTHESIS * 0066 LATIN SMALL LETTER F * 0029 RIGHT PARENTHESIS * 24A2 PARENTHESIZED LATIN SMALL LETTER G * 0028 LEFT PARENTHESIS * 0067 LATIN SMALL LETTER G * 0029 RIGHT PARENTHESIS * 24A3 PARENTHESIZED LATIN SMALL LETTER H * 0028 LEFT PARENTHESIS * 0068 LATIN SMALL LETTER H * 0029 RIGHT PARENTHESIS * 24A4 PARENTHESIZED LATIN SMALL LETTER I * 0028 LEFT PARENTHESIS * 0069 LATIN SMALL LETTER I * 0029 RIGHT PARENTHESIS * 24A5 PARENTHESIZED LATIN SMALL LETTER J * 0028 LEFT PARENTHESIS * 006A LATIN SMALL LETTER J * 0029 RIGHT PARENTHESIS * 24A6 PARENTHESIZED LATIN SMALL LETTER K * 0028 LEFT PARENTHESIS * 006B LATIN SMALL LETTER K * 0029 RIGHT PARENTHESIS * 24A7 PARENTHESIZED LATIN SMALL LETTER L * 0028 LEFT PARENTHESIS * 006C LATIN SMALL LETTER L * 0029 RIGHT PARENTHESIS * 24A8 PARENTHESIZED LATIN SMALL LETTER M * 0028 LEFT PARENTHESIS * 006D LATIN SMALL LETTER M * 0029 RIGHT PARENTHESIS * 24A9 PARENTHESIZED LATIN SMALL LETTER N * 0028 LEFT PARENTHESIS * 006E LATIN SMALL LETTER N * 0029 RIGHT PARENTHESIS * 24AA PARENTHESIZED LATIN SMALL LETTER O * 0028 LEFT PARENTHESIS * 006F LATIN SMALL LETTER O * 0029 RIGHT PARENTHESIS * 24AB PARENTHESIZED LATIN SMALL LETTER P * 0028 LEFT PARENTHESIS * 0070 LATIN SMALL LETTER P * 0029 RIGHT PARENTHESIS * 24AC PARENTHESIZED LATIN SMALL LETTER Q * 0028 LEFT PARENTHESIS * 0071 LATIN SMALL LETTER Q * 0029 RIGHT PARENTHESIS * 24AD PARENTHESIZED LATIN SMALL LETTER R * 0028 LEFT PARENTHESIS * 0072 LATIN SMALL LETTER R * 0029 RIGHT PARENTHESIS * 24AE PARENTHESIZED LATIN SMALL LETTER S * 0028 LEFT PARENTHESIS * 0073 LATIN SMALL LETTER S * 0029 RIGHT PARENTHESIS * 24AF PARENTHESIZED LATIN SMALL LETTER T * 0028 LEFT PARENTHESIS * 0074 LATIN SMALL LETTER T * 0029 RIGHT PARENTHESIS * 24B0 PARENTHESIZED LATIN SMALL LETTER U * 0028 LEFT PARENTHESIS * 0075 LATIN SMALL LETTER U * 0029 RIGHT PARENTHESIS * 24B1 PARENTHESIZED LATIN SMALL LETTER V * 0028 LEFT PARENTHESIS * 0076 LATIN SMALL LETTER V * 0029 RIGHT PARENTHESIS * 24B2 PARENTHESIZED LATIN SMALL LETTER W * 0028 LEFT PARENTHESIS * 0077 LATIN SMALL LETTER W * 0029 RIGHT PARENTHESIS * 24B3 PARENTHESIZED LATIN SMALL LETTER X * 0028 LEFT PARENTHESIS * 0078 LATIN SMALL LETTER X * 0029 RIGHT PARENTHESIS * 24B4 PARENTHESIZED LATIN SMALL LETTER Y * 0028 LEFT PARENTHESIS * 0079 LATIN SMALL LETTER Y * 0029 RIGHT PARENTHESIS * 24B5 PARENTHESIZED LATIN SMALL LETTER Z * 0028 LEFT PARENTHESIS * 007A LATIN SMALL LETTER Z * 0029 RIGHT PARENTHESIS * 24B6 CIRCLED LATIN CAPITAL LETTER A * 0041 LATIN CAPITAL LETTER A * 24B7 CIRCLED LATIN CAPITAL LETTER B * 0042 LATIN CAPITAL LETTER B * 24B8 CIRCLED LATIN CAPITAL LETTER C * 0043 LATIN CAPITAL LETTER C * 24B9 CIRCLED LATIN CAPITAL LETTER D * 0044 LATIN CAPITAL LETTER D * 24BA CIRCLED LATIN CAPITAL LETTER E * 0045 LATIN CAPITAL LETTER E * 24BB CIRCLED LATIN CAPITAL LETTER F * 0046 LATIN CAPITAL LETTER F * 24BC CIRCLED LATIN CAPITAL LETTER G * 0047 LATIN CAPITAL LETTER G * 24BD CIRCLED LATIN CAPITAL LETTER H * 0048 LATIN CAPITAL LETTER H * 24BE CIRCLED LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * 24BF CIRCLED LATIN CAPITAL LETTER J * 004A LATIN CAPITAL LETTER J * 24C0 CIRCLED LATIN CAPITAL LETTER K * 004B LATIN CAPITAL LETTER K * 24C1 CIRCLED LATIN CAPITAL LETTER L * 004C LATIN CAPITAL LETTER L * 24C2 CIRCLED LATIN CAPITAL LETTER M * 004D LATIN CAPITAL LETTER M * 24C3 CIRCLED LATIN CAPITAL LETTER N * 004E LATIN CAPITAL LETTER N * 24C4 CIRCLED LATIN CAPITAL LETTER O * 004F LATIN CAPITAL LETTER O * 24C5 CIRCLED LATIN CAPITAL LETTER P * 0050 LATIN CAPITAL LETTER P * 24C6 CIRCLED LATIN CAPITAL LETTER Q * 0051 LATIN CAPITAL LETTER Q * 24C7 CIRCLED LATIN CAPITAL LETTER R * 0052 LATIN CAPITAL LETTER R * 24C8 CIRCLED LATIN CAPITAL LETTER S * 0053 LATIN CAPITAL LETTER S * 24C9 CIRCLED LATIN CAPITAL LETTER T * 0054 LATIN CAPITAL LETTER T * 24CA CIRCLED LATIN CAPITAL LETTER U * 0055 LATIN CAPITAL LETTER U * 24CB CIRCLED LATIN CAPITAL LETTER V * 0056 LATIN CAPITAL LETTER V * 24CC CIRCLED LATIN CAPITAL LETTER W * 0057 LATIN CAPITAL LETTER W * 24CD CIRCLED LATIN CAPITAL LETTER X * 0058 LATIN CAPITAL LETTER X * 24CE CIRCLED LATIN CAPITAL LETTER Y * 0059 LATIN CAPITAL LETTER Y * 24CF CIRCLED LATIN CAPITAL LETTER Z * 005A LATIN CAPITAL LETTER Z * 24D0 CIRCLED LATIN SMALL LETTER A * 0061 LATIN SMALL LETTER A * 24D1 CIRCLED LATIN SMALL LETTER B * 0062 LATIN SMALL LETTER B * 24D2 CIRCLED LATIN SMALL LETTER C * 0063 LATIN SMALL LETTER C * 24D3 CIRCLED LATIN SMALL LETTER D * 0064 LATIN SMALL LETTER D * 24D4 CIRCLED LATIN SMALL LETTER E * 0065 LATIN SMALL LETTER E * 24D5 CIRCLED LATIN SMALL LETTER F * 0066 LATIN SMALL LETTER F * 24D6 CIRCLED LATIN SMALL LETTER G * 0067 LATIN SMALL LETTER G * 24D7 CIRCLED LATIN SMALL LETTER H * 0068 LATIN SMALL LETTER H * 24D8 CIRCLED LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * 24D9 CIRCLED LATIN SMALL LETTER J * 006A LATIN SMALL LETTER J * 24DA CIRCLED LATIN SMALL LETTER K * 006B LATIN SMALL LETTER K * 24DB CIRCLED LATIN SMALL LETTER L * 006C LATIN SMALL LETTER L * 24DC CIRCLED LATIN SMALL LETTER M * 006D LATIN SMALL LETTER M * 24DD CIRCLED LATIN SMALL LETTER N * 006E LATIN SMALL LETTER N * 24DE CIRCLED LATIN SMALL LETTER O * 006F LATIN SMALL LETTER O * 24DF CIRCLED LATIN SMALL LETTER P * 0070 LATIN SMALL LETTER P * 24E0 CIRCLED LATIN SMALL LETTER Q * 0071 LATIN SMALL LETTER Q * 24E1 CIRCLED LATIN SMALL LETTER R * 0072 LATIN SMALL LETTER R * 24E2 CIRCLED LATIN SMALL LETTER S * 0073 LATIN SMALL LETTER S * 24E3 CIRCLED LATIN SMALL LETTER T * 0074 LATIN SMALL LETTER T * 24E4 CIRCLED LATIN SMALL LETTER U * 0075 LATIN SMALL LETTER U * 24E5 CIRCLED LATIN SMALL LETTER V * 0076 LATIN SMALL LETTER V * 24E6 CIRCLED LATIN SMALL LETTER W * 0077 LATIN SMALL LETTER W * 24E7 CIRCLED LATIN SMALL LETTER X * 0078 LATIN SMALL LETTER X * 24E8 CIRCLED LATIN SMALL LETTER Y * 0079 LATIN SMALL LETTER Y * 24E9 CIRCLED LATIN SMALL LETTER Z * 007A LATIN SMALL LETTER Z * 24EA CIRCLED DIGIT ZERO * 0030 DIGIT ZERO * 2A0C QUADRUPLE INTEGRAL OPERATOR * 222B INTEGRAL * 222B INTEGRAL * 222B INTEGRAL * 222B INTEGRAL * 2A74 DOUBLE COLON EQUAL * 003A COLON * 003A COLON * 003D EQUALS SIGN * 2A75 TWO CONSECUTIVE EQUALS SIGNS * 003D EQUALS SIGN * 003D EQUALS SIGN * 2A76 THREE CONSECUTIVE EQUALS SIGNS * 003D EQUALS SIGN * 003D EQUALS SIGN * 003D EQUALS SIGN * 2ADC FORKING * 2ADD NONFORKING * 2C7C LATIN SUBSCRIPT SMALL LETTER J * 006A LATIN SMALL LETTER J * 2C7D MODIFIER LETTER CAPITAL V * 0056 LATIN CAPITAL LETTER V * 2CEF COPTIC COMBINING NI ABOVE * 0000 * 2CF0 COPTIC COMBINING SPIRITUS ASPER * 0000 * 2CF1 COPTIC COMBINING SPIRITUS LENIS * 0000 * 2D6F TIFINAGH MODIFIER LETTER LABIALIZATION MARK * 2D61 TIFINAGH LETTER YAW * 2D7F TIFINAGH CONSONANT JOINER * 0000 * 2DE0 COMBINING CYRILLIC LETTER BE * 0000 * 2DE1 COMBINING CYRILLIC LETTER VE * 0000 * 2DE2 COMBINING CYRILLIC LETTER GHE * 0000 * 2DE3 COMBINING CYRILLIC LETTER DE * 0000 * 2DE4 COMBINING CYRILLIC LETTER ZHE * 0000 * 2DE5 COMBINING CYRILLIC LETTER ZE * 0000 * 2DE6 COMBINING CYRILLIC LETTER KA * 0000 * 2DE7 COMBINING CYRILLIC LETTER EL * 0000 * 2DE8 COMBINING CYRILLIC LETTER EM * 0000 * 2DE9 COMBINING CYRILLIC LETTER EN * 0000 * 2DEA COMBINING CYRILLIC LETTER O * 0000 * 2DEB COMBINING CYRILLIC LETTER PE * 0000 * 2DEC COMBINING CYRILLIC LETTER ER * 0000 * 2DED COMBINING CYRILLIC LETTER ES * 0000 * 2DEE COMBINING CYRILLIC LETTER TE * 0000 * 2DEF COMBINING CYRILLIC LETTER HA * 0000 * 2DF0 COMBINING CYRILLIC LETTER TSE * 0000 * 2DF1 COMBINING CYRILLIC LETTER CHE * 0000 * 2DF2 COMBINING CYRILLIC LETTER SHA * 0000 * 2DF3 COMBINING CYRILLIC LETTER SHCHA * 0000 * 2DF4 COMBINING CYRILLIC LETTER FITA * 0000 * 2DF5 COMBINING CYRILLIC LETTER ES-TE * 0000 * 2DF6 COMBINING CYRILLIC LETTER A * 0000 * 2DF7 COMBINING CYRILLIC LETTER IE * 0000 * 2DF8 COMBINING CYRILLIC LETTER DJERV * 0000 * 2DF9 COMBINING CYRILLIC LETTER MONOGRAPH UK * 0000 * 2DFA COMBINING CYRILLIC LETTER YAT * 0000 * 2DFB COMBINING CYRILLIC LETTER YU * 0000 * 2DFC COMBINING CYRILLIC LETTER IOTIFIED A * 0000 * 2DFD COMBINING CYRILLIC LETTER LITTLE YUS * 0000 * 2DFE COMBINING CYRILLIC LETTER BIG YUS * 0000 * 2DFF COMBINING CYRILLIC LETTER IOTIFIED BIG YUS * 0000 * 2E9F CJK RADICAL MOTHER * 6BCD ?? * 2EF3 CJK RADICAL C-SIMPLIFIED TURTLE * 9F9F ?? * 2F00 KANGXI RADICAL ONE * 4E00 * 2F01 KANGXI RADICAL LINE * 4E28 ?? * 2F02 KANGXI RADICAL DOT * 4E36 ?? * 2F03 KANGXI RADICAL SLASH * 4E3F ?? * 2F04 KANGXI RADICAL SECOND * 4E59 ?? * 2F05 KANGXI RADICAL HOOK * 4E85 ?? * 2F06 KANGXI RADICAL TWO * 4E8C ?? * 2F07 KANGXI RADICAL LID * 4EA0 ?? * 2F08 KANGXI RADICAL MAN * 4EBA ?? * 2F09 KANGXI RADICAL LEGS * 513F ?? * 2F0A KANGXI RADICAL ENTER * 5165 ?? * 2F0B KANGXI RADICAL EIGHT * 516B ?? * 2F0C KANGXI RADICAL DOWN BOX * 5182 ?? * 2F0D KANGXI RADICAL COVER * 5196 ?? * 2F0E KANGXI RADICAL ICE * 51AB ?? * 2F0F KANGXI RADICAL TABLE * 51E0 ?? * 2F10 KANGXI RADICAL OPEN BOX * 51F5 ?? * 2F11 KANGXI RADICAL KNIFE * 5200 ?? * 2F12 KANGXI RADICAL POWER * 529B ?? * 2F13 KANGXI RADICAL WRAP * 52F9 ?? * 2F14 KANGXI RADICAL SPOON * 5315 ?? * 2F15 KANGXI RADICAL RIGHT OPEN BOX * 531A ?? * 2F16 KANGXI RADICAL HIDING ENCLOSURE * 5338 ?? * 2F17 KANGXI RADICAL TEN * 5341 ?? * 2F18 KANGXI RADICAL DIVINATION * 535C ?? * 2F19 KANGXI RADICAL SEAL * 5369 ?? * 2F1A KANGXI RADICAL CLIFF * 5382 ?? * 2F1B KANGXI RADICAL PRIVATE * 53B6 ?? * 2F1C KANGXI RADICAL AGAIN * 53C8 ?? * 2F1D KANGXI RADICAL MOUTH * 53E3 ?? * 2F1E KANGXI RADICAL ENCLOSURE * 56D7 ?? * 2F1F KANGXI RADICAL EARTH * 571F ?? * 2F20 KANGXI RADICAL SCHOLAR * 58EB ?? * 2F21 KANGXI RADICAL GO * 5902 ?? * 2F22 KANGXI RADICAL GO SLOWLY * 590A ?? * 2F23 KANGXI RADICAL EVENING * 5915 ?? * 2F24 KANGXI RADICAL BIG * 5927 ?? * 2F25 KANGXI RADICAL WOMAN * 5973 ?? * 2F26 KANGXI RADICAL CHILD * 5B50 ?? * 2F27 KANGXI RADICAL ROOF * 5B80 ?? * 2F28 KANGXI RADICAL INCH * 5BF8 ?? * 2F29 KANGXI RADICAL SMALL * 5C0F ?? * 2F2A KANGXI RADICAL LAME * 5C22 ?? * 2F2B KANGXI RADICAL CORPSE * 5C38 ?? * 2F2C KANGXI RADICAL SPROUT * 5C6E ?? * 2F2D KANGXI RADICAL MOUNTAIN * 5C71 ?? * 2F2E KANGXI RADICAL RIVER * 5DDB ?? * 2F2F KANGXI RADICAL WORK * 5DE5 ?? * 2F30 KANGXI RADICAL ONESELF * 5DF1 ?? * 2F31 KANGXI RADICAL TURBAN * 5DFE ?? * 2F32 KANGXI RADICAL DRY * 5E72 ?? * 2F33 KANGXI RADICAL SHORT THREAD * 5E7A ?? * 2F34 KANGXI RADICAL DOTTED CLIFF * 5E7F ?? * 2F35 KANGXI RADICAL LONG STRIDE * 5EF4 ?? * 2F36 KANGXI RADICAL TWO HANDS * 5EFE ?? * 2F37 KANGXI RADICAL SHOOT * 5F0B ?? * 2F38 KANGXI RADICAL BOW * 5F13 ?? * 2F39 KANGXI RADICAL SNOUT * 5F50 ?? * 2F3A KANGXI RADICAL BRISTLE * 5F61 ?? * 2F3B KANGXI RADICAL STEP * 5F73 ?? * 2F3C KANGXI RADICAL HEART * 5FC3 ?? * 2F3D KANGXI RADICAL HALBERD * 6208 ?? * 2F3E KANGXI RADICAL DOOR * 6236 ?? * 2F3F KANGXI RADICAL HAND * 624B ?? * 2F40 KANGXI RADICAL BRANCH * 652F ?? * 2F41 KANGXI RADICAL RAP * 6534 ?? * 2F42 KANGXI RADICAL SCRIPT * 6587 ?? * 2F43 KANGXI RADICAL DIPPER * 6597 ?? * 2F44 KANGXI RADICAL AXE * 65A4 ?? * 2F45 KANGXI RADICAL SQUARE * 65B9 ?? * 2F46 KANGXI RADICAL NOT * 65E0 ?? * 2F47 KANGXI RADICAL SUN * 65E5 ?? * 2F48 KANGXI RADICAL SAY * 66F0 ?? * 2F49 KANGXI RADICAL MOON * 6708 ?? * 2F4A KANGXI RADICAL TREE * 6728 ?? * 2F4B KANGXI RADICAL LACK * 6B20 ?? * 2F4C KANGXI RADICAL STOP * 6B62 ?? * 2F4D KANGXI RADICAL DEATH * 6B79 ?? * 2F4E KANGXI RADICAL WEAPON * 6BB3 ?? * 2F4F KANGXI RADICAL DO NOT * 6BCB ?? * 2F50 KANGXI RADICAL COMPARE * 6BD4 ?? * 2F51 KANGXI RADICAL FUR * 6BDB ?? * 2F52 KANGXI RADICAL CLAN * 6C0F ?? * 2F53 KANGXI RADICAL STEAM * 6C14 ?? * 2F54 KANGXI RADICAL WATER * 6C34 ?? * 2F55 KANGXI RADICAL FIRE * 706B ?? * 2F56 KANGXI RADICAL CLAW * 722A ?? * 2F57 KANGXI RADICAL FATHER * 7236 ?? * 2F58 KANGXI RADICAL DOUBLE X * 723B ?? * 2F59 KANGXI RADICAL HALF TREE TRUNK * 723F ?? * 2F5A KANGXI RADICAL SLICE * 7247 ?? * 2F5B KANGXI RADICAL FANG * 7259 ?? * 2F5C KANGXI RADICAL COW * 725B ?? * 2F5D KANGXI RADICAL DOG * 72AC ?? * 2F5E KANGXI RADICAL PROFOUND * 7384 ?? * 2F5F KANGXI RADICAL JADE * 7389 ?? * 2F60 KANGXI RADICAL MELON * 74DC ?? * 2F61 KANGXI RADICAL TILE * 74E6 ?? * 2F62 KANGXI RADICAL SWEET * 7518 ?? * 2F63 KANGXI RADICAL LIFE * 751F ?? * 2F64 KANGXI RADICAL USE * 7528 ?? * 2F65 KANGXI RADICAL FIELD * 7530 ?? * 2F66 KANGXI RADICAL BOLT OF CLOTH * 758B ?? * 2F67 KANGXI RADICAL SICKNESS * 7592 ?? * 2F68 KANGXI RADICAL DOTTED TENT * 7676 ?? * 2F69 KANGXI RADICAL WHITE * 767D ?? * 2F6A KANGXI RADICAL SKIN * 76AE ?? * 2F6B KANGXI RADICAL DISH * 76BF ?? * 2F6C KANGXI RADICAL EYE * 76EE ?? * 2F6D KANGXI RADICAL SPEAR * 77DB ?? * 2F6E KANGXI RADICAL ARROW * 77E2 ?? * 2F6F KANGXI RADICAL STONE * 77F3 ?? * 2F70 KANGXI RADICAL SPIRIT * 793A ?? * 2F71 KANGXI RADICAL TRACK * 79B8 ?? * 2F72 KANGXI RADICAL GRAIN * 79BE ?? * 2F73 KANGXI RADICAL CAVE * 7A74 ?? * 2F74 KANGXI RADICAL STAND * 7ACB ?? * 2F75 KANGXI RADICAL BAMBOO * 7AF9 ?? * 2F76 KANGXI RADICAL RICE * 7C73 ?? * 2F77 KANGXI RADICAL SILK * 7CF8 ?? * 2F78 KANGXI RADICAL JAR * 7F36 ?? * 2F79 KANGXI RADICAL NET * 7F51 ?? * 2F7A KANGXI RADICAL SHEEP * 7F8A ?? * 2F7B KANGXI RADICAL FEATHER * 7FBD ?? * 2F7C KANGXI RADICAL OLD * 8001 ?? * 2F7D KANGXI RADICAL AND * 800C ?? * 2F7E KANGXI RADICAL PLOW * 8012 ?? * 2F7F KANGXI RADICAL EAR * 8033 ?? * 2F80 KANGXI RADICAL BRUSH * 807F ?? * 2F81 KANGXI RADICAL MEAT * 8089 ?? * 2F82 KANGXI RADICAL MINISTER * 81E3 ?? * 2F83 KANGXI RADICAL SELF * 81EA ?? * 2F84 KANGXI RADICAL ARRIVE * 81F3 ?? * 2F85 KANGXI RADICAL MORTAR * 81FC ?? * 2F86 KANGXI RADICAL TONGUE * 820C ?? * 2F87 KANGXI RADICAL OPPOSE * 821B ?? * 2F88 KANGXI RADICAL BOAT * 821F ?? * 2F89 KANGXI RADICAL STOPPING * 826E ?? * 2F8A KANGXI RADICAL COLOR * 8272 ?? * 2F8B KANGXI RADICAL GRASS * 8278 ?? * 2F8C KANGXI RADICAL TIGER * 864D ?? * 2F8D KANGXI RADICAL INSECT * 866B ?? * 2F8E KANGXI RADICAL BLOOD * 8840 ?? * 2F8F KANGXI RADICAL WALK ENCLOSURE * 884C ?? * 2F90 KANGXI RADICAL CLOTHES * 8863 ?? * 2F91 KANGXI RADICAL WEST * 897E ?? * 2F92 KANGXI RADICAL SEE * 898B ?? * 2F93 KANGXI RADICAL HORN * 89D2 ?? * 2F94 KANGXI RADICAL SPEECH * 8A00 ?? * 2F95 KANGXI RADICAL VALLEY * 8C37 ?? * 2F96 KANGXI RADICAL BEAN * 8C46 ?? * 2F97 KANGXI RADICAL PIG * 8C55 ?? * 2F98 KANGXI RADICAL BADGER * 8C78 ?? * 2F99 KANGXI RADICAL SHELL * 8C9D ?? * 2F9A KANGXI RADICAL RED * 8D64 ?? * 2F9B KANGXI RADICAL RUN * 8D70 ?? * 2F9C KANGXI RADICAL FOOT * 8DB3 ?? * 2F9D KANGXI RADICAL BODY * 8EAB ?? * 2F9E KANGXI RADICAL CART * 8ECA ?? * 2F9F KANGXI RADICAL BITTER * 8F9B ?? * 2FA0 KANGXI RADICAL MORNING * 8FB0 ?? * 2FA1 KANGXI RADICAL WALK * 8FB5 ?? * 2FA2 KANGXI RADICAL CITY * 9091 ?? * 2FA3 KANGXI RADICAL WINE * 9149 ?? * 2FA4 KANGXI RADICAL DISTINGUISH * 91C6 ?? * 2FA5 KANGXI RADICAL VILLAGE * 91CC ?? * 2FA6 KANGXI RADICAL GOLD * 91D1 ?? * 2FA7 KANGXI RADICAL LONG * 9577 ?? * 2FA8 KANGXI RADICAL GATE * 9580 ?? * 2FA9 KANGXI RADICAL MOUND * 961C ?? * 2FAA KANGXI RADICAL SLAVE * 96B6 ?? * 2FAB KANGXI RADICAL SHORT TAILED BIRD * 96B9 ?? * 2FAC KANGXI RADICAL RAIN * 96E8 ?? * 2FAD KANGXI RADICAL BLUE * 9751 ?? * 2FAE KANGXI RADICAL WRONG * 975E ?? * 2FAF KANGXI RADICAL FACE * 9762 ?? * 2FB0 KANGXI RADICAL LEATHER * 9769 ?? * 2FB1 KANGXI RADICAL TANNED LEATHER * 97CB ?? * 2FB2 KANGXI RADICAL LEEK * 97ED ?? * 2FB3 KANGXI RADICAL SOUND * 97F3 ?? * 2FB4 KANGXI RADICAL LEAF * 9801 ?? * 2FB5 KANGXI RADICAL WIND * 98A8 ?? * 2FB6 KANGXI RADICAL FLY * 98DB ?? * 2FB7 KANGXI RADICAL EAT * 98DF ?? * 2FB8 KANGXI RADICAL HEAD * 9996 ?? * 2FB9 KANGXI RADICAL FRAGRANT * 9999 ?? * 2FBA KANGXI RADICAL HORSE * 99AC ?? * 2FBB KANGXI RADICAL BONE * 9AA8 ?? * 2FBC KANGXI RADICAL TALL * 9AD8 ?? * 2FBD KANGXI RADICAL HAIR * 9ADF ?? * 2FBE KANGXI RADICAL FIGHT * 9B25 ?? * 2FBF KANGXI RADICAL SACRIFICIAL WINE * 9B2F ?? * 2FC0 KANGXI RADICAL CAULDRON * 9B32 ?? * 2FC1 KANGXI RADICAL GHOST * 9B3C ?? * 2FC2 KANGXI RADICAL FISH * 9B5A ?? * 2FC3 KANGXI RADICAL BIRD * 9CE5 ?? * 2FC4 KANGXI RADICAL SALT * 9E75 ?? * 2FC5 KANGXI RADICAL DEER * 9E7F ?? * 2FC6 KANGXI RADICAL WHEAT * 9EA5 ?? * 2FC7 KANGXI RADICAL HEMP * 9EBB ?? * 2FC8 KANGXI RADICAL YELLOW * 9EC3 ?? * 2FC9 KANGXI RADICAL MILLET * 9ECD ?? * 2FCA KANGXI RADICAL BLACK * 9ED1 ?? * 2FCB KANGXI RADICAL EMBROIDERY * 9EF9 ?? * 2FCC KANGXI RADICAL FROG * 9EFD ?? * 2FCD KANGXI RADICAL TRIPOD * 9F0E ?? * 2FCE KANGXI RADICAL DRUM * 9F13 ?? * 2FCF KANGXI RADICAL RAT * 9F20 ?? * 2FD0 KANGXI RADICAL NOSE * 9F3B ?? * 2FD1 KANGXI RADICAL EVEN * 9F4A ?? * 2FD2 KANGXI RADICAL TOOTH * 9F52 ?? * 2FD3 KANGXI RADICAL DRAGON * 9F8D ?? * 2FD4 KANGXI RADICAL TURTLE * 9F9C ?? * 2FD5 KANGXI RADICAL FLUTE * 9FA0 ?? * 3000 IDEOGRAPHIC SPACE * 0020 SPACE * 302A IDEOGRAPHIC LEVEL TONE MARK * 0000 * 302B IDEOGRAPHIC RISING TONE MARK * 0000 * 302C IDEOGRAPHIC DEPARTING TONE MARK * 0000 * 302D IDEOGRAPHIC ENTERING TONE MARK * 0000 * 302E HANGUL SINGLE DOT TONE MARK * 0000 * 302F HANGUL DOUBLE DOT TONE MARK * 0000 * 3036 CIRCLED POSTAL MARK * 3012 POSTAL MARK * 3038 HANGZHOU NUMERAL TEN * 5341 ?? * 3039 HANGZHOU NUMERAL TWENTY * 5344 ?? * 303A HANGZHOU NUMERAL THIRTY * 5345 ?? * 3131 HANGUL LETTER KIYEOK * 1100 HANGUL CHOSEONG KIYEOK * 3132 HANGUL LETTER SSANGKIYEOK * 1101 HANGUL CHOSEONG SSANGKIYEOK * 3133 HANGUL LETTER KIYEOK-SIOS * 11AA HANGUL JONGSEONG KIYEOK-SIOS * 3134 HANGUL LETTER NIEUN * 1102 HANGUL CHOSEONG NIEUN * 3135 HANGUL LETTER NIEUN-CIEUC * 11AC HANGUL JONGSEONG NIEUN-CIEUC * 3136 HANGUL LETTER NIEUN-HIEUH * 11AD HANGUL JONGSEONG NIEUN-HIEUH * 3137 HANGUL LETTER TIKEUT * 1103 HANGUL CHOSEONG TIKEUT * 3138 HANGUL LETTER SSANGTIKEUT * 1104 HANGUL CHOSEONG SSANGTIKEUT * 3139 HANGUL LETTER RIEUL * 1105 HANGUL CHOSEONG RIEUL * 313A HANGUL LETTER RIEUL-KIYEOK * 11B0 HANGUL JONGSEONG RIEUL-KIYEOK * 313B HANGUL LETTER RIEUL-MIEUM * 11B1 HANGUL JONGSEONG RIEUL-MIEUM * 313C HANGUL LETTER RIEUL-PIEUP * 11B2 HANGUL JONGSEONG RIEUL-PIEUP * 313D HANGUL LETTER RIEUL-SIOS * 11B3 HANGUL JONGSEONG RIEUL-SIOS * 313E HANGUL LETTER RIEUL-THIEUTH * 11B4 HANGUL JONGSEONG RIEUL-THIEUTH * 313F HANGUL LETTER RIEUL-PHIEUPH * 11B5 HANGUL JONGSEONG RIEUL-PHIEUPH * 3140 HANGUL LETTER RIEUL-HIEUH * 111A HANGUL CHOSEONG RIEUL-HIEUH * 3141 HANGUL LETTER MIEUM * 1106 HANGUL CHOSEONG MIEUM * 3142 HANGUL LETTER PIEUP * 1107 HANGUL CHOSEONG PIEUP * 3143 HANGUL LETTER SSANGPIEUP * 1108 HANGUL CHOSEONG SSANGPIEUP * 3144 HANGUL LETTER PIEUP-SIOS * 1121 HANGUL CHOSEONG PIEUP-SIOS * 3145 HANGUL LETTER SIOS * 1109 HANGUL CHOSEONG SIOS * 3146 HANGUL LETTER SSANGSIOS * 110A HANGUL CHOSEONG SSANGSIOS * 3147 HANGUL LETTER IEUNG * 110B HANGUL CHOSEONG IEUNG * 3148 HANGUL LETTER CIEUC * 110C HANGUL CHOSEONG CIEUC * 3149 HANGUL LETTER SSANGCIEUC * 110D HANGUL CHOSEONG SSANGCIEUC * 314A HANGUL LETTER CHIEUCH * 110E HANGUL CHOSEONG CHIEUCH * 314B HANGUL LETTER KHIEUKH * 110F HANGUL CHOSEONG KHIEUKH * 314C HANGUL LETTER THIEUTH * 1110 HANGUL CHOSEONG THIEUTH * 314D HANGUL LETTER PHIEUPH * 1111 HANGUL CHOSEONG PHIEUPH * 314E HANGUL LETTER HIEUH * 1112 HANGUL CHOSEONG HIEUH * 314F HANGUL LETTER A * 1161 HANGUL JUNGSEONG A * 3150 HANGUL LETTER AE * 1162 HANGUL JUNGSEONG AE * 3151 HANGUL LETTER YA * 1163 HANGUL JUNGSEONG YA * 3152 HANGUL LETTER YAE * 1164 HANGUL JUNGSEONG YAE * 3153 HANGUL LETTER EO * 1165 HANGUL JUNGSEONG EO * 3154 HANGUL LETTER E * 1166 HANGUL JUNGSEONG E * 3155 HANGUL LETTER YEO * 1167 HANGUL JUNGSEONG YEO * 3156 HANGUL LETTER YE * 1168 HANGUL JUNGSEONG YE * 3157 HANGUL LETTER O * 1169 HANGUL JUNGSEONG O * 3158 HANGUL LETTER WA * 116A HANGUL JUNGSEONG WA * 3159 HANGUL LETTER WAE * 116B HANGUL JUNGSEONG WAE * 315A HANGUL LETTER OE * 116C HANGUL JUNGSEONG OE * 315B HANGUL LETTER YO * 116D HANGUL JUNGSEONG YO * 315C HANGUL LETTER U * 116E HANGUL JUNGSEONG U * 315D HANGUL LETTER WEO * 116F HANGUL JUNGSEONG WEO * 315E HANGUL LETTER WE * 1170 HANGUL JUNGSEONG WE * 315F HANGUL LETTER WI * 1171 HANGUL JUNGSEONG WI * 3160 HANGUL LETTER YU * 1172 HANGUL JUNGSEONG YU * 3161 HANGUL LETTER EU * 1173 HANGUL JUNGSEONG EU * 3162 HANGUL LETTER YI * 1174 HANGUL JUNGSEONG YI * 3163 HANGUL LETTER I * 1175 HANGUL JUNGSEONG I * 3164 HANGUL FILLER * 1160 HANGUL JUNGSEONG FILLER * 3165 HANGUL LETTER SSANGNIEUN * 1114 HANGUL CHOSEONG SSANGNIEUN * 3166 HANGUL LETTER NIEUN-TIKEUT * 1115 HANGUL CHOSEONG NIEUN-TIKEUT * 3167 HANGUL LETTER NIEUN-SIOS * 11C7 HANGUL JONGSEONG NIEUN-SIOS * 3168 HANGUL LETTER NIEUN-PANSIOS * 11C8 HANGUL JONGSEONG NIEUN-PANSIOS * 3169 HANGUL LETTER RIEUL-KIYEOK-SIOS * 11CC HANGUL JONGSEONG RIEUL-KIYEOK-SIOS * 316A HANGUL LETTER RIEUL-TIKEUT * 11CE HANGUL JONGSEONG RIEUL-TIKEUT * 316B HANGUL LETTER RIEUL-PIEUP-SIOS * 11D3 HANGUL JONGSEONG RIEUL-PIEUP-SIOS * 316C HANGUL LETTER RIEUL-PANSIOS * 11D7 HANGUL JONGSEONG RIEUL-PANSIOS * 316D HANGUL LETTER RIEUL-YEORINHIEUH * 11D9 HANGUL JONGSEONG RIEUL-YEORINHIEUH * 316E HANGUL LETTER MIEUM-PIEUP * 111C HANGUL CHOSEONG MIEUM-PIEUP * 316F HANGUL LETTER MIEUM-SIOS * 11DD HANGUL JONGSEONG MIEUM-SIOS * 3170 HANGUL LETTER MIEUM-PANSIOS * 11DF HANGUL JONGSEONG MIEUM-PANSIOS * 3171 HANGUL LETTER KAPYEOUNMIEUM * 111D HANGUL CHOSEONG KAPYEOUNMIEUM * 3172 HANGUL LETTER PIEUP-KIYEOK * 111E HANGUL CHOSEONG PIEUP-KIYEOK * 3173 HANGUL LETTER PIEUP-TIKEUT * 1120 HANGUL CHOSEONG PIEUP-TIKEUT * 3174 HANGUL LETTER PIEUP-SIOS-KIYEOK * 1122 HANGUL CHOSEONG PIEUP-SIOS-KIYEOK * 3175 HANGUL LETTER PIEUP-SIOS-TIKEUT * 1123 HANGUL CHOSEONG PIEUP-SIOS-TIKEUT * 3176 HANGUL LETTER PIEUP-CIEUC * 1127 HANGUL CHOSEONG PIEUP-CIEUC * 3177 HANGUL LETTER PIEUP-THIEUTH * 1129 HANGUL CHOSEONG PIEUP-THIEUTH * 3178 HANGUL LETTER KAPYEOUNPIEUP * 112B HANGUL CHOSEONG KAPYEOUNPIEUP * 3179 HANGUL LETTER KAPYEOUNSSANGPIEUP * 112C HANGUL CHOSEONG KAPYEOUNSSANGPIEUP * 317A HANGUL LETTER SIOS-KIYEOK * 112D HANGUL CHOSEONG SIOS-KIYEOK * 317B HANGUL LETTER SIOS-NIEUN * 112E HANGUL CHOSEONG SIOS-NIEUN * 317C HANGUL LETTER SIOS-TIKEUT * 112F HANGUL CHOSEONG SIOS-TIKEUT * 317D HANGUL LETTER SIOS-PIEUP * 1132 HANGUL CHOSEONG SIOS-PIEUP * 317E HANGUL LETTER SIOS-CIEUC * 1136 HANGUL CHOSEONG SIOS-CIEUC * 317F HANGUL LETTER PANSIOS * 1140 HANGUL CHOSEONG PANSIOS * 3180 HANGUL LETTER SSANGIEUNG * 1147 HANGUL CHOSEONG SSANGIEUNG * 3181 HANGUL LETTER YESIEUNG * 114C HANGUL CHOSEONG YESIEUNG * 3182 HANGUL LETTER YESIEUNG-SIOS * 11F1 HANGUL JONGSEONG YESIEUNG-SIOS * 3183 HANGUL LETTER YESIEUNG-PANSIOS * 11F2 HANGUL JONGSEONG YESIEUNG-PANSIOS * 3184 HANGUL LETTER KAPYEOUNPHIEUPH * 1157 HANGUL CHOSEONG KAPYEOUNPHIEUPH * 3185 HANGUL LETTER SSANGHIEUH * 1158 HANGUL CHOSEONG SSANGHIEUH * 3186 HANGUL LETTER YEORINHIEUH * 1159 HANGUL CHOSEONG YEORINHIEUH * 3187 HANGUL LETTER YO-YA * 1184 HANGUL JUNGSEONG YO-YA * 3188 HANGUL LETTER YO-YAE * 1185 HANGUL JUNGSEONG YO-YAE * 3189 HANGUL LETTER YO-I * 1188 HANGUL JUNGSEONG YO-I * 318A HANGUL LETTER YU-YEO * 1191 HANGUL JUNGSEONG YU-YEO * 318B HANGUL LETTER YU-YE * 1192 HANGUL JUNGSEONG YU-YE * 318C HANGUL LETTER YU-I * 1194 HANGUL JUNGSEONG YU-I * 318D HANGUL LETTER ARAEA * 119E HANGUL JUNGSEONG ARAEA * 318E HANGUL LETTER ARAEAE * 11A1 HANGUL JUNGSEONG ARAEA-I * 3192 IDEOGRAPHIC ANNOTATION ONE MARK * 4E00 * 3193 IDEOGRAPHIC ANNOTATION TWO MARK * 4E8C ?? * 3194 IDEOGRAPHIC ANNOTATION THREE MARK * 4E09 ?? * 3195 IDEOGRAPHIC ANNOTATION FOUR MARK * 56DB ?? * 3196 IDEOGRAPHIC ANNOTATION TOP MARK * 4E0A ?? * 3197 IDEOGRAPHIC ANNOTATION MIDDLE MARK * 4E2D ?? * 3198 IDEOGRAPHIC ANNOTATION BOTTOM MARK * 4E0B ?? * 3199 IDEOGRAPHIC ANNOTATION FIRST MARK * 7532 ?? * 319A IDEOGRAPHIC ANNOTATION SECOND MARK * 4E59 ?? * 319B IDEOGRAPHIC ANNOTATION THIRD MARK * 4E19 ?? * 319C IDEOGRAPHIC ANNOTATION FOURTH MARK * 4E01 ?? * 319D IDEOGRAPHIC ANNOTATION HEAVEN MARK * 5929 ?? * 319E IDEOGRAPHIC ANNOTATION EARTH MARK * 5730 ?? * 319F IDEOGRAPHIC ANNOTATION MAN MARK * 4EBA ?? * 3200 PARENTHESIZED HANGUL KIYEOK * 0028 LEFT PARENTHESIS * 1100 HANGUL CHOSEONG KIYEOK * 0029 RIGHT PARENTHESIS * 3201 PARENTHESIZED HANGUL NIEUN * 0028 LEFT PARENTHESIS * 1102 HANGUL CHOSEONG NIEUN * 0029 RIGHT PARENTHESIS * 3202 PARENTHESIZED HANGUL TIKEUT * 0028 LEFT PARENTHESIS * 1103 HANGUL CHOSEONG TIKEUT * 0029 RIGHT PARENTHESIS * 3203 PARENTHESIZED HANGUL RIEUL * 0028 LEFT PARENTHESIS * 1105 HANGUL CHOSEONG RIEUL * 0029 RIGHT PARENTHESIS * 3204 PARENTHESIZED HANGUL MIEUM * 0028 LEFT PARENTHESIS * 1106 HANGUL CHOSEONG MIEUM * 0029 RIGHT PARENTHESIS * 3205 PARENTHESIZED HANGUL PIEUP * 0028 LEFT PARENTHESIS * 1107 HANGUL CHOSEONG PIEUP * 0029 RIGHT PARENTHESIS * 3206 PARENTHESIZED HANGUL SIOS * 0028 LEFT PARENTHESIS * 1109 HANGUL CHOSEONG SIOS * 0029 RIGHT PARENTHESIS * 3207 PARENTHESIZED HANGUL IEUNG * 0028 LEFT PARENTHESIS * 110B HANGUL CHOSEONG IEUNG * 0029 RIGHT PARENTHESIS * 3208 PARENTHESIZED HANGUL CIEUC * 0028 LEFT PARENTHESIS * 110C HANGUL CHOSEONG CIEUC * 0029 RIGHT PARENTHESIS * 3209 PARENTHESIZED HANGUL CHIEUCH * 0028 LEFT PARENTHESIS * 110E HANGUL CHOSEONG CHIEUCH * 0029 RIGHT PARENTHESIS * 320A PARENTHESIZED HANGUL KHIEUKH * 0028 LEFT PARENTHESIS * 110F HANGUL CHOSEONG KHIEUKH * 0029 RIGHT PARENTHESIS * 320B PARENTHESIZED HANGUL THIEUTH * 0028 LEFT PARENTHESIS * 1110 HANGUL CHOSEONG THIEUTH * 0029 RIGHT PARENTHESIS * 320C PARENTHESIZED HANGUL PHIEUPH * 0028 LEFT PARENTHESIS * 1111 HANGUL CHOSEONG PHIEUPH * 0029 RIGHT PARENTHESIS * 320D PARENTHESIZED HANGUL HIEUH * 0028 LEFT PARENTHESIS * 1112 HANGUL CHOSEONG HIEUH * 0029 RIGHT PARENTHESIS * 320E PARENTHESIZED HANGUL KIYEOK A * 0028 LEFT PARENTHESIS * 1100 HANGUL CHOSEONG KIYEOK * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 320F PARENTHESIZED HANGUL NIEUN A * 0028 LEFT PARENTHESIS * 1102 HANGUL CHOSEONG NIEUN * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3210 PARENTHESIZED HANGUL TIKEUT A * 0028 LEFT PARENTHESIS * 1103 HANGUL CHOSEONG TIKEUT * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3211 PARENTHESIZED HANGUL RIEUL A * 0028 LEFT PARENTHESIS * 1105 HANGUL CHOSEONG RIEUL * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3212 PARENTHESIZED HANGUL MIEUM A * 0028 LEFT PARENTHESIS * 1106 HANGUL CHOSEONG MIEUM * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3213 PARENTHESIZED HANGUL PIEUP A * 0028 LEFT PARENTHESIS * 1107 HANGUL CHOSEONG PIEUP * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3214 PARENTHESIZED HANGUL SIOS A * 0028 LEFT PARENTHESIS * 1109 HANGUL CHOSEONG SIOS * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3215 PARENTHESIZED HANGUL IEUNG A * 0028 LEFT PARENTHESIS * 110B HANGUL CHOSEONG IEUNG * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3216 PARENTHESIZED HANGUL CIEUC A * 0028 LEFT PARENTHESIS * 110C HANGUL CHOSEONG CIEUC * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3217 PARENTHESIZED HANGUL CHIEUCH A * 0028 LEFT PARENTHESIS * 110E HANGUL CHOSEONG CHIEUCH * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3218 PARENTHESIZED HANGUL KHIEUKH A * 0028 LEFT PARENTHESIS * 110F HANGUL CHOSEONG KHIEUKH * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 3219 PARENTHESIZED HANGUL THIEUTH A * 0028 LEFT PARENTHESIS * 1110 HANGUL CHOSEONG THIEUTH * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 321A PARENTHESIZED HANGUL PHIEUPH A * 0028 LEFT PARENTHESIS * 1111 HANGUL CHOSEONG PHIEUPH * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 321B PARENTHESIZED HANGUL HIEUH A * 0028 LEFT PARENTHESIS * 1112 HANGUL CHOSEONG HIEUH * 1161 HANGUL JUNGSEONG A * 0029 RIGHT PARENTHESIS * 321C PARENTHESIZED HANGUL CIEUC U * 0028 LEFT PARENTHESIS * 110C HANGUL CHOSEONG CIEUC * 116E HANGUL JUNGSEONG U * 0029 RIGHT PARENTHESIS * 321D PARENTHESIZED KOREAN CHARACTER OJEON * 0028 LEFT PARENTHESIS * 110B HANGUL CHOSEONG IEUNG * 1169 HANGUL JUNGSEONG O * 110C HANGUL CHOSEONG CIEUC * 1165 HANGUL JUNGSEONG EO * 11AB HANGUL JONGSEONG NIEUN * 0029 RIGHT PARENTHESIS * 321E PARENTHESIZED KOREAN CHARACTER O HU * 0028 LEFT PARENTHESIS * 110B HANGUL CHOSEONG IEUNG * 1169 HANGUL JUNGSEONG O * 1112 HANGUL CHOSEONG HIEUH * 116E HANGUL JUNGSEONG U * 0029 RIGHT PARENTHESIS * 3220 PARENTHESIZED IDEOGRAPH ONE * 0028 LEFT PARENTHESIS * 4E00 * 0029 RIGHT PARENTHESIS * 3221 PARENTHESIZED IDEOGRAPH TWO * 0028 LEFT PARENTHESIS * 4E8C ?? * 0029 RIGHT PARENTHESIS * 3222 PARENTHESIZED IDEOGRAPH THREE * 0028 LEFT PARENTHESIS * 4E09 ?? * 0029 RIGHT PARENTHESIS * 3223 PARENTHESIZED IDEOGRAPH FOUR * 0028 LEFT PARENTHESIS * 56DB ?? * 0029 RIGHT PARENTHESIS * 3224 PARENTHESIZED IDEOGRAPH FIVE * 0028 LEFT PARENTHESIS * 4E94 ?? * 0029 RIGHT PARENTHESIS * 3225 PARENTHESIZED IDEOGRAPH SIX * 0028 LEFT PARENTHESIS * 516D ?? * 0029 RIGHT PARENTHESIS * 3226 PARENTHESIZED IDEOGRAPH SEVEN * 0028 LEFT PARENTHESIS * 4E03 ?? * 0029 RIGHT PARENTHESIS * 3227 PARENTHESIZED IDEOGRAPH EIGHT * 0028 LEFT PARENTHESIS * 516B ?? * 0029 RIGHT PARENTHESIS * 3228 PARENTHESIZED IDEOGRAPH NINE * 0028 LEFT PARENTHESIS * 4E5D ?? * 0029 RIGHT PARENTHESIS * 3229 PARENTHESIZED IDEOGRAPH TEN * 0028 LEFT PARENTHESIS * 5341 ?? * 0029 RIGHT PARENTHESIS * 322A PARENTHESIZED IDEOGRAPH MOON * 0028 LEFT PARENTHESIS * 6708 ?? * 0029 RIGHT PARENTHESIS * 322B PARENTHESIZED IDEOGRAPH FIRE * 0028 LEFT PARENTHESIS * 706B ?? * 0029 RIGHT PARENTHESIS * 322C PARENTHESIZED IDEOGRAPH WATER * 0028 LEFT PARENTHESIS * 6C34 ?? * 0029 RIGHT PARENTHESIS * 322D PARENTHESIZED IDEOGRAPH WOOD * 0028 LEFT PARENTHESIS * 6728 ?? * 0029 RIGHT PARENTHESIS * 322E PARENTHESIZED IDEOGRAPH METAL * 0028 LEFT PARENTHESIS * 91D1 ?? * 0029 RIGHT PARENTHESIS * 322F PARENTHESIZED IDEOGRAPH EARTH * 0028 LEFT PARENTHESIS * 571F ?? * 0029 RIGHT PARENTHESIS * 3230 PARENTHESIZED IDEOGRAPH SUN * 0028 LEFT PARENTHESIS * 65E5 ?? * 0029 RIGHT PARENTHESIS * 3231 PARENTHESIZED IDEOGRAPH STOCK * 0028 LEFT PARENTHESIS * 682A ?? * 0029 RIGHT PARENTHESIS * 3232 PARENTHESIZED IDEOGRAPH HAVE * 0028 LEFT PARENTHESIS * 6709 ?? * 0029 RIGHT PARENTHESIS * 3233 PARENTHESIZED IDEOGRAPH SOCIETY * 0028 LEFT PARENTHESIS * 793E ?? * 0029 RIGHT PARENTHESIS * 3234 PARENTHESIZED IDEOGRAPH NAME * 0028 LEFT PARENTHESIS * 540D ?? * 0029 RIGHT PARENTHESIS * 3235 PARENTHESIZED IDEOGRAPH SPECIAL * 0028 LEFT PARENTHESIS * 7279 ?? * 0029 RIGHT PARENTHESIS * 3236 PARENTHESIZED IDEOGRAPH FINANCIAL * 0028 LEFT PARENTHESIS * 8CA1 ?? * 0029 RIGHT PARENTHESIS * 3237 PARENTHESIZED IDEOGRAPH CONGRATULATION * 0028 LEFT PARENTHESIS * 795D ?? * 0029 RIGHT PARENTHESIS * 3238 PARENTHESIZED IDEOGRAPH LABOR * 0028 LEFT PARENTHESIS * 52B4 ?? * 0029 RIGHT PARENTHESIS * 3239 PARENTHESIZED IDEOGRAPH REPRESENT * 0028 LEFT PARENTHESIS * 4EE3 ?? * 0029 RIGHT PARENTHESIS * 323A PARENTHESIZED IDEOGRAPH CALL * 0028 LEFT PARENTHESIS * 547C ?? * 0029 RIGHT PARENTHESIS * 323B PARENTHESIZED IDEOGRAPH STUDY * 0028 LEFT PARENTHESIS * 5B66 ?? * 0029 RIGHT PARENTHESIS * 323C PARENTHESIZED IDEOGRAPH SUPERVISE * 0028 LEFT PARENTHESIS * 76E3 ?? * 0029 RIGHT PARENTHESIS * 323D PARENTHESIZED IDEOGRAPH ENTERPRISE * 0028 LEFT PARENTHESIS * 4F01 ?? * 0029 RIGHT PARENTHESIS * 323E PARENTHESIZED IDEOGRAPH RESOURCE * 0028 LEFT PARENTHESIS * 8CC7 ?? * 0029 RIGHT PARENTHESIS * 323F PARENTHESIZED IDEOGRAPH ALLIANCE * 0028 LEFT PARENTHESIS * 5354 ?? * 0029 RIGHT PARENTHESIS * 3240 PARENTHESIZED IDEOGRAPH FESTIVAL * 0028 LEFT PARENTHESIS * 796D ?? * 0029 RIGHT PARENTHESIS * 3241 PARENTHESIZED IDEOGRAPH REST * 0028 LEFT PARENTHESIS * 4F11 ?? * 0029 RIGHT PARENTHESIS * 3242 PARENTHESIZED IDEOGRAPH SELF * 0028 LEFT PARENTHESIS * 81EA ?? * 0029 RIGHT PARENTHESIS * 3243 PARENTHESIZED IDEOGRAPH REACH * 0028 LEFT PARENTHESIS * 81F3 ?? * 0029 RIGHT PARENTHESIS * 3244 CIRCLED IDEOGRAPH QUESTION * 554F ?? * 3245 CIRCLED IDEOGRAPH KINDERGARTEN * 5E7C ?? * 3246 CIRCLED IDEOGRAPH SCHOOL * 6587 ?? * 3247 CIRCLED IDEOGRAPH KOTO * 7B8F ?? * 3250 PARTNERSHIP SIGN * 0050 LATIN CAPITAL LETTER P * 0054 LATIN CAPITAL LETTER T * 0045 LATIN CAPITAL LETTER E * 3251 CIRCLED NUMBER TWENTY ONE * 0032 DIGIT TWO * 0031 DIGIT ONE * 3252 CIRCLED NUMBER TWENTY TWO * 0032 DIGIT TWO * 0032 DIGIT TWO * 3253 CIRCLED NUMBER TWENTY THREE * 0032 DIGIT TWO * 0033 DIGIT THREE * 3254 CIRCLED NUMBER TWENTY FOUR * 0032 DIGIT TWO * 0034 DIGIT FOUR * 3255 CIRCLED NUMBER TWENTY FIVE * 0032 DIGIT TWO * 0035 DIGIT FIVE * 3256 CIRCLED NUMBER TWENTY SIX * 0032 DIGIT TWO * 0036 DIGIT SIX * 3257 CIRCLED NUMBER TWENTY SEVEN * 0032 DIGIT TWO * 0037 DIGIT SEVEN * 3258 CIRCLED NUMBER TWENTY EIGHT * 0032 DIGIT TWO * 0038 DIGIT EIGHT * 3259 CIRCLED NUMBER TWENTY NINE * 0032 DIGIT TWO * 0039 DIGIT NINE * 325A CIRCLED NUMBER THIRTY * 0033 DIGIT THREE * 0030 DIGIT ZERO * 325B CIRCLED NUMBER THIRTY ONE * 0033 DIGIT THREE * 0031 DIGIT ONE * 325C CIRCLED NUMBER THIRTY TWO * 0033 DIGIT THREE * 0032 DIGIT TWO * 325D CIRCLED NUMBER THIRTY THREE * 0033 DIGIT THREE * 0033 DIGIT THREE * 325E CIRCLED NUMBER THIRTY FOUR * 0033 DIGIT THREE * 0034 DIGIT FOUR * 325F CIRCLED NUMBER THIRTY FIVE * 0033 DIGIT THREE * 0035 DIGIT FIVE * 3260 CIRCLED HANGUL KIYEOK * 1100 HANGUL CHOSEONG KIYEOK * 3261 CIRCLED HANGUL NIEUN * 1102 HANGUL CHOSEONG NIEUN * 3262 CIRCLED HANGUL TIKEUT * 1103 HANGUL CHOSEONG TIKEUT * 3263 CIRCLED HANGUL RIEUL * 1105 HANGUL CHOSEONG RIEUL * 3264 CIRCLED HANGUL MIEUM * 1106 HANGUL CHOSEONG MIEUM * 3265 CIRCLED HANGUL PIEUP * 1107 HANGUL CHOSEONG PIEUP * 3266 CIRCLED HANGUL SIOS * 1109 HANGUL CHOSEONG SIOS * 3267 CIRCLED HANGUL IEUNG * 110B HANGUL CHOSEONG IEUNG * 3268 CIRCLED HANGUL CIEUC * 110C HANGUL CHOSEONG CIEUC * 3269 CIRCLED HANGUL CHIEUCH * 110E HANGUL CHOSEONG CHIEUCH * 326A CIRCLED HANGUL KHIEUKH * 110F HANGUL CHOSEONG KHIEUKH * 326B CIRCLED HANGUL THIEUTH * 1110 HANGUL CHOSEONG THIEUTH * 326C CIRCLED HANGUL PHIEUPH * 1111 HANGUL CHOSEONG PHIEUPH * 326D CIRCLED HANGUL HIEUH * 1112 HANGUL CHOSEONG HIEUH * 326E CIRCLED HANGUL KIYEOK A * 1100 HANGUL CHOSEONG KIYEOK * 1161 HANGUL JUNGSEONG A * 326F CIRCLED HANGUL NIEUN A * 1102 HANGUL CHOSEONG NIEUN * 1161 HANGUL JUNGSEONG A * 3270 CIRCLED HANGUL TIKEUT A * 1103 HANGUL CHOSEONG TIKEUT * 1161 HANGUL JUNGSEONG A * 3271 CIRCLED HANGUL RIEUL A * 1105 HANGUL CHOSEONG RIEUL * 1161 HANGUL JUNGSEONG A * 3272 CIRCLED HANGUL MIEUM A * 1106 HANGUL CHOSEONG MIEUM * 1161 HANGUL JUNGSEONG A * 3273 CIRCLED HANGUL PIEUP A * 1107 HANGUL CHOSEONG PIEUP * 1161 HANGUL JUNGSEONG A * 3274 CIRCLED HANGUL SIOS A * 1109 HANGUL CHOSEONG SIOS * 1161 HANGUL JUNGSEONG A * 3275 CIRCLED HANGUL IEUNG A * 110B HANGUL CHOSEONG IEUNG * 1161 HANGUL JUNGSEONG A * 3276 CIRCLED HANGUL CIEUC A * 110C HANGUL CHOSEONG CIEUC * 1161 HANGUL JUNGSEONG A * 3277 CIRCLED HANGUL CHIEUCH A * 110E HANGUL CHOSEONG CHIEUCH * 1161 HANGUL JUNGSEONG A * 3278 CIRCLED HANGUL KHIEUKH A * 110F HANGUL CHOSEONG KHIEUKH * 1161 HANGUL JUNGSEONG A * 3279 CIRCLED HANGUL THIEUTH A * 1110 HANGUL CHOSEONG THIEUTH * 1161 HANGUL JUNGSEONG A * 327A CIRCLED HANGUL PHIEUPH A * 1111 HANGUL CHOSEONG PHIEUPH * 1161 HANGUL JUNGSEONG A * 327B CIRCLED HANGUL HIEUH A * 1112 HANGUL CHOSEONG HIEUH * 1161 HANGUL JUNGSEONG A * 327C CIRCLED KOREAN CHARACTER CHAMKO * 110E HANGUL CHOSEONG CHIEUCH * 1161 HANGUL JUNGSEONG A * 11B7 HANGUL JONGSEONG MIEUM * 1100 HANGUL CHOSEONG KIYEOK * 1169 HANGUL JUNGSEONG O * 327D CIRCLED KOREAN CHARACTER JUEUI * 110C HANGUL CHOSEONG CIEUC * 116E HANGUL JUNGSEONG U * 110B HANGUL CHOSEONG IEUNG * 1174 HANGUL JUNGSEONG YI * 327E CIRCLED HANGUL IEUNG U * 110B HANGUL CHOSEONG IEUNG * 116E HANGUL JUNGSEONG U * 3280 CIRCLED IDEOGRAPH ONE * 4E00 * 3281 CIRCLED IDEOGRAPH TWO * 4E8C ?? * 3282 CIRCLED IDEOGRAPH THREE * 4E09 ?? * 3283 CIRCLED IDEOGRAPH FOUR * 56DB ?? * 3284 CIRCLED IDEOGRAPH FIVE * 4E94 ?? * 3285 CIRCLED IDEOGRAPH SIX * 516D ?? * 3286 CIRCLED IDEOGRAPH SEVEN * 4E03 ?? * 3287 CIRCLED IDEOGRAPH EIGHT * 516B ?? * 3288 CIRCLED IDEOGRAPH NINE * 4E5D ?? * 3289 CIRCLED IDEOGRAPH TEN * 5341 ?? * 328A CIRCLED IDEOGRAPH MOON * 6708 ?? * 328B CIRCLED IDEOGRAPH FIRE * 706B ?? * 328C CIRCLED IDEOGRAPH WATER * 6C34 ?? * 328D CIRCLED IDEOGRAPH WOOD * 6728 ?? * 328E CIRCLED IDEOGRAPH METAL * 91D1 ?? * 328F CIRCLED IDEOGRAPH EARTH * 571F ?? * 3290 CIRCLED IDEOGRAPH SUN * 65E5 ?? * 3291 CIRCLED IDEOGRAPH STOCK * 682A ?? * 3292 CIRCLED IDEOGRAPH HAVE * 6709 ?? * 3293 CIRCLED IDEOGRAPH SOCIETY * 793E ?? * 3294 CIRCLED IDEOGRAPH NAME * 540D ?? * 3295 CIRCLED IDEOGRAPH SPECIAL * 7279 ?? * 3296 CIRCLED IDEOGRAPH FINANCIAL * 8CA1 ?? * 3297 CIRCLED IDEOGRAPH CONGRATULATION * 795D ?? * 3298 CIRCLED IDEOGRAPH LABOR * 52B4 ?? * 3299 CIRCLED IDEOGRAPH SECRET * 79D8 ?? * 329A CIRCLED IDEOGRAPH MALE * 7537 ?? * 329B CIRCLED IDEOGRAPH FEMALE * 5973 ?? * 329C CIRCLED IDEOGRAPH SUITABLE * 9069 ?? * 329D CIRCLED IDEOGRAPH EXCELLENT * 512A ?? * 329E CIRCLED IDEOGRAPH PRINT * 5370 ?? * 329F CIRCLED IDEOGRAPH ATTENTION * 6CE8 ?? * 32A0 CIRCLED IDEOGRAPH ITEM * 9805 ?? * 32A1 CIRCLED IDEOGRAPH REST * 4F11 ?? * 32A2 CIRCLED IDEOGRAPH COPY * 5199 ?? * 32A3 CIRCLED IDEOGRAPH CORRECT * 6B63 ?? * 32A4 CIRCLED IDEOGRAPH HIGH * 4E0A ?? * 32A5 CIRCLED IDEOGRAPH CENTRE * 4E2D ?? * 32A6 CIRCLED IDEOGRAPH LOW * 4E0B ?? * 32A7 CIRCLED IDEOGRAPH LEFT * 5DE6 ?? * 32A8 CIRCLED IDEOGRAPH RIGHT * 53F3 ?? * 32A9 CIRCLED IDEOGRAPH MEDICINE * 533B ?? * 32AA CIRCLED IDEOGRAPH RELIGION * 5B97 ?? * 32AB CIRCLED IDEOGRAPH STUDY * 5B66 ?? * 32AC CIRCLED IDEOGRAPH SUPERVISE * 76E3 ?? * 32AD CIRCLED IDEOGRAPH ENTERPRISE * 4F01 ?? * 32AE CIRCLED IDEOGRAPH RESOURCE * 8CC7 ?? * 32AF CIRCLED IDEOGRAPH ALLIANCE * 5354 ?? * 32B0 CIRCLED IDEOGRAPH NIGHT * 591C ?? * 32B1 CIRCLED NUMBER THIRTY SIX * 0033 DIGIT THREE * 0036 DIGIT SIX * 32B2 CIRCLED NUMBER THIRTY SEVEN * 0033 DIGIT THREE * 0037 DIGIT SEVEN * 32B3 CIRCLED NUMBER THIRTY EIGHT * 0033 DIGIT THREE * 0038 DIGIT EIGHT * 32B4 CIRCLED NUMBER THIRTY NINE * 0033 DIGIT THREE * 0039 DIGIT NINE * 32B5 CIRCLED NUMBER FORTY * 0034 DIGIT FOUR * 0030 DIGIT ZERO * 32B6 CIRCLED NUMBER FORTY ONE * 0034 DIGIT FOUR * 0031 DIGIT ONE * 32B7 CIRCLED NUMBER FORTY TWO * 0034 DIGIT FOUR * 0032 DIGIT TWO * 32B8 CIRCLED NUMBER FORTY THREE * 0034 DIGIT FOUR * 0033 DIGIT THREE * 32B9 CIRCLED NUMBER FORTY FOUR * 0034 DIGIT FOUR * 0034 DIGIT FOUR * 32BA CIRCLED NUMBER FORTY FIVE * 0034 DIGIT FOUR * 0035 DIGIT FIVE * 32BB CIRCLED NUMBER FORTY SIX * 0034 DIGIT FOUR * 0036 DIGIT SIX * 32BC CIRCLED NUMBER FORTY SEVEN * 0034 DIGIT FOUR * 0037 DIGIT SEVEN * 32BD CIRCLED NUMBER FORTY EIGHT * 0034 DIGIT FOUR * 0038 DIGIT EIGHT * 32BE CIRCLED NUMBER FORTY NINE * 0034 DIGIT FOUR * 0039 DIGIT NINE * 32BF CIRCLED NUMBER FIFTY * 0035 DIGIT FIVE * 0030 DIGIT ZERO * 32C0 IDEOGRAPHIC TELEGRAPH SYMBOL FOR JANUARY * 0031 DIGIT ONE * 6708 ?? * 32C1 IDEOGRAPHIC TELEGRAPH SYMBOL FOR FEBRUARY * 0032 DIGIT TWO * 6708 ?? * 32C2 IDEOGRAPHIC TELEGRAPH SYMBOL FOR MARCH * 0033 DIGIT THREE * 6708 ?? * 32C3 IDEOGRAPHIC TELEGRAPH SYMBOL FOR APRIL * 0034 DIGIT FOUR * 6708 ?? * 32C4 IDEOGRAPHIC TELEGRAPH SYMBOL FOR MAY * 0035 DIGIT FIVE * 6708 ?? * 32C5 IDEOGRAPHIC TELEGRAPH SYMBOL FOR JUNE * 0036 DIGIT SIX * 6708 ?? * 32C6 IDEOGRAPHIC TELEGRAPH SYMBOL FOR JULY * 0037 DIGIT SEVEN * 6708 ?? * 32C7 IDEOGRAPHIC TELEGRAPH SYMBOL FOR AUGUST * 0038 DIGIT EIGHT * 6708 ?? * 32C8 IDEOGRAPHIC TELEGRAPH SYMBOL FOR SEPTEMBER * 0039 DIGIT NINE * 6708 ?? * 32C9 IDEOGRAPHIC TELEGRAPH SYMBOL FOR OCTOBER * 0031 DIGIT ONE * 0030 DIGIT ZERO * 6708 ?? * 32CA IDEOGRAPHIC TELEGRAPH SYMBOL FOR NOVEMBER * 0031 DIGIT ONE * 0031 DIGIT ONE * 6708 ?? * 32CB IDEOGRAPHIC TELEGRAPH SYMBOL FOR DECEMBER * 0031 DIGIT ONE * 0032 DIGIT TWO * 6708 ?? * 32CC SQUARE HG * 0048 LATIN CAPITAL LETTER H * 0067 LATIN SMALL LETTER G * 32CD SQUARE ERG * 0065 LATIN SMALL LETTER E * 0072 LATIN SMALL LETTER R * 0067 LATIN SMALL LETTER G * 32CE SQUARE EV * 0065 LATIN SMALL LETTER E * 0056 LATIN CAPITAL LETTER V * 32CF LIMITED LIABILITY SIGN * 004C LATIN CAPITAL LETTER L * 0054 LATIN CAPITAL LETTER T * 0044 LATIN CAPITAL LETTER D * 32D0 CIRCLED KATAKANA A * 30A2 KATAKANA LETTER A * 32D1 CIRCLED KATAKANA I * 30A4 KATAKANA LETTER I * 32D2 CIRCLED KATAKANA U * 30A6 KATAKANA LETTER U * 32D3 CIRCLED KATAKANA E * 30A8 KATAKANA LETTER E * 32D4 CIRCLED KATAKANA O * 30AA KATAKANA LETTER O * 32D5 CIRCLED KATAKANA KA * 30AB KATAKANA LETTER KA * 32D6 CIRCLED KATAKANA KI * 30AD KATAKANA LETTER KI * 32D7 CIRCLED KATAKANA KU * 30AF KATAKANA LETTER KU * 32D8 CIRCLED KATAKANA KE * 30B1 KATAKANA LETTER KE * 32D9 CIRCLED KATAKANA KO * 30B3 KATAKANA LETTER KO * 32DA CIRCLED KATAKANA SA * 30B5 KATAKANA LETTER SA * 32DB CIRCLED KATAKANA SI * 30B7 KATAKANA LETTER SI * 32DC CIRCLED KATAKANA SU * 30B9 KATAKANA LETTER SU * 32DD CIRCLED KATAKANA SE * 30BB KATAKANA LETTER SE * 32DE CIRCLED KATAKANA SO * 30BD KATAKANA LETTER SO * 32DF CIRCLED KATAKANA TA * 30BF KATAKANA LETTER TA * 32E0 CIRCLED KATAKANA TI * 30C1 KATAKANA LETTER TI * 32E1 CIRCLED KATAKANA TU * 30C4 KATAKANA LETTER TU * 32E2 CIRCLED KATAKANA TE * 30C6 KATAKANA LETTER TE * 32E3 CIRCLED KATAKANA TO * 30C8 KATAKANA LETTER TO * 32E4 CIRCLED KATAKANA NA * 30CA KATAKANA LETTER NA * 32E5 CIRCLED KATAKANA NI * 30CB KATAKANA LETTER NI * 32E6 CIRCLED KATAKANA NU * 30CC KATAKANA LETTER NU * 32E7 CIRCLED KATAKANA NE * 30CD KATAKANA LETTER NE * 32E8 CIRCLED KATAKANA NO * 30CE KATAKANA LETTER NO * 32E9 CIRCLED KATAKANA HA * 30CF KATAKANA LETTER HA * 32EA CIRCLED KATAKANA HI * 30D2 KATAKANA LETTER HI * 32EB CIRCLED KATAKANA HU * 30D5 KATAKANA LETTER HU * 32EC CIRCLED KATAKANA HE * 30D8 KATAKANA LETTER HE * 32ED CIRCLED KATAKANA HO * 30DB KATAKANA LETTER HO * 32EE CIRCLED KATAKANA MA * 30DE KATAKANA LETTER MA * 32EF CIRCLED KATAKANA MI * 30DF KATAKANA LETTER MI * 32F0 CIRCLED KATAKANA MU * 30E0 KATAKANA LETTER MU * 32F1 CIRCLED KATAKANA ME * 30E1 KATAKANA LETTER ME * 32F2 CIRCLED KATAKANA MO * 30E2 KATAKANA LETTER MO * 32F3 CIRCLED KATAKANA YA * 30E4 KATAKANA LETTER YA * 32F4 CIRCLED KATAKANA YU * 30E6 KATAKANA LETTER YU * 32F5 CIRCLED KATAKANA YO * 30E8 KATAKANA LETTER YO * 32F6 CIRCLED KATAKANA RA * 30E9 KATAKANA LETTER RA * 32F7 CIRCLED KATAKANA RI * 30EA KATAKANA LETTER RI * 32F8 CIRCLED KATAKANA RU * 30EB KATAKANA LETTER RU * 32F9 CIRCLED KATAKANA RE * 30EC KATAKANA LETTER RE * 32FA CIRCLED KATAKANA RO * 30ED KATAKANA LETTER RO * 32FB CIRCLED KATAKANA WA * 30EF KATAKANA LETTER WA * 32FC CIRCLED KATAKANA WI * 30F0 KATAKANA LETTER WI * 32FD CIRCLED KATAKANA WE * 30F1 KATAKANA LETTER WE * 32FE CIRCLED KATAKANA WO * 30F2 KATAKANA LETTER WO * 3300 SQUARE APAATO * 30A2 KATAKANA LETTER A * 30D1 KATAKANA LETTER PA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30C8 KATAKANA LETTER TO * 3301 SQUARE ARUHUA * 30A2 KATAKANA LETTER A * 30EB KATAKANA LETTER RU * 30D5 KATAKANA LETTER HU * 30A1 KATAKANA LETTER SMALL A * 3302 SQUARE ANPEA * 30A2 KATAKANA LETTER A * 30F3 KATAKANA LETTER N * 30DA KATAKANA LETTER PE * 30A2 KATAKANA LETTER A * 3303 SQUARE AARU * 30A2 KATAKANA LETTER A * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30EB KATAKANA LETTER RU * 3304 SQUARE ININGU * 30A4 KATAKANA LETTER I * 30CB KATAKANA LETTER NI * 30F3 KATAKANA LETTER N * 30B0 KATAKANA LETTER GU * 3305 SQUARE INTI * 30A4 KATAKANA LETTER I * 30F3 KATAKANA LETTER N * 30C1 KATAKANA LETTER TI * 3306 SQUARE UON * 30A6 KATAKANA LETTER U * 30A9 KATAKANA LETTER SMALL O * 30F3 KATAKANA LETTER N * 3307 SQUARE ESUKUUDO * 30A8 KATAKANA LETTER E * 30B9 KATAKANA LETTER SU * 30AF KATAKANA LETTER KU * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30C9 KATAKANA LETTER DO * 3308 SQUARE EEKAA * 30A8 KATAKANA LETTER E * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30AB KATAKANA LETTER KA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 3309 SQUARE ONSU * 30AA KATAKANA LETTER O * 30F3 KATAKANA LETTER N * 30B9 KATAKANA LETTER SU * 330A SQUARE OOMU * 30AA KATAKANA LETTER O * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30E0 KATAKANA LETTER MU * 330B SQUARE KAIRI * 30AB KATAKANA LETTER KA * 30A4 KATAKANA LETTER I * 30EA KATAKANA LETTER RI * 330C SQUARE KARATTO * 30AB KATAKANA LETTER KA * 30E9 KATAKANA LETTER RA * 30C3 KATAKANA LETTER SMALL TU * 30C8 KATAKANA LETTER TO * 330D SQUARE KARORII * 30AB KATAKANA LETTER KA * 30ED KATAKANA LETTER RO * 30EA KATAKANA LETTER RI * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 330E SQUARE GARON * 30AC KATAKANA LETTER GA * 30ED KATAKANA LETTER RO * 30F3 KATAKANA LETTER N * 330F SQUARE GANMA * 30AC KATAKANA LETTER GA * 30F3 KATAKANA LETTER N * 30DE KATAKANA LETTER MA * 3310 SQUARE GIGA * 30AE KATAKANA LETTER GI * 30AC KATAKANA LETTER GA * 3311 SQUARE GINII * 30AE KATAKANA LETTER GI * 30CB KATAKANA LETTER NI * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 3312 SQUARE KYURII * 30AD KATAKANA LETTER KI * 30E5 KATAKANA LETTER SMALL YU * 30EA KATAKANA LETTER RI * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 3313 SQUARE GIRUDAA * 30AE KATAKANA LETTER GI * 30EB KATAKANA LETTER RU * 30C0 KATAKANA LETTER DA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 3314 SQUARE KIRO * 30AD KATAKANA LETTER KI * 30ED KATAKANA LETTER RO * 3315 SQUARE KIROGURAMU * 30AD KATAKANA LETTER KI * 30ED KATAKANA LETTER RO * 30B0 KATAKANA LETTER GU * 30E9 KATAKANA LETTER RA * 30E0 KATAKANA LETTER MU * 3316 SQUARE KIROMEETORU * 30AD KATAKANA LETTER KI * 30ED KATAKANA LETTER RO * 30E1 KATAKANA LETTER ME * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30C8 KATAKANA LETTER TO * 30EB KATAKANA LETTER RU * 3317 SQUARE KIROWATTO * 30AD KATAKANA LETTER KI * 30ED KATAKANA LETTER RO * 30EF KATAKANA LETTER WA * 30C3 KATAKANA LETTER SMALL TU * 30C8 KATAKANA LETTER TO * 3318 SQUARE GURAMU * 30B0 KATAKANA LETTER GU * 30E9 KATAKANA LETTER RA * 30E0 KATAKANA LETTER MU * 3319 SQUARE GURAMUTON * 30B0 KATAKANA LETTER GU * 30E9 KATAKANA LETTER RA * 30E0 KATAKANA LETTER MU * 30C8 KATAKANA LETTER TO * 30F3 KATAKANA LETTER N * 331A SQUARE KURUZEIRO * 30AF KATAKANA LETTER KU * 30EB KATAKANA LETTER RU * 30BC KATAKANA LETTER ZE * 30A4 KATAKANA LETTER I * 30ED KATAKANA LETTER RO * 331B SQUARE KUROONE * 30AF KATAKANA LETTER KU * 30ED KATAKANA LETTER RO * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30CD KATAKANA LETTER NE * 331C SQUARE KEESU * 30B1 KATAKANA LETTER KE * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30B9 KATAKANA LETTER SU * 331D SQUARE KORUNA * 30B3 KATAKANA LETTER KO * 30EB KATAKANA LETTER RU * 30CA KATAKANA LETTER NA * 331E SQUARE KOOPO * 30B3 KATAKANA LETTER KO * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30DD KATAKANA LETTER PO * 331F SQUARE SAIKURU * 30B5 KATAKANA LETTER SA * 30A4 KATAKANA LETTER I * 30AF KATAKANA LETTER KU * 30EB KATAKANA LETTER RU * 3320 SQUARE SANTIIMU * 30B5 KATAKANA LETTER SA * 30F3 KATAKANA LETTER N * 30C1 KATAKANA LETTER TI * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30E0 KATAKANA LETTER MU * 3321 SQUARE SIRINGU * 30B7 KATAKANA LETTER SI * 30EA KATAKANA LETTER RI * 30F3 KATAKANA LETTER N * 30B0 KATAKANA LETTER GU * 3322 SQUARE SENTI * 30BB KATAKANA LETTER SE * 30F3 KATAKANA LETTER N * 30C1 KATAKANA LETTER TI * 3323 SQUARE SENTO * 30BB KATAKANA LETTER SE * 30F3 KATAKANA LETTER N * 30C8 KATAKANA LETTER TO * 3324 SQUARE DAASU * 30C0 KATAKANA LETTER DA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30B9 KATAKANA LETTER SU * 3325 SQUARE DESI * 30C7 KATAKANA LETTER DE * 30B7 KATAKANA LETTER SI * 3326 SQUARE DORU * 30C9 KATAKANA LETTER DO * 30EB KATAKANA LETTER RU * 3327 SQUARE TON * 30C8 KATAKANA LETTER TO * 30F3 KATAKANA LETTER N * 3328 SQUARE NANO * 30CA KATAKANA LETTER NA * 30CE KATAKANA LETTER NO * 3329 SQUARE NOTTO * 30CE KATAKANA LETTER NO * 30C3 KATAKANA LETTER SMALL TU * 30C8 KATAKANA LETTER TO * 332A SQUARE HAITU * 30CF KATAKANA LETTER HA * 30A4 KATAKANA LETTER I * 30C4 KATAKANA LETTER TU * 332B SQUARE PAASENTO * 30D1 KATAKANA LETTER PA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30BB KATAKANA LETTER SE * 30F3 KATAKANA LETTER N * 30C8 KATAKANA LETTER TO * 332C SQUARE PAATU * 30D1 KATAKANA LETTER PA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30C4 KATAKANA LETTER TU * 332D SQUARE BAARERU * 30D0 KATAKANA LETTER BA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30EC KATAKANA LETTER RE * 30EB KATAKANA LETTER RU * 332E SQUARE PIASUTORU * 30D4 KATAKANA LETTER PI * 30A2 KATAKANA LETTER A * 30B9 KATAKANA LETTER SU * 30C8 KATAKANA LETTER TO * 30EB KATAKANA LETTER RU * 332F SQUARE PIKURU * 30D4 KATAKANA LETTER PI * 30AF KATAKANA LETTER KU * 30EB KATAKANA LETTER RU * 3330 SQUARE PIKO * 30D4 KATAKANA LETTER PI * 30B3 KATAKANA LETTER KO * 3331 SQUARE BIRU * 30D3 KATAKANA LETTER BI * 30EB KATAKANA LETTER RU * 3332 SQUARE HUARADDO * 30D5 KATAKANA LETTER HU * 30A1 KATAKANA LETTER SMALL A * 30E9 KATAKANA LETTER RA * 30C3 KATAKANA LETTER SMALL TU * 30C9 KATAKANA LETTER DO * 3333 SQUARE HUIITO * 30D5 KATAKANA LETTER HU * 30A3 KATAKANA LETTER SMALL I * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30C8 KATAKANA LETTER TO * 3334 SQUARE BUSSYERU * 30D6 KATAKANA LETTER BU * 30C3 KATAKANA LETTER SMALL TU * 30B7 KATAKANA LETTER SI * 30A7 KATAKANA LETTER SMALL E * 30EB KATAKANA LETTER RU * 3335 SQUARE HURAN * 30D5 KATAKANA LETTER HU * 30E9 KATAKANA LETTER RA * 30F3 KATAKANA LETTER N * 3336 SQUARE HEKUTAARU * 30D8 KATAKANA LETTER HE * 30AF KATAKANA LETTER KU * 30BF KATAKANA LETTER TA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30EB KATAKANA LETTER RU * 3337 SQUARE PESO * 30DA KATAKANA LETTER PE * 30BD KATAKANA LETTER SO * 3338 SQUARE PENIHI * 30DA KATAKANA LETTER PE * 30CB KATAKANA LETTER NI * 30D2 KATAKANA LETTER HI * 3339 SQUARE HERUTU * 30D8 KATAKANA LETTER HE * 30EB KATAKANA LETTER RU * 30C4 KATAKANA LETTER TU * 333A SQUARE PENSU * 30DA KATAKANA LETTER PE * 30F3 KATAKANA LETTER N * 30B9 KATAKANA LETTER SU * 333B SQUARE PEEZI * 30DA KATAKANA LETTER PE * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30B8 KATAKANA LETTER ZI * 333C SQUARE BEETA * 30D9 KATAKANA LETTER BE * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30BF KATAKANA LETTER TA * 333D SQUARE POINTO * 30DD KATAKANA LETTER PO * 30A4 KATAKANA LETTER I * 30F3 KATAKANA LETTER N * 30C8 KATAKANA LETTER TO * 333E SQUARE BORUTO * 30DC KATAKANA LETTER BO * 30EB KATAKANA LETTER RU * 30C8 KATAKANA LETTER TO * 333F SQUARE HON * 30DB KATAKANA LETTER HO * 30F3 KATAKANA LETTER N * 3340 SQUARE PONDO * 30DD KATAKANA LETTER PO * 30F3 KATAKANA LETTER N * 30C9 KATAKANA LETTER DO * 3341 SQUARE HOORU * 30DB KATAKANA LETTER HO * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30EB KATAKANA LETTER RU * 3342 SQUARE HOON * 30DB KATAKANA LETTER HO * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30F3 KATAKANA LETTER N * 3343 SQUARE MAIKURO * 30DE KATAKANA LETTER MA * 30A4 KATAKANA LETTER I * 30AF KATAKANA LETTER KU * 30ED KATAKANA LETTER RO * 3344 SQUARE MAIRU * 30DE KATAKANA LETTER MA * 30A4 KATAKANA LETTER I * 30EB KATAKANA LETTER RU * 3345 SQUARE MAHHA * 30DE KATAKANA LETTER MA * 30C3 KATAKANA LETTER SMALL TU * 30CF KATAKANA LETTER HA * 3346 SQUARE MARUKU * 30DE KATAKANA LETTER MA * 30EB KATAKANA LETTER RU * 30AF KATAKANA LETTER KU * 3347 SQUARE MANSYON * 30DE KATAKANA LETTER MA * 30F3 KATAKANA LETTER N * 30B7 KATAKANA LETTER SI * 30E7 KATAKANA LETTER SMALL YO * 30F3 KATAKANA LETTER N * 3348 SQUARE MIKURON * 30DF KATAKANA LETTER MI * 30AF KATAKANA LETTER KU * 30ED KATAKANA LETTER RO * 30F3 KATAKANA LETTER N * 3349 SQUARE MIRI * 30DF KATAKANA LETTER MI * 30EA KATAKANA LETTER RI * 334A SQUARE MIRIBAARU * 30DF KATAKANA LETTER MI * 30EA KATAKANA LETTER RI * 30D0 KATAKANA LETTER BA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30EB KATAKANA LETTER RU * 334B SQUARE MEGA * 30E1 KATAKANA LETTER ME * 30AC KATAKANA LETTER GA * 334C SQUARE MEGATON * 30E1 KATAKANA LETTER ME * 30AC KATAKANA LETTER GA * 30C8 KATAKANA LETTER TO * 30F3 KATAKANA LETTER N * 334D SQUARE MEETORU * 30E1 KATAKANA LETTER ME * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30C8 KATAKANA LETTER TO * 30EB KATAKANA LETTER RU * 334E SQUARE YAADO * 30E4 KATAKANA LETTER YA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30C9 KATAKANA LETTER DO * 334F SQUARE YAARU * 30E4 KATAKANA LETTER YA * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30EB KATAKANA LETTER RU * 3350 SQUARE YUAN * 30E6 KATAKANA LETTER YU * 30A2 KATAKANA LETTER A * 30F3 KATAKANA LETTER N * 3351 SQUARE RITTORU * 30EA KATAKANA LETTER RI * 30C3 KATAKANA LETTER SMALL TU * 30C8 KATAKANA LETTER TO * 30EB KATAKANA LETTER RU * 3352 SQUARE RIRA * 30EA KATAKANA LETTER RI * 30E9 KATAKANA LETTER RA * 3353 SQUARE RUPII * 30EB KATAKANA LETTER RU * 30D4 KATAKANA LETTER PI * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 3354 SQUARE RUUBURU * 30EB KATAKANA LETTER RU * 30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK * 30D6 KATAKANA LETTER BU * 30EB KATAKANA LETTER RU * 3355 SQUARE REMU * 30EC KATAKANA LETTER RE * 30E0 KATAKANA LETTER MU * 3356 SQUARE RENTOGEN * 30EC KATAKANA LETTER RE * 30F3 KATAKANA LETTER N * 30C8 KATAKANA LETTER TO * 30B2 KATAKANA LETTER GE * 30F3 KATAKANA LETTER N * 3357 SQUARE WATTO * 30EF KATAKANA LETTER WA * 30C3 KATAKANA LETTER SMALL TU * 30C8 KATAKANA LETTER TO * 3358 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR ZERO * 0030 DIGIT ZERO * 70B9 ?? * 3359 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR ONE * 0031 DIGIT ONE * 70B9 ?? * 335A IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TWO * 0032 DIGIT TWO * 70B9 ?? * 335B IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR THREE * 0033 DIGIT THREE * 70B9 ?? * 335C IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR FOUR * 0034 DIGIT FOUR * 70B9 ?? * 335D IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR FIVE * 0035 DIGIT FIVE * 70B9 ?? * 335E IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR SIX * 0036 DIGIT SIX * 70B9 ?? * 335F IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR SEVEN * 0037 DIGIT SEVEN * 70B9 ?? * 3360 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR EIGHT * 0038 DIGIT EIGHT * 70B9 ?? * 3361 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR NINE * 0039 DIGIT NINE * 70B9 ?? * 3362 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TEN * 0031 DIGIT ONE * 0030 DIGIT ZERO * 70B9 ?? * 3363 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR ELEVEN * 0031 DIGIT ONE * 0031 DIGIT ONE * 70B9 ?? * 3364 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TWELVE * 0031 DIGIT ONE * 0032 DIGIT TWO * 70B9 ?? * 3365 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR THIRTEEN * 0031 DIGIT ONE * 0033 DIGIT THREE * 70B9 ?? * 3366 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR FOURTEEN * 0031 DIGIT ONE * 0034 DIGIT FOUR * 70B9 ?? * 3367 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR FIFTEEN * 0031 DIGIT ONE * 0035 DIGIT FIVE * 70B9 ?? * 3368 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR SIXTEEN * 0031 DIGIT ONE * 0036 DIGIT SIX * 70B9 ?? * 3369 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR SEVENTEEN * 0031 DIGIT ONE * 0037 DIGIT SEVEN * 70B9 ?? * 336A IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR EIGHTEEN * 0031 DIGIT ONE * 0038 DIGIT EIGHT * 70B9 ?? * 336B IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR NINETEEN * 0031 DIGIT ONE * 0039 DIGIT NINE * 70B9 ?? * 336C IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TWENTY * 0032 DIGIT TWO * 0030 DIGIT ZERO * 70B9 ?? * 336D IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TWENTY-ONE * 0032 DIGIT TWO * 0031 DIGIT ONE * 70B9 ?? * 336E IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TWENTY-TWO * 0032 DIGIT TWO * 0032 DIGIT TWO * 70B9 ?? * 336F IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TWENTY-THREE * 0032 DIGIT TWO * 0033 DIGIT THREE * 70B9 ?? * 3370 IDEOGRAPHIC TELEGRAPH SYMBOL FOR HOUR TWENTY-FOUR * 0032 DIGIT TWO * 0034 DIGIT FOUR * 70B9 ?? * 3371 SQUARE HPA * 0068 LATIN SMALL LETTER H * 0050 LATIN CAPITAL LETTER P * 0061 LATIN SMALL LETTER A * 3372 SQUARE DA * 0064 LATIN SMALL LETTER D * 0061 LATIN SMALL LETTER A * 3373 SQUARE AU * 0041 LATIN CAPITAL LETTER A * 0055 LATIN CAPITAL LETTER U * 3374 SQUARE BAR * 0062 LATIN SMALL LETTER B * 0061 LATIN SMALL LETTER A * 0072 LATIN SMALL LETTER R * 3375 SQUARE OV * 006F LATIN SMALL LETTER O * 0056 LATIN CAPITAL LETTER V * 3376 SQUARE PC * 0070 LATIN SMALL LETTER P * 0063 LATIN SMALL LETTER C * 3377 SQUARE DM * 0064 LATIN SMALL LETTER D * 006D LATIN SMALL LETTER M * 3378 SQUARE DM SQUARED * 0064 LATIN SMALL LETTER D * 006D LATIN SMALL LETTER M * 0032 DIGIT TWO * 3379 SQUARE DM CUBED * 0064 LATIN SMALL LETTER D * 006D LATIN SMALL LETTER M * 0033 DIGIT THREE * 337A SQUARE IU * 0049 LATIN CAPITAL LETTER I * 0055 LATIN CAPITAL LETTER U * 337B SQUARE ERA NAME HEISEI * 5E73 ?? * 6210 ?? * 337C SQUARE ERA NAME SYOUWA * 662D ?? * 548C ?? * 337D SQUARE ERA NAME TAISYOU * 5927 ?? * 6B63 ?? * 337E SQUARE ERA NAME MEIZI * 660E ?? * 6CBB ?? * 337F SQUARE CORPORATION * 682A ?? * 5F0F ?? * 4F1A ?? * 793E ?? * 3380 SQUARE PA AMPS * 0070 LATIN SMALL LETTER P * 0041 LATIN CAPITAL LETTER A * 3381 SQUARE NA * 006E LATIN SMALL LETTER N * 0041 LATIN CAPITAL LETTER A * 3382 SQUARE MU A * 03BC GREEK SMALL LETTER MU * 0041 LATIN CAPITAL LETTER A * 3383 SQUARE MA * 006D LATIN SMALL LETTER M * 0041 LATIN CAPITAL LETTER A * 3384 SQUARE KA * 006B LATIN SMALL LETTER K * 0041 LATIN CAPITAL LETTER A * 3385 SQUARE KB * 004B LATIN CAPITAL LETTER K * 0042 LATIN CAPITAL LETTER B * 3386 SQUARE MB * 004D LATIN CAPITAL LETTER M * 0042 LATIN CAPITAL LETTER B * 3387 SQUARE GB * 0047 LATIN CAPITAL LETTER G * 0042 LATIN CAPITAL LETTER B * 3388 SQUARE CAL * 0063 LATIN SMALL LETTER C * 0061 LATIN SMALL LETTER A * 006C LATIN SMALL LETTER L * 3389 SQUARE KCAL * 006B LATIN SMALL LETTER K * 0063 LATIN SMALL LETTER C * 0061 LATIN SMALL LETTER A * 006C LATIN SMALL LETTER L * 338A SQUARE PF * 0070 LATIN SMALL LETTER P * 0046 LATIN CAPITAL LETTER F * 338B SQUARE NF * 006E LATIN SMALL LETTER N * 0046 LATIN CAPITAL LETTER F * 338C SQUARE MU F * 03BC GREEK SMALL LETTER MU * 0046 LATIN CAPITAL LETTER F * 338D SQUARE MU G * 03BC GREEK SMALL LETTER MU * 0067 LATIN SMALL LETTER G * 338E SQUARE MG * 006D LATIN SMALL LETTER M * 0067 LATIN SMALL LETTER G * 338F SQUARE KG * 006B LATIN SMALL LETTER K * 0067 LATIN SMALL LETTER G * 3390 SQUARE HZ * 0048 LATIN CAPITAL LETTER H * 007A LATIN SMALL LETTER Z * 3391 SQUARE KHZ * 006B LATIN SMALL LETTER K * 0048 LATIN CAPITAL LETTER H * 007A LATIN SMALL LETTER Z * 3392 SQUARE MHZ * 004D LATIN CAPITAL LETTER M * 0048 LATIN CAPITAL LETTER H * 007A LATIN SMALL LETTER Z * 3393 SQUARE GHZ * 0047 LATIN CAPITAL LETTER G * 0048 LATIN CAPITAL LETTER H * 007A LATIN SMALL LETTER Z * 3394 SQUARE THZ * 0054 LATIN CAPITAL LETTER T * 0048 LATIN CAPITAL LETTER H * 007A LATIN SMALL LETTER Z * 3395 SQUARE MU L * 03BC GREEK SMALL LETTER MU * 006C LATIN SMALL LETTER L * 3396 SQUARE ML * 006D LATIN SMALL LETTER M * 006C LATIN SMALL LETTER L * 3397 SQUARE DL * 0064 LATIN SMALL LETTER D * 006C LATIN SMALL LETTER L * 3398 SQUARE KL * 006B LATIN SMALL LETTER K * 006C LATIN SMALL LETTER L * 3399 SQUARE FM * 0066 LATIN SMALL LETTER F * 006D LATIN SMALL LETTER M * 339A SQUARE NM * 006E LATIN SMALL LETTER N * 006D LATIN SMALL LETTER M * 339B SQUARE MU M * 03BC GREEK SMALL LETTER MU * 006D LATIN SMALL LETTER M * 339C SQUARE MM * 006D LATIN SMALL LETTER M * 006D LATIN SMALL LETTER M * 339D SQUARE CM * 0063 LATIN SMALL LETTER C * 006D LATIN SMALL LETTER M * 339E SQUARE KM * 006B LATIN SMALL LETTER K * 006D LATIN SMALL LETTER M * 339F SQUARE MM SQUARED * 006D LATIN SMALL LETTER M * 006D LATIN SMALL LETTER M * 0032 DIGIT TWO * 33A0 SQUARE CM SQUARED * 0063 LATIN SMALL LETTER C * 006D LATIN SMALL LETTER M * 0032 DIGIT TWO * 33A1 SQUARE M SQUARED * 006D LATIN SMALL LETTER M * 0032 DIGIT TWO * 33A2 SQUARE KM SQUARED * 006B LATIN SMALL LETTER K * 006D LATIN SMALL LETTER M * 0032 DIGIT TWO * 33A3 SQUARE MM CUBED * 006D LATIN SMALL LETTER M * 006D LATIN SMALL LETTER M * 0033 DIGIT THREE * 33A4 SQUARE CM CUBED * 0063 LATIN SMALL LETTER C * 006D LATIN SMALL LETTER M * 0033 DIGIT THREE * 33A5 SQUARE M CUBED * 006D LATIN SMALL LETTER M * 0033 DIGIT THREE * 33A6 SQUARE KM CUBED * 006B LATIN SMALL LETTER K * 006D LATIN SMALL LETTER M * 0033 DIGIT THREE * 33A7 SQUARE M OVER S * 006D LATIN SMALL LETTER M * 2215 DIVISION SLASH * 0073 LATIN SMALL LETTER S * 33A8 SQUARE M OVER S SQUARED * 006D LATIN SMALL LETTER M * 2215 DIVISION SLASH * 0073 LATIN SMALL LETTER S * 0032 DIGIT TWO * 33A9 SQUARE PA * 0050 LATIN CAPITAL LETTER P * 0061 LATIN SMALL LETTER A * 33AA SQUARE KPA * 006B LATIN SMALL LETTER K * 0050 LATIN CAPITAL LETTER P * 0061 LATIN SMALL LETTER A * 33AB SQUARE MPA * 004D LATIN CAPITAL LETTER M * 0050 LATIN CAPITAL LETTER P * 0061 LATIN SMALL LETTER A * 33AC SQUARE GPA * 0047 LATIN CAPITAL LETTER G * 0050 LATIN CAPITAL LETTER P * 0061 LATIN SMALL LETTER A * 33AD SQUARE RAD * 0072 LATIN SMALL LETTER R * 0061 LATIN SMALL LETTER A * 0064 LATIN SMALL LETTER D * 33AE SQUARE RAD OVER S * 0072 LATIN SMALL LETTER R * 0061 LATIN SMALL LETTER A * 0064 LATIN SMALL LETTER D * 2215 DIVISION SLASH * 0073 LATIN SMALL LETTER S * 33AF SQUARE RAD OVER S SQUARED * 0072 LATIN SMALL LETTER R * 0061 LATIN SMALL LETTER A * 0064 LATIN SMALL LETTER D * 2215 DIVISION SLASH * 0073 LATIN SMALL LETTER S * 0032 DIGIT TWO * 33B0 SQUARE PS * 0070 LATIN SMALL LETTER P * 0073 LATIN SMALL LETTER S * 33B1 SQUARE NS * 006E LATIN SMALL LETTER N * 0073 LATIN SMALL LETTER S * 33B2 SQUARE MU S * 03BC GREEK SMALL LETTER MU * 0073 LATIN SMALL LETTER S * 33B3 SQUARE MS * 006D LATIN SMALL LETTER M * 0073 LATIN SMALL LETTER S * 33B4 SQUARE PV * 0070 LATIN SMALL LETTER P * 0056 LATIN CAPITAL LETTER V * 33B5 SQUARE NV * 006E LATIN SMALL LETTER N * 0056 LATIN CAPITAL LETTER V * 33B6 SQUARE MU V * 03BC GREEK SMALL LETTER MU * 0056 LATIN CAPITAL LETTER V * 33B7 SQUARE MV * 006D LATIN SMALL LETTER M * 0056 LATIN CAPITAL LETTER V * 33B8 SQUARE KV * 006B LATIN SMALL LETTER K * 0056 LATIN CAPITAL LETTER V * 33B9 SQUARE MV MEGA * 004D LATIN CAPITAL LETTER M * 0056 LATIN CAPITAL LETTER V * 33BA SQUARE PW * 0070 LATIN SMALL LETTER P * 0057 LATIN CAPITAL LETTER W * 33BB SQUARE NW * 006E LATIN SMALL LETTER N * 0057 LATIN CAPITAL LETTER W * 33BC SQUARE MU W * 03BC GREEK SMALL LETTER MU * 0057 LATIN CAPITAL LETTER W * 33BD SQUARE MW * 006D LATIN SMALL LETTER M * 0057 LATIN CAPITAL LETTER W * 33BE SQUARE KW * 006B LATIN SMALL LETTER K * 0057 LATIN CAPITAL LETTER W * 33BF SQUARE MW MEGA * 004D LATIN CAPITAL LETTER M * 0057 LATIN CAPITAL LETTER W * 33C0 SQUARE K OHM * 006B LATIN SMALL LETTER K * 03A9 GREEK CAPITAL LETTER OMEGA * 33C1 SQUARE M OHM * 004D LATIN CAPITAL LETTER M * 03A9 GREEK CAPITAL LETTER OMEGA * 33C2 SQUARE AM * 0061 LATIN SMALL LETTER A * 002E FULL STOP * 006D LATIN SMALL LETTER M * 002E FULL STOP * 33C3 SQUARE BQ * 0042 LATIN CAPITAL LETTER B * 0071 LATIN SMALL LETTER Q * 33C4 SQUARE CC * 0063 LATIN SMALL LETTER C * 0063 LATIN SMALL LETTER C * 33C5 SQUARE CD * 0063 LATIN SMALL LETTER C * 0064 LATIN SMALL LETTER D * 33C6 SQUARE C OVER KG * 0043 LATIN CAPITAL LETTER C * 2215 DIVISION SLASH * 006B LATIN SMALL LETTER K * 0067 LATIN SMALL LETTER G * 33C7 SQUARE CO * 0043 LATIN CAPITAL LETTER C * 006F LATIN SMALL LETTER O * 002E FULL STOP * 33C8 SQUARE DB * 0064 LATIN SMALL LETTER D * 0042 LATIN CAPITAL LETTER B * 33C9 SQUARE GY * 0047 LATIN CAPITAL LETTER G * 0079 LATIN SMALL LETTER Y * 33CA SQUARE HA * 0068 LATIN SMALL LETTER H * 0061 LATIN SMALL LETTER A * 33CB SQUARE HP * 0048 LATIN CAPITAL LETTER H * 0050 LATIN CAPITAL LETTER P * 33CC SQUARE IN * 0069 LATIN SMALL LETTER I * 006E LATIN SMALL LETTER N * 33CD SQUARE KK * 004B LATIN CAPITAL LETTER K * 004B LATIN CAPITAL LETTER K * 33CE SQUARE KM CAPITAL * 004B LATIN CAPITAL LETTER K * 004D LATIN CAPITAL LETTER M * 33CF SQUARE KT * 006B LATIN SMALL LETTER K * 0074 LATIN SMALL LETTER T * 33D0 SQUARE LM * 006C LATIN SMALL LETTER L * 006D LATIN SMALL LETTER M * 33D1 SQUARE LN * 006C LATIN SMALL LETTER L * 006E LATIN SMALL LETTER N * 33D2 SQUARE LOG * 006C LATIN SMALL LETTER L * 006F LATIN SMALL LETTER O * 0067 LATIN SMALL LETTER G * 33D3 SQUARE LX * 006C LATIN SMALL LETTER L * 0078 LATIN SMALL LETTER X * 33D4 SQUARE MB SMALL * 006D LATIN SMALL LETTER M * 0062 LATIN SMALL LETTER B * 33D5 SQUARE MIL * 006D LATIN SMALL LETTER M * 0069 LATIN SMALL LETTER I * 006C LATIN SMALL LETTER L * 33D6 SQUARE MOL * 006D LATIN SMALL LETTER M * 006F LATIN SMALL LETTER O * 006C LATIN SMALL LETTER L * 33D7 SQUARE PH * 0050 LATIN CAPITAL LETTER P * 0048 LATIN CAPITAL LETTER H * 33D8 SQUARE PM * 0070 LATIN SMALL LETTER P * 002E FULL STOP * 006D LATIN SMALL LETTER M * 002E FULL STOP * 33D9 SQUARE PPM * 0050 LATIN CAPITAL LETTER P * 0050 LATIN CAPITAL LETTER P * 004D LATIN CAPITAL LETTER M * 33DA SQUARE PR * 0050 LATIN CAPITAL LETTER P * 0052 LATIN CAPITAL LETTER R * 33DB SQUARE SR * 0073 LATIN SMALL LETTER S * 0072 LATIN SMALL LETTER R * 33DC SQUARE SV * 0053 LATIN CAPITAL LETTER S * 0076 LATIN SMALL LETTER V * 33DD SQUARE WB * 0057 LATIN CAPITAL LETTER W * 0062 LATIN SMALL LETTER B * 33DE SQUARE V OVER M * 0056 LATIN CAPITAL LETTER V * 2215 DIVISION SLASH * 006D LATIN SMALL LETTER M * 33DF SQUARE A OVER M * 0041 LATIN CAPITAL LETTER A * 2215 DIVISION SLASH * 006D LATIN SMALL LETTER M * 33E0 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY ONE * 0031 DIGIT ONE * 65E5 ?? * 33E1 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWO * 0032 DIGIT TWO * 65E5 ?? * 33E2 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY THREE * 0033 DIGIT THREE * 65E5 ?? * 33E3 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY FOUR * 0034 DIGIT FOUR * 65E5 ?? * 33E4 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY FIVE * 0035 DIGIT FIVE * 65E5 ?? * 33E5 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY SIX * 0036 DIGIT SIX * 65E5 ?? * 33E6 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY SEVEN * 0037 DIGIT SEVEN * 65E5 ?? * 33E7 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY EIGHT * 0038 DIGIT EIGHT * 65E5 ?? * 33E8 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY NINE * 0039 DIGIT NINE * 65E5 ?? * 33E9 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TEN * 0031 DIGIT ONE * 0030 DIGIT ZERO * 65E5 ?? * 33EA IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY ELEVEN * 0031 DIGIT ONE * 0031 DIGIT ONE * 65E5 ?? * 33EB IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWELVE * 0031 DIGIT ONE * 0032 DIGIT TWO * 65E5 ?? * 33EC IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY THIRTEEN * 0031 DIGIT ONE * 0033 DIGIT THREE * 65E5 ?? * 33ED IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY FOURTEEN * 0031 DIGIT ONE * 0034 DIGIT FOUR * 65E5 ?? * 33EE IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY FIFTEEN * 0031 DIGIT ONE * 0035 DIGIT FIVE * 65E5 ?? * 33EF IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY SIXTEEN * 0031 DIGIT ONE * 0036 DIGIT SIX * 65E5 ?? * 33F0 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY SEVENTEEN * 0031 DIGIT ONE * 0037 DIGIT SEVEN * 65E5 ?? * 33F1 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY EIGHTEEN * 0031 DIGIT ONE * 0038 DIGIT EIGHT * 65E5 ?? * 33F2 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY NINETEEN * 0031 DIGIT ONE * 0039 DIGIT NINE * 65E5 ?? * 33F3 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY * 0032 DIGIT TWO * 0030 DIGIT ZERO * 65E5 ?? * 33F4 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-ONE * 0032 DIGIT TWO * 0031 DIGIT ONE * 65E5 ?? * 33F5 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-TWO * 0032 DIGIT TWO * 0032 DIGIT TWO * 65E5 ?? * 33F6 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-THREE * 0032 DIGIT TWO * 0033 DIGIT THREE * 65E5 ?? * 33F7 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-FOUR * 0032 DIGIT TWO * 0034 DIGIT FOUR * 65E5 ?? * 33F8 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-FIVE * 0032 DIGIT TWO * 0035 DIGIT FIVE * 65E5 ?? * 33F9 IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-SIX * 0032 DIGIT TWO * 0036 DIGIT SIX * 65E5 ?? * 33FA IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-SEVEN * 0032 DIGIT TWO * 0037 DIGIT SEVEN * 65E5 ?? * 33FB IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-EIGHT * 0032 DIGIT TWO * 0038 DIGIT EIGHT * 65E5 ?? * 33FC IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY TWENTY-NINE * 0032 DIGIT TWO * 0039 DIGIT NINE * 65E5 ?? * 33FD IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY THIRTY * 0033 DIGIT THREE * 0030 DIGIT ZERO * 65E5 ?? * 33FE IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY THIRTY-ONE * 0033 DIGIT THREE * 0031 DIGIT ONE * 65E5 ?? * 33FF SQUARE GAL * 0067 LATIN SMALL LETTER G * 0061 LATIN SMALL LETTER A * 006C LATIN SMALL LETTER L * A66F COMBINING CYRILLIC VZMET * 0000 * A670 COMBINING CYRILLIC TEN MILLIONS SIGN * 0000 * A671 COMBINING CYRILLIC HUNDRED MILLIONS SIGN * 0000 * A672 COMBINING CYRILLIC THOUSAND MILLIONS SIGN * 0000 * A674 COMBINING CYRILLIC LETTER UKRAINIAN IE * 0000 * A675 COMBINING CYRILLIC LETTER I * 0000 * A676 COMBINING CYRILLIC LETTER YI * 0000 * A677 COMBINING CYRILLIC LETTER U * 0000 * A678 COMBINING CYRILLIC LETTER HARD SIGN * 0000 * A679 COMBINING CYRILLIC LETTER YERU * 0000 * A67A COMBINING CYRILLIC LETTER SOFT SIGN * 0000 * A67B COMBINING CYRILLIC LETTER OMEGA * 0000 * A67C COMBINING CYRILLIC KAVYKA * 0000 * A67D COMBINING CYRILLIC PAYEROK * 0000 * A69F COMBINING CYRILLIC LETTER IOTIFIED E * 0000 * A6F0 BAMUM COMBINING MARK KOQNDON * 0000 * A6F1 BAMUM COMBINING MARK TUKWENTIS * 0000 * A770 MODIFIER LETTER US * A76F LATIN SMALL LETTER CON * A7F8 MODIFIER LETTER CAPITAL H WITH STROKE * 0126 LATIN CAPITAL LETTER H WITH STROKE * A7F9 MODIFIER LETTER SMALL LIGATURE OE * 0153 LATIN SMALL LIGATURE OE * A802 SYLOTI NAGRI SIGN DVISVARA * 0000 * A806 SYLOTI NAGRI SIGN HASANTA * 0000 * A80B SYLOTI NAGRI SIGN ANUSVARA * 0000 * A823 SYLOTI NAGRI VOWEL SIGN A * 0000 * A824 SYLOTI NAGRI VOWEL SIGN I * 0000 * A825 SYLOTI NAGRI VOWEL SIGN U * 0000 * A826 SYLOTI NAGRI VOWEL SIGN E * 0000 * A827 SYLOTI NAGRI VOWEL SIGN OO * 0000 * A880 SAURASHTRA SIGN ANUSVARA * 0000 * A881 SAURASHTRA SIGN VISARGA * 0000 * A8B4 SAURASHTRA CONSONANT SIGN HAARU * 0000 * A8B5 SAURASHTRA VOWEL SIGN AA * 0000 * A8B6 SAURASHTRA VOWEL SIGN I * 0000 * A8B7 SAURASHTRA VOWEL SIGN II * 0000 * A8B8 SAURASHTRA VOWEL SIGN U * 0000 * A8B9 SAURASHTRA VOWEL SIGN UU * 0000 * A8BA SAURASHTRA VOWEL SIGN VOCALIC R * 0000 * A8BB SAURASHTRA VOWEL SIGN VOCALIC RR * 0000 * A8BC SAURASHTRA VOWEL SIGN VOCALIC L * 0000 * A8BD SAURASHTRA VOWEL SIGN VOCALIC LL * 0000 * A8BE SAURASHTRA VOWEL SIGN E * 0000 * A8BF SAURASHTRA VOWEL SIGN EE * 0000 * A8C0 SAURASHTRA VOWEL SIGN AI * 0000 * A8C1 SAURASHTRA VOWEL SIGN O * 0000 * A8C2 SAURASHTRA VOWEL SIGN OO * 0000 * A8C3 SAURASHTRA VOWEL SIGN AU * 0000 * A8C4 SAURASHTRA SIGN VIRAMA * 0000 * A926 KAYAH LI VOWEL UE * 0000 * A927 KAYAH LI VOWEL E * 0000 * A928 KAYAH LI VOWEL U * 0000 * A929 KAYAH LI VOWEL EE * 0000 * A92A KAYAH LI VOWEL O * 0000 * A92B KAYAH LI TONE PLOPHU * 0000 * A92C KAYAH LI TONE CALYA * 0000 * A92D KAYAH LI TONE CALYA PLOPHU * 0000 * A947 REJANG VOWEL SIGN I * 0000 * A948 REJANG VOWEL SIGN U * 0000 * A949 REJANG VOWEL SIGN E * 0000 * A94A REJANG VOWEL SIGN AI * 0000 * A94B REJANG VOWEL SIGN O * 0000 * A94C REJANG VOWEL SIGN AU * 0000 * A94D REJANG VOWEL SIGN EU * 0000 * A94E REJANG VOWEL SIGN EA * 0000 * A94F REJANG CONSONANT SIGN NG * 0000 * A950 REJANG CONSONANT SIGN N * 0000 * A951 REJANG CONSONANT SIGN R * 0000 * A952 REJANG CONSONANT SIGN H * 0000 * A953 REJANG VIRAMA * 0000 * A980 JAVANESE SIGN PANYANGGA * 0000 * A981 JAVANESE SIGN CECAK * 0000 * A982 JAVANESE SIGN LAYAR * 0000 * A983 JAVANESE SIGN WIGNYAN * 0000 * A9B3 JAVANESE SIGN CECAK TELU * 0000 * A9B4 JAVANESE VOWEL SIGN TARUNG * 0000 * A9B5 JAVANESE VOWEL SIGN TOLONG * 0000 * A9B6 JAVANESE VOWEL SIGN WULU * 0000 * A9B7 JAVANESE VOWEL SIGN WULU MELIK * 0000 * A9B8 JAVANESE VOWEL SIGN SUKU * 0000 * A9B9 JAVANESE VOWEL SIGN SUKU MENDUT * 0000 * A9BA JAVANESE VOWEL SIGN TALING * 0000 * A9BB JAVANESE VOWEL SIGN DIRGA MURE * 0000 * A9BC JAVANESE VOWEL SIGN PEPET * 0000 * A9BD JAVANESE CONSONANT SIGN KERET * 0000 * A9BE JAVANESE CONSONANT SIGN PENGKAL * 0000 * A9BF JAVANESE CONSONANT SIGN CAKRA * 0000 * A9C0 JAVANESE PANGKON * 0000 * AA29 CHAM VOWEL SIGN AA * 0000 * AA2A CHAM VOWEL SIGN I * 0000 * AA2B CHAM VOWEL SIGN II * 0000 * AA2C CHAM VOWEL SIGN EI * 0000 * AA2D CHAM VOWEL SIGN U * 0000 * AA2E CHAM VOWEL SIGN OE * 0000 * AA2F CHAM VOWEL SIGN O * 0000 * AA30 CHAM VOWEL SIGN AI * 0000 * AA31 CHAM VOWEL SIGN AU * 0000 * AA32 CHAM VOWEL SIGN UE * 0000 * AA33 CHAM CONSONANT SIGN YA * 0000 * AA34 CHAM CONSONANT SIGN RA * 0000 * AA35 CHAM CONSONANT SIGN LA * 0000 * AA36 CHAM CONSONANT SIGN WA * 0000 * AA43 CHAM CONSONANT SIGN FINAL NG * 0000 * AA4C CHAM CONSONANT SIGN FINAL M * 0000 * AA4D CHAM CONSONANT SIGN FINAL H * 0000 * AA7B MYANMAR SIGN PAO KAREN TONE * 0000 * AAB0 TAI VIET MAI KANG * 0000 * AAB2 TAI VIET VOWEL I * 0000 * AAB3 TAI VIET VOWEL UE * 0000 * AAB4 TAI VIET VOWEL U * 0000 * AAB7 TAI VIET MAI KHIT * 0000 * AAB8 TAI VIET VOWEL IA * 0000 * AABE TAI VIET VOWEL AM * 0000 * AABF TAI VIET TONE MAI EK * 0000 * AAC1 TAI VIET TONE MAI THO * 0000 * AAEB MEETEI MAYEK VOWEL SIGN II * 0000 * AAEC MEETEI MAYEK VOWEL SIGN UU * 0000 * AAED MEETEI MAYEK VOWEL SIGN AAI * 0000 * AAEE MEETEI MAYEK VOWEL SIGN AU * 0000 * AAEF MEETEI MAYEK VOWEL SIGN AAU * 0000 * AAF5 MEETEI MAYEK VOWEL SIGN VISARGA * 0000 * AAF6 MEETEI MAYEK VIRAMA * 0000 * ABE3 MEETEI MAYEK VOWEL SIGN ONAP * 0000 * ABE4 MEETEI MAYEK VOWEL SIGN INAP * 0000 * ABE5 MEETEI MAYEK VOWEL SIGN ANAP * 0000 * ABE6 MEETEI MAYEK VOWEL SIGN YENAP * 0000 * ABE7 MEETEI MAYEK VOWEL SIGN SOUNAP * 0000 * ABE8 MEETEI MAYEK VOWEL SIGN UNAP * 0000 * ABE9 MEETEI MAYEK VOWEL SIGN CHEINAP * 0000 * ABEA MEETEI MAYEK VOWEL SIGN NUNG * 0000 * ABEC MEETEI MAYEK LUM IYEK * 0000 * ABED MEETEI MAYEK APUN IYEK * 0000 * F900 CJK COMPATIBILITY IDEOGRAPH-F900 * 8C48 ?? * F901 CJK COMPATIBILITY IDEOGRAPH-F901 * 66F4 ?? * F902 CJK COMPATIBILITY IDEOGRAPH-F902 * 8ECA ?? * F903 CJK COMPATIBILITY IDEOGRAPH-F903 * 8CC8 ?? * F904 CJK COMPATIBILITY IDEOGRAPH-F904 * 6ED1 ?? * F905 CJK COMPATIBILITY IDEOGRAPH-F905 * 4E32 ?? * F906 CJK COMPATIBILITY IDEOGRAPH-F906 * 53E5 ?? * F907 CJK COMPATIBILITY IDEOGRAPH-F907 * 9F9C ?? * F908 CJK COMPATIBILITY IDEOGRAPH-F908 * 9F9C ?? * F909 CJK COMPATIBILITY IDEOGRAPH-F909 * 5951 ?? * F90A CJK COMPATIBILITY IDEOGRAPH-F90A * 91D1 ?? * F90B CJK COMPATIBILITY IDEOGRAPH-F90B * 5587 ?? * F90C CJK COMPATIBILITY IDEOGRAPH-F90C * 5948 ?? * F90D CJK COMPATIBILITY IDEOGRAPH-F90D * 61F6 ?? * F90E CJK COMPATIBILITY IDEOGRAPH-F90E * 7669 ?? * F90F CJK COMPATIBILITY IDEOGRAPH-F90F * 7F85 ?? * F910 CJK COMPATIBILITY IDEOGRAPH-F910 * 863F ?? * F911 CJK COMPATIBILITY IDEOGRAPH-F911 * 87BA ?? * F912 CJK COMPATIBILITY IDEOGRAPH-F912 * 88F8 ?? * F913 CJK COMPATIBILITY IDEOGRAPH-F913 * 908F ?? * F914 CJK COMPATIBILITY IDEOGRAPH-F914 * 6A02 ?? * F915 CJK COMPATIBILITY IDEOGRAPH-F915 * 6D1B ?? * F916 CJK COMPATIBILITY IDEOGRAPH-F916 * 70D9 ?? * F917 CJK COMPATIBILITY IDEOGRAPH-F917 * 73DE ?? * F918 CJK COMPATIBILITY IDEOGRAPH-F918 * 843D ?? * F919 CJK COMPATIBILITY IDEOGRAPH-F919 * 916A ?? * F91A CJK COMPATIBILITY IDEOGRAPH-F91A * 99F1 ?? * F91B CJK COMPATIBILITY IDEOGRAPH-F91B * 4E82 ?? * F91C CJK COMPATIBILITY IDEOGRAPH-F91C * 5375 ?? * F91D CJK COMPATIBILITY IDEOGRAPH-F91D * 6B04 ?? * F91E CJK COMPATIBILITY IDEOGRAPH-F91E * 721B ?? * F91F CJK COMPATIBILITY IDEOGRAPH-F91F * 862D ?? * F920 CJK COMPATIBILITY IDEOGRAPH-F920 * 9E1E ?? * F921 CJK COMPATIBILITY IDEOGRAPH-F921 * 5D50 ?? * F922 CJK COMPATIBILITY IDEOGRAPH-F922 * 6FEB ?? * F923 CJK COMPATIBILITY IDEOGRAPH-F923 * 85CD ?? * F924 CJK COMPATIBILITY IDEOGRAPH-F924 * 8964 ?? * F925 CJK COMPATIBILITY IDEOGRAPH-F925 * 62C9 ?? * F926 CJK COMPATIBILITY IDEOGRAPH-F926 * 81D8 ?? * F927 CJK COMPATIBILITY IDEOGRAPH-F927 * 881F ?? * F928 CJK COMPATIBILITY IDEOGRAPH-F928 * 5ECA ?? * F929 CJK COMPATIBILITY IDEOGRAPH-F929 * 6717 ?? * F92A CJK COMPATIBILITY IDEOGRAPH-F92A * 6D6A ?? * F92B CJK COMPATIBILITY IDEOGRAPH-F92B * 72FC ?? * F92C CJK COMPATIBILITY IDEOGRAPH-F92C * 90CE ?? * F92D CJK COMPATIBILITY IDEOGRAPH-F92D * 4F86 ?? * F92E CJK COMPATIBILITY IDEOGRAPH-F92E * 51B7 ?? * F92F CJK COMPATIBILITY IDEOGRAPH-F92F * 52DE ?? * F930 CJK COMPATIBILITY IDEOGRAPH-F930 * 64C4 ?? * F931 CJK COMPATIBILITY IDEOGRAPH-F931 * 6AD3 ?? * F932 CJK COMPATIBILITY IDEOGRAPH-F932 * 7210 ?? * F933 CJK COMPATIBILITY IDEOGRAPH-F933 * 76E7 ?? * F934 CJK COMPATIBILITY IDEOGRAPH-F934 * 8001 ?? * F935 CJK COMPATIBILITY IDEOGRAPH-F935 * 8606 ?? * F936 CJK COMPATIBILITY IDEOGRAPH-F936 * 865C ?? * F937 CJK COMPATIBILITY IDEOGRAPH-F937 * 8DEF ?? * F938 CJK COMPATIBILITY IDEOGRAPH-F938 * 9732 ?? * F939 CJK COMPATIBILITY IDEOGRAPH-F939 * 9B6F ?? * F93A CJK COMPATIBILITY IDEOGRAPH-F93A * 9DFA ?? * F93B CJK COMPATIBILITY IDEOGRAPH-F93B * 788C ?? * F93C CJK COMPATIBILITY IDEOGRAPH-F93C * 797F ?? * F93D CJK COMPATIBILITY IDEOGRAPH-F93D * 7DA0 ?? * F93E CJK COMPATIBILITY IDEOGRAPH-F93E * 83C9 ?? * F93F CJK COMPATIBILITY IDEOGRAPH-F93F * 9304 ?? * F940 CJK COMPATIBILITY IDEOGRAPH-F940 * 9E7F ?? * F941 CJK COMPATIBILITY IDEOGRAPH-F941 * 8AD6 ?? * F942 CJK COMPATIBILITY IDEOGRAPH-F942 * 58DF ?? * F943 CJK COMPATIBILITY IDEOGRAPH-F943 * 5F04 ?? * F944 CJK COMPATIBILITY IDEOGRAPH-F944 * 7C60 ?? * F945 CJK COMPATIBILITY IDEOGRAPH-F945 * 807E ?? * F946 CJK COMPATIBILITY IDEOGRAPH-F946 * 7262 ?? * F947 CJK COMPATIBILITY IDEOGRAPH-F947 * 78CA ?? * F948 CJK COMPATIBILITY IDEOGRAPH-F948 * 8CC2 ?? * F949 CJK COMPATIBILITY IDEOGRAPH-F949 * 96F7 ?? * F94A CJK COMPATIBILITY IDEOGRAPH-F94A * 58D8 ?? * F94B CJK COMPATIBILITY IDEOGRAPH-F94B * 5C62 ?? * F94C CJK COMPATIBILITY IDEOGRAPH-F94C * 6A13 ?? * F94D CJK COMPATIBILITY IDEOGRAPH-F94D * 6DDA ?? * F94E CJK COMPATIBILITY IDEOGRAPH-F94E * 6F0F ?? * F94F CJK COMPATIBILITY IDEOGRAPH-F94F * 7D2F ?? * F950 CJK COMPATIBILITY IDEOGRAPH-F950 * 7E37 ?? * F951 CJK COMPATIBILITY IDEOGRAPH-F951 * 964B ?? * F952 CJK COMPATIBILITY IDEOGRAPH-F952 * 52D2 ?? * F953 CJK COMPATIBILITY IDEOGRAPH-F953 * 808B ?? * F954 CJK COMPATIBILITY IDEOGRAPH-F954 * 51DC ?? * F955 CJK COMPATIBILITY IDEOGRAPH-F955 * 51CC ?? * F956 CJK COMPATIBILITY IDEOGRAPH-F956 * 7A1C ?? * F957 CJK COMPATIBILITY IDEOGRAPH-F957 * 7DBE ?? * F958 CJK COMPATIBILITY IDEOGRAPH-F958 * 83F1 ?? * F959 CJK COMPATIBILITY IDEOGRAPH-F959 * 9675 ?? * F95A CJK COMPATIBILITY IDEOGRAPH-F95A * 8B80 ?? * F95B CJK COMPATIBILITY IDEOGRAPH-F95B * 62CF ?? * F95C CJK COMPATIBILITY IDEOGRAPH-F95C * 6A02 ?? * F95D CJK COMPATIBILITY IDEOGRAPH-F95D * 8AFE ?? * F95E CJK COMPATIBILITY IDEOGRAPH-F95E * 4E39 ?? * F95F CJK COMPATIBILITY IDEOGRAPH-F95F * 5BE7 ?? * F960 CJK COMPATIBILITY IDEOGRAPH-F960 * 6012 ?? * F961 CJK COMPATIBILITY IDEOGRAPH-F961 * 7387 ?? * F962 CJK COMPATIBILITY IDEOGRAPH-F962 * 7570 ?? * F963 CJK COMPATIBILITY IDEOGRAPH-F963 * 5317 ?? * F964 CJK COMPATIBILITY IDEOGRAPH-F964 * 78FB ?? * F965 CJK COMPATIBILITY IDEOGRAPH-F965 * 4FBF ?? * F966 CJK COMPATIBILITY IDEOGRAPH-F966 * 5FA9 ?? * F967 CJK COMPATIBILITY IDEOGRAPH-F967 * 4E0D ?? * F968 CJK COMPATIBILITY IDEOGRAPH-F968 * 6CCC ?? * F969 CJK COMPATIBILITY IDEOGRAPH-F969 * 6578 ?? * F96A CJK COMPATIBILITY IDEOGRAPH-F96A * 7D22 ?? * F96B CJK COMPATIBILITY IDEOGRAPH-F96B * 53C3 ?? * F96C CJK COMPATIBILITY IDEOGRAPH-F96C * 585E ?? * F96D CJK COMPATIBILITY IDEOGRAPH-F96D * 7701 ?? * F96E CJK COMPATIBILITY IDEOGRAPH-F96E * 8449 ?? * F96F CJK COMPATIBILITY IDEOGRAPH-F96F * 8AAA ?? * F970 CJK COMPATIBILITY IDEOGRAPH-F970 * 6BBA ?? * F971 CJK COMPATIBILITY IDEOGRAPH-F971 * 8FB0 ?? * F972 CJK COMPATIBILITY IDEOGRAPH-F972 * 6C88 ?? * F973 CJK COMPATIBILITY IDEOGRAPH-F973 * 62FE ?? * F974 CJK COMPATIBILITY IDEOGRAPH-F974 * 82E5 ?? * F975 CJK COMPATIBILITY IDEOGRAPH-F975 * 63A0 ?? * F976 CJK COMPATIBILITY IDEOGRAPH-F976 * 7565 ?? * F977 CJK COMPATIBILITY IDEOGRAPH-F977 * 4EAE ?? * F978 CJK COMPATIBILITY IDEOGRAPH-F978 * 5169 ?? * F979 CJK COMPATIBILITY IDEOGRAPH-F979 * 51C9 ?? * F97A CJK COMPATIBILITY IDEOGRAPH-F97A * 6881 ?? * F97B CJK COMPATIBILITY IDEOGRAPH-F97B * 7CE7 ?? * F97C CJK COMPATIBILITY IDEOGRAPH-F97C * 826F ?? * F97D CJK COMPATIBILITY IDEOGRAPH-F97D * 8AD2 ?? * F97E CJK COMPATIBILITY IDEOGRAPH-F97E * 91CF ?? * F97F CJK COMPATIBILITY IDEOGRAPH-F97F * 52F5 ?? * F980 CJK COMPATIBILITY IDEOGRAPH-F980 * 5442 ?? * F981 CJK COMPATIBILITY IDEOGRAPH-F981 * 5973 ?? * F982 CJK COMPATIBILITY IDEOGRAPH-F982 * 5EEC ?? * F983 CJK COMPATIBILITY IDEOGRAPH-F983 * 65C5 ?? * F984 CJK COMPATIBILITY IDEOGRAPH-F984 * 6FFE ?? * F985 CJK COMPATIBILITY IDEOGRAPH-F985 * 792A ?? * F986 CJK COMPATIBILITY IDEOGRAPH-F986 * 95AD ?? * F987 CJK COMPATIBILITY IDEOGRAPH-F987 * 9A6A ?? * F988 CJK COMPATIBILITY IDEOGRAPH-F988 * 9E97 ?? * F989 CJK COMPATIBILITY IDEOGRAPH-F989 * 9ECE ?? * F98A CJK COMPATIBILITY IDEOGRAPH-F98A * 529B ?? * F98B CJK COMPATIBILITY IDEOGRAPH-F98B * 66C6 ?? * F98C CJK COMPATIBILITY IDEOGRAPH-F98C * 6B77 ?? * F98D CJK COMPATIBILITY IDEOGRAPH-F98D * 8F62 ?? * F98E CJK COMPATIBILITY IDEOGRAPH-F98E * 5E74 ?? * F98F CJK COMPATIBILITY IDEOGRAPH-F98F * 6190 ?? * F990 CJK COMPATIBILITY IDEOGRAPH-F990 * 6200 ?? * F991 CJK COMPATIBILITY IDEOGRAPH-F991 * 649A ?? * F992 CJK COMPATIBILITY IDEOGRAPH-F992 * 6F23 ?? * F993 CJK COMPATIBILITY IDEOGRAPH-F993 * 7149 ?? * F994 CJK COMPATIBILITY IDEOGRAPH-F994 * 7489 ?? * F995 CJK COMPATIBILITY IDEOGRAPH-F995 * 79CA ?? * F996 CJK COMPATIBILITY IDEOGRAPH-F996 * 7DF4 ?? * F997 CJK COMPATIBILITY IDEOGRAPH-F997 * 806F ?? * F998 CJK COMPATIBILITY IDEOGRAPH-F998 * 8F26 ?? * F999 CJK COMPATIBILITY IDEOGRAPH-F999 * 84EE ?? * F99A CJK COMPATIBILITY IDEOGRAPH-F99A * 9023 ?? * F99B CJK COMPATIBILITY IDEOGRAPH-F99B * 934A ?? * F99C CJK COMPATIBILITY IDEOGRAPH-F99C * 5217 ?? * F99D CJK COMPATIBILITY IDEOGRAPH-F99D * 52A3 ?? * F99E CJK COMPATIBILITY IDEOGRAPH-F99E * 54BD ?? * F99F CJK COMPATIBILITY IDEOGRAPH-F99F * 70C8 ?? * F9A0 CJK COMPATIBILITY IDEOGRAPH-F9A0 * 88C2 ?? * F9A1 CJK COMPATIBILITY IDEOGRAPH-F9A1 * 8AAA ?? * F9A2 CJK COMPATIBILITY IDEOGRAPH-F9A2 * 5EC9 ?? * F9A3 CJK COMPATIBILITY IDEOGRAPH-F9A3 * 5FF5 ?? * F9A4 CJK COMPATIBILITY IDEOGRAPH-F9A4 * 637B ?? * F9A5 CJK COMPATIBILITY IDEOGRAPH-F9A5 * 6BAE ?? * F9A6 CJK COMPATIBILITY IDEOGRAPH-F9A6 * 7C3E ?? * F9A7 CJK COMPATIBILITY IDEOGRAPH-F9A7 * 7375 ?? * F9A8 CJK COMPATIBILITY IDEOGRAPH-F9A8 * 4EE4 ?? * F9A9 CJK COMPATIBILITY IDEOGRAPH-F9A9 * 56F9 ?? * F9AA CJK COMPATIBILITY IDEOGRAPH-F9AA * 5BE7 ?? * F9AB CJK COMPATIBILITY IDEOGRAPH-F9AB * 5DBA ?? * F9AC CJK COMPATIBILITY IDEOGRAPH-F9AC * 601C ?? * F9AD CJK COMPATIBILITY IDEOGRAPH-F9AD * 73B2 ?? * F9AE CJK COMPATIBILITY IDEOGRAPH-F9AE * 7469 ?? * F9AF CJK COMPATIBILITY IDEOGRAPH-F9AF * 7F9A ?? * F9B0 CJK COMPATIBILITY IDEOGRAPH-F9B0 * 8046 ?? * F9B1 CJK COMPATIBILITY IDEOGRAPH-F9B1 * 9234 ?? * F9B2 CJK COMPATIBILITY IDEOGRAPH-F9B2 * 96F6 ?? * F9B3 CJK COMPATIBILITY IDEOGRAPH-F9B3 * 9748 ?? * F9B4 CJK COMPATIBILITY IDEOGRAPH-F9B4 * 9818 ?? * F9B5 CJK COMPATIBILITY IDEOGRAPH-F9B5 * 4F8B ?? * F9B6 CJK COMPATIBILITY IDEOGRAPH-F9B6 * 79AE ?? * F9B7 CJK COMPATIBILITY IDEOGRAPH-F9B7 * 91B4 ?? * F9B8 CJK COMPATIBILITY IDEOGRAPH-F9B8 * 96B8 ?? * F9B9 CJK COMPATIBILITY IDEOGRAPH-F9B9 * 60E1 ?? * F9BA CJK COMPATIBILITY IDEOGRAPH-F9BA * 4E86 ?? * F9BB CJK COMPATIBILITY IDEOGRAPH-F9BB * 50DA ?? * F9BC CJK COMPATIBILITY IDEOGRAPH-F9BC * 5BEE ?? * F9BD CJK COMPATIBILITY IDEOGRAPH-F9BD * 5C3F ?? * F9BE CJK COMPATIBILITY IDEOGRAPH-F9BE * 6599 ?? * F9BF CJK COMPATIBILITY IDEOGRAPH-F9BF * 6A02 ?? * F9C0 CJK COMPATIBILITY IDEOGRAPH-F9C0 * 71CE ?? * F9C1 CJK COMPATIBILITY IDEOGRAPH-F9C1 * 7642 ?? * F9C2 CJK COMPATIBILITY IDEOGRAPH-F9C2 * 84FC ?? * F9C3 CJK COMPATIBILITY IDEOGRAPH-F9C3 * 907C ?? * F9C4 CJK COMPATIBILITY IDEOGRAPH-F9C4 * 9F8D ?? * F9C5 CJK COMPATIBILITY IDEOGRAPH-F9C5 * 6688 ?? * F9C6 CJK COMPATIBILITY IDEOGRAPH-F9C6 * 962E ?? * F9C7 CJK COMPATIBILITY IDEOGRAPH-F9C7 * 5289 ?? * F9C8 CJK COMPATIBILITY IDEOGRAPH-F9C8 * 677B ?? * F9C9 CJK COMPATIBILITY IDEOGRAPH-F9C9 * 67F3 ?? * F9CA CJK COMPATIBILITY IDEOGRAPH-F9CA * 6D41 ?? * F9CB CJK COMPATIBILITY IDEOGRAPH-F9CB * 6E9C ?? * F9CC CJK COMPATIBILITY IDEOGRAPH-F9CC * 7409 ?? * F9CD CJK COMPATIBILITY IDEOGRAPH-F9CD * 7559 ?? * F9CE CJK COMPATIBILITY IDEOGRAPH-F9CE * 786B ?? * F9CF CJK COMPATIBILITY IDEOGRAPH-F9CF * 7D10 ?? * F9D0 CJK COMPATIBILITY IDEOGRAPH-F9D0 * 985E ?? * F9D1 CJK COMPATIBILITY IDEOGRAPH-F9D1 * 516D ?? * F9D2 CJK COMPATIBILITY IDEOGRAPH-F9D2 * 622E ?? * F9D3 CJK COMPATIBILITY IDEOGRAPH-F9D3 * 9678 ?? * F9D4 CJK COMPATIBILITY IDEOGRAPH-F9D4 * 502B ?? * F9D5 CJK COMPATIBILITY IDEOGRAPH-F9D5 * 5D19 ?? * F9D6 CJK COMPATIBILITY IDEOGRAPH-F9D6 * 6DEA ?? * F9D7 CJK COMPATIBILITY IDEOGRAPH-F9D7 * 8F2A ?? * F9D8 CJK COMPATIBILITY IDEOGRAPH-F9D8 * 5F8B ?? * F9D9 CJK COMPATIBILITY IDEOGRAPH-F9D9 * 6144 ?? * F9DA CJK COMPATIBILITY IDEOGRAPH-F9DA * 6817 ?? * F9DB CJK COMPATIBILITY IDEOGRAPH-F9DB * 7387 ?? * F9DC CJK COMPATIBILITY IDEOGRAPH-F9DC * 9686 ?? * F9DD CJK COMPATIBILITY IDEOGRAPH-F9DD * 5229 ?? * F9DE CJK COMPATIBILITY IDEOGRAPH-F9DE * 540F ?? * F9DF CJK COMPATIBILITY IDEOGRAPH-F9DF * 5C65 ?? * F9E0 CJK COMPATIBILITY IDEOGRAPH-F9E0 * 6613 ?? * F9E1 CJK COMPATIBILITY IDEOGRAPH-F9E1 * 674E ?? * F9E2 CJK COMPATIBILITY IDEOGRAPH-F9E2 * 68A8 ?? * F9E3 CJK COMPATIBILITY IDEOGRAPH-F9E3 * 6CE5 ?? * F9E4 CJK COMPATIBILITY IDEOGRAPH-F9E4 * 7406 ?? * F9E5 CJK COMPATIBILITY IDEOGRAPH-F9E5 * 75E2 ?? * F9E6 CJK COMPATIBILITY IDEOGRAPH-F9E6 * 7F79 ?? * F9E7 CJK COMPATIBILITY IDEOGRAPH-F9E7 * 88CF ?? * F9E8 CJK COMPATIBILITY IDEOGRAPH-F9E8 * 88E1 ?? * F9E9 CJK COMPATIBILITY IDEOGRAPH-F9E9 * 91CC ?? * F9EA CJK COMPATIBILITY IDEOGRAPH-F9EA * 96E2 ?? * F9EB CJK COMPATIBILITY IDEOGRAPH-F9EB * 533F ?? * F9EC CJK COMPATIBILITY IDEOGRAPH-F9EC * 6EBA ?? * F9ED CJK COMPATIBILITY IDEOGRAPH-F9ED * 541D ?? * F9EE CJK COMPATIBILITY IDEOGRAPH-F9EE * 71D0 ?? * F9EF CJK COMPATIBILITY IDEOGRAPH-F9EF * 7498 ?? * F9F0 CJK COMPATIBILITY IDEOGRAPH-F9F0 * 85FA ?? * F9F1 CJK COMPATIBILITY IDEOGRAPH-F9F1 * 96A3 ?? * F9F2 CJK COMPATIBILITY IDEOGRAPH-F9F2 * 9C57 ?? * F9F3 CJK COMPATIBILITY IDEOGRAPH-F9F3 * 9E9F ?? * F9F4 CJK COMPATIBILITY IDEOGRAPH-F9F4 * 6797 ?? * F9F5 CJK COMPATIBILITY IDEOGRAPH-F9F5 * 6DCB ?? * F9F6 CJK COMPATIBILITY IDEOGRAPH-F9F6 * 81E8 ?? * F9F7 CJK COMPATIBILITY IDEOGRAPH-F9F7 * 7ACB ?? * F9F8 CJK COMPATIBILITY IDEOGRAPH-F9F8 * 7B20 ?? * F9F9 CJK COMPATIBILITY IDEOGRAPH-F9F9 * 7C92 ?? * F9FA CJK COMPATIBILITY IDEOGRAPH-F9FA * 72C0 ?? * F9FB CJK COMPATIBILITY IDEOGRAPH-F9FB * 7099 ?? * F9FC CJK COMPATIBILITY IDEOGRAPH-F9FC * 8B58 ?? * F9FD CJK COMPATIBILITY IDEOGRAPH-F9FD * 4EC0 ?? * F9FE CJK COMPATIBILITY IDEOGRAPH-F9FE * 8336 ?? * F9FF CJK COMPATIBILITY IDEOGRAPH-F9FF * 523A ?? * FA00 CJK COMPATIBILITY IDEOGRAPH-FA00 * 5207 ?? * FA01 CJK COMPATIBILITY IDEOGRAPH-FA01 * 5EA6 ?? * FA02 CJK COMPATIBILITY IDEOGRAPH-FA02 * 62D3 ?? * FA03 CJK COMPATIBILITY IDEOGRAPH-FA03 * 7CD6 ?? * FA04 CJK COMPATIBILITY IDEOGRAPH-FA04 * 5B85 ?? * FA05 CJK COMPATIBILITY IDEOGRAPH-FA05 * 6D1E ?? * FA06 CJK COMPATIBILITY IDEOGRAPH-FA06 * 66B4 ?? * FA07 CJK COMPATIBILITY IDEOGRAPH-FA07 * 8F3B ?? * FA08 CJK COMPATIBILITY IDEOGRAPH-FA08 * 884C ?? * FA09 CJK COMPATIBILITY IDEOGRAPH-FA09 * 964D ?? * FA0A CJK COMPATIBILITY IDEOGRAPH-FA0A * 898B ?? * FA0B CJK COMPATIBILITY IDEOGRAPH-FA0B * 5ED3 ?? * FA0C CJK COMPATIBILITY IDEOGRAPH-FA0C * 5140 ?? * FA0D CJK COMPATIBILITY IDEOGRAPH-FA0D * 55C0 ?? * FA10 CJK COMPATIBILITY IDEOGRAPH-FA10 * 585A ?? * FA12 CJK COMPATIBILITY IDEOGRAPH-FA12 * 6674 ?? * FA15 CJK COMPATIBILITY IDEOGRAPH-FA15 * 51DE ?? * FA16 CJK COMPATIBILITY IDEOGRAPH-FA16 * 732A ?? * FA17 CJK COMPATIBILITY IDEOGRAPH-FA17 * 76CA ?? * FA18 CJK COMPATIBILITY IDEOGRAPH-FA18 * 793C ?? * FA19 CJK COMPATIBILITY IDEOGRAPH-FA19 * 795E ?? * FA1A CJK COMPATIBILITY IDEOGRAPH-FA1A * 7965 ?? * FA1B CJK COMPATIBILITY IDEOGRAPH-FA1B * 798F ?? * FA1C CJK COMPATIBILITY IDEOGRAPH-FA1C * 9756 ?? * FA1D CJK COMPATIBILITY IDEOGRAPH-FA1D * 7CBE ?? * FA1E CJK COMPATIBILITY IDEOGRAPH-FA1E * 7FBD ?? * FA20 CJK COMPATIBILITY IDEOGRAPH-FA20 * 8612 ?? * FA22 CJK COMPATIBILITY IDEOGRAPH-FA22 * 8AF8 ?? * FA25 CJK COMPATIBILITY IDEOGRAPH-FA25 * 9038 ?? * FA26 CJK COMPATIBILITY IDEOGRAPH-FA26 * 90FD ?? * FA2A CJK COMPATIBILITY IDEOGRAPH-FA2A * 98EF ?? * FA2B CJK COMPATIBILITY IDEOGRAPH-FA2B * 98FC ?? * FA2C CJK COMPATIBILITY IDEOGRAPH-FA2C * 9928 ?? * FA2D CJK COMPATIBILITY IDEOGRAPH-FA2D * 9DB4 ?? * FA2E CJK COMPATIBILITY IDEOGRAPH-FA2E * 90DE ?? * FA2F CJK COMPATIBILITY IDEOGRAPH-FA2F * 96B7 ?? * FA30 CJK COMPATIBILITY IDEOGRAPH-FA30 * 4FAE ?? * FA31 CJK COMPATIBILITY IDEOGRAPH-FA31 * 50E7 ?? * FA32 CJK COMPATIBILITY IDEOGRAPH-FA32 * 514D ?? * FA33 CJK COMPATIBILITY IDEOGRAPH-FA33 * 52C9 ?? * FA34 CJK COMPATIBILITY IDEOGRAPH-FA34 * 52E4 ?? * FA35 CJK COMPATIBILITY IDEOGRAPH-FA35 * 5351 ?? * FA36 CJK COMPATIBILITY IDEOGRAPH-FA36 * 559D ?? * FA37 CJK COMPATIBILITY IDEOGRAPH-FA37 * 5606 ?? * FA38 CJK COMPATIBILITY IDEOGRAPH-FA38 * 5668 ?? * FA39 CJK COMPATIBILITY IDEOGRAPH-FA39 * 5840 ?? * FA3A CJK COMPATIBILITY IDEOGRAPH-FA3A * 58A8 ?? * FA3B CJK COMPATIBILITY IDEOGRAPH-FA3B * 5C64 ?? * FA3C CJK COMPATIBILITY IDEOGRAPH-FA3C * 5C6E ?? * FA3D CJK COMPATIBILITY IDEOGRAPH-FA3D * 6094 ?? * FA3E CJK COMPATIBILITY IDEOGRAPH-FA3E * 6168 ?? * FA3F CJK COMPATIBILITY IDEOGRAPH-FA3F * 618E ?? * FA40 CJK COMPATIBILITY IDEOGRAPH-FA40 * 61F2 ?? * FA41 CJK COMPATIBILITY IDEOGRAPH-FA41 * 654F ?? * FA42 CJK COMPATIBILITY IDEOGRAPH-FA42 * 65E2 ?? * FA43 CJK COMPATIBILITY IDEOGRAPH-FA43 * 6691 ?? * FA44 CJK COMPATIBILITY IDEOGRAPH-FA44 * 6885 ?? * FA45 CJK COMPATIBILITY IDEOGRAPH-FA45 * 6D77 ?? * FA46 CJK COMPATIBILITY IDEOGRAPH-FA46 * 6E1A ?? * FA47 CJK COMPATIBILITY IDEOGRAPH-FA47 * 6F22 ?? * FA48 CJK COMPATIBILITY IDEOGRAPH-FA48 * 716E ?? * FA49 CJK COMPATIBILITY IDEOGRAPH-FA49 * 722B ?? * FA4A CJK COMPATIBILITY IDEOGRAPH-FA4A * 7422 ?? * FA4B CJK COMPATIBILITY IDEOGRAPH-FA4B * 7891 ?? * FA4C CJK COMPATIBILITY IDEOGRAPH-FA4C * 793E ?? * FA4D CJK COMPATIBILITY IDEOGRAPH-FA4D * 7949 ?? * FA4E CJK COMPATIBILITY IDEOGRAPH-FA4E * 7948 ?? * FA4F CJK COMPATIBILITY IDEOGRAPH-FA4F * 7950 ?? * FA50 CJK COMPATIBILITY IDEOGRAPH-FA50 * 7956 ?? * FA51 CJK COMPATIBILITY IDEOGRAPH-FA51 * 795D ?? * FA52 CJK COMPATIBILITY IDEOGRAPH-FA52 * 798D ?? * FA53 CJK COMPATIBILITY IDEOGRAPH-FA53 * 798E ?? * FA54 CJK COMPATIBILITY IDEOGRAPH-FA54 * 7A40 ?? * FA55 CJK COMPATIBILITY IDEOGRAPH-FA55 * 7A81 ?? * FA56 CJK COMPATIBILITY IDEOGRAPH-FA56 * 7BC0 ?? * FA57 CJK COMPATIBILITY IDEOGRAPH-FA57 * 7DF4 ?? * FA58 CJK COMPATIBILITY IDEOGRAPH-FA58 * 7E09 ?? * FA59 CJK COMPATIBILITY IDEOGRAPH-FA59 * 7E41 ?? * FA5A CJK COMPATIBILITY IDEOGRAPH-FA5A * 7F72 ?? * FA5B CJK COMPATIBILITY IDEOGRAPH-FA5B * 8005 ?? * FA5C CJK COMPATIBILITY IDEOGRAPH-FA5C * 81ED ?? * FA5D CJK COMPATIBILITY IDEOGRAPH-FA5D * 8279 ?? * FA5E CJK COMPATIBILITY IDEOGRAPH-FA5E * 8279 ?? * FA5F CJK COMPATIBILITY IDEOGRAPH-FA5F * 8457 ?? * FA60 CJK COMPATIBILITY IDEOGRAPH-FA60 * 8910 ?? * FA61 CJK COMPATIBILITY IDEOGRAPH-FA61 * 8996 ?? * FA62 CJK COMPATIBILITY IDEOGRAPH-FA62 * 8B01 ?? * FA63 CJK COMPATIBILITY IDEOGRAPH-FA63 * 8B39 ?? * FA64 CJK COMPATIBILITY IDEOGRAPH-FA64 * 8CD3 ?? * FA65 CJK COMPATIBILITY IDEOGRAPH-FA65 * 8D08 ?? * FA66 CJK COMPATIBILITY IDEOGRAPH-FA66 * 8FB6 ?? * FA67 CJK COMPATIBILITY IDEOGRAPH-FA67 * 9038 ?? * FA68 CJK COMPATIBILITY IDEOGRAPH-FA68 * 96E3 ?? * FA69 CJK COMPATIBILITY IDEOGRAPH-FA69 * 97FF ?? * FA6A CJK COMPATIBILITY IDEOGRAPH-FA6A * 983B ?? * FA6B CJK COMPATIBILITY IDEOGRAPH-FA6B * 6075 ?? * FA6D CJK COMPATIBILITY IDEOGRAPH-FA6D * 8218 ?? * FA70 CJK COMPATIBILITY IDEOGRAPH-FA70 * 4E26 ?? * FA71 CJK COMPATIBILITY IDEOGRAPH-FA71 * 51B5 ?? * FA72 CJK COMPATIBILITY IDEOGRAPH-FA72 * 5168 ?? * FA73 CJK COMPATIBILITY IDEOGRAPH-FA73 * 4F80 ?? * FA74 CJK COMPATIBILITY IDEOGRAPH-FA74 * 5145 ?? * FA75 CJK COMPATIBILITY IDEOGRAPH-FA75 * 5180 ?? * FA76 CJK COMPATIBILITY IDEOGRAPH-FA76 * 52C7 ?? * FA77 CJK COMPATIBILITY IDEOGRAPH-FA77 * 52FA ?? * FA78 CJK COMPATIBILITY IDEOGRAPH-FA78 * 559D ?? * FA79 CJK COMPATIBILITY IDEOGRAPH-FA79 * 5555 ?? * FA7A CJK COMPATIBILITY IDEOGRAPH-FA7A * 5599 ?? * FA7B CJK COMPATIBILITY IDEOGRAPH-FA7B * 55E2 ?? * FA7C CJK COMPATIBILITY IDEOGRAPH-FA7C * 585A ?? * FA7D CJK COMPATIBILITY IDEOGRAPH-FA7D * 58B3 ?? * FA7E CJK COMPATIBILITY IDEOGRAPH-FA7E * 5944 ?? * FA7F CJK COMPATIBILITY IDEOGRAPH-FA7F * 5954 ?? * FA80 CJK COMPATIBILITY IDEOGRAPH-FA80 * 5A62 ?? * FA81 CJK COMPATIBILITY IDEOGRAPH-FA81 * 5B28 ?? * FA82 CJK COMPATIBILITY IDEOGRAPH-FA82 * 5ED2 ?? * FA83 CJK COMPATIBILITY IDEOGRAPH-FA83 * 5ED9 ?? * FA84 CJK COMPATIBILITY IDEOGRAPH-FA84 * 5F69 ?? * FA85 CJK COMPATIBILITY IDEOGRAPH-FA85 * 5FAD ?? * FA86 CJK COMPATIBILITY IDEOGRAPH-FA86 * 60D8 ?? * FA87 CJK COMPATIBILITY IDEOGRAPH-FA87 * 614E ?? * FA88 CJK COMPATIBILITY IDEOGRAPH-FA88 * 6108 ?? * FA89 CJK COMPATIBILITY IDEOGRAPH-FA89 * 618E ?? * FA8A CJK COMPATIBILITY IDEOGRAPH-FA8A * 6160 ?? * FA8B CJK COMPATIBILITY IDEOGRAPH-FA8B * 61F2 ?? * FA8C CJK COMPATIBILITY IDEOGRAPH-FA8C * 6234 ?? * FA8D CJK COMPATIBILITY IDEOGRAPH-FA8D * 63C4 ?? * FA8E CJK COMPATIBILITY IDEOGRAPH-FA8E * 641C ?? * FA8F CJK COMPATIBILITY IDEOGRAPH-FA8F * 6452 ?? * FA90 CJK COMPATIBILITY IDEOGRAPH-FA90 * 6556 ?? * FA91 CJK COMPATIBILITY IDEOGRAPH-FA91 * 6674 ?? * FA92 CJK COMPATIBILITY IDEOGRAPH-FA92 * 6717 ?? * FA93 CJK COMPATIBILITY IDEOGRAPH-FA93 * 671B ?? * FA94 CJK COMPATIBILITY IDEOGRAPH-FA94 * 6756 ?? * FA95 CJK COMPATIBILITY IDEOGRAPH-FA95 * 6B79 ?? * FA96 CJK COMPATIBILITY IDEOGRAPH-FA96 * 6BBA ?? * FA97 CJK COMPATIBILITY IDEOGRAPH-FA97 * 6D41 ?? * FA98 CJK COMPATIBILITY IDEOGRAPH-FA98 * 6EDB ?? * FA99 CJK COMPATIBILITY IDEOGRAPH-FA99 * 6ECB ?? * FA9A CJK COMPATIBILITY IDEOGRAPH-FA9A * 6F22 ?? * FA9B CJK COMPATIBILITY IDEOGRAPH-FA9B * 701E ?? * FA9C CJK COMPATIBILITY IDEOGRAPH-FA9C * 716E ?? * FA9D CJK COMPATIBILITY IDEOGRAPH-FA9D * 77A7 ?? * FA9E CJK COMPATIBILITY IDEOGRAPH-FA9E * 7235 ?? * FA9F CJK COMPATIBILITY IDEOGRAPH-FA9F * 72AF ?? * FAA0 CJK COMPATIBILITY IDEOGRAPH-FAA0 * 732A ?? * FAA1 CJK COMPATIBILITY IDEOGRAPH-FAA1 * 7471 ?? * FAA2 CJK COMPATIBILITY IDEOGRAPH-FAA2 * 7506 ?? * FAA3 CJK COMPATIBILITY IDEOGRAPH-FAA3 * 753B ?? * FAA4 CJK COMPATIBILITY IDEOGRAPH-FAA4 * 761D ?? * FAA5 CJK COMPATIBILITY IDEOGRAPH-FAA5 * 761F ?? * FAA6 CJK COMPATIBILITY IDEOGRAPH-FAA6 * 76CA ?? * FAA7 CJK COMPATIBILITY IDEOGRAPH-FAA7 * 76DB ?? * FAA8 CJK COMPATIBILITY IDEOGRAPH-FAA8 * 76F4 ?? * FAA9 CJK COMPATIBILITY IDEOGRAPH-FAA9 * 774A ?? * FAAA CJK COMPATIBILITY IDEOGRAPH-FAAA * 7740 ?? * FAAB CJK COMPATIBILITY IDEOGRAPH-FAAB * 78CC ?? * FAAC CJK COMPATIBILITY IDEOGRAPH-FAAC * 7AB1 ?? * FAAD CJK COMPATIBILITY IDEOGRAPH-FAAD * 7BC0 ?? * FAAE CJK COMPATIBILITY IDEOGRAPH-FAAE * 7C7B ?? * FAAF CJK COMPATIBILITY IDEOGRAPH-FAAF * 7D5B ?? * FAB0 CJK COMPATIBILITY IDEOGRAPH-FAB0 * 7DF4 ?? * FAB1 CJK COMPATIBILITY IDEOGRAPH-FAB1 * 7F3E ?? * FAB2 CJK COMPATIBILITY IDEOGRAPH-FAB2 * 8005 ?? * FAB3 CJK COMPATIBILITY IDEOGRAPH-FAB3 * 8352 ?? * FAB4 CJK COMPATIBILITY IDEOGRAPH-FAB4 * 83EF ?? * FAB5 CJK COMPATIBILITY IDEOGRAPH-FAB5 * 8779 ?? * FAB6 CJK COMPATIBILITY IDEOGRAPH-FAB6 * 8941 ?? * FAB7 CJK COMPATIBILITY IDEOGRAPH-FAB7 * 8986 ?? * FAB8 CJK COMPATIBILITY IDEOGRAPH-FAB8 * 8996 ?? * FAB9 CJK COMPATIBILITY IDEOGRAPH-FAB9 * 8ABF ?? * FABA CJK COMPATIBILITY IDEOGRAPH-FABA * 8AF8 ?? * FABB CJK COMPATIBILITY IDEOGRAPH-FABB * 8ACB ?? * FABC CJK COMPATIBILITY IDEOGRAPH-FABC * 8B01 ?? * FABD CJK COMPATIBILITY IDEOGRAPH-FABD * 8AFE ?? * FABE CJK COMPATIBILITY IDEOGRAPH-FABE * 8AED ?? * FABF CJK COMPATIBILITY IDEOGRAPH-FABF * 8B39 ?? * FAC0 CJK COMPATIBILITY IDEOGRAPH-FAC0 * 8B8A ?? * FAC1 CJK COMPATIBILITY IDEOGRAPH-FAC1 * 8D08 ?? * FAC2 CJK COMPATIBILITY IDEOGRAPH-FAC2 * 8F38 ?? * FAC3 CJK COMPATIBILITY IDEOGRAPH-FAC3 * 9072 ?? * FAC4 CJK COMPATIBILITY IDEOGRAPH-FAC4 * 9199 ?? * FAC5 CJK COMPATIBILITY IDEOGRAPH-FAC5 * 9276 ?? * FAC6 CJK COMPATIBILITY IDEOGRAPH-FAC6 * 967C ?? * FAC7 CJK COMPATIBILITY IDEOGRAPH-FAC7 * 96E3 ?? * FAC8 CJK COMPATIBILITY IDEOGRAPH-FAC8 * 9756 ?? * FAC9 CJK COMPATIBILITY IDEOGRAPH-FAC9 * 97DB ?? * FACA CJK COMPATIBILITY IDEOGRAPH-FACA * 97FF ?? * FACB CJK COMPATIBILITY IDEOGRAPH-FACB * 980B ?? * FACC CJK COMPATIBILITY IDEOGRAPH-FACC * 983B ?? * FACD CJK COMPATIBILITY IDEOGRAPH-FACD * 9B12 ?? * FACE CJK COMPATIBILITY IDEOGRAPH-FACE * 9F9C ?? * FAD2 CJK COMPATIBILITY IDEOGRAPH-FAD2 * 3B9D ?? * FAD3 CJK COMPATIBILITY IDEOGRAPH-FAD3 * 4018 ?? * FAD4 CJK COMPATIBILITY IDEOGRAPH-FAD4 * 4039 ?? * FAD8 CJK COMPATIBILITY IDEOGRAPH-FAD8 * 9F43 ?? * FAD9 CJK COMPATIBILITY IDEOGRAPH-FAD9 * 9F8E ?? * FB00 LATIN SMALL LIGATURE FF * 0066 LATIN SMALL LETTER F * 0066 LATIN SMALL LETTER F * FB01 LATIN SMALL LIGATURE FI * 0066 LATIN SMALL LETTER F * 0069 LATIN SMALL LETTER I * FB02 LATIN SMALL LIGATURE FL * 0066 LATIN SMALL LETTER F * 006C LATIN SMALL LETTER L * FB03 LATIN SMALL LIGATURE FFI * 0066 LATIN SMALL LETTER F * 0066 LATIN SMALL LETTER F * 0069 LATIN SMALL LETTER I * FB04 LATIN SMALL LIGATURE FFL * 0066 LATIN SMALL LETTER F * 0066 LATIN SMALL LETTER F * 006C LATIN SMALL LETTER L * FB05 LATIN SMALL LIGATURE LONG S T * 0074 LATIN SMALL LETTER T * 0073 LATIN SMALL LETTER S * FB06 LATIN SMALL LIGATURE ST * 0073 LATIN SMALL LETTER S * 0074 LATIN SMALL LETTER T * FB13 ARMENIAN SMALL LIGATURE MEN NOW * 0574 ARMENIAN SMALL LETTER MEN * 0576 ARMENIAN SMALL LETTER NOW * FB14 ARMENIAN SMALL LIGATURE MEN ECH * 0574 ARMENIAN SMALL LETTER MEN * 0565 ARMENIAN SMALL LETTER ECH * FB15 ARMENIAN SMALL LIGATURE MEN INI * 0574 ARMENIAN SMALL LETTER MEN * 056B ARMENIAN SMALL LETTER INI * FB16 ARMENIAN SMALL LIGATURE VEW NOW * 057E ARMENIAN SMALL LETTER VEW * 0576 ARMENIAN SMALL LETTER NOW * FB17 ARMENIAN SMALL LIGATURE MEN XEH * 0574 ARMENIAN SMALL LETTER MEN * 056D ARMENIAN SMALL LETTER XEH * FB1D HEBREW LETTER YOD WITH HIRIQ * 05D9 HEBREW LETTER YOD * FB1E HEBREW POINT JUDEO-SPANISH VARIKA * 0000 * FB1F HEBREW LIGATURE YIDDISH YOD YOD PATAH * 05F2 HEBREW LIGATURE YIDDISH DOUBLE YOD * FB20 HEBREW LETTER ALTERNATIVE AYIN * 05E2 HEBREW LETTER AYIN * FB21 HEBREW LETTER WIDE ALEF * 05D0 HEBREW LETTER ALEF * FB22 HEBREW LETTER WIDE DALET * 05D3 HEBREW LETTER DALET * FB23 HEBREW LETTER WIDE HE * 05D4 HEBREW LETTER HE * FB24 HEBREW LETTER WIDE KAF * 05DB HEBREW LETTER KAF * FB25 HEBREW LETTER WIDE LAMED * 05DC HEBREW LETTER LAMED * FB26 HEBREW LETTER WIDE FINAL MEM * 05DD HEBREW LETTER FINAL MEM * FB27 HEBREW LETTER WIDE RESH * 05E8 HEBREW LETTER RESH * FB28 HEBREW LETTER WIDE TAV * 05EA HEBREW LETTER TAV * FB29 HEBREW LETTER ALTERNATIVE PLUS SIGN * 002B PLUS SIGN * FB2A HEBREW LETTER SHIN WITH SHIN DOT * 05E9 HEBREW LETTER SHIN * FB2B HEBREW LETTER SHIN WITH SIN DOT * 05E9 HEBREW LETTER SHIN * FB2C HEBREW LETTER SHIN WITH DAGESH AND SHIN DOT * 05E9 HEBREW LETTER SHIN * FB2D HEBREW LETTER SHIN WITH DAGESH AND SIN DOT * 05E9 HEBREW LETTER SHIN * FB2E HEBREW LETTER ALEF WITH PATAH * 05D0 HEBREW LETTER ALEF * FB2F HEBREW LETTER ALEF WITH QAMATS * 05D0 HEBREW LETTER ALEF * FB30 HEBREW LETTER ALEF WITH MAPIQ * 05D0 HEBREW LETTER ALEF * FB31 HEBREW LETTER BET WITH DAGESH * 05D1 HEBREW LETTER BET * FB32 HEBREW LETTER GIMEL WITH DAGESH * 05D2 HEBREW LETTER GIMEL * FB33 HEBREW LETTER DALET WITH DAGESH * 05D3 HEBREW LETTER DALET * FB34 HEBREW LETTER HE WITH MAPIQ * 05D4 HEBREW LETTER HE * FB35 HEBREW LETTER VAV WITH DAGESH * 05D5 HEBREW LETTER VAV * FB36 HEBREW LETTER ZAYIN WITH DAGESH * 05D6 HEBREW LETTER ZAYIN * FB38 HEBREW LETTER TET WITH DAGESH * 05D8 HEBREW LETTER TET * FB39 HEBREW LETTER YOD WITH DAGESH * 05D9 HEBREW LETTER YOD * FB3A HEBREW LETTER FINAL KAF WITH DAGESH * 05DA HEBREW LETTER FINAL KAF * FB3B HEBREW LETTER KAF WITH DAGESH * 05DB HEBREW LETTER KAF * FB3C HEBREW LETTER LAMED WITH DAGESH * 05DC HEBREW LETTER LAMED * FB3E HEBREW LETTER MEM WITH DAGESH * 05DE HEBREW LETTER MEM * FB40 HEBREW LETTER NUN WITH DAGESH * 05E0 HEBREW LETTER NUN * FB41 HEBREW LETTER SAMEKH WITH DAGESH * 05E1 HEBREW LETTER SAMEKH * FB43 HEBREW LETTER FINAL PE WITH DAGESH * 05E3 HEBREW LETTER FINAL PE * FB44 HEBREW LETTER PE WITH DAGESH * 05E4 HEBREW LETTER PE * FB46 HEBREW LETTER TSADI WITH DAGESH * 05E6 HEBREW LETTER TSADI * FB47 HEBREW LETTER QOF WITH DAGESH * 05E7 HEBREW LETTER QOF * FB48 HEBREW LETTER RESH WITH DAGESH * 05E8 HEBREW LETTER RESH * FB49 HEBREW LETTER SHIN WITH DAGESH * 05E9 HEBREW LETTER SHIN * FB4A HEBREW LETTER TAV WITH DAGESH * 05EA HEBREW LETTER TAV * FB4B HEBREW LETTER VAV WITH HOLAM * 05D5 HEBREW LETTER VAV * FB4C HEBREW LETTER BET WITH RAFE * 05D1 HEBREW LETTER BET * FB4D HEBREW LETTER KAF WITH RAFE * 05DB HEBREW LETTER KAF * FB4E HEBREW LETTER PE WITH RAFE * 05E4 HEBREW LETTER PE * FB4F HEBREW LIGATURE ALEF LAMED * 05D0 HEBREW LETTER ALEF * 05DC HEBREW LETTER LAMED * FB50 ARABIC LETTER ALEF WASLA ISOLATED FORM * 0671 ARABIC LETTER ALEF WASLA * FB51 ARABIC LETTER ALEF WASLA FINAL FORM * 0671 ARABIC LETTER ALEF WASLA * FB52 ARABIC LETTER BEEH ISOLATED FORM * 067B ARABIC LETTER BEEH * FB53 ARABIC LETTER BEEH FINAL FORM * 067B ARABIC LETTER BEEH * FB54 ARABIC LETTER BEEH INITIAL FORM * 067B ARABIC LETTER BEEH * FB55 ARABIC LETTER BEEH MEDIAL FORM * 067B ARABIC LETTER BEEH * FB56 ARABIC LETTER PEH ISOLATED FORM * 067E ARABIC LETTER PEH * FB57 ARABIC LETTER PEH FINAL FORM * 067E ARABIC LETTER PEH * FB58 ARABIC LETTER PEH INITIAL FORM * 067E ARABIC LETTER PEH * FB59 ARABIC LETTER PEH MEDIAL FORM * 067E ARABIC LETTER PEH * FB5A ARABIC LETTER BEHEH ISOLATED FORM * 0680 ARABIC LETTER BEHEH * FB5B ARABIC LETTER BEHEH FINAL FORM * 0680 ARABIC LETTER BEHEH * FB5C ARABIC LETTER BEHEH INITIAL FORM * 0680 ARABIC LETTER BEHEH * FB5D ARABIC LETTER BEHEH MEDIAL FORM * 0680 ARABIC LETTER BEHEH * FB5E ARABIC LETTER TTEHEH ISOLATED FORM * 067A ARABIC LETTER TTEHEH * FB5F ARABIC LETTER TTEHEH FINAL FORM * 067A ARABIC LETTER TTEHEH * FB60 ARABIC LETTER TTEHEH INITIAL FORM * 067A ARABIC LETTER TTEHEH * FB61 ARABIC LETTER TTEHEH MEDIAL FORM * 067A ARABIC LETTER TTEHEH * FB62 ARABIC LETTER TEHEH ISOLATED FORM * 067F ARABIC LETTER TEHEH * FB63 ARABIC LETTER TEHEH FINAL FORM * 067F ARABIC LETTER TEHEH * FB64 ARABIC LETTER TEHEH INITIAL FORM * 067F ARABIC LETTER TEHEH * FB65 ARABIC LETTER TEHEH MEDIAL FORM * 067F ARABIC LETTER TEHEH * FB66 ARABIC LETTER TTEH ISOLATED FORM * 0679 ARABIC LETTER TTEH * FB67 ARABIC LETTER TTEH FINAL FORM * 0679 ARABIC LETTER TTEH * FB68 ARABIC LETTER TTEH INITIAL FORM * 0679 ARABIC LETTER TTEH * FB69 ARABIC LETTER TTEH MEDIAL FORM * 0679 ARABIC LETTER TTEH * FB6A ARABIC LETTER VEH ISOLATED FORM * 06A4 ARABIC LETTER VEH * FB6B ARABIC LETTER VEH FINAL FORM * 06A4 ARABIC LETTER VEH * FB6C ARABIC LETTER VEH INITIAL FORM * 06A4 ARABIC LETTER VEH * FB6D ARABIC LETTER VEH MEDIAL FORM * 06A4 ARABIC LETTER VEH * FB6E ARABIC LETTER PEHEH ISOLATED FORM * 06A6 ARABIC LETTER PEHEH * FB6F ARABIC LETTER PEHEH FINAL FORM * 06A6 ARABIC LETTER PEHEH * FB70 ARABIC LETTER PEHEH INITIAL FORM * 06A6 ARABIC LETTER PEHEH * FB71 ARABIC LETTER PEHEH MEDIAL FORM * 06A6 ARABIC LETTER PEHEH * FB72 ARABIC LETTER DYEH ISOLATED FORM * 0684 ARABIC LETTER DYEH * FB73 ARABIC LETTER DYEH FINAL FORM * 0684 ARABIC LETTER DYEH * FB74 ARABIC LETTER DYEH INITIAL FORM * 0684 ARABIC LETTER DYEH * FB75 ARABIC LETTER DYEH MEDIAL FORM * 0684 ARABIC LETTER DYEH * FB76 ARABIC LETTER NYEH ISOLATED FORM * 0683 ARABIC LETTER NYEH * FB77 ARABIC LETTER NYEH FINAL FORM * 0683 ARABIC LETTER NYEH * FB78 ARABIC LETTER NYEH INITIAL FORM * 0683 ARABIC LETTER NYEH * FB79 ARABIC LETTER NYEH MEDIAL FORM * 0683 ARABIC LETTER NYEH * FB7A ARABIC LETTER TCHEH ISOLATED FORM * 0686 ARABIC LETTER TCHEH * FB7B ARABIC LETTER TCHEH FINAL FORM * 0686 ARABIC LETTER TCHEH * FB7C ARABIC LETTER TCHEH INITIAL FORM * 0686 ARABIC LETTER TCHEH * FB7D ARABIC LETTER TCHEH MEDIAL FORM * 0686 ARABIC LETTER TCHEH * FB7E ARABIC LETTER TCHEHEH ISOLATED FORM * 0687 ARABIC LETTER TCHEHEH * FB7F ARABIC LETTER TCHEHEH FINAL FORM * 0687 ARABIC LETTER TCHEHEH * FB80 ARABIC LETTER TCHEHEH INITIAL FORM * 0687 ARABIC LETTER TCHEHEH * FB81 ARABIC LETTER TCHEHEH MEDIAL FORM * 0687 ARABIC LETTER TCHEHEH * FB82 ARABIC LETTER DDAHAL ISOLATED FORM * 068D ARABIC LETTER DDAHAL * FB83 ARABIC LETTER DDAHAL FINAL FORM * 068D ARABIC LETTER DDAHAL * FB84 ARABIC LETTER DAHAL ISOLATED FORM * 068C ARABIC LETTER DAHAL * FB85 ARABIC LETTER DAHAL FINAL FORM * 068C ARABIC LETTER DAHAL * FB86 ARABIC LETTER DUL ISOLATED FORM * 068E ARABIC LETTER DUL * FB87 ARABIC LETTER DUL FINAL FORM * 068E ARABIC LETTER DUL * FB88 ARABIC LETTER DDAL ISOLATED FORM * 0688 ARABIC LETTER DDAL * FB89 ARABIC LETTER DDAL FINAL FORM * 0688 ARABIC LETTER DDAL * FB8A ARABIC LETTER JEH ISOLATED FORM * 0698 ARABIC LETTER JEH * FB8B ARABIC LETTER JEH FINAL FORM * 0698 ARABIC LETTER JEH * FB8C ARABIC LETTER RREH ISOLATED FORM * 0691 ARABIC LETTER RREH * FB8D ARABIC LETTER RREH FINAL FORM * 0691 ARABIC LETTER RREH * FB8E ARABIC LETTER KEHEH ISOLATED FORM * 06A9 ARABIC LETTER KEHEH * FB8F ARABIC LETTER KEHEH FINAL FORM * 06A9 ARABIC LETTER KEHEH * FB90 ARABIC LETTER KEHEH INITIAL FORM * 06A9 ARABIC LETTER KEHEH * FB91 ARABIC LETTER KEHEH MEDIAL FORM * 06A9 ARABIC LETTER KEHEH * FB92 ARABIC LETTER GAF ISOLATED FORM * 06AF ARABIC LETTER GAF * FB93 ARABIC LETTER GAF FINAL FORM * 06AF ARABIC LETTER GAF * FB94 ARABIC LETTER GAF INITIAL FORM * 06AF ARABIC LETTER GAF * FB95 ARABIC LETTER GAF MEDIAL FORM * 06AF ARABIC LETTER GAF * FB96 ARABIC LETTER GUEH ISOLATED FORM * 06B3 ARABIC LETTER GUEH * FB97 ARABIC LETTER GUEH FINAL FORM * 06B3 ARABIC LETTER GUEH * FB98 ARABIC LETTER GUEH INITIAL FORM * 06B3 ARABIC LETTER GUEH * FB99 ARABIC LETTER GUEH MEDIAL FORM * 06B3 ARABIC LETTER GUEH * FB9A ARABIC LETTER NGOEH ISOLATED FORM * 06B1 ARABIC LETTER NGOEH * FB9B ARABIC LETTER NGOEH FINAL FORM * 06B1 ARABIC LETTER NGOEH * FB9C ARABIC LETTER NGOEH INITIAL FORM * 06B1 ARABIC LETTER NGOEH * FB9D ARABIC LETTER NGOEH MEDIAL FORM * 06B1 ARABIC LETTER NGOEH * FB9E ARABIC LETTER NOON GHUNNA ISOLATED FORM * 06BA ARABIC LETTER NOON GHUNNA * FB9F ARABIC LETTER NOON GHUNNA FINAL FORM * 06BA ARABIC LETTER NOON GHUNNA * FBA0 ARABIC LETTER RNOON ISOLATED FORM * 06BB ARABIC LETTER RNOON * FBA1 ARABIC LETTER RNOON FINAL FORM * 06BB ARABIC LETTER RNOON * FBA2 ARABIC LETTER RNOON INITIAL FORM * 06BB ARABIC LETTER RNOON * FBA3 ARABIC LETTER RNOON MEDIAL FORM * 06BB ARABIC LETTER RNOON * FBA4 ARABIC LETTER HEH WITH YEH ABOVE ISOLATED FORM * 06D5 ARABIC LETTER AE * FBA5 ARABIC LETTER HEH WITH YEH ABOVE FINAL FORM * 06D5 ARABIC LETTER AE * FBA6 ARABIC LETTER HEH GOAL ISOLATED FORM * 06C1 ARABIC LETTER HEH GOAL * FBA7 ARABIC LETTER HEH GOAL FINAL FORM * 06C1 ARABIC LETTER HEH GOAL * FBA8 ARABIC LETTER HEH GOAL INITIAL FORM * 06C1 ARABIC LETTER HEH GOAL * FBA9 ARABIC LETTER HEH GOAL MEDIAL FORM * 06C1 ARABIC LETTER HEH GOAL * FBAA ARABIC LETTER HEH DOACHASHMEE ISOLATED FORM * 06BE ARABIC LETTER HEH DOACHASHMEE * FBAB ARABIC LETTER HEH DOACHASHMEE FINAL FORM * 06BE ARABIC LETTER HEH DOACHASHMEE * FBAC ARABIC LETTER HEH DOACHASHMEE INITIAL FORM * 06BE ARABIC LETTER HEH DOACHASHMEE * FBAD ARABIC LETTER HEH DOACHASHMEE MEDIAL FORM * 06BE ARABIC LETTER HEH DOACHASHMEE * FBAE ARABIC LETTER YEH BARREE ISOLATED FORM * 06D2 ARABIC LETTER YEH BARREE * FBAF ARABIC LETTER YEH BARREE FINAL FORM * 06D2 ARABIC LETTER YEH BARREE * FBB0 ARABIC LETTER YEH BARREE WITH HAMZA ABOVE ISOLATED FORM * 06D2 ARABIC LETTER YEH BARREE * FBB1 ARABIC LETTER YEH BARREE WITH HAMZA ABOVE FINAL FORM * 06D2 ARABIC LETTER YEH BARREE * FBD3 ARABIC LETTER NG ISOLATED FORM * 06AD ARABIC LETTER NG * FBD4 ARABIC LETTER NG FINAL FORM * 06AD ARABIC LETTER NG * FBD5 ARABIC LETTER NG INITIAL FORM * 06AD ARABIC LETTER NG * FBD6 ARABIC LETTER NG MEDIAL FORM * 06AD ARABIC LETTER NG * FBD7 ARABIC LETTER U ISOLATED FORM * 06C7 ARABIC LETTER U * FBD8 ARABIC LETTER U FINAL FORM * 06C7 ARABIC LETTER U * FBD9 ARABIC LETTER OE ISOLATED FORM * 06C6 ARABIC LETTER OE * FBDA ARABIC LETTER OE FINAL FORM * 06C6 ARABIC LETTER OE * FBDB ARABIC LETTER YU ISOLATED FORM * 06C8 ARABIC LETTER YU * FBDC ARABIC LETTER YU FINAL FORM * 06C8 ARABIC LETTER YU * FBDD ARABIC LETTER U WITH HAMZA ABOVE ISOLATED FORM * 06C7 ARABIC LETTER U * 0674 ARABIC LETTER HIGH HAMZA * FBDE ARABIC LETTER VE ISOLATED FORM * 06CB ARABIC LETTER VE * FBDF ARABIC LETTER VE FINAL FORM * 06CB ARABIC LETTER VE * FBE0 ARABIC LETTER KIRGHIZ OE ISOLATED FORM * 06C5 ARABIC LETTER KIRGHIZ OE * FBE1 ARABIC LETTER KIRGHIZ OE FINAL FORM * 06C5 ARABIC LETTER KIRGHIZ OE * FBE2 ARABIC LETTER KIRGHIZ YU ISOLATED FORM * 06C9 ARABIC LETTER KIRGHIZ YU * FBE3 ARABIC LETTER KIRGHIZ YU FINAL FORM * 06C9 ARABIC LETTER KIRGHIZ YU * FBE4 ARABIC LETTER E ISOLATED FORM * 06D0 ARABIC LETTER E * FBE5 ARABIC LETTER E FINAL FORM * 06D0 ARABIC LETTER E * FBE6 ARABIC LETTER E INITIAL FORM * 06D0 ARABIC LETTER E * FBE7 ARABIC LETTER E MEDIAL FORM * 06D0 ARABIC LETTER E * FBE8 ARABIC LETTER UIGHUR KAZAKH KIRGHIZ ALEF MAKSURA INITIAL FORM * 0649 ARABIC LETTER ALEF MAKSURA * FBE9 ARABIC LETTER UIGHUR KAZAKH KIRGHIZ ALEF MAKSURA MEDIAL FORM * 0649 ARABIC LETTER ALEF MAKSURA * FBEA ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH ALEF ISOLATED FORM * 0627 ARABIC LETTER ALEF * 064A ARABIC LETTER YEH * FBEB ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH ALEF FINAL FORM * 0627 ARABIC LETTER ALEF * 064A ARABIC LETTER YEH * FBEC ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH AE ISOLATED FORM * 06D5 ARABIC LETTER AE * 064A ARABIC LETTER YEH * FBED ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH AE FINAL FORM * 06D5 ARABIC LETTER AE * 064A ARABIC LETTER YEH * FBEE ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH WAW ISOLATED FORM * 0648 ARABIC LETTER WAW * 064A ARABIC LETTER YEH * FBEF ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH WAW FINAL FORM * 0648 ARABIC LETTER WAW * 064A ARABIC LETTER YEH * FBF0 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH U ISOLATED FORM * 06C7 ARABIC LETTER U * 064A ARABIC LETTER YEH * FBF1 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH U FINAL FORM * 06C7 ARABIC LETTER U * 064A ARABIC LETTER YEH * FBF2 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH OE ISOLATED FORM * 06C6 ARABIC LETTER OE * 064A ARABIC LETTER YEH * FBF3 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH OE FINAL FORM * 06C6 ARABIC LETTER OE * 064A ARABIC LETTER YEH * FBF4 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH YU ISOLATED FORM * 06C8 ARABIC LETTER YU * 064A ARABIC LETTER YEH * FBF5 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH YU FINAL FORM * 06C8 ARABIC LETTER YU * 064A ARABIC LETTER YEH * FBF6 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH E ISOLATED FORM * 06D0 ARABIC LETTER E * 064A ARABIC LETTER YEH * FBF7 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH E FINAL FORM * 06D0 ARABIC LETTER E * 064A ARABIC LETTER YEH * FBF8 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH E INITIAL FORM * 06D0 ARABIC LETTER E * 064A ARABIC LETTER YEH * FBF9 ARABIC LIGATURE UIGHUR KIRGHIZ YEH WITH HAMZA ABOVE WITH ALEF MAKSURA ISOLATED FORM * 0649 ARABIC LETTER ALEF MAKSURA * 064A ARABIC LETTER YEH * FBFA ARABIC LIGATURE UIGHUR KIRGHIZ YEH WITH HAMZA ABOVE WITH ALEF MAKSURA FINAL FORM * 0649 ARABIC LETTER ALEF MAKSURA * 064A ARABIC LETTER YEH * FBFB ARABIC LIGATURE UIGHUR KIRGHIZ YEH WITH HAMZA ABOVE WITH ALEF MAKSURA INITIAL FORM * 0649 ARABIC LETTER ALEF MAKSURA * 064A ARABIC LETTER YEH * FBFC ARABIC LETTER FARSI YEH ISOLATED FORM * 06CC ARABIC LETTER FARSI YEH * FBFD ARABIC LETTER FARSI YEH FINAL FORM * 06CC ARABIC LETTER FARSI YEH * FBFE ARABIC LETTER FARSI YEH INITIAL FORM * 06CC ARABIC LETTER FARSI YEH * FBFF ARABIC LETTER FARSI YEH MEDIAL FORM * 06CC ARABIC LETTER FARSI YEH * FC00 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH JEEM ISOLATED FORM * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FC01 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH HAH ISOLATED FORM * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FC02 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH MEEM ISOLATED FORM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FC03 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH ALEF MAKSURA ISOLATED FORM * 0649 ARABIC LETTER ALEF MAKSURA * 064A ARABIC LETTER YEH * FC04 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH YEH ISOLATED FORM * 064A ARABIC LETTER YEH * 064A ARABIC LETTER YEH * FC05 ARABIC LIGATURE BEH WITH JEEM ISOLATED FORM * 0628 ARABIC LETTER BEH * 062C ARABIC LETTER JEEM * FC06 ARABIC LIGATURE BEH WITH HAH ISOLATED FORM * 0628 ARABIC LETTER BEH * 062D ARABIC LETTER HAH * FC07 ARABIC LIGATURE BEH WITH KHAH ISOLATED FORM * 0628 ARABIC LETTER BEH * 062E ARABIC LETTER KHAH * FC08 ARABIC LIGATURE BEH WITH MEEM ISOLATED FORM * 0628 ARABIC LETTER BEH * 0645 ARABIC LETTER MEEM * FC09 ARABIC LIGATURE BEH WITH ALEF MAKSURA ISOLATED FORM * 0628 ARABIC LETTER BEH * 0649 ARABIC LETTER ALEF MAKSURA * FC0A ARABIC LIGATURE BEH WITH YEH ISOLATED FORM * 0628 ARABIC LETTER BEH * 064A ARABIC LETTER YEH * FC0B ARABIC LIGATURE TEH WITH JEEM ISOLATED FORM * 062A ARABIC LETTER TEH * 062C ARABIC LETTER JEEM * FC0C ARABIC LIGATURE TEH WITH HAH ISOLATED FORM * 062A ARABIC LETTER TEH * 062D ARABIC LETTER HAH * FC0D ARABIC LIGATURE TEH WITH KHAH ISOLATED FORM * 062A ARABIC LETTER TEH * 062E ARABIC LETTER KHAH * FC0E ARABIC LIGATURE TEH WITH MEEM ISOLATED FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * FC0F ARABIC LIGATURE TEH WITH ALEF MAKSURA ISOLATED FORM * 062A ARABIC LETTER TEH * 0649 ARABIC LETTER ALEF MAKSURA * FC10 ARABIC LIGATURE TEH WITH YEH ISOLATED FORM * 062A ARABIC LETTER TEH * 064A ARABIC LETTER YEH * FC11 ARABIC LIGATURE THEH WITH JEEM ISOLATED FORM * 062B ARABIC LETTER THEH * 062C ARABIC LETTER JEEM * FC12 ARABIC LIGATURE THEH WITH MEEM ISOLATED FORM * 062B ARABIC LETTER THEH * 0645 ARABIC LETTER MEEM * FC13 ARABIC LIGATURE THEH WITH ALEF MAKSURA ISOLATED FORM * 062B ARABIC LETTER THEH * 0649 ARABIC LETTER ALEF MAKSURA * FC14 ARABIC LIGATURE THEH WITH YEH ISOLATED FORM * 062B ARABIC LETTER THEH * 064A ARABIC LETTER YEH * FC15 ARABIC LIGATURE JEEM WITH HAH ISOLATED FORM * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * FC16 ARABIC LIGATURE JEEM WITH MEEM ISOLATED FORM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FC17 ARABIC LIGATURE HAH WITH JEEM ISOLATED FORM * 062D ARABIC LETTER HAH * 062C ARABIC LETTER JEEM * FC18 ARABIC LIGATURE HAH WITH MEEM ISOLATED FORM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FC19 ARABIC LIGATURE KHAH WITH JEEM ISOLATED FORM * 062E ARABIC LETTER KHAH * 062C ARABIC LETTER JEEM * FC1A ARABIC LIGATURE KHAH WITH HAH ISOLATED FORM * 062E ARABIC LETTER KHAH * 062D ARABIC LETTER HAH * FC1B ARABIC LIGATURE KHAH WITH MEEM ISOLATED FORM * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FC1C ARABIC LIGATURE SEEN WITH JEEM ISOLATED FORM * 0633 ARABIC LETTER SEEN * 062C ARABIC LETTER JEEM * FC1D ARABIC LIGATURE SEEN WITH HAH ISOLATED FORM * 0633 ARABIC LETTER SEEN * 062D ARABIC LETTER HAH * FC1E ARABIC LIGATURE SEEN WITH KHAH ISOLATED FORM * 0633 ARABIC LETTER SEEN * 062E ARABIC LETTER KHAH * FC1F ARABIC LIGATURE SEEN WITH MEEM ISOLATED FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * FC20 ARABIC LIGATURE SAD WITH HAH ISOLATED FORM * 0635 ARABIC LETTER SAD * 062D ARABIC LETTER HAH * FC21 ARABIC LIGATURE SAD WITH MEEM ISOLATED FORM * 0635 ARABIC LETTER SAD * 0645 ARABIC LETTER MEEM * FC22 ARABIC LIGATURE DAD WITH JEEM ISOLATED FORM * 0636 ARABIC LETTER DAD * 062C ARABIC LETTER JEEM * FC23 ARABIC LIGATURE DAD WITH HAH ISOLATED FORM * 0636 ARABIC LETTER DAD * 062D ARABIC LETTER HAH * FC24 ARABIC LIGATURE DAD WITH KHAH ISOLATED FORM * 0636 ARABIC LETTER DAD * 062E ARABIC LETTER KHAH * FC25 ARABIC LIGATURE DAD WITH MEEM ISOLATED FORM * 0636 ARABIC LETTER DAD * 0645 ARABIC LETTER MEEM * FC26 ARABIC LIGATURE TAH WITH HAH ISOLATED FORM * 0637 ARABIC LETTER TAH * 062D ARABIC LETTER HAH * FC27 ARABIC LIGATURE TAH WITH MEEM ISOLATED FORM * 0637 ARABIC LETTER TAH * 0645 ARABIC LETTER MEEM * FC28 ARABIC LIGATURE ZAH WITH MEEM ISOLATED FORM * 0638 ARABIC LETTER ZAH * 0645 ARABIC LETTER MEEM * FC29 ARABIC LIGATURE AIN WITH JEEM ISOLATED FORM * 0639 ARABIC LETTER AIN * 062C ARABIC LETTER JEEM * FC2A ARABIC LIGATURE AIN WITH MEEM ISOLATED FORM * 0639 ARABIC LETTER AIN * 0645 ARABIC LETTER MEEM * FC2B ARABIC LIGATURE GHAIN WITH JEEM ISOLATED FORM * 063A ARABIC LETTER GHAIN * 062C ARABIC LETTER JEEM * FC2C ARABIC LIGATURE GHAIN WITH MEEM ISOLATED FORM * 063A ARABIC LETTER GHAIN * 0645 ARABIC LETTER MEEM * FC2D ARABIC LIGATURE FEH WITH JEEM ISOLATED FORM * 0641 ARABIC LETTER FEH * 062C ARABIC LETTER JEEM * FC2E ARABIC LIGATURE FEH WITH HAH ISOLATED FORM * 0641 ARABIC LETTER FEH * 062D ARABIC LETTER HAH * FC2F ARABIC LIGATURE FEH WITH KHAH ISOLATED FORM * 0641 ARABIC LETTER FEH * 062E ARABIC LETTER KHAH * FC30 ARABIC LIGATURE FEH WITH MEEM ISOLATED FORM * 0641 ARABIC LETTER FEH * 0645 ARABIC LETTER MEEM * FC31 ARABIC LIGATURE FEH WITH ALEF MAKSURA ISOLATED FORM * 0641 ARABIC LETTER FEH * 0649 ARABIC LETTER ALEF MAKSURA * FC32 ARABIC LIGATURE FEH WITH YEH ISOLATED FORM * 0641 ARABIC LETTER FEH * 064A ARABIC LETTER YEH * FC33 ARABIC LIGATURE QAF WITH HAH ISOLATED FORM * 0642 ARABIC LETTER QAF * 062D ARABIC LETTER HAH * FC34 ARABIC LIGATURE QAF WITH MEEM ISOLATED FORM * 0642 ARABIC LETTER QAF * 0645 ARABIC LETTER MEEM * FC35 ARABIC LIGATURE QAF WITH ALEF MAKSURA ISOLATED FORM * 0642 ARABIC LETTER QAF * 0649 ARABIC LETTER ALEF MAKSURA * FC36 ARABIC LIGATURE QAF WITH YEH ISOLATED FORM * 0642 ARABIC LETTER QAF * 064A ARABIC LETTER YEH * FC37 ARABIC LIGATURE KAF WITH ALEF ISOLATED FORM * 0643 ARABIC LETTER KAF * 0627 ARABIC LETTER ALEF * FC38 ARABIC LIGATURE KAF WITH JEEM ISOLATED FORM * 0643 ARABIC LETTER KAF * 062C ARABIC LETTER JEEM * FC39 ARABIC LIGATURE KAF WITH HAH ISOLATED FORM * 0643 ARABIC LETTER KAF * 062D ARABIC LETTER HAH * FC3A ARABIC LIGATURE KAF WITH KHAH ISOLATED FORM * 0643 ARABIC LETTER KAF * 062E ARABIC LETTER KHAH * FC3B ARABIC LIGATURE KAF WITH LAM ISOLATED FORM * 0643 ARABIC LETTER KAF * 0644 ARABIC LETTER LAM * FC3C ARABIC LIGATURE KAF WITH MEEM ISOLATED FORM * 0643 ARABIC LETTER KAF * 0645 ARABIC LETTER MEEM * FC3D ARABIC LIGATURE KAF WITH ALEF MAKSURA ISOLATED FORM * 0643 ARABIC LETTER KAF * 0649 ARABIC LETTER ALEF MAKSURA * FC3E ARABIC LIGATURE KAF WITH YEH ISOLATED FORM * 0643 ARABIC LETTER KAF * 064A ARABIC LETTER YEH * FC3F ARABIC LIGATURE LAM WITH JEEM ISOLATED FORM * 0644 ARABIC LETTER LAM * 062C ARABIC LETTER JEEM * FC40 ARABIC LIGATURE LAM WITH HAH ISOLATED FORM * 0644 ARABIC LETTER LAM * 062D ARABIC LETTER HAH * FC41 ARABIC LIGATURE LAM WITH KHAH ISOLATED FORM * 0644 ARABIC LETTER LAM * 062E ARABIC LETTER KHAH * FC42 ARABIC LIGATURE LAM WITH MEEM ISOLATED FORM * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * FC43 ARABIC LIGATURE LAM WITH ALEF MAKSURA ISOLATED FORM * 0644 ARABIC LETTER LAM * 0649 ARABIC LETTER ALEF MAKSURA * FC44 ARABIC LIGATURE LAM WITH YEH ISOLATED FORM * 0644 ARABIC LETTER LAM * 064A ARABIC LETTER YEH * FC45 ARABIC LIGATURE MEEM WITH JEEM ISOLATED FORM * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * FC46 ARABIC LIGATURE MEEM WITH HAH ISOLATED FORM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FC47 ARABIC LIGATURE MEEM WITH KHAH ISOLATED FORM * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * FC48 ARABIC LIGATURE MEEM WITH MEEM ISOLATED FORM * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FC49 ARABIC LIGATURE MEEM WITH ALEF MAKSURA ISOLATED FORM * 0645 ARABIC LETTER MEEM * 0649 ARABIC LETTER ALEF MAKSURA * FC4A ARABIC LIGATURE MEEM WITH YEH ISOLATED FORM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FC4B ARABIC LIGATURE NOON WITH JEEM ISOLATED FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * FC4C ARABIC LIGATURE NOON WITH HAH ISOLATED FORM * 0646 ARABIC LETTER NOON * 062D ARABIC LETTER HAH * FC4D ARABIC LIGATURE NOON WITH KHAH ISOLATED FORM * 0646 ARABIC LETTER NOON * 062E ARABIC LETTER KHAH * FC4E ARABIC LIGATURE NOON WITH MEEM ISOLATED FORM * 0646 ARABIC LETTER NOON * 0645 ARABIC LETTER MEEM * FC4F ARABIC LIGATURE NOON WITH ALEF MAKSURA ISOLATED FORM * 0646 ARABIC LETTER NOON * 0649 ARABIC LETTER ALEF MAKSURA * FC50 ARABIC LIGATURE NOON WITH YEH ISOLATED FORM * 0646 ARABIC LETTER NOON * 064A ARABIC LETTER YEH * FC51 ARABIC LIGATURE HEH WITH JEEM ISOLATED FORM * 0647 ARABIC LETTER HEH * 062C ARABIC LETTER JEEM * FC52 ARABIC LIGATURE HEH WITH MEEM ISOLATED FORM * 0647 ARABIC LETTER HEH * 0645 ARABIC LETTER MEEM * FC53 ARABIC LIGATURE HEH WITH ALEF MAKSURA ISOLATED FORM * 0647 ARABIC LETTER HEH * 0649 ARABIC LETTER ALEF MAKSURA * FC54 ARABIC LIGATURE HEH WITH YEH ISOLATED FORM * 0647 ARABIC LETTER HEH * 064A ARABIC LETTER YEH * FC55 ARABIC LIGATURE YEH WITH JEEM ISOLATED FORM * 064A ARABIC LETTER YEH * 062C ARABIC LETTER JEEM * FC56 ARABIC LIGATURE YEH WITH HAH ISOLATED FORM * 064A ARABIC LETTER YEH * 062D ARABIC LETTER HAH * FC57 ARABIC LIGATURE YEH WITH KHAH ISOLATED FORM * 064A ARABIC LETTER YEH * 062E ARABIC LETTER KHAH * FC58 ARABIC LIGATURE YEH WITH MEEM ISOLATED FORM * 064A ARABIC LETTER YEH * 0645 ARABIC LETTER MEEM * FC59 ARABIC LIGATURE YEH WITH ALEF MAKSURA ISOLATED FORM * 064A ARABIC LETTER YEH * 0649 ARABIC LETTER ALEF MAKSURA * FC5A ARABIC LIGATURE YEH WITH YEH ISOLATED FORM * 064A ARABIC LETTER YEH * 064A ARABIC LETTER YEH * FC5B ARABIC LIGATURE THAL WITH SUPERSCRIPT ALEF ISOLATED FORM * 0630 ARABIC LETTER THAL * FC5C ARABIC LIGATURE REH WITH SUPERSCRIPT ALEF ISOLATED FORM * 0631 ARABIC LETTER REH * FC5D ARABIC LIGATURE ALEF MAKSURA WITH SUPERSCRIPT ALEF ISOLATED FORM * 0649 ARABIC LETTER ALEF MAKSURA * FC5E ARABIC LIGATURE SHADDA WITH DAMMATAN ISOLATED FORM * 0020 SPACE * FC5F ARABIC LIGATURE SHADDA WITH KASRATAN ISOLATED FORM * 0020 SPACE * FC60 ARABIC LIGATURE SHADDA WITH FATHA ISOLATED FORM * 0020 SPACE * FC61 ARABIC LIGATURE SHADDA WITH DAMMA ISOLATED FORM * 0020 SPACE * FC62 ARABIC LIGATURE SHADDA WITH KASRA ISOLATED FORM * 0020 SPACE * FC63 ARABIC LIGATURE SHADDA WITH SUPERSCRIPT ALEF ISOLATED FORM * 0020 SPACE * FC64 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH REH FINAL FORM * 0631 ARABIC LETTER REH * 064A ARABIC LETTER YEH * FC65 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH ZAIN FINAL FORM * 0632 ARABIC LETTER ZAIN * 064A ARABIC LETTER YEH * FC66 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH MEEM FINAL FORM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FC67 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH NOON FINAL FORM * 0646 ARABIC LETTER NOON * 064A ARABIC LETTER YEH * FC68 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH ALEF MAKSURA FINAL FORM * 0649 ARABIC LETTER ALEF MAKSURA * 064A ARABIC LETTER YEH * FC69 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH YEH FINAL FORM * 064A ARABIC LETTER YEH * 064A ARABIC LETTER YEH * FC6A ARABIC LIGATURE BEH WITH REH FINAL FORM * 0628 ARABIC LETTER BEH * 0631 ARABIC LETTER REH * FC6B ARABIC LIGATURE BEH WITH ZAIN FINAL FORM * 0628 ARABIC LETTER BEH * 0632 ARABIC LETTER ZAIN * FC6C ARABIC LIGATURE BEH WITH MEEM FINAL FORM * 0628 ARABIC LETTER BEH * 0645 ARABIC LETTER MEEM * FC6D ARABIC LIGATURE BEH WITH NOON FINAL FORM * 0628 ARABIC LETTER BEH * 0646 ARABIC LETTER NOON * FC6E ARABIC LIGATURE BEH WITH ALEF MAKSURA FINAL FORM * 0628 ARABIC LETTER BEH * 0649 ARABIC LETTER ALEF MAKSURA * FC6F ARABIC LIGATURE BEH WITH YEH FINAL FORM * 0628 ARABIC LETTER BEH * 064A ARABIC LETTER YEH * FC70 ARABIC LIGATURE TEH WITH REH FINAL FORM * 062A ARABIC LETTER TEH * 0631 ARABIC LETTER REH * FC71 ARABIC LIGATURE TEH WITH ZAIN FINAL FORM * 062A ARABIC LETTER TEH * 0632 ARABIC LETTER ZAIN * FC72 ARABIC LIGATURE TEH WITH MEEM FINAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * FC73 ARABIC LIGATURE TEH WITH NOON FINAL FORM * 062A ARABIC LETTER TEH * 0646 ARABIC LETTER NOON * FC74 ARABIC LIGATURE TEH WITH ALEF MAKSURA FINAL FORM * 062A ARABIC LETTER TEH * 0649 ARABIC LETTER ALEF MAKSURA * FC75 ARABIC LIGATURE TEH WITH YEH FINAL FORM * 062A ARABIC LETTER TEH * 064A ARABIC LETTER YEH * FC76 ARABIC LIGATURE THEH WITH REH FINAL FORM * 062B ARABIC LETTER THEH * 0631 ARABIC LETTER REH * FC77 ARABIC LIGATURE THEH WITH ZAIN FINAL FORM * 062B ARABIC LETTER THEH * 0632 ARABIC LETTER ZAIN * FC78 ARABIC LIGATURE THEH WITH MEEM FINAL FORM * 062B ARABIC LETTER THEH * 0645 ARABIC LETTER MEEM * FC79 ARABIC LIGATURE THEH WITH NOON FINAL FORM * 062B ARABIC LETTER THEH * 0646 ARABIC LETTER NOON * FC7A ARABIC LIGATURE THEH WITH ALEF MAKSURA FINAL FORM * 062B ARABIC LETTER THEH * 0649 ARABIC LETTER ALEF MAKSURA * FC7B ARABIC LIGATURE THEH WITH YEH FINAL FORM * 062B ARABIC LETTER THEH * 064A ARABIC LETTER YEH * FC7C ARABIC LIGATURE FEH WITH ALEF MAKSURA FINAL FORM * 0641 ARABIC LETTER FEH * 0649 ARABIC LETTER ALEF MAKSURA * FC7D ARABIC LIGATURE FEH WITH YEH FINAL FORM * 0641 ARABIC LETTER FEH * 064A ARABIC LETTER YEH * FC7E ARABIC LIGATURE QAF WITH ALEF MAKSURA FINAL FORM * 0642 ARABIC LETTER QAF * 0649 ARABIC LETTER ALEF MAKSURA * FC7F ARABIC LIGATURE QAF WITH YEH FINAL FORM * 0642 ARABIC LETTER QAF * 064A ARABIC LETTER YEH * FC80 ARABIC LIGATURE KAF WITH ALEF FINAL FORM * 0643 ARABIC LETTER KAF * 0627 ARABIC LETTER ALEF * FC81 ARABIC LIGATURE KAF WITH LAM FINAL FORM * 0643 ARABIC LETTER KAF * 0644 ARABIC LETTER LAM * FC82 ARABIC LIGATURE KAF WITH MEEM FINAL FORM * 0643 ARABIC LETTER KAF * 0645 ARABIC LETTER MEEM * FC83 ARABIC LIGATURE KAF WITH ALEF MAKSURA FINAL FORM * 0643 ARABIC LETTER KAF * 0649 ARABIC LETTER ALEF MAKSURA * FC84 ARABIC LIGATURE KAF WITH YEH FINAL FORM * 0643 ARABIC LETTER KAF * 064A ARABIC LETTER YEH * FC85 ARABIC LIGATURE LAM WITH MEEM FINAL FORM * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * FC86 ARABIC LIGATURE LAM WITH ALEF MAKSURA FINAL FORM * 0644 ARABIC LETTER LAM * 0649 ARABIC LETTER ALEF MAKSURA * FC87 ARABIC LIGATURE LAM WITH YEH FINAL FORM * 0644 ARABIC LETTER LAM * 064A ARABIC LETTER YEH * FC88 ARABIC LIGATURE MEEM WITH ALEF FINAL FORM * 0645 ARABIC LETTER MEEM * 0627 ARABIC LETTER ALEF * FC89 ARABIC LIGATURE MEEM WITH MEEM FINAL FORM * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FC8A ARABIC LIGATURE NOON WITH REH FINAL FORM * 0646 ARABIC LETTER NOON * 0631 ARABIC LETTER REH * FC8B ARABIC LIGATURE NOON WITH ZAIN FINAL FORM * 0646 ARABIC LETTER NOON * 0632 ARABIC LETTER ZAIN * FC8C ARABIC LIGATURE NOON WITH MEEM FINAL FORM * 0646 ARABIC LETTER NOON * 0645 ARABIC LETTER MEEM * FC8D ARABIC LIGATURE NOON WITH NOON FINAL FORM * 0646 ARABIC LETTER NOON * 0646 ARABIC LETTER NOON * FC8E ARABIC LIGATURE NOON WITH ALEF MAKSURA FINAL FORM * 0646 ARABIC LETTER NOON * 0649 ARABIC LETTER ALEF MAKSURA * FC8F ARABIC LIGATURE NOON WITH YEH FINAL FORM * 0646 ARABIC LETTER NOON * 064A ARABIC LETTER YEH * FC90 ARABIC LIGATURE ALEF MAKSURA WITH SUPERSCRIPT ALEF FINAL FORM * 0649 ARABIC LETTER ALEF MAKSURA * FC91 ARABIC LIGATURE YEH WITH REH FINAL FORM * 064A ARABIC LETTER YEH * 0631 ARABIC LETTER REH * FC92 ARABIC LIGATURE YEH WITH ZAIN FINAL FORM * 064A ARABIC LETTER YEH * 0632 ARABIC LETTER ZAIN * FC93 ARABIC LIGATURE YEH WITH MEEM FINAL FORM * 064A ARABIC LETTER YEH * 0645 ARABIC LETTER MEEM * FC94 ARABIC LIGATURE YEH WITH NOON FINAL FORM * 064A ARABIC LETTER YEH * 0646 ARABIC LETTER NOON * FC95 ARABIC LIGATURE YEH WITH ALEF MAKSURA FINAL FORM * 064A ARABIC LETTER YEH * 0649 ARABIC LETTER ALEF MAKSURA * FC96 ARABIC LIGATURE YEH WITH YEH FINAL FORM * 064A ARABIC LETTER YEH * 064A ARABIC LETTER YEH * FC97 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH JEEM INITIAL FORM * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FC98 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH HAH INITIAL FORM * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FC99 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH KHAH INITIAL FORM * 062E ARABIC LETTER KHAH * 064A ARABIC LETTER YEH * FC9A ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH MEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FC9B ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH HEH INITIAL FORM * 0647 ARABIC LETTER HEH * 064A ARABIC LETTER YEH * FC9C ARABIC LIGATURE BEH WITH JEEM INITIAL FORM * 0628 ARABIC LETTER BEH * 062C ARABIC LETTER JEEM * FC9D ARABIC LIGATURE BEH WITH HAH INITIAL FORM * 0628 ARABIC LETTER BEH * 062D ARABIC LETTER HAH * FC9E ARABIC LIGATURE BEH WITH KHAH INITIAL FORM * 0628 ARABIC LETTER BEH * 062E ARABIC LETTER KHAH * FC9F ARABIC LIGATURE BEH WITH MEEM INITIAL FORM * 0628 ARABIC LETTER BEH * 0645 ARABIC LETTER MEEM * FCA0 ARABIC LIGATURE BEH WITH HEH INITIAL FORM * 0628 ARABIC LETTER BEH * 0647 ARABIC LETTER HEH * FCA1 ARABIC LIGATURE TEH WITH JEEM INITIAL FORM * 062A ARABIC LETTER TEH * 062C ARABIC LETTER JEEM * FCA2 ARABIC LIGATURE TEH WITH HAH INITIAL FORM * 062A ARABIC LETTER TEH * 062D ARABIC LETTER HAH * FCA3 ARABIC LIGATURE TEH WITH KHAH INITIAL FORM * 062A ARABIC LETTER TEH * 062E ARABIC LETTER KHAH * FCA4 ARABIC LIGATURE TEH WITH MEEM INITIAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * FCA5 ARABIC LIGATURE TEH WITH HEH INITIAL FORM * 062A ARABIC LETTER TEH * 0647 ARABIC LETTER HEH * FCA6 ARABIC LIGATURE THEH WITH MEEM INITIAL FORM * 062B ARABIC LETTER THEH * 0645 ARABIC LETTER MEEM * FCA7 ARABIC LIGATURE JEEM WITH HAH INITIAL FORM * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * FCA8 ARABIC LIGATURE JEEM WITH MEEM INITIAL FORM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FCA9 ARABIC LIGATURE HAH WITH JEEM INITIAL FORM * 062D ARABIC LETTER HAH * 062C ARABIC LETTER JEEM * FCAA ARABIC LIGATURE HAH WITH MEEM INITIAL FORM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FCAB ARABIC LIGATURE KHAH WITH JEEM INITIAL FORM * 062E ARABIC LETTER KHAH * 062C ARABIC LETTER JEEM * FCAC ARABIC LIGATURE KHAH WITH MEEM INITIAL FORM * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FCAD ARABIC LIGATURE SEEN WITH JEEM INITIAL FORM * 0633 ARABIC LETTER SEEN * 062C ARABIC LETTER JEEM * FCAE ARABIC LIGATURE SEEN WITH HAH INITIAL FORM * 0633 ARABIC LETTER SEEN * 062D ARABIC LETTER HAH * FCAF ARABIC LIGATURE SEEN WITH KHAH INITIAL FORM * 0633 ARABIC LETTER SEEN * 062E ARABIC LETTER KHAH * FCB0 ARABIC LIGATURE SEEN WITH MEEM INITIAL FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * FCB1 ARABIC LIGATURE SAD WITH HAH INITIAL FORM * 0635 ARABIC LETTER SAD * 062D ARABIC LETTER HAH * FCB2 ARABIC LIGATURE SAD WITH KHAH INITIAL FORM * 0635 ARABIC LETTER SAD * 062E ARABIC LETTER KHAH * FCB3 ARABIC LIGATURE SAD WITH MEEM INITIAL FORM * 0635 ARABIC LETTER SAD * 0645 ARABIC LETTER MEEM * FCB4 ARABIC LIGATURE DAD WITH JEEM INITIAL FORM * 0636 ARABIC LETTER DAD * 062C ARABIC LETTER JEEM * FCB5 ARABIC LIGATURE DAD WITH HAH INITIAL FORM * 0636 ARABIC LETTER DAD * 062D ARABIC LETTER HAH * FCB6 ARABIC LIGATURE DAD WITH KHAH INITIAL FORM * 0636 ARABIC LETTER DAD * 062E ARABIC LETTER KHAH * FCB7 ARABIC LIGATURE DAD WITH MEEM INITIAL FORM * 0636 ARABIC LETTER DAD * 0645 ARABIC LETTER MEEM * FCB8 ARABIC LIGATURE TAH WITH HAH INITIAL FORM * 0637 ARABIC LETTER TAH * 062D ARABIC LETTER HAH * FCB9 ARABIC LIGATURE ZAH WITH MEEM INITIAL FORM * 0638 ARABIC LETTER ZAH * 0645 ARABIC LETTER MEEM * FCBA ARABIC LIGATURE AIN WITH JEEM INITIAL FORM * 0639 ARABIC LETTER AIN * 062C ARABIC LETTER JEEM * FCBB ARABIC LIGATURE AIN WITH MEEM INITIAL FORM * 0639 ARABIC LETTER AIN * 0645 ARABIC LETTER MEEM * FCBC ARABIC LIGATURE GHAIN WITH JEEM INITIAL FORM * 063A ARABIC LETTER GHAIN * 062C ARABIC LETTER JEEM * FCBD ARABIC LIGATURE GHAIN WITH MEEM INITIAL FORM * 063A ARABIC LETTER GHAIN * 0645 ARABIC LETTER MEEM * FCBE ARABIC LIGATURE FEH WITH JEEM INITIAL FORM * 0641 ARABIC LETTER FEH * 062C ARABIC LETTER JEEM * FCBF ARABIC LIGATURE FEH WITH HAH INITIAL FORM * 0641 ARABIC LETTER FEH * 062D ARABIC LETTER HAH * FCC0 ARABIC LIGATURE FEH WITH KHAH INITIAL FORM * 0641 ARABIC LETTER FEH * 062E ARABIC LETTER KHAH * FCC1 ARABIC LIGATURE FEH WITH MEEM INITIAL FORM * 0641 ARABIC LETTER FEH * 0645 ARABIC LETTER MEEM * FCC2 ARABIC LIGATURE QAF WITH HAH INITIAL FORM * 0642 ARABIC LETTER QAF * 062D ARABIC LETTER HAH * FCC3 ARABIC LIGATURE QAF WITH MEEM INITIAL FORM * 0642 ARABIC LETTER QAF * 0645 ARABIC LETTER MEEM * FCC4 ARABIC LIGATURE KAF WITH JEEM INITIAL FORM * 0643 ARABIC LETTER KAF * 062C ARABIC LETTER JEEM * FCC5 ARABIC LIGATURE KAF WITH HAH INITIAL FORM * 0643 ARABIC LETTER KAF * 062D ARABIC LETTER HAH * FCC6 ARABIC LIGATURE KAF WITH KHAH INITIAL FORM * 0643 ARABIC LETTER KAF * 062E ARABIC LETTER KHAH * FCC7 ARABIC LIGATURE KAF WITH LAM INITIAL FORM * 0643 ARABIC LETTER KAF * 0644 ARABIC LETTER LAM * FCC8 ARABIC LIGATURE KAF WITH MEEM INITIAL FORM * 0643 ARABIC LETTER KAF * 0645 ARABIC LETTER MEEM * FCC9 ARABIC LIGATURE LAM WITH JEEM INITIAL FORM * 0644 ARABIC LETTER LAM * 062C ARABIC LETTER JEEM * FCCA ARABIC LIGATURE LAM WITH HAH INITIAL FORM * 0644 ARABIC LETTER LAM * 062D ARABIC LETTER HAH * FCCB ARABIC LIGATURE LAM WITH KHAH INITIAL FORM * 0644 ARABIC LETTER LAM * 062E ARABIC LETTER KHAH * FCCC ARABIC LIGATURE LAM WITH MEEM INITIAL FORM * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * FCCD ARABIC LIGATURE LAM WITH HEH INITIAL FORM * 0644 ARABIC LETTER LAM * 0647 ARABIC LETTER HEH * FCCE ARABIC LIGATURE MEEM WITH JEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * FCCF ARABIC LIGATURE MEEM WITH HAH INITIAL FORM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FCD0 ARABIC LIGATURE MEEM WITH KHAH INITIAL FORM * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * FCD1 ARABIC LIGATURE MEEM WITH MEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FCD2 ARABIC LIGATURE NOON WITH JEEM INITIAL FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * FCD3 ARABIC LIGATURE NOON WITH HAH INITIAL FORM * 0646 ARABIC LETTER NOON * 062D ARABIC LETTER HAH * FCD4 ARABIC LIGATURE NOON WITH KHAH INITIAL FORM * 0646 ARABIC LETTER NOON * 062E ARABIC LETTER KHAH * FCD5 ARABIC LIGATURE NOON WITH MEEM INITIAL FORM * 0646 ARABIC LETTER NOON * 0645 ARABIC LETTER MEEM * FCD6 ARABIC LIGATURE NOON WITH HEH INITIAL FORM * 0646 ARABIC LETTER NOON * 0647 ARABIC LETTER HEH * FCD7 ARABIC LIGATURE HEH WITH JEEM INITIAL FORM * 0647 ARABIC LETTER HEH * 062C ARABIC LETTER JEEM * FCD8 ARABIC LIGATURE HEH WITH MEEM INITIAL FORM * 0647 ARABIC LETTER HEH * 0645 ARABIC LETTER MEEM * FCD9 ARABIC LIGATURE HEH WITH SUPERSCRIPT ALEF INITIAL FORM * 0647 ARABIC LETTER HEH * FCDA ARABIC LIGATURE YEH WITH JEEM INITIAL FORM * 064A ARABIC LETTER YEH * 062C ARABIC LETTER JEEM * FCDB ARABIC LIGATURE YEH WITH HAH INITIAL FORM * 064A ARABIC LETTER YEH * 062D ARABIC LETTER HAH * FCDC ARABIC LIGATURE YEH WITH KHAH INITIAL FORM * 064A ARABIC LETTER YEH * 062E ARABIC LETTER KHAH * FCDD ARABIC LIGATURE YEH WITH MEEM INITIAL FORM * 064A ARABIC LETTER YEH * 0645 ARABIC LETTER MEEM * FCDE ARABIC LIGATURE YEH WITH HEH INITIAL FORM * 064A ARABIC LETTER YEH * 0647 ARABIC LETTER HEH * FCDF ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH MEEM MEDIAL FORM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FCE0 ARABIC LIGATURE YEH WITH HAMZA ABOVE WITH HEH MEDIAL FORM * 0647 ARABIC LETTER HEH * 064A ARABIC LETTER YEH * FCE1 ARABIC LIGATURE BEH WITH MEEM MEDIAL FORM * 0628 ARABIC LETTER BEH * 0645 ARABIC LETTER MEEM * FCE2 ARABIC LIGATURE BEH WITH HEH MEDIAL FORM * 0628 ARABIC LETTER BEH * 0647 ARABIC LETTER HEH * FCE3 ARABIC LIGATURE TEH WITH MEEM MEDIAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * FCE4 ARABIC LIGATURE TEH WITH HEH MEDIAL FORM * 062A ARABIC LETTER TEH * 0647 ARABIC LETTER HEH * FCE5 ARABIC LIGATURE THEH WITH MEEM MEDIAL FORM * 062B ARABIC LETTER THEH * 0645 ARABIC LETTER MEEM * FCE6 ARABIC LIGATURE THEH WITH HEH MEDIAL FORM * 062B ARABIC LETTER THEH * 0647 ARABIC LETTER HEH * FCE7 ARABIC LIGATURE SEEN WITH MEEM MEDIAL FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * FCE8 ARABIC LIGATURE SEEN WITH HEH MEDIAL FORM * 0633 ARABIC LETTER SEEN * 0647 ARABIC LETTER HEH * FCE9 ARABIC LIGATURE SHEEN WITH MEEM MEDIAL FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * FCEA ARABIC LIGATURE SHEEN WITH HEH MEDIAL FORM * 0634 ARABIC LETTER SHEEN * 0647 ARABIC LETTER HEH * FCEB ARABIC LIGATURE KAF WITH LAM MEDIAL FORM * 0643 ARABIC LETTER KAF * 0644 ARABIC LETTER LAM * FCEC ARABIC LIGATURE KAF WITH MEEM MEDIAL FORM * 0643 ARABIC LETTER KAF * 0645 ARABIC LETTER MEEM * FCED ARABIC LIGATURE LAM WITH MEEM MEDIAL FORM * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * FCEE ARABIC LIGATURE NOON WITH MEEM MEDIAL FORM * 0646 ARABIC LETTER NOON * 0645 ARABIC LETTER MEEM * FCEF ARABIC LIGATURE NOON WITH HEH MEDIAL FORM * 0646 ARABIC LETTER NOON * 0647 ARABIC LETTER HEH * FCF0 ARABIC LIGATURE YEH WITH MEEM MEDIAL FORM * 064A ARABIC LETTER YEH * 0645 ARABIC LETTER MEEM * FCF1 ARABIC LIGATURE YEH WITH HEH MEDIAL FORM * 064A ARABIC LETTER YEH * 0647 ARABIC LETTER HEH * FCF2 ARABIC LIGATURE SHADDA WITH FATHA MEDIAL FORM * 0640 ARABIC TATWEEL * FCF3 ARABIC LIGATURE SHADDA WITH DAMMA MEDIAL FORM * 0640 ARABIC TATWEEL * FCF4 ARABIC LIGATURE SHADDA WITH KASRA MEDIAL FORM * 0640 ARABIC TATWEEL * FCF5 ARABIC LIGATURE TAH WITH ALEF MAKSURA ISOLATED FORM * 0637 ARABIC LETTER TAH * 0649 ARABIC LETTER ALEF MAKSURA * FCF6 ARABIC LIGATURE TAH WITH YEH ISOLATED FORM * 0637 ARABIC LETTER TAH * 064A ARABIC LETTER YEH * FCF7 ARABIC LIGATURE AIN WITH ALEF MAKSURA ISOLATED FORM * 0639 ARABIC LETTER AIN * 0649 ARABIC LETTER ALEF MAKSURA * FCF8 ARABIC LIGATURE AIN WITH YEH ISOLATED FORM * 0639 ARABIC LETTER AIN * 064A ARABIC LETTER YEH * FCF9 ARABIC LIGATURE GHAIN WITH ALEF MAKSURA ISOLATED FORM * 063A ARABIC LETTER GHAIN * 0649 ARABIC LETTER ALEF MAKSURA * FCFA ARABIC LIGATURE GHAIN WITH YEH ISOLATED FORM * 063A ARABIC LETTER GHAIN * 064A ARABIC LETTER YEH * FCFB ARABIC LIGATURE SEEN WITH ALEF MAKSURA ISOLATED FORM * 0633 ARABIC LETTER SEEN * 0649 ARABIC LETTER ALEF MAKSURA * FCFC ARABIC LIGATURE SEEN WITH YEH ISOLATED FORM * 0633 ARABIC LETTER SEEN * 064A ARABIC LETTER YEH * FCFD ARABIC LIGATURE SHEEN WITH ALEF MAKSURA ISOLATED FORM * 0634 ARABIC LETTER SHEEN * 0649 ARABIC LETTER ALEF MAKSURA * FCFE ARABIC LIGATURE SHEEN WITH YEH ISOLATED FORM * 0634 ARABIC LETTER SHEEN * 064A ARABIC LETTER YEH * FCFF ARABIC LIGATURE HAH WITH ALEF MAKSURA ISOLATED FORM * 062D ARABIC LETTER HAH * 0649 ARABIC LETTER ALEF MAKSURA * FD00 ARABIC LIGATURE HAH WITH YEH ISOLATED FORM * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FD01 ARABIC LIGATURE JEEM WITH ALEF MAKSURA ISOLATED FORM * 062C ARABIC LETTER JEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD02 ARABIC LIGATURE JEEM WITH YEH ISOLATED FORM * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FD03 ARABIC LIGATURE KHAH WITH ALEF MAKSURA ISOLATED FORM * 062E ARABIC LETTER KHAH * 0649 ARABIC LETTER ALEF MAKSURA * FD04 ARABIC LIGATURE KHAH WITH YEH ISOLATED FORM * 062E ARABIC LETTER KHAH * 064A ARABIC LETTER YEH * FD05 ARABIC LIGATURE SAD WITH ALEF MAKSURA ISOLATED FORM * 0635 ARABIC LETTER SAD * 0649 ARABIC LETTER ALEF MAKSURA * FD06 ARABIC LIGATURE SAD WITH YEH ISOLATED FORM * 0635 ARABIC LETTER SAD * 064A ARABIC LETTER YEH * FD07 ARABIC LIGATURE DAD WITH ALEF MAKSURA ISOLATED FORM * 0636 ARABIC LETTER DAD * 0649 ARABIC LETTER ALEF MAKSURA * FD08 ARABIC LIGATURE DAD WITH YEH ISOLATED FORM * 0636 ARABIC LETTER DAD * 064A ARABIC LETTER YEH * FD09 ARABIC LIGATURE SHEEN WITH JEEM ISOLATED FORM * 0634 ARABIC LETTER SHEEN * 062C ARABIC LETTER JEEM * FD0A ARABIC LIGATURE SHEEN WITH HAH ISOLATED FORM * 0634 ARABIC LETTER SHEEN * 062D ARABIC LETTER HAH * FD0B ARABIC LIGATURE SHEEN WITH KHAH ISOLATED FORM * 0634 ARABIC LETTER SHEEN * 062E ARABIC LETTER KHAH * FD0C ARABIC LIGATURE SHEEN WITH MEEM ISOLATED FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * FD0D ARABIC LIGATURE SHEEN WITH REH ISOLATED FORM * 0634 ARABIC LETTER SHEEN * 0631 ARABIC LETTER REH * FD0E ARABIC LIGATURE SEEN WITH REH ISOLATED FORM * 0633 ARABIC LETTER SEEN * 0631 ARABIC LETTER REH * FD0F ARABIC LIGATURE SAD WITH REH ISOLATED FORM * 0635 ARABIC LETTER SAD * 0631 ARABIC LETTER REH * FD10 ARABIC LIGATURE DAD WITH REH ISOLATED FORM * 0636 ARABIC LETTER DAD * 0631 ARABIC LETTER REH * FD11 ARABIC LIGATURE TAH WITH ALEF MAKSURA FINAL FORM * 0637 ARABIC LETTER TAH * 0649 ARABIC LETTER ALEF MAKSURA * FD12 ARABIC LIGATURE TAH WITH YEH FINAL FORM * 0637 ARABIC LETTER TAH * 064A ARABIC LETTER YEH * FD13 ARABIC LIGATURE AIN WITH ALEF MAKSURA FINAL FORM * 0639 ARABIC LETTER AIN * 0649 ARABIC LETTER ALEF MAKSURA * FD14 ARABIC LIGATURE AIN WITH YEH FINAL FORM * 0639 ARABIC LETTER AIN * 064A ARABIC LETTER YEH * FD15 ARABIC LIGATURE GHAIN WITH ALEF MAKSURA FINAL FORM * 063A ARABIC LETTER GHAIN * 0649 ARABIC LETTER ALEF MAKSURA * FD16 ARABIC LIGATURE GHAIN WITH YEH FINAL FORM * 063A ARABIC LETTER GHAIN * 064A ARABIC LETTER YEH * FD17 ARABIC LIGATURE SEEN WITH ALEF MAKSURA FINAL FORM * 0633 ARABIC LETTER SEEN * 0649 ARABIC LETTER ALEF MAKSURA * FD18 ARABIC LIGATURE SEEN WITH YEH FINAL FORM * 0633 ARABIC LETTER SEEN * 064A ARABIC LETTER YEH * FD19 ARABIC LIGATURE SHEEN WITH ALEF MAKSURA FINAL FORM * 0634 ARABIC LETTER SHEEN * 0649 ARABIC LETTER ALEF MAKSURA * FD1A ARABIC LIGATURE SHEEN WITH YEH FINAL FORM * 0634 ARABIC LETTER SHEEN * 064A ARABIC LETTER YEH * FD1B ARABIC LIGATURE HAH WITH ALEF MAKSURA FINAL FORM * 062D ARABIC LETTER HAH * 0649 ARABIC LETTER ALEF MAKSURA * FD1C ARABIC LIGATURE HAH WITH YEH FINAL FORM * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FD1D ARABIC LIGATURE JEEM WITH ALEF MAKSURA FINAL FORM * 062C ARABIC LETTER JEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD1E ARABIC LIGATURE JEEM WITH YEH FINAL FORM * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FD1F ARABIC LIGATURE KHAH WITH ALEF MAKSURA FINAL FORM * 062E ARABIC LETTER KHAH * 0649 ARABIC LETTER ALEF MAKSURA * FD20 ARABIC LIGATURE KHAH WITH YEH FINAL FORM * 062E ARABIC LETTER KHAH * 064A ARABIC LETTER YEH * FD21 ARABIC LIGATURE SAD WITH ALEF MAKSURA FINAL FORM * 0635 ARABIC LETTER SAD * 0649 ARABIC LETTER ALEF MAKSURA * FD22 ARABIC LIGATURE SAD WITH YEH FINAL FORM * 0635 ARABIC LETTER SAD * 064A ARABIC LETTER YEH * FD23 ARABIC LIGATURE DAD WITH ALEF MAKSURA FINAL FORM * 0636 ARABIC LETTER DAD * 0649 ARABIC LETTER ALEF MAKSURA * FD24 ARABIC LIGATURE DAD WITH YEH FINAL FORM * 0636 ARABIC LETTER DAD * 064A ARABIC LETTER YEH * FD25 ARABIC LIGATURE SHEEN WITH JEEM FINAL FORM * 0634 ARABIC LETTER SHEEN * 062C ARABIC LETTER JEEM * FD26 ARABIC LIGATURE SHEEN WITH HAH FINAL FORM * 0634 ARABIC LETTER SHEEN * 062D ARABIC LETTER HAH * FD27 ARABIC LIGATURE SHEEN WITH KHAH FINAL FORM * 0634 ARABIC LETTER SHEEN * 062E ARABIC LETTER KHAH * FD28 ARABIC LIGATURE SHEEN WITH MEEM FINAL FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * FD29 ARABIC LIGATURE SHEEN WITH REH FINAL FORM * 0634 ARABIC LETTER SHEEN * 0631 ARABIC LETTER REH * FD2A ARABIC LIGATURE SEEN WITH REH FINAL FORM * 0633 ARABIC LETTER SEEN * 0631 ARABIC LETTER REH * FD2B ARABIC LIGATURE SAD WITH REH FINAL FORM * 0635 ARABIC LETTER SAD * 0631 ARABIC LETTER REH * FD2C ARABIC LIGATURE DAD WITH REH FINAL FORM * 0636 ARABIC LETTER DAD * 0631 ARABIC LETTER REH * FD2D ARABIC LIGATURE SHEEN WITH JEEM INITIAL FORM * 0634 ARABIC LETTER SHEEN * 062C ARABIC LETTER JEEM * FD2E ARABIC LIGATURE SHEEN WITH HAH INITIAL FORM * 0634 ARABIC LETTER SHEEN * 062D ARABIC LETTER HAH * FD2F ARABIC LIGATURE SHEEN WITH KHAH INITIAL FORM * 0634 ARABIC LETTER SHEEN * 062E ARABIC LETTER KHAH * FD30 ARABIC LIGATURE SHEEN WITH MEEM INITIAL FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * FD31 ARABIC LIGATURE SEEN WITH HEH INITIAL FORM * 0633 ARABIC LETTER SEEN * 0647 ARABIC LETTER HEH * FD32 ARABIC LIGATURE SHEEN WITH HEH INITIAL FORM * 0634 ARABIC LETTER SHEEN * 0647 ARABIC LETTER HEH * FD33 ARABIC LIGATURE TAH WITH MEEM INITIAL FORM * 0637 ARABIC LETTER TAH * 0645 ARABIC LETTER MEEM * FD34 ARABIC LIGATURE SEEN WITH JEEM MEDIAL FORM * 0633 ARABIC LETTER SEEN * 062C ARABIC LETTER JEEM * FD35 ARABIC LIGATURE SEEN WITH HAH MEDIAL FORM * 0633 ARABIC LETTER SEEN * 062D ARABIC LETTER HAH * FD36 ARABIC LIGATURE SEEN WITH KHAH MEDIAL FORM * 0633 ARABIC LETTER SEEN * 062E ARABIC LETTER KHAH * FD37 ARABIC LIGATURE SHEEN WITH JEEM MEDIAL FORM * 0634 ARABIC LETTER SHEEN * 062C ARABIC LETTER JEEM * FD38 ARABIC LIGATURE SHEEN WITH HAH MEDIAL FORM * 0634 ARABIC LETTER SHEEN * 062D ARABIC LETTER HAH * FD39 ARABIC LIGATURE SHEEN WITH KHAH MEDIAL FORM * 0634 ARABIC LETTER SHEEN * 062E ARABIC LETTER KHAH * FD3A ARABIC LIGATURE TAH WITH MEEM MEDIAL FORM * 0637 ARABIC LETTER TAH * 0645 ARABIC LETTER MEEM * FD3B ARABIC LIGATURE ZAH WITH MEEM MEDIAL FORM * 0638 ARABIC LETTER ZAH * 0645 ARABIC LETTER MEEM * FD3C ARABIC LIGATURE ALEF WITH FATHATAN FINAL FORM * 0627 ARABIC LETTER ALEF * FD3D ARABIC LIGATURE ALEF WITH FATHATAN ISOLATED FORM * 0627 ARABIC LETTER ALEF * FD50 ARABIC LIGATURE TEH WITH JEEM WITH MEEM INITIAL FORM * 062A ARABIC LETTER TEH * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FD51 ARABIC LIGATURE TEH WITH HAH WITH JEEM FINAL FORM * 062A ARABIC LETTER TEH * 062D ARABIC LETTER HAH * 062C ARABIC LETTER JEEM * FD52 ARABIC LIGATURE TEH WITH HAH WITH JEEM INITIAL FORM * 062A ARABIC LETTER TEH * 062D ARABIC LETTER HAH * 062C ARABIC LETTER JEEM * FD53 ARABIC LIGATURE TEH WITH HAH WITH MEEM INITIAL FORM * 062A ARABIC LETTER TEH * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FD54 ARABIC LIGATURE TEH WITH KHAH WITH MEEM INITIAL FORM * 062A ARABIC LETTER TEH * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD55 ARABIC LIGATURE TEH WITH MEEM WITH JEEM INITIAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * FD56 ARABIC LIGATURE TEH WITH MEEM WITH HAH INITIAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD57 ARABIC LIGATURE TEH WITH MEEM WITH KHAH INITIAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * FD58 ARABIC LIGATURE JEEM WITH MEEM WITH HAH FINAL FORM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD59 ARABIC LIGATURE JEEM WITH MEEM WITH HAH INITIAL FORM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD5A ARABIC LIGATURE HAH WITH MEEM WITH YEH FINAL FORM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FD5B ARABIC LIGATURE HAH WITH MEEM WITH ALEF MAKSURA FINAL FORM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD5C ARABIC LIGATURE SEEN WITH HAH WITH JEEM INITIAL FORM * 0633 ARABIC LETTER SEEN * 062D ARABIC LETTER HAH * 062C ARABIC LETTER JEEM * FD5D ARABIC LIGATURE SEEN WITH JEEM WITH HAH INITIAL FORM * 0633 ARABIC LETTER SEEN * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * FD5E ARABIC LIGATURE SEEN WITH JEEM WITH ALEF MAKSURA FINAL FORM * 0633 ARABIC LETTER SEEN * 062C ARABIC LETTER JEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD5F ARABIC LIGATURE SEEN WITH MEEM WITH HAH FINAL FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD60 ARABIC LIGATURE SEEN WITH MEEM WITH HAH INITIAL FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD61 ARABIC LIGATURE SEEN WITH MEEM WITH JEEM INITIAL FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * FD62 ARABIC LIGATURE SEEN WITH MEEM WITH MEEM FINAL FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD63 ARABIC LIGATURE SEEN WITH MEEM WITH MEEM INITIAL FORM * 0633 ARABIC LETTER SEEN * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD64 ARABIC LIGATURE SAD WITH HAH WITH HAH FINAL FORM * 0635 ARABIC LETTER SAD * 062D ARABIC LETTER HAH * 062D ARABIC LETTER HAH * FD65 ARABIC LIGATURE SAD WITH HAH WITH HAH INITIAL FORM * 0635 ARABIC LETTER SAD * 062D ARABIC LETTER HAH * 062D ARABIC LETTER HAH * FD66 ARABIC LIGATURE SAD WITH MEEM WITH MEEM FINAL FORM * 0635 ARABIC LETTER SAD * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD67 ARABIC LIGATURE SHEEN WITH HAH WITH MEEM FINAL FORM * 0634 ARABIC LETTER SHEEN * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FD68 ARABIC LIGATURE SHEEN WITH HAH WITH MEEM INITIAL FORM * 0634 ARABIC LETTER SHEEN * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FD69 ARABIC LIGATURE SHEEN WITH JEEM WITH YEH FINAL FORM * 0634 ARABIC LETTER SHEEN * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FD6A ARABIC LIGATURE SHEEN WITH MEEM WITH KHAH FINAL FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * FD6B ARABIC LIGATURE SHEEN WITH MEEM WITH KHAH INITIAL FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * FD6C ARABIC LIGATURE SHEEN WITH MEEM WITH MEEM FINAL FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD6D ARABIC LIGATURE SHEEN WITH MEEM WITH MEEM INITIAL FORM * 0634 ARABIC LETTER SHEEN * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD6E ARABIC LIGATURE DAD WITH HAH WITH ALEF MAKSURA FINAL FORM * 0636 ARABIC LETTER DAD * 062D ARABIC LETTER HAH * 0649 ARABIC LETTER ALEF MAKSURA * FD6F ARABIC LIGATURE DAD WITH KHAH WITH MEEM FINAL FORM * 0636 ARABIC LETTER DAD * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD70 ARABIC LIGATURE DAD WITH KHAH WITH MEEM INITIAL FORM * 0636 ARABIC LETTER DAD * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD71 ARABIC LIGATURE TAH WITH MEEM WITH HAH FINAL FORM * 0637 ARABIC LETTER TAH * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD72 ARABIC LIGATURE TAH WITH MEEM WITH HAH INITIAL FORM * 0637 ARABIC LETTER TAH * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD73 ARABIC LIGATURE TAH WITH MEEM WITH MEEM INITIAL FORM * 0637 ARABIC LETTER TAH * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD74 ARABIC LIGATURE TAH WITH MEEM WITH YEH FINAL FORM * 0637 ARABIC LETTER TAH * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FD75 ARABIC LIGATURE AIN WITH JEEM WITH MEEM FINAL FORM * 0639 ARABIC LETTER AIN * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FD76 ARABIC LIGATURE AIN WITH MEEM WITH MEEM FINAL FORM * 0639 ARABIC LETTER AIN * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD77 ARABIC LIGATURE AIN WITH MEEM WITH MEEM INITIAL FORM * 0639 ARABIC LETTER AIN * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD78 ARABIC LIGATURE AIN WITH MEEM WITH ALEF MAKSURA FINAL FORM * 0639 ARABIC LETTER AIN * 0645 ARABIC LETTER MEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD79 ARABIC LIGATURE GHAIN WITH MEEM WITH MEEM FINAL FORM * 063A ARABIC LETTER GHAIN * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD7A ARABIC LIGATURE GHAIN WITH MEEM WITH YEH FINAL FORM * 063A ARABIC LETTER GHAIN * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FD7B ARABIC LIGATURE GHAIN WITH MEEM WITH ALEF MAKSURA FINAL FORM * 063A ARABIC LETTER GHAIN * 0645 ARABIC LETTER MEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD7C ARABIC LIGATURE FEH WITH KHAH WITH MEEM FINAL FORM * 0641 ARABIC LETTER FEH * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD7D ARABIC LIGATURE FEH WITH KHAH WITH MEEM INITIAL FORM * 0641 ARABIC LETTER FEH * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD7E ARABIC LIGATURE QAF WITH MEEM WITH HAH FINAL FORM * 0642 ARABIC LETTER QAF * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD7F ARABIC LIGATURE QAF WITH MEEM WITH MEEM FINAL FORM * 0642 ARABIC LETTER QAF * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD80 ARABIC LIGATURE LAM WITH HAH WITH MEEM FINAL FORM * 0644 ARABIC LETTER LAM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FD81 ARABIC LIGATURE LAM WITH HAH WITH YEH FINAL FORM * 0644 ARABIC LETTER LAM * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FD82 ARABIC LIGATURE LAM WITH HAH WITH ALEF MAKSURA FINAL FORM * 0644 ARABIC LETTER LAM * 062D ARABIC LETTER HAH * 0649 ARABIC LETTER ALEF MAKSURA * FD83 ARABIC LIGATURE LAM WITH JEEM WITH JEEM INITIAL FORM * 0644 ARABIC LETTER LAM * 062C ARABIC LETTER JEEM * 062C ARABIC LETTER JEEM * FD84 ARABIC LIGATURE LAM WITH JEEM WITH JEEM FINAL FORM * 0644 ARABIC LETTER LAM * 062C ARABIC LETTER JEEM * 062C ARABIC LETTER JEEM * FD85 ARABIC LIGATURE LAM WITH KHAH WITH MEEM FINAL FORM * 0644 ARABIC LETTER LAM * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD86 ARABIC LIGATURE LAM WITH KHAH WITH MEEM INITIAL FORM * 0644 ARABIC LETTER LAM * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD87 ARABIC LIGATURE LAM WITH MEEM WITH HAH FINAL FORM * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD88 ARABIC LIGATURE LAM WITH MEEM WITH HAH INITIAL FORM * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FD89 ARABIC LIGATURE MEEM WITH HAH WITH JEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * 062C ARABIC LETTER JEEM * FD8A ARABIC LIGATURE MEEM WITH HAH WITH MEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FD8B ARABIC LIGATURE MEEM WITH HAH WITH YEH FINAL FORM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FD8C ARABIC LIGATURE MEEM WITH JEEM WITH HAH INITIAL FORM * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * FD8D ARABIC LIGATURE MEEM WITH JEEM WITH MEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FD8E ARABIC LIGATURE MEEM WITH KHAH WITH JEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * 062C ARABIC LETTER JEEM * FD8F ARABIC LIGATURE MEEM WITH KHAH WITH MEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * 0645 ARABIC LETTER MEEM * FD92 ARABIC LIGATURE MEEM WITH JEEM WITH KHAH INITIAL FORM * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * 062E ARABIC LETTER KHAH * FD93 ARABIC LIGATURE HEH WITH MEEM WITH JEEM INITIAL FORM * 0647 ARABIC LETTER HEH * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * FD94 ARABIC LIGATURE HEH WITH MEEM WITH MEEM INITIAL FORM * 0647 ARABIC LETTER HEH * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD95 ARABIC LIGATURE NOON WITH HAH WITH MEEM INITIAL FORM * 0646 ARABIC LETTER NOON * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FD96 ARABIC LIGATURE NOON WITH HAH WITH ALEF MAKSURA FINAL FORM * 0646 ARABIC LETTER NOON * 062D ARABIC LETTER HAH * 0649 ARABIC LETTER ALEF MAKSURA * FD97 ARABIC LIGATURE NOON WITH JEEM WITH MEEM FINAL FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FD98 ARABIC LIGATURE NOON WITH JEEM WITH MEEM INITIAL FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FD99 ARABIC LIGATURE NOON WITH JEEM WITH ALEF MAKSURA FINAL FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD9A ARABIC LIGATURE NOON WITH MEEM WITH YEH FINAL FORM * 0646 ARABIC LETTER NOON * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FD9B ARABIC LIGATURE NOON WITH MEEM WITH ALEF MAKSURA FINAL FORM * 0646 ARABIC LETTER NOON * 0645 ARABIC LETTER MEEM * 0649 ARABIC LETTER ALEF MAKSURA * FD9C ARABIC LIGATURE YEH WITH MEEM WITH MEEM FINAL FORM * 064A ARABIC LETTER YEH * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD9D ARABIC LIGATURE YEH WITH MEEM WITH MEEM INITIAL FORM * 064A ARABIC LETTER YEH * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FD9E ARABIC LIGATURE BEH WITH KHAH WITH YEH FINAL FORM * 0628 ARABIC LETTER BEH * 062E ARABIC LETTER KHAH * 064A ARABIC LETTER YEH * FD9F ARABIC LIGATURE TEH WITH JEEM WITH YEH FINAL FORM * 062A ARABIC LETTER TEH * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FDA0 ARABIC LIGATURE TEH WITH JEEM WITH ALEF MAKSURA FINAL FORM * 062A ARABIC LETTER TEH * 062C ARABIC LETTER JEEM * 0649 ARABIC LETTER ALEF MAKSURA * FDA1 ARABIC LIGATURE TEH WITH KHAH WITH YEH FINAL FORM * 062A ARABIC LETTER TEH * 062E ARABIC LETTER KHAH * 064A ARABIC LETTER YEH * FDA2 ARABIC LIGATURE TEH WITH KHAH WITH ALEF MAKSURA FINAL FORM * 062A ARABIC LETTER TEH * 062E ARABIC LETTER KHAH * 0649 ARABIC LETTER ALEF MAKSURA * FDA3 ARABIC LIGATURE TEH WITH MEEM WITH YEH FINAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDA4 ARABIC LIGATURE TEH WITH MEEM WITH ALEF MAKSURA FINAL FORM * 062A ARABIC LETTER TEH * 0645 ARABIC LETTER MEEM * 0649 ARABIC LETTER ALEF MAKSURA * FDA5 ARABIC LIGATURE JEEM WITH MEEM WITH YEH FINAL FORM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDA6 ARABIC LIGATURE JEEM WITH HAH WITH ALEF MAKSURA FINAL FORM * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * 0649 ARABIC LETTER ALEF MAKSURA * FDA7 ARABIC LIGATURE JEEM WITH MEEM WITH ALEF MAKSURA FINAL FORM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * 0649 ARABIC LETTER ALEF MAKSURA * FDA8 ARABIC LIGATURE SEEN WITH KHAH WITH ALEF MAKSURA FINAL FORM * 0633 ARABIC LETTER SEEN * 062E ARABIC LETTER KHAH * 0649 ARABIC LETTER ALEF MAKSURA * FDA9 ARABIC LIGATURE SAD WITH HAH WITH YEH FINAL FORM * 0635 ARABIC LETTER SAD * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FDAA ARABIC LIGATURE SHEEN WITH HAH WITH YEH FINAL FORM * 0634 ARABIC LETTER SHEEN * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FDAB ARABIC LIGATURE DAD WITH HAH WITH YEH FINAL FORM * 0636 ARABIC LETTER DAD * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FDAC ARABIC LIGATURE LAM WITH JEEM WITH YEH FINAL FORM * 0644 ARABIC LETTER LAM * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FDAD ARABIC LIGATURE LAM WITH MEEM WITH YEH FINAL FORM * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDAE ARABIC LIGATURE YEH WITH HAH WITH YEH FINAL FORM * 064A ARABIC LETTER YEH * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FDAF ARABIC LIGATURE YEH WITH JEEM WITH YEH FINAL FORM * 064A ARABIC LETTER YEH * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FDB0 ARABIC LIGATURE YEH WITH MEEM WITH YEH FINAL FORM * 064A ARABIC LETTER YEH * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDB1 ARABIC LIGATURE MEEM WITH MEEM WITH YEH FINAL FORM * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDB2 ARABIC LIGATURE QAF WITH MEEM WITH YEH FINAL FORM * 0642 ARABIC LETTER QAF * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDB3 ARABIC LIGATURE NOON WITH HAH WITH YEH FINAL FORM * 0646 ARABIC LETTER NOON * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FDB4 ARABIC LIGATURE QAF WITH MEEM WITH HAH INITIAL FORM * 0642 ARABIC LETTER QAF * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * FDB5 ARABIC LIGATURE LAM WITH HAH WITH MEEM INITIAL FORM * 0644 ARABIC LETTER LAM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * FDB6 ARABIC LIGATURE AIN WITH MEEM WITH YEH FINAL FORM * 0639 ARABIC LETTER AIN * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDB7 ARABIC LIGATURE KAF WITH MEEM WITH YEH FINAL FORM * 0643 ARABIC LETTER KAF * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDB8 ARABIC LIGATURE NOON WITH JEEM WITH HAH INITIAL FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * FDB9 ARABIC LIGATURE MEEM WITH KHAH WITH YEH FINAL FORM * 0645 ARABIC LETTER MEEM * 062E ARABIC LETTER KHAH * 064A ARABIC LETTER YEH * FDBA ARABIC LIGATURE LAM WITH JEEM WITH MEEM INITIAL FORM * 0644 ARABIC LETTER LAM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FDBB ARABIC LIGATURE KAF WITH MEEM WITH MEEM FINAL FORM * 0643 ARABIC LETTER KAF * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FDBC ARABIC LIGATURE LAM WITH JEEM WITH MEEM FINAL FORM * 0644 ARABIC LETTER LAM * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FDBD ARABIC LIGATURE NOON WITH JEEM WITH HAH FINAL FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * FDBE ARABIC LIGATURE JEEM WITH HAH WITH YEH FINAL FORM * 062C ARABIC LETTER JEEM * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FDBF ARABIC LIGATURE HAH WITH JEEM WITH YEH FINAL FORM * 062D ARABIC LETTER HAH * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FDC0 ARABIC LIGATURE MEEM WITH JEEM WITH YEH FINAL FORM * 0645 ARABIC LETTER MEEM * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FDC1 ARABIC LIGATURE FEH WITH MEEM WITH YEH FINAL FORM * 0641 ARABIC LETTER FEH * 0645 ARABIC LETTER MEEM * 064A ARABIC LETTER YEH * FDC2 ARABIC LIGATURE BEH WITH HAH WITH YEH FINAL FORM * 0628 ARABIC LETTER BEH * 062D ARABIC LETTER HAH * 064A ARABIC LETTER YEH * FDC3 ARABIC LIGATURE KAF WITH MEEM WITH MEEM INITIAL FORM * 0643 ARABIC LETTER KAF * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FDC4 ARABIC LIGATURE AIN WITH JEEM WITH MEEM INITIAL FORM * 0639 ARABIC LETTER AIN * 062C ARABIC LETTER JEEM * 0645 ARABIC LETTER MEEM * FDC5 ARABIC LIGATURE SAD WITH MEEM WITH MEEM INITIAL FORM * 0635 ARABIC LETTER SAD * 0645 ARABIC LETTER MEEM * 0645 ARABIC LETTER MEEM * FDC6 ARABIC LIGATURE SEEN WITH KHAH WITH YEH FINAL FORM * 0633 ARABIC LETTER SEEN * 062E ARABIC LETTER KHAH * 064A ARABIC LETTER YEH * FDC7 ARABIC LIGATURE NOON WITH JEEM WITH YEH FINAL FORM * 0646 ARABIC LETTER NOON * 062C ARABIC LETTER JEEM * 064A ARABIC LETTER YEH * FDF0 ARABIC LIGATURE SALLA USED AS KORANIC STOP SIGN ISOLATED FORM * 0635 ARABIC LETTER SAD * 0644 ARABIC LETTER LAM * 06D2 ARABIC LETTER YEH BARREE * FDF1 ARABIC LIGATURE QALA USED AS KORANIC STOP SIGN ISOLATED FORM * 0642 ARABIC LETTER QAF * 0644 ARABIC LETTER LAM * 06D2 ARABIC LETTER YEH BARREE * FDF2 ARABIC LIGATURE ALLAH ISOLATED FORM * 0627 ARABIC LETTER ALEF * 0644 ARABIC LETTER LAM * 0644 ARABIC LETTER LAM * 0647 ARABIC LETTER HEH * FDF3 ARABIC LIGATURE AKBAR ISOLATED FORM * 0627 ARABIC LETTER ALEF * 0643 ARABIC LETTER KAF * 0628 ARABIC LETTER BEH * 0631 ARABIC LETTER REH * FDF4 ARABIC LIGATURE MOHAMMAD ISOLATED FORM * 0645 ARABIC LETTER MEEM * 062D ARABIC LETTER HAH * 0645 ARABIC LETTER MEEM * 062F ARABIC LETTER DAL * FDF5 ARABIC LIGATURE SALAM ISOLATED FORM * 0635 ARABIC LETTER SAD * 0644 ARABIC LETTER LAM * 0639 ARABIC LETTER AIN * 0645 ARABIC LETTER MEEM * FDF6 ARABIC LIGATURE RASOUL ISOLATED FORM * 0631 ARABIC LETTER REH * 0633 ARABIC LETTER SEEN * 0648 ARABIC LETTER WAW * 0644 ARABIC LETTER LAM * FDF7 ARABIC LIGATURE ALAYHE ISOLATED FORM * 0639 ARABIC LETTER AIN * 0644 ARABIC LETTER LAM * 064A ARABIC LETTER YEH * 0647 ARABIC LETTER HEH * FDF8 ARABIC LIGATURE WASALLAM ISOLATED FORM * 0648 ARABIC LETTER WAW * 0633 ARABIC LETTER SEEN * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * FDF9 ARABIC LIGATURE SALLA ISOLATED FORM * 0635 ARABIC LETTER SAD * 0644 ARABIC LETTER LAM * 0649 ARABIC LETTER ALEF MAKSURA * FDFA ARABIC LIGATURE SALLALLAHOU ALAYHE WASALLAM * 0635 ARABIC LETTER SAD * 0644 ARABIC LETTER LAM * 0649 ARABIC LETTER ALEF MAKSURA * 0020 SPACE * 0627 ARABIC LETTER ALEF * 0644 ARABIC LETTER LAM * 0644 ARABIC LETTER LAM * 0647 ARABIC LETTER HEH * 0020 SPACE * 0639 ARABIC LETTER AIN * 0644 ARABIC LETTER LAM * 064A ARABIC LETTER YEH * 0647 ARABIC LETTER HEH * 0020 SPACE * 0648 ARABIC LETTER WAW * 0633 ARABIC LETTER SEEN * 0644 ARABIC LETTER LAM * 0645 ARABIC LETTER MEEM * FDFB ARABIC LIGATURE JALLAJALALOUHOU * 062C ARABIC LETTER JEEM * 0644 ARABIC LETTER LAM * 0020 SPACE * 062C ARABIC LETTER JEEM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * 0644 ARABIC LETTER LAM * 0647 ARABIC LETTER HEH * FDFC RIAL SIGN * 0631 ARABIC LETTER REH * 06CC ARABIC LETTER FARSI YEH * 0627 ARABIC LETTER ALEF * 0644 ARABIC LETTER LAM * FE00 VARIATION SELECTOR-1 * 0000 * FE01 VARIATION SELECTOR-2 * 0000 * FE02 VARIATION SELECTOR-3 * 0000 * FE03 VARIATION SELECTOR-4 * 0000 * FE04 VARIATION SELECTOR-5 * 0000 * FE05 VARIATION SELECTOR-6 * 0000 * FE06 VARIATION SELECTOR-7 * 0000 * FE07 VARIATION SELECTOR-8 * 0000 * FE08 VARIATION SELECTOR-9 * 0000 * FE09 VARIATION SELECTOR-10 * 0000 * FE0A VARIATION SELECTOR-11 * 0000 * FE0B VARIATION SELECTOR-12 * 0000 * FE0C VARIATION SELECTOR-13 * 0000 * FE0D VARIATION SELECTOR-14 * 0000 * FE0E VARIATION SELECTOR-15 * 0000 * FE0F VARIATION SELECTOR-16 * 0000 * FE10 PRESENTATION FORM FOR VERTICAL COMMA * 002C COMMA * FE11 PRESENTATION FORM FOR VERTICAL IDEOGRAPHIC COMMA * 3001 IDEOGRAPHIC COMMA * FE12 PRESENTATION FORM FOR VERTICAL IDEOGRAPHIC FULL STOP * 3002 IDEOGRAPHIC FULL STOP * FE13 PRESENTATION FORM FOR VERTICAL COLON * 003A COLON * FE14 PRESENTATION FORM FOR VERTICAL SEMICOLON * 003B SEMICOLON * FE15 PRESENTATION FORM FOR VERTICAL EXCLAMATION MARK * 0021 EXCLAMATION MARK * FE16 PRESENTATION FORM FOR VERTICAL QUESTION MARK * 003F QUESTION MARK * FE17 PRESENTATION FORM FOR VERTICAL LEFT WHITE LENTICULAR BRACKET * 3016 LEFT WHITE LENTICULAR BRACKET * FE18 PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRAKCET * 3017 RIGHT WHITE LENTICULAR BRACKET * FE19 PRESENTATION FORM FOR VERTICAL HORIZONTAL ELLIPSIS * 002E FULL STOP * 002E FULL STOP * 002E FULL STOP * FE20 COMBINING LIGATURE LEFT HALF * 0000 * FE21 COMBINING LIGATURE RIGHT HALF * 0000 * FE22 COMBINING DOUBLE TILDE LEFT HALF * 0000 * FE23 COMBINING DOUBLE TILDE RIGHT HALF * 0000 * FE24 COMBINING MACRON LEFT HALF * 0000 * FE25 COMBINING MACRON RIGHT HALF * 0000 * FE26 COMBINING CONJOINING MACRON * 0000 * FE30 PRESENTATION FORM FOR VERTICAL TWO DOT LEADER * 002E FULL STOP * 002E FULL STOP * FE31 PRESENTATION FORM FOR VERTICAL EM DASH * 2014 EM DASH * FE32 PRESENTATION FORM FOR VERTICAL EN DASH * 2013 EN DASH * FE33 PRESENTATION FORM FOR VERTICAL LOW LINE * 005F LOW LINE * FE34 PRESENTATION FORM FOR VERTICAL WAVY LOW LINE * 005F LOW LINE * FE35 PRESENTATION FORM FOR VERTICAL LEFT PARENTHESIS * 0028 LEFT PARENTHESIS * FE36 PRESENTATION FORM FOR VERTICAL RIGHT PARENTHESIS * 0029 RIGHT PARENTHESIS * FE37 PRESENTATION FORM FOR VERTICAL LEFT CURLY BRACKET * 007B LEFT CURLY BRACKET * FE38 PRESENTATION FORM FOR VERTICAL RIGHT CURLY BRACKET * 007D RIGHT CURLY BRACKET * FE39 PRESENTATION FORM FOR VERTICAL LEFT TORTOISE SHELL BRACKET * 3014 LEFT TORTOISE SHELL BRACKET * FE3A PRESENTATION FORM FOR VERTICAL RIGHT TORTOISE SHELL BRACKET * 3015 RIGHT TORTOISE SHELL BRACKET * FE3B PRESENTATION FORM FOR VERTICAL LEFT BLACK LENTICULAR BRACKET * 3010 LEFT BLACK LENTICULAR BRACKET * FE3C PRESENTATION FORM FOR VERTICAL RIGHT BLACK LENTICULAR BRACKET * 3011 RIGHT BLACK LENTICULAR BRACKET * FE3D PRESENTATION FORM FOR VERTICAL LEFT DOUBLE ANGLE BRACKET * 300A LEFT DOUBLE ANGLE BRACKET * FE3E PRESENTATION FORM FOR VERTICAL RIGHT DOUBLE ANGLE BRACKET * 300B RIGHT DOUBLE ANGLE BRACKET * FE3F PRESENTATION FORM FOR VERTICAL LEFT ANGLE BRACKET * 3008 LEFT ANGLE BRACKET * FE40 PRESENTATION FORM FOR VERTICAL RIGHT ANGLE BRACKET * 3009 RIGHT ANGLE BRACKET * FE41 PRESENTATION FORM FOR VERTICAL LEFT CORNER BRACKET * 300C LEFT CORNER BRACKET * FE42 PRESENTATION FORM FOR VERTICAL RIGHT CORNER BRACKET * 300D RIGHT CORNER BRACKET * FE43 PRESENTATION FORM FOR VERTICAL LEFT WHITE CORNER BRACKET * 300E LEFT WHITE CORNER BRACKET * FE44 PRESENTATION FORM FOR VERTICAL RIGHT WHITE CORNER BRACKET * 300F RIGHT WHITE CORNER BRACKET * FE47 PRESENTATION FORM FOR VERTICAL LEFT SQUARE BRACKET * 005B LEFT SQUARE BRACKET * FE48 PRESENTATION FORM FOR VERTICAL RIGHT SQUARE BRACKET * 005D RIGHT SQUARE BRACKET * FE49 DASHED OVERLINE * 0020 SPACE * FE4A CENTRELINE OVERLINE * 0020 SPACE * FE4B WAVY OVERLINE * 0020 SPACE * FE4C DOUBLE WAVY OVERLINE * 0020 SPACE * FE4D DASHED LOW LINE * 005F LOW LINE * FE4E CENTRELINE LOW LINE * 005F LOW LINE * FE4F WAVY LOW LINE * 005F LOW LINE * FE50 SMALL COMMA * 002C COMMA * FE51 SMALL IDEOGRAPHIC COMMA * 3001 IDEOGRAPHIC COMMA * FE52 SMALL FULL STOP * 002E FULL STOP * FE54 SMALL SEMICOLON * 003B SEMICOLON * FE55 SMALL COLON * 003A COLON * FE56 SMALL QUESTION MARK * 003F QUESTION MARK * FE57 SMALL EXCLAMATION MARK * 0021 EXCLAMATION MARK * FE58 SMALL EM DASH * 2014 EM DASH * FE59 SMALL LEFT PARENTHESIS * 0028 LEFT PARENTHESIS * FE5A SMALL RIGHT PARENTHESIS * 0029 RIGHT PARENTHESIS * FE5B SMALL LEFT CURLY BRACKET * 007B LEFT CURLY BRACKET * FE5C SMALL RIGHT CURLY BRACKET * 007D RIGHT CURLY BRACKET * FE5D SMALL LEFT TORTOISE SHELL BRACKET * 3014 LEFT TORTOISE SHELL BRACKET * FE5E SMALL RIGHT TORTOISE SHELL BRACKET * 3015 RIGHT TORTOISE SHELL BRACKET * FE5F SMALL NUMBER SIGN * 0023 NUMBER SIGN * FE60 SMALL AMPERSAND * 0026 AMPERSAND * FE61 SMALL ASTERISK * 002A ASTERISK * FE62 SMALL PLUS SIGN * 002B PLUS SIGN * FE63 SMALL HYPHEN-MINUS * 002D HYPHEN-MINUS * FE64 SMALL LESS-THAN SIGN * 003C LESS-THAN SIGN * FE65 SMALL GREATER-THAN SIGN * 003E GREATER-THAN SIGN * FE66 SMALL EQUALS SIGN * 003D EQUALS SIGN * FE68 SMALL REVERSE SOLIDUS * 005C REVERSE SOLIDUS * FE69 SMALL DOLLAR SIGN * 0024 DOLLAR SIGN * FE6A SMALL PERCENT SIGN * 0025 PERCENT SIGN * FE6B SMALL COMMERCIAL AT * 0040 COMMERCIAL AT * FE70 ARABIC FATHATAN ISOLATED FORM * 0020 SPACE * FE71 ARABIC TATWEEL WITH FATHATAN ABOVE * 0640 ARABIC TATWEEL * FE72 ARABIC DAMMATAN ISOLATED FORM * 0020 SPACE * FE74 ARABIC KASRATAN ISOLATED FORM * 0020 SPACE * FE76 ARABIC FATHA ISOLATED FORM * 0020 SPACE * FE77 ARABIC FATHA MEDIAL FORM * 0640 ARABIC TATWEEL * FE78 ARABIC DAMMA ISOLATED FORM * 0020 SPACE * FE79 ARABIC DAMMA MEDIAL FORM * 0640 ARABIC TATWEEL * FE7A ARABIC KASRA ISOLATED FORM * 0020 SPACE * FE7B ARABIC KASRA MEDIAL FORM * 0640 ARABIC TATWEEL * FE7C ARABIC SHADDA ISOLATED FORM * 0020 SPACE * FE7D ARABIC SHADDA MEDIAL FORM * 0640 ARABIC TATWEEL * FE7E ARABIC SUKUN ISOLATED FORM * 0020 SPACE * FE7F ARABIC SUKUN MEDIAL FORM * 0640 ARABIC TATWEEL * FE80 ARABIC LETTER HAMZA ISOLATED FORM * 0621 ARABIC LETTER HAMZA * FE81 ARABIC LETTER ALEF WITH MADDA ABOVE ISOLATED FORM * 0627 ARABIC LETTER ALEF * FE82 ARABIC LETTER ALEF WITH MADDA ABOVE FINAL FORM * 0627 ARABIC LETTER ALEF * FE83 ARABIC LETTER ALEF WITH HAMZA ABOVE ISOLATED FORM * 0627 ARABIC LETTER ALEF * FE84 ARABIC LETTER ALEF WITH HAMZA ABOVE FINAL FORM * 0627 ARABIC LETTER ALEF * FE85 ARABIC LETTER WAW WITH HAMZA ABOVE ISOLATED FORM * 0648 ARABIC LETTER WAW * FE86 ARABIC LETTER WAW WITH HAMZA ABOVE FINAL FORM * 0648 ARABIC LETTER WAW * FE87 ARABIC LETTER ALEF WITH HAMZA BELOW ISOLATED FORM * 0627 ARABIC LETTER ALEF * FE88 ARABIC LETTER ALEF WITH HAMZA BELOW FINAL FORM * 0627 ARABIC LETTER ALEF * FE89 ARABIC LETTER YEH WITH HAMZA ABOVE ISOLATED FORM * 064A ARABIC LETTER YEH * FE8A ARABIC LETTER YEH WITH HAMZA ABOVE FINAL FORM * 064A ARABIC LETTER YEH * FE8B ARABIC LETTER YEH WITH HAMZA ABOVE INITIAL FORM * 064A ARABIC LETTER YEH * FE8C ARABIC LETTER YEH WITH HAMZA ABOVE MEDIAL FORM * 064A ARABIC LETTER YEH * FE8D ARABIC LETTER ALEF ISOLATED FORM * 0627 ARABIC LETTER ALEF * FE8E ARABIC LETTER ALEF FINAL FORM * 0627 ARABIC LETTER ALEF * FE8F ARABIC LETTER BEH ISOLATED FORM * 0628 ARABIC LETTER BEH * FE90 ARABIC LETTER BEH FINAL FORM * 0628 ARABIC LETTER BEH * FE91 ARABIC LETTER BEH INITIAL FORM * 0628 ARABIC LETTER BEH * FE92 ARABIC LETTER BEH MEDIAL FORM * 0628 ARABIC LETTER BEH * FE93 ARABIC LETTER TEH MARBUTA ISOLATED FORM * 0629 ARABIC LETTER TEH MARBUTA * FE94 ARABIC LETTER TEH MARBUTA FINAL FORM * 0629 ARABIC LETTER TEH MARBUTA * FE95 ARABIC LETTER TEH ISOLATED FORM * 062A ARABIC LETTER TEH * FE96 ARABIC LETTER TEH FINAL FORM * 062A ARABIC LETTER TEH * FE97 ARABIC LETTER TEH INITIAL FORM * 062A ARABIC LETTER TEH * FE98 ARABIC LETTER TEH MEDIAL FORM * 062A ARABIC LETTER TEH * FE99 ARABIC LETTER THEH ISOLATED FORM * 062B ARABIC LETTER THEH * FE9A ARABIC LETTER THEH FINAL FORM * 062B ARABIC LETTER THEH * FE9B ARABIC LETTER THEH INITIAL FORM * 062B ARABIC LETTER THEH * FE9C ARABIC LETTER THEH MEDIAL FORM * 062B ARABIC LETTER THEH * FE9D ARABIC LETTER JEEM ISOLATED FORM * 062C ARABIC LETTER JEEM * FE9E ARABIC LETTER JEEM FINAL FORM * 062C ARABIC LETTER JEEM * FE9F ARABIC LETTER JEEM INITIAL FORM * 062C ARABIC LETTER JEEM * FEA0 ARABIC LETTER JEEM MEDIAL FORM * 062C ARABIC LETTER JEEM * FEA1 ARABIC LETTER HAH ISOLATED FORM * 062D ARABIC LETTER HAH * FEA2 ARABIC LETTER HAH FINAL FORM * 062D ARABIC LETTER HAH * FEA3 ARABIC LETTER HAH INITIAL FORM * 062D ARABIC LETTER HAH * FEA4 ARABIC LETTER HAH MEDIAL FORM * 062D ARABIC LETTER HAH * FEA5 ARABIC LETTER KHAH ISOLATED FORM * 062E ARABIC LETTER KHAH * FEA6 ARABIC LETTER KHAH FINAL FORM * 062E ARABIC LETTER KHAH * FEA7 ARABIC LETTER KHAH INITIAL FORM * 062E ARABIC LETTER KHAH * FEA8 ARABIC LETTER KHAH MEDIAL FORM * 062E ARABIC LETTER KHAH * FEA9 ARABIC LETTER DAL ISOLATED FORM * 062F ARABIC LETTER DAL * FEAA ARABIC LETTER DAL FINAL FORM * 062F ARABIC LETTER DAL * FEAB ARABIC LETTER THAL ISOLATED FORM * 0630 ARABIC LETTER THAL * FEAC ARABIC LETTER THAL FINAL FORM * 0630 ARABIC LETTER THAL * FEAD ARABIC LETTER REH ISOLATED FORM * 0631 ARABIC LETTER REH * FEAE ARABIC LETTER REH FINAL FORM * 0631 ARABIC LETTER REH * FEAF ARABIC LETTER ZAIN ISOLATED FORM * 0632 ARABIC LETTER ZAIN * FEB0 ARABIC LETTER ZAIN FINAL FORM * 0632 ARABIC LETTER ZAIN * FEB1 ARABIC LETTER SEEN ISOLATED FORM * 0633 ARABIC LETTER SEEN * FEB2 ARABIC LETTER SEEN FINAL FORM * 0633 ARABIC LETTER SEEN * FEB3 ARABIC LETTER SEEN INITIAL FORM * 0633 ARABIC LETTER SEEN * FEB4 ARABIC LETTER SEEN MEDIAL FORM * 0633 ARABIC LETTER SEEN * FEB5 ARABIC LETTER SHEEN ISOLATED FORM * 0634 ARABIC LETTER SHEEN * FEB6 ARABIC LETTER SHEEN FINAL FORM * 0634 ARABIC LETTER SHEEN * FEB7 ARABIC LETTER SHEEN INITIAL FORM * 0634 ARABIC LETTER SHEEN * FEB8 ARABIC LETTER SHEEN MEDIAL FORM * 0634 ARABIC LETTER SHEEN * FEB9 ARABIC LETTER SAD ISOLATED FORM * 0635 ARABIC LETTER SAD * FEBA ARABIC LETTER SAD FINAL FORM * 0635 ARABIC LETTER SAD * FEBB ARABIC LETTER SAD INITIAL FORM * 0635 ARABIC LETTER SAD * FEBC ARABIC LETTER SAD MEDIAL FORM * 0635 ARABIC LETTER SAD * FEBD ARABIC LETTER DAD ISOLATED FORM * 0636 ARABIC LETTER DAD * FEBE ARABIC LETTER DAD FINAL FORM * 0636 ARABIC LETTER DAD * FEBF ARABIC LETTER DAD INITIAL FORM * 0636 ARABIC LETTER DAD * FEC0 ARABIC LETTER DAD MEDIAL FORM * 0636 ARABIC LETTER DAD * FEC1 ARABIC LETTER TAH ISOLATED FORM * 0637 ARABIC LETTER TAH * FEC2 ARABIC LETTER TAH FINAL FORM * 0637 ARABIC LETTER TAH * FEC3 ARABIC LETTER TAH INITIAL FORM * 0637 ARABIC LETTER TAH * FEC4 ARABIC LETTER TAH MEDIAL FORM * 0637 ARABIC LETTER TAH * FEC5 ARABIC LETTER ZAH ISOLATED FORM * 0638 ARABIC LETTER ZAH * FEC6 ARABIC LETTER ZAH FINAL FORM * 0638 ARABIC LETTER ZAH * FEC7 ARABIC LETTER ZAH INITIAL FORM * 0638 ARABIC LETTER ZAH * FEC8 ARABIC LETTER ZAH MEDIAL FORM * 0638 ARABIC LETTER ZAH * FEC9 ARABIC LETTER AIN ISOLATED FORM * 0639 ARABIC LETTER AIN * FECA ARABIC LETTER AIN FINAL FORM * 0639 ARABIC LETTER AIN * FECB ARABIC LETTER AIN INITIAL FORM * 0639 ARABIC LETTER AIN * FECC ARABIC LETTER AIN MEDIAL FORM * 0639 ARABIC LETTER AIN * FECD ARABIC LETTER GHAIN ISOLATED FORM * 063A ARABIC LETTER GHAIN * FECE ARABIC LETTER GHAIN FINAL FORM * 063A ARABIC LETTER GHAIN * FECF ARABIC LETTER GHAIN INITIAL FORM * 063A ARABIC LETTER GHAIN * FED0 ARABIC LETTER GHAIN MEDIAL FORM * 063A ARABIC LETTER GHAIN * FED1 ARABIC LETTER FEH ISOLATED FORM * 0641 ARABIC LETTER FEH * FED2 ARABIC LETTER FEH FINAL FORM * 0641 ARABIC LETTER FEH * FED3 ARABIC LETTER FEH INITIAL FORM * 0641 ARABIC LETTER FEH * FED4 ARABIC LETTER FEH MEDIAL FORM * 0641 ARABIC LETTER FEH * FED5 ARABIC LETTER QAF ISOLATED FORM * 0642 ARABIC LETTER QAF * FED6 ARABIC LETTER QAF FINAL FORM * 0642 ARABIC LETTER QAF * FED7 ARABIC LETTER QAF INITIAL FORM * 0642 ARABIC LETTER QAF * FED8 ARABIC LETTER QAF MEDIAL FORM * 0642 ARABIC LETTER QAF * FED9 ARABIC LETTER KAF ISOLATED FORM * 0643 ARABIC LETTER KAF * FEDA ARABIC LETTER KAF FINAL FORM * 0643 ARABIC LETTER KAF * FEDB ARABIC LETTER KAF INITIAL FORM * 0643 ARABIC LETTER KAF * FEDC ARABIC LETTER KAF MEDIAL FORM * 0643 ARABIC LETTER KAF * FEDD ARABIC LETTER LAM ISOLATED FORM * 0644 ARABIC LETTER LAM * FEDE ARABIC LETTER LAM FINAL FORM * 0644 ARABIC LETTER LAM * FEDF ARABIC LETTER LAM INITIAL FORM * 0644 ARABIC LETTER LAM * FEE0 ARABIC LETTER LAM MEDIAL FORM * 0644 ARABIC LETTER LAM * FEE1 ARABIC LETTER MEEM ISOLATED FORM * 0645 ARABIC LETTER MEEM * FEE2 ARABIC LETTER MEEM FINAL FORM * 0645 ARABIC LETTER MEEM * FEE3 ARABIC LETTER MEEM INITIAL FORM * 0645 ARABIC LETTER MEEM * FEE4 ARABIC LETTER MEEM MEDIAL FORM * 0645 ARABIC LETTER MEEM * FEE5 ARABIC LETTER NOON ISOLATED FORM * 0646 ARABIC LETTER NOON * FEE6 ARABIC LETTER NOON FINAL FORM * 0646 ARABIC LETTER NOON * FEE7 ARABIC LETTER NOON INITIAL FORM * 0646 ARABIC LETTER NOON * FEE8 ARABIC LETTER NOON MEDIAL FORM * 0646 ARABIC LETTER NOON * FEE9 ARABIC LETTER HEH ISOLATED FORM * 0647 ARABIC LETTER HEH * FEEA ARABIC LETTER HEH FINAL FORM * 0647 ARABIC LETTER HEH * FEEB ARABIC LETTER HEH INITIAL FORM * 0647 ARABIC LETTER HEH * FEEC ARABIC LETTER HEH MEDIAL FORM * 0647 ARABIC LETTER HEH * FEED ARABIC LETTER WAW ISOLATED FORM * 0648 ARABIC LETTER WAW * FEEE ARABIC LETTER WAW FINAL FORM * 0648 ARABIC LETTER WAW * FEEF ARABIC LETTER ALEF MAKSURA ISOLATED FORM * 0649 ARABIC LETTER ALEF MAKSURA * FEF0 ARABIC LETTER ALEF MAKSURA FINAL FORM * 0649 ARABIC LETTER ALEF MAKSURA * FEF1 ARABIC LETTER YEH ISOLATED FORM * 064A ARABIC LETTER YEH * FEF2 ARABIC LETTER YEH FINAL FORM * 064A ARABIC LETTER YEH * FEF3 ARABIC LETTER YEH INITIAL FORM * 064A ARABIC LETTER YEH * FEF4 ARABIC LETTER YEH MEDIAL FORM * 064A ARABIC LETTER YEH * FEF5 ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FEF6 ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FEF7 ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FEF8 ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FEF9 ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW ISOLATED FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FEFA ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW FINAL FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FEFB ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FEFC ARABIC LIGATURE LAM WITH ALEF FINAL FORM * 0644 ARABIC LETTER LAM * 0627 ARABIC LETTER ALEF * FF01 FULLWIDTH EXCLAMATION MARK * 0021 EXCLAMATION MARK * FF02 FULLWIDTH QUOTATION MARK * 0022 QUOTATION MARK * FF03 FULLWIDTH NUMBER SIGN * 0023 NUMBER SIGN * FF04 FULLWIDTH DOLLAR SIGN * 0024 DOLLAR SIGN * FF05 FULLWIDTH PERCENT SIGN * 0025 PERCENT SIGN * FF06 FULLWIDTH AMPERSAND * 0026 AMPERSAND * FF07 FULLWIDTH APOSTROPHE * 0027 APOSTROPHE * FF08 FULLWIDTH LEFT PARENTHESIS * 0028 LEFT PARENTHESIS * FF09 FULLWIDTH RIGHT PARENTHESIS * 0029 RIGHT PARENTHESIS * FF0A FULLWIDTH ASTERISK * 002A ASTERISK * FF0B FULLWIDTH PLUS SIGN * 002B PLUS SIGN * FF0C FULLWIDTH COMMA * 002C COMMA * FF0D FULLWIDTH HYPHEN-MINUS * 002D HYPHEN-MINUS * FF0E FULLWIDTH FULL STOP * 002E FULL STOP * FF0F FULLWIDTH SOLIDUS * 002F SOLIDUS * FF10 FULLWIDTH DIGIT ZERO * 0030 DIGIT ZERO * FF11 FULLWIDTH DIGIT ONE * 0031 DIGIT ONE * FF12 FULLWIDTH DIGIT TWO * 0032 DIGIT TWO * FF13 FULLWIDTH DIGIT THREE * 0033 DIGIT THREE * FF14 FULLWIDTH DIGIT FOUR * 0034 DIGIT FOUR * FF15 FULLWIDTH DIGIT FIVE * 0035 DIGIT FIVE * FF16 FULLWIDTH DIGIT SIX * 0036 DIGIT SIX * FF17 FULLWIDTH DIGIT SEVEN * 0037 DIGIT SEVEN * FF18 FULLWIDTH DIGIT EIGHT * 0038 DIGIT EIGHT * FF19 FULLWIDTH DIGIT NINE * 0039 DIGIT NINE * FF1A FULLWIDTH COLON * 003A COLON * FF1B FULLWIDTH SEMICOLON * 003B SEMICOLON * FF1C FULLWIDTH LESS-THAN SIGN * 003C LESS-THAN SIGN * FF1D FULLWIDTH EQUALS SIGN * 003D EQUALS SIGN * FF1E FULLWIDTH GREATER-THAN SIGN * 003E GREATER-THAN SIGN * FF1F FULLWIDTH QUESTION MARK * 003F QUESTION MARK * FF20 FULLWIDTH COMMERCIAL AT * 0040 COMMERCIAL AT * FF21 FULLWIDTH LATIN CAPITAL LETTER A * 0041 LATIN CAPITAL LETTER A * FF22 FULLWIDTH LATIN CAPITAL LETTER B * 0042 LATIN CAPITAL LETTER B * FF23 FULLWIDTH LATIN CAPITAL LETTER C * 0043 LATIN CAPITAL LETTER C * FF24 FULLWIDTH LATIN CAPITAL LETTER D * 0044 LATIN CAPITAL LETTER D * FF25 FULLWIDTH LATIN CAPITAL LETTER E * 0045 LATIN CAPITAL LETTER E * FF26 FULLWIDTH LATIN CAPITAL LETTER F * 0046 LATIN CAPITAL LETTER F * FF27 FULLWIDTH LATIN CAPITAL LETTER G * 0047 LATIN CAPITAL LETTER G * FF28 FULLWIDTH LATIN CAPITAL LETTER H * 0048 LATIN CAPITAL LETTER H * FF29 FULLWIDTH LATIN CAPITAL LETTER I * 0049 LATIN CAPITAL LETTER I * FF2A FULLWIDTH LATIN CAPITAL LETTER J * 004A LATIN CAPITAL LETTER J * FF2B FULLWIDTH LATIN CAPITAL LETTER K * 004B LATIN CAPITAL LETTER K * FF2C FULLWIDTH LATIN CAPITAL LETTER L * 004C LATIN CAPITAL LETTER L * FF2D FULLWIDTH LATIN CAPITAL LETTER M * 004D LATIN CAPITAL LETTER M * FF2E FULLWIDTH LATIN CAPITAL LETTER N * 004E LATIN CAPITAL LETTER N * FF2F FULLWIDTH LATIN CAPITAL LETTER O * 004F LATIN CAPITAL LETTER O * FF30 FULLWIDTH LATIN CAPITAL LETTER P * 0050 LATIN CAPITAL LETTER P * FF31 FULLWIDTH LATIN CAPITAL LETTER Q * 0051 LATIN CAPITAL LETTER Q * FF32 FULLWIDTH LATIN CAPITAL LETTER R * 0052 LATIN CAPITAL LETTER R * FF33 FULLWIDTH LATIN CAPITAL LETTER S * 0053 LATIN CAPITAL LETTER S * FF34 FULLWIDTH LATIN CAPITAL LETTER T * 0054 LATIN CAPITAL LETTER T * FF35 FULLWIDTH LATIN CAPITAL LETTER U * 0055 LATIN CAPITAL LETTER U * FF36 FULLWIDTH LATIN CAPITAL LETTER V * 0056 LATIN CAPITAL LETTER V * FF37 FULLWIDTH LATIN CAPITAL LETTER W * 0057 LATIN CAPITAL LETTER W * FF38 FULLWIDTH LATIN CAPITAL LETTER X * 0058 LATIN CAPITAL LETTER X * FF39 FULLWIDTH LATIN CAPITAL LETTER Y * 0059 LATIN CAPITAL LETTER Y * FF3A FULLWIDTH LATIN CAPITAL LETTER Z * 005A LATIN CAPITAL LETTER Z * FF3B FULLWIDTH LEFT SQUARE BRACKET * 005B LEFT SQUARE BRACKET * FF3C FULLWIDTH REVERSE SOLIDUS * 005C REVERSE SOLIDUS * FF3D FULLWIDTH RIGHT SQUARE BRACKET * 005D RIGHT SQUARE BRACKET * FF3E FULLWIDTH CIRCUMFLEX ACCENT * 005E CIRCUMFLEX ACCENT * FF3F FULLWIDTH LOW LINE * 005F LOW LINE * FF40 FULLWIDTH GRAVE ACCENT * 0060 GRAVE ACCENT * FF41 FULLWIDTH LATIN SMALL LETTER A * 0061 LATIN SMALL LETTER A * FF42 FULLWIDTH LATIN SMALL LETTER B * 0062 LATIN SMALL LETTER B * FF43 FULLWIDTH LATIN SMALL LETTER C * 0063 LATIN SMALL LETTER C * FF44 FULLWIDTH LATIN SMALL LETTER D * 0064 LATIN SMALL LETTER D * FF45 FULLWIDTH LATIN SMALL LETTER E * 0065 LATIN SMALL LETTER E * FF46 FULLWIDTH LATIN SMALL LETTER F * 0066 LATIN SMALL LETTER F * FF47 FULLWIDTH LATIN SMALL LETTER G * 0067 LATIN SMALL LETTER G * FF48 FULLWIDTH LATIN SMALL LETTER H * 0068 LATIN SMALL LETTER H * FF49 FULLWIDTH LATIN SMALL LETTER I * 0069 LATIN SMALL LETTER I * FF4A FULLWIDTH LATIN SMALL LETTER J * 006A LATIN SMALL LETTER J * FF4B FULLWIDTH LATIN SMALL LETTER K * 006B LATIN SMALL LETTER K * FF4C FULLWIDTH LATIN SMALL LETTER L * 006C LATIN SMALL LETTER L * FF4D FULLWIDTH LATIN SMALL LETTER M * 006D LATIN SMALL LETTER M * FF4E FULLWIDTH LATIN SMALL LETTER N * 006E LATIN SMALL LETTER N * FF4F FULLWIDTH LATIN SMALL LETTER O * 006F LATIN SMALL LETTER O * FF50 FULLWIDTH LATIN SMALL LETTER P * 0070 LATIN SMALL LETTER P * FF51 FULLWIDTH LATIN SMALL LETTER Q * 0071 LATIN SMALL LETTER Q * FF52 FULLWIDTH LATIN SMALL LETTER R * 0072 LATIN SMALL LETTER R * FF53 FULLWIDTH LATIN SMALL LETTER S * 0073 LATIN SMALL LETTER S * FF54 FULLWIDTH LATIN SMALL LETTER T * 0074 LATIN SMALL LETTER T * FF55 FULLWIDTH LATIN SMALL LETTER U * 0075 LATIN SMALL LETTER U * FF56 FULLWIDTH LATIN SMALL LETTER V * 0076 LATIN SMALL LETTER V * FF57 FULLWIDTH LATIN SMALL LETTER W * 0077 LATIN SMALL LETTER W * FF58 FULLWIDTH LATIN SMALL LETTER X * 0078 LATIN SMALL LETTER X * FF59 FULLWIDTH LATIN SMALL LETTER Y * 0079 LATIN SMALL LETTER Y * FF5A FULLWIDTH LATIN SMALL LETTER Z * 007A LATIN SMALL LETTER Z * FF5B FULLWIDTH LEFT CURLY BRACKET * 007B LEFT CURLY BRACKET * FF5C FULLWIDTH VERTICAL LINE * 007C VERTICAL LINE * FF5D FULLWIDTH RIGHT CURLY BRACKET * 007D RIGHT CURLY BRACKET * FF5E FULLWIDTH TILDE * 007E TILDE * FF5F FULLWIDTH LEFT WHITE PARENTHESIS * 2985 LEFT WHITE PARENTHESIS * FF60 FULLWIDTH RIGHT WHITE PARENTHESIS * 2986 RIGHT WHITE PARENTHESIS * FF61 HALFWIDTH IDEOGRAPHIC FULL STOP * 3002 IDEOGRAPHIC FULL STOP * FF62 HALFWIDTH LEFT CORNER BRACKET * 300C LEFT CORNER BRACKET * FF63 HALFWIDTH RIGHT CORNER BRACKET * 300D RIGHT CORNER BRACKET * FF64 HALFWIDTH IDEOGRAPHIC COMMA * 3001 IDEOGRAPHIC COMMA * FFA0 HALFWIDTH HANGUL FILLER * 1160 HANGUL JUNGSEONG FILLER * FFA1 HALFWIDTH HANGUL LETTER KIYEOK * 1100 HANGUL CHOSEONG KIYEOK * FFA2 HALFWIDTH HANGUL LETTER SSANGKIYEOK * 1101 HANGUL CHOSEONG SSANGKIYEOK * FFA3 HALFWIDTH HANGUL LETTER KIYEOK-SIOS * 11AA HANGUL JONGSEONG KIYEOK-SIOS * FFA4 HALFWIDTH HANGUL LETTER NIEUN * 1102 HANGUL CHOSEONG NIEUN * FFA5 HALFWIDTH HANGUL LETTER NIEUN-CIEUC * 11AC HANGUL JONGSEONG NIEUN-CIEUC * FFA6 HALFWIDTH HANGUL LETTER NIEUN-HIEUH * 11AD HANGUL JONGSEONG NIEUN-HIEUH * FFA7 HALFWIDTH HANGUL LETTER TIKEUT * 1103 HANGUL CHOSEONG TIKEUT * FFA8 HALFWIDTH HANGUL LETTER SSANGTIKEUT * 1104 HANGUL CHOSEONG SSANGTIKEUT * FFA9 HALFWIDTH HANGUL LETTER RIEUL * 1105 HANGUL CHOSEONG RIEUL * FFAA HALFWIDTH HANGUL LETTER RIEUL-KIYEOK * 11B0 HANGUL JONGSEONG RIEUL-KIYEOK * FFAB HALFWIDTH HANGUL LETTER RIEUL-MIEUM * 11B1 HANGUL JONGSEONG RIEUL-MIEUM * FFAC HALFWIDTH HANGUL LETTER RIEUL-PIEUP * 11B2 HANGUL JONGSEONG RIEUL-PIEUP * FFAD HALFWIDTH HANGUL LETTER RIEUL-SIOS * 11B3 HANGUL JONGSEONG RIEUL-SIOS * FFAE HALFWIDTH HANGUL LETTER RIEUL-THIEUTH * 11B4 HANGUL JONGSEONG RIEUL-THIEUTH * FFAF HALFWIDTH HANGUL LETTER RIEUL-PHIEUPH * 11B5 HANGUL JONGSEONG RIEUL-PHIEUPH * FFB0 HALFWIDTH HANGUL LETTER RIEUL-HIEUH * 111A HANGUL CHOSEONG RIEUL-HIEUH * FFB1 HALFWIDTH HANGUL LETTER MIEUM * 1106 HANGUL CHOSEONG MIEUM * FFB2 HALFWIDTH HANGUL LETTER PIEUP * 1107 HANGUL CHOSEONG PIEUP * FFB3 HALFWIDTH HANGUL LETTER SSANGPIEUP * 1108 HANGUL CHOSEONG SSANGPIEUP * FFB4 HALFWIDTH HANGUL LETTER PIEUP-SIOS * 1121 HANGUL CHOSEONG PIEUP-SIOS * FFB5 HALFWIDTH HANGUL LETTER SIOS * 1109 HANGUL CHOSEONG SIOS * FFB6 HALFWIDTH HANGUL LETTER SSANGSIOS * 110A HANGUL CHOSEONG SSANGSIOS * FFB7 HALFWIDTH HANGUL LETTER IEUNG * 110B HANGUL CHOSEONG IEUNG * FFB8 HALFWIDTH HANGUL LETTER CIEUC * 110C HANGUL CHOSEONG CIEUC * FFB9 HALFWIDTH HANGUL LETTER SSANGCIEUC * 110D HANGUL CHOSEONG SSANGCIEUC * FFBA HALFWIDTH HANGUL LETTER CHIEUCH * 110E HANGUL CHOSEONG CHIEUCH * FFBB HALFWIDTH HANGUL LETTER KHIEUKH * 110F HANGUL CHOSEONG KHIEUKH * FFBC HALFWIDTH HANGUL LETTER THIEUTH * 1110 HANGUL CHOSEONG THIEUTH * FFBD HALFWIDTH HANGUL LETTER PHIEUPH * 1111 HANGUL CHOSEONG PHIEUPH * FFBE HALFWIDTH HANGUL LETTER HIEUH * 1112 HANGUL CHOSEONG HIEUH * FFC2 HALFWIDTH HANGUL LETTER A * 1161 HANGUL JUNGSEONG A * FFC3 HALFWIDTH HANGUL LETTER AE * 1162 HANGUL JUNGSEONG AE * FFC4 HALFWIDTH HANGUL LETTER YA * 1163 HANGUL JUNGSEONG YA * FFC5 HALFWIDTH HANGUL LETTER YAE * 1164 HANGUL JUNGSEONG YAE * FFC6 HALFWIDTH HANGUL LETTER EO * 1165 HANGUL JUNGSEONG EO * FFC7 HALFWIDTH HANGUL LETTER E * 1166 HANGUL JUNGSEONG E * FFCA HALFWIDTH HANGUL LETTER YEO * 1167 HANGUL JUNGSEONG YEO * FFCB HALFWIDTH HANGUL LETTER YE * 1168 HANGUL JUNGSEONG YE * FFCC HALFWIDTH HANGUL LETTER O * 1169 HANGUL JUNGSEONG O * FFCD HALFWIDTH HANGUL LETTER WA * 116A HANGUL JUNGSEONG WA * FFCE HALFWIDTH HANGUL LETTER WAE * 116B HANGUL JUNGSEONG WAE * FFCF HALFWIDTH HANGUL LETTER OE * 116C HANGUL JUNGSEONG OE * FFD2 HALFWIDTH HANGUL LETTER YO * 116D HANGUL JUNGSEONG YO * FFD3 HALFWIDTH HANGUL LETTER U * 116E HANGUL JUNGSEONG U * FFD4 HALFWIDTH HANGUL LETTER WEO * 116F HANGUL JUNGSEONG WEO * FFD5 HALFWIDTH HANGUL LETTER WE * 1170 HANGUL JUNGSEONG WE * FFD6 HALFWIDTH HANGUL LETTER WI * 1171 HANGUL JUNGSEONG WI * FFD7 HALFWIDTH HANGUL LETTER YU * 1172 HANGUL JUNGSEONG YU * FFDA HALFWIDTH HANGUL LETTER EU * 1173 HANGUL JUNGSEONG EU * FFDB HALFWIDTH HANGUL LETTER YI * 1174 HANGUL JUNGSEONG YI * FFDC HALFWIDTH HANGUL LETTER I * 1175 HANGUL JUNGSEONG I * FFE0 FULLWIDTH CENT SIGN * 00A2 CENT SIGN * FFE1 FULLWIDTH POUND SIGN * 00A3 POUND SIGN * FFE2 FULLWIDTH NOT SIGN * 00AC NOT SIGN * FFE3 FULLWIDTH MACRON * 0020 SPACE * FFE4 FULLWIDTH BROKEN BAR * 00A6 BROKEN BAR * FFE5 FULLWIDTH YEN SIGN * 00A5 YEN SIGN * FFE6 FULLWIDTH WON SIGN * 20A9 WON SIGN * FFE8 HALFWIDTH FORMS LIGHT VERTICAL * 2502 BOX DRAWINGS LIGHT VERTICAL * FFE9 HALFWIDTH LEFTWARDS ARROW * 2190 LEFTWARDS ARROW * FFEA HALFWIDTH UPWARDS ARROW * 2191 UPWARDS ARROW * FFEB HALFWIDTH RIGHTWARDS ARROW * 2192 RIGHTWARDS ARROW * FFEC HALFWIDTH DOWNWARDS ARROW * 2193 DOWNWARDS ARROW * FFED HALFWIDTH BLACK SQUARE * 25A0 BLACK SQUARE * FFEE HALFWIDTH WHITE CIRCLE * 25CB WHITE CIRCLE */ unsigned short unac_indexes[UNAC_INDEXES_SIZE] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 60, 0, 0, 0, 61, 62, 0, 0, 0, 63, 63, 63, 63, 63, 63, 63, 63, 64, 63, 63, 63, 63, 63, 65, 66, 67, 68, 69, 70, 71, 72, 73, 0, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 0, 88, 0, 0, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 0, 116, 117, 118, 119, 120, 0, 0, 0, 0, 0, 121, 0, 122, 63, 63, 63, 63, 123, 124, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 125, 126, 0, 0, 0, 0, 127, 63, 63, 0, 0, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 130, 0, 131, 132, 132, 133, 0, 0, 0, 0, 134, 0, 0, 0, 63, 63, 63, 125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 135, 63, 136, 0, 0, 0, 0, 0, 0, 127, 137, 0, 0, 0, 135, 138, 139, 140, 0, 0, 0, 0, 0, 141, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 63, 63, 143, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 0, 0, 0, 0, 0, 144, 145, 146, 147, 134, 148, 0, 0, 149, 0, 141, 0, 0, 0, 0, 0, 0, 145, 123, 150, 0, 0, 151, 0, 0, 0, 141, 0, 0, 0, 0, 0, 0, 145, 132, 147, 135, 152, 151, 0, 0, 0, 153, 0, 154, 0, 0, 0, 0, 135, 155, 133, 156, 0, 0, 0, 0, 0, 141, 0, 0, 0, 0, 0, 0, 135, 157, 133, 158, 0, 151, 0, 0, 0, 151, 0, 0, 0, 0, 0, 0, 145, 157, 133, 158, 0, 151, 0, 0, 0, 151, 0, 0, 0, 0, 0, 0, 135, 157, 133, 156, 0, 151, 0, 0, 0, 151, 0, 0, 0, 0, 0, 0, 0, 0, 159, 160, 63, 0, 0, 151, 0, 0, 0, 0, 0, 0, 0, 161, 125, 156, 143, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 162, 163, 0, 164, 0, 165, 0, 0, 0, 0, 0, 166, 0, 167, 0, 0, 168, 169, 170, 171, 172, 173, 0, 174, 122, 63, 157, 175, 63, 122, 63, 63, 63, 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 178, 127, 63, 143, 0, 0, 135, 179, 180, 164, 181, 0, 182, 123, 0, 183, 184, 185, 186, 187, 188, 189, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 0, 191, 0, 0, 0, 151, 0, 0, 0, 151, 0, 0, 0, 0, 0, 0, 0, 142, 63, 63, 63, 137, 192, 0, 0, 0, 0, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 137, 63, 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 63, 136, 167, 0, 0, 0, 0, 0, 0, 0, 0, 156, 137, 0, 0, 0, 0, 0, 0, 175, 143, 63, 63, 63, 132, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 195, 196, 0, 0, 0, 142, 63, 176, 0, 0, 0, 0, 127, 137, 0, 125, 0, 0, 0, 122, 164, 0, 0, 0, 0, 0, 0, 135, 63, 137, 0, 0, 0, 0, 0, 142, 63, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197, 63, 63, 198, 191, 0, 0, 0, 0, 0, 0, 199, 200, 201, 202, 203, 204, 205, 206, 207, 0, 208, 0, 0, 0, 209, 210, 211, 212, 213, 63, 63, 63, 63, 143, 0, 0, 142, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 0, 281, 282, 283, 284, 285, 286, 287, 282, 0, 0, 288, 289, 290, 291, 292, 293, 0, 294, 0, 0, 0, 0, 63, 63, 63, 63, 136, 0, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 0, 313, 0, 314, 0, 0, 0, 315, 0, 0, 0, 0, 0, 0, 316, 317, 0, 0, 318, 319, 320, 0, 321, 322, 0, 0, 323, 324, 325, 326, 327, 328, 0, 0, 0, 329, 0, 0, 0, 0, 0, 0, 330, 331, 0, 0, 0, 0, 0, 0, 0, 332, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 352, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 353, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 354, 355, 356, 357, 358, 359, 0, 0, 0, 0, 0, 0, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 379, 0, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 63, 63, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 380, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 381, 0, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 182, 409, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 425, 426, 427, 428, 429, 430, 431, 432, 433, 0, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 488, 489, 490, 491, 492, 493, 197, 164, 494, 495, 496, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, 0, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 0, 512, 513, 0, 0, 0, 0, 0, 0, 0, 0, 0, 514, 515, 516, 0, 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, 0, 142, 63, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 135, 164, 0, 0, 156, 63, 137, 0, 0, 0, 0, 0, 137, 0, 0, 0, 0, 0, 127, 63, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 143, 0, 516, 517, 0, 0, 0, 0, 0, 516, 0, 0, 0, 0, 0, 0, 180, 518, 134, 0, 0, 0, 0, 127, 158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 519, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 0, 0, 0, 0, 580, 0, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 0, 0, 0, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 0, 0, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 0, 0, 0, 0, 0, 663, 664, 63, 63, 665, 666, 143, 0, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 290, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 0, 0, 0, 0, 0, 0, 0, 705, 412, 413, 706, 707, 708, 709, 710, 711, 712, 0, 0 }; unsigned char unac_positions[UNAC_BLOCK_COUNT][3*UNAC_BLOCK_SIZE + 1] = { /* 0 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 1 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 2 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 3 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 4 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 5 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 6 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 7 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 8 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 18, 19, 22, 25, 26, 29, 32, 33, 34, 35, 36 }, /* 9 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 10 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 11 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 12 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26 }, /* 13 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 14 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 15 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 16 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 17 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 18 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 19 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 20 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 21 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 22 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 23 */ { 0, 1, 2, 4, 5, 6, 7, 9, 11, 12, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 }, /* 24 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26 }, /* 25 */ { 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 26 */ { 0, 1, 2, 3, 5, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }, /* 27 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 28 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 29 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 30 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 31 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 32 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 33 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 34 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 35 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 36 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 37 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 38 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 39 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 40 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 41 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 17, 19, 21, 22, 24, 26, 27, 29, 31, 32 }, /* 42 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 }, /* 43 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 44 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 45 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 46 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 47 */ { 0, 1, 2, 4, 6, 8, 9, 11, 13, 14, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }, /* 48 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 49 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 50 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 51 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 52 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 53 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 54 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 55 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 56 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 57 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 58 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 59 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 60 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 61 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 62 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 63 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 64 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 65 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 66 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 67 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 68 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 69 */ { 0, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 70 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 71 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 72 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 73 */ { 0, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 74 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 75 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 76 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 77 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 78 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 79 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 80 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 81 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 82 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 83 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 84 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 85 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 86 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 87 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 88 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 89 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 90 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 91 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 92 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 93 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 94 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 95 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 96 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 97 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 98 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 99 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 100 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 101 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 102 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 103 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 104 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 105 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 106 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 107 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 108 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 109 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 110 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 111 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 112 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 113 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 114 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 115 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 116 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 117 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 118 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 119 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 120 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 121 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 27 }, /* 122 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 123 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 124 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 125 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 126 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 127 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 128 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30 }, /* 129 */ { 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 130 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 131 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 132 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 133 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 134 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 135 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 136 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 137 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 138 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 139 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 140 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 141 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 142 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 143 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 144 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 145 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 146 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 147 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 148 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 149 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 150 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 151 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 152 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 153 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 154 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 155 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 156 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 157 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 158 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 159 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 160 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 161 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 162 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 163 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 164 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 165 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 17, 19, 21, 22, 23, 24, 25, 26, 27, 28 }, /* 166 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 167 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 168 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 169 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 170 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 171 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 172 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 173 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 174 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 175 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 176 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 177 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 178 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 179 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 180 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 181 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 182 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 183 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 184 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 185 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 186 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 187 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 188 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 189 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 190 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 191 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 192 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 193 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 194 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 195 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 196 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 197 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 198 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 199 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 200 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 201 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 202 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 203 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 204 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 205 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 206 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 207 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 208 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 209 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 210 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 211 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 212 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 213 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 214 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 215 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 216 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 217 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 218 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 219 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 220 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 221 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 222 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 223 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 224 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 225 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 226 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 227 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 228 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 229 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 230 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 231 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 232 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 26 }, /* 233 */ { 0, 1, 2, 4, 5, 6, 8, 10, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 28, 29, 30, 31 }, /* 234 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 235 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 236 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 237 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 238 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 239 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 240 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 241 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 242 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 243 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 244 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 245 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 246 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 247 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 248 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 249 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 250 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 251 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 252 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 253 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 254 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 255 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 256 */ { 0, 1, 2, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31 }, /* 257 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 258 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 259 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 260 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 261 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 262 */ { 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32 }, /* 263 */ { 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32 }, /* 264 */ { 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32 }, /* 265 */ { 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32 }, /* 266 */ { 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32 }, /* 267 */ { 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32 }, /* 268 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 15, 16, 18, 19, 20, 21, 22, 23, 25, 26, 27, 30 }, /* 269 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, /* 270 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 15, 16, 18, 19, 20, 21, 22, 23, 25, 26, 27, 30 }, /* 271 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, /* 272 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 31 }, /* 273 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 274 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 16, 17, 18, 20, 21, 22, 23, 24, 25, 27, 28, 29, 32 }, /* 275 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 276 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 15, 16, 18, 19, 20, 21, 22, 23, 25, 26, 27, 30 }, /* 277 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }, /* 278 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 279 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 280 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 281 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 20, 23, 26, 27, 28, 29, 30 }, /* 282 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 283 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 17, 20, 21, 22, 23, 24, 26, 28, 29, 32, 35, 36 }, /* 284 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 285 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26 }, /* 286 */ { 0, 2, 4, 5, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }, /* 287 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 25, 29, 30 }, /* 288 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 289 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 290 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 291 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 292 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 293 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 294 */ { 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 295 */ { 0, 3, 6, 7, 10, 13, 14, 15, 16, 17, 19, 21, 22, 23, 24, 25, 28, 31, 32, 35, 38, 39, 40, 41, 42 }, /* 296 */ { 0, 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 297 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 22, 23, 24, 25, 26 }, /* 298 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 299 */ { 0, 2, 4, 5, 8, 11, 12, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }, /* 300 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 301 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 302 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }, /* 303 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 304 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 305 */ { 0, 3, 6, 7, 10, 13, 14, 18, 22, 23, 26, 29, 30, 33, 36, 37, 40, 43, 44, 47, 50, 51, 54, 57, 58 }, /* 306 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 51, 53, 54 }, /* 307 */ { 0, 1, 2, 3, 5, 7, 8, 11, 14, 15, 17, 19, 20, 21, 22, 23, 25, 27, 28, 31, 34, 35, 39, 43, 44 }, /* 308 */ { 0, 2, 4, 5, 6, 7, 8, 10, 12, 13, 16, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }, /* 309 */ { 0, 1, 2, 3, 5, 7, 8, 11, 14, 15, 17, 19, 20, 21, 22, 23, 25, 27, 28, 31, 34, 35, 39, 43, 44 }, /* 310 */ { 0, 2, 4, 5, 6, 7, 8, 10, 12, 13, 16, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }, /* 311 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 312 */ { 0, 1, 2, 3, 6, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }, /* 313 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 314 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 315 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 316 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 317 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 318 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 319 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 17, 20, 23, 24, 25, 26, 27, 29, 31, 32 }, /* 320 */ { 0, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }, /* 321 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 322 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 323 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 324 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 325 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 326 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 327 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 328 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 329 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 330 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 331 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 332 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 333 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 334 */ { 0, 1, 2, 3, 5, 7, 8, 10, 12, 13, 15, 17, 18, 20, 22, 23, 25, 27, 28, 30, 32, 33, 35, 37, 38 }, /* 335 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 23, 26, 27, 30, 33, 34, 37, 40, 41, 44, 47, 48 }, /* 336 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 39, 43, 44, 48, 52, 53, 57, 61, 62 }, /* 337 */ { 0, 4, 8, 9, 13, 17, 18, 22, 26, 27, 31, 35, 36, 40, 44, 45, 49, 53, 54, 58, 62, 63, 67, 71, 72 }, /* 338 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 339 */ { 0, 2, 4, 5, 8, 11, 12, 15, 18, 19, 22, 25, 26, 29, 32, 33, 36, 39, 40, 43, 46, 47, 50, 53, 54 }, /* 340 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 341 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 342 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 343 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 43, 44, 45, 46, 47, 48 }, /* 344 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 345 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 346 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 347 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 348 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 349 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 350 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 351 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 16, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 }, /* 352 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 18, 19, 21, 23, 24, 27, 30, 31, 32, 33, 34 }, /* 353 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 354 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 355 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 356 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 357 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 358 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 359 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 360 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 361 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 362 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 363 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 364 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 365 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 366 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 367 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 368 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 369 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 370 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 371 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 372 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 373 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 374 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 375 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 376 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 377 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 378 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 379 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 380 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 381 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 382 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 383 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 384 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 385 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 386 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 387 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 388 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 389 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 390 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 391 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 392 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 393 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 394 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 395 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 396 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 397 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 398 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 399 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 400 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 401 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 402 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 403 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 404 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 405 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 406 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 407 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 408 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 409 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 410 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 411 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 412 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 413 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 414 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 415 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 416 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 417 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 418 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 419 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 420 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 421 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 422 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 423 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 424 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 425 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 426 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 46, 50, 51, 55, 59, 60 }, /* 427 */ { 0, 4, 8, 9, 13, 17, 18, 22, 26, 27, 31, 35, 36, 40, 44, 45, 49, 53, 54, 58, 62, 63, 67, 71, 72 }, /* 428 */ { 0, 4, 8, 9, 13, 17, 18, 22, 26, 27, 31, 35, 36, 40, 44, 45, 52, 59, 60, 66, 72, 73, 74, 75, 76 }, /* 429 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 430 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 431 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 432 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 433 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 }, /* 434 */ { 0, 3, 6, 7, 9, 11, 12, 14, 16, 17, 19, 21, 22, 24, 26, 27, 29, 31, 32, 34, 36, 37, 39, 41, 42 }, /* 435 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 436 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 437 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 22, 23, 25, 27, 28 }, /* 438 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 439 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 25, 30, 31, 35, 39, 40, 42, 44, 45, 46, 47, 48 }, /* 440 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 441 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 442 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 443 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 444 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 445 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 446 */ { 0, 1, 2, 3, 5, 7, 8, 10, 12, 13, 15, 17, 18, 20, 22, 23, 25, 27, 28, 30, 32, 33, 35, 37, 38 }, /* 447 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 448 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 449 */ { 0, 2, 4, 5, 8, 11, 12, 15, 18, 19, 22, 25, 26, 28, 30, 31, 34, 37, 38, 40, 42, 43, 46, 49, 50 }, /* 450 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 451 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 452 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 453 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 454 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 455 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 456 */ { 0, 4, 8, 9, 13, 17, 18, 22, 26, 27, 30, 33, 34, 38, 42, 43, 46, 49, 50, 53, 56, 57, 62, 67, 68 }, /* 457 */ { 0, 4, 8, 9, 12, 15, 16, 19, 22, 23, 26, 29, 30, 34, 38, 39, 43, 47, 48, 51, 54, 55, 58, 61, 62 }, /* 458 */ { 0, 2, 4, 5, 8, 11, 12, 16, 20, 21, 25, 29, 30, 32, 34, 35, 40, 45, 46, 52, 58, 59, 64, 69, 70 }, /* 459 */ { 0, 3, 6, 7, 12, 17, 18, 23, 28, 29, 33, 37, 38, 41, 44, 45, 48, 51, 52, 55, 58, 59, 63, 67, 68 }, /* 460 */ { 0, 5, 10, 11, 15, 19, 20, 23, 26, 27, 30, 33, 34, 37, 40, 41, 43, 45, 46, 48, 50, 51, 53, 55, 56 }, /* 461 */ { 0, 2, 4, 5, 8, 11, 12, 15, 18, 19, 24, 29, 30, 33, 36, 37, 41, 45, 46, 51, 56, 57, 60, 63, 64 }, /* 462 */ { 0, 2, 4, 5, 7, 9, 10, 15, 20, 21, 25, 29, 30, 35, 40, 41, 44, 47, 48, 53, 58, 59, 61, 63, 64 }, /* 463 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 39, 43, 44, 47, 50, 51, 53, 55, 56 }, /* 464 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 25, 29, 30, 33, 36, 37, 40, 43, 44, 47, 50, 51, 56, 61, 62 }, /* 465 */ { 0, 4, 8, 9, 11, 13, 14, 19, 24, 25, 27, 29, 30, 34, 38, 39, 43, 47, 48, 51, 54, 55, 58, 61, 62 }, /* 466 */ { 0, 3, 6, 7, 11, 15, 16, 18, 20, 21, 24, 27, 28, 32, 36, 37, 39, 41, 42, 47, 52, 53, 56, 59, 60 }, /* 467 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 468 */ { 0, 2, 4, 5, 7, 9, 10, 13, 16, 17, 20, 23, 24, 27, 30, 31, 34, 37, 38, 41, 44, 45, 48, 51, 52 }, /* 469 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 470 */ { 0, 3, 6, 7, 10, 13, 14, 16, 18, 19, 21, 23, 24, 27, 30, 31, 33, 35, 36, 38, 40, 41, 43, 45, 46 }, /* 471 */ { 0, 3, 6, 7, 10, 13, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 31, 33, 34, 36, 38, 39, 43, 47, 48 }, /* 472 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 473 */ { 0, 3, 6, 7, 11, 15, 16, 18, 20, 21, 23, 25, 26, 28, 30, 31, 33, 35, 36, 38, 40, 41, 43, 45, 46 }, /* 474 */ { 0, 2, 4, 5, 8, 11, 12, 15, 18, 19, 22, 25, 26, 29, 32, 33, 35, 37, 38, 40, 42, 43, 45, 47, 48 }, /* 475 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 38, 41, 42 }, /* 476 */ { 0, 3, 6, 7, 9, 11, 12, 15, 18, 19, 22, 25, 26, 29, 32, 33, 35, 37, 38, 41, 44, 45, 48, 51, 52 }, /* 477 */ { 0, 4, 8, 9, 11, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 47, 52, 53, 59, 65, 66 }, /* 478 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 479 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 480 */ { 0, 2, 4, 5, 7, 9, 10, 14, 18, 19, 21, 23, 24, 26, 28, 29, 31, 33, 34, 38, 42, 43, 46, 49, 50 }, /* 481 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 482 */ { 0, 2, 4, 5, 7, 9, 10, 13, 16, 17, 19, 21, 22, 24, 26, 27, 30, 33, 34, 37, 40, 41, 43, 45, 46 }, /* 483 */ { 0, 4, 8, 9, 12, 15, 16, 18, 20, 21, 23, 25, 26, 28, 30, 31, 33, 35, 36, 39, 42, 43, 46, 49, 50 }, /* 484 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 485 */ { 0, 2, 4, 5, 8, 11, 12, 15, 18, 19, 22, 25, 26, 29, 32, 33, 36, 39, 40, 43, 46, 47, 50, 53, 54 }, /* 486 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 487 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 488 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 489 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 490 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 491 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 492 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 493 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 494 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 495 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 496 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 497 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 498 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 499 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 500 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 501 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 502 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 503 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 504 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 505 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 506 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 507 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 508 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 509 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 510 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 511 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 512 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 513 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 514 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 515 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 516 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 517 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 518 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 519 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 520 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 521 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 522 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 523 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 524 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 525 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 526 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 527 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 528 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 529 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 530 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 531 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 532 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 533 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 534 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 535 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 536 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 537 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 538 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 539 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 540 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 541 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 542 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 543 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 544 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 545 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 546 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 547 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 548 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 549 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 550 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 551 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 552 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 553 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 554 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 555 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 556 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 557 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 558 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 559 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 560 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 561 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 562 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 563 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 564 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 565 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 566 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 567 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 568 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 569 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 570 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 571 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 572 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 573 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 574 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 575 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 576 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 577 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 578 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 579 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 580 */ { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 21, 24, 27, 30, 33, 36, 38, 40, 42, 44, 46, 48, 49, 50, 51 }, /* 581 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39 }, /* 582 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 583 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 584 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 585 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 586 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 587 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 588 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26 }, /* 589 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 590 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 591 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 592 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 593 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 594 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 595 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 596 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 597 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 598 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 599 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 600 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 601 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 602 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 603 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 604 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 605 */ { 0, 1, 2, 3, 4, 5, 6, 8, 10, 11, 13, 15, 16, 18, 20, 21, 23, 25, 26, 28, 30, 31, 33, 35, 36 }, /* 606 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 607 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }, /* 608 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 609 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 610 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 611 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 612 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 613 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 614 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 615 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 616 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 617 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 618 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 619 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 }, /* 620 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 17, 19, 21, 22, 24, 26, 27, 29, 31, 32 }, /* 621 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 622 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 623 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 624 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 625 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 626 */ { 0, 1, 2, 3, 5, 7, 8, 10, 12, 13, 15, 17, 18, 20, 22, 23, 25, 27, 28, 30, 32, 33, 35, 37, 38 }, /* 627 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 628 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 629 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 630 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 631 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 632 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 633 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 634 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 635 */ { 0, 2, 4, 5, 6, 7, 8, 10, 12, 13, 15, 17, 18, 20, 22, 23, 25, 27, 28, 30, 32, 33, 35, 37, 38 }, /* 636 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 637 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 638 */ { 0, 2, 4, 5, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 23, 24, 26, 28, 29, 31, 33, 34 }, /* 639 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 640 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 641 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 642 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 643 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 644 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 645 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 646 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30, 32, 34, 35, 37, 39, 40 }, /* 647 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }, /* 648 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 649 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 650 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 651 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 652 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 653 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 654 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 655 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 656 */ { 0, 1, 2, 3, 4, 5, 6, 9, 12, 13, 16, 19, 20, 23, 26, 27, 30, 33, 34, 37, 40, 41, 44, 47, 48 }, /* 657 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 658 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 659 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 660 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 661 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 662 */ { 0, 3, 6, 7, 10, 13, 14, 17, 20, 21, 24, 27, 28, 31, 34, 35, 38, 41, 42, 45, 48, 49, 52, 55, 56 }, /* 663 */ { 0, 3, 6, 7, 10, 13, 14, 18, 22, 23, 27, 31, 32, 36, 40, 41, 45, 49, 50, 54, 58, 59, 63, 67, 68 }, /* 664 */ { 0, 4, 8, 9, 12, 15, 16, 34, 52, 53, 61, 69, 70, 74, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88 }, /* 665 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 666 */ { 0, 1, 2, 3, 6, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 }, /* 667 */ { 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }, /* 668 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 669 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 670 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 671 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 672 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 673 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 674 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 675 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 676 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 677 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 678 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 679 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 680 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 681 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 682 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 683 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 684 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 685 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 686 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 687 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 688 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 689 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 690 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 691 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 20, 22, 24, 25, 27, 29, 30 }, /* 692 */ { 0, 2, 4, 5, 7, 9, 10, 12, 14, 15, 17, 19, 20, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 }, /* 693 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 694 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 695 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 696 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 697 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 698 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 699 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 700 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 701 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 702 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 703 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 704 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 705 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 706 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 707 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 708 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 709 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 710 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 711 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, /* 712 */ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 } }; unsigned short unac_data0[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data1[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0x0062, 0x0062, 0xFFFF, 0x0063, 0x0063, 0xFFFF, 0x0064, 0x0064, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x0066, 0x0066, 0xFFFF, 0x0067, 0x0067 }; unsigned short unac_data2[] = { 0xFFFF, 0x0068, 0x0068, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0x006A, 0x006A, 0xFFFF, 0x006B, 0x006B, 0xFFFF, 0x006C, 0x006C, 0xFFFF, 0x006D, 0x006D, 0xFFFF, 0x006E, 0x006E, 0xFFFF, 0x006F, 0x006F }; unsigned short unac_data3[] = { 0xFFFF, 0x0070, 0x0070, 0xFFFF, 0x0071, 0x0071, 0xFFFF, 0x0072, 0x0072, 0xFFFF, 0x0073, 0x0073, 0xFFFF, 0x0074, 0x0074, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0076, 0x0076, 0xFFFF, 0x0077, 0x0077 }; unsigned short unac_data4[] = { 0xFFFF, 0x0078, 0x0078, 0xFFFF, 0x0079, 0x0079, 0xFFFF, 0x007A, 0x007A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data5[] = { 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data6[] = { 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data7[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0032, 0x0032, 0xFFFF, 0x0033, 0x0033, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x03BC, 0x03BC, 0x03BC, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data8[] = { 0x0020, 0x0020, 0xFFFF, 0x0031, 0x0031, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0031, 0x2044, 0x0034, 0x0031, 0x2044, 0x0034, 0xFFFF, 0x0031, 0x2044, 0x0032, 0x0031, 0x2044, 0x0032, 0xFFFF, 0x0033, 0x2044, 0x0034, 0x0033, 0x2044, 0x0034, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data9[] = { 0x0041, 0x0061, 0x00E0, 0x0041, 0x0061, 0x00E1, 0x0041, 0x0061, 0x00E2, 0x0041, 0x0061, 0x00E3, 0x0041, 0x0061, 0x00E4, 0x0041, 0x0061, 0x00E5, 0xFFFF, 0x00E6, 0x00E6, 0x0043, 0x0063, 0x00E7 }; unsigned short unac_data10[] = { 0x0045, 0x0065, 0x00E8, 0x0045, 0x0065, 0x00E9, 0x0045, 0x0065, 0x00EA, 0x0045, 0x0065, 0x00EB, 0x0049, 0x0069, 0x00EC, 0x0049, 0x0069, 0x00ED, 0x0049, 0x0069, 0x00EE, 0x0049, 0x0069, 0x00EF }; unsigned short unac_data11[] = { 0xFFFF, 0x00F0, 0x00F0, 0x004E, 0x006E, 0x00F1, 0x004F, 0x006F, 0x00F2, 0x004F, 0x006F, 0x00F3, 0x004F, 0x006F, 0x00F4, 0x004F, 0x006F, 0x00F5, 0x004F, 0x006F, 0x00F6, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data12[] = { 0xFFFF, 0x00F8, 0x00F8, 0x0055, 0x0075, 0x00F9, 0x0055, 0x0075, 0x00FA, 0x0055, 0x0075, 0x00FB, 0x0055, 0x0075, 0x00FC, 0x0059, 0x0079, 0x00FD, 0xFFFF, 0x00FE, 0x00FE, 0xFFFF, 0x0073, 0x0073, 0x0073, 0x0073 }; unsigned short unac_data13[] = { 0x0061, 0x0061, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0063, 0x0063, 0xFFFF }; unsigned short unac_data14[] = { 0x0065, 0x0065, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0x0069, 0x0069, 0xFFFF }; unsigned short unac_data15[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x006E, 0x006E, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data16[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0079, 0x0079, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0079, 0x0079, 0xFFFF }; unsigned short unac_data17[] = { 0x0041, 0x0061, 0x0101, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x0103, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x0105, 0x0061, 0x0061, 0xFFFF, 0x0043, 0x0063, 0x0107, 0x0063, 0x0063, 0xFFFF }; unsigned short unac_data18[] = { 0x0043, 0x0063, 0x0109, 0x0063, 0x0063, 0xFFFF, 0x0043, 0x0063, 0x010B, 0x0063, 0x0063, 0xFFFF, 0x0043, 0x0063, 0x010D, 0x0063, 0x0063, 0xFFFF, 0x0044, 0x0064, 0x010F, 0x0064, 0x0064, 0xFFFF }; unsigned short unac_data19[] = { 0xFFFF, 0x0111, 0x0111, 0xFFFF, 0xFFFF, 0xFFFF, 0x0045, 0x0065, 0x0113, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x0115, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x0117, 0x0065, 0x0065, 0xFFFF }; unsigned short unac_data20[] = { 0x0045, 0x0065, 0x0119, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x011B, 0x0065, 0x0065, 0xFFFF, 0x0047, 0x0067, 0x011D, 0x0067, 0x0067, 0xFFFF, 0x0047, 0x0067, 0x011F, 0x0067, 0x0067, 0xFFFF }; unsigned short unac_data21[] = { 0x0047, 0x0067, 0x0121, 0x0067, 0x0067, 0xFFFF, 0x0047, 0x0067, 0x0123, 0x0067, 0x0067, 0xFFFF, 0x0048, 0x0068, 0x0125, 0x0068, 0x0068, 0xFFFF, 0xFFFF, 0x0127, 0x0127, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data22[] = { 0x0049, 0x0069, 0x0129, 0x0069, 0x0069, 0xFFFF, 0x0049, 0x0069, 0x012B, 0x0069, 0x0069, 0xFFFF, 0x0049, 0x0069, 0x012D, 0x0069, 0x0069, 0xFFFF, 0x0049, 0x0069, 0x012F, 0x0069, 0x0069, 0xFFFF }; unsigned short unac_data23[] = { 0x0049, 0x0069, 0x0069, 0x0307, 0xFFFF, 0xFFFF, 0xFFFF, 0x0049, 0x004A, 0x0069, 0x006A, 0x0133, 0x0069, 0x006A, 0x0069, 0x006A, 0xFFFF, 0x004A, 0x006A, 0x0135, 0x006A, 0x006A, 0xFFFF, 0x004B, 0x006B, 0x0137, 0x006B, 0x006B, 0xFFFF }; unsigned short unac_data24[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x004C, 0x006C, 0x013A, 0x006C, 0x006C, 0xFFFF, 0x004C, 0x006C, 0x013C, 0x006C, 0x006C, 0xFFFF, 0x004C, 0x006C, 0x013E, 0x006C, 0x006C, 0xFFFF, 0x004C, 0x00B7, 0x006C, 0x00B7, 0x0140 }; unsigned short unac_data25[] = { 0x006C, 0x00B7, 0x006C, 0x00B7, 0xFFFF, 0xFFFF, 0x0142, 0x0142, 0xFFFF, 0xFFFF, 0xFFFF, 0x004E, 0x006E, 0x0144, 0x006E, 0x006E, 0xFFFF, 0x004E, 0x006E, 0x0146, 0x006E, 0x006E, 0xFFFF, 0x004E, 0x006E, 0x0148 }; unsigned short unac_data26[] = { 0x006E, 0x006E, 0xFFFF, 0x02BC, 0x006E, 0x02BC, 0x006E, 0x02BC, 0x006E, 0xFFFF, 0x014B, 0x014B, 0xFFFF, 0xFFFF, 0xFFFF, 0x004F, 0x006F, 0x014D, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x014F, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data27[] = { 0x004F, 0x006F, 0x0151, 0x006F, 0x006F, 0xFFFF, 0xFFFF, 0x0153, 0x0153, 0xFFFF, 0xFFFF, 0xFFFF, 0x0052, 0x0072, 0x0155, 0x0072, 0x0072, 0xFFFF, 0x0052, 0x0072, 0x0157, 0x0072, 0x0072, 0xFFFF }; unsigned short unac_data28[] = { 0x0052, 0x0072, 0x0159, 0x0072, 0x0072, 0xFFFF, 0x0053, 0x0073, 0x015B, 0x0073, 0x0073, 0xFFFF, 0x0053, 0x0073, 0x015D, 0x0073, 0x0073, 0xFFFF, 0x0053, 0x0073, 0x015F, 0x0073, 0x0073, 0xFFFF }; unsigned short unac_data29[] = { 0x0053, 0x0073, 0x0161, 0x0073, 0x0073, 0xFFFF, 0x0054, 0x0074, 0x0163, 0x0074, 0x0074, 0xFFFF, 0x0054, 0x0074, 0x0165, 0x0074, 0x0074, 0xFFFF, 0xFFFF, 0x0167, 0x0167, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data30[] = { 0x0055, 0x0075, 0x0169, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x016B, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x016D, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x016F, 0x0075, 0x0075, 0xFFFF }; unsigned short unac_data31[] = { 0x0055, 0x0075, 0x0171, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x0173, 0x0075, 0x0075, 0xFFFF, 0x0057, 0x0077, 0x0175, 0x0077, 0x0077, 0xFFFF, 0x0059, 0x0079, 0x0177, 0x0079, 0x0079, 0xFFFF }; unsigned short unac_data32[] = { 0x0059, 0x0079, 0x00FF, 0x005A, 0x007A, 0x017A, 0x007A, 0x007A, 0xFFFF, 0x005A, 0x007A, 0x017C, 0x007A, 0x007A, 0xFFFF, 0x005A, 0x007A, 0x017E, 0x007A, 0x007A, 0xFFFF, 0x0073, 0x0073, 0x0073 }; unsigned short unac_data33[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0253, 0x0253, 0xFFFF, 0x0183, 0x0183, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0185, 0x0185, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0254, 0x0254, 0xFFFF, 0x0188, 0x0188 }; unsigned short unac_data34[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0256, 0x0256, 0xFFFF, 0x0257, 0x0257, 0xFFFF, 0x018C, 0x018C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x01DD, 0x01DD, 0xFFFF, 0x0259, 0x0259 }; unsigned short unac_data35[] = { 0xFFFF, 0x025B, 0x025B, 0xFFFF, 0x0192, 0x0192, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0260, 0x0260, 0xFFFF, 0x0263, 0x0263, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0269, 0x0269, 0xFFFF, 0x0268, 0x0268 }; unsigned short unac_data36[] = { 0xFFFF, 0x0199, 0x0199, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x026F, 0x026F, 0xFFFF, 0x0272, 0x0272, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0275, 0x0275 }; unsigned short unac_data37[] = { 0x004F, 0x006F, 0x01A1, 0x006F, 0x006F, 0xFFFF, 0xFFFF, 0x01A3, 0x01A3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x01A5, 0x01A5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0280, 0x0280, 0xFFFF, 0x01A8, 0x01A8 }; unsigned short unac_data38[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0283, 0x0283, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x01AD, 0x01AD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0288, 0x0288, 0x0055, 0x0075, 0x01B0 }; unsigned short unac_data39[] = { 0x0075, 0x0075, 0xFFFF, 0xFFFF, 0x028A, 0x028A, 0xFFFF, 0x028B, 0x028B, 0xFFFF, 0x01B4, 0x01B4, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x01B6, 0x01B6, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0292, 0x0292 }; unsigned short unac_data40[] = { 0xFFFF, 0x01B9, 0x01B9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x01BD, 0x01BD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data41[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0044, 0x005A, 0x0064, 0x007A, 0x01C6, 0x0044, 0x007A, 0x0064, 0x007A, 0x01C6, 0x0064, 0x007A, 0x0064, 0x007A, 0xFFFF, 0x004C, 0x004A, 0x006C, 0x006A, 0x01C9 }; unsigned short unac_data42[] = { 0x004C, 0x006A, 0x006C, 0x006A, 0x01C9, 0x006C, 0x006A, 0x006C, 0x006A, 0xFFFF, 0x004E, 0x004A, 0x006E, 0x006A, 0x01CC, 0x004E, 0x006A, 0x006E, 0x006A, 0x01CC, 0x006E, 0x006A, 0x006E, 0x006A, 0xFFFF, 0x0041, 0x0061, 0x01CE, 0x0061, 0x0061, 0xFFFF, 0x0049, 0x0069, 0x01D0 }; unsigned short unac_data43[] = { 0x0069, 0x0069, 0xFFFF, 0x004F, 0x006F, 0x01D2, 0x006F, 0x006F, 0xFFFF, 0x0055, 0x0075, 0x01D4, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x01D6, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x01D8 }; unsigned short unac_data44[] = { 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x01DA, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x01DC, 0x0075, 0x0075, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0041, 0x0061, 0x01DF, 0x0061, 0x0061, 0xFFFF }; unsigned short unac_data45[] = { 0x0041, 0x0061, 0x01E1, 0x0061, 0x0061, 0xFFFF, 0x00C6, 0x00E6, 0x01E3, 0x00E6, 0x00E6, 0xFFFF, 0xFFFF, 0x01E5, 0x01E5, 0xFFFF, 0xFFFF, 0xFFFF, 0x0047, 0x0067, 0x01E7, 0x0067, 0x0067, 0xFFFF }; unsigned short unac_data46[] = { 0x004B, 0x006B, 0x01E9, 0x006B, 0x006B, 0xFFFF, 0x004F, 0x006F, 0x01EB, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x01ED, 0x006F, 0x006F, 0xFFFF, 0x01B7, 0x0292, 0x01EF, 0x0292, 0x0292, 0xFFFF }; unsigned short unac_data47[] = { 0x006A, 0x006A, 0x006A, 0x030C, 0x0044, 0x005A, 0x0064, 0x007A, 0x01F3, 0x0044, 0x007A, 0x0064, 0x007A, 0x01F3, 0x0064, 0x007A, 0x0064, 0x007A, 0xFFFF, 0x0047, 0x0067, 0x01F5, 0x0067, 0x0067, 0xFFFF, 0xFFFF, 0x0195, 0x0195, 0xFFFF, 0x01BF, 0x01BF }; unsigned short unac_data48[] = { 0x004E, 0x006E, 0x01F9, 0x006E, 0x006E, 0xFFFF, 0x0041, 0x0061, 0x01FB, 0x0061, 0x0061, 0xFFFF, 0x00C6, 0x00E6, 0x01FD, 0x00E6, 0x00E6, 0xFFFF, 0x00D8, 0x00F8, 0x01FF, 0x00F8, 0x00F8, 0xFFFF }; unsigned short unac_data49[] = { 0x0041, 0x0061, 0x0201, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x0203, 0x0061, 0x0061, 0xFFFF, 0x0045, 0x0065, 0x0205, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x0207, 0x0065, 0x0065, 0xFFFF }; unsigned short unac_data50[] = { 0x0049, 0x0069, 0x0209, 0x0069, 0x0069, 0xFFFF, 0x0049, 0x0069, 0x020B, 0x0069, 0x0069, 0xFFFF, 0x004F, 0x006F, 0x020D, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x020F, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data51[] = { 0x0052, 0x0072, 0x0211, 0x0072, 0x0072, 0xFFFF, 0x0052, 0x0072, 0x0213, 0x0072, 0x0072, 0xFFFF, 0x0055, 0x0075, 0x0215, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x0217, 0x0075, 0x0075, 0xFFFF }; unsigned short unac_data52[] = { 0x0053, 0x0073, 0x0219, 0x0073, 0x0073, 0xFFFF, 0x0054, 0x0074, 0x021B, 0x0074, 0x0074, 0xFFFF, 0xFFFF, 0x021D, 0x021D, 0xFFFF, 0xFFFF, 0xFFFF, 0x0048, 0x0068, 0x021F, 0x0068, 0x0068, 0xFFFF }; unsigned short unac_data53[] = { 0xFFFF, 0x019E, 0x019E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0223, 0x0223, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0225, 0x0225, 0xFFFF, 0xFFFF, 0xFFFF, 0x0041, 0x0061, 0x0227, 0x0061, 0x0061, 0xFFFF }; unsigned short unac_data54[] = { 0x0045, 0x0065, 0x0229, 0x0065, 0x0065, 0xFFFF, 0x004F, 0x006F, 0x022B, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x022D, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x022F, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data55[] = { 0x004F, 0x006F, 0x0231, 0x006F, 0x006F, 0xFFFF, 0x0059, 0x0079, 0x0233, 0x0079, 0x0079, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data56[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C65, 0x2C65, 0xFFFF, 0x023C, 0x023C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x019A, 0x019A, 0xFFFF, 0x2C66, 0x2C66, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data57[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0242, 0x0242, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0180, 0x0180, 0xFFFF, 0x0289, 0x0289, 0xFFFF, 0x028C, 0x028C, 0xFFFF, 0x0247, 0x0247, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data58[] = { 0xFFFF, 0x0249, 0x0249, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x024B, 0x024B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x024D, 0x024D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x024F, 0x024F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data59[] = { 0x0068, 0x0068, 0xFFFF, 0x0266, 0x0266, 0xFFFF, 0x006A, 0x006A, 0xFFFF, 0x0072, 0x0072, 0xFFFF, 0x0279, 0x0279, 0xFFFF, 0x027B, 0x027B, 0xFFFF, 0x0281, 0x0281, 0xFFFF, 0x0077, 0x0077, 0xFFFF }; unsigned short unac_data60[] = { 0x0079, 0x0079, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data61[] = { 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data62[] = { 0x0263, 0x0263, 0xFFFF, 0x006C, 0x006C, 0xFFFF, 0x0073, 0x0073, 0xFFFF, 0x0078, 0x0078, 0xFFFF, 0x0295, 0x0295, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data63[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data64[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0x03B9, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data65[] = { 0xFFFF, 0x0371, 0x0371, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0373, 0x0373, 0xFFFF, 0xFFFF, 0xFFFF, 0x02B9, 0x02B9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0377, 0x0377, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data66[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x003B, 0x003B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data67[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0391, 0x03B1, 0x03AC, 0x00B7, 0x00B7, 0xFFFF }; unsigned short unac_data68[] = { 0x0395, 0x03B5, 0x03AD, 0x0397, 0x03B7, 0x03AE, 0x0399, 0x03B9, 0x03AF, 0xFFFF, 0xFFFF, 0xFFFF, 0x039F, 0x03BF, 0x03CC, 0xFFFF, 0xFFFF, 0xFFFF, 0x03A5, 0x03C5, 0x03CD, 0x03A9, 0x03C9, 0x03CE }; unsigned short unac_data69[] = { 0x03B9, 0x03B9, 0x03B9, 0x0308, 0x0301, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B2, 0x03B2, 0xFFFF, 0x03B3, 0x03B3, 0xFFFF, 0x03B4, 0x03B4, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B6, 0x03B6, 0xFFFF, 0x03B7, 0x03B7 }; unsigned short unac_data70[] = { 0xFFFF, 0x03B8, 0x03B8, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03BA, 0x03BA, 0xFFFF, 0x03BB, 0x03BB, 0xFFFF, 0x03BC, 0x03BC, 0xFFFF, 0x03BD, 0x03BD, 0xFFFF, 0x03BE, 0x03BE, 0xFFFF, 0x03BF, 0x03BF }; unsigned short unac_data71[] = { 0xFFFF, 0x03C0, 0x03C0, 0xFFFF, 0x03C1, 0x03C1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03C3, 0x03C3, 0xFFFF, 0x03C4, 0x03C4, 0xFFFF, 0x03C5, 0x03C5, 0xFFFF, 0x03C6, 0x03C6, 0xFFFF, 0x03C7, 0x03C7 }; unsigned short unac_data72[] = { 0xFFFF, 0x03C8, 0x03C8, 0xFFFF, 0x03C9, 0x03C9, 0x0399, 0x03B9, 0x03CA, 0x03A5, 0x03C5, 0x03CB, 0x03B1, 0x03B1, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF }; unsigned short unac_data73[] = { 0x03C5, 0x03C5, 0x03C5, 0x0308, 0x0301, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data74[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03C3, 0x03C3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data75[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03C5, 0x03C5, 0xFFFF, 0x03BF, 0x03BF, 0xFFFF, 0x03C5, 0x03C5, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0xFFFF, 0x03D7, 0x03D7 }; unsigned short unac_data76[] = { 0x03B2, 0x03B2, 0x03B2, 0x03B8, 0x03B8, 0x03B8, 0x03A5, 0x03C5, 0xFFFF, 0x03A5, 0x03C5, 0xFFFF, 0x03A5, 0x03C5, 0xFFFF, 0x03C6, 0x03C6, 0x03C6, 0x03C0, 0x03C0, 0x03C0, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data77[] = { 0xFFFF, 0x03D9, 0x03D9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03DB, 0x03DB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03DD, 0x03DD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03DF, 0x03DF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data78[] = { 0xFFFF, 0x03E1, 0x03E1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03E3, 0x03E3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03E5, 0x03E5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03E7, 0x03E7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data79[] = { 0xFFFF, 0x03E9, 0x03E9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03EB, 0x03EB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03ED, 0x03ED, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03EF, 0x03EF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data80[] = { 0x03BA, 0x03BA, 0x03BA, 0x03C1, 0x03C1, 0x03C1, 0x03C2, 0x03C3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0398, 0x03B8, 0x03B8, 0x03B5, 0x03B5, 0x03B5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03F8, 0x03F8 }; unsigned short unac_data81[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x03A3, 0x03C3, 0x03F2, 0xFFFF, 0x03FB, 0x03FB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x037B, 0x037B, 0xFFFF, 0x037C, 0x037C, 0xFFFF, 0x037D, 0x037D }; unsigned short unac_data82[] = { 0x0415, 0x0435, 0x0450, 0x0415, 0x0435, 0x0451, 0xFFFF, 0x0452, 0x0452, 0x0413, 0x0433, 0x0453, 0xFFFF, 0x0454, 0x0454, 0xFFFF, 0x0455, 0x0455, 0xFFFF, 0x0456, 0x0456, 0x0406, 0x0456, 0x0457 }; unsigned short unac_data83[] = { 0xFFFF, 0x0458, 0x0458, 0xFFFF, 0x0459, 0x0459, 0xFFFF, 0x045A, 0x045A, 0xFFFF, 0x045B, 0x045B, 0x041A, 0x043A, 0x045C, 0x0418, 0x0438, 0x045D, 0x0423, 0x0443, 0x045E, 0xFFFF, 0x045F, 0x045F }; unsigned short unac_data84[] = { 0xFFFF, 0x0430, 0x0430, 0xFFFF, 0x0431, 0x0431, 0xFFFF, 0x0432, 0x0432, 0xFFFF, 0x0433, 0x0433, 0xFFFF, 0x0434, 0x0434, 0xFFFF, 0x0435, 0x0435, 0xFFFF, 0x0436, 0x0436, 0xFFFF, 0x0437, 0x0437 }; unsigned short unac_data85[] = { 0xFFFF, 0x0438, 0x0438, 0x0418, 0x0438, 0x0439, 0xFFFF, 0x043A, 0x043A, 0xFFFF, 0x043B, 0x043B, 0xFFFF, 0x043C, 0x043C, 0xFFFF, 0x043D, 0x043D, 0xFFFF, 0x043E, 0x043E, 0xFFFF, 0x043F, 0x043F }; unsigned short unac_data86[] = { 0xFFFF, 0x0440, 0x0440, 0xFFFF, 0x0441, 0x0441, 0xFFFF, 0x0442, 0x0442, 0xFFFF, 0x0443, 0x0443, 0xFFFF, 0x0444, 0x0444, 0xFFFF, 0x0445, 0x0445, 0xFFFF, 0x0446, 0x0446, 0xFFFF, 0x0447, 0x0447 }; unsigned short unac_data87[] = { 0xFFFF, 0x0448, 0x0448, 0xFFFF, 0x0449, 0x0449, 0xFFFF, 0x044A, 0x044A, 0xFFFF, 0x044B, 0x044B, 0xFFFF, 0x044C, 0x044C, 0xFFFF, 0x044D, 0x044D, 0xFFFF, 0x044E, 0x044E, 0xFFFF, 0x044F, 0x044F }; unsigned short unac_data88[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0438, 0x0438, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data89[] = { 0x0435, 0x0435, 0xFFFF, 0x0435, 0x0435, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0433, 0x0433, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0456, 0x0456, 0xFFFF }; unsigned short unac_data90[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x043A, 0x043A, 0xFFFF, 0x0438, 0x0438, 0xFFFF, 0x0443, 0x0443, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data91[] = { 0xFFFF, 0x0461, 0x0461, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0463, 0x0463, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0465, 0x0465, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0467, 0x0467, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data92[] = { 0xFFFF, 0x0469, 0x0469, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x046B, 0x046B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x046D, 0x046D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x046F, 0x046F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data93[] = { 0xFFFF, 0x0471, 0x0471, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0473, 0x0473, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0475, 0x0475, 0xFFFF, 0xFFFF, 0xFFFF, 0x0474, 0x0475, 0x0477, 0x0475, 0x0475, 0xFFFF }; unsigned short unac_data94[] = { 0xFFFF, 0x0479, 0x0479, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x047B, 0x047B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x047D, 0x047D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x047F, 0x047F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data95[] = { 0xFFFF, 0x0481, 0x0481, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data96[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0x048B, 0x048B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x048D, 0x048D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x048F, 0x048F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data97[] = { 0xFFFF, 0x0491, 0x0491, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0493, 0x0493, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0495, 0x0495, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0497, 0x0497, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data98[] = { 0xFFFF, 0x0499, 0x0499, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x049B, 0x049B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x049D, 0x049D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x049F, 0x049F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data99[] = { 0xFFFF, 0x04A1, 0x04A1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04A3, 0x04A3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04A5, 0x04A5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04A7, 0x04A7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data100[] = { 0xFFFF, 0x04A9, 0x04A9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04AB, 0x04AB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04AD, 0x04AD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04AF, 0x04AF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data101[] = { 0xFFFF, 0x04B1, 0x04B1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04B3, 0x04B3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04B5, 0x04B5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04B7, 0x04B7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data102[] = { 0xFFFF, 0x04B9, 0x04B9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04BB, 0x04BB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04BD, 0x04BD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04BF, 0x04BF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data103[] = { 0xFFFF, 0x04CF, 0x04CF, 0x0416, 0x0436, 0x04C2, 0x0436, 0x0436, 0xFFFF, 0xFFFF, 0x04C4, 0x04C4, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04C6, 0x04C6, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04C8, 0x04C8 }; unsigned short unac_data104[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04CA, 0x04CA, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04CC, 0x04CC, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04CE, 0x04CE, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data105[] = { 0x0410, 0x0430, 0x04D1, 0x0430, 0x0430, 0xFFFF, 0x0410, 0x0430, 0x04D3, 0x0430, 0x0430, 0xFFFF, 0xFFFF, 0x04D5, 0x04D5, 0xFFFF, 0xFFFF, 0xFFFF, 0x0415, 0x0435, 0x04D7, 0x0435, 0x0435, 0xFFFF }; unsigned short unac_data106[] = { 0xFFFF, 0x04D9, 0x04D9, 0xFFFF, 0xFFFF, 0xFFFF, 0x04D8, 0x04D9, 0x04DB, 0x04D9, 0x04D9, 0xFFFF, 0x0416, 0x0436, 0x04DD, 0x0436, 0x0436, 0xFFFF, 0x0417, 0x0437, 0x04DF, 0x0437, 0x0437, 0xFFFF }; unsigned short unac_data107[] = { 0xFFFF, 0x04E1, 0x04E1, 0xFFFF, 0xFFFF, 0xFFFF, 0x0418, 0x0438, 0x04E3, 0x0438, 0x0438, 0xFFFF, 0x0418, 0x0438, 0x04E5, 0x0438, 0x0438, 0xFFFF, 0x041E, 0x043E, 0x04E7, 0x043E, 0x043E, 0xFFFF }; unsigned short unac_data108[] = { 0xFFFF, 0x04E9, 0x04E9, 0xFFFF, 0xFFFF, 0xFFFF, 0x04E8, 0x04E9, 0x04EB, 0x04E9, 0x04E9, 0xFFFF, 0x042D, 0x044D, 0x04ED, 0x044D, 0x044D, 0xFFFF, 0x0423, 0x0443, 0x04EF, 0x0443, 0x0443, 0xFFFF }; unsigned short unac_data109[] = { 0x0423, 0x0443, 0x04F1, 0x0443, 0x0443, 0xFFFF, 0x0423, 0x0443, 0x04F3, 0x0443, 0x0443, 0xFFFF, 0x0427, 0x0447, 0x04F5, 0x0447, 0x0447, 0xFFFF, 0xFFFF, 0x04F7, 0x04F7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data110[] = { 0x042B, 0x044B, 0x04F9, 0x044B, 0x044B, 0xFFFF, 0xFFFF, 0x04FB, 0x04FB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04FD, 0x04FD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x04FF, 0x04FF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data111[] = { 0xFFFF, 0x0501, 0x0501, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0503, 0x0503, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0505, 0x0505, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0507, 0x0507, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data112[] = { 0xFFFF, 0x0509, 0x0509, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x050B, 0x050B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x050D, 0x050D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x050F, 0x050F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data113[] = { 0xFFFF, 0x0511, 0x0511, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0513, 0x0513, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0515, 0x0515, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0517, 0x0517, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data114[] = { 0xFFFF, 0x0519, 0x0519, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x051B, 0x051B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x051D, 0x051D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x051F, 0x051F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data115[] = { 0xFFFF, 0x0521, 0x0521, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0523, 0x0523, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0525, 0x0525, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0527, 0x0527, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data116[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0561, 0x0561, 0xFFFF, 0x0562, 0x0562, 0xFFFF, 0x0563, 0x0563, 0xFFFF, 0x0564, 0x0564, 0xFFFF, 0x0565, 0x0565, 0xFFFF, 0x0566, 0x0566, 0xFFFF, 0x0567, 0x0567 }; unsigned short unac_data117[] = { 0xFFFF, 0x0568, 0x0568, 0xFFFF, 0x0569, 0x0569, 0xFFFF, 0x056A, 0x056A, 0xFFFF, 0x056B, 0x056B, 0xFFFF, 0x056C, 0x056C, 0xFFFF, 0x056D, 0x056D, 0xFFFF, 0x056E, 0x056E, 0xFFFF, 0x056F, 0x056F }; unsigned short unac_data118[] = { 0xFFFF, 0x0570, 0x0570, 0xFFFF, 0x0571, 0x0571, 0xFFFF, 0x0572, 0x0572, 0xFFFF, 0x0573, 0x0573, 0xFFFF, 0x0574, 0x0574, 0xFFFF, 0x0575, 0x0575, 0xFFFF, 0x0576, 0x0576, 0xFFFF, 0x0577, 0x0577 }; unsigned short unac_data119[] = { 0xFFFF, 0x0578, 0x0578, 0xFFFF, 0x0579, 0x0579, 0xFFFF, 0x057A, 0x057A, 0xFFFF, 0x057B, 0x057B, 0xFFFF, 0x057C, 0x057C, 0xFFFF, 0x057D, 0x057D, 0xFFFF, 0x057E, 0x057E, 0xFFFF, 0x057F, 0x057F }; unsigned short unac_data120[] = { 0xFFFF, 0x0580, 0x0580, 0xFFFF, 0x0581, 0x0581, 0xFFFF, 0x0582, 0x0582, 0xFFFF, 0x0583, 0x0583, 0xFFFF, 0x0584, 0x0584, 0xFFFF, 0x0585, 0x0585, 0xFFFF, 0x0586, 0x0586, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data121[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0565, 0x0582, 0x0565, 0x0582, 0x0565, 0x0582 }; unsigned short unac_data122[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data123[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data124[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data125[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data126[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0648, 0x0648, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data127[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data128[] = { 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0627, 0x0674, 0x0627, 0x0674, 0xFFFF, 0x0648, 0x0674, 0x0648, 0x0674, 0xFFFF, 0x06C7, 0x0674, 0x06C7, 0x0674, 0xFFFF }; unsigned short unac_data129[] = { 0x064A, 0x0674, 0x064A, 0x0674, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data130[] = { 0x06D5, 0x06D5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x06C1, 0x06C1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data131[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x06D2, 0x06D2, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data132[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data133[] = { 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data134[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data135[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data136[] = { 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data137[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data138[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data139[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data140[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data141[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data142[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data143[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data144[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0A32, 0x0A32, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0A38, 0x0A38, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data145[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data146[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data147[] = { 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data148[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0A16, 0x0A16, 0xFFFF, 0x0A17, 0x0A17, 0xFFFF, 0x0A1C, 0x0A1C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0A2B, 0x0A2B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data149[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data150[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data151[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data152[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0B21, 0x0B21, 0xFFFF, 0x0B22, 0x0B22, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data153[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data154[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0B92, 0x0B92, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data155[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data156[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data157[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data158[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data159[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data160[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data161[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0E32, 0x0E32, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data162[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0EB2, 0x0EB2, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data163[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data164[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data165[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0EAB, 0x0E99, 0x0EAB, 0x0E99, 0xFFFF, 0x0EAB, 0x0EA1, 0x0EAB, 0x0EA1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data166[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0F0B, 0x0F0B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data167[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data168[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data169[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data170[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0F42, 0x0F42, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data171[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0F4C, 0x0F4C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data172[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0F51, 0x0F51, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0F56, 0x0F56, 0xFFFF }; unsigned short unac_data173[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0F5B, 0x0F5B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data174[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0F40, 0x0F40, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data175[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data176[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data177[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data178[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1025, 0x1025, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data179[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data180[] = { 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data181[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data182[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data183[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data184[] = { 0xFFFF, 0x2D00, 0x2D00, 0xFFFF, 0x2D01, 0x2D01, 0xFFFF, 0x2D02, 0x2D02, 0xFFFF, 0x2D03, 0x2D03, 0xFFFF, 0x2D04, 0x2D04, 0xFFFF, 0x2D05, 0x2D05, 0xFFFF, 0x2D06, 0x2D06, 0xFFFF, 0x2D07, 0x2D07 }; unsigned short unac_data185[] = { 0xFFFF, 0x2D08, 0x2D08, 0xFFFF, 0x2D09, 0x2D09, 0xFFFF, 0x2D0A, 0x2D0A, 0xFFFF, 0x2D0B, 0x2D0B, 0xFFFF, 0x2D0C, 0x2D0C, 0xFFFF, 0x2D0D, 0x2D0D, 0xFFFF, 0x2D0E, 0x2D0E, 0xFFFF, 0x2D0F, 0x2D0F }; unsigned short unac_data186[] = { 0xFFFF, 0x2D10, 0x2D10, 0xFFFF, 0x2D11, 0x2D11, 0xFFFF, 0x2D12, 0x2D12, 0xFFFF, 0x2D13, 0x2D13, 0xFFFF, 0x2D14, 0x2D14, 0xFFFF, 0x2D15, 0x2D15, 0xFFFF, 0x2D16, 0x2D16, 0xFFFF, 0x2D17, 0x2D17 }; unsigned short unac_data187[] = { 0xFFFF, 0x2D18, 0x2D18, 0xFFFF, 0x2D19, 0x2D19, 0xFFFF, 0x2D1A, 0x2D1A, 0xFFFF, 0x2D1B, 0x2D1B, 0xFFFF, 0x2D1C, 0x2D1C, 0xFFFF, 0x2D1D, 0x2D1D, 0xFFFF, 0x2D1E, 0x2D1E, 0xFFFF, 0x2D1F, 0x2D1F }; unsigned short unac_data188[] = { 0xFFFF, 0x2D20, 0x2D20, 0xFFFF, 0x2D21, 0x2D21, 0xFFFF, 0x2D22, 0x2D22, 0xFFFF, 0x2D23, 0x2D23, 0xFFFF, 0x2D24, 0x2D24, 0xFFFF, 0x2D25, 0x2D25, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2D27, 0x2D27 }; unsigned short unac_data189[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2D2D, 0x2D2D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data190[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x10DC, 0x10DC, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data191[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data192[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data193[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data194[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1B05, 0x1B05, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data195[] = { 0x1B07, 0x1B07, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1B09, 0x1B09, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1B0B, 0x1B0B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1B0D, 0x1B0D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data196[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1B11, 0x1B11, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data197[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data198[] = { 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data199[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0041, 0x0061, 0xFFFF, 0x00C6, 0x00E6, 0xFFFF, 0x0042, 0x0062, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data200[] = { 0x0044, 0x0064, 0xFFFF, 0x0045, 0x0065, 0xFFFF, 0x018E, 0x01DD, 0xFFFF, 0x0047, 0x0067, 0xFFFF, 0x0048, 0x0068, 0xFFFF, 0x0049, 0x0069, 0xFFFF, 0x004A, 0x006A, 0xFFFF, 0x004B, 0x006B, 0xFFFF }; unsigned short unac_data201[] = { 0x004C, 0x006C, 0xFFFF, 0x004D, 0x006D, 0xFFFF, 0x004E, 0x006E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x004F, 0x006F, 0xFFFF, 0x0222, 0x0223, 0xFFFF, 0x0050, 0x0070, 0xFFFF, 0x0052, 0x0072, 0xFFFF }; unsigned short unac_data202[] = { 0x0054, 0x0074, 0xFFFF, 0x0055, 0x0075, 0xFFFF, 0x0057, 0x0077, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0x0250, 0x0250, 0xFFFF, 0x0251, 0x0251, 0xFFFF, 0x1D02, 0x1D02, 0xFFFF, 0x0062, 0x0062, 0xFFFF }; unsigned short unac_data203[] = { 0x0064, 0x0064, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x0259, 0x0259, 0xFFFF, 0x025B, 0x025B, 0xFFFF, 0x025C, 0x025C, 0xFFFF, 0x0067, 0x0067, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x006B, 0x006B, 0xFFFF }; unsigned short unac_data204[] = { 0x006D, 0x006D, 0xFFFF, 0x014B, 0x014B, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x0254, 0x0254, 0xFFFF, 0x1D16, 0x1D16, 0xFFFF, 0x1D17, 0x1D17, 0xFFFF, 0x0070, 0x0070, 0xFFFF, 0x0074, 0x0074, 0xFFFF }; unsigned short unac_data205[] = { 0x0075, 0x0075, 0xFFFF, 0x1D1D, 0x1D1D, 0xFFFF, 0x026F, 0x026F, 0xFFFF, 0x0076, 0x0076, 0xFFFF, 0x1D25, 0x1D25, 0xFFFF, 0x03B2, 0x03B2, 0xFFFF, 0x03B3, 0x03B3, 0xFFFF, 0x03B4, 0x03B4, 0xFFFF }; unsigned short unac_data206[] = { 0x03C6, 0x03C6, 0xFFFF, 0x03C7, 0x03C7, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0x0072, 0x0072, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0076, 0x0076, 0xFFFF, 0x03B2, 0x03B2, 0xFFFF, 0x03B3, 0x03B3, 0xFFFF }; unsigned short unac_data207[] = { 0x03C1, 0x03C1, 0xFFFF, 0x03C6, 0x03C6, 0xFFFF, 0x03C7, 0x03C7, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data208[] = { 0x043D, 0x043D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data209[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0252, 0x0252, 0xFFFF, 0x0063, 0x0063, 0xFFFF, 0x0255, 0x0255, 0xFFFF, 0x00F0, 0x00F0, 0xFFFF, 0x025C, 0x025C, 0xFFFF }; unsigned short unac_data210[] = { 0x0066, 0x0066, 0xFFFF, 0x025F, 0x025F, 0xFFFF, 0x0261, 0x0261, 0xFFFF, 0x0265, 0x0265, 0xFFFF, 0x0268, 0x0268, 0xFFFF, 0x0269, 0x0269, 0xFFFF, 0x026A, 0x026A, 0xFFFF, 0x1D7B, 0x1D7B, 0xFFFF }; unsigned short unac_data211[] = { 0x029D, 0x029D, 0xFFFF, 0x026D, 0x026D, 0xFFFF, 0x1D85, 0x1D85, 0xFFFF, 0x029F, 0x029F, 0xFFFF, 0x0271, 0x0271, 0xFFFF, 0x0270, 0x0270, 0xFFFF, 0x0272, 0x0272, 0xFFFF, 0x0273, 0x0273, 0xFFFF }; unsigned short unac_data212[] = { 0x0274, 0x0274, 0xFFFF, 0x0275, 0x0275, 0xFFFF, 0x0278, 0x0278, 0xFFFF, 0x0282, 0x0282, 0xFFFF, 0x0283, 0x0283, 0xFFFF, 0x01AB, 0x01AB, 0xFFFF, 0x0289, 0x0289, 0xFFFF, 0x028A, 0x028A, 0xFFFF }; unsigned short unac_data213[] = { 0x1D1C, 0x1D1C, 0xFFFF, 0x028B, 0x028B, 0xFFFF, 0x028C, 0x028C, 0xFFFF, 0x007A, 0x007A, 0xFFFF, 0x0290, 0x0290, 0xFFFF, 0x0291, 0x0291, 0xFFFF, 0x0292, 0x0292, 0xFFFF, 0x03B8, 0x03B8, 0xFFFF }; unsigned short unac_data214[] = { 0x0041, 0x0061, 0x1E01, 0x0061, 0x0061, 0xFFFF, 0x0042, 0x0062, 0x1E03, 0x0062, 0x0062, 0xFFFF, 0x0042, 0x0062, 0x1E05, 0x0062, 0x0062, 0xFFFF, 0x0042, 0x0062, 0x1E07, 0x0062, 0x0062, 0xFFFF }; unsigned short unac_data215[] = { 0x0043, 0x0063, 0x1E09, 0x0063, 0x0063, 0xFFFF, 0x0044, 0x0064, 0x1E0B, 0x0064, 0x0064, 0xFFFF, 0x0044, 0x0064, 0x1E0D, 0x0064, 0x0064, 0xFFFF, 0x0044, 0x0064, 0x1E0F, 0x0064, 0x0064, 0xFFFF }; unsigned short unac_data216[] = { 0x0044, 0x0064, 0x1E11, 0x0064, 0x0064, 0xFFFF, 0x0044, 0x0064, 0x1E13, 0x0064, 0x0064, 0xFFFF, 0x0045, 0x0065, 0x1E15, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1E17, 0x0065, 0x0065, 0xFFFF }; unsigned short unac_data217[] = { 0x0045, 0x0065, 0x1E19, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1E1B, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1E1D, 0x0065, 0x0065, 0xFFFF, 0x0046, 0x0066, 0x1E1F, 0x0066, 0x0066, 0xFFFF }; unsigned short unac_data218[] = { 0x0047, 0x0067, 0x1E21, 0x0067, 0x0067, 0xFFFF, 0x0048, 0x0068, 0x1E23, 0x0068, 0x0068, 0xFFFF, 0x0048, 0x0068, 0x1E25, 0x0068, 0x0068, 0xFFFF, 0x0048, 0x0068, 0x1E27, 0x0068, 0x0068, 0xFFFF }; unsigned short unac_data219[] = { 0x0048, 0x0068, 0x1E29, 0x0068, 0x0068, 0xFFFF, 0x0048, 0x0068, 0x1E2B, 0x0068, 0x0068, 0xFFFF, 0x0049, 0x0069, 0x1E2D, 0x0069, 0x0069, 0xFFFF, 0x0049, 0x0069, 0x1E2F, 0x0069, 0x0069, 0xFFFF }; unsigned short unac_data220[] = { 0x004B, 0x006B, 0x1E31, 0x006B, 0x006B, 0xFFFF, 0x004B, 0x006B, 0x1E33, 0x006B, 0x006B, 0xFFFF, 0x004B, 0x006B, 0x1E35, 0x006B, 0x006B, 0xFFFF, 0x004C, 0x006C, 0x1E37, 0x006C, 0x006C, 0xFFFF }; unsigned short unac_data221[] = { 0x004C, 0x006C, 0x1E39, 0x006C, 0x006C, 0xFFFF, 0x004C, 0x006C, 0x1E3B, 0x006C, 0x006C, 0xFFFF, 0x004C, 0x006C, 0x1E3D, 0x006C, 0x006C, 0xFFFF, 0x004D, 0x006D, 0x1E3F, 0x006D, 0x006D, 0xFFFF }; unsigned short unac_data222[] = { 0x004D, 0x006D, 0x1E41, 0x006D, 0x006D, 0xFFFF, 0x004D, 0x006D, 0x1E43, 0x006D, 0x006D, 0xFFFF, 0x004E, 0x006E, 0x1E45, 0x006E, 0x006E, 0xFFFF, 0x004E, 0x006E, 0x1E47, 0x006E, 0x006E, 0xFFFF }; unsigned short unac_data223[] = { 0x004E, 0x006E, 0x1E49, 0x006E, 0x006E, 0xFFFF, 0x004E, 0x006E, 0x1E4B, 0x006E, 0x006E, 0xFFFF, 0x004F, 0x006F, 0x1E4D, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1E4F, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data224[] = { 0x004F, 0x006F, 0x1E51, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1E53, 0x006F, 0x006F, 0xFFFF, 0x0050, 0x0070, 0x1E55, 0x0070, 0x0070, 0xFFFF, 0x0050, 0x0070, 0x1E57, 0x0070, 0x0070, 0xFFFF }; unsigned short unac_data225[] = { 0x0052, 0x0072, 0x1E59, 0x0072, 0x0072, 0xFFFF, 0x0052, 0x0072, 0x1E5B, 0x0072, 0x0072, 0xFFFF, 0x0052, 0x0072, 0x1E5D, 0x0072, 0x0072, 0xFFFF, 0x0052, 0x0072, 0x1E5F, 0x0072, 0x0072, 0xFFFF }; unsigned short unac_data226[] = { 0x0053, 0x0073, 0x1E61, 0x0073, 0x0073, 0xFFFF, 0x0053, 0x0073, 0x1E63, 0x0073, 0x0073, 0xFFFF, 0x0053, 0x0073, 0x1E65, 0x0073, 0x0073, 0xFFFF, 0x0053, 0x0073, 0x1E67, 0x0073, 0x0073, 0xFFFF }; unsigned short unac_data227[] = { 0x0053, 0x0073, 0x1E69, 0x0073, 0x0073, 0xFFFF, 0x0054, 0x0074, 0x1E6B, 0x0074, 0x0074, 0xFFFF, 0x0054, 0x0074, 0x1E6D, 0x0074, 0x0074, 0xFFFF, 0x0054, 0x0074, 0x1E6F, 0x0074, 0x0074, 0xFFFF }; unsigned short unac_data228[] = { 0x0054, 0x0074, 0x1E71, 0x0074, 0x0074, 0xFFFF, 0x0055, 0x0075, 0x1E73, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x1E75, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x1E77, 0x0075, 0x0075, 0xFFFF }; unsigned short unac_data229[] = { 0x0055, 0x0075, 0x1E79, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x1E7B, 0x0075, 0x0075, 0xFFFF, 0x0056, 0x0076, 0x1E7D, 0x0076, 0x0076, 0xFFFF, 0x0056, 0x0076, 0x1E7F, 0x0076, 0x0076, 0xFFFF }; unsigned short unac_data230[] = { 0x0057, 0x0077, 0x1E81, 0x0077, 0x0077, 0xFFFF, 0x0057, 0x0077, 0x1E83, 0x0077, 0x0077, 0xFFFF, 0x0057, 0x0077, 0x1E85, 0x0077, 0x0077, 0xFFFF, 0x0057, 0x0077, 0x1E87, 0x0077, 0x0077, 0xFFFF }; unsigned short unac_data231[] = { 0x0057, 0x0077, 0x1E89, 0x0077, 0x0077, 0xFFFF, 0x0058, 0x0078, 0x1E8B, 0x0078, 0x0078, 0xFFFF, 0x0058, 0x0078, 0x1E8D, 0x0078, 0x0078, 0xFFFF, 0x0059, 0x0079, 0x1E8F, 0x0079, 0x0079, 0xFFFF }; unsigned short unac_data232[] = { 0x005A, 0x007A, 0x1E91, 0x007A, 0x007A, 0xFFFF, 0x005A, 0x007A, 0x1E93, 0x007A, 0x007A, 0xFFFF, 0x005A, 0x007A, 0x1E95, 0x007A, 0x007A, 0xFFFF, 0x0068, 0x0068, 0x0068, 0x0331, 0x0074, 0x0074, 0x0074, 0x0308 }; unsigned short unac_data233[] = { 0x0077, 0x0077, 0x0077, 0x030A, 0x0079, 0x0079, 0x0079, 0x030A, 0x0061, 0x02BE, 0x0061, 0x02BE, 0x0061, 0x02BE, 0x0073, 0x0073, 0x1E61, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0073, 0x0073, 0x0073, 0x0073, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data234[] = { 0x0041, 0x0061, 0x1EA1, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EA3, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EA5, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EA7, 0x0061, 0x0061, 0xFFFF }; unsigned short unac_data235[] = { 0x0041, 0x0061, 0x1EA9, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EAB, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EAD, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EAF, 0x0061, 0x0061, 0xFFFF }; unsigned short unac_data236[] = { 0x0041, 0x0061, 0x1EB1, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EB3, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EB5, 0x0061, 0x0061, 0xFFFF, 0x0041, 0x0061, 0x1EB7, 0x0061, 0x0061, 0xFFFF }; unsigned short unac_data237[] = { 0x0045, 0x0065, 0x1EB9, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1EBB, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1EBD, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1EBF, 0x0065, 0x0065, 0xFFFF }; unsigned short unac_data238[] = { 0x0045, 0x0065, 0x1EC1, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1EC3, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1EC5, 0x0065, 0x0065, 0xFFFF, 0x0045, 0x0065, 0x1EC7, 0x0065, 0x0065, 0xFFFF }; unsigned short unac_data239[] = { 0x0049, 0x0069, 0x1EC9, 0x0069, 0x0069, 0xFFFF, 0x0049, 0x0069, 0x1ECB, 0x0069, 0x0069, 0xFFFF, 0x004F, 0x006F, 0x1ECD, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1ECF, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data240[] = { 0x004F, 0x006F, 0x1ED1, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1ED3, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1ED5, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1ED7, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data241[] = { 0x004F, 0x006F, 0x1ED9, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1EDB, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1EDD, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1EDF, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data242[] = { 0x004F, 0x006F, 0x1EE1, 0x006F, 0x006F, 0xFFFF, 0x004F, 0x006F, 0x1EE3, 0x006F, 0x006F, 0xFFFF, 0x0055, 0x0075, 0x1EE5, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x1EE7, 0x0075, 0x0075, 0xFFFF }; unsigned short unac_data243[] = { 0x0055, 0x0075, 0x1EE9, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x1EEB, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x1EED, 0x0075, 0x0075, 0xFFFF, 0x0055, 0x0075, 0x1EEF, 0x0075, 0x0075, 0xFFFF }; unsigned short unac_data244[] = { 0x0055, 0x0075, 0x1EF1, 0x0075, 0x0075, 0xFFFF, 0x0059, 0x0079, 0x1EF3, 0x0079, 0x0079, 0xFFFF, 0x0059, 0x0079, 0x1EF5, 0x0079, 0x0079, 0xFFFF, 0x0059, 0x0079, 0x1EF7, 0x0079, 0x0079, 0xFFFF }; unsigned short unac_data245[] = { 0x0059, 0x0079, 0x1EF9, 0x0079, 0x0079, 0xFFFF, 0xFFFF, 0x1EFB, 0x1EFB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1EFD, 0x1EFD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1EFF, 0x1EFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data246[] = { 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF }; unsigned short unac_data247[] = { 0x0391, 0x03B1, 0x1F00, 0x0391, 0x03B1, 0x1F01, 0x0391, 0x03B1, 0x1F02, 0x0391, 0x03B1, 0x1F03, 0x0391, 0x03B1, 0x1F04, 0x0391, 0x03B1, 0x1F05, 0x0391, 0x03B1, 0x1F06, 0x0391, 0x03B1, 0x1F07 }; unsigned short unac_data248[] = { 0x03B5, 0x03B5, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data249[] = { 0x0395, 0x03B5, 0x1F10, 0x0395, 0x03B5, 0x1F11, 0x0395, 0x03B5, 0x1F12, 0x0395, 0x03B5, 0x1F13, 0x0395, 0x03B5, 0x1F14, 0x0395, 0x03B5, 0x1F15, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data250[] = { 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF }; unsigned short unac_data251[] = { 0x0397, 0x03B7, 0x1F20, 0x0397, 0x03B7, 0x1F21, 0x0397, 0x03B7, 0x1F22, 0x0397, 0x03B7, 0x1F23, 0x0397, 0x03B7, 0x1F24, 0x0397, 0x03B7, 0x1F25, 0x0397, 0x03B7, 0x1F26, 0x0397, 0x03B7, 0x1F27 }; unsigned short unac_data252[] = { 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF }; unsigned short unac_data253[] = { 0x0399, 0x03B9, 0x1F30, 0x0399, 0x03B9, 0x1F31, 0x0399, 0x03B9, 0x1F32, 0x0399, 0x03B9, 0x1F33, 0x0399, 0x03B9, 0x1F34, 0x0399, 0x03B9, 0x1F35, 0x0399, 0x03B9, 0x1F36, 0x0399, 0x03B9, 0x1F37 }; unsigned short unac_data254[] = { 0x03BF, 0x03BF, 0xFFFF, 0x03BF, 0x03BF, 0xFFFF, 0x03BF, 0x03BF, 0xFFFF, 0x03BF, 0x03BF, 0xFFFF, 0x03BF, 0x03BF, 0xFFFF, 0x03BF, 0x03BF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data255[] = { 0x039F, 0x03BF, 0x1F40, 0x039F, 0x03BF, 0x1F41, 0x039F, 0x03BF, 0x1F42, 0x039F, 0x03BF, 0x1F43, 0x039F, 0x03BF, 0x1F44, 0x039F, 0x03BF, 0x1F45, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data256[] = { 0x03C5, 0x03C5, 0x03C5, 0x0313, 0x03C5, 0x03C5, 0xFFFF, 0x03C5, 0x03C5, 0x03C5, 0x0313, 0x0300, 0x03C5, 0x03C5, 0xFFFF, 0x03C5, 0x03C5, 0x03C5, 0x0313, 0x0301, 0x03C5, 0x03C5, 0xFFFF, 0x03C5, 0x03C5, 0x03C5, 0x0313, 0x0342, 0x03C5, 0x03C5, 0xFFFF }; unsigned short unac_data257[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x03A5, 0x03C5, 0x1F51, 0xFFFF, 0xFFFF, 0xFFFF, 0x03A5, 0x03C5, 0x1F53, 0xFFFF, 0xFFFF, 0xFFFF, 0x03A5, 0x03C5, 0x1F55, 0xFFFF, 0xFFFF, 0xFFFF, 0x03A5, 0x03C5, 0x1F57 }; unsigned short unac_data258[] = { 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF }; unsigned short unac_data259[] = { 0x03A9, 0x03C9, 0x1F60, 0x03A9, 0x03C9, 0x1F61, 0x03A9, 0x03C9, 0x1F62, 0x03A9, 0x03C9, 0x1F63, 0x03A9, 0x03C9, 0x1F64, 0x03A9, 0x03C9, 0x1F65, 0x03A9, 0x03C9, 0x1F66, 0x03A9, 0x03C9, 0x1F67 }; unsigned short unac_data260[] = { 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B5, 0x03B5, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B7, 0x03B7, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF }; unsigned short unac_data261[] = { 0x03BF, 0x03BF, 0xFFFF, 0x03BF, 0x03BF, 0xFFFF, 0x03C5, 0x03C5, 0xFFFF, 0x03C5, 0x03C5, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0x03C9, 0x03C9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data262[] = { 0x03B1, 0x03B1, 0x1F00, 0x03B9, 0x03B1, 0x03B1, 0x1F01, 0x03B9, 0x03B1, 0x03B1, 0x1F02, 0x03B9, 0x03B1, 0x03B1, 0x1F03, 0x03B9, 0x03B1, 0x03B1, 0x1F04, 0x03B9, 0x03B1, 0x03B1, 0x1F05, 0x03B9, 0x03B1, 0x03B1, 0x1F06, 0x03B9, 0x03B1, 0x03B1, 0x1F07, 0x03B9 }; unsigned short unac_data263[] = { 0x0391, 0x03B1, 0x1F00, 0x03B9, 0x0391, 0x03B1, 0x1F01, 0x03B9, 0x0391, 0x03B1, 0x1F02, 0x03B9, 0x0391, 0x03B1, 0x1F03, 0x03B9, 0x0391, 0x03B1, 0x1F04, 0x03B9, 0x0391, 0x03B1, 0x1F05, 0x03B9, 0x0391, 0x03B1, 0x1F06, 0x03B9, 0x0391, 0x03B1, 0x1F07, 0x03B9 }; unsigned short unac_data264[] = { 0x03B7, 0x03B7, 0x1F20, 0x03B9, 0x03B7, 0x03B7, 0x1F21, 0x03B9, 0x03B7, 0x03B7, 0x1F22, 0x03B9, 0x03B7, 0x03B7, 0x1F23, 0x03B9, 0x03B7, 0x03B7, 0x1F24, 0x03B9, 0x03B7, 0x03B7, 0x1F25, 0x03B9, 0x03B7, 0x03B7, 0x1F26, 0x03B9, 0x03B7, 0x03B7, 0x1F27, 0x03B9 }; unsigned short unac_data265[] = { 0x0397, 0x03B7, 0x1F20, 0x03B9, 0x0397, 0x03B7, 0x1F21, 0x03B9, 0x0397, 0x03B7, 0x1F22, 0x03B9, 0x0397, 0x03B7, 0x1F23, 0x03B9, 0x0397, 0x03B7, 0x1F24, 0x03B9, 0x0397, 0x03B7, 0x1F25, 0x03B9, 0x0397, 0x03B7, 0x1F26, 0x03B9, 0x0397, 0x03B7, 0x1F27, 0x03B9 }; unsigned short unac_data266[] = { 0x03C9, 0x03C9, 0x1F60, 0x03B9, 0x03C9, 0x03C9, 0x1F61, 0x03B9, 0x03C9, 0x03C9, 0x1F62, 0x03B9, 0x03C9, 0x03C9, 0x1F63, 0x03B9, 0x03C9, 0x03C9, 0x1F64, 0x03B9, 0x03C9, 0x03C9, 0x1F65, 0x03B9, 0x03C9, 0x03C9, 0x1F66, 0x03B9, 0x03C9, 0x03C9, 0x1F67, 0x03B9 }; unsigned short unac_data267[] = { 0x03A9, 0x03C9, 0x1F60, 0x03B9, 0x03A9, 0x03C9, 0x1F61, 0x03B9, 0x03A9, 0x03C9, 0x1F62, 0x03B9, 0x03A9, 0x03C9, 0x1F63, 0x03B9, 0x03A9, 0x03C9, 0x1F64, 0x03B9, 0x03A9, 0x03C9, 0x1F65, 0x03B9, 0x03A9, 0x03C9, 0x1F66, 0x03B9, 0x03A9, 0x03C9, 0x1F67, 0x03B9 }; unsigned short unac_data268[] = { 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0xFFFF, 0x03B1, 0x03B1, 0x1F70, 0x03B9, 0x03B1, 0x03B1, 0x03B1, 0x03B9, 0x03B1, 0x03B1, 0x03AC, 0x03B9, 0xFFFF, 0xFFFF, 0xFFFF, 0x03B1, 0x03B1, 0x03B1, 0x0342, 0x03B1, 0x03B1, 0x03B1, 0x0342, 0x03B9 }; unsigned short unac_data269[] = { 0x0391, 0x03B1, 0x1FB0, 0x0391, 0x03B1, 0x1FB1, 0x0391, 0x03B1, 0x1F70, 0x0391, 0x03B1, 0x1F71, 0x0391, 0x03B1, 0x03B1, 0x03B9, 0x0020, 0x0020, 0xFFFF, 0x03B9, 0x03B9, 0x03B9, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data270[] = { 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x03B7, 0x03B7, 0x1F74, 0x03B9, 0x03B7, 0x03B7, 0x03B7, 0x03B9, 0x03B7, 0x03B7, 0x03AE, 0x03B9, 0xFFFF, 0xFFFF, 0xFFFF, 0x03B7, 0x03B7, 0x03B7, 0x0342, 0x03B7, 0x03B7, 0x03B7, 0x0342, 0x03B9 }; unsigned short unac_data271[] = { 0x0395, 0x03B5, 0x1F72, 0x0395, 0x03B5, 0x1F73, 0x0397, 0x03B7, 0x1F74, 0x0397, 0x03B7, 0x1F75, 0x0397, 0x03B7, 0x03B7, 0x03B9, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data272[] = { 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0xFFFF, 0x03B9, 0x03B9, 0x03B9, 0x0308, 0x0300, 0x03B9, 0x03B9, 0x03B9, 0x0308, 0x0301, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03B9, 0x03B9, 0x03B9, 0x0342, 0x03B9, 0x03B9, 0x03B9, 0x0308, 0x0342 }; unsigned short unac_data273[] = { 0x0399, 0x03B9, 0x1FD0, 0x0399, 0x03B9, 0x1FD1, 0x0399, 0x03B9, 0x1F76, 0x0399, 0x03B9, 0x1F77, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data274[] = { 0x03C5, 0x03C5, 0xFFFF, 0x03C5, 0x03C5, 0xFFFF, 0x03C5, 0x03C5, 0x03C5, 0x0308, 0x0300, 0x03C5, 0x03C5, 0x03C5, 0x0308, 0x0301, 0x03C1, 0x03C1, 0x03C1, 0x0313, 0x03C1, 0x03C1, 0xFFFF, 0x03C5, 0x03C5, 0x03C5, 0x0342, 0x03C5, 0x03C5, 0x03C5, 0x0308, 0x0342 }; unsigned short unac_data275[] = { 0x03A5, 0x03C5, 0x1FE0, 0x03A5, 0x03C5, 0x1FE1, 0x03A5, 0x03C5, 0x1F7A, 0x03A5, 0x03C5, 0x1F7B, 0x03A1, 0x03C1, 0x1FE5, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0060, 0x0060, 0xFFFF }; unsigned short unac_data276[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03C9, 0x03C9, 0x1F7C, 0x03B9, 0x03C9, 0x03C9, 0x03C9, 0x03B9, 0x03C9, 0x03C9, 0x03CE, 0x03B9, 0xFFFF, 0xFFFF, 0xFFFF, 0x03C9, 0x03C9, 0x03C9, 0x0342, 0x03C9, 0x03C9, 0x03C9, 0x0342, 0x03B9 }; unsigned short unac_data277[] = { 0x039F, 0x03BF, 0x1F78, 0x039F, 0x03BF, 0x1F79, 0x03A9, 0x03C9, 0x1F7C, 0x03A9, 0x03C9, 0x1F7D, 0x03A9, 0x03C9, 0x03C9, 0x03B9, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data278[] = { 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data279[] = { 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data280[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x2010, 0x2010, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data281[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x002E, 0x002E, 0xFFFF, 0x002E, 0x002E, 0x002E, 0x002E, 0xFFFF, 0x002E, 0x002E, 0x002E, 0x002E, 0x002E, 0x002E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data282[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data283[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2032, 0x2032, 0x2032, 0x2032, 0xFFFF, 0x2032, 0x2032, 0x2032, 0x2032, 0x2032, 0x2032, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2035, 0x2035, 0x2035, 0x2035, 0xFFFF, 0x2035, 0x2035, 0x2035, 0x2035, 0x2035, 0x2035, 0xFFFF }; unsigned short unac_data284[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0021, 0x0021, 0x0021, 0x0021, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data285[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x003F, 0x003F, 0x003F, 0x003F, 0xFFFF }; unsigned short unac_data286[] = { 0x003F, 0x0021, 0x003F, 0x0021, 0xFFFF, 0x0021, 0x003F, 0x0021, 0x003F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data287[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2032, 0x2032, 0x2032, 0x2032, 0x2032, 0x2032, 0x2032, 0x2032, 0xFFFF }; unsigned short unac_data288[] = { 0x0030, 0x0030, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0034, 0x0034, 0xFFFF, 0x0035, 0x0035, 0xFFFF, 0x0036, 0x0036, 0xFFFF, 0x0037, 0x0037, 0xFFFF }; unsigned short unac_data289[] = { 0x0038, 0x0038, 0xFFFF, 0x0039, 0x0039, 0xFFFF, 0x002B, 0x002B, 0xFFFF, 0x2212, 0x2212, 0xFFFF, 0x003D, 0x003D, 0xFFFF, 0x0028, 0x0028, 0xFFFF, 0x0029, 0x0029, 0xFFFF, 0x006E, 0x006E, 0xFFFF }; unsigned short unac_data290[] = { 0x0030, 0x0030, 0xFFFF, 0x0031, 0x0031, 0xFFFF, 0x0032, 0x0032, 0xFFFF, 0x0033, 0x0033, 0xFFFF, 0x0034, 0x0034, 0xFFFF, 0x0035, 0x0035, 0xFFFF, 0x0036, 0x0036, 0xFFFF, 0x0037, 0x0037, 0xFFFF }; unsigned short unac_data291[] = { 0x0038, 0x0038, 0xFFFF, 0x0039, 0x0039, 0xFFFF, 0x002B, 0x002B, 0xFFFF, 0x2212, 0x2212, 0xFFFF, 0x003D, 0x003D, 0xFFFF, 0x0028, 0x0028, 0xFFFF, 0x0029, 0x0029, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data292[] = { 0x0061, 0x0061, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x0078, 0x0078, 0xFFFF, 0x0259, 0x0259, 0xFFFF, 0x0068, 0x0068, 0xFFFF, 0x006B, 0x006B, 0xFFFF, 0x006C, 0x006C, 0xFFFF }; unsigned short unac_data293[] = { 0x006D, 0x006D, 0xFFFF, 0x006E, 0x006E, 0xFFFF, 0x0070, 0x0070, 0xFFFF, 0x0073, 0x0073, 0xFFFF, 0x0074, 0x0074, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data294[] = { 0x0052, 0x0073, 0x0072, 0x0073, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data295[] = { 0x0061, 0x002F, 0x0063, 0x0061, 0x002F, 0x0063, 0xFFFF, 0x0061, 0x002F, 0x0073, 0x0061, 0x002F, 0x0073, 0xFFFF, 0x0043, 0x0063, 0xFFFF, 0x00B0, 0x0043, 0x00B0, 0x0063, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0063, 0x002F, 0x006F, 0x0063, 0x002F, 0x006F, 0xFFFF, 0x0063, 0x002F, 0x0075, 0x0063, 0x002F, 0x0075, 0xFFFF, 0x0190, 0x025B, 0xFFFF }; unsigned short unac_data296[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x00B0, 0x0046, 0x00B0, 0x0066, 0xFFFF, 0x0067, 0x0067, 0xFFFF, 0x0048, 0x0068, 0xFFFF, 0x0048, 0x0068, 0xFFFF, 0x0048, 0x0068, 0xFFFF, 0x0068, 0x0068, 0xFFFF, 0x0127, 0x0127, 0xFFFF }; unsigned short unac_data297[] = { 0x0049, 0x0069, 0xFFFF, 0x0049, 0x0069, 0xFFFF, 0x004C, 0x006C, 0xFFFF, 0x006C, 0x006C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x004E, 0x006E, 0xFFFF, 0x004E, 0x006F, 0x006E, 0x006F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data298[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0050, 0x0070, 0xFFFF, 0x0051, 0x0071, 0xFFFF, 0x0052, 0x0072, 0xFFFF, 0x0052, 0x0072, 0xFFFF, 0x0052, 0x0072, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data299[] = { 0x0053, 0x004D, 0x0073, 0x006D, 0xFFFF, 0x0054, 0x0045, 0x004C, 0x0074, 0x0065, 0x006C, 0xFFFF, 0x0054, 0x004D, 0x0074, 0x006D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x005A, 0x007A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03A9, 0x03C9, 0x03C9, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data300[] = { 0x005A, 0x007A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x004B, 0x006B, 0x006B, 0x0041, 0x0061, 0x00E5, 0x0042, 0x0062, 0xFFFF, 0x0043, 0x0063, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0065, 0x0065, 0xFFFF }; unsigned short unac_data301[] = { 0x0045, 0x0065, 0xFFFF, 0x0046, 0x0066, 0xFFFF, 0xFFFF, 0x214E, 0x214E, 0x004D, 0x006D, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x05D0, 0x05D0, 0xFFFF, 0x05D1, 0x05D1, 0xFFFF, 0x05D2, 0x05D2, 0xFFFF }; unsigned short unac_data302[] = { 0x05D3, 0x05D3, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0046, 0x0041, 0x0058, 0x0066, 0x0061, 0x0078, 0xFFFF, 0x03C0, 0x03C0, 0xFFFF, 0x03B3, 0x03B3, 0xFFFF, 0x0393, 0x03B3, 0xFFFF, 0x03A0, 0x03C0, 0xFFFF }; unsigned short unac_data303[] = { 0x2211, 0x2211, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0044, 0x0064, 0xFFFF, 0x0064, 0x0064, 0xFFFF, 0x0065, 0x0065, 0xFFFF }; unsigned short unac_data304[] = { 0x0069, 0x0069, 0xFFFF, 0x006A, 0x006A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data305[] = { 0x0031, 0x2044, 0x0037, 0x0031, 0x2044, 0x0037, 0xFFFF, 0x0031, 0x2044, 0x0039, 0x0031, 0x2044, 0x0039, 0xFFFF, 0x0031, 0x2044, 0x0031, 0x0030, 0x0031, 0x2044, 0x0031, 0x0030, 0xFFFF, 0x0031, 0x2044, 0x0033, 0x0031, 0x2044, 0x0033, 0xFFFF, 0x0032, 0x2044, 0x0033, 0x0032, 0x2044, 0x0033, 0xFFFF, 0x0031, 0x2044, 0x0035, 0x0031, 0x2044, 0x0035, 0xFFFF, 0x0032, 0x2044, 0x0035, 0x0032, 0x2044, 0x0035, 0xFFFF, 0x0033, 0x2044, 0x0035, 0x0033, 0x2044, 0x0035, 0xFFFF }; unsigned short unac_data306[] = { 0x0034, 0x2044, 0x0035, 0x0034, 0x2044, 0x0035, 0xFFFF, 0x0031, 0x2044, 0x0036, 0x0031, 0x2044, 0x0036, 0xFFFF, 0x0035, 0x2044, 0x0036, 0x0035, 0x2044, 0x0036, 0xFFFF, 0x0031, 0x2044, 0x0038, 0x0031, 0x2044, 0x0038, 0xFFFF, 0x0033, 0x2044, 0x0038, 0x0033, 0x2044, 0x0038, 0xFFFF, 0x0035, 0x2044, 0x0038, 0x0035, 0x2044, 0x0038, 0xFFFF, 0x0037, 0x2044, 0x0038, 0x0037, 0x2044, 0x0038, 0xFFFF, 0x0031, 0x2044, 0x0031, 0x2044, 0xFFFF }; unsigned short unac_data307[] = { 0x0049, 0x0069, 0x2170, 0x0049, 0x0049, 0x0069, 0x0069, 0x2171, 0x0049, 0x0049, 0x0049, 0x0069, 0x0069, 0x0069, 0x2172, 0x0049, 0x0056, 0x0069, 0x0076, 0x2173, 0x0056, 0x0076, 0x2174, 0x0056, 0x0049, 0x0076, 0x0069, 0x2175, 0x0056, 0x0049, 0x0049, 0x0076, 0x0069, 0x0069, 0x2176, 0x0056, 0x0049, 0x0049, 0x0049, 0x0076, 0x0069, 0x0069, 0x0069, 0x2177 }; unsigned short unac_data308[] = { 0x0049, 0x0058, 0x0069, 0x0078, 0x2178, 0x0058, 0x0078, 0x2179, 0x0058, 0x0049, 0x0078, 0x0069, 0x217A, 0x0058, 0x0049, 0x0049, 0x0078, 0x0069, 0x0069, 0x217B, 0x004C, 0x006C, 0x217C, 0x0043, 0x0063, 0x217D, 0x0044, 0x0064, 0x217E, 0x004D, 0x006D, 0x217F }; unsigned short unac_data309[] = { 0x0069, 0x0069, 0xFFFF, 0x0069, 0x0069, 0x0069, 0x0069, 0xFFFF, 0x0069, 0x0069, 0x0069, 0x0069, 0x0069, 0x0069, 0xFFFF, 0x0069, 0x0076, 0x0069, 0x0076, 0xFFFF, 0x0076, 0x0076, 0xFFFF, 0x0076, 0x0069, 0x0076, 0x0069, 0xFFFF, 0x0076, 0x0069, 0x0069, 0x0076, 0x0069, 0x0069, 0xFFFF, 0x0076, 0x0069, 0x0069, 0x0069, 0x0076, 0x0069, 0x0069, 0x0069, 0xFFFF }; unsigned short unac_data310[] = { 0x0069, 0x0078, 0x0069, 0x0078, 0xFFFF, 0x0078, 0x0078, 0xFFFF, 0x0078, 0x0069, 0x0078, 0x0069, 0xFFFF, 0x0078, 0x0069, 0x0069, 0x0078, 0x0069, 0x0069, 0xFFFF, 0x006C, 0x006C, 0xFFFF, 0x0063, 0x0063, 0xFFFF, 0x0064, 0x0064, 0xFFFF, 0x006D, 0x006D, 0xFFFF }; unsigned short unac_data311[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2184, 0x2184, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data312[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0030, 0x2044, 0x0033, 0x0030, 0x2044, 0x0033, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data313[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2190, 0x2190, 0xFFFF, 0x2192, 0x2192, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data314[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2194, 0x2194, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data315[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x21D0, 0x21D0, 0xFFFF, 0x21D4, 0x21D4, 0xFFFF, 0x21D2, 0x21D2, 0xFFFF }; unsigned short unac_data316[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2203, 0x2203, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data317[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x2208, 0x2208, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x220B, 0x220B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data318[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2223, 0x2223, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2225, 0x2225, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data319[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x222B, 0x222B, 0x222B, 0x222B, 0xFFFF, 0x222B, 0x222B, 0x222B, 0x222B, 0x222B, 0x222B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x222E, 0x222E, 0x222E, 0x222E, 0xFFFF }; unsigned short unac_data320[] = { 0x222E, 0x222E, 0x222E, 0x222E, 0x222E, 0x222E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data321[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x223C, 0x223C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2243, 0x2243, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2245, 0x2245, 0xFFFF }; unsigned short unac_data322[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x2248, 0x2248, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data323[] = { 0x003D, 0x003D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2261, 0x2261, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data324[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x224D, 0x224D, 0xFFFF, 0x003C, 0x003C, 0xFFFF, 0x003E, 0x003E, 0xFFFF }; unsigned short unac_data325[] = { 0x2264, 0x2264, 0xFFFF, 0x2265, 0x2265, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2272, 0x2272, 0xFFFF, 0x2273, 0x2273, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data326[] = { 0x2276, 0x2276, 0xFFFF, 0x2277, 0x2277, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data327[] = { 0x227A, 0x227A, 0xFFFF, 0x227B, 0x227B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2282, 0x2282, 0xFFFF, 0x2283, 0x2283, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data328[] = { 0x2286, 0x2286, 0xFFFF, 0x2287, 0x2287, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data329[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x22A2, 0x22A2, 0xFFFF, 0x22A8, 0x22A8, 0xFFFF, 0x22A9, 0x22A9, 0xFFFF, 0x22AB, 0x22AB, 0xFFFF }; unsigned short unac_data330[] = { 0x227C, 0x227C, 0xFFFF, 0x227D, 0x227D, 0xFFFF, 0x2291, 0x2291, 0xFFFF, 0x2292, 0x2292, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data331[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x22B2, 0x22B2, 0xFFFF, 0x22B3, 0x22B3, 0xFFFF, 0x22B4, 0x22B4, 0xFFFF, 0x22B5, 0x22B5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data332[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x3008, 0x3008, 0xFFFF, 0x3009, 0x3009, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data333[] = { 0x0031, 0x0031, 0xFFFF, 0x0032, 0x0032, 0xFFFF, 0x0033, 0x0033, 0xFFFF, 0x0034, 0x0034, 0xFFFF, 0x0035, 0x0035, 0xFFFF, 0x0036, 0x0036, 0xFFFF, 0x0037, 0x0037, 0xFFFF, 0x0038, 0x0038, 0xFFFF }; unsigned short unac_data334[] = { 0x0039, 0x0039, 0xFFFF, 0x0031, 0x0030, 0x0031, 0x0030, 0xFFFF, 0x0031, 0x0031, 0x0031, 0x0031, 0xFFFF, 0x0031, 0x0032, 0x0031, 0x0032, 0xFFFF, 0x0031, 0x0033, 0x0031, 0x0033, 0xFFFF, 0x0031, 0x0034, 0x0031, 0x0034, 0xFFFF, 0x0031, 0x0035, 0x0031, 0x0035, 0xFFFF, 0x0031, 0x0036, 0x0031, 0x0036, 0xFFFF }; unsigned short unac_data335[] = { 0x0031, 0x0037, 0x0031, 0x0037, 0xFFFF, 0x0031, 0x0038, 0x0031, 0x0038, 0xFFFF, 0x0031, 0x0039, 0x0031, 0x0039, 0xFFFF, 0x0032, 0x0030, 0x0032, 0x0030, 0xFFFF, 0x0028, 0x0031, 0x0029, 0x0028, 0x0031, 0x0029, 0xFFFF, 0x0028, 0x0032, 0x0029, 0x0028, 0x0032, 0x0029, 0xFFFF, 0x0028, 0x0033, 0x0029, 0x0028, 0x0033, 0x0029, 0xFFFF, 0x0028, 0x0034, 0x0029, 0x0028, 0x0034, 0x0029, 0xFFFF }; unsigned short unac_data336[] = { 0x0028, 0x0035, 0x0029, 0x0028, 0x0035, 0x0029, 0xFFFF, 0x0028, 0x0036, 0x0029, 0x0028, 0x0036, 0x0029, 0xFFFF, 0x0028, 0x0037, 0x0029, 0x0028, 0x0037, 0x0029, 0xFFFF, 0x0028, 0x0038, 0x0029, 0x0028, 0x0038, 0x0029, 0xFFFF, 0x0028, 0x0039, 0x0029, 0x0028, 0x0039, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0030, 0x0029, 0x0028, 0x0031, 0x0030, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0031, 0x0029, 0x0028, 0x0031, 0x0031, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0032, 0x0029, 0x0028, 0x0031, 0x0032, 0x0029, 0xFFFF }; unsigned short unac_data337[] = { 0x0028, 0x0031, 0x0033, 0x0029, 0x0028, 0x0031, 0x0033, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0034, 0x0029, 0x0028, 0x0031, 0x0034, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0035, 0x0029, 0x0028, 0x0031, 0x0035, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0036, 0x0029, 0x0028, 0x0031, 0x0036, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0037, 0x0029, 0x0028, 0x0031, 0x0037, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0038, 0x0029, 0x0028, 0x0031, 0x0038, 0x0029, 0xFFFF, 0x0028, 0x0031, 0x0039, 0x0029, 0x0028, 0x0031, 0x0039, 0x0029, 0xFFFF, 0x0028, 0x0032, 0x0030, 0x0029, 0x0028, 0x0032, 0x0030, 0x0029, 0xFFFF }; unsigned short unac_data338[] = { 0x0031, 0x002E, 0x0031, 0x002E, 0xFFFF, 0x0032, 0x002E, 0x0032, 0x002E, 0xFFFF, 0x0033, 0x002E, 0x0033, 0x002E, 0xFFFF, 0x0034, 0x002E, 0x0034, 0x002E, 0xFFFF, 0x0035, 0x002E, 0x0035, 0x002E, 0xFFFF, 0x0036, 0x002E, 0x0036, 0x002E, 0xFFFF, 0x0037, 0x002E, 0x0037, 0x002E, 0xFFFF, 0x0038, 0x002E, 0x0038, 0x002E, 0xFFFF }; unsigned short unac_data339[] = { 0x0039, 0x002E, 0x0039, 0x002E, 0xFFFF, 0x0031, 0x0030, 0x002E, 0x0031, 0x0030, 0x002E, 0xFFFF, 0x0031, 0x0031, 0x002E, 0x0031, 0x0031, 0x002E, 0xFFFF, 0x0031, 0x0032, 0x002E, 0x0031, 0x0032, 0x002E, 0xFFFF, 0x0031, 0x0033, 0x002E, 0x0031, 0x0033, 0x002E, 0xFFFF, 0x0031, 0x0034, 0x002E, 0x0031, 0x0034, 0x002E, 0xFFFF, 0x0031, 0x0035, 0x002E, 0x0031, 0x0035, 0x002E, 0xFFFF, 0x0031, 0x0036, 0x002E, 0x0031, 0x0036, 0x002E, 0xFFFF }; unsigned short unac_data340[] = { 0x0031, 0x0037, 0x002E, 0x0031, 0x0037, 0x002E, 0xFFFF, 0x0031, 0x0038, 0x002E, 0x0031, 0x0038, 0x002E, 0xFFFF, 0x0031, 0x0039, 0x002E, 0x0031, 0x0039, 0x002E, 0xFFFF, 0x0032, 0x0030, 0x002E, 0x0032, 0x0030, 0x002E, 0xFFFF, 0x0028, 0x0061, 0x0029, 0x0028, 0x0061, 0x0029, 0xFFFF, 0x0028, 0x0062, 0x0029, 0x0028, 0x0062, 0x0029, 0xFFFF, 0x0028, 0x0063, 0x0029, 0x0028, 0x0063, 0x0029, 0xFFFF, 0x0028, 0x0064, 0x0029, 0x0028, 0x0064, 0x0029, 0xFFFF }; unsigned short unac_data341[] = { 0x0028, 0x0065, 0x0029, 0x0028, 0x0065, 0x0029, 0xFFFF, 0x0028, 0x0066, 0x0029, 0x0028, 0x0066, 0x0029, 0xFFFF, 0x0028, 0x0067, 0x0029, 0x0028, 0x0067, 0x0029, 0xFFFF, 0x0028, 0x0068, 0x0029, 0x0028, 0x0068, 0x0029, 0xFFFF, 0x0028, 0x0069, 0x0029, 0x0028, 0x0069, 0x0029, 0xFFFF, 0x0028, 0x006A, 0x0029, 0x0028, 0x006A, 0x0029, 0xFFFF, 0x0028, 0x006B, 0x0029, 0x0028, 0x006B, 0x0029, 0xFFFF, 0x0028, 0x006C, 0x0029, 0x0028, 0x006C, 0x0029, 0xFFFF }; unsigned short unac_data342[] = { 0x0028, 0x006D, 0x0029, 0x0028, 0x006D, 0x0029, 0xFFFF, 0x0028, 0x006E, 0x0029, 0x0028, 0x006E, 0x0029, 0xFFFF, 0x0028, 0x006F, 0x0029, 0x0028, 0x006F, 0x0029, 0xFFFF, 0x0028, 0x0070, 0x0029, 0x0028, 0x0070, 0x0029, 0xFFFF, 0x0028, 0x0071, 0x0029, 0x0028, 0x0071, 0x0029, 0xFFFF, 0x0028, 0x0072, 0x0029, 0x0028, 0x0072, 0x0029, 0xFFFF, 0x0028, 0x0073, 0x0029, 0x0028, 0x0073, 0x0029, 0xFFFF, 0x0028, 0x0074, 0x0029, 0x0028, 0x0074, 0x0029, 0xFFFF }; unsigned short unac_data343[] = { 0x0028, 0x0075, 0x0029, 0x0028, 0x0075, 0x0029, 0xFFFF, 0x0028, 0x0076, 0x0029, 0x0028, 0x0076, 0x0029, 0xFFFF, 0x0028, 0x0077, 0x0029, 0x0028, 0x0077, 0x0029, 0xFFFF, 0x0028, 0x0078, 0x0029, 0x0028, 0x0078, 0x0029, 0xFFFF, 0x0028, 0x0079, 0x0029, 0x0028, 0x0079, 0x0029, 0xFFFF, 0x0028, 0x007A, 0x0029, 0x0028, 0x007A, 0x0029, 0xFFFF, 0x0041, 0x0061, 0x24D0, 0x0042, 0x0062, 0x24D1 }; unsigned short unac_data344[] = { 0x0043, 0x0063, 0x24D2, 0x0044, 0x0064, 0x24D3, 0x0045, 0x0065, 0x24D4, 0x0046, 0x0066, 0x24D5, 0x0047, 0x0067, 0x24D6, 0x0048, 0x0068, 0x24D7, 0x0049, 0x0069, 0x24D8, 0x004A, 0x006A, 0x24D9 }; unsigned short unac_data345[] = { 0x004B, 0x006B, 0x24DA, 0x004C, 0x006C, 0x24DB, 0x004D, 0x006D, 0x24DC, 0x004E, 0x006E, 0x24DD, 0x004F, 0x006F, 0x24DE, 0x0050, 0x0070, 0x24DF, 0x0051, 0x0071, 0x24E0, 0x0052, 0x0072, 0x24E1 }; unsigned short unac_data346[] = { 0x0053, 0x0073, 0x24E2, 0x0054, 0x0074, 0x24E3, 0x0055, 0x0075, 0x24E4, 0x0056, 0x0076, 0x24E5, 0x0057, 0x0077, 0x24E6, 0x0058, 0x0078, 0x24E7, 0x0059, 0x0079, 0x24E8, 0x005A, 0x007A, 0x24E9 }; unsigned short unac_data347[] = { 0x0061, 0x0061, 0xFFFF, 0x0062, 0x0062, 0xFFFF, 0x0063, 0x0063, 0xFFFF, 0x0064, 0x0064, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x0066, 0x0066, 0xFFFF, 0x0067, 0x0067, 0xFFFF, 0x0068, 0x0068, 0xFFFF }; unsigned short unac_data348[] = { 0x0069, 0x0069, 0xFFFF, 0x006A, 0x006A, 0xFFFF, 0x006B, 0x006B, 0xFFFF, 0x006C, 0x006C, 0xFFFF, 0x006D, 0x006D, 0xFFFF, 0x006E, 0x006E, 0xFFFF, 0x006F, 0x006F, 0xFFFF, 0x0070, 0x0070, 0xFFFF }; unsigned short unac_data349[] = { 0x0071, 0x0071, 0xFFFF, 0x0072, 0x0072, 0xFFFF, 0x0073, 0x0073, 0xFFFF, 0x0074, 0x0074, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0076, 0x0076, 0xFFFF, 0x0077, 0x0077, 0xFFFF, 0x0078, 0x0078, 0xFFFF }; unsigned short unac_data350[] = { 0x0079, 0x0079, 0xFFFF, 0x007A, 0x007A, 0xFFFF, 0x0030, 0x0030, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data351[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x222B, 0x222B, 0x222B, 0x222B, 0x222B, 0x222B, 0x222B, 0x222B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data352[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x003A, 0x003A, 0x003D, 0x003A, 0x003A, 0x003D, 0xFFFF, 0x003D, 0x003D, 0x003D, 0x003D, 0xFFFF, 0x003D, 0x003D, 0x003D, 0x003D, 0x003D, 0x003D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data353[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2ADD, 0x2ADD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data354[] = { 0xFFFF, 0x2C30, 0x2C30, 0xFFFF, 0x2C31, 0x2C31, 0xFFFF, 0x2C32, 0x2C32, 0xFFFF, 0x2C33, 0x2C33, 0xFFFF, 0x2C34, 0x2C34, 0xFFFF, 0x2C35, 0x2C35, 0xFFFF, 0x2C36, 0x2C36, 0xFFFF, 0x2C37, 0x2C37 }; unsigned short unac_data355[] = { 0xFFFF, 0x2C38, 0x2C38, 0xFFFF, 0x2C39, 0x2C39, 0xFFFF, 0x2C3A, 0x2C3A, 0xFFFF, 0x2C3B, 0x2C3B, 0xFFFF, 0x2C3C, 0x2C3C, 0xFFFF, 0x2C3D, 0x2C3D, 0xFFFF, 0x2C3E, 0x2C3E, 0xFFFF, 0x2C3F, 0x2C3F }; unsigned short unac_data356[] = { 0xFFFF, 0x2C40, 0x2C40, 0xFFFF, 0x2C41, 0x2C41, 0xFFFF, 0x2C42, 0x2C42, 0xFFFF, 0x2C43, 0x2C43, 0xFFFF, 0x2C44, 0x2C44, 0xFFFF, 0x2C45, 0x2C45, 0xFFFF, 0x2C46, 0x2C46, 0xFFFF, 0x2C47, 0x2C47 }; unsigned short unac_data357[] = { 0xFFFF, 0x2C48, 0x2C48, 0xFFFF, 0x2C49, 0x2C49, 0xFFFF, 0x2C4A, 0x2C4A, 0xFFFF, 0x2C4B, 0x2C4B, 0xFFFF, 0x2C4C, 0x2C4C, 0xFFFF, 0x2C4D, 0x2C4D, 0xFFFF, 0x2C4E, 0x2C4E, 0xFFFF, 0x2C4F, 0x2C4F }; unsigned short unac_data358[] = { 0xFFFF, 0x2C50, 0x2C50, 0xFFFF, 0x2C51, 0x2C51, 0xFFFF, 0x2C52, 0x2C52, 0xFFFF, 0x2C53, 0x2C53, 0xFFFF, 0x2C54, 0x2C54, 0xFFFF, 0x2C55, 0x2C55, 0xFFFF, 0x2C56, 0x2C56, 0xFFFF, 0x2C57, 0x2C57 }; unsigned short unac_data359[] = { 0xFFFF, 0x2C58, 0x2C58, 0xFFFF, 0x2C59, 0x2C59, 0xFFFF, 0x2C5A, 0x2C5A, 0xFFFF, 0x2C5B, 0x2C5B, 0xFFFF, 0x2C5C, 0x2C5C, 0xFFFF, 0x2C5D, 0x2C5D, 0xFFFF, 0x2C5E, 0x2C5E, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data360[] = { 0xFFFF, 0x2C61, 0x2C61, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x026B, 0x026B, 0xFFFF, 0x1D7D, 0x1D7D, 0xFFFF, 0x027D, 0x027D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C68, 0x2C68 }; unsigned short unac_data361[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C6A, 0x2C6A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C6C, 0x2C6C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0251, 0x0251, 0xFFFF, 0x0271, 0x0271, 0xFFFF, 0x0250, 0x0250 }; unsigned short unac_data362[] = { 0xFFFF, 0x0252, 0x0252, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C73, 0x2C73, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C76, 0x2C76, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data363[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x006A, 0x006A, 0xFFFF, 0x0056, 0x0076, 0xFFFF, 0xFFFF, 0x023F, 0x023F, 0xFFFF, 0x0240, 0x0240 }; unsigned short unac_data364[] = { 0xFFFF, 0x2C81, 0x2C81, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C83, 0x2C83, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C85, 0x2C85, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C87, 0x2C87, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data365[] = { 0xFFFF, 0x2C89, 0x2C89, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C8B, 0x2C8B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C8D, 0x2C8D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C8F, 0x2C8F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data366[] = { 0xFFFF, 0x2C91, 0x2C91, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C93, 0x2C93, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C95, 0x2C95, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C97, 0x2C97, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data367[] = { 0xFFFF, 0x2C99, 0x2C99, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C9B, 0x2C9B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C9D, 0x2C9D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2C9F, 0x2C9F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data368[] = { 0xFFFF, 0x2CA1, 0x2CA1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CA3, 0x2CA3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CA5, 0x2CA5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CA7, 0x2CA7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data369[] = { 0xFFFF, 0x2CA9, 0x2CA9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CAB, 0x2CAB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CAD, 0x2CAD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CAF, 0x2CAF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data370[] = { 0xFFFF, 0x2CB1, 0x2CB1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CB3, 0x2CB3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CB5, 0x2CB5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CB7, 0x2CB7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data371[] = { 0xFFFF, 0x2CB9, 0x2CB9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CBB, 0x2CBB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CBD, 0x2CBD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CBF, 0x2CBF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data372[] = { 0xFFFF, 0x2CC1, 0x2CC1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CC3, 0x2CC3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CC5, 0x2CC5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CC7, 0x2CC7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data373[] = { 0xFFFF, 0x2CC9, 0x2CC9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CCB, 0x2CCB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CCD, 0x2CCD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CCF, 0x2CCF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data374[] = { 0xFFFF, 0x2CD1, 0x2CD1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CD3, 0x2CD3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CD5, 0x2CD5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CD7, 0x2CD7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data375[] = { 0xFFFF, 0x2CD9, 0x2CD9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CDB, 0x2CDB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CDD, 0x2CDD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CDF, 0x2CDF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data376[] = { 0xFFFF, 0x2CE1, 0x2CE1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CE3, 0x2CE3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data377[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CEC, 0x2CEC, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2CEE, 0x2CEE, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data378[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0x2CF3, 0x2CF3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data379[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x2D61, 0x2D61, 0xFFFF }; unsigned short unac_data380[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x6BCD, 0x6BCD, 0xFFFF }; unsigned short unac_data381[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x9F9F, 0x9F9F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data382[] = { 0x4E00, 0x4E00, 0xFFFF, 0x4E28, 0x4E28, 0xFFFF, 0x4E36, 0x4E36, 0xFFFF, 0x4E3F, 0x4E3F, 0xFFFF, 0x4E59, 0x4E59, 0xFFFF, 0x4E85, 0x4E85, 0xFFFF, 0x4E8C, 0x4E8C, 0xFFFF, 0x4EA0, 0x4EA0, 0xFFFF }; unsigned short unac_data383[] = { 0x4EBA, 0x4EBA, 0xFFFF, 0x513F, 0x513F, 0xFFFF, 0x5165, 0x5165, 0xFFFF, 0x516B, 0x516B, 0xFFFF, 0x5182, 0x5182, 0xFFFF, 0x5196, 0x5196, 0xFFFF, 0x51AB, 0x51AB, 0xFFFF, 0x51E0, 0x51E0, 0xFFFF }; unsigned short unac_data384[] = { 0x51F5, 0x51F5, 0xFFFF, 0x5200, 0x5200, 0xFFFF, 0x529B, 0x529B, 0xFFFF, 0x52F9, 0x52F9, 0xFFFF, 0x5315, 0x5315, 0xFFFF, 0x531A, 0x531A, 0xFFFF, 0x5338, 0x5338, 0xFFFF, 0x5341, 0x5341, 0xFFFF }; unsigned short unac_data385[] = { 0x535C, 0x535C, 0xFFFF, 0x5369, 0x5369, 0xFFFF, 0x5382, 0x5382, 0xFFFF, 0x53B6, 0x53B6, 0xFFFF, 0x53C8, 0x53C8, 0xFFFF, 0x53E3, 0x53E3, 0xFFFF, 0x56D7, 0x56D7, 0xFFFF, 0x571F, 0x571F, 0xFFFF }; unsigned short unac_data386[] = { 0x58EB, 0x58EB, 0xFFFF, 0x5902, 0x5902, 0xFFFF, 0x590A, 0x590A, 0xFFFF, 0x5915, 0x5915, 0xFFFF, 0x5927, 0x5927, 0xFFFF, 0x5973, 0x5973, 0xFFFF, 0x5B50, 0x5B50, 0xFFFF, 0x5B80, 0x5B80, 0xFFFF }; unsigned short unac_data387[] = { 0x5BF8, 0x5BF8, 0xFFFF, 0x5C0F, 0x5C0F, 0xFFFF, 0x5C22, 0x5C22, 0xFFFF, 0x5C38, 0x5C38, 0xFFFF, 0x5C6E, 0x5C6E, 0xFFFF, 0x5C71, 0x5C71, 0xFFFF, 0x5DDB, 0x5DDB, 0xFFFF, 0x5DE5, 0x5DE5, 0xFFFF }; unsigned short unac_data388[] = { 0x5DF1, 0x5DF1, 0xFFFF, 0x5DFE, 0x5DFE, 0xFFFF, 0x5E72, 0x5E72, 0xFFFF, 0x5E7A, 0x5E7A, 0xFFFF, 0x5E7F, 0x5E7F, 0xFFFF, 0x5EF4, 0x5EF4, 0xFFFF, 0x5EFE, 0x5EFE, 0xFFFF, 0x5F0B, 0x5F0B, 0xFFFF }; unsigned short unac_data389[] = { 0x5F13, 0x5F13, 0xFFFF, 0x5F50, 0x5F50, 0xFFFF, 0x5F61, 0x5F61, 0xFFFF, 0x5F73, 0x5F73, 0xFFFF, 0x5FC3, 0x5FC3, 0xFFFF, 0x6208, 0x6208, 0xFFFF, 0x6236, 0x6236, 0xFFFF, 0x624B, 0x624B, 0xFFFF }; unsigned short unac_data390[] = { 0x652F, 0x652F, 0xFFFF, 0x6534, 0x6534, 0xFFFF, 0x6587, 0x6587, 0xFFFF, 0x6597, 0x6597, 0xFFFF, 0x65A4, 0x65A4, 0xFFFF, 0x65B9, 0x65B9, 0xFFFF, 0x65E0, 0x65E0, 0xFFFF, 0x65E5, 0x65E5, 0xFFFF }; unsigned short unac_data391[] = { 0x66F0, 0x66F0, 0xFFFF, 0x6708, 0x6708, 0xFFFF, 0x6728, 0x6728, 0xFFFF, 0x6B20, 0x6B20, 0xFFFF, 0x6B62, 0x6B62, 0xFFFF, 0x6B79, 0x6B79, 0xFFFF, 0x6BB3, 0x6BB3, 0xFFFF, 0x6BCB, 0x6BCB, 0xFFFF }; unsigned short unac_data392[] = { 0x6BD4, 0x6BD4, 0xFFFF, 0x6BDB, 0x6BDB, 0xFFFF, 0x6C0F, 0x6C0F, 0xFFFF, 0x6C14, 0x6C14, 0xFFFF, 0x6C34, 0x6C34, 0xFFFF, 0x706B, 0x706B, 0xFFFF, 0x722A, 0x722A, 0xFFFF, 0x7236, 0x7236, 0xFFFF }; unsigned short unac_data393[] = { 0x723B, 0x723B, 0xFFFF, 0x723F, 0x723F, 0xFFFF, 0x7247, 0x7247, 0xFFFF, 0x7259, 0x7259, 0xFFFF, 0x725B, 0x725B, 0xFFFF, 0x72AC, 0x72AC, 0xFFFF, 0x7384, 0x7384, 0xFFFF, 0x7389, 0x7389, 0xFFFF }; unsigned short unac_data394[] = { 0x74DC, 0x74DC, 0xFFFF, 0x74E6, 0x74E6, 0xFFFF, 0x7518, 0x7518, 0xFFFF, 0x751F, 0x751F, 0xFFFF, 0x7528, 0x7528, 0xFFFF, 0x7530, 0x7530, 0xFFFF, 0x758B, 0x758B, 0xFFFF, 0x7592, 0x7592, 0xFFFF }; unsigned short unac_data395[] = { 0x7676, 0x7676, 0xFFFF, 0x767D, 0x767D, 0xFFFF, 0x76AE, 0x76AE, 0xFFFF, 0x76BF, 0x76BF, 0xFFFF, 0x76EE, 0x76EE, 0xFFFF, 0x77DB, 0x77DB, 0xFFFF, 0x77E2, 0x77E2, 0xFFFF, 0x77F3, 0x77F3, 0xFFFF }; unsigned short unac_data396[] = { 0x793A, 0x793A, 0xFFFF, 0x79B8, 0x79B8, 0xFFFF, 0x79BE, 0x79BE, 0xFFFF, 0x7A74, 0x7A74, 0xFFFF, 0x7ACB, 0x7ACB, 0xFFFF, 0x7AF9, 0x7AF9, 0xFFFF, 0x7C73, 0x7C73, 0xFFFF, 0x7CF8, 0x7CF8, 0xFFFF }; unsigned short unac_data397[] = { 0x7F36, 0x7F36, 0xFFFF, 0x7F51, 0x7F51, 0xFFFF, 0x7F8A, 0x7F8A, 0xFFFF, 0x7FBD, 0x7FBD, 0xFFFF, 0x8001, 0x8001, 0xFFFF, 0x800C, 0x800C, 0xFFFF, 0x8012, 0x8012, 0xFFFF, 0x8033, 0x8033, 0xFFFF }; unsigned short unac_data398[] = { 0x807F, 0x807F, 0xFFFF, 0x8089, 0x8089, 0xFFFF, 0x81E3, 0x81E3, 0xFFFF, 0x81EA, 0x81EA, 0xFFFF, 0x81F3, 0x81F3, 0xFFFF, 0x81FC, 0x81FC, 0xFFFF, 0x820C, 0x820C, 0xFFFF, 0x821B, 0x821B, 0xFFFF }; unsigned short unac_data399[] = { 0x821F, 0x821F, 0xFFFF, 0x826E, 0x826E, 0xFFFF, 0x8272, 0x8272, 0xFFFF, 0x8278, 0x8278, 0xFFFF, 0x864D, 0x864D, 0xFFFF, 0x866B, 0x866B, 0xFFFF, 0x8840, 0x8840, 0xFFFF, 0x884C, 0x884C, 0xFFFF }; unsigned short unac_data400[] = { 0x8863, 0x8863, 0xFFFF, 0x897E, 0x897E, 0xFFFF, 0x898B, 0x898B, 0xFFFF, 0x89D2, 0x89D2, 0xFFFF, 0x8A00, 0x8A00, 0xFFFF, 0x8C37, 0x8C37, 0xFFFF, 0x8C46, 0x8C46, 0xFFFF, 0x8C55, 0x8C55, 0xFFFF }; unsigned short unac_data401[] = { 0x8C78, 0x8C78, 0xFFFF, 0x8C9D, 0x8C9D, 0xFFFF, 0x8D64, 0x8D64, 0xFFFF, 0x8D70, 0x8D70, 0xFFFF, 0x8DB3, 0x8DB3, 0xFFFF, 0x8EAB, 0x8EAB, 0xFFFF, 0x8ECA, 0x8ECA, 0xFFFF, 0x8F9B, 0x8F9B, 0xFFFF }; unsigned short unac_data402[] = { 0x8FB0, 0x8FB0, 0xFFFF, 0x8FB5, 0x8FB5, 0xFFFF, 0x9091, 0x9091, 0xFFFF, 0x9149, 0x9149, 0xFFFF, 0x91C6, 0x91C6, 0xFFFF, 0x91CC, 0x91CC, 0xFFFF, 0x91D1, 0x91D1, 0xFFFF, 0x9577, 0x9577, 0xFFFF }; unsigned short unac_data403[] = { 0x9580, 0x9580, 0xFFFF, 0x961C, 0x961C, 0xFFFF, 0x96B6, 0x96B6, 0xFFFF, 0x96B9, 0x96B9, 0xFFFF, 0x96E8, 0x96E8, 0xFFFF, 0x9751, 0x9751, 0xFFFF, 0x975E, 0x975E, 0xFFFF, 0x9762, 0x9762, 0xFFFF }; unsigned short unac_data404[] = { 0x9769, 0x9769, 0xFFFF, 0x97CB, 0x97CB, 0xFFFF, 0x97ED, 0x97ED, 0xFFFF, 0x97F3, 0x97F3, 0xFFFF, 0x9801, 0x9801, 0xFFFF, 0x98A8, 0x98A8, 0xFFFF, 0x98DB, 0x98DB, 0xFFFF, 0x98DF, 0x98DF, 0xFFFF }; unsigned short unac_data405[] = { 0x9996, 0x9996, 0xFFFF, 0x9999, 0x9999, 0xFFFF, 0x99AC, 0x99AC, 0xFFFF, 0x9AA8, 0x9AA8, 0xFFFF, 0x9AD8, 0x9AD8, 0xFFFF, 0x9ADF, 0x9ADF, 0xFFFF, 0x9B25, 0x9B25, 0xFFFF, 0x9B2F, 0x9B2F, 0xFFFF }; unsigned short unac_data406[] = { 0x9B32, 0x9B32, 0xFFFF, 0x9B3C, 0x9B3C, 0xFFFF, 0x9B5A, 0x9B5A, 0xFFFF, 0x9CE5, 0x9CE5, 0xFFFF, 0x9E75, 0x9E75, 0xFFFF, 0x9E7F, 0x9E7F, 0xFFFF, 0x9EA5, 0x9EA5, 0xFFFF, 0x9EBB, 0x9EBB, 0xFFFF }; unsigned short unac_data407[] = { 0x9EC3, 0x9EC3, 0xFFFF, 0x9ECD, 0x9ECD, 0xFFFF, 0x9ED1, 0x9ED1, 0xFFFF, 0x9EF9, 0x9EF9, 0xFFFF, 0x9EFD, 0x9EFD, 0xFFFF, 0x9F0E, 0x9F0E, 0xFFFF, 0x9F13, 0x9F13, 0xFFFF, 0x9F20, 0x9F20, 0xFFFF }; unsigned short unac_data408[] = { 0x9F3B, 0x9F3B, 0xFFFF, 0x9F4A, 0x9F4A, 0xFFFF, 0x9F52, 0x9F52, 0xFFFF, 0x9F8D, 0x9F8D, 0xFFFF, 0x9F9C, 0x9F9C, 0xFFFF, 0x9FA0, 0x9FA0, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data409[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x3012, 0x3012, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data410[] = { 0x5341, 0x5341, 0xFFFF, 0x5344, 0x5344, 0xFFFF, 0x5345, 0x5345, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data411[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x1100, 0x1100, 0xFFFF, 0x1101, 0x1101, 0xFFFF, 0x11AA, 0x11AA, 0xFFFF, 0x1102, 0x1102, 0xFFFF, 0x11AC, 0x11AC, 0xFFFF, 0x11AD, 0x11AD, 0xFFFF, 0x1103, 0x1103, 0xFFFF }; unsigned short unac_data412[] = { 0x1104, 0x1104, 0xFFFF, 0x1105, 0x1105, 0xFFFF, 0x11B0, 0x11B0, 0xFFFF, 0x11B1, 0x11B1, 0xFFFF, 0x11B2, 0x11B2, 0xFFFF, 0x11B3, 0x11B3, 0xFFFF, 0x11B4, 0x11B4, 0xFFFF, 0x11B5, 0x11B5, 0xFFFF }; unsigned short unac_data413[] = { 0x111A, 0x111A, 0xFFFF, 0x1106, 0x1106, 0xFFFF, 0x1107, 0x1107, 0xFFFF, 0x1108, 0x1108, 0xFFFF, 0x1121, 0x1121, 0xFFFF, 0x1109, 0x1109, 0xFFFF, 0x110A, 0x110A, 0xFFFF, 0x110B, 0x110B, 0xFFFF }; unsigned short unac_data414[] = { 0x110C, 0x110C, 0xFFFF, 0x110D, 0x110D, 0xFFFF, 0x110E, 0x110E, 0xFFFF, 0x110F, 0x110F, 0xFFFF, 0x1110, 0x1110, 0xFFFF, 0x1111, 0x1111, 0xFFFF, 0x1112, 0x1112, 0xFFFF, 0x1161, 0x1161, 0xFFFF }; unsigned short unac_data415[] = { 0x1162, 0x1162, 0xFFFF, 0x1163, 0x1163, 0xFFFF, 0x1164, 0x1164, 0xFFFF, 0x1165, 0x1165, 0xFFFF, 0x1166, 0x1166, 0xFFFF, 0x1167, 0x1167, 0xFFFF, 0x1168, 0x1168, 0xFFFF, 0x1169, 0x1169, 0xFFFF }; unsigned short unac_data416[] = { 0x116A, 0x116A, 0xFFFF, 0x116B, 0x116B, 0xFFFF, 0x116C, 0x116C, 0xFFFF, 0x116D, 0x116D, 0xFFFF, 0x116E, 0x116E, 0xFFFF, 0x116F, 0x116F, 0xFFFF, 0x1170, 0x1170, 0xFFFF, 0x1171, 0x1171, 0xFFFF }; unsigned short unac_data417[] = { 0x1172, 0x1172, 0xFFFF, 0x1173, 0x1173, 0xFFFF, 0x1174, 0x1174, 0xFFFF, 0x1175, 0x1175, 0xFFFF, 0x1160, 0x1160, 0xFFFF, 0x1114, 0x1114, 0xFFFF, 0x1115, 0x1115, 0xFFFF, 0x11C7, 0x11C7, 0xFFFF }; unsigned short unac_data418[] = { 0x11C8, 0x11C8, 0xFFFF, 0x11CC, 0x11CC, 0xFFFF, 0x11CE, 0x11CE, 0xFFFF, 0x11D3, 0x11D3, 0xFFFF, 0x11D7, 0x11D7, 0xFFFF, 0x11D9, 0x11D9, 0xFFFF, 0x111C, 0x111C, 0xFFFF, 0x11DD, 0x11DD, 0xFFFF }; unsigned short unac_data419[] = { 0x11DF, 0x11DF, 0xFFFF, 0x111D, 0x111D, 0xFFFF, 0x111E, 0x111E, 0xFFFF, 0x1120, 0x1120, 0xFFFF, 0x1122, 0x1122, 0xFFFF, 0x1123, 0x1123, 0xFFFF, 0x1127, 0x1127, 0xFFFF, 0x1129, 0x1129, 0xFFFF }; unsigned short unac_data420[] = { 0x112B, 0x112B, 0xFFFF, 0x112C, 0x112C, 0xFFFF, 0x112D, 0x112D, 0xFFFF, 0x112E, 0x112E, 0xFFFF, 0x112F, 0x112F, 0xFFFF, 0x1132, 0x1132, 0xFFFF, 0x1136, 0x1136, 0xFFFF, 0x1140, 0x1140, 0xFFFF }; unsigned short unac_data421[] = { 0x1147, 0x1147, 0xFFFF, 0x114C, 0x114C, 0xFFFF, 0x11F1, 0x11F1, 0xFFFF, 0x11F2, 0x11F2, 0xFFFF, 0x1157, 0x1157, 0xFFFF, 0x1158, 0x1158, 0xFFFF, 0x1159, 0x1159, 0xFFFF, 0x1184, 0x1184, 0xFFFF }; unsigned short unac_data422[] = { 0x1185, 0x1185, 0xFFFF, 0x1188, 0x1188, 0xFFFF, 0x1191, 0x1191, 0xFFFF, 0x1192, 0x1192, 0xFFFF, 0x1194, 0x1194, 0xFFFF, 0x119E, 0x119E, 0xFFFF, 0x11A1, 0x11A1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data423[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x4E00, 0x4E00, 0xFFFF, 0x4E8C, 0x4E8C, 0xFFFF, 0x4E09, 0x4E09, 0xFFFF, 0x56DB, 0x56DB, 0xFFFF, 0x4E0A, 0x4E0A, 0xFFFF, 0x4E2D, 0x4E2D, 0xFFFF }; unsigned short unac_data424[] = { 0x4E0B, 0x4E0B, 0xFFFF, 0x7532, 0x7532, 0xFFFF, 0x4E59, 0x4E59, 0xFFFF, 0x4E19, 0x4E19, 0xFFFF, 0x4E01, 0x4E01, 0xFFFF, 0x5929, 0x5929, 0xFFFF, 0x5730, 0x5730, 0xFFFF, 0x4EBA, 0x4EBA, 0xFFFF }; unsigned short unac_data425[] = { 0x0028, 0x1100, 0x0029, 0x0028, 0x1100, 0x0029, 0xFFFF, 0x0028, 0x1102, 0x0029, 0x0028, 0x1102, 0x0029, 0xFFFF, 0x0028, 0x1103, 0x0029, 0x0028, 0x1103, 0x0029, 0xFFFF, 0x0028, 0x1105, 0x0029, 0x0028, 0x1105, 0x0029, 0xFFFF, 0x0028, 0x1106, 0x0029, 0x0028, 0x1106, 0x0029, 0xFFFF, 0x0028, 0x1107, 0x0029, 0x0028, 0x1107, 0x0029, 0xFFFF, 0x0028, 0x1109, 0x0029, 0x0028, 0x1109, 0x0029, 0xFFFF, 0x0028, 0x110B, 0x0029, 0x0028, 0x110B, 0x0029, 0xFFFF }; unsigned short unac_data426[] = { 0x0028, 0x110C, 0x0029, 0x0028, 0x110C, 0x0029, 0xFFFF, 0x0028, 0x110E, 0x0029, 0x0028, 0x110E, 0x0029, 0xFFFF, 0x0028, 0x110F, 0x0029, 0x0028, 0x110F, 0x0029, 0xFFFF, 0x0028, 0x1110, 0x0029, 0x0028, 0x1110, 0x0029, 0xFFFF, 0x0028, 0x1111, 0x0029, 0x0028, 0x1111, 0x0029, 0xFFFF, 0x0028, 0x1112, 0x0029, 0x0028, 0x1112, 0x0029, 0xFFFF, 0x0028, 0x1100, 0x1161, 0x0029, 0x0028, 0x1100, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1102, 0x1161, 0x0029, 0x0028, 0x1102, 0x1161, 0x0029, 0xFFFF }; unsigned short unac_data427[] = { 0x0028, 0x1103, 0x1161, 0x0029, 0x0028, 0x1103, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1105, 0x1161, 0x0029, 0x0028, 0x1105, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1106, 0x1161, 0x0029, 0x0028, 0x1106, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1107, 0x1161, 0x0029, 0x0028, 0x1107, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1109, 0x1161, 0x0029, 0x0028, 0x1109, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x110B, 0x1161, 0x0029, 0x0028, 0x110B, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x110C, 0x1161, 0x0029, 0x0028, 0x110C, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x110E, 0x1161, 0x0029, 0x0028, 0x110E, 0x1161, 0x0029, 0xFFFF }; unsigned short unac_data428[] = { 0x0028, 0x110F, 0x1161, 0x0029, 0x0028, 0x110F, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1110, 0x1161, 0x0029, 0x0028, 0x1110, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1111, 0x1161, 0x0029, 0x0028, 0x1111, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x1112, 0x1161, 0x0029, 0x0028, 0x1112, 0x1161, 0x0029, 0xFFFF, 0x0028, 0x110C, 0x116E, 0x0029, 0x0028, 0x110C, 0x116E, 0x0029, 0xFFFF, 0x0028, 0x110B, 0x1169, 0x110C, 0x1165, 0x11AB, 0x0029, 0x0028, 0x110B, 0x1169, 0x110C, 0x1165, 0x11AB, 0x0029, 0xFFFF, 0x0028, 0x110B, 0x1169, 0x1112, 0x116E, 0x0029, 0x0028, 0x110B, 0x1169, 0x1112, 0x116E, 0x0029, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data429[] = { 0x0028, 0x4E00, 0x0029, 0x0028, 0x4E00, 0x0029, 0xFFFF, 0x0028, 0x4E8C, 0x0029, 0x0028, 0x4E8C, 0x0029, 0xFFFF, 0x0028, 0x4E09, 0x0029, 0x0028, 0x4E09, 0x0029, 0xFFFF, 0x0028, 0x56DB, 0x0029, 0x0028, 0x56DB, 0x0029, 0xFFFF, 0x0028, 0x4E94, 0x0029, 0x0028, 0x4E94, 0x0029, 0xFFFF, 0x0028, 0x516D, 0x0029, 0x0028, 0x516D, 0x0029, 0xFFFF, 0x0028, 0x4E03, 0x0029, 0x0028, 0x4E03, 0x0029, 0xFFFF, 0x0028, 0x516B, 0x0029, 0x0028, 0x516B, 0x0029, 0xFFFF }; unsigned short unac_data430[] = { 0x0028, 0x4E5D, 0x0029, 0x0028, 0x4E5D, 0x0029, 0xFFFF, 0x0028, 0x5341, 0x0029, 0x0028, 0x5341, 0x0029, 0xFFFF, 0x0028, 0x6708, 0x0029, 0x0028, 0x6708, 0x0029, 0xFFFF, 0x0028, 0x706B, 0x0029, 0x0028, 0x706B, 0x0029, 0xFFFF, 0x0028, 0x6C34, 0x0029, 0x0028, 0x6C34, 0x0029, 0xFFFF, 0x0028, 0x6728, 0x0029, 0x0028, 0x6728, 0x0029, 0xFFFF, 0x0028, 0x91D1, 0x0029, 0x0028, 0x91D1, 0x0029, 0xFFFF, 0x0028, 0x571F, 0x0029, 0x0028, 0x571F, 0x0029, 0xFFFF }; unsigned short unac_data431[] = { 0x0028, 0x65E5, 0x0029, 0x0028, 0x65E5, 0x0029, 0xFFFF, 0x0028, 0x682A, 0x0029, 0x0028, 0x682A, 0x0029, 0xFFFF, 0x0028, 0x6709, 0x0029, 0x0028, 0x6709, 0x0029, 0xFFFF, 0x0028, 0x793E, 0x0029, 0x0028, 0x793E, 0x0029, 0xFFFF, 0x0028, 0x540D, 0x0029, 0x0028, 0x540D, 0x0029, 0xFFFF, 0x0028, 0x7279, 0x0029, 0x0028, 0x7279, 0x0029, 0xFFFF, 0x0028, 0x8CA1, 0x0029, 0x0028, 0x8CA1, 0x0029, 0xFFFF, 0x0028, 0x795D, 0x0029, 0x0028, 0x795D, 0x0029, 0xFFFF }; unsigned short unac_data432[] = { 0x0028, 0x52B4, 0x0029, 0x0028, 0x52B4, 0x0029, 0xFFFF, 0x0028, 0x4EE3, 0x0029, 0x0028, 0x4EE3, 0x0029, 0xFFFF, 0x0028, 0x547C, 0x0029, 0x0028, 0x547C, 0x0029, 0xFFFF, 0x0028, 0x5B66, 0x0029, 0x0028, 0x5B66, 0x0029, 0xFFFF, 0x0028, 0x76E3, 0x0029, 0x0028, 0x76E3, 0x0029, 0xFFFF, 0x0028, 0x4F01, 0x0029, 0x0028, 0x4F01, 0x0029, 0xFFFF, 0x0028, 0x8CC7, 0x0029, 0x0028, 0x8CC7, 0x0029, 0xFFFF, 0x0028, 0x5354, 0x0029, 0x0028, 0x5354, 0x0029, 0xFFFF }; unsigned short unac_data433[] = { 0x0028, 0x796D, 0x0029, 0x0028, 0x796D, 0x0029, 0xFFFF, 0x0028, 0x4F11, 0x0029, 0x0028, 0x4F11, 0x0029, 0xFFFF, 0x0028, 0x81EA, 0x0029, 0x0028, 0x81EA, 0x0029, 0xFFFF, 0x0028, 0x81F3, 0x0029, 0x0028, 0x81F3, 0x0029, 0xFFFF, 0x554F, 0x554F, 0xFFFF, 0x5E7C, 0x5E7C, 0xFFFF, 0x6587, 0x6587, 0xFFFF, 0x7B8F, 0x7B8F, 0xFFFF }; unsigned short unac_data434[] = { 0x0050, 0x0054, 0x0045, 0x0070, 0x0074, 0x0065, 0xFFFF, 0x0032, 0x0031, 0x0032, 0x0031, 0xFFFF, 0x0032, 0x0032, 0x0032, 0x0032, 0xFFFF, 0x0032, 0x0033, 0x0032, 0x0033, 0xFFFF, 0x0032, 0x0034, 0x0032, 0x0034, 0xFFFF, 0x0032, 0x0035, 0x0032, 0x0035, 0xFFFF, 0x0032, 0x0036, 0x0032, 0x0036, 0xFFFF, 0x0032, 0x0037, 0x0032, 0x0037, 0xFFFF }; unsigned short unac_data435[] = { 0x0032, 0x0038, 0x0032, 0x0038, 0xFFFF, 0x0032, 0x0039, 0x0032, 0x0039, 0xFFFF, 0x0033, 0x0030, 0x0033, 0x0030, 0xFFFF, 0x0033, 0x0031, 0x0033, 0x0031, 0xFFFF, 0x0033, 0x0032, 0x0033, 0x0032, 0xFFFF, 0x0033, 0x0033, 0x0033, 0x0033, 0xFFFF, 0x0033, 0x0034, 0x0033, 0x0034, 0xFFFF, 0x0033, 0x0035, 0x0033, 0x0035, 0xFFFF }; unsigned short unac_data436[] = { 0x1100, 0x1100, 0xFFFF, 0x1102, 0x1102, 0xFFFF, 0x1103, 0x1103, 0xFFFF, 0x1105, 0x1105, 0xFFFF, 0x1106, 0x1106, 0xFFFF, 0x1107, 0x1107, 0xFFFF, 0x1109, 0x1109, 0xFFFF, 0x110B, 0x110B, 0xFFFF }; unsigned short unac_data437[] = { 0x110C, 0x110C, 0xFFFF, 0x110E, 0x110E, 0xFFFF, 0x110F, 0x110F, 0xFFFF, 0x1110, 0x1110, 0xFFFF, 0x1111, 0x1111, 0xFFFF, 0x1112, 0x1112, 0xFFFF, 0x1100, 0x1161, 0x1100, 0x1161, 0xFFFF, 0x1102, 0x1161, 0x1102, 0x1161, 0xFFFF }; unsigned short unac_data438[] = { 0x1103, 0x1161, 0x1103, 0x1161, 0xFFFF, 0x1105, 0x1161, 0x1105, 0x1161, 0xFFFF, 0x1106, 0x1161, 0x1106, 0x1161, 0xFFFF, 0x1107, 0x1161, 0x1107, 0x1161, 0xFFFF, 0x1109, 0x1161, 0x1109, 0x1161, 0xFFFF, 0x110B, 0x1161, 0x110B, 0x1161, 0xFFFF, 0x110C, 0x1161, 0x110C, 0x1161, 0xFFFF, 0x110E, 0x1161, 0x110E, 0x1161, 0xFFFF }; unsigned short unac_data439[] = { 0x110F, 0x1161, 0x110F, 0x1161, 0xFFFF, 0x1110, 0x1161, 0x1110, 0x1161, 0xFFFF, 0x1111, 0x1161, 0x1111, 0x1161, 0xFFFF, 0x1112, 0x1161, 0x1112, 0x1161, 0xFFFF, 0x110E, 0x1161, 0x11B7, 0x1100, 0x1169, 0x110E, 0x1161, 0x11B7, 0x1100, 0x1169, 0xFFFF, 0x110C, 0x116E, 0x110B, 0x1174, 0x110C, 0x116E, 0x110B, 0x1174, 0xFFFF, 0x110B, 0x116E, 0x110B, 0x116E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data440[] = { 0x4E00, 0x4E00, 0xFFFF, 0x4E8C, 0x4E8C, 0xFFFF, 0x4E09, 0x4E09, 0xFFFF, 0x56DB, 0x56DB, 0xFFFF, 0x4E94, 0x4E94, 0xFFFF, 0x516D, 0x516D, 0xFFFF, 0x4E03, 0x4E03, 0xFFFF, 0x516B, 0x516B, 0xFFFF }; unsigned short unac_data441[] = { 0x4E5D, 0x4E5D, 0xFFFF, 0x5341, 0x5341, 0xFFFF, 0x6708, 0x6708, 0xFFFF, 0x706B, 0x706B, 0xFFFF, 0x6C34, 0x6C34, 0xFFFF, 0x6728, 0x6728, 0xFFFF, 0x91D1, 0x91D1, 0xFFFF, 0x571F, 0x571F, 0xFFFF }; unsigned short unac_data442[] = { 0x65E5, 0x65E5, 0xFFFF, 0x682A, 0x682A, 0xFFFF, 0x6709, 0x6709, 0xFFFF, 0x793E, 0x793E, 0xFFFF, 0x540D, 0x540D, 0xFFFF, 0x7279, 0x7279, 0xFFFF, 0x8CA1, 0x8CA1, 0xFFFF, 0x795D, 0x795D, 0xFFFF }; unsigned short unac_data443[] = { 0x52B4, 0x52B4, 0xFFFF, 0x79D8, 0x79D8, 0xFFFF, 0x7537, 0x7537, 0xFFFF, 0x5973, 0x5973, 0xFFFF, 0x9069, 0x9069, 0xFFFF, 0x512A, 0x512A, 0xFFFF, 0x5370, 0x5370, 0xFFFF, 0x6CE8, 0x6CE8, 0xFFFF }; unsigned short unac_data444[] = { 0x9805, 0x9805, 0xFFFF, 0x4F11, 0x4F11, 0xFFFF, 0x5199, 0x5199, 0xFFFF, 0x6B63, 0x6B63, 0xFFFF, 0x4E0A, 0x4E0A, 0xFFFF, 0x4E2D, 0x4E2D, 0xFFFF, 0x4E0B, 0x4E0B, 0xFFFF, 0x5DE6, 0x5DE6, 0xFFFF }; unsigned short unac_data445[] = { 0x53F3, 0x53F3, 0xFFFF, 0x533B, 0x533B, 0xFFFF, 0x5B97, 0x5B97, 0xFFFF, 0x5B66, 0x5B66, 0xFFFF, 0x76E3, 0x76E3, 0xFFFF, 0x4F01, 0x4F01, 0xFFFF, 0x8CC7, 0x8CC7, 0xFFFF, 0x5354, 0x5354, 0xFFFF }; unsigned short unac_data446[] = { 0x591C, 0x591C, 0xFFFF, 0x0033, 0x0036, 0x0033, 0x0036, 0xFFFF, 0x0033, 0x0037, 0x0033, 0x0037, 0xFFFF, 0x0033, 0x0038, 0x0033, 0x0038, 0xFFFF, 0x0033, 0x0039, 0x0033, 0x0039, 0xFFFF, 0x0034, 0x0030, 0x0034, 0x0030, 0xFFFF, 0x0034, 0x0031, 0x0034, 0x0031, 0xFFFF, 0x0034, 0x0032, 0x0034, 0x0032, 0xFFFF }; unsigned short unac_data447[] = { 0x0034, 0x0033, 0x0034, 0x0033, 0xFFFF, 0x0034, 0x0034, 0x0034, 0x0034, 0xFFFF, 0x0034, 0x0035, 0x0034, 0x0035, 0xFFFF, 0x0034, 0x0036, 0x0034, 0x0036, 0xFFFF, 0x0034, 0x0037, 0x0034, 0x0037, 0xFFFF, 0x0034, 0x0038, 0x0034, 0x0038, 0xFFFF, 0x0034, 0x0039, 0x0034, 0x0039, 0xFFFF, 0x0035, 0x0030, 0x0035, 0x0030, 0xFFFF }; unsigned short unac_data448[] = { 0x0031, 0x6708, 0x0031, 0x6708, 0xFFFF, 0x0032, 0x6708, 0x0032, 0x6708, 0xFFFF, 0x0033, 0x6708, 0x0033, 0x6708, 0xFFFF, 0x0034, 0x6708, 0x0034, 0x6708, 0xFFFF, 0x0035, 0x6708, 0x0035, 0x6708, 0xFFFF, 0x0036, 0x6708, 0x0036, 0x6708, 0xFFFF, 0x0037, 0x6708, 0x0037, 0x6708, 0xFFFF, 0x0038, 0x6708, 0x0038, 0x6708, 0xFFFF }; unsigned short unac_data449[] = { 0x0039, 0x6708, 0x0039, 0x6708, 0xFFFF, 0x0031, 0x0030, 0x6708, 0x0031, 0x0030, 0x6708, 0xFFFF, 0x0031, 0x0031, 0x6708, 0x0031, 0x0031, 0x6708, 0xFFFF, 0x0031, 0x0032, 0x6708, 0x0031, 0x0032, 0x6708, 0xFFFF, 0x0048, 0x0067, 0x0068, 0x0067, 0xFFFF, 0x0065, 0x0072, 0x0067, 0x0065, 0x0072, 0x0067, 0xFFFF, 0x0065, 0x0056, 0x0065, 0x0076, 0xFFFF, 0x004C, 0x0054, 0x0044, 0x006C, 0x0074, 0x0064, 0xFFFF }; unsigned short unac_data450[] = { 0x30A2, 0x30A2, 0xFFFF, 0x30A4, 0x30A4, 0xFFFF, 0x30A6, 0x30A6, 0xFFFF, 0x30A8, 0x30A8, 0xFFFF, 0x30AA, 0x30AA, 0xFFFF, 0x30AB, 0x30AB, 0xFFFF, 0x30AD, 0x30AD, 0xFFFF, 0x30AF, 0x30AF, 0xFFFF }; unsigned short unac_data451[] = { 0x30B1, 0x30B1, 0xFFFF, 0x30B3, 0x30B3, 0xFFFF, 0x30B5, 0x30B5, 0xFFFF, 0x30B7, 0x30B7, 0xFFFF, 0x30B9, 0x30B9, 0xFFFF, 0x30BB, 0x30BB, 0xFFFF, 0x30BD, 0x30BD, 0xFFFF, 0x30BF, 0x30BF, 0xFFFF }; unsigned short unac_data452[] = { 0x30C1, 0x30C1, 0xFFFF, 0x30C4, 0x30C4, 0xFFFF, 0x30C6, 0x30C6, 0xFFFF, 0x30C8, 0x30C8, 0xFFFF, 0x30CA, 0x30CA, 0xFFFF, 0x30CB, 0x30CB, 0xFFFF, 0x30CC, 0x30CC, 0xFFFF, 0x30CD, 0x30CD, 0xFFFF }; unsigned short unac_data453[] = { 0x30CE, 0x30CE, 0xFFFF, 0x30CF, 0x30CF, 0xFFFF, 0x30D2, 0x30D2, 0xFFFF, 0x30D5, 0x30D5, 0xFFFF, 0x30D8, 0x30D8, 0xFFFF, 0x30DB, 0x30DB, 0xFFFF, 0x30DE, 0x30DE, 0xFFFF, 0x30DF, 0x30DF, 0xFFFF }; unsigned short unac_data454[] = { 0x30E0, 0x30E0, 0xFFFF, 0x30E1, 0x30E1, 0xFFFF, 0x30E2, 0x30E2, 0xFFFF, 0x30E4, 0x30E4, 0xFFFF, 0x30E6, 0x30E6, 0xFFFF, 0x30E8, 0x30E8, 0xFFFF, 0x30E9, 0x30E9, 0xFFFF, 0x30EA, 0x30EA, 0xFFFF }; unsigned short unac_data455[] = { 0x30EB, 0x30EB, 0xFFFF, 0x30EC, 0x30EC, 0xFFFF, 0x30ED, 0x30ED, 0xFFFF, 0x30EF, 0x30EF, 0xFFFF, 0x30F0, 0x30F0, 0xFFFF, 0x30F1, 0x30F1, 0xFFFF, 0x30F2, 0x30F2, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data456[] = { 0x30A2, 0x30D1, 0x30FC, 0x30C8, 0x30A2, 0x30D1, 0x30FC, 0x30C8, 0xFFFF, 0x30A2, 0x30EB, 0x30D5, 0x30A1, 0x30A2, 0x30EB, 0x30D5, 0x30A1, 0xFFFF, 0x30A2, 0x30F3, 0x30DA, 0x30A2, 0x30A2, 0x30F3, 0x30DA, 0x30A2, 0xFFFF, 0x30A2, 0x30FC, 0x30EB, 0x30A2, 0x30FC, 0x30EB, 0xFFFF, 0x30A4, 0x30CB, 0x30F3, 0x30B0, 0x30A4, 0x30CB, 0x30F3, 0x30B0, 0xFFFF, 0x30A4, 0x30F3, 0x30C1, 0x30A4, 0x30F3, 0x30C1, 0xFFFF, 0x30A6, 0x30A9, 0x30F3, 0x30A6, 0x30A9, 0x30F3, 0xFFFF, 0x30A8, 0x30B9, 0x30AF, 0x30FC, 0x30C9, 0x30A8, 0x30B9, 0x30AF, 0x30FC, 0x30C9, 0xFFFF }; unsigned short unac_data457[] = { 0x30A8, 0x30FC, 0x30AB, 0x30FC, 0x30A8, 0x30FC, 0x30AB, 0x30FC, 0xFFFF, 0x30AA, 0x30F3, 0x30B9, 0x30AA, 0x30F3, 0x30B9, 0xFFFF, 0x30AA, 0x30FC, 0x30E0, 0x30AA, 0x30FC, 0x30E0, 0xFFFF, 0x30AB, 0x30A4, 0x30EA, 0x30AB, 0x30A4, 0x30EA, 0xFFFF, 0x30AB, 0x30E9, 0x30C3, 0x30C8, 0x30AB, 0x30E9, 0x30C3, 0x30C8, 0xFFFF, 0x30AB, 0x30ED, 0x30EA, 0x30FC, 0x30AB, 0x30ED, 0x30EA, 0x30FC, 0xFFFF, 0x30AC, 0x30ED, 0x30F3, 0x30AC, 0x30ED, 0x30F3, 0xFFFF, 0x30AC, 0x30F3, 0x30DE, 0x30AC, 0x30F3, 0x30DE, 0xFFFF }; unsigned short unac_data458[] = { 0x30AE, 0x30AC, 0x30AE, 0x30AC, 0xFFFF, 0x30AE, 0x30CB, 0x30FC, 0x30AE, 0x30CB, 0x30FC, 0xFFFF, 0x30AD, 0x30E5, 0x30EA, 0x30FC, 0x30AD, 0x30E5, 0x30EA, 0x30FC, 0xFFFF, 0x30AE, 0x30EB, 0x30C0, 0x30FC, 0x30AE, 0x30EB, 0x30C0, 0x30FC, 0xFFFF, 0x30AD, 0x30ED, 0x30AD, 0x30ED, 0xFFFF, 0x30AD, 0x30ED, 0x30B0, 0x30E9, 0x30E0, 0x30AD, 0x30ED, 0x30B0, 0x30E9, 0x30E0, 0xFFFF, 0x30AD, 0x30ED, 0x30E1, 0x30FC, 0x30C8, 0x30EB, 0x30AD, 0x30ED, 0x30E1, 0x30FC, 0x30C8, 0x30EB, 0xFFFF, 0x30AD, 0x30ED, 0x30EF, 0x30C3, 0x30C8, 0x30AD, 0x30ED, 0x30EF, 0x30C3, 0x30C8, 0xFFFF }; unsigned short unac_data459[] = { 0x30B0, 0x30E9, 0x30E0, 0x30B0, 0x30E9, 0x30E0, 0xFFFF, 0x30B0, 0x30E9, 0x30E0, 0x30C8, 0x30F3, 0x30B0, 0x30E9, 0x30E0, 0x30C8, 0x30F3, 0xFFFF, 0x30AF, 0x30EB, 0x30BC, 0x30A4, 0x30ED, 0x30AF, 0x30EB, 0x30BC, 0x30A4, 0x30ED, 0xFFFF, 0x30AF, 0x30ED, 0x30FC, 0x30CD, 0x30AF, 0x30ED, 0x30FC, 0x30CD, 0xFFFF, 0x30B1, 0x30FC, 0x30B9, 0x30B1, 0x30FC, 0x30B9, 0xFFFF, 0x30B3, 0x30EB, 0x30CA, 0x30B3, 0x30EB, 0x30CA, 0xFFFF, 0x30B3, 0x30FC, 0x30DD, 0x30B3, 0x30FC, 0x30DD, 0xFFFF, 0x30B5, 0x30A4, 0x30AF, 0x30EB, 0x30B5, 0x30A4, 0x30AF, 0x30EB, 0xFFFF }; unsigned short unac_data460[] = { 0x30B5, 0x30F3, 0x30C1, 0x30FC, 0x30E0, 0x30B5, 0x30F3, 0x30C1, 0x30FC, 0x30E0, 0xFFFF, 0x30B7, 0x30EA, 0x30F3, 0x30B0, 0x30B7, 0x30EA, 0x30F3, 0x30B0, 0xFFFF, 0x30BB, 0x30F3, 0x30C1, 0x30BB, 0x30F3, 0x30C1, 0xFFFF, 0x30BB, 0x30F3, 0x30C8, 0x30BB, 0x30F3, 0x30C8, 0xFFFF, 0x30C0, 0x30FC, 0x30B9, 0x30C0, 0x30FC, 0x30B9, 0xFFFF, 0x30C7, 0x30B7, 0x30C7, 0x30B7, 0xFFFF, 0x30C9, 0x30EB, 0x30C9, 0x30EB, 0xFFFF, 0x30C8, 0x30F3, 0x30C8, 0x30F3, 0xFFFF }; unsigned short unac_data461[] = { 0x30CA, 0x30CE, 0x30CA, 0x30CE, 0xFFFF, 0x30CE, 0x30C3, 0x30C8, 0x30CE, 0x30C3, 0x30C8, 0xFFFF, 0x30CF, 0x30A4, 0x30C4, 0x30CF, 0x30A4, 0x30C4, 0xFFFF, 0x30D1, 0x30FC, 0x30BB, 0x30F3, 0x30C8, 0x30D1, 0x30FC, 0x30BB, 0x30F3, 0x30C8, 0xFFFF, 0x30D1, 0x30FC, 0x30C4, 0x30D1, 0x30FC, 0x30C4, 0xFFFF, 0x30D0, 0x30FC, 0x30EC, 0x30EB, 0x30D0, 0x30FC, 0x30EC, 0x30EB, 0xFFFF, 0x30D4, 0x30A2, 0x30B9, 0x30C8, 0x30EB, 0x30D4, 0x30A2, 0x30B9, 0x30C8, 0x30EB, 0xFFFF, 0x30D4, 0x30AF, 0x30EB, 0x30D4, 0x30AF, 0x30EB, 0xFFFF }; unsigned short unac_data462[] = { 0x30D4, 0x30B3, 0x30D4, 0x30B3, 0xFFFF, 0x30D3, 0x30EB, 0x30D3, 0x30EB, 0xFFFF, 0x30D5, 0x30A1, 0x30E9, 0x30C3, 0x30C9, 0x30D5, 0x30A1, 0x30E9, 0x30C3, 0x30C9, 0xFFFF, 0x30D5, 0x30A3, 0x30FC, 0x30C8, 0x30D5, 0x30A3, 0x30FC, 0x30C8, 0xFFFF, 0x30D6, 0x30C3, 0x30B7, 0x30A7, 0x30EB, 0x30D6, 0x30C3, 0x30B7, 0x30A7, 0x30EB, 0xFFFF, 0x30D5, 0x30E9, 0x30F3, 0x30D5, 0x30E9, 0x30F3, 0xFFFF, 0x30D8, 0x30AF, 0x30BF, 0x30FC, 0x30EB, 0x30D8, 0x30AF, 0x30BF, 0x30FC, 0x30EB, 0xFFFF, 0x30DA, 0x30BD, 0x30DA, 0x30BD, 0xFFFF }; unsigned short unac_data463[] = { 0x30DA, 0x30CB, 0x30D2, 0x30DA, 0x30CB, 0x30D2, 0xFFFF, 0x30D8, 0x30EB, 0x30C4, 0x30D8, 0x30EB, 0x30C4, 0xFFFF, 0x30DA, 0x30F3, 0x30B9, 0x30DA, 0x30F3, 0x30B9, 0xFFFF, 0x30DA, 0x30FC, 0x30B8, 0x30DA, 0x30FC, 0x30B8, 0xFFFF, 0x30D9, 0x30FC, 0x30BF, 0x30D9, 0x30FC, 0x30BF, 0xFFFF, 0x30DD, 0x30A4, 0x30F3, 0x30C8, 0x30DD, 0x30A4, 0x30F3, 0x30C8, 0xFFFF, 0x30DC, 0x30EB, 0x30C8, 0x30DC, 0x30EB, 0x30C8, 0xFFFF, 0x30DB, 0x30F3, 0x30DB, 0x30F3, 0xFFFF }; unsigned short unac_data464[] = { 0x30DD, 0x30F3, 0x30C9, 0x30DD, 0x30F3, 0x30C9, 0xFFFF, 0x30DB, 0x30FC, 0x30EB, 0x30DB, 0x30FC, 0x30EB, 0xFFFF, 0x30DB, 0x30FC, 0x30F3, 0x30DB, 0x30FC, 0x30F3, 0xFFFF, 0x30DE, 0x30A4, 0x30AF, 0x30ED, 0x30DE, 0x30A4, 0x30AF, 0x30ED, 0xFFFF, 0x30DE, 0x30A4, 0x30EB, 0x30DE, 0x30A4, 0x30EB, 0xFFFF, 0x30DE, 0x30C3, 0x30CF, 0x30DE, 0x30C3, 0x30CF, 0xFFFF, 0x30DE, 0x30EB, 0x30AF, 0x30DE, 0x30EB, 0x30AF, 0xFFFF, 0x30DE, 0x30F3, 0x30B7, 0x30E7, 0x30F3, 0x30DE, 0x30F3, 0x30B7, 0x30E7, 0x30F3, 0xFFFF }; unsigned short unac_data465[] = { 0x30DF, 0x30AF, 0x30ED, 0x30F3, 0x30DF, 0x30AF, 0x30ED, 0x30F3, 0xFFFF, 0x30DF, 0x30EA, 0x30DF, 0x30EA, 0xFFFF, 0x30DF, 0x30EA, 0x30D0, 0x30FC, 0x30EB, 0x30DF, 0x30EA, 0x30D0, 0x30FC, 0x30EB, 0xFFFF, 0x30E1, 0x30AC, 0x30E1, 0x30AC, 0xFFFF, 0x30E1, 0x30AC, 0x30C8, 0x30F3, 0x30E1, 0x30AC, 0x30C8, 0x30F3, 0xFFFF, 0x30E1, 0x30FC, 0x30C8, 0x30EB, 0x30E1, 0x30FC, 0x30C8, 0x30EB, 0xFFFF, 0x30E4, 0x30FC, 0x30C9, 0x30E4, 0x30FC, 0x30C9, 0xFFFF, 0x30E4, 0x30FC, 0x30EB, 0x30E4, 0x30FC, 0x30EB, 0xFFFF }; unsigned short unac_data466[] = { 0x30E6, 0x30A2, 0x30F3, 0x30E6, 0x30A2, 0x30F3, 0xFFFF, 0x30EA, 0x30C3, 0x30C8, 0x30EB, 0x30EA, 0x30C3, 0x30C8, 0x30EB, 0xFFFF, 0x30EA, 0x30E9, 0x30EA, 0x30E9, 0xFFFF, 0x30EB, 0x30D4, 0x30FC, 0x30EB, 0x30D4, 0x30FC, 0xFFFF, 0x30EB, 0x30FC, 0x30D6, 0x30EB, 0x30EB, 0x30FC, 0x30D6, 0x30EB, 0xFFFF, 0x30EC, 0x30E0, 0x30EC, 0x30E0, 0xFFFF, 0x30EC, 0x30F3, 0x30C8, 0x30B2, 0x30F3, 0x30EC, 0x30F3, 0x30C8, 0x30B2, 0x30F3, 0xFFFF, 0x30EF, 0x30C3, 0x30C8, 0x30EF, 0x30C3, 0x30C8, 0xFFFF }; unsigned short unac_data467[] = { 0x0030, 0x70B9, 0x0030, 0x70B9, 0xFFFF, 0x0031, 0x70B9, 0x0031, 0x70B9, 0xFFFF, 0x0032, 0x70B9, 0x0032, 0x70B9, 0xFFFF, 0x0033, 0x70B9, 0x0033, 0x70B9, 0xFFFF, 0x0034, 0x70B9, 0x0034, 0x70B9, 0xFFFF, 0x0035, 0x70B9, 0x0035, 0x70B9, 0xFFFF, 0x0036, 0x70B9, 0x0036, 0x70B9, 0xFFFF, 0x0037, 0x70B9, 0x0037, 0x70B9, 0xFFFF }; unsigned short unac_data468[] = { 0x0038, 0x70B9, 0x0038, 0x70B9, 0xFFFF, 0x0039, 0x70B9, 0x0039, 0x70B9, 0xFFFF, 0x0031, 0x0030, 0x70B9, 0x0031, 0x0030, 0x70B9, 0xFFFF, 0x0031, 0x0031, 0x70B9, 0x0031, 0x0031, 0x70B9, 0xFFFF, 0x0031, 0x0032, 0x70B9, 0x0031, 0x0032, 0x70B9, 0xFFFF, 0x0031, 0x0033, 0x70B9, 0x0031, 0x0033, 0x70B9, 0xFFFF, 0x0031, 0x0034, 0x70B9, 0x0031, 0x0034, 0x70B9, 0xFFFF, 0x0031, 0x0035, 0x70B9, 0x0031, 0x0035, 0x70B9, 0xFFFF }; unsigned short unac_data469[] = { 0x0031, 0x0036, 0x70B9, 0x0031, 0x0036, 0x70B9, 0xFFFF, 0x0031, 0x0037, 0x70B9, 0x0031, 0x0037, 0x70B9, 0xFFFF, 0x0031, 0x0038, 0x70B9, 0x0031, 0x0038, 0x70B9, 0xFFFF, 0x0031, 0x0039, 0x70B9, 0x0031, 0x0039, 0x70B9, 0xFFFF, 0x0032, 0x0030, 0x70B9, 0x0032, 0x0030, 0x70B9, 0xFFFF, 0x0032, 0x0031, 0x70B9, 0x0032, 0x0031, 0x70B9, 0xFFFF, 0x0032, 0x0032, 0x70B9, 0x0032, 0x0032, 0x70B9, 0xFFFF, 0x0032, 0x0033, 0x70B9, 0x0032, 0x0033, 0x70B9, 0xFFFF }; unsigned short unac_data470[] = { 0x0032, 0x0034, 0x70B9, 0x0032, 0x0034, 0x70B9, 0xFFFF, 0x0068, 0x0050, 0x0061, 0x0068, 0x0070, 0x0061, 0xFFFF, 0x0064, 0x0061, 0x0064, 0x0061, 0xFFFF, 0x0041, 0x0055, 0x0061, 0x0075, 0xFFFF, 0x0062, 0x0061, 0x0072, 0x0062, 0x0061, 0x0072, 0xFFFF, 0x006F, 0x0056, 0x006F, 0x0076, 0xFFFF, 0x0070, 0x0063, 0x0070, 0x0063, 0xFFFF, 0x0064, 0x006D, 0x0064, 0x006D, 0xFFFF }; unsigned short unac_data471[] = { 0x0064, 0x006D, 0x0032, 0x0064, 0x006D, 0x0032, 0xFFFF, 0x0064, 0x006D, 0x0033, 0x0064, 0x006D, 0x0033, 0xFFFF, 0x0049, 0x0055, 0x0069, 0x0075, 0xFFFF, 0x5E73, 0x6210, 0x5E73, 0x6210, 0xFFFF, 0x662D, 0x548C, 0x662D, 0x548C, 0xFFFF, 0x5927, 0x6B63, 0x5927, 0x6B63, 0xFFFF, 0x660E, 0x6CBB, 0x660E, 0x6CBB, 0xFFFF, 0x682A, 0x5F0F, 0x4F1A, 0x793E, 0x682A, 0x5F0F, 0x4F1A, 0x793E, 0xFFFF }; unsigned short unac_data472[] = { 0x0070, 0x0041, 0x0070, 0x0061, 0xFFFF, 0x006E, 0x0041, 0x006E, 0x0061, 0xFFFF, 0x03BC, 0x0041, 0x03BC, 0x0061, 0xFFFF, 0x006D, 0x0041, 0x006D, 0x0061, 0xFFFF, 0x006B, 0x0041, 0x006B, 0x0061, 0xFFFF, 0x004B, 0x0042, 0x006B, 0x0062, 0xFFFF, 0x004D, 0x0042, 0x006D, 0x0062, 0xFFFF, 0x0047, 0x0042, 0x0067, 0x0062, 0xFFFF }; unsigned short unac_data473[] = { 0x0063, 0x0061, 0x006C, 0x0063, 0x0061, 0x006C, 0xFFFF, 0x006B, 0x0063, 0x0061, 0x006C, 0x006B, 0x0063, 0x0061, 0x006C, 0xFFFF, 0x0070, 0x0046, 0x0070, 0x0066, 0xFFFF, 0x006E, 0x0046, 0x006E, 0x0066, 0xFFFF, 0x03BC, 0x0046, 0x03BC, 0x0066, 0xFFFF, 0x03BC, 0x0067, 0x03BC, 0x0067, 0xFFFF, 0x006D, 0x0067, 0x006D, 0x0067, 0xFFFF, 0x006B, 0x0067, 0x006B, 0x0067, 0xFFFF }; unsigned short unac_data474[] = { 0x0048, 0x007A, 0x0068, 0x007A, 0xFFFF, 0x006B, 0x0048, 0x007A, 0x006B, 0x0068, 0x007A, 0xFFFF, 0x004D, 0x0048, 0x007A, 0x006D, 0x0068, 0x007A, 0xFFFF, 0x0047, 0x0048, 0x007A, 0x0067, 0x0068, 0x007A, 0xFFFF, 0x0054, 0x0048, 0x007A, 0x0074, 0x0068, 0x007A, 0xFFFF, 0x03BC, 0x006C, 0x03BC, 0x006C, 0xFFFF, 0x006D, 0x006C, 0x006D, 0x006C, 0xFFFF, 0x0064, 0x006C, 0x0064, 0x006C, 0xFFFF }; unsigned short unac_data475[] = { 0x006B, 0x006C, 0x006B, 0x006C, 0xFFFF, 0x0066, 0x006D, 0x0066, 0x006D, 0xFFFF, 0x006E, 0x006D, 0x006E, 0x006D, 0xFFFF, 0x03BC, 0x006D, 0x03BC, 0x006D, 0xFFFF, 0x006D, 0x006D, 0x006D, 0x006D, 0xFFFF, 0x0063, 0x006D, 0x0063, 0x006D, 0xFFFF, 0x006B, 0x006D, 0x006B, 0x006D, 0xFFFF, 0x006D, 0x006D, 0x0032, 0x006D, 0x006D, 0x0032, 0xFFFF }; unsigned short unac_data476[] = { 0x0063, 0x006D, 0x0032, 0x0063, 0x006D, 0x0032, 0xFFFF, 0x006D, 0x0032, 0x006D, 0x0032, 0xFFFF, 0x006B, 0x006D, 0x0032, 0x006B, 0x006D, 0x0032, 0xFFFF, 0x006D, 0x006D, 0x0033, 0x006D, 0x006D, 0x0033, 0xFFFF, 0x0063, 0x006D, 0x0033, 0x0063, 0x006D, 0x0033, 0xFFFF, 0x006D, 0x0033, 0x006D, 0x0033, 0xFFFF, 0x006B, 0x006D, 0x0033, 0x006B, 0x006D, 0x0033, 0xFFFF, 0x006D, 0x2215, 0x0073, 0x006D, 0x2215, 0x0073, 0xFFFF }; unsigned short unac_data477[] = { 0x006D, 0x2215, 0x0073, 0x0032, 0x006D, 0x2215, 0x0073, 0x0032, 0xFFFF, 0x0050, 0x0061, 0x0070, 0x0061, 0xFFFF, 0x006B, 0x0050, 0x0061, 0x006B, 0x0070, 0x0061, 0xFFFF, 0x004D, 0x0050, 0x0061, 0x006D, 0x0070, 0x0061, 0xFFFF, 0x0047, 0x0050, 0x0061, 0x0067, 0x0070, 0x0061, 0xFFFF, 0x0072, 0x0061, 0x0064, 0x0072, 0x0061, 0x0064, 0xFFFF, 0x0072, 0x0061, 0x0064, 0x2215, 0x0073, 0x0072, 0x0061, 0x0064, 0x2215, 0x0073, 0xFFFF, 0x0072, 0x0061, 0x0064, 0x2215, 0x0073, 0x0032, 0x0072, 0x0061, 0x0064, 0x2215, 0x0073, 0x0032, 0xFFFF }; unsigned short unac_data478[] = { 0x0070, 0x0073, 0x0070, 0x0073, 0xFFFF, 0x006E, 0x0073, 0x006E, 0x0073, 0xFFFF, 0x03BC, 0x0073, 0x03BC, 0x0073, 0xFFFF, 0x006D, 0x0073, 0x006D, 0x0073, 0xFFFF, 0x0070, 0x0056, 0x0070, 0x0076, 0xFFFF, 0x006E, 0x0056, 0x006E, 0x0076, 0xFFFF, 0x03BC, 0x0056, 0x03BC, 0x0076, 0xFFFF, 0x006D, 0x0056, 0x006D, 0x0076, 0xFFFF }; unsigned short unac_data479[] = { 0x006B, 0x0056, 0x006B, 0x0076, 0xFFFF, 0x004D, 0x0056, 0x006D, 0x0076, 0xFFFF, 0x0070, 0x0057, 0x0070, 0x0077, 0xFFFF, 0x006E, 0x0057, 0x006E, 0x0077, 0xFFFF, 0x03BC, 0x0057, 0x03BC, 0x0077, 0xFFFF, 0x006D, 0x0057, 0x006D, 0x0077, 0xFFFF, 0x006B, 0x0057, 0x006B, 0x0077, 0xFFFF, 0x004D, 0x0057, 0x006D, 0x0077, 0xFFFF }; unsigned short unac_data480[] = { 0x006B, 0x03A9, 0x006B, 0x03C9, 0xFFFF, 0x004D, 0x03A9, 0x006D, 0x03C9, 0xFFFF, 0x0061, 0x002E, 0x006D, 0x002E, 0x0061, 0x002E, 0x006D, 0x002E, 0xFFFF, 0x0042, 0x0071, 0x0062, 0x0071, 0xFFFF, 0x0063, 0x0063, 0x0063, 0x0063, 0xFFFF, 0x0063, 0x0064, 0x0063, 0x0064, 0xFFFF, 0x0043, 0x2215, 0x006B, 0x0067, 0x0063, 0x2215, 0x006B, 0x0067, 0xFFFF, 0x0043, 0x006F, 0x002E, 0x0063, 0x006F, 0x002E, 0xFFFF }; unsigned short unac_data481[] = { 0x0064, 0x0042, 0x0064, 0x0062, 0xFFFF, 0x0047, 0x0079, 0x0067, 0x0079, 0xFFFF, 0x0068, 0x0061, 0x0068, 0x0061, 0xFFFF, 0x0048, 0x0050, 0x0068, 0x0070, 0xFFFF, 0x0069, 0x006E, 0x0069, 0x006E, 0xFFFF, 0x004B, 0x004B, 0x006B, 0x006B, 0xFFFF, 0x004B, 0x004D, 0x006B, 0x006D, 0xFFFF, 0x006B, 0x0074, 0x006B, 0x0074, 0xFFFF }; unsigned short unac_data482[] = { 0x006C, 0x006D, 0x006C, 0x006D, 0xFFFF, 0x006C, 0x006E, 0x006C, 0x006E, 0xFFFF, 0x006C, 0x006F, 0x0067, 0x006C, 0x006F, 0x0067, 0xFFFF, 0x006C, 0x0078, 0x006C, 0x0078, 0xFFFF, 0x006D, 0x0062, 0x006D, 0x0062, 0xFFFF, 0x006D, 0x0069, 0x006C, 0x006D, 0x0069, 0x006C, 0xFFFF, 0x006D, 0x006F, 0x006C, 0x006D, 0x006F, 0x006C, 0xFFFF, 0x0050, 0x0048, 0x0070, 0x0068, 0xFFFF }; unsigned short unac_data483[] = { 0x0070, 0x002E, 0x006D, 0x002E, 0x0070, 0x002E, 0x006D, 0x002E, 0xFFFF, 0x0050, 0x0050, 0x004D, 0x0070, 0x0070, 0x006D, 0xFFFF, 0x0050, 0x0052, 0x0070, 0x0072, 0xFFFF, 0x0073, 0x0072, 0x0073, 0x0072, 0xFFFF, 0x0053, 0x0076, 0x0073, 0x0076, 0xFFFF, 0x0057, 0x0062, 0x0077, 0x0062, 0xFFFF, 0x0056, 0x2215, 0x006D, 0x0076, 0x2215, 0x006D, 0xFFFF, 0x0041, 0x2215, 0x006D, 0x0061, 0x2215, 0x006D, 0xFFFF }; unsigned short unac_data484[] = { 0x0031, 0x65E5, 0x0031, 0x65E5, 0xFFFF, 0x0032, 0x65E5, 0x0032, 0x65E5, 0xFFFF, 0x0033, 0x65E5, 0x0033, 0x65E5, 0xFFFF, 0x0034, 0x65E5, 0x0034, 0x65E5, 0xFFFF, 0x0035, 0x65E5, 0x0035, 0x65E5, 0xFFFF, 0x0036, 0x65E5, 0x0036, 0x65E5, 0xFFFF, 0x0037, 0x65E5, 0x0037, 0x65E5, 0xFFFF, 0x0038, 0x65E5, 0x0038, 0x65E5, 0xFFFF }; unsigned short unac_data485[] = { 0x0039, 0x65E5, 0x0039, 0x65E5, 0xFFFF, 0x0031, 0x0030, 0x65E5, 0x0031, 0x0030, 0x65E5, 0xFFFF, 0x0031, 0x0031, 0x65E5, 0x0031, 0x0031, 0x65E5, 0xFFFF, 0x0031, 0x0032, 0x65E5, 0x0031, 0x0032, 0x65E5, 0xFFFF, 0x0031, 0x0033, 0x65E5, 0x0031, 0x0033, 0x65E5, 0xFFFF, 0x0031, 0x0034, 0x65E5, 0x0031, 0x0034, 0x65E5, 0xFFFF, 0x0031, 0x0035, 0x65E5, 0x0031, 0x0035, 0x65E5, 0xFFFF, 0x0031, 0x0036, 0x65E5, 0x0031, 0x0036, 0x65E5, 0xFFFF }; unsigned short unac_data486[] = { 0x0031, 0x0037, 0x65E5, 0x0031, 0x0037, 0x65E5, 0xFFFF, 0x0031, 0x0038, 0x65E5, 0x0031, 0x0038, 0x65E5, 0xFFFF, 0x0031, 0x0039, 0x65E5, 0x0031, 0x0039, 0x65E5, 0xFFFF, 0x0032, 0x0030, 0x65E5, 0x0032, 0x0030, 0x65E5, 0xFFFF, 0x0032, 0x0031, 0x65E5, 0x0032, 0x0031, 0x65E5, 0xFFFF, 0x0032, 0x0032, 0x65E5, 0x0032, 0x0032, 0x65E5, 0xFFFF, 0x0032, 0x0033, 0x65E5, 0x0032, 0x0033, 0x65E5, 0xFFFF, 0x0032, 0x0034, 0x65E5, 0x0032, 0x0034, 0x65E5, 0xFFFF }; unsigned short unac_data487[] = { 0x0032, 0x0035, 0x65E5, 0x0032, 0x0035, 0x65E5, 0xFFFF, 0x0032, 0x0036, 0x65E5, 0x0032, 0x0036, 0x65E5, 0xFFFF, 0x0032, 0x0037, 0x65E5, 0x0032, 0x0037, 0x65E5, 0xFFFF, 0x0032, 0x0038, 0x65E5, 0x0032, 0x0038, 0x65E5, 0xFFFF, 0x0032, 0x0039, 0x65E5, 0x0032, 0x0039, 0x65E5, 0xFFFF, 0x0033, 0x0030, 0x65E5, 0x0033, 0x0030, 0x65E5, 0xFFFF, 0x0033, 0x0031, 0x65E5, 0x0033, 0x0031, 0x65E5, 0xFFFF, 0x0067, 0x0061, 0x006C, 0x0067, 0x0061, 0x006C, 0xFFFF }; unsigned short unac_data488[] = { 0xFFFF, 0xA641, 0xA641, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA643, 0xA643, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA645, 0xA645, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA647, 0xA647, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data489[] = { 0xFFFF, 0xA649, 0xA649, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA64B, 0xA64B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA64D, 0xA64D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA64F, 0xA64F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data490[] = { 0xFFFF, 0xA651, 0xA651, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA653, 0xA653, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA655, 0xA655, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA657, 0xA657, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data491[] = { 0xFFFF, 0xA659, 0xA659, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA65B, 0xA65B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA65D, 0xA65D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA65F, 0xA65F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data492[] = { 0xFFFF, 0xA661, 0xA661, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA663, 0xA663, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA665, 0xA665, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA667, 0xA667, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data493[] = { 0xFFFF, 0xA669, 0xA669, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA66B, 0xA66B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA66D, 0xA66D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data494[] = { 0xFFFF, 0xA681, 0xA681, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA683, 0xA683, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA685, 0xA685, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA687, 0xA687, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data495[] = { 0xFFFF, 0xA689, 0xA689, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA68B, 0xA68B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA68D, 0xA68D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA68F, 0xA68F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data496[] = { 0xFFFF, 0xA691, 0xA691, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA693, 0xA693, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA695, 0xA695, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA697, 0xA697, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data497[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA723, 0xA723, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA725, 0xA725, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA727, 0xA727, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data498[] = { 0xFFFF, 0xA729, 0xA729, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA72B, 0xA72B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA72D, 0xA72D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA72F, 0xA72F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data499[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA733, 0xA733, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA735, 0xA735, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA737, 0xA737, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data500[] = { 0xFFFF, 0xA739, 0xA739, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA73B, 0xA73B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA73D, 0xA73D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA73F, 0xA73F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data501[] = { 0xFFFF, 0xA741, 0xA741, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA743, 0xA743, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA745, 0xA745, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA747, 0xA747, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data502[] = { 0xFFFF, 0xA749, 0xA749, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA74B, 0xA74B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA74D, 0xA74D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA74F, 0xA74F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data503[] = { 0xFFFF, 0xA751, 0xA751, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA753, 0xA753, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA755, 0xA755, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA757, 0xA757, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data504[] = { 0xFFFF, 0xA759, 0xA759, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA75B, 0xA75B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA75D, 0xA75D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA75F, 0xA75F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data505[] = { 0xFFFF, 0xA761, 0xA761, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA763, 0xA763, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA765, 0xA765, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA767, 0xA767, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data506[] = { 0xFFFF, 0xA769, 0xA769, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA76B, 0xA76B, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA76D, 0xA76D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA76F, 0xA76F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data507[] = { 0xA76F, 0xA76F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data508[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA77A, 0xA77A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA77C, 0xA77C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1D79, 0x1D79, 0xFFFF, 0xA77F, 0xA77F, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data509[] = { 0xFFFF, 0xA781, 0xA781, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA783, 0xA783, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA785, 0xA785, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA787, 0xA787, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data510[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA78C, 0xA78C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0265, 0x0265, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data511[] = { 0xFFFF, 0xA791, 0xA791, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA793, 0xA793, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data512[] = { 0xFFFF, 0xA7A1, 0xA7A1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA7A3, 0xA7A3, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA7A5, 0xA7A5, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xA7A7, 0xA7A7, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data513[] = { 0xFFFF, 0xA7A9, 0xA7A9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0266, 0x0266, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data514[] = { 0x0126, 0x0127, 0xFFFF, 0x0153, 0x0153, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data515[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data516[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data517[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data518[] = { 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF }; unsigned short unac_data519[] = { 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data520[] = { 0x8C48, 0x8C48, 0xFFFF, 0x66F4, 0x66F4, 0xFFFF, 0x8ECA, 0x8ECA, 0xFFFF, 0x8CC8, 0x8CC8, 0xFFFF, 0x6ED1, 0x6ED1, 0xFFFF, 0x4E32, 0x4E32, 0xFFFF, 0x53E5, 0x53E5, 0xFFFF, 0x9F9C, 0x9F9C, 0xFFFF }; unsigned short unac_data521[] = { 0x9F9C, 0x9F9C, 0xFFFF, 0x5951, 0x5951, 0xFFFF, 0x91D1, 0x91D1, 0xFFFF, 0x5587, 0x5587, 0xFFFF, 0x5948, 0x5948, 0xFFFF, 0x61F6, 0x61F6, 0xFFFF, 0x7669, 0x7669, 0xFFFF, 0x7F85, 0x7F85, 0xFFFF }; unsigned short unac_data522[] = { 0x863F, 0x863F, 0xFFFF, 0x87BA, 0x87BA, 0xFFFF, 0x88F8, 0x88F8, 0xFFFF, 0x908F, 0x908F, 0xFFFF, 0x6A02, 0x6A02, 0xFFFF, 0x6D1B, 0x6D1B, 0xFFFF, 0x70D9, 0x70D9, 0xFFFF, 0x73DE, 0x73DE, 0xFFFF }; unsigned short unac_data523[] = { 0x843D, 0x843D, 0xFFFF, 0x916A, 0x916A, 0xFFFF, 0x99F1, 0x99F1, 0xFFFF, 0x4E82, 0x4E82, 0xFFFF, 0x5375, 0x5375, 0xFFFF, 0x6B04, 0x6B04, 0xFFFF, 0x721B, 0x721B, 0xFFFF, 0x862D, 0x862D, 0xFFFF }; unsigned short unac_data524[] = { 0x9E1E, 0x9E1E, 0xFFFF, 0x5D50, 0x5D50, 0xFFFF, 0x6FEB, 0x6FEB, 0xFFFF, 0x85CD, 0x85CD, 0xFFFF, 0x8964, 0x8964, 0xFFFF, 0x62C9, 0x62C9, 0xFFFF, 0x81D8, 0x81D8, 0xFFFF, 0x881F, 0x881F, 0xFFFF }; unsigned short unac_data525[] = { 0x5ECA, 0x5ECA, 0xFFFF, 0x6717, 0x6717, 0xFFFF, 0x6D6A, 0x6D6A, 0xFFFF, 0x72FC, 0x72FC, 0xFFFF, 0x90CE, 0x90CE, 0xFFFF, 0x4F86, 0x4F86, 0xFFFF, 0x51B7, 0x51B7, 0xFFFF, 0x52DE, 0x52DE, 0xFFFF }; unsigned short unac_data526[] = { 0x64C4, 0x64C4, 0xFFFF, 0x6AD3, 0x6AD3, 0xFFFF, 0x7210, 0x7210, 0xFFFF, 0x76E7, 0x76E7, 0xFFFF, 0x8001, 0x8001, 0xFFFF, 0x8606, 0x8606, 0xFFFF, 0x865C, 0x865C, 0xFFFF, 0x8DEF, 0x8DEF, 0xFFFF }; unsigned short unac_data527[] = { 0x9732, 0x9732, 0xFFFF, 0x9B6F, 0x9B6F, 0xFFFF, 0x9DFA, 0x9DFA, 0xFFFF, 0x788C, 0x788C, 0xFFFF, 0x797F, 0x797F, 0xFFFF, 0x7DA0, 0x7DA0, 0xFFFF, 0x83C9, 0x83C9, 0xFFFF, 0x9304, 0x9304, 0xFFFF }; unsigned short unac_data528[] = { 0x9E7F, 0x9E7F, 0xFFFF, 0x8AD6, 0x8AD6, 0xFFFF, 0x58DF, 0x58DF, 0xFFFF, 0x5F04, 0x5F04, 0xFFFF, 0x7C60, 0x7C60, 0xFFFF, 0x807E, 0x807E, 0xFFFF, 0x7262, 0x7262, 0xFFFF, 0x78CA, 0x78CA, 0xFFFF }; unsigned short unac_data529[] = { 0x8CC2, 0x8CC2, 0xFFFF, 0x96F7, 0x96F7, 0xFFFF, 0x58D8, 0x58D8, 0xFFFF, 0x5C62, 0x5C62, 0xFFFF, 0x6A13, 0x6A13, 0xFFFF, 0x6DDA, 0x6DDA, 0xFFFF, 0x6F0F, 0x6F0F, 0xFFFF, 0x7D2F, 0x7D2F, 0xFFFF }; unsigned short unac_data530[] = { 0x7E37, 0x7E37, 0xFFFF, 0x964B, 0x964B, 0xFFFF, 0x52D2, 0x52D2, 0xFFFF, 0x808B, 0x808B, 0xFFFF, 0x51DC, 0x51DC, 0xFFFF, 0x51CC, 0x51CC, 0xFFFF, 0x7A1C, 0x7A1C, 0xFFFF, 0x7DBE, 0x7DBE, 0xFFFF }; unsigned short unac_data531[] = { 0x83F1, 0x83F1, 0xFFFF, 0x9675, 0x9675, 0xFFFF, 0x8B80, 0x8B80, 0xFFFF, 0x62CF, 0x62CF, 0xFFFF, 0x6A02, 0x6A02, 0xFFFF, 0x8AFE, 0x8AFE, 0xFFFF, 0x4E39, 0x4E39, 0xFFFF, 0x5BE7, 0x5BE7, 0xFFFF }; unsigned short unac_data532[] = { 0x6012, 0x6012, 0xFFFF, 0x7387, 0x7387, 0xFFFF, 0x7570, 0x7570, 0xFFFF, 0x5317, 0x5317, 0xFFFF, 0x78FB, 0x78FB, 0xFFFF, 0x4FBF, 0x4FBF, 0xFFFF, 0x5FA9, 0x5FA9, 0xFFFF, 0x4E0D, 0x4E0D, 0xFFFF }; unsigned short unac_data533[] = { 0x6CCC, 0x6CCC, 0xFFFF, 0x6578, 0x6578, 0xFFFF, 0x7D22, 0x7D22, 0xFFFF, 0x53C3, 0x53C3, 0xFFFF, 0x585E, 0x585E, 0xFFFF, 0x7701, 0x7701, 0xFFFF, 0x8449, 0x8449, 0xFFFF, 0x8AAA, 0x8AAA, 0xFFFF }; unsigned short unac_data534[] = { 0x6BBA, 0x6BBA, 0xFFFF, 0x8FB0, 0x8FB0, 0xFFFF, 0x6C88, 0x6C88, 0xFFFF, 0x62FE, 0x62FE, 0xFFFF, 0x82E5, 0x82E5, 0xFFFF, 0x63A0, 0x63A0, 0xFFFF, 0x7565, 0x7565, 0xFFFF, 0x4EAE, 0x4EAE, 0xFFFF }; unsigned short unac_data535[] = { 0x5169, 0x5169, 0xFFFF, 0x51C9, 0x51C9, 0xFFFF, 0x6881, 0x6881, 0xFFFF, 0x7CE7, 0x7CE7, 0xFFFF, 0x826F, 0x826F, 0xFFFF, 0x8AD2, 0x8AD2, 0xFFFF, 0x91CF, 0x91CF, 0xFFFF, 0x52F5, 0x52F5, 0xFFFF }; unsigned short unac_data536[] = { 0x5442, 0x5442, 0xFFFF, 0x5973, 0x5973, 0xFFFF, 0x5EEC, 0x5EEC, 0xFFFF, 0x65C5, 0x65C5, 0xFFFF, 0x6FFE, 0x6FFE, 0xFFFF, 0x792A, 0x792A, 0xFFFF, 0x95AD, 0x95AD, 0xFFFF, 0x9A6A, 0x9A6A, 0xFFFF }; unsigned short unac_data537[] = { 0x9E97, 0x9E97, 0xFFFF, 0x9ECE, 0x9ECE, 0xFFFF, 0x529B, 0x529B, 0xFFFF, 0x66C6, 0x66C6, 0xFFFF, 0x6B77, 0x6B77, 0xFFFF, 0x8F62, 0x8F62, 0xFFFF, 0x5E74, 0x5E74, 0xFFFF, 0x6190, 0x6190, 0xFFFF }; unsigned short unac_data538[] = { 0x6200, 0x6200, 0xFFFF, 0x649A, 0x649A, 0xFFFF, 0x6F23, 0x6F23, 0xFFFF, 0x7149, 0x7149, 0xFFFF, 0x7489, 0x7489, 0xFFFF, 0x79CA, 0x79CA, 0xFFFF, 0x7DF4, 0x7DF4, 0xFFFF, 0x806F, 0x806F, 0xFFFF }; unsigned short unac_data539[] = { 0x8F26, 0x8F26, 0xFFFF, 0x84EE, 0x84EE, 0xFFFF, 0x9023, 0x9023, 0xFFFF, 0x934A, 0x934A, 0xFFFF, 0x5217, 0x5217, 0xFFFF, 0x52A3, 0x52A3, 0xFFFF, 0x54BD, 0x54BD, 0xFFFF, 0x70C8, 0x70C8, 0xFFFF }; unsigned short unac_data540[] = { 0x88C2, 0x88C2, 0xFFFF, 0x8AAA, 0x8AAA, 0xFFFF, 0x5EC9, 0x5EC9, 0xFFFF, 0x5FF5, 0x5FF5, 0xFFFF, 0x637B, 0x637B, 0xFFFF, 0x6BAE, 0x6BAE, 0xFFFF, 0x7C3E, 0x7C3E, 0xFFFF, 0x7375, 0x7375, 0xFFFF }; unsigned short unac_data541[] = { 0x4EE4, 0x4EE4, 0xFFFF, 0x56F9, 0x56F9, 0xFFFF, 0x5BE7, 0x5BE7, 0xFFFF, 0x5DBA, 0x5DBA, 0xFFFF, 0x601C, 0x601C, 0xFFFF, 0x73B2, 0x73B2, 0xFFFF, 0x7469, 0x7469, 0xFFFF, 0x7F9A, 0x7F9A, 0xFFFF }; unsigned short unac_data542[] = { 0x8046, 0x8046, 0xFFFF, 0x9234, 0x9234, 0xFFFF, 0x96F6, 0x96F6, 0xFFFF, 0x9748, 0x9748, 0xFFFF, 0x9818, 0x9818, 0xFFFF, 0x4F8B, 0x4F8B, 0xFFFF, 0x79AE, 0x79AE, 0xFFFF, 0x91B4, 0x91B4, 0xFFFF }; unsigned short unac_data543[] = { 0x96B8, 0x96B8, 0xFFFF, 0x60E1, 0x60E1, 0xFFFF, 0x4E86, 0x4E86, 0xFFFF, 0x50DA, 0x50DA, 0xFFFF, 0x5BEE, 0x5BEE, 0xFFFF, 0x5C3F, 0x5C3F, 0xFFFF, 0x6599, 0x6599, 0xFFFF, 0x6A02, 0x6A02, 0xFFFF }; unsigned short unac_data544[] = { 0x71CE, 0x71CE, 0xFFFF, 0x7642, 0x7642, 0xFFFF, 0x84FC, 0x84FC, 0xFFFF, 0x907C, 0x907C, 0xFFFF, 0x9F8D, 0x9F8D, 0xFFFF, 0x6688, 0x6688, 0xFFFF, 0x962E, 0x962E, 0xFFFF, 0x5289, 0x5289, 0xFFFF }; unsigned short unac_data545[] = { 0x677B, 0x677B, 0xFFFF, 0x67F3, 0x67F3, 0xFFFF, 0x6D41, 0x6D41, 0xFFFF, 0x6E9C, 0x6E9C, 0xFFFF, 0x7409, 0x7409, 0xFFFF, 0x7559, 0x7559, 0xFFFF, 0x786B, 0x786B, 0xFFFF, 0x7D10, 0x7D10, 0xFFFF }; unsigned short unac_data546[] = { 0x985E, 0x985E, 0xFFFF, 0x516D, 0x516D, 0xFFFF, 0x622E, 0x622E, 0xFFFF, 0x9678, 0x9678, 0xFFFF, 0x502B, 0x502B, 0xFFFF, 0x5D19, 0x5D19, 0xFFFF, 0x6DEA, 0x6DEA, 0xFFFF, 0x8F2A, 0x8F2A, 0xFFFF }; unsigned short unac_data547[] = { 0x5F8B, 0x5F8B, 0xFFFF, 0x6144, 0x6144, 0xFFFF, 0x6817, 0x6817, 0xFFFF, 0x7387, 0x7387, 0xFFFF, 0x9686, 0x9686, 0xFFFF, 0x5229, 0x5229, 0xFFFF, 0x540F, 0x540F, 0xFFFF, 0x5C65, 0x5C65, 0xFFFF }; unsigned short unac_data548[] = { 0x6613, 0x6613, 0xFFFF, 0x674E, 0x674E, 0xFFFF, 0x68A8, 0x68A8, 0xFFFF, 0x6CE5, 0x6CE5, 0xFFFF, 0x7406, 0x7406, 0xFFFF, 0x75E2, 0x75E2, 0xFFFF, 0x7F79, 0x7F79, 0xFFFF, 0x88CF, 0x88CF, 0xFFFF }; unsigned short unac_data549[] = { 0x88E1, 0x88E1, 0xFFFF, 0x91CC, 0x91CC, 0xFFFF, 0x96E2, 0x96E2, 0xFFFF, 0x533F, 0x533F, 0xFFFF, 0x6EBA, 0x6EBA, 0xFFFF, 0x541D, 0x541D, 0xFFFF, 0x71D0, 0x71D0, 0xFFFF, 0x7498, 0x7498, 0xFFFF }; unsigned short unac_data550[] = { 0x85FA, 0x85FA, 0xFFFF, 0x96A3, 0x96A3, 0xFFFF, 0x9C57, 0x9C57, 0xFFFF, 0x9E9F, 0x9E9F, 0xFFFF, 0x6797, 0x6797, 0xFFFF, 0x6DCB, 0x6DCB, 0xFFFF, 0x81E8, 0x81E8, 0xFFFF, 0x7ACB, 0x7ACB, 0xFFFF }; unsigned short unac_data551[] = { 0x7B20, 0x7B20, 0xFFFF, 0x7C92, 0x7C92, 0xFFFF, 0x72C0, 0x72C0, 0xFFFF, 0x7099, 0x7099, 0xFFFF, 0x8B58, 0x8B58, 0xFFFF, 0x4EC0, 0x4EC0, 0xFFFF, 0x8336, 0x8336, 0xFFFF, 0x523A, 0x523A, 0xFFFF }; unsigned short unac_data552[] = { 0x5207, 0x5207, 0xFFFF, 0x5EA6, 0x5EA6, 0xFFFF, 0x62D3, 0x62D3, 0xFFFF, 0x7CD6, 0x7CD6, 0xFFFF, 0x5B85, 0x5B85, 0xFFFF, 0x6D1E, 0x6D1E, 0xFFFF, 0x66B4, 0x66B4, 0xFFFF, 0x8F3B, 0x8F3B, 0xFFFF }; unsigned short unac_data553[] = { 0x884C, 0x884C, 0xFFFF, 0x964D, 0x964D, 0xFFFF, 0x898B, 0x898B, 0xFFFF, 0x5ED3, 0x5ED3, 0xFFFF, 0x5140, 0x5140, 0xFFFF, 0x55C0, 0x55C0, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data554[] = { 0x585A, 0x585A, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x6674, 0x6674, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x51DE, 0x51DE, 0xFFFF, 0x732A, 0x732A, 0xFFFF, 0x76CA, 0x76CA, 0xFFFF }; unsigned short unac_data555[] = { 0x793C, 0x793C, 0xFFFF, 0x795E, 0x795E, 0xFFFF, 0x7965, 0x7965, 0xFFFF, 0x798F, 0x798F, 0xFFFF, 0x9756, 0x9756, 0xFFFF, 0x7CBE, 0x7CBE, 0xFFFF, 0x7FBD, 0x7FBD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data556[] = { 0x8612, 0x8612, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x8AF8, 0x8AF8, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x9038, 0x9038, 0xFFFF, 0x90FD, 0x90FD, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data557[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x98EF, 0x98EF, 0xFFFF, 0x98FC, 0x98FC, 0xFFFF, 0x9928, 0x9928, 0xFFFF, 0x9DB4, 0x9DB4, 0xFFFF, 0x90DE, 0x90DE, 0xFFFF, 0x96B7, 0x96B7, 0xFFFF }; unsigned short unac_data558[] = { 0x4FAE, 0x4FAE, 0xFFFF, 0x50E7, 0x50E7, 0xFFFF, 0x514D, 0x514D, 0xFFFF, 0x52C9, 0x52C9, 0xFFFF, 0x52E4, 0x52E4, 0xFFFF, 0x5351, 0x5351, 0xFFFF, 0x559D, 0x559D, 0xFFFF, 0x5606, 0x5606, 0xFFFF }; unsigned short unac_data559[] = { 0x5668, 0x5668, 0xFFFF, 0x5840, 0x5840, 0xFFFF, 0x58A8, 0x58A8, 0xFFFF, 0x5C64, 0x5C64, 0xFFFF, 0x5C6E, 0x5C6E, 0xFFFF, 0x6094, 0x6094, 0xFFFF, 0x6168, 0x6168, 0xFFFF, 0x618E, 0x618E, 0xFFFF }; unsigned short unac_data560[] = { 0x61F2, 0x61F2, 0xFFFF, 0x654F, 0x654F, 0xFFFF, 0x65E2, 0x65E2, 0xFFFF, 0x6691, 0x6691, 0xFFFF, 0x6885, 0x6885, 0xFFFF, 0x6D77, 0x6D77, 0xFFFF, 0x6E1A, 0x6E1A, 0xFFFF, 0x6F22, 0x6F22, 0xFFFF }; unsigned short unac_data561[] = { 0x716E, 0x716E, 0xFFFF, 0x722B, 0x722B, 0xFFFF, 0x7422, 0x7422, 0xFFFF, 0x7891, 0x7891, 0xFFFF, 0x793E, 0x793E, 0xFFFF, 0x7949, 0x7949, 0xFFFF, 0x7948, 0x7948, 0xFFFF, 0x7950, 0x7950, 0xFFFF }; unsigned short unac_data562[] = { 0x7956, 0x7956, 0xFFFF, 0x795D, 0x795D, 0xFFFF, 0x798D, 0x798D, 0xFFFF, 0x798E, 0x798E, 0xFFFF, 0x7A40, 0x7A40, 0xFFFF, 0x7A81, 0x7A81, 0xFFFF, 0x7BC0, 0x7BC0, 0xFFFF, 0x7DF4, 0x7DF4, 0xFFFF }; unsigned short unac_data563[] = { 0x7E09, 0x7E09, 0xFFFF, 0x7E41, 0x7E41, 0xFFFF, 0x7F72, 0x7F72, 0xFFFF, 0x8005, 0x8005, 0xFFFF, 0x81ED, 0x81ED, 0xFFFF, 0x8279, 0x8279, 0xFFFF, 0x8279, 0x8279, 0xFFFF, 0x8457, 0x8457, 0xFFFF }; unsigned short unac_data564[] = { 0x8910, 0x8910, 0xFFFF, 0x8996, 0x8996, 0xFFFF, 0x8B01, 0x8B01, 0xFFFF, 0x8B39, 0x8B39, 0xFFFF, 0x8CD3, 0x8CD3, 0xFFFF, 0x8D08, 0x8D08, 0xFFFF, 0x8FB6, 0x8FB6, 0xFFFF, 0x9038, 0x9038, 0xFFFF }; unsigned short unac_data565[] = { 0x96E3, 0x96E3, 0xFFFF, 0x97FF, 0x97FF, 0xFFFF, 0x983B, 0x983B, 0xFFFF, 0x6075, 0x6075, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x8218, 0x8218, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data566[] = { 0x4E26, 0x4E26, 0xFFFF, 0x51B5, 0x51B5, 0xFFFF, 0x5168, 0x5168, 0xFFFF, 0x4F80, 0x4F80, 0xFFFF, 0x5145, 0x5145, 0xFFFF, 0x5180, 0x5180, 0xFFFF, 0x52C7, 0x52C7, 0xFFFF, 0x52FA, 0x52FA, 0xFFFF }; unsigned short unac_data567[] = { 0x559D, 0x559D, 0xFFFF, 0x5555, 0x5555, 0xFFFF, 0x5599, 0x5599, 0xFFFF, 0x55E2, 0x55E2, 0xFFFF, 0x585A, 0x585A, 0xFFFF, 0x58B3, 0x58B3, 0xFFFF, 0x5944, 0x5944, 0xFFFF, 0x5954, 0x5954, 0xFFFF }; unsigned short unac_data568[] = { 0x5A62, 0x5A62, 0xFFFF, 0x5B28, 0x5B28, 0xFFFF, 0x5ED2, 0x5ED2, 0xFFFF, 0x5ED9, 0x5ED9, 0xFFFF, 0x5F69, 0x5F69, 0xFFFF, 0x5FAD, 0x5FAD, 0xFFFF, 0x60D8, 0x60D8, 0xFFFF, 0x614E, 0x614E, 0xFFFF }; unsigned short unac_data569[] = { 0x6108, 0x6108, 0xFFFF, 0x618E, 0x618E, 0xFFFF, 0x6160, 0x6160, 0xFFFF, 0x61F2, 0x61F2, 0xFFFF, 0x6234, 0x6234, 0xFFFF, 0x63C4, 0x63C4, 0xFFFF, 0x641C, 0x641C, 0xFFFF, 0x6452, 0x6452, 0xFFFF }; unsigned short unac_data570[] = { 0x6556, 0x6556, 0xFFFF, 0x6674, 0x6674, 0xFFFF, 0x6717, 0x6717, 0xFFFF, 0x671B, 0x671B, 0xFFFF, 0x6756, 0x6756, 0xFFFF, 0x6B79, 0x6B79, 0xFFFF, 0x6BBA, 0x6BBA, 0xFFFF, 0x6D41, 0x6D41, 0xFFFF }; unsigned short unac_data571[] = { 0x6EDB, 0x6EDB, 0xFFFF, 0x6ECB, 0x6ECB, 0xFFFF, 0x6F22, 0x6F22, 0xFFFF, 0x701E, 0x701E, 0xFFFF, 0x716E, 0x716E, 0xFFFF, 0x77A7, 0x77A7, 0xFFFF, 0x7235, 0x7235, 0xFFFF, 0x72AF, 0x72AF, 0xFFFF }; unsigned short unac_data572[] = { 0x732A, 0x732A, 0xFFFF, 0x7471, 0x7471, 0xFFFF, 0x7506, 0x7506, 0xFFFF, 0x753B, 0x753B, 0xFFFF, 0x761D, 0x761D, 0xFFFF, 0x761F, 0x761F, 0xFFFF, 0x76CA, 0x76CA, 0xFFFF, 0x76DB, 0x76DB, 0xFFFF }; unsigned short unac_data573[] = { 0x76F4, 0x76F4, 0xFFFF, 0x774A, 0x774A, 0xFFFF, 0x7740, 0x7740, 0xFFFF, 0x78CC, 0x78CC, 0xFFFF, 0x7AB1, 0x7AB1, 0xFFFF, 0x7BC0, 0x7BC0, 0xFFFF, 0x7C7B, 0x7C7B, 0xFFFF, 0x7D5B, 0x7D5B, 0xFFFF }; unsigned short unac_data574[] = { 0x7DF4, 0x7DF4, 0xFFFF, 0x7F3E, 0x7F3E, 0xFFFF, 0x8005, 0x8005, 0xFFFF, 0x8352, 0x8352, 0xFFFF, 0x83EF, 0x83EF, 0xFFFF, 0x8779, 0x8779, 0xFFFF, 0x8941, 0x8941, 0xFFFF, 0x8986, 0x8986, 0xFFFF }; unsigned short unac_data575[] = { 0x8996, 0x8996, 0xFFFF, 0x8ABF, 0x8ABF, 0xFFFF, 0x8AF8, 0x8AF8, 0xFFFF, 0x8ACB, 0x8ACB, 0xFFFF, 0x8B01, 0x8B01, 0xFFFF, 0x8AFE, 0x8AFE, 0xFFFF, 0x8AED, 0x8AED, 0xFFFF, 0x8B39, 0x8B39, 0xFFFF }; unsigned short unac_data576[] = { 0x8B8A, 0x8B8A, 0xFFFF, 0x8D08, 0x8D08, 0xFFFF, 0x8F38, 0x8F38, 0xFFFF, 0x9072, 0x9072, 0xFFFF, 0x9199, 0x9199, 0xFFFF, 0x9276, 0x9276, 0xFFFF, 0x967C, 0x967C, 0xFFFF, 0x96E3, 0x96E3, 0xFFFF }; unsigned short unac_data577[] = { 0x9756, 0x9756, 0xFFFF, 0x97DB, 0x97DB, 0xFFFF, 0x97FF, 0x97FF, 0xFFFF, 0x980B, 0x980B, 0xFFFF, 0x983B, 0x983B, 0xFFFF, 0x9B12, 0x9B12, 0xFFFF, 0x9F9C, 0x9F9C, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data578[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x3B9D, 0x3B9D, 0xFFFF, 0x4018, 0x4018, 0xFFFF, 0x4039, 0x4039, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data579[] = { 0x9F43, 0x9F43, 0xFFFF, 0x9F8E, 0x9F8E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data580[] = { 0x0066, 0x0066, 0x0066, 0x0066, 0x0066, 0x0066, 0x0066, 0x0069, 0x0066, 0x0069, 0x0066, 0x0069, 0x0066, 0x006C, 0x0066, 0x006C, 0x0066, 0x006C, 0x0066, 0x0066, 0x0069, 0x0066, 0x0066, 0x0069, 0x0066, 0x0066, 0x0069, 0x0066, 0x0066, 0x006C, 0x0066, 0x0066, 0x006C, 0x0066, 0x0066, 0x006C, 0x0074, 0x0073, 0x0074, 0x0073, 0x0073, 0x0074, 0x0073, 0x0074, 0x0073, 0x0074, 0x0073, 0x0074, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data581[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0574, 0x0576, 0x0574, 0x0576, 0x0574, 0x0576, 0x0574, 0x0565, 0x0574, 0x0565, 0x0574, 0x0565, 0x0574, 0x056B, 0x0574, 0x056B, 0x0574, 0x056B, 0x057E, 0x0576, 0x057E, 0x0576, 0x057E, 0x0576, 0x0574, 0x056D, 0x0574, 0x056D, 0x0574, 0x056D }; unsigned short unac_data582[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x05D9, 0x05D9, 0xFFFF, 0x0000, 0x0000, 0xFFFF, 0x05F2, 0x05F2, 0xFFFF }; unsigned short unac_data583[] = { 0x05E2, 0x05E2, 0xFFFF, 0x05D0, 0x05D0, 0xFFFF, 0x05D3, 0x05D3, 0xFFFF, 0x05D4, 0x05D4, 0xFFFF, 0x05DB, 0x05DB, 0xFFFF, 0x05DC, 0x05DC, 0xFFFF, 0x05DD, 0x05DD, 0xFFFF, 0x05E8, 0x05E8, 0xFFFF }; unsigned short unac_data584[] = { 0x05EA, 0x05EA, 0xFFFF, 0x002B, 0x002B, 0xFFFF, 0x05E9, 0x05E9, 0xFFFF, 0x05E9, 0x05E9, 0xFFFF, 0x05E9, 0x05E9, 0xFFFF, 0x05E9, 0x05E9, 0xFFFF, 0x05D0, 0x05D0, 0xFFFF, 0x05D0, 0x05D0, 0xFFFF }; unsigned short unac_data585[] = { 0x05D0, 0x05D0, 0xFFFF, 0x05D1, 0x05D1, 0xFFFF, 0x05D2, 0x05D2, 0xFFFF, 0x05D3, 0x05D3, 0xFFFF, 0x05D4, 0x05D4, 0xFFFF, 0x05D5, 0x05D5, 0xFFFF, 0x05D6, 0x05D6, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data586[] = { 0x05D8, 0x05D8, 0xFFFF, 0x05D9, 0x05D9, 0xFFFF, 0x05DA, 0x05DA, 0xFFFF, 0x05DB, 0x05DB, 0xFFFF, 0x05DC, 0x05DC, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x05DE, 0x05DE, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data587[] = { 0x05E0, 0x05E0, 0xFFFF, 0x05E1, 0x05E1, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x05E3, 0x05E3, 0xFFFF, 0x05E4, 0x05E4, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x05E6, 0x05E6, 0xFFFF, 0x05E7, 0x05E7, 0xFFFF }; unsigned short unac_data588[] = { 0x05E8, 0x05E8, 0xFFFF, 0x05E9, 0x05E9, 0xFFFF, 0x05EA, 0x05EA, 0xFFFF, 0x05D5, 0x05D5, 0xFFFF, 0x05D1, 0x05D1, 0xFFFF, 0x05DB, 0x05DB, 0xFFFF, 0x05E4, 0x05E4, 0xFFFF, 0x05D0, 0x05DC, 0x05D0, 0x05DC, 0xFFFF }; unsigned short unac_data589[] = { 0x0671, 0x0671, 0xFFFF, 0x0671, 0x0671, 0xFFFF, 0x067B, 0x067B, 0xFFFF, 0x067B, 0x067B, 0xFFFF, 0x067B, 0x067B, 0xFFFF, 0x067B, 0x067B, 0xFFFF, 0x067E, 0x067E, 0xFFFF, 0x067E, 0x067E, 0xFFFF }; unsigned short unac_data590[] = { 0x067E, 0x067E, 0xFFFF, 0x067E, 0x067E, 0xFFFF, 0x0680, 0x0680, 0xFFFF, 0x0680, 0x0680, 0xFFFF, 0x0680, 0x0680, 0xFFFF, 0x0680, 0x0680, 0xFFFF, 0x067A, 0x067A, 0xFFFF, 0x067A, 0x067A, 0xFFFF }; unsigned short unac_data591[] = { 0x067A, 0x067A, 0xFFFF, 0x067A, 0x067A, 0xFFFF, 0x067F, 0x067F, 0xFFFF, 0x067F, 0x067F, 0xFFFF, 0x067F, 0x067F, 0xFFFF, 0x067F, 0x067F, 0xFFFF, 0x0679, 0x0679, 0xFFFF, 0x0679, 0x0679, 0xFFFF }; unsigned short unac_data592[] = { 0x0679, 0x0679, 0xFFFF, 0x0679, 0x0679, 0xFFFF, 0x06A4, 0x06A4, 0xFFFF, 0x06A4, 0x06A4, 0xFFFF, 0x06A4, 0x06A4, 0xFFFF, 0x06A4, 0x06A4, 0xFFFF, 0x06A6, 0x06A6, 0xFFFF, 0x06A6, 0x06A6, 0xFFFF }; unsigned short unac_data593[] = { 0x06A6, 0x06A6, 0xFFFF, 0x06A6, 0x06A6, 0xFFFF, 0x0684, 0x0684, 0xFFFF, 0x0684, 0x0684, 0xFFFF, 0x0684, 0x0684, 0xFFFF, 0x0684, 0x0684, 0xFFFF, 0x0683, 0x0683, 0xFFFF, 0x0683, 0x0683, 0xFFFF }; unsigned short unac_data594[] = { 0x0683, 0x0683, 0xFFFF, 0x0683, 0x0683, 0xFFFF, 0x0686, 0x0686, 0xFFFF, 0x0686, 0x0686, 0xFFFF, 0x0686, 0x0686, 0xFFFF, 0x0686, 0x0686, 0xFFFF, 0x0687, 0x0687, 0xFFFF, 0x0687, 0x0687, 0xFFFF }; unsigned short unac_data595[] = { 0x0687, 0x0687, 0xFFFF, 0x0687, 0x0687, 0xFFFF, 0x068D, 0x068D, 0xFFFF, 0x068D, 0x068D, 0xFFFF, 0x068C, 0x068C, 0xFFFF, 0x068C, 0x068C, 0xFFFF, 0x068E, 0x068E, 0xFFFF, 0x068E, 0x068E, 0xFFFF }; unsigned short unac_data596[] = { 0x0688, 0x0688, 0xFFFF, 0x0688, 0x0688, 0xFFFF, 0x0698, 0x0698, 0xFFFF, 0x0698, 0x0698, 0xFFFF, 0x0691, 0x0691, 0xFFFF, 0x0691, 0x0691, 0xFFFF, 0x06A9, 0x06A9, 0xFFFF, 0x06A9, 0x06A9, 0xFFFF }; unsigned short unac_data597[] = { 0x06A9, 0x06A9, 0xFFFF, 0x06A9, 0x06A9, 0xFFFF, 0x06AF, 0x06AF, 0xFFFF, 0x06AF, 0x06AF, 0xFFFF, 0x06AF, 0x06AF, 0xFFFF, 0x06AF, 0x06AF, 0xFFFF, 0x06B3, 0x06B3, 0xFFFF, 0x06B3, 0x06B3, 0xFFFF }; unsigned short unac_data598[] = { 0x06B3, 0x06B3, 0xFFFF, 0x06B3, 0x06B3, 0xFFFF, 0x06B1, 0x06B1, 0xFFFF, 0x06B1, 0x06B1, 0xFFFF, 0x06B1, 0x06B1, 0xFFFF, 0x06B1, 0x06B1, 0xFFFF, 0x06BA, 0x06BA, 0xFFFF, 0x06BA, 0x06BA, 0xFFFF }; unsigned short unac_data599[] = { 0x06BB, 0x06BB, 0xFFFF, 0x06BB, 0x06BB, 0xFFFF, 0x06BB, 0x06BB, 0xFFFF, 0x06BB, 0x06BB, 0xFFFF, 0x06D5, 0x06D5, 0xFFFF, 0x06D5, 0x06D5, 0xFFFF, 0x06C1, 0x06C1, 0xFFFF, 0x06C1, 0x06C1, 0xFFFF }; unsigned short unac_data600[] = { 0x06C1, 0x06C1, 0xFFFF, 0x06C1, 0x06C1, 0xFFFF, 0x06BE, 0x06BE, 0xFFFF, 0x06BE, 0x06BE, 0xFFFF, 0x06BE, 0x06BE, 0xFFFF, 0x06BE, 0x06BE, 0xFFFF, 0x06D2, 0x06D2, 0xFFFF, 0x06D2, 0x06D2, 0xFFFF }; unsigned short unac_data601[] = { 0x06D2, 0x06D2, 0xFFFF, 0x06D2, 0x06D2, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data602[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x06AD, 0x06AD, 0xFFFF, 0x06AD, 0x06AD, 0xFFFF, 0x06AD, 0x06AD, 0xFFFF, 0x06AD, 0x06AD, 0xFFFF, 0x06C7, 0x06C7, 0xFFFF }; unsigned short unac_data603[] = { 0x06C7, 0x06C7, 0xFFFF, 0x06C6, 0x06C6, 0xFFFF, 0x06C6, 0x06C6, 0xFFFF, 0x06C8, 0x06C8, 0xFFFF, 0x06C8, 0x06C8, 0xFFFF, 0x06C7, 0x0674, 0x06C7, 0x0674, 0xFFFF, 0x06CB, 0x06CB, 0xFFFF, 0x06CB, 0x06CB, 0xFFFF }; unsigned short unac_data604[] = { 0x06C5, 0x06C5, 0xFFFF, 0x06C5, 0x06C5, 0xFFFF, 0x06C9, 0x06C9, 0xFFFF, 0x06C9, 0x06C9, 0xFFFF, 0x06D0, 0x06D0, 0xFFFF, 0x06D0, 0x06D0, 0xFFFF, 0x06D0, 0x06D0, 0xFFFF, 0x06D0, 0x06D0, 0xFFFF }; unsigned short unac_data605[] = { 0x0649, 0x0649, 0xFFFF, 0x0649, 0x0649, 0xFFFF, 0x0627, 0x064A, 0x0627, 0x064A, 0xFFFF, 0x0627, 0x064A, 0x0627, 0x064A, 0xFFFF, 0x06D5, 0x064A, 0x06D5, 0x064A, 0xFFFF, 0x06D5, 0x064A, 0x06D5, 0x064A, 0xFFFF, 0x0648, 0x064A, 0x0648, 0x064A, 0xFFFF, 0x0648, 0x064A, 0x0648, 0x064A, 0xFFFF }; unsigned short unac_data606[] = { 0x06C7, 0x064A, 0x06C7, 0x064A, 0xFFFF, 0x06C7, 0x064A, 0x06C7, 0x064A, 0xFFFF, 0x06C6, 0x064A, 0x06C6, 0x064A, 0xFFFF, 0x06C6, 0x064A, 0x06C6, 0x064A, 0xFFFF, 0x06C8, 0x064A, 0x06C8, 0x064A, 0xFFFF, 0x06C8, 0x064A, 0x06C8, 0x064A, 0xFFFF, 0x06D0, 0x064A, 0x06D0, 0x064A, 0xFFFF, 0x06D0, 0x064A, 0x06D0, 0x064A, 0xFFFF }; unsigned short unac_data607[] = { 0x06D0, 0x064A, 0x06D0, 0x064A, 0xFFFF, 0x0649, 0x064A, 0x0649, 0x064A, 0xFFFF, 0x0649, 0x064A, 0x0649, 0x064A, 0xFFFF, 0x0649, 0x064A, 0x0649, 0x064A, 0xFFFF, 0x06CC, 0x06CC, 0xFFFF, 0x06CC, 0x06CC, 0xFFFF, 0x06CC, 0x06CC, 0xFFFF, 0x06CC, 0x06CC, 0xFFFF }; unsigned short unac_data608[] = { 0x062C, 0x064A, 0x062C, 0x064A, 0xFFFF, 0x062D, 0x064A, 0x062D, 0x064A, 0xFFFF, 0x0645, 0x064A, 0x0645, 0x064A, 0xFFFF, 0x0649, 0x064A, 0x0649, 0x064A, 0xFFFF, 0x064A, 0x064A, 0x064A, 0x064A, 0xFFFF, 0x0628, 0x062C, 0x0628, 0x062C, 0xFFFF, 0x0628, 0x062D, 0x0628, 0x062D, 0xFFFF, 0x0628, 0x062E, 0x0628, 0x062E, 0xFFFF }; unsigned short unac_data609[] = { 0x0628, 0x0645, 0x0628, 0x0645, 0xFFFF, 0x0628, 0x0649, 0x0628, 0x0649, 0xFFFF, 0x0628, 0x064A, 0x0628, 0x064A, 0xFFFF, 0x062A, 0x062C, 0x062A, 0x062C, 0xFFFF, 0x062A, 0x062D, 0x062A, 0x062D, 0xFFFF, 0x062A, 0x062E, 0x062A, 0x062E, 0xFFFF, 0x062A, 0x0645, 0x062A, 0x0645, 0xFFFF, 0x062A, 0x0649, 0x062A, 0x0649, 0xFFFF }; unsigned short unac_data610[] = { 0x062A, 0x064A, 0x062A, 0x064A, 0xFFFF, 0x062B, 0x062C, 0x062B, 0x062C, 0xFFFF, 0x062B, 0x0645, 0x062B, 0x0645, 0xFFFF, 0x062B, 0x0649, 0x062B, 0x0649, 0xFFFF, 0x062B, 0x064A, 0x062B, 0x064A, 0xFFFF, 0x062C, 0x062D, 0x062C, 0x062D, 0xFFFF, 0x062C, 0x0645, 0x062C, 0x0645, 0xFFFF, 0x062D, 0x062C, 0x062D, 0x062C, 0xFFFF }; unsigned short unac_data611[] = { 0x062D, 0x0645, 0x062D, 0x0645, 0xFFFF, 0x062E, 0x062C, 0x062E, 0x062C, 0xFFFF, 0x062E, 0x062D, 0x062E, 0x062D, 0xFFFF, 0x062E, 0x0645, 0x062E, 0x0645, 0xFFFF, 0x0633, 0x062C, 0x0633, 0x062C, 0xFFFF, 0x0633, 0x062D, 0x0633, 0x062D, 0xFFFF, 0x0633, 0x062E, 0x0633, 0x062E, 0xFFFF, 0x0633, 0x0645, 0x0633, 0x0645, 0xFFFF }; unsigned short unac_data612[] = { 0x0635, 0x062D, 0x0635, 0x062D, 0xFFFF, 0x0635, 0x0645, 0x0635, 0x0645, 0xFFFF, 0x0636, 0x062C, 0x0636, 0x062C, 0xFFFF, 0x0636, 0x062D, 0x0636, 0x062D, 0xFFFF, 0x0636, 0x062E, 0x0636, 0x062E, 0xFFFF, 0x0636, 0x0645, 0x0636, 0x0645, 0xFFFF, 0x0637, 0x062D, 0x0637, 0x062D, 0xFFFF, 0x0637, 0x0645, 0x0637, 0x0645, 0xFFFF }; unsigned short unac_data613[] = { 0x0638, 0x0645, 0x0638, 0x0645, 0xFFFF, 0x0639, 0x062C, 0x0639, 0x062C, 0xFFFF, 0x0639, 0x0645, 0x0639, 0x0645, 0xFFFF, 0x063A, 0x062C, 0x063A, 0x062C, 0xFFFF, 0x063A, 0x0645, 0x063A, 0x0645, 0xFFFF, 0x0641, 0x062C, 0x0641, 0x062C, 0xFFFF, 0x0641, 0x062D, 0x0641, 0x062D, 0xFFFF, 0x0641, 0x062E, 0x0641, 0x062E, 0xFFFF }; unsigned short unac_data614[] = { 0x0641, 0x0645, 0x0641, 0x0645, 0xFFFF, 0x0641, 0x0649, 0x0641, 0x0649, 0xFFFF, 0x0641, 0x064A, 0x0641, 0x064A, 0xFFFF, 0x0642, 0x062D, 0x0642, 0x062D, 0xFFFF, 0x0642, 0x0645, 0x0642, 0x0645, 0xFFFF, 0x0642, 0x0649, 0x0642, 0x0649, 0xFFFF, 0x0642, 0x064A, 0x0642, 0x064A, 0xFFFF, 0x0643, 0x0627, 0x0643, 0x0627, 0xFFFF }; unsigned short unac_data615[] = { 0x0643, 0x062C, 0x0643, 0x062C, 0xFFFF, 0x0643, 0x062D, 0x0643, 0x062D, 0xFFFF, 0x0643, 0x062E, 0x0643, 0x062E, 0xFFFF, 0x0643, 0x0644, 0x0643, 0x0644, 0xFFFF, 0x0643, 0x0645, 0x0643, 0x0645, 0xFFFF, 0x0643, 0x0649, 0x0643, 0x0649, 0xFFFF, 0x0643, 0x064A, 0x0643, 0x064A, 0xFFFF, 0x0644, 0x062C, 0x0644, 0x062C, 0xFFFF }; unsigned short unac_data616[] = { 0x0644, 0x062D, 0x0644, 0x062D, 0xFFFF, 0x0644, 0x062E, 0x0644, 0x062E, 0xFFFF, 0x0644, 0x0645, 0x0644, 0x0645, 0xFFFF, 0x0644, 0x0649, 0x0644, 0x0649, 0xFFFF, 0x0644, 0x064A, 0x0644, 0x064A, 0xFFFF, 0x0645, 0x062C, 0x0645, 0x062C, 0xFFFF, 0x0645, 0x062D, 0x0645, 0x062D, 0xFFFF, 0x0645, 0x062E, 0x0645, 0x062E, 0xFFFF }; unsigned short unac_data617[] = { 0x0645, 0x0645, 0x0645, 0x0645, 0xFFFF, 0x0645, 0x0649, 0x0645, 0x0649, 0xFFFF, 0x0645, 0x064A, 0x0645, 0x064A, 0xFFFF, 0x0646, 0x062C, 0x0646, 0x062C, 0xFFFF, 0x0646, 0x062D, 0x0646, 0x062D, 0xFFFF, 0x0646, 0x062E, 0x0646, 0x062E, 0xFFFF, 0x0646, 0x0645, 0x0646, 0x0645, 0xFFFF, 0x0646, 0x0649, 0x0646, 0x0649, 0xFFFF }; unsigned short unac_data618[] = { 0x0646, 0x064A, 0x0646, 0x064A, 0xFFFF, 0x0647, 0x062C, 0x0647, 0x062C, 0xFFFF, 0x0647, 0x0645, 0x0647, 0x0645, 0xFFFF, 0x0647, 0x0649, 0x0647, 0x0649, 0xFFFF, 0x0647, 0x064A, 0x0647, 0x064A, 0xFFFF, 0x064A, 0x062C, 0x064A, 0x062C, 0xFFFF, 0x064A, 0x062D, 0x064A, 0x062D, 0xFFFF, 0x064A, 0x062E, 0x064A, 0x062E, 0xFFFF }; unsigned short unac_data619[] = { 0x064A, 0x0645, 0x064A, 0x0645, 0xFFFF, 0x064A, 0x0649, 0x064A, 0x0649, 0xFFFF, 0x064A, 0x064A, 0x064A, 0x064A, 0xFFFF, 0x0630, 0x0630, 0xFFFF, 0x0631, 0x0631, 0xFFFF, 0x0649, 0x0649, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF }; unsigned short unac_data620[] = { 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0631, 0x064A, 0x0631, 0x064A, 0xFFFF, 0x0632, 0x064A, 0x0632, 0x064A, 0xFFFF, 0x0645, 0x064A, 0x0645, 0x064A, 0xFFFF, 0x0646, 0x064A, 0x0646, 0x064A, 0xFFFF }; unsigned short unac_data621[] = { 0x0649, 0x064A, 0x0649, 0x064A, 0xFFFF, 0x064A, 0x064A, 0x064A, 0x064A, 0xFFFF, 0x0628, 0x0631, 0x0628, 0x0631, 0xFFFF, 0x0628, 0x0632, 0x0628, 0x0632, 0xFFFF, 0x0628, 0x0645, 0x0628, 0x0645, 0xFFFF, 0x0628, 0x0646, 0x0628, 0x0646, 0xFFFF, 0x0628, 0x0649, 0x0628, 0x0649, 0xFFFF, 0x0628, 0x064A, 0x0628, 0x064A, 0xFFFF }; unsigned short unac_data622[] = { 0x062A, 0x0631, 0x062A, 0x0631, 0xFFFF, 0x062A, 0x0632, 0x062A, 0x0632, 0xFFFF, 0x062A, 0x0645, 0x062A, 0x0645, 0xFFFF, 0x062A, 0x0646, 0x062A, 0x0646, 0xFFFF, 0x062A, 0x0649, 0x062A, 0x0649, 0xFFFF, 0x062A, 0x064A, 0x062A, 0x064A, 0xFFFF, 0x062B, 0x0631, 0x062B, 0x0631, 0xFFFF, 0x062B, 0x0632, 0x062B, 0x0632, 0xFFFF }; unsigned short unac_data623[] = { 0x062B, 0x0645, 0x062B, 0x0645, 0xFFFF, 0x062B, 0x0646, 0x062B, 0x0646, 0xFFFF, 0x062B, 0x0649, 0x062B, 0x0649, 0xFFFF, 0x062B, 0x064A, 0x062B, 0x064A, 0xFFFF, 0x0641, 0x0649, 0x0641, 0x0649, 0xFFFF, 0x0641, 0x064A, 0x0641, 0x064A, 0xFFFF, 0x0642, 0x0649, 0x0642, 0x0649, 0xFFFF, 0x0642, 0x064A, 0x0642, 0x064A, 0xFFFF }; unsigned short unac_data624[] = { 0x0643, 0x0627, 0x0643, 0x0627, 0xFFFF, 0x0643, 0x0644, 0x0643, 0x0644, 0xFFFF, 0x0643, 0x0645, 0x0643, 0x0645, 0xFFFF, 0x0643, 0x0649, 0x0643, 0x0649, 0xFFFF, 0x0643, 0x064A, 0x0643, 0x064A, 0xFFFF, 0x0644, 0x0645, 0x0644, 0x0645, 0xFFFF, 0x0644, 0x0649, 0x0644, 0x0649, 0xFFFF, 0x0644, 0x064A, 0x0644, 0x064A, 0xFFFF }; unsigned short unac_data625[] = { 0x0645, 0x0627, 0x0645, 0x0627, 0xFFFF, 0x0645, 0x0645, 0x0645, 0x0645, 0xFFFF, 0x0646, 0x0631, 0x0646, 0x0631, 0xFFFF, 0x0646, 0x0632, 0x0646, 0x0632, 0xFFFF, 0x0646, 0x0645, 0x0646, 0x0645, 0xFFFF, 0x0646, 0x0646, 0x0646, 0x0646, 0xFFFF, 0x0646, 0x0649, 0x0646, 0x0649, 0xFFFF, 0x0646, 0x064A, 0x0646, 0x064A, 0xFFFF }; unsigned short unac_data626[] = { 0x0649, 0x0649, 0xFFFF, 0x064A, 0x0631, 0x064A, 0x0631, 0xFFFF, 0x064A, 0x0632, 0x064A, 0x0632, 0xFFFF, 0x064A, 0x0645, 0x064A, 0x0645, 0xFFFF, 0x064A, 0x0646, 0x064A, 0x0646, 0xFFFF, 0x064A, 0x0649, 0x064A, 0x0649, 0xFFFF, 0x064A, 0x064A, 0x064A, 0x064A, 0xFFFF, 0x062C, 0x064A, 0x062C, 0x064A, 0xFFFF }; unsigned short unac_data627[] = { 0x062D, 0x064A, 0x062D, 0x064A, 0xFFFF, 0x062E, 0x064A, 0x062E, 0x064A, 0xFFFF, 0x0645, 0x064A, 0x0645, 0x064A, 0xFFFF, 0x0647, 0x064A, 0x0647, 0x064A, 0xFFFF, 0x0628, 0x062C, 0x0628, 0x062C, 0xFFFF, 0x0628, 0x062D, 0x0628, 0x062D, 0xFFFF, 0x0628, 0x062E, 0x0628, 0x062E, 0xFFFF, 0x0628, 0x0645, 0x0628, 0x0645, 0xFFFF }; unsigned short unac_data628[] = { 0x0628, 0x0647, 0x0628, 0x0647, 0xFFFF, 0x062A, 0x062C, 0x062A, 0x062C, 0xFFFF, 0x062A, 0x062D, 0x062A, 0x062D, 0xFFFF, 0x062A, 0x062E, 0x062A, 0x062E, 0xFFFF, 0x062A, 0x0645, 0x062A, 0x0645, 0xFFFF, 0x062A, 0x0647, 0x062A, 0x0647, 0xFFFF, 0x062B, 0x0645, 0x062B, 0x0645, 0xFFFF, 0x062C, 0x062D, 0x062C, 0x062D, 0xFFFF }; unsigned short unac_data629[] = { 0x062C, 0x0645, 0x062C, 0x0645, 0xFFFF, 0x062D, 0x062C, 0x062D, 0x062C, 0xFFFF, 0x062D, 0x0645, 0x062D, 0x0645, 0xFFFF, 0x062E, 0x062C, 0x062E, 0x062C, 0xFFFF, 0x062E, 0x0645, 0x062E, 0x0645, 0xFFFF, 0x0633, 0x062C, 0x0633, 0x062C, 0xFFFF, 0x0633, 0x062D, 0x0633, 0x062D, 0xFFFF, 0x0633, 0x062E, 0x0633, 0x062E, 0xFFFF }; unsigned short unac_data630[] = { 0x0633, 0x0645, 0x0633, 0x0645, 0xFFFF, 0x0635, 0x062D, 0x0635, 0x062D, 0xFFFF, 0x0635, 0x062E, 0x0635, 0x062E, 0xFFFF, 0x0635, 0x0645, 0x0635, 0x0645, 0xFFFF, 0x0636, 0x062C, 0x0636, 0x062C, 0xFFFF, 0x0636, 0x062D, 0x0636, 0x062D, 0xFFFF, 0x0636, 0x062E, 0x0636, 0x062E, 0xFFFF, 0x0636, 0x0645, 0x0636, 0x0645, 0xFFFF }; unsigned short unac_data631[] = { 0x0637, 0x062D, 0x0637, 0x062D, 0xFFFF, 0x0638, 0x0645, 0x0638, 0x0645, 0xFFFF, 0x0639, 0x062C, 0x0639, 0x062C, 0xFFFF, 0x0639, 0x0645, 0x0639, 0x0645, 0xFFFF, 0x063A, 0x062C, 0x063A, 0x062C, 0xFFFF, 0x063A, 0x0645, 0x063A, 0x0645, 0xFFFF, 0x0641, 0x062C, 0x0641, 0x062C, 0xFFFF, 0x0641, 0x062D, 0x0641, 0x062D, 0xFFFF }; unsigned short unac_data632[] = { 0x0641, 0x062E, 0x0641, 0x062E, 0xFFFF, 0x0641, 0x0645, 0x0641, 0x0645, 0xFFFF, 0x0642, 0x062D, 0x0642, 0x062D, 0xFFFF, 0x0642, 0x0645, 0x0642, 0x0645, 0xFFFF, 0x0643, 0x062C, 0x0643, 0x062C, 0xFFFF, 0x0643, 0x062D, 0x0643, 0x062D, 0xFFFF, 0x0643, 0x062E, 0x0643, 0x062E, 0xFFFF, 0x0643, 0x0644, 0x0643, 0x0644, 0xFFFF }; unsigned short unac_data633[] = { 0x0643, 0x0645, 0x0643, 0x0645, 0xFFFF, 0x0644, 0x062C, 0x0644, 0x062C, 0xFFFF, 0x0644, 0x062D, 0x0644, 0x062D, 0xFFFF, 0x0644, 0x062E, 0x0644, 0x062E, 0xFFFF, 0x0644, 0x0645, 0x0644, 0x0645, 0xFFFF, 0x0644, 0x0647, 0x0644, 0x0647, 0xFFFF, 0x0645, 0x062C, 0x0645, 0x062C, 0xFFFF, 0x0645, 0x062D, 0x0645, 0x062D, 0xFFFF }; unsigned short unac_data634[] = { 0x0645, 0x062E, 0x0645, 0x062E, 0xFFFF, 0x0645, 0x0645, 0x0645, 0x0645, 0xFFFF, 0x0646, 0x062C, 0x0646, 0x062C, 0xFFFF, 0x0646, 0x062D, 0x0646, 0x062D, 0xFFFF, 0x0646, 0x062E, 0x0646, 0x062E, 0xFFFF, 0x0646, 0x0645, 0x0646, 0x0645, 0xFFFF, 0x0646, 0x0647, 0x0646, 0x0647, 0xFFFF, 0x0647, 0x062C, 0x0647, 0x062C, 0xFFFF }; unsigned short unac_data635[] = { 0x0647, 0x0645, 0x0647, 0x0645, 0xFFFF, 0x0647, 0x0647, 0xFFFF, 0x064A, 0x062C, 0x064A, 0x062C, 0xFFFF, 0x064A, 0x062D, 0x064A, 0x062D, 0xFFFF, 0x064A, 0x062E, 0x064A, 0x062E, 0xFFFF, 0x064A, 0x0645, 0x064A, 0x0645, 0xFFFF, 0x064A, 0x0647, 0x064A, 0x0647, 0xFFFF, 0x0645, 0x064A, 0x0645, 0x064A, 0xFFFF }; unsigned short unac_data636[] = { 0x0647, 0x064A, 0x0647, 0x064A, 0xFFFF, 0x0628, 0x0645, 0x0628, 0x0645, 0xFFFF, 0x0628, 0x0647, 0x0628, 0x0647, 0xFFFF, 0x062A, 0x0645, 0x062A, 0x0645, 0xFFFF, 0x062A, 0x0647, 0x062A, 0x0647, 0xFFFF, 0x062B, 0x0645, 0x062B, 0x0645, 0xFFFF, 0x062B, 0x0647, 0x062B, 0x0647, 0xFFFF, 0x0633, 0x0645, 0x0633, 0x0645, 0xFFFF }; unsigned short unac_data637[] = { 0x0633, 0x0647, 0x0633, 0x0647, 0xFFFF, 0x0634, 0x0645, 0x0634, 0x0645, 0xFFFF, 0x0634, 0x0647, 0x0634, 0x0647, 0xFFFF, 0x0643, 0x0644, 0x0643, 0x0644, 0xFFFF, 0x0643, 0x0645, 0x0643, 0x0645, 0xFFFF, 0x0644, 0x0645, 0x0644, 0x0645, 0xFFFF, 0x0646, 0x0645, 0x0646, 0x0645, 0xFFFF, 0x0646, 0x0647, 0x0646, 0x0647, 0xFFFF }; unsigned short unac_data638[] = { 0x064A, 0x0645, 0x064A, 0x0645, 0xFFFF, 0x064A, 0x0647, 0x064A, 0x0647, 0xFFFF, 0x0640, 0x0640, 0xFFFF, 0x0640, 0x0640, 0xFFFF, 0x0640, 0x0640, 0xFFFF, 0x0637, 0x0649, 0x0637, 0x0649, 0xFFFF, 0x0637, 0x064A, 0x0637, 0x064A, 0xFFFF, 0x0639, 0x0649, 0x0639, 0x0649, 0xFFFF }; unsigned short unac_data639[] = { 0x0639, 0x064A, 0x0639, 0x064A, 0xFFFF, 0x063A, 0x0649, 0x063A, 0x0649, 0xFFFF, 0x063A, 0x064A, 0x063A, 0x064A, 0xFFFF, 0x0633, 0x0649, 0x0633, 0x0649, 0xFFFF, 0x0633, 0x064A, 0x0633, 0x064A, 0xFFFF, 0x0634, 0x0649, 0x0634, 0x0649, 0xFFFF, 0x0634, 0x064A, 0x0634, 0x064A, 0xFFFF, 0x062D, 0x0649, 0x062D, 0x0649, 0xFFFF }; unsigned short unac_data640[] = { 0x062D, 0x064A, 0x062D, 0x064A, 0xFFFF, 0x062C, 0x0649, 0x062C, 0x0649, 0xFFFF, 0x062C, 0x064A, 0x062C, 0x064A, 0xFFFF, 0x062E, 0x0649, 0x062E, 0x0649, 0xFFFF, 0x062E, 0x064A, 0x062E, 0x064A, 0xFFFF, 0x0635, 0x0649, 0x0635, 0x0649, 0xFFFF, 0x0635, 0x064A, 0x0635, 0x064A, 0xFFFF, 0x0636, 0x0649, 0x0636, 0x0649, 0xFFFF }; unsigned short unac_data641[] = { 0x0636, 0x064A, 0x0636, 0x064A, 0xFFFF, 0x0634, 0x062C, 0x0634, 0x062C, 0xFFFF, 0x0634, 0x062D, 0x0634, 0x062D, 0xFFFF, 0x0634, 0x062E, 0x0634, 0x062E, 0xFFFF, 0x0634, 0x0645, 0x0634, 0x0645, 0xFFFF, 0x0634, 0x0631, 0x0634, 0x0631, 0xFFFF, 0x0633, 0x0631, 0x0633, 0x0631, 0xFFFF, 0x0635, 0x0631, 0x0635, 0x0631, 0xFFFF }; unsigned short unac_data642[] = { 0x0636, 0x0631, 0x0636, 0x0631, 0xFFFF, 0x0637, 0x0649, 0x0637, 0x0649, 0xFFFF, 0x0637, 0x064A, 0x0637, 0x064A, 0xFFFF, 0x0639, 0x0649, 0x0639, 0x0649, 0xFFFF, 0x0639, 0x064A, 0x0639, 0x064A, 0xFFFF, 0x063A, 0x0649, 0x063A, 0x0649, 0xFFFF, 0x063A, 0x064A, 0x063A, 0x064A, 0xFFFF, 0x0633, 0x0649, 0x0633, 0x0649, 0xFFFF }; unsigned short unac_data643[] = { 0x0633, 0x064A, 0x0633, 0x064A, 0xFFFF, 0x0634, 0x0649, 0x0634, 0x0649, 0xFFFF, 0x0634, 0x064A, 0x0634, 0x064A, 0xFFFF, 0x062D, 0x0649, 0x062D, 0x0649, 0xFFFF, 0x062D, 0x064A, 0x062D, 0x064A, 0xFFFF, 0x062C, 0x0649, 0x062C, 0x0649, 0xFFFF, 0x062C, 0x064A, 0x062C, 0x064A, 0xFFFF, 0x062E, 0x0649, 0x062E, 0x0649, 0xFFFF }; unsigned short unac_data644[] = { 0x062E, 0x064A, 0x062E, 0x064A, 0xFFFF, 0x0635, 0x0649, 0x0635, 0x0649, 0xFFFF, 0x0635, 0x064A, 0x0635, 0x064A, 0xFFFF, 0x0636, 0x0649, 0x0636, 0x0649, 0xFFFF, 0x0636, 0x064A, 0x0636, 0x064A, 0xFFFF, 0x0634, 0x062C, 0x0634, 0x062C, 0xFFFF, 0x0634, 0x062D, 0x0634, 0x062D, 0xFFFF, 0x0634, 0x062E, 0x0634, 0x062E, 0xFFFF }; unsigned short unac_data645[] = { 0x0634, 0x0645, 0x0634, 0x0645, 0xFFFF, 0x0634, 0x0631, 0x0634, 0x0631, 0xFFFF, 0x0633, 0x0631, 0x0633, 0x0631, 0xFFFF, 0x0635, 0x0631, 0x0635, 0x0631, 0xFFFF, 0x0636, 0x0631, 0x0636, 0x0631, 0xFFFF, 0x0634, 0x062C, 0x0634, 0x062C, 0xFFFF, 0x0634, 0x062D, 0x0634, 0x062D, 0xFFFF, 0x0634, 0x062E, 0x0634, 0x062E, 0xFFFF }; unsigned short unac_data646[] = { 0x0634, 0x0645, 0x0634, 0x0645, 0xFFFF, 0x0633, 0x0647, 0x0633, 0x0647, 0xFFFF, 0x0634, 0x0647, 0x0634, 0x0647, 0xFFFF, 0x0637, 0x0645, 0x0637, 0x0645, 0xFFFF, 0x0633, 0x062C, 0x0633, 0x062C, 0xFFFF, 0x0633, 0x062D, 0x0633, 0x062D, 0xFFFF, 0x0633, 0x062E, 0x0633, 0x062E, 0xFFFF, 0x0634, 0x062C, 0x0634, 0x062C, 0xFFFF }; unsigned short unac_data647[] = { 0x0634, 0x062D, 0x0634, 0x062D, 0xFFFF, 0x0634, 0x062E, 0x0634, 0x062E, 0xFFFF, 0x0637, 0x0645, 0x0637, 0x0645, 0xFFFF, 0x0638, 0x0645, 0x0638, 0x0645, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data648[] = { 0x062A, 0x062C, 0x0645, 0x062A, 0x062C, 0x0645, 0xFFFF, 0x062A, 0x062D, 0x062C, 0x062A, 0x062D, 0x062C, 0xFFFF, 0x062A, 0x062D, 0x062C, 0x062A, 0x062D, 0x062C, 0xFFFF, 0x062A, 0x062D, 0x0645, 0x062A, 0x062D, 0x0645, 0xFFFF, 0x062A, 0x062E, 0x0645, 0x062A, 0x062E, 0x0645, 0xFFFF, 0x062A, 0x0645, 0x062C, 0x062A, 0x0645, 0x062C, 0xFFFF, 0x062A, 0x0645, 0x062D, 0x062A, 0x0645, 0x062D, 0xFFFF, 0x062A, 0x0645, 0x062E, 0x062A, 0x0645, 0x062E, 0xFFFF }; unsigned short unac_data649[] = { 0x062C, 0x0645, 0x062D, 0x062C, 0x0645, 0x062D, 0xFFFF, 0x062C, 0x0645, 0x062D, 0x062C, 0x0645, 0x062D, 0xFFFF, 0x062D, 0x0645, 0x064A, 0x062D, 0x0645, 0x064A, 0xFFFF, 0x062D, 0x0645, 0x0649, 0x062D, 0x0645, 0x0649, 0xFFFF, 0x0633, 0x062D, 0x062C, 0x0633, 0x062D, 0x062C, 0xFFFF, 0x0633, 0x062C, 0x062D, 0x0633, 0x062C, 0x062D, 0xFFFF, 0x0633, 0x062C, 0x0649, 0x0633, 0x062C, 0x0649, 0xFFFF, 0x0633, 0x0645, 0x062D, 0x0633, 0x0645, 0x062D, 0xFFFF }; unsigned short unac_data650[] = { 0x0633, 0x0645, 0x062D, 0x0633, 0x0645, 0x062D, 0xFFFF, 0x0633, 0x0645, 0x062C, 0x0633, 0x0645, 0x062C, 0xFFFF, 0x0633, 0x0645, 0x0645, 0x0633, 0x0645, 0x0645, 0xFFFF, 0x0633, 0x0645, 0x0645, 0x0633, 0x0645, 0x0645, 0xFFFF, 0x0635, 0x062D, 0x062D, 0x0635, 0x062D, 0x062D, 0xFFFF, 0x0635, 0x062D, 0x062D, 0x0635, 0x062D, 0x062D, 0xFFFF, 0x0635, 0x0645, 0x0645, 0x0635, 0x0645, 0x0645, 0xFFFF, 0x0634, 0x062D, 0x0645, 0x0634, 0x062D, 0x0645, 0xFFFF }; unsigned short unac_data651[] = { 0x0634, 0x062D, 0x0645, 0x0634, 0x062D, 0x0645, 0xFFFF, 0x0634, 0x062C, 0x064A, 0x0634, 0x062C, 0x064A, 0xFFFF, 0x0634, 0x0645, 0x062E, 0x0634, 0x0645, 0x062E, 0xFFFF, 0x0634, 0x0645, 0x062E, 0x0634, 0x0645, 0x062E, 0xFFFF, 0x0634, 0x0645, 0x0645, 0x0634, 0x0645, 0x0645, 0xFFFF, 0x0634, 0x0645, 0x0645, 0x0634, 0x0645, 0x0645, 0xFFFF, 0x0636, 0x062D, 0x0649, 0x0636, 0x062D, 0x0649, 0xFFFF, 0x0636, 0x062E, 0x0645, 0x0636, 0x062E, 0x0645, 0xFFFF }; unsigned short unac_data652[] = { 0x0636, 0x062E, 0x0645, 0x0636, 0x062E, 0x0645, 0xFFFF, 0x0637, 0x0645, 0x062D, 0x0637, 0x0645, 0x062D, 0xFFFF, 0x0637, 0x0645, 0x062D, 0x0637, 0x0645, 0x062D, 0xFFFF, 0x0637, 0x0645, 0x0645, 0x0637, 0x0645, 0x0645, 0xFFFF, 0x0637, 0x0645, 0x064A, 0x0637, 0x0645, 0x064A, 0xFFFF, 0x0639, 0x062C, 0x0645, 0x0639, 0x062C, 0x0645, 0xFFFF, 0x0639, 0x0645, 0x0645, 0x0639, 0x0645, 0x0645, 0xFFFF, 0x0639, 0x0645, 0x0645, 0x0639, 0x0645, 0x0645, 0xFFFF }; unsigned short unac_data653[] = { 0x0639, 0x0645, 0x0649, 0x0639, 0x0645, 0x0649, 0xFFFF, 0x063A, 0x0645, 0x0645, 0x063A, 0x0645, 0x0645, 0xFFFF, 0x063A, 0x0645, 0x064A, 0x063A, 0x0645, 0x064A, 0xFFFF, 0x063A, 0x0645, 0x0649, 0x063A, 0x0645, 0x0649, 0xFFFF, 0x0641, 0x062E, 0x0645, 0x0641, 0x062E, 0x0645, 0xFFFF, 0x0641, 0x062E, 0x0645, 0x0641, 0x062E, 0x0645, 0xFFFF, 0x0642, 0x0645, 0x062D, 0x0642, 0x0645, 0x062D, 0xFFFF, 0x0642, 0x0645, 0x0645, 0x0642, 0x0645, 0x0645, 0xFFFF }; unsigned short unac_data654[] = { 0x0644, 0x062D, 0x0645, 0x0644, 0x062D, 0x0645, 0xFFFF, 0x0644, 0x062D, 0x064A, 0x0644, 0x062D, 0x064A, 0xFFFF, 0x0644, 0x062D, 0x0649, 0x0644, 0x062D, 0x0649, 0xFFFF, 0x0644, 0x062C, 0x062C, 0x0644, 0x062C, 0x062C, 0xFFFF, 0x0644, 0x062C, 0x062C, 0x0644, 0x062C, 0x062C, 0xFFFF, 0x0644, 0x062E, 0x0645, 0x0644, 0x062E, 0x0645, 0xFFFF, 0x0644, 0x062E, 0x0645, 0x0644, 0x062E, 0x0645, 0xFFFF, 0x0644, 0x0645, 0x062D, 0x0644, 0x0645, 0x062D, 0xFFFF }; unsigned short unac_data655[] = { 0x0644, 0x0645, 0x062D, 0x0644, 0x0645, 0x062D, 0xFFFF, 0x0645, 0x062D, 0x062C, 0x0645, 0x062D, 0x062C, 0xFFFF, 0x0645, 0x062D, 0x0645, 0x0645, 0x062D, 0x0645, 0xFFFF, 0x0645, 0x062D, 0x064A, 0x0645, 0x062D, 0x064A, 0xFFFF, 0x0645, 0x062C, 0x062D, 0x0645, 0x062C, 0x062D, 0xFFFF, 0x0645, 0x062C, 0x0645, 0x0645, 0x062C, 0x0645, 0xFFFF, 0x0645, 0x062E, 0x062C, 0x0645, 0x062E, 0x062C, 0xFFFF, 0x0645, 0x062E, 0x0645, 0x0645, 0x062E, 0x0645, 0xFFFF }; unsigned short unac_data656[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0645, 0x062C, 0x062E, 0x0645, 0x062C, 0x062E, 0xFFFF, 0x0647, 0x0645, 0x062C, 0x0647, 0x0645, 0x062C, 0xFFFF, 0x0647, 0x0645, 0x0645, 0x0647, 0x0645, 0x0645, 0xFFFF, 0x0646, 0x062D, 0x0645, 0x0646, 0x062D, 0x0645, 0xFFFF, 0x0646, 0x062D, 0x0649, 0x0646, 0x062D, 0x0649, 0xFFFF, 0x0646, 0x062C, 0x0645, 0x0646, 0x062C, 0x0645, 0xFFFF }; unsigned short unac_data657[] = { 0x0646, 0x062C, 0x0645, 0x0646, 0x062C, 0x0645, 0xFFFF, 0x0646, 0x062C, 0x0649, 0x0646, 0x062C, 0x0649, 0xFFFF, 0x0646, 0x0645, 0x064A, 0x0646, 0x0645, 0x064A, 0xFFFF, 0x0646, 0x0645, 0x0649, 0x0646, 0x0645, 0x0649, 0xFFFF, 0x064A, 0x0645, 0x0645, 0x064A, 0x0645, 0x0645, 0xFFFF, 0x064A, 0x0645, 0x0645, 0x064A, 0x0645, 0x0645, 0xFFFF, 0x0628, 0x062E, 0x064A, 0x0628, 0x062E, 0x064A, 0xFFFF, 0x062A, 0x062C, 0x064A, 0x062A, 0x062C, 0x064A, 0xFFFF }; unsigned short unac_data658[] = { 0x062A, 0x062C, 0x0649, 0x062A, 0x062C, 0x0649, 0xFFFF, 0x062A, 0x062E, 0x064A, 0x062A, 0x062E, 0x064A, 0xFFFF, 0x062A, 0x062E, 0x0649, 0x062A, 0x062E, 0x0649, 0xFFFF, 0x062A, 0x0645, 0x064A, 0x062A, 0x0645, 0x064A, 0xFFFF, 0x062A, 0x0645, 0x0649, 0x062A, 0x0645, 0x0649, 0xFFFF, 0x062C, 0x0645, 0x064A, 0x062C, 0x0645, 0x064A, 0xFFFF, 0x062C, 0x062D, 0x0649, 0x062C, 0x062D, 0x0649, 0xFFFF, 0x062C, 0x0645, 0x0649, 0x062C, 0x0645, 0x0649, 0xFFFF }; unsigned short unac_data659[] = { 0x0633, 0x062E, 0x0649, 0x0633, 0x062E, 0x0649, 0xFFFF, 0x0635, 0x062D, 0x064A, 0x0635, 0x062D, 0x064A, 0xFFFF, 0x0634, 0x062D, 0x064A, 0x0634, 0x062D, 0x064A, 0xFFFF, 0x0636, 0x062D, 0x064A, 0x0636, 0x062D, 0x064A, 0xFFFF, 0x0644, 0x062C, 0x064A, 0x0644, 0x062C, 0x064A, 0xFFFF, 0x0644, 0x0645, 0x064A, 0x0644, 0x0645, 0x064A, 0xFFFF, 0x064A, 0x062D, 0x064A, 0x064A, 0x062D, 0x064A, 0xFFFF, 0x064A, 0x062C, 0x064A, 0x064A, 0x062C, 0x064A, 0xFFFF }; unsigned short unac_data660[] = { 0x064A, 0x0645, 0x064A, 0x064A, 0x0645, 0x064A, 0xFFFF, 0x0645, 0x0645, 0x064A, 0x0645, 0x0645, 0x064A, 0xFFFF, 0x0642, 0x0645, 0x064A, 0x0642, 0x0645, 0x064A, 0xFFFF, 0x0646, 0x062D, 0x064A, 0x0646, 0x062D, 0x064A, 0xFFFF, 0x0642, 0x0645, 0x062D, 0x0642, 0x0645, 0x062D, 0xFFFF, 0x0644, 0x062D, 0x0645, 0x0644, 0x062D, 0x0645, 0xFFFF, 0x0639, 0x0645, 0x064A, 0x0639, 0x0645, 0x064A, 0xFFFF, 0x0643, 0x0645, 0x064A, 0x0643, 0x0645, 0x064A, 0xFFFF }; unsigned short unac_data661[] = { 0x0646, 0x062C, 0x062D, 0x0646, 0x062C, 0x062D, 0xFFFF, 0x0645, 0x062E, 0x064A, 0x0645, 0x062E, 0x064A, 0xFFFF, 0x0644, 0x062C, 0x0645, 0x0644, 0x062C, 0x0645, 0xFFFF, 0x0643, 0x0645, 0x0645, 0x0643, 0x0645, 0x0645, 0xFFFF, 0x0644, 0x062C, 0x0645, 0x0644, 0x062C, 0x0645, 0xFFFF, 0x0646, 0x062C, 0x062D, 0x0646, 0x062C, 0x062D, 0xFFFF, 0x062C, 0x062D, 0x064A, 0x062C, 0x062D, 0x064A, 0xFFFF, 0x062D, 0x062C, 0x064A, 0x062D, 0x062C, 0x064A, 0xFFFF }; unsigned short unac_data662[] = { 0x0645, 0x062C, 0x064A, 0x0645, 0x062C, 0x064A, 0xFFFF, 0x0641, 0x0645, 0x064A, 0x0641, 0x0645, 0x064A, 0xFFFF, 0x0628, 0x062D, 0x064A, 0x0628, 0x062D, 0x064A, 0xFFFF, 0x0643, 0x0645, 0x0645, 0x0643, 0x0645, 0x0645, 0xFFFF, 0x0639, 0x062C, 0x0645, 0x0639, 0x062C, 0x0645, 0xFFFF, 0x0635, 0x0645, 0x0645, 0x0635, 0x0645, 0x0645, 0xFFFF, 0x0633, 0x062E, 0x064A, 0x0633, 0x062E, 0x064A, 0xFFFF, 0x0646, 0x062C, 0x064A, 0x0646, 0x062C, 0x064A, 0xFFFF }; unsigned short unac_data663[] = { 0x0635, 0x0644, 0x06D2, 0x0635, 0x0644, 0x06D2, 0xFFFF, 0x0642, 0x0644, 0x06D2, 0x0642, 0x0644, 0x06D2, 0xFFFF, 0x0627, 0x0644, 0x0644, 0x0647, 0x0627, 0x0644, 0x0644, 0x0647, 0xFFFF, 0x0627, 0x0643, 0x0628, 0x0631, 0x0627, 0x0643, 0x0628, 0x0631, 0xFFFF, 0x0645, 0x062D, 0x0645, 0x062F, 0x0645, 0x062D, 0x0645, 0x062F, 0xFFFF, 0x0635, 0x0644, 0x0639, 0x0645, 0x0635, 0x0644, 0x0639, 0x0645, 0xFFFF, 0x0631, 0x0633, 0x0648, 0x0644, 0x0631, 0x0633, 0x0648, 0x0644, 0xFFFF, 0x0639, 0x0644, 0x064A, 0x0647, 0x0639, 0x0644, 0x064A, 0x0647, 0xFFFF }; unsigned short unac_data664[] = { 0x0648, 0x0633, 0x0644, 0x0645, 0x0648, 0x0633, 0x0644, 0x0645, 0xFFFF, 0x0635, 0x0644, 0x0649, 0x0635, 0x0644, 0x0649, 0xFFFF, 0x0635, 0x0644, 0x0649, 0x0020, 0x0627, 0x0644, 0x0644, 0x0647, 0x0020, 0x0639, 0x0644, 0x064A, 0x0647, 0x0020, 0x0648, 0x0633, 0x0644, 0x0645, 0x0635, 0x0644, 0x0649, 0x0020, 0x0627, 0x0644, 0x0644, 0x0647, 0x0020, 0x0639, 0x0644, 0x064A, 0x0647, 0x0020, 0x0648, 0x0633, 0x0644, 0x0645, 0xFFFF, 0x062C, 0x0644, 0x0020, 0x062C, 0x0644, 0x0627, 0x0644, 0x0647, 0x062C, 0x0644, 0x0020, 0x062C, 0x0644, 0x0627, 0x0644, 0x0647, 0xFFFF, 0x0631, 0x06CC, 0x0627, 0x0644, 0x0631, 0x06CC, 0x0627, 0x0644, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data665[] = { 0x002C, 0x002C, 0xFFFF, 0x3001, 0x3001, 0xFFFF, 0x3002, 0x3002, 0xFFFF, 0x003A, 0x003A, 0xFFFF, 0x003B, 0x003B, 0xFFFF, 0x0021, 0x0021, 0xFFFF, 0x003F, 0x003F, 0xFFFF, 0x3016, 0x3016, 0xFFFF }; unsigned short unac_data666[] = { 0x3017, 0x3017, 0xFFFF, 0x002E, 0x002E, 0x002E, 0x002E, 0x002E, 0x002E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data667[] = { 0x002E, 0x002E, 0x002E, 0x002E, 0xFFFF, 0x2014, 0x2014, 0xFFFF, 0x2013, 0x2013, 0xFFFF, 0x005F, 0x005F, 0xFFFF, 0x005F, 0x005F, 0xFFFF, 0x0028, 0x0028, 0xFFFF, 0x0029, 0x0029, 0xFFFF, 0x007B, 0x007B, 0xFFFF }; unsigned short unac_data668[] = { 0x007D, 0x007D, 0xFFFF, 0x3014, 0x3014, 0xFFFF, 0x3015, 0x3015, 0xFFFF, 0x3010, 0x3010, 0xFFFF, 0x3011, 0x3011, 0xFFFF, 0x300A, 0x300A, 0xFFFF, 0x300B, 0x300B, 0xFFFF, 0x3008, 0x3008, 0xFFFF }; unsigned short unac_data669[] = { 0x3009, 0x3009, 0xFFFF, 0x300C, 0x300C, 0xFFFF, 0x300D, 0x300D, 0xFFFF, 0x300E, 0x300E, 0xFFFF, 0x300F, 0x300F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x005B, 0x005B, 0xFFFF }; unsigned short unac_data670[] = { 0x005D, 0x005D, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x005F, 0x005F, 0xFFFF, 0x005F, 0x005F, 0xFFFF, 0x005F, 0x005F, 0xFFFF }; unsigned short unac_data671[] = { 0x002C, 0x002C, 0xFFFF, 0x3001, 0x3001, 0xFFFF, 0x002E, 0x002E, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x003B, 0x003B, 0xFFFF, 0x003A, 0x003A, 0xFFFF, 0x003F, 0x003F, 0xFFFF, 0x0021, 0x0021, 0xFFFF }; unsigned short unac_data672[] = { 0x2014, 0x2014, 0xFFFF, 0x0028, 0x0028, 0xFFFF, 0x0029, 0x0029, 0xFFFF, 0x007B, 0x007B, 0xFFFF, 0x007D, 0x007D, 0xFFFF, 0x3014, 0x3014, 0xFFFF, 0x3015, 0x3015, 0xFFFF, 0x0023, 0x0023, 0xFFFF }; unsigned short unac_data673[] = { 0x0026, 0x0026, 0xFFFF, 0x002A, 0x002A, 0xFFFF, 0x002B, 0x002B, 0xFFFF, 0x002D, 0x002D, 0xFFFF, 0x003C, 0x003C, 0xFFFF, 0x003E, 0x003E, 0xFFFF, 0x003D, 0x003D, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data674[] = { 0x005C, 0x005C, 0xFFFF, 0x0024, 0x0024, 0xFFFF, 0x0025, 0x0025, 0xFFFF, 0x0040, 0x0040, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data675[] = { 0x0020, 0x0020, 0xFFFF, 0x0640, 0x0640, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0640, 0x0640, 0xFFFF }; unsigned short unac_data676[] = { 0x0020, 0x0020, 0xFFFF, 0x0640, 0x0640, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0640, 0x0640, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0640, 0x0640, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x0640, 0x0640, 0xFFFF }; unsigned short unac_data677[] = { 0x0621, 0x0621, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0648, 0x0648, 0xFFFF, 0x0648, 0x0648, 0xFFFF, 0x0627, 0x0627, 0xFFFF }; unsigned short unac_data678[] = { 0x0627, 0x0627, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0627, 0x0627, 0xFFFF, 0x0628, 0x0628, 0xFFFF }; unsigned short unac_data679[] = { 0x0628, 0x0628, 0xFFFF, 0x0628, 0x0628, 0xFFFF, 0x0628, 0x0628, 0xFFFF, 0x0629, 0x0629, 0xFFFF, 0x0629, 0x0629, 0xFFFF, 0x062A, 0x062A, 0xFFFF, 0x062A, 0x062A, 0xFFFF, 0x062A, 0x062A, 0xFFFF }; unsigned short unac_data680[] = { 0x062A, 0x062A, 0xFFFF, 0x062B, 0x062B, 0xFFFF, 0x062B, 0x062B, 0xFFFF, 0x062B, 0x062B, 0xFFFF, 0x062B, 0x062B, 0xFFFF, 0x062C, 0x062C, 0xFFFF, 0x062C, 0x062C, 0xFFFF, 0x062C, 0x062C, 0xFFFF }; unsigned short unac_data681[] = { 0x062C, 0x062C, 0xFFFF, 0x062D, 0x062D, 0xFFFF, 0x062D, 0x062D, 0xFFFF, 0x062D, 0x062D, 0xFFFF, 0x062D, 0x062D, 0xFFFF, 0x062E, 0x062E, 0xFFFF, 0x062E, 0x062E, 0xFFFF, 0x062E, 0x062E, 0xFFFF }; unsigned short unac_data682[] = { 0x062E, 0x062E, 0xFFFF, 0x062F, 0x062F, 0xFFFF, 0x062F, 0x062F, 0xFFFF, 0x0630, 0x0630, 0xFFFF, 0x0630, 0x0630, 0xFFFF, 0x0631, 0x0631, 0xFFFF, 0x0631, 0x0631, 0xFFFF, 0x0632, 0x0632, 0xFFFF }; unsigned short unac_data683[] = { 0x0632, 0x0632, 0xFFFF, 0x0633, 0x0633, 0xFFFF, 0x0633, 0x0633, 0xFFFF, 0x0633, 0x0633, 0xFFFF, 0x0633, 0x0633, 0xFFFF, 0x0634, 0x0634, 0xFFFF, 0x0634, 0x0634, 0xFFFF, 0x0634, 0x0634, 0xFFFF }; unsigned short unac_data684[] = { 0x0634, 0x0634, 0xFFFF, 0x0635, 0x0635, 0xFFFF, 0x0635, 0x0635, 0xFFFF, 0x0635, 0x0635, 0xFFFF, 0x0635, 0x0635, 0xFFFF, 0x0636, 0x0636, 0xFFFF, 0x0636, 0x0636, 0xFFFF, 0x0636, 0x0636, 0xFFFF }; unsigned short unac_data685[] = { 0x0636, 0x0636, 0xFFFF, 0x0637, 0x0637, 0xFFFF, 0x0637, 0x0637, 0xFFFF, 0x0637, 0x0637, 0xFFFF, 0x0637, 0x0637, 0xFFFF, 0x0638, 0x0638, 0xFFFF, 0x0638, 0x0638, 0xFFFF, 0x0638, 0x0638, 0xFFFF }; unsigned short unac_data686[] = { 0x0638, 0x0638, 0xFFFF, 0x0639, 0x0639, 0xFFFF, 0x0639, 0x0639, 0xFFFF, 0x0639, 0x0639, 0xFFFF, 0x0639, 0x0639, 0xFFFF, 0x063A, 0x063A, 0xFFFF, 0x063A, 0x063A, 0xFFFF, 0x063A, 0x063A, 0xFFFF }; unsigned short unac_data687[] = { 0x063A, 0x063A, 0xFFFF, 0x0641, 0x0641, 0xFFFF, 0x0641, 0x0641, 0xFFFF, 0x0641, 0x0641, 0xFFFF, 0x0641, 0x0641, 0xFFFF, 0x0642, 0x0642, 0xFFFF, 0x0642, 0x0642, 0xFFFF, 0x0642, 0x0642, 0xFFFF }; unsigned short unac_data688[] = { 0x0642, 0x0642, 0xFFFF, 0x0643, 0x0643, 0xFFFF, 0x0643, 0x0643, 0xFFFF, 0x0643, 0x0643, 0xFFFF, 0x0643, 0x0643, 0xFFFF, 0x0644, 0x0644, 0xFFFF, 0x0644, 0x0644, 0xFFFF, 0x0644, 0x0644, 0xFFFF }; unsigned short unac_data689[] = { 0x0644, 0x0644, 0xFFFF, 0x0645, 0x0645, 0xFFFF, 0x0645, 0x0645, 0xFFFF, 0x0645, 0x0645, 0xFFFF, 0x0645, 0x0645, 0xFFFF, 0x0646, 0x0646, 0xFFFF, 0x0646, 0x0646, 0xFFFF, 0x0646, 0x0646, 0xFFFF }; unsigned short unac_data690[] = { 0x0646, 0x0646, 0xFFFF, 0x0647, 0x0647, 0xFFFF, 0x0647, 0x0647, 0xFFFF, 0x0647, 0x0647, 0xFFFF, 0x0647, 0x0647, 0xFFFF, 0x0648, 0x0648, 0xFFFF, 0x0648, 0x0648, 0xFFFF, 0x0649, 0x0649, 0xFFFF }; unsigned short unac_data691[] = { 0x0649, 0x0649, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x064A, 0x064A, 0xFFFF, 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF, 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF, 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF }; unsigned short unac_data692[] = { 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF, 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF, 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF, 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF, 0x0644, 0x0627, 0x0644, 0x0627, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data693[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0x0021, 0x0021, 0xFFFF, 0x0022, 0x0022, 0xFFFF, 0x0023, 0x0023, 0xFFFF, 0x0024, 0x0024, 0xFFFF, 0x0025, 0x0025, 0xFFFF, 0x0026, 0x0026, 0xFFFF, 0x0027, 0x0027, 0xFFFF }; unsigned short unac_data694[] = { 0x0028, 0x0028, 0xFFFF, 0x0029, 0x0029, 0xFFFF, 0x002A, 0x002A, 0xFFFF, 0x002B, 0x002B, 0xFFFF, 0x002C, 0x002C, 0xFFFF, 0x002D, 0x002D, 0xFFFF, 0x002E, 0x002E, 0xFFFF, 0x002F, 0x002F, 0xFFFF }; unsigned short unac_data695[] = { 0x0038, 0x0038, 0xFFFF, 0x0039, 0x0039, 0xFFFF, 0x003A, 0x003A, 0xFFFF, 0x003B, 0x003B, 0xFFFF, 0x003C, 0x003C, 0xFFFF, 0x003D, 0x003D, 0xFFFF, 0x003E, 0x003E, 0xFFFF, 0x003F, 0x003F, 0xFFFF }; unsigned short unac_data696[] = { 0x0040, 0x0040, 0xFFFF, 0x0041, 0x0061, 0xFF41, 0x0042, 0x0062, 0xFF42, 0x0043, 0x0063, 0xFF43, 0x0044, 0x0064, 0xFF44, 0x0045, 0x0065, 0xFF45, 0x0046, 0x0066, 0xFF46, 0x0047, 0x0067, 0xFF47 }; unsigned short unac_data697[] = { 0x0048, 0x0068, 0xFF48, 0x0049, 0x0069, 0xFF49, 0x004A, 0x006A, 0xFF4A, 0x004B, 0x006B, 0xFF4B, 0x004C, 0x006C, 0xFF4C, 0x004D, 0x006D, 0xFF4D, 0x004E, 0x006E, 0xFF4E, 0x004F, 0x006F, 0xFF4F }; unsigned short unac_data698[] = { 0x0050, 0x0070, 0xFF50, 0x0051, 0x0071, 0xFF51, 0x0052, 0x0072, 0xFF52, 0x0053, 0x0073, 0xFF53, 0x0054, 0x0074, 0xFF54, 0x0055, 0x0075, 0xFF55, 0x0056, 0x0076, 0xFF56, 0x0057, 0x0077, 0xFF57 }; unsigned short unac_data699[] = { 0x0058, 0x0078, 0xFF58, 0x0059, 0x0079, 0xFF59, 0x005A, 0x007A, 0xFF5A, 0x005B, 0x005B, 0xFFFF, 0x005C, 0x005C, 0xFFFF, 0x005D, 0x005D, 0xFFFF, 0x005E, 0x005E, 0xFFFF, 0x005F, 0x005F, 0xFFFF }; unsigned short unac_data700[] = { 0x0060, 0x0060, 0xFFFF, 0x0061, 0x0061, 0xFFFF, 0x0062, 0x0062, 0xFFFF, 0x0063, 0x0063, 0xFFFF, 0x0064, 0x0064, 0xFFFF, 0x0065, 0x0065, 0xFFFF, 0x0066, 0x0066, 0xFFFF, 0x0067, 0x0067, 0xFFFF }; unsigned short unac_data701[] = { 0x0068, 0x0068, 0xFFFF, 0x0069, 0x0069, 0xFFFF, 0x006A, 0x006A, 0xFFFF, 0x006B, 0x006B, 0xFFFF, 0x006C, 0x006C, 0xFFFF, 0x006D, 0x006D, 0xFFFF, 0x006E, 0x006E, 0xFFFF, 0x006F, 0x006F, 0xFFFF }; unsigned short unac_data702[] = { 0x0070, 0x0070, 0xFFFF, 0x0071, 0x0071, 0xFFFF, 0x0072, 0x0072, 0xFFFF, 0x0073, 0x0073, 0xFFFF, 0x0074, 0x0074, 0xFFFF, 0x0075, 0x0075, 0xFFFF, 0x0076, 0x0076, 0xFFFF, 0x0077, 0x0077, 0xFFFF }; unsigned short unac_data703[] = { 0x0078, 0x0078, 0xFFFF, 0x0079, 0x0079, 0xFFFF, 0x007A, 0x007A, 0xFFFF, 0x007B, 0x007B, 0xFFFF, 0x007C, 0x007C, 0xFFFF, 0x007D, 0x007D, 0xFFFF, 0x007E, 0x007E, 0xFFFF, 0x2985, 0x2985, 0xFFFF }; unsigned short unac_data704[] = { 0x2986, 0x2986, 0xFFFF, 0x3002, 0x3002, 0xFFFF, 0x300C, 0x300C, 0xFFFF, 0x300D, 0x300D, 0xFFFF, 0x3001, 0x3001, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data705[] = { 0x1160, 0x1160, 0xFFFF, 0x1100, 0x1100, 0xFFFF, 0x1101, 0x1101, 0xFFFF, 0x11AA, 0x11AA, 0xFFFF, 0x1102, 0x1102, 0xFFFF, 0x11AC, 0x11AC, 0xFFFF, 0x11AD, 0x11AD, 0xFFFF, 0x1103, 0x1103, 0xFFFF }; unsigned short unac_data706[] = { 0x110C, 0x110C, 0xFFFF, 0x110D, 0x110D, 0xFFFF, 0x110E, 0x110E, 0xFFFF, 0x110F, 0x110F, 0xFFFF, 0x1110, 0x1110, 0xFFFF, 0x1111, 0x1111, 0xFFFF, 0x1112, 0x1112, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data707[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1161, 0x1161, 0xFFFF, 0x1162, 0x1162, 0xFFFF, 0x1163, 0x1163, 0xFFFF, 0x1164, 0x1164, 0xFFFF, 0x1165, 0x1165, 0xFFFF, 0x1166, 0x1166, 0xFFFF }; unsigned short unac_data708[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1167, 0x1167, 0xFFFF, 0x1168, 0x1168, 0xFFFF, 0x1169, 0x1169, 0xFFFF, 0x116A, 0x116A, 0xFFFF, 0x116B, 0x116B, 0xFFFF, 0x116C, 0x116C, 0xFFFF }; unsigned short unac_data709[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x116D, 0x116D, 0xFFFF, 0x116E, 0x116E, 0xFFFF, 0x116F, 0x116F, 0xFFFF, 0x1170, 0x1170, 0xFFFF, 0x1171, 0x1171, 0xFFFF, 0x1172, 0x1172, 0xFFFF }; unsigned short unac_data710[] = { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x1173, 0x1173, 0xFFFF, 0x1174, 0x1174, 0xFFFF, 0x1175, 0x1175, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data711[] = { 0x00A2, 0x00A2, 0xFFFF, 0x00A3, 0x00A3, 0xFFFF, 0x00AC, 0x00AC, 0xFFFF, 0x0020, 0x0020, 0xFFFF, 0x00A6, 0x00A6, 0xFFFF, 0x00A5, 0x00A5, 0xFFFF, 0x20A9, 0x20A9, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short unac_data712[] = { 0x2502, 0x2502, 0xFFFF, 0x2190, 0x2190, 0xFFFF, 0x2191, 0x2191, 0xFFFF, 0x2192, 0x2192, 0xFFFF, 0x2193, 0x2193, 0xFFFF, 0x25A0, 0x25A0, 0xFFFF, 0x25CB, 0x25CB, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }; unsigned short* unac_data_table[UNAC_BLOCK_COUNT] = { unac_data0, unac_data1, unac_data2, unac_data3, unac_data4, unac_data5, unac_data6, unac_data7, unac_data8, unac_data9, unac_data10, unac_data11, unac_data12, unac_data13, unac_data14, unac_data15, unac_data16, unac_data17, unac_data18, unac_data19, unac_data20, unac_data21, unac_data22, unac_data23, unac_data24, unac_data25, unac_data26, unac_data27, unac_data28, unac_data29, unac_data30, unac_data31, unac_data32, unac_data33, unac_data34, unac_data35, unac_data36, unac_data37, unac_data38, unac_data39, unac_data40, unac_data41, unac_data42, unac_data43, unac_data44, unac_data45, unac_data46, unac_data47, unac_data48, unac_data49, unac_data50, unac_data51, unac_data52, unac_data53, unac_data54, unac_data55, unac_data56, unac_data57, unac_data58, unac_data59, unac_data60, unac_data61, unac_data62, unac_data63, unac_data64, unac_data65, unac_data66, unac_data67, unac_data68, unac_data69, unac_data70, unac_data71, unac_data72, unac_data73, unac_data74, unac_data75, unac_data76, unac_data77, unac_data78, unac_data79, unac_data80, unac_data81, unac_data82, unac_data83, unac_data84, unac_data85, unac_data86, unac_data87, unac_data88, unac_data89, unac_data90, unac_data91, unac_data92, unac_data93, unac_data94, unac_data95, unac_data96, unac_data97, unac_data98, unac_data99, unac_data100, unac_data101, unac_data102, unac_data103, unac_data104, unac_data105, unac_data106, unac_data107, unac_data108, unac_data109, unac_data110, unac_data111, unac_data112, unac_data113, unac_data114, unac_data115, unac_data116, unac_data117, unac_data118, unac_data119, unac_data120, unac_data121, unac_data122, unac_data123, unac_data124, unac_data125, unac_data126, unac_data127, unac_data128, unac_data129, unac_data130, unac_data131, unac_data132, unac_data133, unac_data134, unac_data135, unac_data136, unac_data137, unac_data138, unac_data139, unac_data140, unac_data141, unac_data142, unac_data143, unac_data144, unac_data145, unac_data146, unac_data147, unac_data148, unac_data149, unac_data150, unac_data151, unac_data152, unac_data153, unac_data154, unac_data155, unac_data156, unac_data157, unac_data158, unac_data159, unac_data160, unac_data161, unac_data162, unac_data163, unac_data164, unac_data165, unac_data166, unac_data167, unac_data168, unac_data169, unac_data170, unac_data171, unac_data172, unac_data173, unac_data174, unac_data175, unac_data176, unac_data177, unac_data178, unac_data179, unac_data180, unac_data181, unac_data182, unac_data183, unac_data184, unac_data185, unac_data186, unac_data187, unac_data188, unac_data189, unac_data190, unac_data191, unac_data192, unac_data193, unac_data194, unac_data195, unac_data196, unac_data197, unac_data198, unac_data199, unac_data200, unac_data201, unac_data202, unac_data203, unac_data204, unac_data205, unac_data206, unac_data207, unac_data208, unac_data209, unac_data210, unac_data211, unac_data212, unac_data213, unac_data214, unac_data215, unac_data216, unac_data217, unac_data218, unac_data219, unac_data220, unac_data221, unac_data222, unac_data223, unac_data224, unac_data225, unac_data226, unac_data227, unac_data228, unac_data229, unac_data230, unac_data231, unac_data232, unac_data233, unac_data234, unac_data235, unac_data236, unac_data237, unac_data238, unac_data239, unac_data240, unac_data241, unac_data242, unac_data243, unac_data244, unac_data245, unac_data246, unac_data247, unac_data248, unac_data249, unac_data250, unac_data251, unac_data252, unac_data253, unac_data254, unac_data255, unac_data256, unac_data257, unac_data258, unac_data259, unac_data260, unac_data261, unac_data262, unac_data263, unac_data264, unac_data265, unac_data266, unac_data267, unac_data268, unac_data269, unac_data270, unac_data271, unac_data272, unac_data273, unac_data274, unac_data275, unac_data276, unac_data277, unac_data278, unac_data279, unac_data280, unac_data281, unac_data282, unac_data283, unac_data284, unac_data285, unac_data286, unac_data287, unac_data288, unac_data289, unac_data290, unac_data291, unac_data292, unac_data293, unac_data294, unac_data295, unac_data296, unac_data297, unac_data298, unac_data299, unac_data300, unac_data301, unac_data302, unac_data303, unac_data304, unac_data305, unac_data306, unac_data307, unac_data308, unac_data309, unac_data310, unac_data311, unac_data312, unac_data313, unac_data314, unac_data315, unac_data316, unac_data317, unac_data318, unac_data319, unac_data320, unac_data321, unac_data322, unac_data323, unac_data324, unac_data325, unac_data326, unac_data327, unac_data328, unac_data329, unac_data330, unac_data331, unac_data332, unac_data333, unac_data334, unac_data335, unac_data336, unac_data337, unac_data338, unac_data339, unac_data340, unac_data341, unac_data342, unac_data343, unac_data344, unac_data345, unac_data346, unac_data347, unac_data348, unac_data349, unac_data350, unac_data351, unac_data352, unac_data353, unac_data354, unac_data355, unac_data356, unac_data357, unac_data358, unac_data359, unac_data360, unac_data361, unac_data362, unac_data363, unac_data364, unac_data365, unac_data366, unac_data367, unac_data368, unac_data369, unac_data370, unac_data371, unac_data372, unac_data373, unac_data374, unac_data375, unac_data376, unac_data377, unac_data378, unac_data379, unac_data380, unac_data381, unac_data382, unac_data383, unac_data384, unac_data385, unac_data386, unac_data387, unac_data388, unac_data389, unac_data390, unac_data391, unac_data392, unac_data393, unac_data394, unac_data395, unac_data396, unac_data397, unac_data398, unac_data399, unac_data400, unac_data401, unac_data402, unac_data403, unac_data404, unac_data405, unac_data406, unac_data407, unac_data408, unac_data409, unac_data410, unac_data411, unac_data412, unac_data413, unac_data414, unac_data415, unac_data416, unac_data417, unac_data418, unac_data419, unac_data420, unac_data421, unac_data422, unac_data423, unac_data424, unac_data425, unac_data426, unac_data427, unac_data428, unac_data429, unac_data430, unac_data431, unac_data432, unac_data433, unac_data434, unac_data435, unac_data436, unac_data437, unac_data438, unac_data439, unac_data440, unac_data441, unac_data442, unac_data443, unac_data444, unac_data445, unac_data446, unac_data447, unac_data448, unac_data449, unac_data450, unac_data451, unac_data452, unac_data453, unac_data454, unac_data455, unac_data456, unac_data457, unac_data458, unac_data459, unac_data460, unac_data461, unac_data462, unac_data463, unac_data464, unac_data465, unac_data466, unac_data467, unac_data468, unac_data469, unac_data470, unac_data471, unac_data472, unac_data473, unac_data474, unac_data475, unac_data476, unac_data477, unac_data478, unac_data479, unac_data480, unac_data481, unac_data482, unac_data483, unac_data484, unac_data485, unac_data486, unac_data487, unac_data488, unac_data489, unac_data490, unac_data491, unac_data492, unac_data493, unac_data494, unac_data495, unac_data496, unac_data497, unac_data498, unac_data499, unac_data500, unac_data501, unac_data502, unac_data503, unac_data504, unac_data505, unac_data506, unac_data507, unac_data508, unac_data509, unac_data510, unac_data511, unac_data512, unac_data513, unac_data514, unac_data515, unac_data516, unac_data517, unac_data518, unac_data519, unac_data520, unac_data521, unac_data522, unac_data523, unac_data524, unac_data525, unac_data526, unac_data527, unac_data528, unac_data529, unac_data530, unac_data531, unac_data532, unac_data533, unac_data534, unac_data535, unac_data536, unac_data537, unac_data538, unac_data539, unac_data540, unac_data541, unac_data542, unac_data543, unac_data544, unac_data545, unac_data546, unac_data547, unac_data548, unac_data549, unac_data550, unac_data551, unac_data552, unac_data553, unac_data554, unac_data555, unac_data556, unac_data557, unac_data558, unac_data559, unac_data560, unac_data561, unac_data562, unac_data563, unac_data564, unac_data565, unac_data566, unac_data567, unac_data568, unac_data569, unac_data570, unac_data571, unac_data572, unac_data573, unac_data574, unac_data575, unac_data576, unac_data577, unac_data578, unac_data579, unac_data580, unac_data581, unac_data582, unac_data583, unac_data584, unac_data585, unac_data586, unac_data587, unac_data588, unac_data589, unac_data590, unac_data591, unac_data592, unac_data593, unac_data594, unac_data595, unac_data596, unac_data597, unac_data598, unac_data599, unac_data600, unac_data601, unac_data602, unac_data603, unac_data604, unac_data605, unac_data606, unac_data607, unac_data608, unac_data609, unac_data610, unac_data611, unac_data612, unac_data613, unac_data614, unac_data615, unac_data616, unac_data617, unac_data618, unac_data619, unac_data620, unac_data621, unac_data622, unac_data623, unac_data624, unac_data625, unac_data626, unac_data627, unac_data628, unac_data629, unac_data630, unac_data631, unac_data632, unac_data633, unac_data634, unac_data635, unac_data636, unac_data637, unac_data638, unac_data639, unac_data640, unac_data641, unac_data642, unac_data643, unac_data644, unac_data645, unac_data646, unac_data647, unac_data648, unac_data649, unac_data650, unac_data651, unac_data652, unac_data653, unac_data654, unac_data655, unac_data656, unac_data657, unac_data658, unac_data659, unac_data660, unac_data661, unac_data662, unac_data663, unac_data664, unac_data665, unac_data666, unac_data667, unac_data668, unac_data669, unac_data670, unac_data671, unac_data672, unac_data673, unac_data674, unac_data675, unac_data676, unac_data677, unac_data678, unac_data679, unac_data680, unac_data681, unac_data682, unac_data683, unac_data684, unac_data685, unac_data686, unac_data687, unac_data688, unac_data689, unac_data690, unac_data691, unac_data692, unac_data693, unac_data694, unac_data695, unac_data696, unac_data697, unac_data698, unac_data699, unac_data700, unac_data701, unac_data702, unac_data703, unac_data704, unac_data705, unac_data706, unac_data707, unac_data708, unac_data709, unac_data710, unac_data711, unac_data712 }; /* Generated by builder. Do not modify. End tables */ /* * Debug level. See unac.h for a detailed discussion of the * values. */ static int debug_level = UNAC_DEBUG_LOW; #ifdef UNAC_DEBUG_AVAILABLE /* * Default debug function, printing on stderr. */ static void debug_doprint_default(const char* message, void* data) { fprintf(stderr, "%s", message); } /* * Default doprint handler is debug_doprint. */ static unac_debug_print_t debug_doprint = debug_doprint_default; /* * Default app data is null. */ static void* debug_appdata = (void*)0; /* * Generate a debug message (arguments ala printf) and * send it to the doprint handler. */ #define DEBUG debug_print("%s:%d: ", __FILE__, __LINE__), debug_print #define DEBUG_APPEND debug_print static void debug_print(const char* message, ...) { #define UNAC_MAXIMUM_MESSAGE_SIZE 512 /* * UNAC_MAXIMUM_MESSAGE_SIZE is supposedly enough but I * do trust some vsnprintf implementations to be bugous. */ char unac_message_buffer[UNAC_MAXIMUM_MESSAGE_SIZE+1] = { '\0' }; va_list args; va_start(args, message); if(vsnprintf(unac_message_buffer, UNAC_MAXIMUM_MESSAGE_SIZE, message, args) < 0) { char tmp[UNAC_MAXIMUM_MESSAGE_SIZE]; sprintf(tmp, "[message larger than %d, truncated]", UNAC_MAXIMUM_MESSAGE_SIZE); debug_doprint(tmp, debug_appdata); } va_end(args); unac_message_buffer[UNAC_MAXIMUM_MESSAGE_SIZE] = '\0'; debug_doprint(unac_message_buffer, debug_appdata); } void unac_debug_callback(int level, unac_debug_print_t function, void* data) { debug_level = level; if(function) debug_doprint = function; debug_appdata = data; } #else /* UNAC_DEBUG_AVAILABLE */ #define DEBUG #define DEBUG_APPEND #endif /* UNAC_DEBUG_AVAILABLE */ /* 0 1 2 are the offsets from base in the position table, keep the value! */ #define UNAC_UNAC 0 #define UNAC_UNACFOLD 1 #define UNAC_FOLD 2 int unacmaybefold_string_utf16(const char* in, size_t in_length, char** outp, size_t* out_lengthp, int what) { char* out; int out_size; int out_length; unsigned int i; out_size = in_length > 0 ? in_length : 1024; out = *outp; out = (char*)realloc(out, out_size + 1); if(out == 0) { if(debug_level >= UNAC_DEBUG_LOW) DEBUG("realloc %d bytes failed\n", out_size+1); /* *outp is still valid. Let the caller free it */ return -1; } out_length = 0; for(i = 0; i < in_length; i += 2) { unsigned short c; unsigned short* p; int l; int k; c = (in[i] << 8) | (in[i + 1] & 0xff); /* * Lookup the tables for decomposition information */ #ifdef RECOLL_DATADIR // Exception unac/fold values set by user. There should be 3 arrays for // unac/fold/unac+fold. For now there is only one array, which used to // be set for unac+fold, and is mostly or only used to prevent diacritics // removal for some chars and languages where it should not be done. // In conformance with current usage, but incorrectly, we do the following // things for the special chars depending on the operation requested: // - unaccenting: do nothing (copy original char) // - unac+fold: use table // - fold: use the unicode data. string trans; if (what != UNAC_FOLD && except_trans.size() != 0 && is_except_char(c, trans)) { if (what == UNAC_UNAC) { // Unaccent only. Do nothing p = 0; l = 0; } else { // Has to be UNAC_UNACFOLD: use table p = (unsigned short *)trans.c_str(); l = trans.size() / 2; } } else { #endif /* RECOLL_DATADIR */ unac_uf_char_utf16_(c, p, l, what) #ifdef RECOLL_DATADIR } #endif /* RECOLL_DATADIR */ /* * Explain what's done in great detail */ if(debug_level == UNAC_DEBUG_HIGH) { unsigned short index = unac_indexes[(c) >> UNAC_BLOCK_SHIFT]; unsigned char position = (c) & UNAC_BLOCK_MASK; DEBUG("unac_data%d[%d] & unac_positions[%d][%d]: ", index, unac_positions[index][position], index, position+1); DEBUG_APPEND("0x%04x => ", (c)); if(l == 0) { DEBUG_APPEND("untouched\n"); } else { int i; for(i = 0; i < l; i++) DEBUG_APPEND("0x%04x ", p[i]); DEBUG_APPEND("\n"); } } /* * Make sure there is enough space to hold the decomposition * Note: a previous realloc may have succeeded, which means that *outp * is not valid any more. We have to do the freeing and zero out *outp */ if(out_length + ((l + 1) * 2) > out_size) { char *saved; out_size += ((l + 1) * 2) + 1024; saved = out; out = (char *)realloc(out, out_size); if(out == 0) { if(debug_level >= UNAC_DEBUG_LOW) DEBUG("realloc %d bytes failed\n", out_size); free(saved); *outp = 0; return -1; } } if(l > 0) { /* l == 1 && *p == 0 is the special case generated for mark characters (which may be found if the input is already in decomposed form. Output nothing */ if (l != 1 || *p != 0) { /* * If there is a decomposition, insert it in the output * string. */ for(k = 0; k < l; k++) { out[out_length++] = (p[k] >> 8) & 0xff; out[out_length++] = (p[k] & 0xff); } } } else { /* * If there is no decomposition leave it unchanged */ out[out_length++] = in[i]; out[out_length++] = in[i + 1]; } } *outp = out; *out_lengthp = out_length; (*outp)[*out_lengthp] = '\0'; return 0; } int unac_string_utf16(const char* in, size_t in_length, char** outp, size_t* out_lengthp) { return unacmaybefold_string_utf16(in, in_length, outp, out_lengthp, UNAC_UNAC); } int unacfold_string_utf16(const char* in, size_t in_length, char** outp, size_t* out_lengthp) { return unacmaybefold_string_utf16(in, in_length, outp, out_lengthp, UNAC_UNACFOLD); } int fold_string_utf16(const char* in, size_t in_length, char** outp, size_t* out_lengthp) { return unacmaybefold_string_utf16(in, in_length, outp, out_lengthp, UNAC_FOLD); } static const char *utf16be = "UTF-16BE"; static iconv_t u8tou16_cd = (iconv_t)-1; static iconv_t u16tou8_cd = (iconv_t)-1; static pthread_mutex_t o_unac_mutex; static int unac_mutex_is_init; // Call this or take your chances with the auto init. void unac_init_mt() { pthread_mutex_init(&o_unac_mutex, 0); unac_mutex_is_init = 1; } /* * Convert buffer containing string encoded in charset into * a string in charset and return it in buffer . The * points to a malloced string large enough to hold the conversion result. * It is the responsibility of the caller to free this array. * The out string is always null terminated. */ static int convert(const char* from, const char* to, const char* in, size_t in_length, char** outp, size_t* out_lengthp) { int ret = -1; iconv_t cd; char* out; size_t out_remain; size_t out_size; char* out_base; int from_utf16, from_utf8, to_utf16, to_utf8, u8tou16, u16tou8; const char space[] = { 0x00, 0x20 }; /* Note: better call explicit unac_init_mt() before starting threads than rely on this. */ if (unac_mutex_is_init == 0) { pthread_mutex_init(&o_unac_mutex, 0); unac_mutex_is_init = 1; } pthread_mutex_lock(&o_unac_mutex); if (!strcmp(utf16be, from)) { from_utf8 = 0; from_utf16 = 1; } else if (!strcasecmp("UTF-8", from)) { from_utf8 = 1; from_utf16 = 0; } else { from_utf8 = from_utf16 = 0; } if (!strcmp(utf16be, to)) { to_utf8 = 0; to_utf16 = 1; } else if (!strcasecmp("UTF-8", to)) { to_utf8 = 1; to_utf16 = 0; } else { to_utf8 = to_utf16 = 0; } u16tou8 = from_utf16 && to_utf8; u8tou16 = from_utf8 && to_utf16; out_size = in_length > 0 ? in_length : 1024; out = *outp; out = (char *)realloc(out, out_size + 1); if(out == 0) { /* *outp still valid, no freeing */ if(debug_level >= UNAC_DEBUG_LOW) DEBUG("realloc %d bytes failed\n", out_size+1); goto out; } out_remain = out_size; out_base = out; if (u8tou16) { if (u8tou16_cd == (iconv_t)-1) { if((u8tou16_cd = iconv_open(to, from)) == (iconv_t)-1) { goto out; } } else { iconv(u8tou16_cd, 0, 0, 0, 0); } cd = u8tou16_cd; } else if (u16tou8) { if (u16tou8_cd == (iconv_t)-1) { if((u16tou8_cd = iconv_open(to, from)) == (iconv_t)-1) { goto out; } } else { iconv(u16tou8_cd, 0, 0, 0, 0); } cd = u16tou8_cd; } else { if((cd = iconv_open(to, from)) == (iconv_t)-1) { goto out; } } do { if(iconv(cd, (ICONV_CONST char **) &in, &in_length, &out, &out_remain) == (size_t)-1) { switch(errno) { case EILSEQ: /* * If an illegal sequence is found in the context of unac_string * it means the unaccented version of a character contains * a sequence that cannot be mapped back to the original charset. * For instance, the 1/4 character in ISO-8859-1 is decomposed * in three characters including the FRACTION SLASH (2044) which * have no equivalent in the ISO-8859-1 map. One can argue that * the conversions tables should map it to the regular / character * or that a entry should be associated with it. * * To cope with this situation, convert silently transform all * illegal sequences (EILSEQ) into a SPACE character 0x0020. * * In the general conversion case this behaviour is not desirable. * However, it is not the responsibility of this program to cope * with inconsistencies of the Unicode description and a bug report * should be submited to Unicode so that they can fix the problem. * */ if(from_utf16) { const char* tmp = space; size_t tmp_length = 2; if(iconv(cd, (ICONV_CONST char **) &tmp, &tmp_length, &out, &out_remain) == (size_t)-1) { if(errno == E2BIG) /* fall thru to the E2BIG case below */; else goto out; } else { /* The offending character was replaced by a SPACE, skip it. */ in += 2; in_length -= 2; /* And continue conversion. */ break; } } else { goto out; } case E2BIG: { /* * The output does not fit in the current out buffer, enlarge it. */ int length = out - out_base; out_size *= 2; { char *saved = out_base; /* +1 for null */ out_base = (char *)realloc(out_base, out_size + 1); if (out_base == 0) { /* *outp potentially not valid any more. Free here, * and zero out */ if(debug_level >= UNAC_DEBUG_LOW) DEBUG("realloc %d bytes failed\n", out_size+1); free(saved); *outp = 0; goto out; } } out = out_base + length; out_remain = out_size - length; } break; default: goto out; break; } } } while(in_length > 0); if (!u8tou16 && !u16tou8) iconv_close(cd); *outp = out_base; *out_lengthp = out - out_base; (*outp)[*out_lengthp] = '\0'; ret = 0; out: pthread_mutex_unlock(&o_unac_mutex); return ret; } int unacmaybefold_string(const char* charset, const char* in, size_t in_length, char** outp, size_t* out_lengthp, int what) { /* * When converting an empty string, skip everything but alloc the * buffer if NULL pointer. */ if (in_length <= 0) { if(!*outp) { if ((*outp = (char*)malloc(32)) == 0) return -1; } (*outp)[0] = '\0'; *out_lengthp = 0; } else { char* utf16 = 0; size_t utf16_length = 0; char* utf16_unaccented = 0; size_t utf16_unaccented_length = 0; if(convert(charset, utf16be, in, in_length, &utf16, &utf16_length) < 0) { return -1; } unacmaybefold_string_utf16(utf16, utf16_length, &utf16_unaccented, &utf16_unaccented_length, what); free(utf16); if(convert(utf16be, charset, utf16_unaccented, utf16_unaccented_length, outp, out_lengthp) < 0) { return -1; } free(utf16_unaccented); } return 0; } int unac_string(const char* charset, const char* in, size_t in_length, char** outp, size_t* out_lengthp) { return unacmaybefold_string(charset, in, in_length, outp, out_lengthp, UNAC_UNAC); } int unacfold_string(const char* charset, const char* in, size_t in_length, char** outp, size_t* out_lengthp) { return unacmaybefold_string(charset, in, in_length, outp, out_lengthp, UNAC_UNACFOLD); } int fold_string(const char* charset, const char* in, size_t in_length, char** outp, size_t* out_lengthp) { return unacmaybefold_string(charset, in, in_length, outp, out_lengthp, UNAC_FOLD); } const char* unac_version(void) { return UNAC_VERSION; } #ifdef RECOLL_DATADIR void unac_set_except_translations(const char *spectrans) { except_trans.clear(); if (!spectrans || !spectrans[0]) return; // The translation tables out of Unicode are in machine byte order (we // just let the compiler read the values). // For the translation part, we need to choose our encoding in accordance ) // (16BE or 16LE depending on processor) // On the contrary, the source char is always to be compared to // the input text, which is encoded in UTF-16BE ... What a mess. static const char *machinecoding = 0; bool littleendian = true; if (machinecoding == 0) { const char* charshort = "\001\002"; short *ip = (short *)charshort; if (*ip == 0x0102) { littleendian = false; machinecoding = "UTF-16BE"; } else { littleendian = true; machinecoding = "UTF-16LE"; } } vector vtrans; stringToStrings(spectrans, vtrans); for (vector::iterator it = vtrans.begin(); it != vtrans.end(); it++) { /* Convert the whole thing to utf-16be/le according to endianness */ char *out = 0; size_t outsize; if (convert("UTF-8", machinecoding, it->c_str(), it->size(), &out, &outsize) != 0 || outsize < 2) continue; /* The source char must be utf-16be as this is what we convert the input text to for internal processing */ unsigned short ch; if (littleendian) ch = (out[1] << 8) | (out[0] & 0xff); else ch = (out[0] << 8) | (out[1] & 0xff); except_trans[ch] = string((const char *)(out + 2), outsize-2); free(out); } } #endif /* RECOLL_DATADIR */ recoll-1.21.5/unac/COPYING0000644000175000017500000004312712602163540014351 0ustar dockesdockes GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. recoll-1.21.5/unac/README.recoll0000644000175000017500000000061112602163540015444 0ustar dockesdockesThis is a stripped down and modified version of unac-1.7.0 You can find the full original distribution at http://www.senga.org/unac/ You can find the full version used by Recoll at the following url: http://bitbucket.org/medoc/recoll/src/tip/unac/ See AUTHORS and COPYING for tributes, etc. Dont bother Loic Dachary about bugs in this version, you can find the culprit here: jfd@recoll.org recoll-1.21.5/unac/unac_version.h0000644000175000017500000000003512602163540016151 0ustar dockesdockes#define UNAC_VERSION "1.7.0" recoll-1.21.5/unac/unac.h0000644000175000017500000010264012602163572014416 0ustar dockesdockes/* * Copyright (C) 2000, 2001, 2002 Loic Dachary * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * Provides functions to strip accents from a string in all the * charset supported by iconv(3). * * See the unac(3) manual page for more information. * */ #ifndef _unac_h #define _unac_h #ifdef __cplusplus extern "C" { #endif /* Generated by builder. Do not modify. Start defines */ #define UNAC_BLOCK_SHIFT 3 #define UNAC_BLOCK_MASK ((1 << UNAC_BLOCK_SHIFT) - 1) #define UNAC_BLOCK_SIZE (1 << UNAC_BLOCK_SHIFT) #define UNAC_BLOCK_COUNT 713 #define UNAC_INDEXES_SIZE (0x10000 >> UNAC_BLOCK_SHIFT) /* Generated by builder. Do not modify. End defines */ /* * Return the unaccented equivalent of the UTF-16 character * in the pointer

. The length of the unsigned short array pointed * by

is returned in the argument. * The C++ prototype of this macro would be: * * void unac_char(const unsigned short c, unsigned short*& p, int& l, int o) * * See unac(3) in IMPLEMENTATION NOTES for more information about the * tables (unac_data_table, unac_positions) layout. * * Each transformed char has 3 possible outputs: unaccented, unaccented and * folded, or just folded. These are kept at offset 0,1,2 in the position table */ #define unac_uf_char_utf16_(c,p,l,o) \ { \ unsigned short index = unac_indexes[(c) >> UNAC_BLOCK_SHIFT]; \ unsigned char position = 3*((c) & UNAC_BLOCK_MASK) + (o); \ (p) = &(unac_data_table[index][unac_positions[index][position]]); \ (l) = unac_positions[index][position + 1] \ - unac_positions[index][position]; \ if((l) == 1 && *(p) == 0xFFFF) { \ (p) = 0; \ (l) = 0; \ } \ } #define unac_char_utf16(c,p,l) unac_uf_char_utf16_((c),(p),(l),0) #define unacfold_char_utf16(c,p,l) unac_uf_char_utf16_((c),(p),(l),1) #define fold_char_utf16(c,p,l) unac_uf_char_utf16_((c),(p),(l),2) /* * Return the unaccented equivalent of the UTF-16 string of * length in the pointer . The length of the UTF-16 * string returned in is stored in . If the pointer * *out is null, a new string is allocated using malloc(3). If the * pointer *out is not null, the available length must also be given * in the *out_length argument. The pointer passed to *out must have * been allocated by malloc(3) and may be reallocated by realloc(3) if * needs be. It is the responsibility of the caller to free the * pointer returned in *out. The return value is 0 on success and -1 * on error, in which case the errno variable is set to the * corresponding error code. */ int unac_string_utf16(const char* in, size_t in_length, char** out, size_t* out_length); int unacfold_string_utf16(const char* in, size_t in_length, char** out, size_t* out_length); int fold_string_utf16(const char* in, size_t in_length, char** out, size_t* out_length); /* * The semantic of this function is stricly equal to the function * unac_string_utf16. The argument applies to the content of the * input string. It is converted to UTF-16 using iconv(3) before calling * the unac_string function and the result is converted from UTF-16 to * the specified before returning it in the pointer. * For efficiency purpose it is recommended that the caller uses * unac_string and iconv(3) to save buffer allocations overhead. * The return value is 0 on success and -1 on error, in which case * the errno variable is set to the corresponding error code. */ int unac_string(const char* charset, const char* in, size_t in_length, char** out, size_t* out_length); int unacfold_string(const char* charset, const char* in, size_t in_length, char** out, size_t* out_length); int fold_string(const char* charset, const char* in, size_t in_length, char** out, size_t* out_length); /* To be called before starting threads in mt programs */ void unac_init_mt(); #ifdef RECOLL_DATADIR #include /** * Set exceptions for unaccenting, for characters which should not be * handled according to what the Unicode tables say. For example "a * with circle above" should not be stripped to a in swedish, etc. * * @param spectrans defines the translations as a blank separated list of * UTF-8 strings. Inside each string, the first character is the exception * the rest is the translation (which may be empty). You can use double * quotes for translations which should include white space. The double-quote * can't be an exception character, deal with it... */ void unac_set_except_translations(const char *spectrans); #endif /* RECOLL_DATADIR */ /* * Return unac version number. */ const char* unac_version(void); #define UNAC_DEBUG_NONE 0x00 #define UNAC_DEBUG_LOW 0x01 #define UNAC_DEBUG_HIGH 0x02 #ifdef HAVE_VSNPRINTF #define UNAC_DEBUG_AVAILABLE 1 /* * Set the unac debug level. is one of: * UNAC_DEBUG_NONE for no debug messages at all * UNAC_DEBUG_LOW for minimal information * UNAC_DEBUG_HIGH for extremely verbose information, * only usable when translating a few short strings. * * unac_debug with anything but UNAC_DEBUG_NONE is not * thread safe. */ #define unac_debug(l) unac_debug_callback((l), 0, (void*)0); /* * Set the debug level and define a printing function callback. * The debug level is the same as in unac_debug. The * is in charge of dealing with the debug messages, * presumably to print them to the user. The is an opaque * pointer that is passed along to , should it * need to manage a persistent context. * * The prototype of allows two arguments. The first * is the debug message (const char*), the second is the opaque * pointer given as argument to unac_debug_callback. * * If is NULL, messages are printed on the standard * error output using fprintf(stderr...). * * unac_debug_callback with anything but UNAC_DEBUG_NONE is not * thread safe. * */ typedef void (*unac_debug_print_t)(const char* message, void* data); void unac_debug_callback(int level, unac_debug_print_t function, void* data); #endif /* HAVE_VSNPRINTF */ /* Generated by builder. Do not modify. Start declarations */ extern unsigned short unac_indexes[UNAC_INDEXES_SIZE]; extern unsigned char unac_positions[UNAC_BLOCK_COUNT][3*UNAC_BLOCK_SIZE + 1]; extern unsigned short* unac_data_table[UNAC_BLOCK_COUNT]; extern unsigned short unac_data0[]; extern unsigned short unac_data1[]; extern unsigned short unac_data2[]; extern unsigned short unac_data3[]; extern unsigned short unac_data4[]; extern unsigned short unac_data5[]; extern unsigned short unac_data6[]; extern unsigned short unac_data7[]; extern unsigned short unac_data8[]; extern unsigned short unac_data9[]; extern unsigned short unac_data10[]; extern unsigned short unac_data11[]; extern unsigned short unac_data12[]; extern unsigned short unac_data13[]; extern unsigned short unac_data14[]; extern unsigned short unac_data15[]; extern unsigned short unac_data16[]; extern unsigned short unac_data17[]; extern unsigned short unac_data18[]; extern unsigned short unac_data19[]; extern unsigned short unac_data20[]; extern unsigned short unac_data21[]; extern unsigned short unac_data22[]; extern unsigned short unac_data23[]; extern unsigned short unac_data24[]; extern unsigned short unac_data25[]; extern unsigned short unac_data26[]; extern unsigned short unac_data27[]; extern unsigned short unac_data28[]; extern unsigned short unac_data29[]; extern unsigned short unac_data30[]; extern unsigned short unac_data31[]; extern unsigned short unac_data32[]; extern unsigned short unac_data33[]; extern unsigned short unac_data34[]; extern unsigned short unac_data35[]; extern unsigned short unac_data36[]; extern unsigned short unac_data37[]; extern unsigned short unac_data38[]; extern unsigned short unac_data39[]; extern unsigned short unac_data40[]; extern unsigned short unac_data41[]; extern unsigned short unac_data42[]; extern unsigned short unac_data43[]; extern unsigned short unac_data44[]; extern unsigned short unac_data45[]; extern unsigned short unac_data46[]; extern unsigned short unac_data47[]; extern unsigned short unac_data48[]; extern unsigned short unac_data49[]; extern unsigned short unac_data50[]; extern unsigned short unac_data51[]; extern unsigned short unac_data52[]; extern unsigned short unac_data53[]; extern unsigned short unac_data54[]; extern unsigned short unac_data55[]; extern unsigned short unac_data56[]; extern unsigned short unac_data57[]; extern unsigned short unac_data58[]; extern unsigned short unac_data59[]; extern unsigned short unac_data60[]; extern unsigned short unac_data61[]; extern unsigned short unac_data62[]; extern unsigned short unac_data63[]; extern unsigned short unac_data64[]; extern unsigned short unac_data65[]; extern unsigned short unac_data66[]; extern unsigned short unac_data67[]; extern unsigned short unac_data68[]; extern unsigned short unac_data69[]; extern unsigned short unac_data70[]; extern unsigned short unac_data71[]; extern unsigned short unac_data72[]; extern unsigned short unac_data73[]; extern unsigned short unac_data74[]; extern unsigned short unac_data75[]; extern unsigned short unac_data76[]; extern unsigned short unac_data77[]; extern unsigned short unac_data78[]; extern unsigned short unac_data79[]; extern unsigned short unac_data80[]; extern unsigned short unac_data81[]; extern unsigned short unac_data82[]; extern unsigned short unac_data83[]; extern unsigned short unac_data84[]; extern unsigned short unac_data85[]; extern unsigned short unac_data86[]; extern unsigned short unac_data87[]; extern unsigned short unac_data88[]; extern unsigned short unac_data89[]; extern unsigned short unac_data90[]; extern unsigned short unac_data91[]; extern unsigned short unac_data92[]; extern unsigned short unac_data93[]; extern unsigned short unac_data94[]; extern unsigned short unac_data95[]; extern unsigned short unac_data96[]; extern unsigned short unac_data97[]; extern unsigned short unac_data98[]; extern unsigned short unac_data99[]; extern unsigned short unac_data100[]; extern unsigned short unac_data101[]; extern unsigned short unac_data102[]; extern unsigned short unac_data103[]; extern unsigned short unac_data104[]; extern unsigned short unac_data105[]; extern unsigned short unac_data106[]; extern unsigned short unac_data107[]; extern unsigned short unac_data108[]; extern unsigned short unac_data109[]; extern unsigned short unac_data110[]; extern unsigned short unac_data111[]; extern unsigned short unac_data112[]; extern unsigned short unac_data113[]; extern unsigned short unac_data114[]; extern unsigned short unac_data115[]; extern unsigned short unac_data116[]; extern unsigned short unac_data117[]; extern unsigned short unac_data118[]; extern unsigned short unac_data119[]; extern unsigned short unac_data120[]; extern unsigned short unac_data121[]; extern unsigned short unac_data122[]; extern unsigned short unac_data123[]; extern unsigned short unac_data124[]; extern unsigned short unac_data125[]; extern unsigned short unac_data126[]; extern unsigned short unac_data127[]; extern unsigned short unac_data128[]; extern unsigned short unac_data129[]; extern unsigned short unac_data130[]; extern unsigned short unac_data131[]; extern unsigned short unac_data132[]; extern unsigned short unac_data133[]; extern unsigned short unac_data134[]; extern unsigned short unac_data135[]; extern unsigned short unac_data136[]; extern unsigned short unac_data137[]; extern unsigned short unac_data138[]; extern unsigned short unac_data139[]; extern unsigned short unac_data140[]; extern unsigned short unac_data141[]; extern unsigned short unac_data142[]; extern unsigned short unac_data143[]; extern unsigned short unac_data144[]; extern unsigned short unac_data145[]; extern unsigned short unac_data146[]; extern unsigned short unac_data147[]; extern unsigned short unac_data148[]; extern unsigned short unac_data149[]; extern unsigned short unac_data150[]; extern unsigned short unac_data151[]; extern unsigned short unac_data152[]; extern unsigned short unac_data153[]; extern unsigned short unac_data154[]; extern unsigned short unac_data155[]; extern unsigned short unac_data156[]; extern unsigned short unac_data157[]; extern unsigned short unac_data158[]; extern unsigned short unac_data159[]; extern unsigned short unac_data160[]; extern unsigned short unac_data161[]; extern unsigned short unac_data162[]; extern unsigned short unac_data163[]; extern unsigned short unac_data164[]; extern unsigned short unac_data165[]; extern unsigned short unac_data166[]; extern unsigned short unac_data167[]; extern unsigned short unac_data168[]; extern unsigned short unac_data169[]; extern unsigned short unac_data170[]; extern unsigned short unac_data171[]; extern unsigned short unac_data172[]; extern unsigned short unac_data173[]; extern unsigned short unac_data174[]; extern unsigned short unac_data175[]; extern unsigned short unac_data176[]; extern unsigned short unac_data177[]; extern unsigned short unac_data178[]; extern unsigned short unac_data179[]; extern unsigned short unac_data180[]; extern unsigned short unac_data181[]; extern unsigned short unac_data182[]; extern unsigned short unac_data183[]; extern unsigned short unac_data184[]; extern unsigned short unac_data185[]; extern unsigned short unac_data186[]; extern unsigned short unac_data187[]; extern unsigned short unac_data188[]; extern unsigned short unac_data189[]; extern unsigned short unac_data190[]; extern unsigned short unac_data191[]; extern unsigned short unac_data192[]; extern unsigned short unac_data193[]; extern unsigned short unac_data194[]; extern unsigned short unac_data195[]; extern unsigned short unac_data196[]; extern unsigned short unac_data197[]; extern unsigned short unac_data198[]; extern unsigned short unac_data199[]; extern unsigned short unac_data200[]; extern unsigned short unac_data201[]; extern unsigned short unac_data202[]; extern unsigned short unac_data203[]; extern unsigned short unac_data204[]; extern unsigned short unac_data205[]; extern unsigned short unac_data206[]; extern unsigned short unac_data207[]; extern unsigned short unac_data208[]; extern unsigned short unac_data209[]; extern unsigned short unac_data210[]; extern unsigned short unac_data211[]; extern unsigned short unac_data212[]; extern unsigned short unac_data213[]; extern unsigned short unac_data214[]; extern unsigned short unac_data215[]; extern unsigned short unac_data216[]; extern unsigned short unac_data217[]; extern unsigned short unac_data218[]; extern unsigned short unac_data219[]; extern unsigned short unac_data220[]; extern unsigned short unac_data221[]; extern unsigned short unac_data222[]; extern unsigned short unac_data223[]; extern unsigned short unac_data224[]; extern unsigned short unac_data225[]; extern unsigned short unac_data226[]; extern unsigned short unac_data227[]; extern unsigned short unac_data228[]; extern unsigned short unac_data229[]; extern unsigned short unac_data230[]; extern unsigned short unac_data231[]; extern unsigned short unac_data232[]; extern unsigned short unac_data233[]; extern unsigned short unac_data234[]; extern unsigned short unac_data235[]; extern unsigned short unac_data236[]; extern unsigned short unac_data237[]; extern unsigned short unac_data238[]; extern unsigned short unac_data239[]; extern unsigned short unac_data240[]; extern unsigned short unac_data241[]; extern unsigned short unac_data242[]; extern unsigned short unac_data243[]; extern unsigned short unac_data244[]; extern unsigned short unac_data245[]; extern unsigned short unac_data246[]; extern unsigned short unac_data247[]; extern unsigned short unac_data248[]; extern unsigned short unac_data249[]; extern unsigned short unac_data250[]; extern unsigned short unac_data251[]; extern unsigned short unac_data252[]; extern unsigned short unac_data253[]; extern unsigned short unac_data254[]; extern unsigned short unac_data255[]; extern unsigned short unac_data256[]; extern unsigned short unac_data257[]; extern unsigned short unac_data258[]; extern unsigned short unac_data259[]; extern unsigned short unac_data260[]; extern unsigned short unac_data261[]; extern unsigned short unac_data262[]; extern unsigned short unac_data263[]; extern unsigned short unac_data264[]; extern unsigned short unac_data265[]; extern unsigned short unac_data266[]; extern unsigned short unac_data267[]; extern unsigned short unac_data268[]; extern unsigned short unac_data269[]; extern unsigned short unac_data270[]; extern unsigned short unac_data271[]; extern unsigned short unac_data272[]; extern unsigned short unac_data273[]; extern unsigned short unac_data274[]; extern unsigned short unac_data275[]; extern unsigned short unac_data276[]; extern unsigned short unac_data277[]; extern unsigned short unac_data278[]; extern unsigned short unac_data279[]; extern unsigned short unac_data280[]; extern unsigned short unac_data281[]; extern unsigned short unac_data282[]; extern unsigned short unac_data283[]; extern unsigned short unac_data284[]; extern unsigned short unac_data285[]; extern unsigned short unac_data286[]; extern unsigned short unac_data287[]; extern unsigned short unac_data288[]; extern unsigned short unac_data289[]; extern unsigned short unac_data290[]; extern unsigned short unac_data291[]; extern unsigned short unac_data292[]; extern unsigned short unac_data293[]; extern unsigned short unac_data294[]; extern unsigned short unac_data295[]; extern unsigned short unac_data296[]; extern unsigned short unac_data297[]; extern unsigned short unac_data298[]; extern unsigned short unac_data299[]; extern unsigned short unac_data300[]; extern unsigned short unac_data301[]; extern unsigned short unac_data302[]; extern unsigned short unac_data303[]; extern unsigned short unac_data304[]; extern unsigned short unac_data305[]; extern unsigned short unac_data306[]; extern unsigned short unac_data307[]; extern unsigned short unac_data308[]; extern unsigned short unac_data309[]; extern unsigned short unac_data310[]; extern unsigned short unac_data311[]; extern unsigned short unac_data312[]; extern unsigned short unac_data313[]; extern unsigned short unac_data314[]; extern unsigned short unac_data315[]; extern unsigned short unac_data316[]; extern unsigned short unac_data317[]; extern unsigned short unac_data318[]; extern unsigned short unac_data319[]; extern unsigned short unac_data320[]; extern unsigned short unac_data321[]; extern unsigned short unac_data322[]; extern unsigned short unac_data323[]; extern unsigned short unac_data324[]; extern unsigned short unac_data325[]; extern unsigned short unac_data326[]; extern unsigned short unac_data327[]; extern unsigned short unac_data328[]; extern unsigned short unac_data329[]; extern unsigned short unac_data330[]; extern unsigned short unac_data331[]; extern unsigned short unac_data332[]; extern unsigned short unac_data333[]; extern unsigned short unac_data334[]; extern unsigned short unac_data335[]; extern unsigned short unac_data336[]; extern unsigned short unac_data337[]; extern unsigned short unac_data338[]; extern unsigned short unac_data339[]; extern unsigned short unac_data340[]; extern unsigned short unac_data341[]; extern unsigned short unac_data342[]; extern unsigned short unac_data343[]; extern unsigned short unac_data344[]; extern unsigned short unac_data345[]; extern unsigned short unac_data346[]; extern unsigned short unac_data347[]; extern unsigned short unac_data348[]; extern unsigned short unac_data349[]; extern unsigned short unac_data350[]; extern unsigned short unac_data351[]; extern unsigned short unac_data352[]; extern unsigned short unac_data353[]; extern unsigned short unac_data354[]; extern unsigned short unac_data355[]; extern unsigned short unac_data356[]; extern unsigned short unac_data357[]; extern unsigned short unac_data358[]; extern unsigned short unac_data359[]; extern unsigned short unac_data360[]; extern unsigned short unac_data361[]; extern unsigned short unac_data362[]; extern unsigned short unac_data363[]; extern unsigned short unac_data364[]; extern unsigned short unac_data365[]; extern unsigned short unac_data366[]; extern unsigned short unac_data367[]; extern unsigned short unac_data368[]; extern unsigned short unac_data369[]; extern unsigned short unac_data370[]; extern unsigned short unac_data371[]; extern unsigned short unac_data372[]; extern unsigned short unac_data373[]; extern unsigned short unac_data374[]; extern unsigned short unac_data375[]; extern unsigned short unac_data376[]; extern unsigned short unac_data377[]; extern unsigned short unac_data378[]; extern unsigned short unac_data379[]; extern unsigned short unac_data380[]; extern unsigned short unac_data381[]; extern unsigned short unac_data382[]; extern unsigned short unac_data383[]; extern unsigned short unac_data384[]; extern unsigned short unac_data385[]; extern unsigned short unac_data386[]; extern unsigned short unac_data387[]; extern unsigned short unac_data388[]; extern unsigned short unac_data389[]; extern unsigned short unac_data390[]; extern unsigned short unac_data391[]; extern unsigned short unac_data392[]; extern unsigned short unac_data393[]; extern unsigned short unac_data394[]; extern unsigned short unac_data395[]; extern unsigned short unac_data396[]; extern unsigned short unac_data397[]; extern unsigned short unac_data398[]; extern unsigned short unac_data399[]; extern unsigned short unac_data400[]; extern unsigned short unac_data401[]; extern unsigned short unac_data402[]; extern unsigned short unac_data403[]; extern unsigned short unac_data404[]; extern unsigned short unac_data405[]; extern unsigned short unac_data406[]; extern unsigned short unac_data407[]; extern unsigned short unac_data408[]; extern unsigned short unac_data409[]; extern unsigned short unac_data410[]; extern unsigned short unac_data411[]; extern unsigned short unac_data412[]; extern unsigned short unac_data413[]; extern unsigned short unac_data414[]; extern unsigned short unac_data415[]; extern unsigned short unac_data416[]; extern unsigned short unac_data417[]; extern unsigned short unac_data418[]; extern unsigned short unac_data419[]; extern unsigned short unac_data420[]; extern unsigned short unac_data421[]; extern unsigned short unac_data422[]; extern unsigned short unac_data423[]; extern unsigned short unac_data424[]; extern unsigned short unac_data425[]; extern unsigned short unac_data426[]; extern unsigned short unac_data427[]; extern unsigned short unac_data428[]; extern unsigned short unac_data429[]; extern unsigned short unac_data430[]; extern unsigned short unac_data431[]; extern unsigned short unac_data432[]; extern unsigned short unac_data433[]; extern unsigned short unac_data434[]; extern unsigned short unac_data435[]; extern unsigned short unac_data436[]; extern unsigned short unac_data437[]; extern unsigned short unac_data438[]; extern unsigned short unac_data439[]; extern unsigned short unac_data440[]; extern unsigned short unac_data441[]; extern unsigned short unac_data442[]; extern unsigned short unac_data443[]; extern unsigned short unac_data444[]; extern unsigned short unac_data445[]; extern unsigned short unac_data446[]; extern unsigned short unac_data447[]; extern unsigned short unac_data448[]; extern unsigned short unac_data449[]; extern unsigned short unac_data450[]; extern unsigned short unac_data451[]; extern unsigned short unac_data452[]; extern unsigned short unac_data453[]; extern unsigned short unac_data454[]; extern unsigned short unac_data455[]; extern unsigned short unac_data456[]; extern unsigned short unac_data457[]; extern unsigned short unac_data458[]; extern unsigned short unac_data459[]; extern unsigned short unac_data460[]; extern unsigned short unac_data461[]; extern unsigned short unac_data462[]; extern unsigned short unac_data463[]; extern unsigned short unac_data464[]; extern unsigned short unac_data465[]; extern unsigned short unac_data466[]; extern unsigned short unac_data467[]; extern unsigned short unac_data468[]; extern unsigned short unac_data469[]; extern unsigned short unac_data470[]; extern unsigned short unac_data471[]; extern unsigned short unac_data472[]; extern unsigned short unac_data473[]; extern unsigned short unac_data474[]; extern unsigned short unac_data475[]; extern unsigned short unac_data476[]; extern unsigned short unac_data477[]; extern unsigned short unac_data478[]; extern unsigned short unac_data479[]; extern unsigned short unac_data480[]; extern unsigned short unac_data481[]; extern unsigned short unac_data482[]; extern unsigned short unac_data483[]; extern unsigned short unac_data484[]; extern unsigned short unac_data485[]; extern unsigned short unac_data486[]; extern unsigned short unac_data487[]; extern unsigned short unac_data488[]; extern unsigned short unac_data489[]; extern unsigned short unac_data490[]; extern unsigned short unac_data491[]; extern unsigned short unac_data492[]; extern unsigned short unac_data493[]; extern unsigned short unac_data494[]; extern unsigned short unac_data495[]; extern unsigned short unac_data496[]; extern unsigned short unac_data497[]; extern unsigned short unac_data498[]; extern unsigned short unac_data499[]; extern unsigned short unac_data500[]; extern unsigned short unac_data501[]; extern unsigned short unac_data502[]; extern unsigned short unac_data503[]; extern unsigned short unac_data504[]; extern unsigned short unac_data505[]; extern unsigned short unac_data506[]; extern unsigned short unac_data507[]; extern unsigned short unac_data508[]; extern unsigned short unac_data509[]; extern unsigned short unac_data510[]; extern unsigned short unac_data511[]; extern unsigned short unac_data512[]; extern unsigned short unac_data513[]; extern unsigned short unac_data514[]; extern unsigned short unac_data515[]; extern unsigned short unac_data516[]; extern unsigned short unac_data517[]; extern unsigned short unac_data518[]; extern unsigned short unac_data519[]; extern unsigned short unac_data520[]; extern unsigned short unac_data521[]; extern unsigned short unac_data522[]; extern unsigned short unac_data523[]; extern unsigned short unac_data524[]; extern unsigned short unac_data525[]; extern unsigned short unac_data526[]; extern unsigned short unac_data527[]; extern unsigned short unac_data528[]; extern unsigned short unac_data529[]; extern unsigned short unac_data530[]; extern unsigned short unac_data531[]; extern unsigned short unac_data532[]; extern unsigned short unac_data533[]; extern unsigned short unac_data534[]; extern unsigned short unac_data535[]; extern unsigned short unac_data536[]; extern unsigned short unac_data537[]; extern unsigned short unac_data538[]; extern unsigned short unac_data539[]; extern unsigned short unac_data540[]; extern unsigned short unac_data541[]; extern unsigned short unac_data542[]; extern unsigned short unac_data543[]; extern unsigned short unac_data544[]; extern unsigned short unac_data545[]; extern unsigned short unac_data546[]; extern unsigned short unac_data547[]; extern unsigned short unac_data548[]; extern unsigned short unac_data549[]; extern unsigned short unac_data550[]; extern unsigned short unac_data551[]; extern unsigned short unac_data552[]; extern unsigned short unac_data553[]; extern unsigned short unac_data554[]; extern unsigned short unac_data555[]; extern unsigned short unac_data556[]; extern unsigned short unac_data557[]; extern unsigned short unac_data558[]; extern unsigned short unac_data559[]; extern unsigned short unac_data560[]; extern unsigned short unac_data561[]; extern unsigned short unac_data562[]; extern unsigned short unac_data563[]; extern unsigned short unac_data564[]; extern unsigned short unac_data565[]; extern unsigned short unac_data566[]; extern unsigned short unac_data567[]; extern unsigned short unac_data568[]; extern unsigned short unac_data569[]; extern unsigned short unac_data570[]; extern unsigned short unac_data571[]; extern unsigned short unac_data572[]; extern unsigned short unac_data573[]; extern unsigned short unac_data574[]; extern unsigned short unac_data575[]; extern unsigned short unac_data576[]; extern unsigned short unac_data577[]; extern unsigned short unac_data578[]; extern unsigned short unac_data579[]; extern unsigned short unac_data580[]; extern unsigned short unac_data581[]; extern unsigned short unac_data582[]; extern unsigned short unac_data583[]; extern unsigned short unac_data584[]; extern unsigned short unac_data585[]; extern unsigned short unac_data586[]; extern unsigned short unac_data587[]; extern unsigned short unac_data588[]; extern unsigned short unac_data589[]; extern unsigned short unac_data590[]; extern unsigned short unac_data591[]; extern unsigned short unac_data592[]; extern unsigned short unac_data593[]; extern unsigned short unac_data594[]; extern unsigned short unac_data595[]; extern unsigned short unac_data596[]; extern unsigned short unac_data597[]; extern unsigned short unac_data598[]; extern unsigned short unac_data599[]; extern unsigned short unac_data600[]; extern unsigned short unac_data601[]; extern unsigned short unac_data602[]; extern unsigned short unac_data603[]; extern unsigned short unac_data604[]; extern unsigned short unac_data605[]; extern unsigned short unac_data606[]; extern unsigned short unac_data607[]; extern unsigned short unac_data608[]; extern unsigned short unac_data609[]; extern unsigned short unac_data610[]; extern unsigned short unac_data611[]; extern unsigned short unac_data612[]; extern unsigned short unac_data613[]; extern unsigned short unac_data614[]; extern unsigned short unac_data615[]; extern unsigned short unac_data616[]; extern unsigned short unac_data617[]; extern unsigned short unac_data618[]; extern unsigned short unac_data619[]; extern unsigned short unac_data620[]; extern unsigned short unac_data621[]; extern unsigned short unac_data622[]; extern unsigned short unac_data623[]; extern unsigned short unac_data624[]; extern unsigned short unac_data625[]; extern unsigned short unac_data626[]; extern unsigned short unac_data627[]; extern unsigned short unac_data628[]; extern unsigned short unac_data629[]; extern unsigned short unac_data630[]; extern unsigned short unac_data631[]; extern unsigned short unac_data632[]; extern unsigned short unac_data633[]; extern unsigned short unac_data634[]; extern unsigned short unac_data635[]; extern unsigned short unac_data636[]; extern unsigned short unac_data637[]; extern unsigned short unac_data638[]; extern unsigned short unac_data639[]; extern unsigned short unac_data640[]; extern unsigned short unac_data641[]; extern unsigned short unac_data642[]; extern unsigned short unac_data643[]; extern unsigned short unac_data644[]; extern unsigned short unac_data645[]; extern unsigned short unac_data646[]; extern unsigned short unac_data647[]; extern unsigned short unac_data648[]; extern unsigned short unac_data649[]; extern unsigned short unac_data650[]; extern unsigned short unac_data651[]; extern unsigned short unac_data652[]; extern unsigned short unac_data653[]; extern unsigned short unac_data654[]; extern unsigned short unac_data655[]; extern unsigned short unac_data656[]; extern unsigned short unac_data657[]; extern unsigned short unac_data658[]; extern unsigned short unac_data659[]; extern unsigned short unac_data660[]; extern unsigned short unac_data661[]; extern unsigned short unac_data662[]; extern unsigned short unac_data663[]; extern unsigned short unac_data664[]; extern unsigned short unac_data665[]; extern unsigned short unac_data666[]; extern unsigned short unac_data667[]; extern unsigned short unac_data668[]; extern unsigned short unac_data669[]; extern unsigned short unac_data670[]; extern unsigned short unac_data671[]; extern unsigned short unac_data672[]; extern unsigned short unac_data673[]; extern unsigned short unac_data674[]; extern unsigned short unac_data675[]; extern unsigned short unac_data676[]; extern unsigned short unac_data677[]; extern unsigned short unac_data678[]; extern unsigned short unac_data679[]; extern unsigned short unac_data680[]; extern unsigned short unac_data681[]; extern unsigned short unac_data682[]; extern unsigned short unac_data683[]; extern unsigned short unac_data684[]; extern unsigned short unac_data685[]; extern unsigned short unac_data686[]; extern unsigned short unac_data687[]; extern unsigned short unac_data688[]; extern unsigned short unac_data689[]; extern unsigned short unac_data690[]; extern unsigned short unac_data691[]; extern unsigned short unac_data692[]; extern unsigned short unac_data693[]; extern unsigned short unac_data694[]; extern unsigned short unac_data695[]; extern unsigned short unac_data696[]; extern unsigned short unac_data697[]; extern unsigned short unac_data698[]; extern unsigned short unac_data699[]; extern unsigned short unac_data700[]; extern unsigned short unac_data701[]; extern unsigned short unac_data702[]; extern unsigned short unac_data703[]; extern unsigned short unac_data704[]; extern unsigned short unac_data705[]; extern unsigned short unac_data706[]; extern unsigned short unac_data707[]; extern unsigned short unac_data708[]; extern unsigned short unac_data709[]; extern unsigned short unac_data710[]; extern unsigned short unac_data711[]; extern unsigned short unac_data712[]; /* Generated by builder. Do not modify. End declarations */ #ifdef __cplusplus } #endif #endif /* _unac_h */ recoll-1.21.5/unac/unac.c0000644000175000017500000000000012602163572020755 1recoll-1.21.5/unac/unac.cppustar dockesdockesrecoll-1.21.5/unac/README0000644000175000017500000000626412602163540014177 0ustar dockesdockes$Header: /cvsroot/unac/unac/README,v 1.5 2002/09/02 10:40:09 loic Exp $ What is it ? ------------ unac is a C library that removes accents from characters, regardless of the character set (ISO-8859-15, ISO-CELTIC, KOI8-RU...) as long as iconv(3) is able to convert it into UTF-16 (Unicode). For instance the string t will become ete. It provides a command line interface (unaccent) that removes accents from an input flow or a string given in argument. When using the library function or the command, the charset of the input must be specified. The input is converted to UTF-16 using iconv(3), accents are removed and the result is converted back to the original charset. The iconv -l command on GNU/Linux will show all charset supported. Where is the documentation ? ---------------------------- The manual page of the unaccent command : man unaccent. The manual page of the unac library : man unac. How to install it ? ------------------- For OS that are not GNU/Linux we recommend to use the iconv library provided by Bruno Haible at ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz. ./configure [--with-iconv=/my/local] make all make check make install How to link with unac ? ------------------------- Assuming you've installed unac in the /usr/local directory use something similar to the following: In the sources: ... #include ... On the command line: cc -I/usr/local/include -o prog prog.cc -L/usr/local/lib -lunac Where can I download it ? ------------------------- The main distribution site is http://www.senga.org/unac/. What is the license ? --------------------- unac is distributed under the GNU GPL, as found at http://www.gnu.org/licenses/gpl.txt. Unicode data files are under the following license, which is compatible with the GNU GPL: http://www.unicode.org/Public/3.2-Update/UnicodeData-3.2.0.html#UCD_Terms UCD Terms of Use Disclaimer The Unicode Character Database is provided as is by Unicode, Inc. No claims are made as to fitness for any particular purpose. No warranties of any kind are expressed or implied. The recipient agrees to determine applicability of information provided. If this file has been purchased on magnetic or optical media from Unicode, Inc., the sole remedy for any claim will be exchange of defective media within 90 days of receipt. This disclaimer is applicable for all other data files accompanying the Unicode Character Database, some of which have been compiled by the Unicode Consortium, and some of which have been supplied by other sources. Limitations on Rights to Redistribute This Data Recipient is granted the right to make copies in any form for internal distribution and to freely use the information supplied in the creation of products supporting the Unicode(TM) Standard. The files in the Unicode Character Database can be redistributed to third parties or other organizations (whether for profit or not) as long as this notice and the disclaimer notice are retained. Information can be extracted from these files and used in documentation or programs, as long as there is an accompanying notice indicating the source. Loic Dachary loic@senga.org http://www.senga.org/ recoll-1.21.5/common/0000755000175000017500000000000012652665251013664 5ustar dockesdockesrecoll-1.21.5/common/rclinit.h0000644000175000017500000000455112602163537015501 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RCLINIT_H_INCLUDED_ #define _RCLINIT_H_INCLUDED_ #include #ifndef NO_NAMESPACES using std::string; #endif class RclConfig; /** * Initialize by reading configuration, opening log file, etc. * * This must be called from the main thread before starting any others. It sets * up the global signal handling. other threads must call recoll_threadinit() * when starting. * * @param flags misc modifiers * @param cleanup function to call before exiting (atexit) * @param sigcleanup function to call on terminal signal (INT/HUP...) This * should typically set a flag which tells the program (recoll, * recollindex etc.. to exit as soon as possible (after closing the db, * etc.). cleanup will then be called by exit(). * @param reason in case of error: output string explaining things * @param argcnf Configuration directory name from the command line (overriding * default and environment * @return the parsed configuration. */ enum RclInitFlags {RCLINIT_NONE=0, RCLINIT_DAEMON=1}; extern RclConfig *recollinit(RclInitFlags flags, void (*cleanup)(void), void (*sigcleanup)(int), string &reason, const string *argcnf = 0); inline RclConfig *recollinit(void (*cleanup)(void), void (*sigcleanup)(int), string &reason, const string *argcnf = 0) { return recollinit(RCLINIT_NONE, cleanup, sigcleanup, reason, argcnf); } // Threads need to call this to block signals. // The main thread handles all signals. extern void recoll_threadinit(); // Check if main thread extern bool recoll_ismainthread(); #endif /* _RCLINIT_H_INCLUDED_ */ recoll-1.21.5/common/rclconfig.cpp0000644000175000017500000013430712644666703016352 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_RCLCONFIG #include "autoconfig.h" #include #include #include #include #include #include #include #include #include using std::list; #include #include #ifdef __FreeBSD__ #include #endif #include #include #include #include using namespace std; #include "cstr.h" #include "pathut.h" #include "rclconfig.h" #include "conftree.h" #include "debuglog.h" #include "smallut.h" #include "textsplit.h" #include "readfile.h" #include "fstreewalk.h" #include "cpuconf.h" typedef pair RclPII; // Static, logically const, RclConfig members are initialized once from the // first object build during process initialization. // We default to a case- and diacritics-less index for now bool o_index_stripchars = true; bool o_uptodate_test_use_mtime = false; string RclConfig::o_localecharset; string RclConfig::o_origcwd; bool ParamStale::needrecompute() { LOGDEB2(("ParamStale:: needrecompute. parent gen %d mine %d\n", parent->m_keydirgen, savedkeydirgen)); if (active && parent->m_keydirgen != savedkeydirgen) { LOGDEB2(("ParamState:: needrecompute. conffile %p\n", conffile)); savedkeydirgen = parent->m_keydirgen; string newvalue; if (!conffile) return false; conffile->get(paramname, newvalue, parent->m_keydir); if (newvalue.compare(savedvalue)) { savedvalue = newvalue; LOGDEB2(("ParamState:: needrecompute. return true newvalue [%s]\n", newvalue.c_str())); return true; } } return false; } void ParamStale::init(ConfNull *cnf) { conffile = cnf; active = false; if (conffile) active = conffile->hasNameAnywhere(paramname); savedkeydirgen = -1; } ParamStale::ParamStale(RclConfig *rconf, const string& nm) : parent(rconf), conffile(0), paramname(nm), active(false), savedkeydirgen(-1) { } void RclConfig::zeroMe() { m_ok = false; m_keydirgen = 0; m_conf = 0; mimemap = 0; mimeconf = 0; mimeview = 0; m_fields = 0; m_ptrans = 0; m_stopsuffixes = 0; m_maxsufflen = 0; initParamStale(0, 0); } bool RclConfig::isDefaultConfig() const { string defaultconf = path_cat(path_canon(path_home()), ".recoll/"); string specifiedconf = path_canon(m_confdir); path_catslash(specifiedconf); return !defaultconf.compare(specifiedconf); } RclConfig::RclConfig(const string *argcnf) : m_oldstpsuffstate(this, "recoll_noindex"), m_stpsuffstate(this, "noContentSuffixes"), m_skpnstate(this, "skippedNames"), m_rmtstate(this, "indexedmimetypes"), m_xmtstate(this, "excludedmimetypes"), m_mdrstate(this, "metadatacmds") { zeroMe(); if (o_origcwd.empty()) { char buf[MAXPATHLEN]; if (getcwd(buf, MAXPATHLEN)) { o_origcwd = string(buf); } else { fprintf(stderr, "recollxx: can't retrieve current working directory: relative path translations will fail\n"); } } // Compute our data dir name, typically /usr/local/share/recoll const char *cdatadir = getenv("RECOLL_DATADIR"); if (cdatadir == 0) { // If not in environment, use the compiled-in constant. m_datadir = RECOLL_DATADIR; } else { m_datadir = cdatadir; } // We only do the automatic configuration creation thing for the default // config dir, not if it was specified through -c or RECOLL_CONFDIR bool autoconfdir = false; // Command line config name overrides environment if (argcnf && !argcnf->empty()) { m_confdir = path_absolute(*argcnf); if (m_confdir.empty()) { m_reason = string("Cant turn [") + *argcnf + "] into absolute path"; return; } } else { const char *cp = getenv("RECOLL_CONFDIR"); if (cp) { m_confdir = path_canon(cp); } else { autoconfdir = true; m_confdir = path_cat(path_home(), ".recoll/"); } } // Note: autoconfdir and isDefaultConfig() are normally the same. We just // want to avoid the imperfect test in isDefaultConfig() if we actually know // this is the default conf if (!autoconfdir && !isDefaultConfig()) { if (access(m_confdir.c_str(), 0) < 0) { m_reason = "Explicitly specified configuration " "directory must exist" " (won't be automatically created). Use mkdir first"; return; } } if (access(m_confdir.c_str(), 0) < 0) { if (!initUserConfig()) return; } // This can't change once computed inside a process. It would be // nicer to move this to a static class initializer to avoid // possible threading issues but this doesn't work (tried) as // things would not be ready. In practise we make sure that this // is called from the main thread at once, by constructing a config // from recollinit if (o_localecharset.empty()) { const char *cp; cp = nl_langinfo(CODESET); // We don't keep US-ASCII. It's better to use a superset // Ie: me have a C locale and some french file names, and I // can't imagine a version of iconv that couldn't translate // from iso8859? // The 646 thing is for solaris. if (cp && *cp && strcmp(cp, "US-ASCII") #ifdef sun && strcmp(cp, "646") #endif ) { o_localecharset = string(cp); } else { // Use cp1252 instead of iso-8859-1, it's a superset. o_localecharset = string(cstr_cp1252); } LOGDEB1(("RclConfig::getDefCharset: localecharset [%s]\n", o_localecharset.c_str())); } const char *cp; // Additional config directory, values override user ones if ((cp = getenv("RECOLL_CONFTOP"))) { m_cdirs.push_back(cp); } // User config m_cdirs.push_back(m_confdir); // Additional config directory, overrides system's, overridden by user's if ((cp = getenv("RECOLL_CONFMID"))) { m_cdirs.push_back(cp); } // Base/installation config m_cdirs.push_back(path_cat(m_datadir, "examples")); string cnferrloc; for (vector::const_iterator it = m_cdirs.begin(); it != m_cdirs.end(); it++) { if (it != m_cdirs.begin()) cnferrloc += string(" or "); cnferrloc += *it; } // Read and process "recoll.conf" if (!updateMainConfig()) return; // Other files mimemap = new ConfStack("mimemap", m_cdirs, true); if (mimemap == 0 || !mimemap->ok()) { m_reason = string("No or bad mimemap file in: ") + cnferrloc; return; } mimeconf = new ConfStack("mimeconf", m_cdirs, true); if (mimeconf == 0 || !mimeconf->ok()) { m_reason = string("No/bad mimeconf in: ") + cnferrloc; return; } mimeview = new ConfStack("mimeview", m_cdirs, false); if (mimeview == 0) mimeview = new ConfStack("mimeview", m_cdirs, true); if (mimeview == 0 || !mimeview->ok()) { m_reason = string("No/bad mimeview in: ") + cnferrloc; return; } if (!readFieldsConfig(cnferrloc)) return; // Default is no threading m_thrConf = create_vector (RclPII(-1, 0))(RclPII(-1, 0))(RclPII(-1, 0)); m_ptrans = new ConfSimple(path_cat(m_confdir, "ptrans").c_str()); m_ok = true; setKeyDir(cstr_null); initParamStale(m_conf, mimemap); return; } bool RclConfig::updateMainConfig() { ConfStack *newconf = new ConfStack("recoll.conf", m_cdirs, true); if (newconf == 0 || !newconf->ok()) { if (m_conf) return false; string where; stringsToString(m_cdirs, where); m_reason = string("No/bad main configuration file in: ") + where; m_ok = false; initParamStale(0, 0); return false; } delete m_conf; m_conf = newconf; initParamStale(m_conf, mimemap); setKeyDir(cstr_null); bool nocjk = false; if (getConfParam("nocjk", &nocjk) && nocjk == true) { TextSplit::cjkProcessing(false); } else { int ngramlen; if (getConfParam("cjkngramlen", &ngramlen)) { TextSplit::cjkProcessing(true, (unsigned int)ngramlen); } else { TextSplit::cjkProcessing(true); } } bool nonum = false; if (getConfParam("nonumbers", &nonum) && nonum == true) { TextSplit::noNumbers(); } bool fnmpathname = true; if (getConfParam("skippedPathsFnmPathname", &fnmpathname) && fnmpathname == false) { FsTreeWalker::setNoFnmPathname(); } static int m_index_stripchars_init = 0; if (!m_index_stripchars_init) { getConfParam("indexStripChars", &o_index_stripchars); getConfParam("testmodifusemtime", &o_uptodate_test_use_mtime); m_index_stripchars_init = 1; } return true; } ConfNull *RclConfig::cloneMainConfig() { ConfNull *conf = new ConfStack("recoll.conf", m_cdirs, false); if (conf == 0 || !conf->ok()) { m_reason = string("Can't read config"); return 0; } return conf; } // Remember what directory we're under (for further conf->get()s), and // prefetch a few common values. void RclConfig::setKeyDir(const string &dir) { if (!dir.compare(m_keydir)) return; m_keydirgen++; m_keydir = dir; if (m_conf == 0) return; if (!m_conf->get("defaultcharset", m_defcharset, m_keydir)) m_defcharset.erase(); } bool RclConfig::getConfParam(const string &name, int *ivp, bool shallow) const { string value; if (!getConfParam(name, value, shallow)) return false; errno = 0; long lval = strtol(value.c_str(), 0, 0); if (lval == 0 && errno) return 0; if (ivp) *ivp = int(lval); return true; } bool RclConfig::getConfParam(const string &name, bool *bvp, bool shallow) const { if (!bvp) return false; *bvp = false; string s; if (!getConfParam(name, s, shallow)) return false; *bvp = stringToBool(s); return true; } bool RclConfig::getConfParam(const string &name, vector *svvp, bool shallow) const { if (!svvp) return false; svvp->clear(); string s; if (!getConfParam(name, s, shallow)) return false; return stringToStrings(s, *svvp); } bool RclConfig::getConfParam(const string &name, vector *vip, bool shallow) const { if (!vip) return false; vip->clear(); vector vs; if (!getConfParam(name, &vs, shallow)) return false; vip->reserve(vs.size()); for (unsigned int i = 0; i < vs.size(); i++) { char *ep; vip->push_back(strtol(vs[i].c_str(), &ep, 0)); if (ep == vs[i].c_str()) { LOGDEB(("RclConfig::getConfParam: bad int value in [%s]\n", name.c_str())); return false; } } return true; } void RclConfig::initThrConf() { // Default is no threading m_thrConf = create_vector (RclPII(-1, 0))(RclPII(-1, 0))(RclPII(-1, 0)); vector vq; vector vt; if (!getConfParam("thrQSizes", &vq)) { LOGINFO(("RclConfig::initThrConf: no thread info (queues)\n")); goto out; } // If the first queue size is 0, autoconf is requested. if (vq.size() > 0 && vq[0] == 0) { LOGDEB(("RclConfig::initThrConf: autoconf requested\n")); CpuConf cpus; if (!getCpuConf(cpus) || cpus.ncpus < 1) { LOGERR(("RclConfig::initThrConf: could not retrieve cpu conf\n")); cpus.ncpus = 1; } // Arbitrarily set threads config based on number of CPUS. This also // depends on the IO setup actually, so we're bound to be wrong... if (cpus.ncpus == 1) { // Somewhat counter-intuitively (because of possible IO//) // it seems that the best config here is no threading } else if (cpus.ncpus < 4) { // Untested so let's guess... m_thrConf = create_vector (RclPII(2, 2))(RclPII(2, 2))(RclPII(2, 1)); } else if (cpus.ncpus < 6) { m_thrConf = create_vector (RclPII(2, 4))(RclPII(2, 2))(RclPII(2, 1)); } else { m_thrConf = create_vector (RclPII(2, 5))(RclPII(2, 3))(RclPII(2, 1)); } goto out; } else if (vq.size() > 0 && vq[0] < 0) { // threads disabled by config goto out; } if (!getConfParam("thrTCounts", &vt) ) { LOGINFO(("RclConfig::initThrConf: no thread info (threads)\n")); goto out; } if (vq.size() != 3 || vt.size() != 3) { LOGINFO(("RclConfig::initThrConf: bad thread info vector sizes\n")); goto out; } // Normal case: record info from config m_thrConf.clear(); for (unsigned int i = 0; i < 3; i++) { m_thrConf.push_back(RclPII(vq[i], vt[i])); } out: ostringstream sconf; for (unsigned int i = 0; i < 3; i++) { sconf << "(" << m_thrConf[i].first << ", " << m_thrConf[i].second << ") "; } LOGDEB(("RclConfig::initThrConf: chosen config (ql,nt): %s\n", sconf.str().c_str())); } pair RclConfig::getThrConf(ThrStage who) const { if (m_thrConf.size() != 3) { LOGERR(("RclConfig::getThrConf: bad data in rclconfig\n")); return pair(-1,-1); } return m_thrConf[who]; } vector RclConfig::getTopdirs() const { vector tdl; if (!getConfParam("topdirs", &tdl)) { LOGERR(("RclConfig::getTopdirs: no top directories in config or " "bad list format\n")); return tdl; } for (vector::iterator it = tdl.begin(); it != tdl.end(); it++) { *it = path_tildexpand(*it); *it = path_canon(*it); } return tdl; } // Get charset to be used for transcoding to utf-8 if unspecified by doc // For document contents: // If defcharset was set (from the config or a previous call, this // is done in setKeydir), use it. // Else, try to guess it from the locale // Use cp1252 (as a superset of iso8859-1) as ultimate default // // For filenames, same thing except that we do not use the config file value // (only the locale). const string& RclConfig::getDefCharset(bool filename) const { if (filename) { return o_localecharset; } else { return m_defcharset.empty() ? o_localecharset : m_defcharset; } } // Get all known document mime values. We get them from the mimeconf // 'index' submap. // It's quite possible that there are other mime types in the index // (defined in mimemap and not mimeconf, or output by "file -i"). We // just ignore them, because there may be myriads, and their contents // are not indexed. // // This unfortunately means that searches by file names and mime type // filtering don't work well together. vector RclConfig::getAllMimeTypes() const { return mimeconf ? mimeconf->getNames("index") : vector(); } // Things for suffix comparison. We define a string class and string // comparison with suffix-only sensitivity class SfString { public: SfString(const string& s) : m_str(s) {} bool operator==(const SfString& s2) { string::const_reverse_iterator r1 = m_str.rbegin(), re1 = m_str.rend(), r2 = s2.m_str.rbegin(), re2 = s2.m_str.rend(); while (r1 != re1 && r2 != re2) { if (*r1 != *r2) { return 0; } ++r1; ++r2; } return 1; } string m_str; }; class SuffCmp { public: int operator()(const SfString& s1, const SfString& s2) { //cout << "Comparing " << s1.m_str << " and " << s2.m_str << endl; string::const_reverse_iterator r1 = s1.m_str.rbegin(), re1 = s1.m_str.rend(), r2 = s2.m_str.rbegin(), re2 = s2.m_str.rend(); while (r1 != re1 && r2 != re2) { if (*r1 != *r2) { return *r1 < *r2 ? 1 : 0; } ++r1; ++r2; } return 0; } }; typedef multiset SuffixStore; #define STOPSUFFIXES ((SuffixStore *)m_stopsuffixes) bool RclConfig::inStopSuffixes(const string& fni) { LOGDEB2(("RclConfig::inStopSuffixes(%s)\n", fni.c_str())); // Beware: both needrecompute() need to be called always hence the // bizarre way we do things bool needrecompute = m_stpsuffstate.needrecompute(); needrecompute = m_oldstpsuffstate.needrecompute() || needrecompute; if (needrecompute || m_stopsuffixes == 0) { // Need to initialize the suffixes delete STOPSUFFIXES; if ((m_stopsuffixes = new SuffixStore) == 0) { LOGERR(("RclConfig::inStopSuffixes: out of memory\n")); return false; } // Let the old customisation have priority: if recoll_noindex // from mimemap is set, it the user's (the default value is // gone). Else use the new variable vector stoplist; if (!m_oldstpsuffstate.savedvalue.empty()) { stringToStrings(m_oldstpsuffstate.savedvalue, stoplist); } else { stringToStrings(m_stpsuffstate.savedvalue, stoplist); } for (vector::const_iterator it = stoplist.begin(); it != stoplist.end(); it++) { STOPSUFFIXES->insert(SfString(stringtolower(*it))); if (m_maxsufflen < it->length()) m_maxsufflen = it->length(); } } // Only need a tail as long as the longest suffix. int pos = MAX(0, int(fni.length() - m_maxsufflen)); string fn(fni, pos); stringtolower(fn); SuffixStore::const_iterator it = STOPSUFFIXES->find(fn); if (it != STOPSUFFIXES->end()) { LOGDEB2(("RclConfig::inStopSuffixes: Found (%s) [%s]\n", fni.c_str(), (*it).m_str.c_str())); return true; } else { LOGDEB2(("RclConfig::inStopSuffixes: not found [%s]\n", fni.c_str())); return false; } } string RclConfig::getMimeTypeFromSuffix(const string& suff) const { string mtype; mimemap->get(suff, mtype, m_keydir); return mtype; } string RclConfig::getSuffixFromMimeType(const string &mt) const { string suffix; vectorsfs = mimemap->getNames(cstr_null); string mt1; for (vector::const_iterator it = sfs.begin(); it != sfs.end(); it++) { if (mimemap->get(*it, mt1, cstr_null)) if (!stringicmp(mt, mt1)) return *it; } return cstr_null; } /** Get list of file categories from mimeconf */ bool RclConfig::getMimeCategories(vector& cats) const { if (!mimeconf) return false; cats = mimeconf->getNames("categories"); return true; } bool RclConfig::isMimeCategory(string& cat) const { vectorcats; getMimeCategories(cats); for (vector::iterator it = cats.begin(); it != cats.end(); it++) { if (!stringicmp(*it,cat)) return true; } return false; } /** Get list of mime types for category from mimeconf */ bool RclConfig::getMimeCatTypes(const string& cat, vector& tps) const { tps.clear(); if (!mimeconf) return false; string slist; if (!mimeconf->get(cat, slist, "categories")) return false; stringToStrings(slist, tps); return true; } string RclConfig::getMimeHandlerDef(const string &mtype, bool filtertypes) { string hs; if (filtertypes) { if(m_rmtstate.needrecompute()) { m_restrictMTypes.clear(); stringToStrings(stringtolower((const string&)m_rmtstate.savedvalue), m_restrictMTypes); } if (m_xmtstate.needrecompute()) { m_excludeMTypes.clear(); stringToStrings(stringtolower((const string&)m_xmtstate.savedvalue), m_excludeMTypes); } if (!m_restrictMTypes.empty() && !m_restrictMTypes.count(stringtolower(mtype))) { LOGDEB2(("RclConfig::getMimeHandlerDef: not in mime type list\n")); return hs; } if (!m_excludeMTypes.empty() && m_excludeMTypes.count(stringtolower(mtype))) { LOGDEB2(("RclConfig::getMimeHandlerDef: in excluded mime list\n")); return hs; } } if (!mimeconf->get(mtype, hs, "index")) { LOGDEB1(("getMimeHandler: no handler for '%s'\n", mtype.c_str())); } return hs; } const vector& RclConfig::getMDReapers() { string hs; if (m_mdrstate.needrecompute()) { m_mdreapers.clear(); // New value now stored in m_mdrstate.savedvalue string& sreapers = m_mdrstate.savedvalue; if (sreapers.empty()) return m_mdreapers; string value; ConfSimple attrs; valueSplitAttributes(sreapers, value, attrs); vector nmlst = attrs.getNames(cstr_null); for (vector::const_iterator it = nmlst.begin(); it != nmlst.end(); it++) { MDReaper reaper; reaper.fieldname = fieldCanon(*it); string s; attrs.get(*it, s); stringToStrings(s, reaper.cmdv); m_mdreapers.push_back(reaper); } } return m_mdreapers; } bool RclConfig::getGuiFilterNames(vector& cats) const { if (!mimeconf) return false; cats = mimeconf->getNamesShallow("guifilters"); return true; } bool RclConfig::getGuiFilter(const string& catfiltername, string& frag) const { frag.clear(); if (!mimeconf) return false; if (!mimeconf->get(catfiltername, frag, "guifilters")) return false; return true; } bool RclConfig::valueSplitAttributes(const string& whole, string& value, ConfSimple& attrs) { /* There is currently no way to escape a semi-colon */ string::size_type semicol0 = whole.find_first_of(";"); value = whole.substr(0, semicol0); trimstring(value); string attrstr; if (semicol0 != string::npos && semicol0 < whole.size() - 1) { attrstr = whole.substr(semicol0+1); } // Handle additional attributes. We substitute the semi-colons // with newlines and use a ConfSimple if (!attrstr.empty()) { for (string::size_type i = 0; i < attrstr.size(); i++) { if (attrstr[i] == ';') attrstr[i] = '\n'; } attrs.reparse(attrstr); } else { attrs.clear(); } return true; } bool RclConfig::getMissingHelperDesc(string& out) const { string fmiss = path_cat(getConfDir(), "missing"); out.clear(); if (!file_to_string(fmiss, out)) return false; return true; } void RclConfig::storeMissingHelperDesc(const string &s) { string fmiss = path_cat(getConfDir(), "missing"); FILE *fp = fopen(fmiss.c_str(), "w"); if (fp) { if (s.size() > 0 && fwrite(s.c_str(), s.size(), 1, fp) != 1) { LOGERR(("storeMissingHelperDesc: fwrite failed\n")); } fclose(fp); } } // Read definitions for field prefixes, aliases, and hierarchy and arrange // things for speed (theses are used a lot during indexing) bool RclConfig::readFieldsConfig(const string& cnferrloc) { LOGDEB2(("RclConfig::readFieldsConfig\n")); m_fields = new ConfStack("fields", m_cdirs, true); if (m_fields == 0 || !m_fields->ok()) { m_reason = string("No/bad fields file in: ") + cnferrloc; return false; } // Build a direct map avoiding all indirections for field to // prefix translation // Add direct prefixes from the [prefixes] section vectortps = m_fields->getNames("prefixes"); for (vector::const_iterator it = tps.begin(); it != tps.end(); it++) { string val; m_fields->get(*it, val, "prefixes"); ConfSimple attrs; FieldTraits ft; if (!valueSplitAttributes(val, ft.pfx, attrs)) { LOGERR(("readFieldsConfig: bad config line for [%s]: [%s]\n", it->c_str(), val.c_str())); return 0; } string tval; if (attrs.get("wdfinc", tval)) ft.wdfinc = atoi(tval.c_str()); if (attrs.get("boost", tval)) ft.boost = atof(tval.c_str()); if (attrs.get("pfxonly", tval)) ft.pfxonly = stringToBool(tval); m_fldtotraits[stringtolower(*it)] = ft; LOGDEB2(("readFieldsConfig: [%s] -> [%s] %d %.1f\n", it->c_str(), ft.pfx.c_str(), ft.wdfinc, ft.boost)); } // Add prefixes for aliases and build alias-to-canonic map while // we're at it. Having the aliases in the prefix map avoids an // additional indirection at index time. tps = m_fields->getNames("aliases"); for (vector::const_iterator it = tps.begin(); it != tps.end(); it++){ string canonic = stringtolower(*it); // canonic name FieldTraits ft; map::const_iterator pit = m_fldtotraits.find(canonic); if (pit != m_fldtotraits.end()) { ft = pit->second; } string aliases; m_fields->get(canonic, aliases, "aliases"); vector l; stringToStrings(aliases, l); for (vector::const_iterator ait = l.begin(); ait != l.end(); ait++) { if (pit != m_fldtotraits.end()) m_fldtotraits[stringtolower(*ait)] = ft; m_aliastocanon[stringtolower(*ait)] = canonic; } } // Query aliases map tps = m_fields->getNames("queryaliases"); for (vector::const_iterator it = tps.begin(); it != tps.end(); it++){ string canonic = stringtolower(*it); // canonic name string aliases; m_fields->get(canonic, aliases, "queryaliases"); vector l; stringToStrings(aliases, l); for (vector::const_iterator ait = l.begin(); ait != l.end(); ait++) { m_aliastoqcanon[stringtolower(*ait)] = canonic; } } #if 0 for (map::const_iterator it = m_fldtotraits.begin(); it != m_fldtotraits.end(); it++) { LOGDEB(("readFieldsConfig: [%s] -> [%s] %d %.1f\n", it->c_str(), it->second.pfx.c_str(), it->second.wdfinc, it->second.boost)); } #endif vector sl = m_fields->getNames("stored"); if (!sl.empty()) { for (vector::const_iterator it = sl.begin(); it != sl.end(); it++) { string fld = fieldCanon(stringtolower(*it)); m_storedFields.insert(fld); } } // Extended file attribute to field translations vectorxattrs = m_fields->getNames("xattrtofields"); for (vector::const_iterator it = xattrs.begin(); it != xattrs.end(); it++) { string val; m_fields->get(*it, val, "xattrtofields"); m_xattrtofld[*it] = val; } return true; } // Return specifics for field name: bool RclConfig::getFieldTraits(const string& _fld, const FieldTraits **ftpp, bool isquery) const { string fld = isquery ? fieldQCanon(_fld) : fieldCanon(_fld); map::const_iterator pit = m_fldtotraits.find(fld); if (pit != m_fldtotraits.end()) { *ftpp = &pit->second; LOGDEB1(("RclConfig::getFieldTraits: [%s]->[%s]\n", _fld.c_str(), pit->second.pfx.c_str())); return true; } else { LOGDEB1(("RclConfig::getFieldTraits: no prefix for field [%s]\n", fld.c_str())); *ftpp = 0; return false; } } set RclConfig::getIndexedFields() const { set flds; if (m_fields == 0) return flds; vector sl = m_fields->getNames("prefixes"); flds.insert(sl.begin(), sl.end()); return flds; } string RclConfig::fieldCanon(const string& f) const { string fld = stringtolower(f); map::const_iterator it = m_aliastocanon.find(fld); if (it != m_aliastocanon.end()) { LOGDEB1(("RclConfig::fieldCanon: [%s] -> [%s]\n", f.c_str(), it->second.c_str())); return it->second; } LOGDEB1(("RclConfig::fieldCanon: [%s] -> [%s]\n", f.c_str(), fld.c_str())); return fld; } string RclConfig::fieldQCanon(const string& f) const { string fld = stringtolower(f); map::const_iterator it = m_aliastoqcanon.find(fld); if (it != m_aliastoqcanon.end()) { LOGDEB1(("RclConfig::fieldQCanon: [%s] -> [%s]\n", f.c_str(), it->second.c_str())); return it->second; } return fieldCanon(f); } vector RclConfig::getFieldSectNames(const string &sk, const char* patrn) const { if (m_fields == 0) return vector(); return m_fields->getNames(sk, patrn); } bool RclConfig::getFieldConfParam(const string &name, const string &sk, string &value) const { if (m_fields == 0) return false; return m_fields->get(name, value, sk); } string RclConfig::getMimeViewerAllEx() const { string hs; if (mimeview == 0) return hs; mimeview->get("xallexcepts", hs, ""); return hs; } bool RclConfig::setMimeViewerAllEx(const string& allex) { if (mimeview == 0) return false; if (!mimeview->set("xallexcepts", allex, "")) { m_reason = string("RclConfig:: cant set value. Readonly?"); return false; } return true; } string RclConfig::getMimeViewerDef(const string &mtype, const string& apptag, bool useall) const { LOGDEB2(("RclConfig::getMimeViewerDef: mtype [%s] apptag [%s]\n", mtype.c_str(), apptag.c_str())); string hs; if (mimeview == 0) return hs; if (useall) { // Check for exception string excepts = getMimeViewerAllEx(); vector vex; stringToTokens(excepts, vex); bool isexcept = false; for (vector::iterator it = vex.begin(); it != vex.end(); it++) { vector mita; stringToTokens(*it, mita, "|"); if ((mita.size() == 1 && apptag.empty() && mita[0] == mtype) || (mita.size() == 2 && mita[1] == apptag && mita[0] == mtype)) { // Exception to x-all isexcept = true; break; } } if (isexcept == false) { mimeview->get("application/x-all", hs, "view"); return hs; } // Fallthrough to normal case. } if (apptag.empty() || !mimeview->get(mtype + string("|") + apptag, hs, "view")) mimeview->get(mtype, hs, "view"); return hs; } bool RclConfig::getMimeViewerDefs(vector >& defs) const { if (mimeview == 0) return false; vectortps = mimeview->getNames("view"); for (vector::const_iterator it = tps.begin(); it != tps.end();it++) { defs.push_back(pair(*it, getMimeViewerDef(*it, "", 0))); } return true; } bool RclConfig::setMimeViewerDef(const string& mt, const string& def) { if (mimeview == 0) return false; bool status; if (!def.empty()) status = mimeview->set(mt, def, "view"); else status = mimeview->erase(mt, "view"); if (!status) { m_reason = string("RclConfig:: cant set value. Readonly?"); return false; } return true; } bool RclConfig::mimeViewerNeedsUncomp(const string &mimetype) const { string s; vector v; if (mimeview != 0 && mimeview->get("nouncompforviewmts", s, "") && stringToStrings(s, v) && find_if(v.begin(), v.end(), StringIcmpPred(mimetype)) != v.end()) return false; return true; } string RclConfig::getMimeIconPath(const string &mtype, const string &apptag) const { string iconname; if (!apptag.empty()) mimeconf->get(mtype + string("|") + apptag, iconname, "icons"); if (iconname.empty()) mimeconf->get(mtype, iconname, "icons"); if (iconname.empty()) iconname = "document"; string iconpath; #if defined (__FreeBSD__) && __FreeBSD_version < 500000 // gcc 2.95 dies if we call getConfParam here ?? if (m_conf) m_conf->get(string("iconsdir"), iconpath, m_keydir); #else getConfParam("iconsdir", iconpath); #endif if (iconpath.empty()) { iconpath = path_cat(m_datadir, "images"); } else { iconpath = path_tildexpand(iconpath); } return path_cat(iconpath, iconname) + ".png"; } string RclConfig::getDbDir() const { string dbdir; if (!getConfParam("dbdir", dbdir)) { LOGERR(("RclConfig::getDbDir: no db directory in configuration\n")); } else { dbdir = path_tildexpand(dbdir); // If not an absolute path, compute relative to config dir if (dbdir.at(0) != '/') { LOGDEB1(("Dbdir not abs, catting with confdir\n")); dbdir = path_cat(getConfDir(), dbdir); } } LOGDEB1(("RclConfig::getDbDir: dbdir: [%s]\n", dbdir.c_str())); return path_canon(dbdir); } void RclConfig::urlrewrite(const string& dbdir, string& url) const { LOGDEB2(("RclConfig::urlrewrite: dbdir [%s] url [%s]\n", dbdir.c_str(), url.c_str())); // Do path translations exist for this index ? if (m_ptrans == 0 || !m_ptrans->hasSubKey(dbdir)) { LOGDEB2(("RclConfig::urlrewrite: no paths translations (m_ptrans %p)\n", m_ptrans)); return; } string path = fileurltolocalpath(url); if (path.empty()) { LOGDEB2(("RclConfig::urlrewrite: not file url\n")); return; } // For each translation check if the prefix matches the input path, // replace and return the result if it does. vector opaths = m_ptrans->getNames(dbdir); for (vector::const_iterator it = opaths.begin(); it != opaths.end(); it++) { if (it->size() <= path.size() && !path.compare(0, it->size(), *it)) { string npath; // This call always succeeds because the key comes from getNames() if (m_ptrans->get(*it, npath, dbdir)) { path = path.replace(0, it->size(), npath); url = "file://" + path; } break; } } } bool RclConfig::sourceChanged() const { if (m_conf && m_conf->sourceChanged()) return true; if (mimemap && mimemap->sourceChanged()) return true; if (mimeconf && mimeconf->sourceChanged()) return true; if (mimeview && mimeview->sourceChanged()) return true; if (m_fields && m_fields->sourceChanged()) return true; if (m_ptrans && m_ptrans->sourceChanged()) return true; return false; } string RclConfig::getStopfile() const { return path_cat(getConfDir(), "stoplist.txt"); } string RclConfig::getPidfile() const { return path_cat(getConfDir(), "index.pid"); } // The index status file is fast changing, so it's possible to put it outside // of the config directory (for ssds, not sure this is really useful). string RclConfig::getIdxStatusFile() const { string path; if (!getConfParam("idxstatusfile", path)) { return path_cat(getConfDir(), "idxstatus.txt"); } else { path = path_tildexpand(path); // If not an absolute path, compute relative to config dir if (path.at(0) != '/') { path = path_cat(getConfDir(), path); } return path_canon(path); } } string RclConfig::getWebQueueDir() const { string webqueuedir; if (!getConfParam("webqueuedir", webqueuedir)) webqueuedir = "~/.recollweb/ToIndex/"; webqueuedir = path_tildexpand(webqueuedir); return webqueuedir; } vector& RclConfig::getSkippedNames() { if (m_skpnstate.needrecompute()) { stringToStrings(m_skpnstate.savedvalue, m_skpnlist); } return m_skpnlist; } vector RclConfig::getSkippedPaths() const { vector skpl; getConfParam("skippedPaths", &skpl); // Always add the dbdir and confdir to the skipped paths. This is // especially important for the rt monitor which will go into a loop if we // don't do this. skpl.push_back(getDbDir()); skpl.push_back(getConfDir()); // And the web queue dir skpl.push_back(getWebQueueDir()); for (vector::iterator it = skpl.begin(); it != skpl.end(); it++) { *it = path_tildexpand(*it); *it = path_canon(*it); } sort(skpl.begin(), skpl.end()); vector::iterator uit = unique(skpl.begin(), skpl.end()); skpl.resize(uit - skpl.begin()); return skpl; } vector RclConfig::getDaemSkippedPaths() const { vector dskpl; getConfParam("daemSkippedPaths", &dskpl); for (vector::iterator it = dskpl.begin(); it != dskpl.end(); it++) { *it = path_tildexpand(*it); *it = path_canon(*it); } vector skpl1 = getSkippedPaths(); vector skpl; if (dskpl.empty()) { skpl = skpl1; } else { sort(dskpl.begin(), dskpl.end()); merge(dskpl.begin(), dskpl.end(), skpl1.begin(), skpl1.end(), skpl.begin()); vector::iterator uit = unique(skpl.begin(), skpl.end()); skpl.resize(uit - skpl.begin()); } return skpl; } // Look up an executable filter. We look in $RECOLL_FILTERSDIR, // filtersdir in config file, then let the system use the PATH string RclConfig::findFilter(const string &icmd) const { // If the path is absolute, this is it if (icmd[0] == '/') return icmd; string cmd; const char *cp; // Filters dir from environment ? if ((cp = getenv("RECOLL_FILTERSDIR"))) { cmd = path_cat(cp, icmd); if (access(cmd.c_str(), X_OK) == 0) return cmd; } // Filters dir as configuration parameter? if (getConfParam(string("filtersdir"), cmd)) { cmd = path_cat(cmd, icmd); if (access(cmd.c_str(), X_OK) == 0) return cmd; } // Filters dir as datadir subdir. Actually the standard case, but // this is normally the same value found in config file (previous step) cmd = path_cat(m_datadir, "filters"); cmd = path_cat(cmd, icmd); if (access(cmd.c_str(), X_OK) == 0) return cmd; // Last resort for historical reasons: check in personal config // directory cmd = path_cat(getConfDir(), icmd); if (access(cmd.c_str(), X_OK) == 0) return cmd; // Let the shell try to find it... return icmd; } /** * Return decompression command line for given mime type */ bool RclConfig::getUncompressor(const string &mtype, vector& cmd) const { string hs; mimeconf->get(mtype, hs, cstr_null); if (hs.empty()) return false; vector tokens; stringToStrings(hs, tokens); if (tokens.empty()) { LOGERR(("getUncompressor: empty spec for mtype %s\n", mtype.c_str())); return false; } vector::iterator it = tokens.begin(); if (tokens.size() < 2) return false; if (stringlowercmp("uncompress", *it++)) return false; cmd.clear(); cmd.push_back(findFilter(*it++)); cmd.insert(cmd.end(), it, tokens.end()); return true; } static const char blurb0[] = "# The system-wide configuration files for recoll are located in:\n" "# %s\n" "# The default configuration files are commented, you should take a look\n" "# at them for an explanation of what can be set (you could also take a look\n" "# at the manual instead).\n" "# Values set in this file will override the system-wide values for the file\n" "# with the same name in the central directory. The syntax for setting\n" "# values is identical.\n" ; // Use uni2ascii -a K to generate these from the utf-8 strings // Swedish and Danish. static const char swedish_ex[] = "unac_except_trans = \303\244\303\244 \303\204\303\244 \303\266\303\266 \303\226\303\266 \303\274\303\274 \303\234\303\274 \303\237ss \305\223oe \305\222oe \303\246ae \303\206ae \357\254\201fi \357\254\202fl \303\245\303\245 \303\205\303\245"; // German: static const char german_ex[] = "unac_except_trans = \303\244\303\244 \303\204\303\244 \303\266\303\266 \303\226\303\266 \303\274\303\274 \303\234\303\274 \303\237ss \305\223oe \305\222oe \303\246ae \303\206ae \357\254\201fi \357\254\202fl"; // Create initial user config by creating commented empty files static const char *configfiles[] = {"recoll.conf", "mimemap", "mimeconf", "mimeview"}; static int ncffiles = sizeof(configfiles) / sizeof(char *); bool RclConfig::initUserConfig() { // Explanatory text const int bs = sizeof(blurb0)+PATH_MAX+1; char blurb[bs]; string exdir = path_cat(m_datadir, "examples"); snprintf(blurb, bs, blurb0, exdir.c_str()); // Use protective 700 mode to create the top configuration // directory: documents can be reconstructed from index data. if (access(m_confdir.c_str(), 0) < 0 && mkdir(m_confdir.c_str(), 0700) < 0) { m_reason += string("mkdir(") + m_confdir + ") failed: " + strerror(errno); return false; } string lang = localelang(); for (int i = 0; i < ncffiles; i++) { string dst = path_cat(m_confdir, string(configfiles[i])); if (access(dst.c_str(), 0) < 0) { FILE *fp = fopen(dst.c_str(), "w"); if (fp) { fprintf(fp, "%s\n", blurb); if (!strcmp(configfiles[i], "recoll.conf")) { // Add improved unac_except_trans for some languages if (lang == "se" || lang == "dk" || lang == "no" || lang == "fi") { fprintf(fp, "%s\n", swedish_ex); } else if (lang == "de") { fprintf(fp, "%s\n", german_ex); } } fclose(fp); } else { m_reason += string("fopen ") + dst + ": " + strerror(errno); return false; } } } return true; } void RclConfig::freeAll() { delete m_conf; delete mimemap; delete mimeconf; delete mimeview; delete m_fields; delete m_ptrans; delete STOPSUFFIXES; // just in case zeroMe(); } void RclConfig::initFrom(const RclConfig& r) { zeroMe(); if (!(m_ok = r.m_ok)) return; m_reason = r.m_reason; m_confdir = r.m_confdir; m_datadir = r.m_datadir; m_keydir = r.m_keydir; m_cdirs = r.m_cdirs; if (r.m_conf) m_conf = new ConfStack(*(r.m_conf)); if (r.mimemap) mimemap = new ConfStack(*(r.mimemap)); if (r.mimeconf) mimeconf = new ConfStack(*(r.mimeconf)); if (r.mimeview) mimeview = new ConfStack(*(r.mimeview)); if (r.m_fields) m_fields = new ConfStack(*(r.m_fields)); if (r.m_ptrans) m_ptrans = new ConfSimple(*(r.m_ptrans)); m_fldtotraits = r.m_fldtotraits; m_aliastocanon = r.m_aliastocanon; m_aliastoqcanon = r.m_aliastoqcanon; m_storedFields = r.m_storedFields; m_xattrtofld = r.m_xattrtofld; if (r.m_stopsuffixes) m_stopsuffixes = new SuffixStore(*((SuffixStore*)r.m_stopsuffixes)); m_maxsufflen = r.m_maxsufflen; m_defcharset = r.m_defcharset; initParamStale(m_conf, mimemap); m_thrConf = r.m_thrConf; } void RclConfig::initParamStale(ConfNull *cnf, ConfNull *mimemap) { m_oldstpsuffstate.init(mimemap); m_stpsuffstate.init(cnf); m_skpnstate.init(cnf); m_rmtstate.init(cnf); m_xmtstate.init(cnf); m_mdrstate.init(cnf); } #else // -> Test #include #include #include #include #include using namespace std; #include "debuglog.h" #include "rclinit.h" #include "rclconfig.h" #include "cstr.h" static char *thisprog; static char usage [] = "\n" "-c: check a few things in the configuration files\n" "[-s subkey] -q param : query parameter value\n" "-f : print some field data\n" " : default: print parameters\n" ; static void Usage(void) { fprintf(stderr, "%s: usage: %s\n", thisprog, usage); exit(1); } static int op_flags; #define OPT_MOINS 0x1 #define OPT_s 0x2 #define OPT_q 0x4 #define OPT_c 0x8 #define OPT_f 0x10 int main(int argc, char **argv) { string pname, skey; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'c': op_flags |= OPT_c; break; case 'f': op_flags |= OPT_f; break; case 's': op_flags |= OPT_s; if (argc < 2) Usage(); skey = *(++argv); argc--; goto b1; case 'q': op_flags |= OPT_q; if (argc < 2) Usage(); pname = *(++argv); argc--; goto b1; default: Usage(); break; } b1: argc--; argv++; } if (argc != 0) Usage(); string reason; RclConfig *config = recollinit(0, 0, reason); if (config == 0 || !config->ok()) { cerr << "Configuration problem: " << reason << endl; exit(1); } if (op_flags & OPT_s) config->setKeyDir(skey); if (op_flags & OPT_q) { string value; if (!config->getConfParam(pname, value)) { fprintf(stderr, "getConfParam failed for [%s]\n", pname.c_str()); exit(1); } printf("[%s] -> [%s]\n", pname.c_str(), value.c_str()); } else if (op_flags & OPT_f) { set stored = config->getStoredFields(); set indexed = config->getIndexedFields(); cout << "Stored fields: "; for (set::const_iterator it = stored.begin(); it != stored.end(); it++) { cout << "[" << *it << "] "; } cout << endl; cout << "Indexed fields: "; for (set::const_iterator it = indexed.begin(); it != indexed.end(); it++) { const FieldTraits *ftp; config->getFieldTraits(*it, &ftp); if (ftp) cout << "[" << *it << "]" << " -> [" << ftp->pfx << "] "; else cout << "[" << *it << "]" << " -> [" << "(none)" << "] "; } cout << endl; } else if (op_flags & OPT_c) { // Checking the configuration consistency // Find and display category names vector catnames; config->getMimeCategories(catnames); cout << "Categories: "; for (vector::const_iterator it = catnames.begin(); it != catnames.end(); it++) { cout << *it << " "; } cout << endl; // Compute union of all types from each category. Check that there // are no duplicates while we are at it. set allmtsfromcats; for (vector::const_iterator it = catnames.begin(); it != catnames.end(); it++) { vector cts; config->getMimeCatTypes(*it, cts); for (vector::const_iterator it1 = cts.begin(); it1 != cts.end(); it1++) { // Already in map -> duplicate if (allmtsfromcats.find(*it1) != allmtsfromcats.end()) { cout << "Duplicate: [" << *it1 << "]" << endl; } allmtsfromcats.insert(*it1); } } // Retrieve complete list of mime types vector mtypes = config->getAllMimeTypes(); // And check that each mime type is found in exactly one category for (vector::const_iterator it = mtypes.begin(); it != mtypes.end(); it++) { if (allmtsfromcats.find(*it) == allmtsfromcats.end()) { cout << "Not found in catgs: [" << *it << "]" << endl; } } // List mime types not in mimeview for (vector::const_iterator it = mtypes.begin(); it != mtypes.end(); it++) { if (config->getMimeViewerDef(*it, "", false).empty()) { cout << "No viewer: [" << *it << "]" << endl; } } // Check that each mime type has an indexer for (vector::const_iterator it = mtypes.begin(); it != mtypes.end(); it++) { if (config->getMimeHandlerDef(*it, false).empty()) { cout << "No filter: [" << *it << "]" << endl; } } // Check that each mime type has a defined icon for (vector::const_iterator it = mtypes.begin(); it != mtypes.end(); it++) { if (config->getMimeIconPath(*it, "") == "document") { cout << "No or generic icon: [" << *it << "]" << endl; } } } else { config->setKeyDir(cstr_null); vector names = config->getConfNames(); for (vector::iterator it = names.begin(); it != names.end();it++) { string value; config->getConfParam(*it, value); cout << *it << " -> [" << value << "]" << endl; } } exit(0); } #endif // TEST_RCLCONFIG recoll-1.21.5/common/Makefile0000644000175000017500000000170012602163571015313 0ustar dockesdockesdepth = .. include $(depth)/mk/sysconf # Only test executables get build in here PROGS = unacpp textsplit rclconfig all: librecoll $(PROGS) UNACPP_OBJS= trunacpp.o unacpp : $(UNACPP_OBJS) $(CXX) $(ALL_CXXFLAGS) -o unacpp $(UNACPP_OBJS) \ $(LIBRECOLL) $(LIBICONV) trunacpp.o : unacpp.cpp unacpp.h $(CXX) $(ALL_CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp TEXTSPLIT_OBJS= trtextsplit.o textsplit : $(TEXTSPLIT_OBJS) $(CXX) $(ALL_CXXFLAGS) -o textsplit $(TEXTSPLIT_OBJS) \ $(LIBRECOLL) $(LIBICONV) trtextsplit.o : textsplit.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_TEXTSPLIT -c -o trtextsplit.o \ textsplit.cpp RCLCONFIG_OBJS= trrclconfig.o rclconfig : $(RCLCONFIG_OBJS) $(CXX) $(ALL_CXXFLAGS) -o rclconfig $(RCLCONFIG_OBJS) \ $(LIBRECOLL) $(LIBICONV) $(LIBSYS) trrclconfig.o : rclconfig.cpp $(CXX) $(ALL_CXXFLAGS) -DTEST_RCLCONFIG -c -o trrclconfig.o \ rclconfig.cpp include $(depth)/mk/commontargets recoll-1.21.5/common/textsplit.cpp0000644000175000017500000011004312615605036016421 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_TEXTSPLIT #include "autoconfig.h" #include #include #include #include #include #include #include "unordered_defs.h" using namespace std; #include "textsplit.h" #include "debuglog.h" //#define UTF8ITER_CHECK #include "utf8iter.h" #include "uproplist.h" /** * Splitting a text into words. The code in this file works with utf-8 * in a semi-clean way (see uproplist.h). Ascii still gets special * treatment in the sense that many special characters can only be * ascii (e.g. @, _,...). However, this compromise works quite well * while being much more light-weight than a full-blown Unicode * approach (ICU...) */ // Ascii character classes: we have three main groups, and then some chars // are their own class because they want special handling. // // We have an array with 256 slots where we keep the character types. // The array could be fully static, but we use a small function to fill it // once. // The array is actually a remnant of the original version which did no utf8. // Only the lower 127 slots are now used, but keep it at 256 // because it makes some tests in the code simpler. const unsigned int charclasses_size = 256; enum CharClass {LETTER=256, SPACE=257, DIGIT=258, WILD=259, A_ULETTER=260, A_LLETTER=261, SKIP=262}; static int charclasses[charclasses_size]; // Non-ascii UTF-8 characters are handled with sets holding all // characters with interesting properties. This is far from full-blown // management of Unicode properties, but seems to do the job well // enough in most common cases static vector vpuncblocks; static STD_UNORDERED_SET spunc; static STD_UNORDERED_SET visiblewhite; static STD_UNORDERED_SET sskip; class CharClassInit { public: CharClassInit() { unsigned int i; // Set default value for all: SPACE for (i = 0 ; i < 256 ; i ++) charclasses[i] = SPACE; char digits[] = "0123456789"; for (i = 0; i < strlen(digits); i++) charclasses[int(digits[i])] = DIGIT; char upper[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (i = 0; i < strlen(upper); i++) charclasses[int(upper[i])] = A_ULETTER; char lower[] = "abcdefghijklmnopqrstuvwxyz"; for (i = 0; i < strlen(lower); i++) charclasses[int(lower[i])] = A_LLETTER; char wild[] = "*?[]"; for (i = 0; i < strlen(wild); i++) charclasses[int(wild[i])] = WILD; // Characters with special treatment: // // The first ones are mostly span-constructing "glue" // characters, for example those typically allowing us to // search for an email address as a whole (bob@isp.org instead // of as a phrase "bob isp org" // // The case of the minus sign is a complicated one. It went // from glue to non-glue to glue along Recoll versions. // See minus-hyphen-dash.txt in doc/notes char special[] = ".@+-#'_\n\r\f"; for (i = 0; i < strlen(special); i++) charclasses[int(special[i])] = special[i]; for (i = 0; i < sizeof(unipunc) / sizeof(int); i++) { spunc.insert(unipunc[i]); } spunc.insert((unsigned int)-1); for (i = 0; i < sizeof(unipuncblocks) / sizeof(int); i++) { vpuncblocks.push_back(unipuncblocks[i]); } assert((vpuncblocks.size() % 2) == 0); for (i = 0; i < sizeof(avsbwht) / sizeof(int); i++) { visiblewhite.insert(avsbwht[i]); } for (i = 0; i < sizeof(uniskip) / sizeof(int); i++) { sskip.insert(uniskip[i]); } } }; static const CharClassInit charClassInitInstance; static inline int whatcc(unsigned int c) { if (c <= 127) { return charclasses[c]; } else { if (c == 0x2010) { // Special treatment for hyphen: handle as ascii minus. See // doc/notes/minus-hyphen-dash.txt return 0x2010; } else if (sskip.find(c) != sskip.end()) { return SKIP; } else if (spunc.find(c) != spunc.end()) { return SPACE; } else { vector::iterator it = lower_bound(vpuncblocks.begin(), vpuncblocks.end(), c); if (it == vpuncblocks.end()) return LETTER; if (c == *it) return SPACE; if ((it - vpuncblocks.begin()) % 2 == 1) { return SPACE; } else { return LETTER; } } } } // testing whatcc... #if 0 unsigned int testvalues[] = {'a', '0', 0x80, 0xbf, 0xc0, 0x05c3, 0x1000, 0x2000, 0x2001, 0x206e, 0x206f, 0x20d0, 0x2399, 0x2400, 0x2401, 0x243f, 0x2440, 0xff65}; int ntest = sizeof(testvalues) / sizeof(int); for (int i = 0; i < ntest; i++) { int ret = whatcc(testvalues[i]); printf("Tested value 0x%x, returned value %d %s\n", testvalues[i], ret, ret == LETTER ? "LETTER" : ret == SPACE ? "SPACE" : "OTHER"); } #endif // CJK Unicode character detection: // // 2E80..2EFF; CJK Radicals Supplement // 3000..303F; CJK Symbols and Punctuation // 3040..309F; Hiragana // 30A0..30FF; Katakana // 3100..312F; Bopomofo // 3130..318F; Hangul Compatibility Jamo // 3190..319F; Kanbun // 31A0..31BF; Bopomofo Extended // 31C0..31EF; CJK Strokes // 31F0..31FF; Katakana Phonetic Extensions // 3200..32FF; Enclosed CJK Letters and Months // 3300..33FF; CJK Compatibility // 3400..4DBF; CJK Unified Ideographs Extension A // 4DC0..4DFF; Yijing Hexagram Symbols // 4E00..9FFF; CJK Unified Ideographs // A700..A71F; Modifier Tone Letters // AC00..D7AF; Hangul Syllables // F900..FAFF; CJK Compatibility Ideographs // FE30..FE4F; CJK Compatibility Forms // FF00..FFEF; Halfwidth and Fullwidth Forms // 20000..2A6DF; CJK Unified Ideographs Extension B // 2F800..2FA1F; CJK Compatibility Ideographs Supplement // Note: the p > 127 test is not necessary, but optimizes away the ascii case #define UNICODE_IS_CJK(p) \ ((p) > 127 && \ (((p) >= 0x2E80 && (p) <= 0x2EFF) || \ ((p) >= 0x3000 && (p) <= 0x9FFF) || \ ((p) >= 0xA700 && (p) <= 0xA71F) || \ ((p) >= 0xAC00 && (p) <= 0xD7AF) || \ ((p) >= 0xF900 && (p) <= 0xFAFF) || \ ((p) >= 0xFE30 && (p) <= 0xFE4F) || \ ((p) >= 0xFF00 && (p) <= 0xFFEF) || \ ((p) >= 0x20000 && (p) <= 0x2A6DF) || \ ((p) >= 0x2F800 && (p) <= 0x2FA1F))) bool TextSplit::isCJK(int c) { return UNICODE_IS_CJK(c); } bool TextSplit::o_processCJK = true; unsigned int TextSplit::o_CJKNgramLen = 2; bool TextSplit::o_noNumbers = false; // Final term checkpoint: do some checking (the kind which is simpler // to do here than in the main loop), then send term to our client. inline bool TextSplit::emitterm(bool isspan, string &w, int pos, int btstart, int btend) { LOGDEB2(("TextSplit::emitterm: [%s] pos %d\n", w.c_str(), pos)); unsigned int l = w.length(); #ifdef TEXTSPLIT_STATS // Update word length statistics. Do this before we filter out // long words because stats are used to detect bad text if (!isspan || m_wordLen == m_span.length()) m_stats.newsamp(m_wordChars); #endif if (l > 0 && l < (unsigned)m_maxWordLength) { // 1 byte word: we index single ascii letters and digits, but // nothing else. We might want to turn this into a test for a // single utf8 character instead ? if (l == 1) { unsigned int c = ((unsigned int)w[0]) & 0xff; if (charclasses[c] != A_ULETTER && charclasses[c] != A_LLETTER && charclasses[c] != DIGIT && (!(m_flags & TXTS_KEEPWILD) || charclasses[c] != WILD) ) { //cerr << "ERASING single letter term " << c << endl; return true; } } if (pos != m_prevpos || l != m_prevlen) { bool ret = takeword(w, pos, btstart, btend); m_prevpos = pos; m_prevlen = w.length(); return ret; } LOGDEB2(("TextSplit::emitterm:dup: [%s] pos %d\n", w.c_str(), pos)); } return true; } // Check for an acronym/abbreviation ie I.B.M. This only works with // ascii (no non-ascii utf-8 acronym are possible) bool TextSplit::span_is_acronym(string *acronym) { bool acron = false; if (m_wordLen != m_span.length() && m_span.length() > 2 && m_span.length() <= 20) { acron = true; // Check odd chars are '.' for (unsigned int i = 1 ; i < m_span.length(); i += 2) { if (m_span[i] != '.') { acron = false; break; } } if (acron) { // Check that even chars are letters for (unsigned int i = 0 ; i < m_span.length(); i += 2) { int c = m_span[i]; if (!((c >= 'a' && c <= 'z')||(c >= 'A' && c <= 'Z'))) { acron = false; break; } } } } if (acron) { for (unsigned int i = 0; i < m_span.length(); i += 2) { *acronym += m_span[i]; } } return acron; } // Generate terms from span. Have to take into account the // flags: ONLYSPANS, NOSPANS, noNumbers bool TextSplit::words_from_span(int bp) { #if 0 cerr << "Span: [" << m_span << "] " << " w_i_s size: " << m_words_in_span.size() << " : "; for (unsigned int i = 0; i < m_words_in_span.size(); i++) { cerr << " [" << m_words_in_span[i].first << " " << m_words_in_span[i].second << "] "; } cerr << endl; #endif unsigned int spanwords = m_words_in_span.size(); // Not supposed to happen. if (spanwords == 0 || m_span.size() == 0) return true; int pos = m_spanpos; // Byte position of the span start int spboffs = bp - m_span.size(); for (unsigned int i = 0; i < ((m_flags&TXTS_ONLYSPANS) ? 1 : spanwords); i++, pos++) { int deb = m_words_in_span[i].first; for (unsigned int j = ((m_flags&TXTS_ONLYSPANS) ? spanwords-1 : i); j < ((m_flags&TXTS_NOSPANS) ? i+1 : spanwords); j++) { int fin = m_words_in_span[j].second; //cerr << "i " << i << " j " << j << " deb " << deb << // " fin " << fin << endl; if (fin - deb > int(m_span.size())) break; string word(m_span.substr(deb, fin-deb)); if (!emitterm(j != i+1, word, pos, spboffs+deb, spboffs+fin)) return false; } } return true; } /** * A method called at word boundaries (different places in * text_to_words()), to adjust the current state of the parser, and * possibly generate term(s). While inside a span (words linked by * glue characters), we just keep track of the word boundaries. Once * actual white-space is reached, we get called with spanerase set to * true, and we process the span, calling the emitterm() routine for * each generated term. * * The object flags can modify our behaviour, deciding if we only emit * single words (bill, recoll, org), only spans (bill@recoll.org), or * words and spans (bill@recoll.org, recoll.org, jf, recoll...) * * @return true if ok, false for error. Splitting should stop in this case. * @param spanerase Set if the current span is at its end. Process it. * @param bp The current BYTE position in the stream */ inline bool TextSplit::doemit(bool spanerase, int bp) { LOGDEB2(("TextSplit::doemit: sper %d bp %d spp %d spanwords %u wS %d wL %d " "inn %d span [%s]\n", spanerase, bp, m_spanpos, m_words_in_span.size(), m_wordStart, m_wordLen, m_inNumber, m_span.c_str())); if (m_wordLen) { // We have a current word. Remember it // Limit max span word count if (m_words_in_span.size() >= 6) { spanerase = true; } m_words_in_span.push_back(pair(m_wordStart, m_wordStart + m_wordLen)); m_wordpos++; m_wordLen = m_wordChars = 0; } if (spanerase) { // We encountered a span-terminating character. Produce terms. string acronym; if (span_is_acronym(&acronym)) { if (!emitterm(false, acronym, m_spanpos, bp - m_span.length(), bp)) return false; } // Maybe trim at end. These are chars that we might keep // inside a span, but not at the end. while (m_span.length() > 0) { switch (*(m_span.rbegin())) { case '.': case '-': case ',': case '@': case '_': case '\'': m_span.resize(m_span.length()-1); // Trim last word in span word array. Pop it if it // goes to zero. This is not supposed to happen // because it would probably signal a parser bug, but // makes sense anyway if (m_words_in_span.size() && m_words_in_span.back().second > m_span.size()) { m_words_in_span.back().second = m_span.size(); if (m_words_in_span.back().second <= m_words_in_span.back().first) { m_words_in_span.pop_back(); } } if (--bp < 0) bp = 0; break; default: goto breaktrimloop; } } breaktrimloop: if (m_words_in_span.size() && !words_from_span(bp)) { return false; } discardspan(); } else { m_wordStart = m_span.length(); } return true; } void TextSplit::discardspan() { m_words_in_span.clear(); m_span.erase(); m_spanpos = m_wordpos; m_wordStart = 0; m_wordLen = m_wordChars = 0; } static inline bool isalphanum(int what, unsigned int flgs) { return what == A_LLETTER || what == A_ULETTER || what == DIGIT || what == LETTER || ((flgs & TextSplit::TXTS_KEEPWILD) && what == WILD); } static inline bool isdigit(int what, unsigned int flgs) { return what == DIGIT || ((flgs & TextSplit::TXTS_KEEPWILD) && what == WILD); } #ifdef TEXTSPLIT_STATS #define STATS_INC_WORDCHARS ++m_wordChars #else #define STATS_INC_WORDCHARS #endif /** * Splitting a text into terms to be indexed. * We basically emit a word every time we see a separator, but some chars are * handled specially so that special cases, ie, c++ and jfd@recoll.com etc, * are handled properly, */ bool TextSplit::text_to_words(const string &in) { LOGDEB1(("TextSplit::text_to_words: docjk %d (%d) %s%s%s [%s]\n", o_processCJK, o_CJKNgramLen, m_flags & TXTS_NOSPANS ? " nospans" : "", m_flags & TXTS_ONLYSPANS ? " onlyspans" : "", m_flags & TXTS_KEEPWILD ? " keepwild" : "", in.substr(0,50).c_str())); if (in.empty()) return true; m_span.erase(); m_inNumber = false; m_wordStart = m_wordLen = m_wordChars = m_prevpos = m_prevlen = m_wordpos = m_spanpos = 0; bool pagepending = false; bool softhyphenpending = false; // Running count of non-alphanum chars. Reset when we see one; int nonalnumcnt = 0; Utf8Iter it(in); for (; !it.eof(); it++) { unsigned int c = *it; nonalnumcnt++; if (c == (unsigned int)-1) { LOGERR(("Textsplit: error occured while scanning UTF-8 string\n")); return false; } if (o_processCJK && UNICODE_IS_CJK(c)) { // CJK character hit. // Do like at EOF with the current non-cjk data. if (m_wordLen || m_span.length()) { if (!doemit(true, it.getBpos())) return false; } // Hand off situation to the cjk routine. if (!cjk_to_words(&it, &c)) { LOGERR(("Textsplit: scan error in cjk handler\n")); return false; } // Check for eof, else c contains the first non-cjk // character after the cjk sequence, just go on. if (it.eof()) break; } int cc = whatcc(c); switch (cc) { case SKIP: // Special-case soft-hyphen. To work, this depends on the // fact that only SKIP calls "continue" inside the // switch. All the others will do the softhyphenpending // reset after the switch if (c == 0xad) { softhyphenpending = true; } else { softhyphenpending = false; } // Skips the softhyphenpending reset continue; case DIGIT: nonalnumcnt = 0; if (m_wordLen == 0) m_inNumber = true; m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; case SPACE: nonalnumcnt = 0; SPACE: if (m_wordLen || m_span.length()) { if (!doemit(true, it.getBpos())) return false; m_inNumber = false; } if (pagepending) { pagepending = false; newpage(m_wordpos); } break; case WILD: if (m_flags & TXTS_KEEPWILD) goto NORMALCHAR; else goto SPACE; break; case '-': case '+': if (m_wordLen == 0) { // + or - don't start a term except if this looks like // it's going to be to be a number if (isdigit(whatcc(it[it.getCpos()+1]), m_flags)) { // -10 m_inNumber = true; m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } } else if (m_inNumber) { if ((m_span[m_span.length() - 1] == 'e' || m_span[m_span.length() - 1] == 'E')) { if (isdigit(whatcc(it[it.getCpos()+1]), m_flags)) { m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } } } else { if (cc == '+') { int nextc = it[it.getCpos()+1]; if (nextc == '+' || nextc == -1 || visiblewhite.find(nextc) != visiblewhite.end()) { // someword++[+...] ! m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } } else { // Treat '-' inside span as glue char if (!doemit(false, it.getBpos())) return false; m_inNumber = false; m_wordStart += it.appendchartostring(m_span); break; } } goto SPACE; break; case 0x2010: // Hyphen is replaced with ascii minus if (m_wordLen != 0) { // Treat '-' inside span as glue char if (!doemit(false, it.getBpos())) return false; m_inNumber = false; m_span += '-'; m_wordStart++; break; } goto SPACE; case '.': { // Need a little lookahead here. At worse this gets the end null int nextc = it[it.getCpos()+1]; int nextwhat = whatcc(nextc); if (m_inNumber) { if (!isdigit(nextwhat, m_flags)) goto SPACE; m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } else { // Found '.' while not in number // Only letters and digits make sense after if (!isalphanum(nextwhat, m_flags)) goto SPACE; // Keep an initial '.' for catching .net, and .34 (aka // 0.34) but this adds quite a few spurious terms ! if (m_span.length() == 0) { // Check for number like .1 if (isdigit(nextwhat, m_flags)) { m_inNumber = true; } m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } // '.' between words: span glue if (m_wordLen) { if (!doemit(false, it.getBpos())) return false; m_wordStart += it.appendchartostring(m_span); } } } break; case '@': case '_': case '\'': // If in word, potential span: o'brien, jf@dockes.org, // else just ignore if (m_wordLen) { if (!doemit(false, it.getBpos())) return false; m_inNumber = false; m_wordStart += it.appendchartostring(m_span); } break; case '#': // Keep it only at the beginning of a word (hashtag), if (m_wordLen == 0) { m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } // or at the end (special case for c# ...) if (m_wordLen > 0) { int w = whatcc(it[it.getCpos()+1]); if (w == SPACE || w == '\n' || w == '\r') { m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } } goto SPACE; break; case '\n': case '\r': if (m_span.length() && *m_span.rbegin() == '-') { // if '-' is the last char before end of line, we // strip it. We have no way to know if this is added // because of the line split or if it was part of an // actual compound word (would need a dictionary to // check). As soft-hyphen *should* be used if the '-' // is not part of the text, it is better to properly // process a real compound word, and produce wrong // output from wrong text. The word-emitting routine // will strip the trailing '-'. goto SPACE; } else if (softhyphenpending) { // Don't reset soft-hyphen continue; } else { // Normal case: EOL is white space goto SPACE; } break; case '\f': pagepending = true; goto SPACE; break; #ifdef RCL_SPLIT_CAMELCASE // Camelcase handling. // If we get uppercase ascii after lowercase ascii, emit word. // This emits "camel" when hitting the 'C' of camelCase // Not enabled by defaults as this makes phrase searches quite // confusing. // ie "MySQL manual" is matched by "MySQL manual" and // "my sql manual" but not "mysql manual" // A possibility would be to emit both my and sql at the // same position. All non-phrase searches would work, and // both "MySQL manual" and "mysql manual" phrases would // match too. "my sql manual" would not match, but this is // not an issue. case A_ULETTER: if (m_span.length() && charclasses[(unsigned char)m_span[m_span.length() - 1]] == A_LLETTER) { if (m_wordLen) { if (!doemit(false, it.getBpos())) return false; } } goto NORMALCHAR; // CamelCase handling. // If we get lowercase after uppercase and the current // word length is bigger than one, it means we had a // string of several upper-case letters: an // acronym (readHTML) or a single letter article (ALittleHelp). // Emit the uppercase word before proceeding case A_LLETTER: if (m_span.length() && charclasses[(unsigned char)m_span[m_span.length() - 1]] == A_ULETTER && m_wordLen > 1) { // Multiple upper-case letters. Single letter word // or acronym which we want to emit now m_wordLen--; if (!doemit(false, it.getBpos())) return false; // m_wordstart could be 0 here if the span was reset // for excessive length if (m_wordStart) m_wordStart--; m_wordLen++; } goto NORMALCHAR; #endif /* CAMELCASE */ default: NORMALCHAR: nonalnumcnt = 0; if (m_inNumber && c != 'e' && c != 'E') { m_inNumber = false; } m_wordLen += it.appendchartostring(m_span); STATS_INC_WORDCHARS; break; } softhyphenpending = false; } if (m_wordLen || m_span.length()) { if (!doemit(true, it.getBpos())) return false; } return true; } // Using an utf8iter pointer just to avoid needing its definition in // textsplit.h // // We output ngrams for exemple for char input a b c and ngramlen== 2, // we generate: a ab b bc c as words // // This is very different from the normal behaviour, so we don't use // the doemit() and emitterm() routines // // The routine is sort of a mess and goes to show that we'd probably // be better off converting the whole buffer to utf32 on entry... bool TextSplit::cjk_to_words(Utf8Iter *itp, unsigned int *cp) { LOGDEB1(("cjk_to_words: m_wordpos %d\n", m_wordpos)); Utf8Iter &it = *itp; // We use an offset buffer to remember the starts of the utf-8 // characters which we still need to use. assert(o_CJKNgramLen < o_CJKMaxNgramLen); unsigned int boffs[o_CJKMaxNgramLen+1]; // Current number of valid offsets; unsigned int nchars = 0; unsigned int c = 0; for (; !it.eof(); it++) { c = *it; if (!UNICODE_IS_CJK(c)) { // Return to normal handler break; } if (whatcc(c) == SPACE) { // Flush the ngram buffer and go on nchars = 0; continue; } if (nchars == o_CJKNgramLen) { // Offset buffer full, shift it. Might be more efficient // to have a circular one, but things are complicated // enough already... for (unsigned int i = 0; i < nchars-1; i++) { boffs[i] = boffs[i+1]; } } else { nchars++; } // Take note of byte offset for this character. boffs[nchars-1] = it.getBpos(); // Output all new ngrams: they begin at each existing position // and end after the new character. onlyspans->only output // maximum words, nospans=> single chars if (!(m_flags & TXTS_ONLYSPANS) || nchars == o_CJKNgramLen) { unsigned int btend = it.getBpos() + it.getBlen(); unsigned int loopbeg = (m_flags & TXTS_NOSPANS) ? nchars-1 : 0; unsigned int loopend = (m_flags & TXTS_ONLYSPANS) ? 1 : nchars; for (unsigned int i = loopbeg; i < loopend; i++) { if (!takeword(it.buffer().substr(boffs[i], btend-boffs[i]), m_wordpos - (nchars-i-1), boffs[i], btend)) { return false; } } if ((m_flags & TXTS_ONLYSPANS)) { // Only spans: don't overlap: flush buffer nchars = 0; } } // Increase word position by one, other words are at an // existing position. This could be subject to discussion... m_wordpos++; } // If onlyspans is set, there may be things to flush in the buffer // first if ((m_flags & TXTS_ONLYSPANS) && nchars > 0 && nchars != o_CJKNgramLen) { unsigned int btend = it.getBpos(); // Current char is out if (!takeword(it.buffer().substr(boffs[0], btend-boffs[0]), m_wordpos - nchars, boffs[0], btend)) { return false; } } m_span.erase(); m_inNumber = false; m_wordStart = m_wordLen = m_wordChars = m_prevpos = m_prevlen = 0; m_spanpos = m_wordpos; *cp = c; return true; } // Specialization for countWords class TextSplitCW : public TextSplit { public: int wcnt; TextSplitCW(Flags flags) : TextSplit(flags), wcnt(0) {} bool takeword(const string &, int, int, int) { wcnt++; return true; } }; int TextSplit::countWords(const string& s, TextSplit::Flags flgs) { TextSplitCW splitter(flgs); splitter.text_to_words(s); return splitter.wcnt; } bool TextSplit::hasVisibleWhite(const string &in) { Utf8Iter it(in); for (; !it.eof(); it++) { unsigned int c = (unsigned char)*it; LOGDEB3(("TextSplit::hasVisibleWhite: testing 0x%04x\n", c)); if (c == (unsigned int)-1) { LOGERR(("hasVisibleWhite: error while scanning UTF-8 string\n")); return false; } if (visiblewhite.find(c) != visiblewhite.end()) return true; } return false; } template bool u8stringToStrings(const string &s, T &tokens) { Utf8Iter it(s); string current; tokens.clear(); enum states {SPACE, TOKEN, INQUOTE, ESCAPE}; states state = SPACE; for (; !it.eof(); it++) { unsigned int c = *it; if (visiblewhite.find(c) != visiblewhite.end()) c = ' '; LOGDEB3(("TextSplit::stringToStrings: 0x%04x\n", c)); if (c == (unsigned int)-1) { LOGERR(("TextSplit::stringToStrings: error while " "scanning UTF-8 string\n")); return false; } switch (c) { case '"': switch(state) { case SPACE: state = INQUOTE; continue; case TOKEN: goto push_char; case ESCAPE: state = INQUOTE; goto push_char; case INQUOTE: tokens.push_back(current);current.clear(); state = SPACE; continue; } break; case '\\': switch(state) { case SPACE: case TOKEN: state=TOKEN; goto push_char; case INQUOTE: state = ESCAPE; continue; case ESCAPE: state = INQUOTE; goto push_char; } break; case ' ': case '\t': case '\n': case '\r': switch(state) { case SPACE: continue; case TOKEN: tokens.push_back(current); current.clear(); state = SPACE; continue; case INQUOTE: case ESCAPE: goto push_char; } break; default: switch(state) { case ESCAPE: state = INQUOTE; break; case SPACE: state = TOKEN; break; case TOKEN: case INQUOTE: break; } push_char: it.appendchartostring(current); } } // End of string. Process residue, and possible error (unfinished quote) switch(state) { case SPACE: break; case TOKEN: tokens.push_back(current); break; case INQUOTE: case ESCAPE: return false; } return true; } bool TextSplit::stringToStrings(const string &s, vector &tokens) { return u8stringToStrings >(s, tokens); } #else // TEST driver -> #include #include #include #include #include #include #include #include #include "textsplit.h" #include "readfile.h" #include "debuglog.h" #include "transcode.h" #include "unacpp.h" #include "termproc.h" using namespace std; class myTermProc : public Rcl::TermProc { int first; bool nooutput; public: myTermProc() : TermProc(0), first(1), nooutput(false) {} void setNoOut(bool val) {nooutput = val;} virtual bool takeword(const string &term, int pos, int bs, int be) { if (nooutput) return true; FILE *fp = stdout; if (first) { fprintf(fp, "%3s %-20s %4s %4s\n", "pos", "Term", "bs", "be"); first = 0; } fprintf(fp, "%3d %-20s %4d %4d\n", pos, term.c_str(), bs, be); return true; } }; #define OPT_s 0x1 #define OPT_w 0x2 #define OPT_q 0x4 #define OPT_c 0x8 #define OPT_k 0x10 #define OPT_C 0x20 #define OPT_n 0x40 #define OPT_S 0x80 #define OPT_u 0x100 #define OPT_p 0x200 bool dosplit(const string& data, TextSplit::Flags flags, int op_flags) { myTermProc printproc; Rcl::TermProc *nxt = &printproc; // Rcl::TermProcCommongrams commonproc(nxt, stoplist); // if (op_flags & OPT_S) // nxt = &commonproc; Rcl::TermProcPrep preproc(nxt); if (op_flags & OPT_u) nxt = &preproc; Rcl::TextSplitP splitter(nxt, flags); if (op_flags & OPT_q) printproc.setNoOut(true); splitter.text_to_words(data); #ifdef TEXTSPLIT_STATS TextSplit::Stats::Values v = splitter.getStats(); cout << "Average length: " << v.avglen << " Standard deviation: " << v.sigma << " Coef of variation " << v.sigma / v.avglen << endl; #endif return true; } static const char *teststrings[] = { "Un bout de texte \nnormal. 2eme phrase.3eme;quatrieme.\n", "\"Jean-Francois Dockes\" \n", "n@d @net .net net@ t@v@c c# c++ o'brien 'o'brien'", "_network_ some_span", "data123\n", "134 +134 -14 0.1 .1 2. -1.5 +1.5 1,2 1.54e10 1,2e30 .1e10 1.e-8\n", "@^#$(#$(*)\n", "192.168.4.1 one\n\rtwo\r", "[olala][ululu] (valeur) (23)\n", "utf-8 ucs-4© \\nodef\n", "A b C 2 . +", "','this\n", " ,able,test-domain", " -wl,--export-dynamic", " ~/.xsession-errors", "this_very_long_span_this_very_long_span_this_very_long_span", "soft\xc2\xadhyphen", "soft\xc2\xad\nhyphen", "soft\xc2\xad\n\rhyphen", "real\xe2\x80\x90hyphen", "real\xe2\x80\x90\nhyphen", "hyphen-\nminus", }; const int teststrings_cnt = sizeof(teststrings)/sizeof(char *); static string teststring1 = " nouvel-an "; static string thisprog; static string usage = " textsplit [opts] [filename]\n" " -q : no output\n" " -s : only spans\n" " -w : only words\n" " -n : no numbers\n" " -k : preserve wildcards (?*)\n" " -c : just count words\n" " -u : use unac\n" " -C [charset] : input charset\n" " -S [stopfile] : stopfile to use for commongrams\n" " if filename is 'stdin', will read stdin for data (end with ^D)\n\n" " textplit -p somephrase : display results from stringToStrings()\n" " \n" ; static void Usage(void) { cerr << thisprog << ": usage:\n" << usage; exit(1); } static int op_flags; int main(int argc, char **argv) { string charset, stopfile; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'c': op_flags |= OPT_c; break; case 'C': op_flags |= OPT_C; if (argc < 2) Usage(); charset = *(++argv); argc--; goto b1; case 'k': op_flags |= OPT_k; break; case 'n': op_flags |= OPT_n; break; case 'p': op_flags |= OPT_p; break; case 'q': op_flags |= OPT_q; break; case 's': op_flags |= OPT_s; break; case 'S': op_flags |= OPT_S; if (argc < 2) Usage(); stopfile = *(++argv); argc--; goto b1; case 'u': op_flags |= OPT_u; break; case 'w': op_flags |= OPT_w; break; default: Usage(); break; } b1: argc--; argv++; } DebugLog::getdbl()->setloglevel(DEBDEB1); DebugLog::setfilename("stderr"); TextSplit::Flags flags = TextSplit::TXTS_NONE; if (op_flags&OPT_s) flags = TextSplit::TXTS_ONLYSPANS; else if (op_flags&OPT_w) flags = TextSplit::TXTS_NOSPANS; if (op_flags & OPT_k) flags = (TextSplit::Flags)(flags | TextSplit::TXTS_KEEPWILD); if (op_flags & OPT_n) TextSplit::noNumbers(); Rcl::StopList stoplist; if (op_flags & OPT_S) { if (!stoplist.setFile(stopfile)) { cerr << "Can't read stopfile: " << stopfile << endl; exit(1); } } string odata, reason; if (argc == 1) { const char *filename = *argv++; argc--; if (op_flags& OPT_p) { vector tokens; TextSplit::stringToStrings(filename, tokens); for (vector::const_iterator it = tokens.begin(); it != tokens.end(); it++) { cout << "[" << *it << "] "; } cout << endl; exit(0); } if (!strcmp(filename, "stdin")) { char buf[1024]; int nread; while ((nread = read(0, buf, 1024)) > 0) { odata.append(buf, nread); } } else if (!file_to_string(filename, odata, &reason)) { cerr << "Failed: file_to_string(" << filename << ") failed: " << reason << endl; exit(1); } } else { if (op_flags & OPT_p) Usage(); for (int i = 0; i < teststrings_cnt; i++) { cout << endl << teststrings[i] << endl; dosplit(teststrings[i], flags, op_flags); } exit(0); } string& data = odata; string ndata; if ((op_flags & OPT_C)) { if (!transcode(odata, ndata, charset, "UTF-8")) { cerr << "Failed: transcode error" << endl; exit(1); } else { data = ndata; } } if (op_flags & OPT_c) { int n = TextSplit::countWords(data, flags); cout << n << " words" << endl; } else { dosplit(data, flags, op_flags); } } #endif // TEST recoll-1.21.5/common/unacpp.h0000644000175000017500000000310512602163537015315 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _UNACPP_H_INCLUDED_ #define _UNACPP_H_INCLUDED_ #include #ifndef NO_NAMESPACES using std::string; #endif /* NO_NAMESPACES */ // A small stringified wrapper for unac.c enum UnacOp {UNACOP_UNAC = 1, UNACOP_FOLD = 2, UNACOP_UNACFOLD = 3}; extern bool unacmaybefold(const string& in, string& out, const char *encoding, UnacOp what); // Utility function to determine if string begins with capital extern bool unaciscapital(const string& in); // Utility function to determine if string has upper-case anywhere extern bool unachasuppercase(const string& in); // Utility function to determine if any character is accented. This // approprialey ignores the characters from unac_except_chars which // are really separate letters extern bool unachasaccents(const string& in); #endif /* _UNACPP_H_INCLUDED_ */ recoll-1.21.5/common/beaglequeuecache.cpp0000644000175000017500000000555312602163571017641 0ustar dockesdockes/* Copyright (C) 2011 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include "cstr.h" #include "beaglequeuecache.h" #include "circache.h" #include "debuglog.h" #include "rclconfig.h" #include "pathut.h" #include "rcldoc.h" const string cstr_bgc_mimetype("mimetype"); BeagleQueueCache::BeagleQueueCache(RclConfig *cnf) { string ccdir; cnf->getConfParam("webcachedir", ccdir); if (ccdir.empty()) ccdir = "webcache"; ccdir = path_tildexpand(ccdir); // If not an absolute path, compute relative to config dir if (ccdir.at(0) != '/') ccdir = path_cat(cnf->getConfDir(), ccdir); int maxmbs = 40; cnf->getConfParam("webcachemaxmbs", &maxmbs); if ((m_cache = new CirCache(ccdir)) == 0) { LOGERR(("BeagleQueueCache: cant create CirCache object\n")); return; } if (!m_cache->create(off_t(maxmbs)*1000*1024, CirCache::CC_CRUNIQUE)) { LOGERR(("BeagleQueueCache: cache file creation failed: %s\n", m_cache->getReason().c_str())); delete m_cache; m_cache = 0; return; } } BeagleQueueCache::~BeagleQueueCache() { delete m_cache; } // Read document from cache. Return the metadata as an Rcl::Doc // @param htt Beagle Hit Type bool BeagleQueueCache::getFromCache(const string& udi, Rcl::Doc &dotdoc, string& data, string *htt) { string dict; if (m_cache == 0) { LOGERR(("BeagleQueueCache::getFromCache: cache is null\n")); return false; } if (!m_cache->get(udi, dict, data)) { LOGDEB(("BeagleQueueCache::getFromCache: get failed\n")); return false; } ConfSimple cf(dict, 1); if (htt) cf.get(Rcl::Doc::keybght, *htt, cstr_null); // Build a doc from saved metadata cf.get(cstr_url, dotdoc.url, cstr_null); cf.get(cstr_bgc_mimetype, dotdoc.mimetype, cstr_null); cf.get(cstr_fmtime, dotdoc.fmtime, cstr_null); cf.get(cstr_fbytes, dotdoc.pcbytes, cstr_null); dotdoc.sig.clear(); vector names = cf.getNames(cstr_null); for (vector::const_iterator it = names.begin(); it != names.end(); it++) { cf.get(*it, dotdoc.meta[*it], cstr_null); } dotdoc.meta[Rcl::Doc::keyudi] = udi; return true; } recoll-1.21.5/common/rclconfig.h0000644000175000017500000003506312644666435016020 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RCLCONFIG_H_INCLUDED_ #define _RCLCONFIG_H_INCLUDED_ #include #include #include #include #include #include "unordered_defs.h" using std::string; using std::vector; using std::pair; using std::set; using std::map; #include "conftree.h" #include "smallut.h" class RclConfig; // A small class used for parameters that need to be computed from the // config string, and which can change with the keydir. Minimize work // by using the keydirgen and a saved string to avoid unneeded // recomputations class ParamStale { public: RclConfig *parent; ConfNull *conffile; string paramname; bool active; // Check at init if config defines name at all int savedkeydirgen; string savedvalue; ParamStale(RclConfig *rconf, const string& nm); void init(ConfNull *cnf); bool needrecompute(); }; // Hold the description for an external metadata-gathering command struct MDReaper { string fieldname; vector cmdv; }; // Data associated to a indexed field name: struct FieldTraits { string pfx; // indexing prefix, int wdfinc; // Index time term frequency increment (default 1) double boost; // Query time boost (default 1.0) bool pfxonly; // Suppress prefix-less indexing FieldTraits() : wdfinc(1), boost(1.0), pfxonly(false) {} }; class RclConfig { public: // Constructor: we normally look for a configuration file, except // if this was specified on the command line and passed through // argcnf RclConfig(const string *argcnf = 0); RclConfig(const RclConfig &r) : m_oldstpsuffstate(this, "recoll_noindex"), m_stpsuffstate(this, "noContentSuffixes"), m_skpnstate(this, "skippedNames"), m_rmtstate(this, "indexedmimetypes"), m_xmtstate(this, "excludedmimetypes"), m_mdrstate(this, "metadatacmds") { initFrom(r); } ~RclConfig() { freeAll(); } // Return a writable clone of the main config. This belongs to the // caller (must delete it when done) ConfNull *cloneMainConfig(); /** (re)Read recoll.conf */ bool updateMainConfig(); bool ok() const {return m_ok;} const string &getReason() const {return m_reason;} /** Return the directory where this configuration is stored. * This was possibly silently created by the rclconfig * constructor it it is the default one (~/.recoll) and it did * not exist yet. */ string getConfDir() const {return m_confdir;} /** Check if the config files were modified since we read them */ bool sourceChanged() const; /** Returns true if this is ~/.recoll */ bool isDefaultConfig() const; /** Get the local value for /usr/local/share/recoll/ */ const string& getDatadir() const {return m_datadir;} /** Set current directory reference, and fetch automatic parameters. */ void setKeyDir(const string &dir); string getKeyDir() const {return m_keydir;} /** Get generic configuration parameter according to current keydir */ bool getConfParam(const string &name, string &value, bool shallow=false) const { if (m_conf == 0) return false; return m_conf->get(name, value, m_keydir, shallow); } /** Variant with autoconversion to int */ bool getConfParam(const string &name, int *value, bool shallow=false) const; /** Variant with autoconversion to bool */ bool getConfParam(const string &name, bool *value, bool shallow=false) const; /** Variant with conversion to vector * (stringToStrings). Can fail if the string is malformed. */ bool getConfParam(const string &name, vector *value, bool shallow=false) const; /** Variant with conversion to vector */ bool getConfParam(const string &name, vector *value, bool shallow=false) const; enum ThrStage {ThrIntern=0, ThrSplit=1, ThrDbWrite=2}; pair getThrConf(ThrStage who) const; /** * Get list of config names under current sk, with possible * wildcard filtering */ vector getConfNames(const char *pattern = 0) const { return m_conf->getNames(m_keydir, pattern); } /** Check if name exists anywhere in config */ bool hasNameAnywhere(const string& nm) const { return m_conf? m_conf->hasNameAnywhere(nm) : false; } /** Get default charset for current keydir (was set during setKeydir) * filenames are handled differently */ const string &getDefCharset(bool filename = false) const; /** Get list of top directories. This is needed from a number of places * and needs some cleaning-up code. An empty list is always an error, no * need for other status */ vector getTopdirs() const; /** Get database directory */ string getDbDir() const; /** Get stoplist file name */ string getStopfile() const; /** Get indexing pid file name */ string getPidfile() const; /** Get indexing status file name */ string getIdxStatusFile() const; /** Do path translation according to the ptrans table */ void urlrewrite(const string& dbdir, string& url) const; ConfSimple *getPTrans() { return m_ptrans; } /** Get Web Queue directory name */ string getWebQueueDir() const; /** Get list of skipped file names for current keydir */ vector& getSkippedNames(); /** Get list of skipped paths patterns. Doesn't depend on the keydir */ vector getSkippedPaths() const; /** Get list of skipped paths patterns, daemon version (may add some) Doesn't depend on the keydir */ vector getDaemSkippedPaths() const; /** * mimemap: Check if file name should be ignored because of suffix * * The list of ignored suffixes is initialized on first call, and * not changed for subsequent setKeydirs. */ bool inStopSuffixes(const string& fn); /** * Check in mimeconf if input mime type is a compressed one, and * return command to uncompress if it is. * * The returned command has substitutable places for input file name * and temp dir name, and will return output name */ bool getUncompressor(const string &mtpe, vector& cmd) const; /** mimemap: compute mimetype */ string getMimeTypeFromSuffix(const string &suffix) const; /** mimemap: get a list of all indexable mime types defined */ vector getAllMimeTypes() const; /** mimemap: Get appropriate suffix for mime type. This is inefficient */ string getSuffixFromMimeType(const string &mt) const; /** mimeconf: get input filter for mimetype */ string getMimeHandlerDef(const string &mimetype, bool filtertypes=false); /** For lines like: "name = some value; attr1 = value1; attr2 = val2" * Separate the value and store the attributes in a ConfSimple * @param whole the raw value. No way to escape a semi-colon in there. */ static bool valueSplitAttributes(const string& whole, string& value, ConfSimple& attrs) ; /** Return icon path for mime type and tag */ string getMimeIconPath(const string &mt, const string& apptag) const; /** mimeconf: get list of file categories */ bool getMimeCategories(vector&) const; /** mimeconf: is parameter one of the categories ? */ bool isMimeCategory(string&) const; /** mimeconf: get list of mime types for category */ bool getMimeCatTypes(const string& cat, vector&) const; /** mimeconf: get list of gui filters (doc cats by default */ bool getGuiFilterNames(vector&) const; /** mimeconf: get query lang frag for named filter */ bool getGuiFilter(const string& filtername, string& frag) const; /** fields: get field prefix from field name. Use additional query aliases if isquery is set */ bool getFieldTraits(const string& fldname, const FieldTraits **, bool isquery = false) const; const set& getStoredFields() const {return m_storedFields;} set getIndexedFields() const; /** Get canonic name for possible alias */ string fieldCanon(const string& fld) const; /** Get canonic name for possible alias, including query-only aliases */ string fieldQCanon(const string& fld) const; /** Get xattr name to field names translations */ const map& getXattrToField() const {return m_xattrtofld;} /** Get value of a parameter inside the "fields" file. Only some filters * use this (ie: mh_mail). The information specific to a given filter * is typically stored in a separate section(ie: [mail]) */ vector getFieldSectNames(const string &sk, const char* = 0) const; bool getFieldConfParam(const string &name, const string &sk, string &value) const; /** mimeview: get/set external viewer exec string(s) for mimetype(s) */ string getMimeViewerDef(const string &mimetype, const string& apptag, bool useall) const; string getMimeViewerAllEx() const; bool setMimeViewerAllEx(const string& allex); bool getMimeViewerDefs(vector >&) const; bool setMimeViewerDef(const string& mimetype, const string& cmd); /** Check if mime type is designated as needing no uncompress before view * (if a file of this type is found compressed). Default is true, * exceptions are found in the nouncompforviewmts mimeview list */ bool mimeViewerNeedsUncomp(const string &mimetype) const; /** Retrieve extra metadata-gathering commands */ const vector& getMDReapers(); /** Store/retrieve missing helpers description string */ bool getMissingHelperDesc(string&) const; void storeMissingHelperDesc(const string &s); /** Find exec file for external filter. * * If the input is an absolute path, we just return it. Else We * look in $RECOLL_FILTERSDIR, "filtersdir" from the config file, * $RECOLL_CONFDIR/. If nothing is found, we return the input with * the assumption that this will be used with a PATH-searching * exec. * * @param cmd is normally the command name from the command string * returned by getMimeHandlerDef(), but this could be used for any * command. If cmd begins with a /, we return cmd without * further processing. */ string findFilter(const string& cmd) const; /** Thread config init is not done automatically because not all programs need it and it uses debuglog so that it's better to call it after primary init */ void initThrConf(); const string& getOrigCwd() { return o_origcwd; } RclConfig& operator=(const RclConfig &r) { if (this != &r) { freeAll(); initFrom(r); } return *this; } friend class ParamStale; private: int m_ok; string m_reason; // Explanation for bad state string m_confdir; // User directory where the customized files are stored string m_datadir; // Example: /usr/local/share/recoll string m_keydir; // Current directory used for parameter fetches. int m_keydirgen; // To help with knowing when to update computed data. vector m_cdirs; // directory stack for the confstacks ConfStack *m_conf; // Parsed configuration files ConfStack *mimemap; // The files don't change with keydir, ConfStack *mimeconf; // but their content may depend on it. ConfStack *mimeview; // ConfStack *m_fields; ConfSimple *m_ptrans; // Paths translations map m_fldtotraits; // Field to field params map m_aliastocanon; map m_aliastoqcanon; set m_storedFields; map m_xattrtofld; void *m_stopsuffixes; unsigned int m_maxsufflen; ParamStale m_oldstpsuffstate; // Values from user mimemap, now obsolete ParamStale m_stpsuffstate; ParamStale m_skpnstate; vector m_skpnlist; // Original current working directory. Set once at init before we do any // chdir'ing and used for converting user args to absolute paths. static string o_origcwd; // Parameters auto-fetched on setkeydir string m_defcharset; static string o_localecharset; // Limiting set of mime types to be processed. Normally empty. ParamStale m_rmtstate; STD_UNORDERED_SET m_restrictMTypes; // Exclusion set of mime types. Normally empty ParamStale m_xmtstate; STD_UNORDERED_SET m_excludeMTypes; vector > m_thrConf; // Same idea with the metadata-gathering external commands, // (e.g. used to reap tagging info: "tmsu tags %f") ParamStale m_mdrstate; vector m_mdreapers; /** Create initial user configuration */ bool initUserConfig(); /** Init all ParamStale members */ void initParamStale(ConfNull *cnf, ConfNull *mimemap); /** Copy from other */ void initFrom(const RclConfig& r); /** Init pointers to 0 */ void zeroMe(); /** Free data then zero pointers */ void freeAll(); bool readFieldsConfig(const string& errloc); }; // This global variable defines if we are running with an index // stripped of accents and case or a raw one. Ideally, it should be // constant, but it needs to be initialized from the configuration, so // there is no way to do this. It never changes after initialization // of course. Changing the value on a given index imposes a // reset. When using multiple indexes, all must have the same value extern bool o_index_stripchars; // This global variable defines if we use mtime instead of ctime for // up-to-date tests. This is mostly incompatible with xattr indexing, // in addition to other issues. See recoll.conf comments. extern bool o_uptodate_test_use_mtime; #endif /* _RCLCONFIG_H_INCLUDED_ */ recoll-1.21.5/common/rclversion.h.in0000644000175000017500000000006312602163537016622 0ustar dockesdockesstatic const char *rclversionstr = "@RCLVERSION@"; recoll-1.21.5/common/textsplit.h0000644000175000017500000001546612602163571016102 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _TEXTSPLIT_H_INCLUDED_ #define _TEXTSPLIT_H_INCLUDED_ #include #include #include using std::string; using std::vector; using std::pair; class Utf8Iter; /** * Split text into words. * See comments at top of .cpp for more explanations. * This uses a callback function. It could be done with an iterator instead, * but 'ts much simpler this way... */ class TextSplit { public: // Should we activate special processing of Chinese characters ? This // needs a little more cpu, so it can be turned off globally. This is set // by rclconfig, changing it means reindexing static bool o_processCJK; static unsigned int o_CJKNgramLen; static const unsigned int o_CJKMaxNgramLen = 5; static void cjkProcessing(bool onoff, unsigned int ngramlen = 2) { o_processCJK = onoff; o_CJKNgramLen = ngramlen <= o_CJKMaxNgramLen ? ngramlen : o_CJKMaxNgramLen; } // Are we indexing numbers ? Set by rclconfig. Change needs reindex static bool o_noNumbers; static void noNumbers() { o_noNumbers = true; } enum Flags { // Default: will return spans and words (a_b, a, b) TXTS_NONE = 0, // Only return maximum spans (a@b.com, not a, b, or com) TXTS_ONLYSPANS = 1, // Special: Only return atomic words (a, b, com). This is not // used for indexing, but for position computation during // abstract generation, TXTS_NOSPANS = 2, // Handle wildcards as letters. This is used with ONLYSPANS // for parsing a user query (never alone). TXTS_KEEPWILD = 4 }; TextSplit(Flags flags = Flags(TXTS_NONE)) : m_flags(flags), m_maxWordLength(40), m_prevpos(-1) { } virtual ~TextSplit() {} /** Split text, emit words and positions. */ virtual bool text_to_words(const string &in); /** Process one output word: to be implemented by the actual user class */ virtual bool takeword(const string& term, int pos, // term pos int bts, // byte offset of first char in term int bte // byte offset of first char after term ) = 0; /** Called when we encounter formfeed \f 0x0c. Override to use the event. * Mostly or exclusively used with pdftoxx output. Other filters mostly * just don't know about pages. */ virtual void newpage(int /*pos*/) { } // Static utility functions: /** Count words in string, as the splitter would generate them */ static int countWords(const string &in, Flags flgs = TXTS_ONLYSPANS); /** Check if this is visibly not a single block of text */ static bool hasVisibleWhite(const string &in); /** Split text span into strings, at white space, allowing for substrings * quoted with " . Escaping with \ works as usual inside the quoted areas. * This has to be kept separate from smallut.cpp's stringsToStrings, which * basically works only if whitespace is ascii, and which processes * non-utf-8 input (iso-8859 config files work ok). This hopefully * handles all Unicode whitespace, but needs correct utf-8 input */ static bool stringToStrings(const string &s, vector &tokens); /** Is char CJK ? */ static bool isCJK(int c); /** Statistics about word length (average and dispersion) can * detect bad data like undecoded base64 or other mis-identified * pieces of data taken as text. In practise, this keeps some junk out * of the index, but does not decrease the index size much, and is * probably not worth the trouble in general. Code kept because it * probably can be useful in special cases. Base64 data does has * word separators in it (+/) and is characterised by high average * word length (>10, often close to 20) and high word length * dispersion (avg/sigma > 0.8). In my tests, most natural * language text has average word lengths around 5-8 and avg/sigma * < 0.7 */ #ifdef TEXTSPLIT_STATS class Stats { public: Stats() { reset(); } void reset() { count = 0; totlen = 0; sigma_acc = 0; } void newsamp(unsigned int len) { ++count; totlen += len; double avglen = double(totlen) / double(count); sigma_acc += (avglen - len) * (avglen - len); } struct Values { int count; double avglen; double sigma; }; Values get() { Values v; v.count = count; v.avglen = double(totlen) / double(count); v.sigma = sqrt(sigma_acc / count); return v; } private: int count; int totlen; double sigma_acc; }; Stats::Values getStats() { return m_stats.get(); } void resetStats() { m_stats.reset(); } #endif // TEXTSPLIT_STATS private: Flags m_flags; int m_maxWordLength; // Current span. Might be jf.dockes@wanadoo.f string m_span; vector > m_words_in_span; // Current word: no punctuation at all in there. Byte offset // relative to the current span and byte length int m_wordStart; unsigned int m_wordLen; // Currently inside number bool m_inNumber; // Term position of current word and span int m_wordpos; int m_spanpos; // It may happen that our cleanup would result in emitting the // same term twice. We try to avoid this int m_prevpos; unsigned int m_prevlen; #ifdef TEXTSPLIT_STATS // Stats counters. These are processed in TextSplit rather than by a // TermProc so that we can take very long words (not emitted) into // account. Stats m_stats; #endif // Word length in characters. Declared but not updated if !TEXTSPLIT_STATS unsigned int m_wordChars; // This processes cjk text: bool cjk_to_words(Utf8Iter *it, unsigned int *cp); bool emitterm(bool isspan, string &term, int pos, int bs, int be); bool doemit(bool spanerase, int bp); void discardspan(); bool span_is_acronym(std::string *acronym); bool words_from_span(int bp); }; #endif /* _TEXTSPLIT_H_INCLUDED_ */ recoll-1.21.5/common/unordered_defs.h0000644000175000017500000000101412602163571017012 0ustar dockesdockes #include "autoconfig.h" #ifdef HAVE_CXX0X_UNORDERED # include # include # define STD_UNORDERED_MAP std::unordered_map # define STD_UNORDERED_SET std::unordered_set #elif defined(HAVE_TR1_UNORDERED) # include # include # define STD_UNORDERED_MAP std::tr1::unordered_map # define STD_UNORDERED_SET std::tr1::unordered_set #else # include # include # define STD_UNORDERED_MAP std::map # define STD_UNORDERED_SET std::set #endif recoll-1.21.5/common/unacpp.cpp0000644000175000017500000001341412602163537015654 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TEST_UNACPP #include #include #include #include #include "unacpp.h" #include "unac.h" #include "debuglog.h" #include "utf8iter.h" bool unacmaybefold(const string &in, string &out, const char *encoding, UnacOp what) { char *cout = 0; size_t out_len; int status = -1; switch (what) { case UNACOP_UNAC: status = unac_string(encoding, in.c_str(), in.length(), &cout, &out_len); break; case UNACOP_UNACFOLD: status = unacfold_string(encoding, in.c_str(), in.length(), &cout, &out_len); break; case UNACOP_FOLD: status = fold_string(encoding, in.c_str(), in.length(), &cout, &out_len); break; } if (status < 0) { if (cout) free(cout); char cerrno[20]; sprintf(cerrno, "%d", errno); out = string("unac_string failed, errno : ") + cerrno; return false; } out.assign(cout, out_len); if (cout) free(cout); return true; } // Functions to determine upper-case or accented status could be implemented // hugely more efficiently inside the unac c code, but there only used for // testing user-entered terms, so we don't really care. bool unaciscapital(const string& in) { LOGDEB2(("unaciscapital: [%s]\n", in.c_str())); if (in.empty()) return false; Utf8Iter it(in); string shorter; it.appendchartostring(shorter); string lower; if (!unacmaybefold(shorter, lower, "UTF-8", UNACOP_FOLD)) { LOGINFO(("unaciscapital: unac/fold failed for [%s]\n", in.c_str())); return false; } Utf8Iter it1(lower); if (*it != *it1) return true; else return false; } bool unachasuppercase(const string& in) { LOGDEB2(("unachasuppercase: [%s]\n", in.c_str())); if (in.empty()) return false; string lower; if (!unacmaybefold(in, lower, "UTF-8", UNACOP_FOLD)) { LOGINFO(("unachasuppercase: unac/fold failed for [%s]\n", in.c_str())); return false; } if (lower != in) return true; else return false; } bool unachasaccents(const string& in) { LOGDEB2(("unachasaccents: [%s]\n", in.c_str())); if (in.empty()) return false; string noac; if (!unacmaybefold(in, noac, "UTF-8", UNACOP_UNAC)) { LOGINFO(("unachasaccents: unac/unac failed for [%s]\n", in.c_str())); return false; } if (noac != in) return true; else return false; } #else // not testing #include #include #include #include #include #include #include using namespace std; #include "unacpp.h" #include "readfile.h" #include "rclinit.h" static char *thisprog; static char usage [] = "\n" "[-c|-C] \n" " Default : unaccent\n" " -c : unaccent and casefold\n" " -C : casefold only\n" "-t test string as capitalized, upper-case anywhere, accents\n" " the parameter is supposedly utf-8 so this can only work in an utf-8\n" " locale\n" "\n"; ; static void Usage(void) { fprintf(stderr, "%s: usage: %s\n", thisprog, usage); exit(1); } static int op_flags; #define OPT_c 0x2 #define OPT_C 0x4 #define OPT_t 0x8 int main(int argc, char **argv) { UnacOp op = UNACOP_UNAC; thisprog = argv[0]; argc--; argv++; while (argc > 0 && **argv == '-') { (*argv)++; if (!(**argv)) /* Cas du "adb - core" */ Usage(); while (**argv) switch (*(*argv)++) { case 'c': op_flags |= OPT_c; break; case 'C': op_flags |= OPT_C; break; case 't': op_flags |= OPT_t; break; default: Usage(); break; } argc--; argv++; } if (op_flags & OPT_t) { if (argc != 1) Usage(); string in = *argv++;argc--; bool capital, upper, accent; capital = unaciscapital(in); upper = unachasuppercase(in); accent = unachasaccents(in); cout << "[" << in << "] : " << "capitalized: " << (capital ? "Yes. " : "No. ") << "has uppercase: " << (upper ? "Yes. " : "No. ") << "has accents: " << (accent ? "Yes. " : "No. ") << endl; return 0; } else { if (argc != 3) Usage(); if (op_flags & OPT_c) { op = UNACOP_UNACFOLD; } else if (op_flags & OPT_C) { op = UNACOP_FOLD; } const char *encoding = *argv++; argc--; string ifn = *argv++; argc--; if (!ifn.compare("stdin")) ifn.clear(); const char *ofn = *argv++; argc--; string reason; (void)recollinit(RCLINIT_NONE, 0, 0, reason, 0); string odata; if (!file_to_string(ifn, odata)) { cerr << "file_to_string " << ifn << " : " << odata << endl; return 1; } string ndata; if (!unacmaybefold(odata, ndata, encoding, op)) { cerr << "unac: " << ndata << endl; return 1; } int fd; if (strcmp(ofn, "stdout")) { fd = open(ofn, O_CREAT|O_EXCL|O_WRONLY, 0666); } else { fd = 1; } if (fd < 0) { cerr << "Open/Create " << ofn << " failed: " << strerror(errno) << endl; return 1; } if (write(fd, ndata.c_str(), ndata.length()) != (int)ndata.length()) { cerr << "Write(2) failed: " << strerror(errno) << endl; return 1; } close(fd); return 0; } } #endif recoll-1.21.5/common/rclinit.cpp0000644000175000017500000001321412602163571016026 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "autoconfig.h" #include #include #include #include #include #if !defined(PUTENV_ARG_CONST) #include #endif #include "debuglog.h" #include "rclconfig.h" #include "rclinit.h" #include "pathut.h" #include "unac.h" #include "smallut.h" #include "execmd.h" static const int catchedSigs[] = {SIGINT, SIGQUIT, SIGTERM, SIGUSR1, SIGUSR2}; static pthread_t mainthread_id; static void siglogreopen(int) { if (recoll_ismainthread()) DebugLog::reopen(); } RclConfig *recollinit(RclInitFlags flags, void (*cleanup)(void), void (*sigcleanup)(int), string &reason, const string *argcnf) { if (cleanup) atexit(cleanup); // We ignore SIGPIPE always. All pieces of code which can write to a pipe // must check write() return values. signal(SIGPIPE, SIG_IGN); // Make sure the locale is set. This is only for converting file names // to utf8 for indexing. setlocale(LC_CTYPE, ""); // We would like to block SIGCHLD globally, but we can't because // QT uses it. Have to block it inside execmd.cpp // Install app signal handler if (sigcleanup) { struct sigaction action; action.sa_handler = sigcleanup; action.sa_flags = 0; sigemptyset(&action.sa_mask); for (unsigned int i = 0; i < sizeof(catchedSigs) / sizeof(int); i++) if (signal(catchedSigs[i], SIG_IGN) != SIG_IGN) { if (sigaction(catchedSigs[i], &action, 0) < 0) { perror("Sigaction failed"); } } } DebugLog::getdbl()->setloglevel(DEBDEB1); DebugLog::setfilename("stderr"); if (getenv("RECOLL_LOGDATE")) DebugLog::getdbl()->logdate(1); RclConfig *config = new RclConfig(argcnf); if (!config || !config->ok()) { reason = "Configuration could not be built:\n"; if (config) reason += config->getReason(); else reason += "Out of memory ?"; return 0; } // Retrieve the log file name and level string logfilename, loglevel; if (flags & RCLINIT_DAEMON) { config->getConfParam(string("daemlogfilename"), logfilename); config->getConfParam(string("daemloglevel"), loglevel); } if (logfilename.empty()) config->getConfParam(string("logfilename"), logfilename); if (loglevel.empty()) config->getConfParam(string("loglevel"), loglevel); // Initialize logging if (!logfilename.empty()) { logfilename = path_tildexpand(logfilename); // If not an absolute path or , compute relative to config dir if (logfilename.at(0) != '/' && !DebugLog::DebugLog::isspecialname(logfilename.c_str())) { logfilename = path_cat(config->getConfDir(), logfilename); } DebugLog::setfilename(logfilename.c_str()); } if (!loglevel.empty()) { int lev = atoi(loglevel.c_str()); DebugLog::getdbl()->setloglevel(lev); } // Install log rotate sig handler { struct sigaction action; action.sa_handler = siglogreopen; action.sa_flags = 0; sigemptyset(&action.sa_mask); if (signal(SIGHUP, SIG_IGN) != SIG_IGN) { if (sigaction(SIGHUP, &action, 0) < 0) { perror("Sigaction failed"); } } } // Make sure the locale charset is initialized (so that multiple // threads don't try to do it at once). config->getDefCharset(); mainthread_id = pthread_self(); // Init unac locking unac_init_mt(); // Init smallut and pathut static values pathut_init_mt(); smallut_init_mt(); // Init Unac translation exceptions string unacex; if (config->getConfParam("unac_except_trans", unacex) && !unacex.empty()) unac_set_except_translations(unacex.c_str()); #ifndef IDX_THREADS ExecCmd::useVfork(true); #else // Keep threads init behind log init, but make sure it's done before // we do the vfork choice ! The latter is not used any more actually, // we always use vfork except if forbidden by config. config->initThrConf(); bool novfork; config->getConfParam("novfork", &novfork); if (novfork) { LOGDEB0(("rclinit: will use fork() for starting commands\n")); ExecCmd::useVfork(false); } else { LOGDEB0(("rclinit: will use vfork() for starting commands\n")); ExecCmd::useVfork(true); } #endif int flushmb; if (config->getConfParam("idxflushmb", &flushmb) && flushmb > 0) { LOGDEB1(("rclinit: idxflushmb=%d, set XAPIAN_FLUSH_THRESHOLD to 10E6\n", flushmb)); static const char *cp = "XAPIAN_FLUSH_THRESHOLD=1000000"; #ifdef PUTENV_ARG_CONST ::putenv(cp); #else ::putenv(strdup(cp)); #endif } return config; } // Signals are handled by the main thread. All others should call this routine // to block possible signals void recoll_threadinit() { sigset_t sset; sigemptyset(&sset); for (unsigned int i = 0; i < sizeof(catchedSigs) / sizeof(int); i++) sigaddset(&sset, catchedSigs[i]); sigaddset(&sset, SIGHUP); pthread_sigmask(SIG_BLOCK, &sset, 0); } bool recoll_ismainthread() { return pthread_equal(pthread_self(), mainthread_id); } recoll-1.21.5/common/cstr.cpp0000644000175000017500000000013212602163536015331 0ustar dockesdockes #include "cstr.h" #define RCLIN_CSTR_CPPFILE #undef _CSTR_H_INCLUDED_ #include "cstr.h" recoll-1.21.5/common/uproplist.h0000644000175000017500000001667312602163537016106 0ustar dockesdockes/* Copyright (C) 2004 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _PROPLIST_H_INCLUDED_ #define _PROPLIST_H_INCLUDED_ /** * A subset of Unicode chars that we consider word breaks when we * split text in words. * * This is used as a quick fix to the ascii-based code, and is not correct. * the correct way would be to do what http://www.unicode.org/reports/tr29/ * says. */ // Punctuation chararacters blocks array. Each block is defined by a // starting and ending code point (both included). MUST BE SORTED. static const unsigned unipuncblocks[] = { // Start of latin-1 supplement block, up to capital A grave 0x0080, 0x00BF, // General punctuation 0x2000, 0x206F, // Superscripts and subscripts 0x2070, 0x209F, // Currency symbols 0x20A0, 0x20CF, // Letterlike symbols 0x2100, 0x214f, // Number forms 0x2150, 0x218F, // Arrows 0x2190, 0x21FF, // Mathematical Operators 0x2200, 0x22FF, // Miscellaneous Technical 0x2300, 0x23FF, // Control Pictures 0x2400, 0x243F, // Optical Character Recognition 0x2440, 0x245F, // Enclosed Alphanumerics 0x2460, 0x24FF, // Box Drawing 0x2500, 0x257F, // Block Elements 0x2580, 0x259F, // Geometric Shapes 0x25A0, 0x25FF, // Miscellaneous Symbols 0x2600, 0x26FF, // Dingbats 0x2700, 0x27BF, // Miscellaneous Mathematical Symbols-A 0x27C0, 0x27EF, // Supplemental Arrows-A 0x27F0, 0x27FF, // Supplemental Arrows-B 0x2900, 0x297F, // Miscellaneous Mathematical Symbols-B 0x2980, 0x29FF, // Supplemental Mathematical Operators 0x2A00, 0x2AFF, // Miscellaneous Symbols and Arrows 0x2B00, 0x2BFF, }; // Other punctuation characters list. Not all punctuation is in a // separate block some is found in the middle of alphanumeric codes. static const unsigned int unipunc[] = { 0x00D7, /* MULTIPLICATION SIGN */ 0x00F7, /* DIVISION SIGN */ 0x037E, /* GREEK QUESTION MARK */ 0x0387, /* GREEK ANO TELEIA */ 0x055C, /* ARMENIAN EXCLAMATION MARK */ 0x055E, /* ARMENIAN QUESTION MARK */ 0x0589, /* ARMENIAN FULL STOP */ 0x058A, /* ARMENIAN HYPHEN */ 0x05C3, /* HEBREW PUNCTUATION SOF PASUQ */ 0x060C, /* ARABIC COMMA */ 0x061B, /* ARABIC SEMICOLON */ 0x061F, /* ARABIC QUESTION MARK */ 0x06D4, /* ARABIC FULL STOP */ 0x0964, /* DEVANAGARI DANDA */ 0x0965, /* DEVANAGARI DOUBLE DANDA */ 0x166E, /* CANADIAN SYLLABICS FULL STOP */ 0x1680, /* OGHAM SPACE MARK */ 0x16EB, /* RUNIC SINGLE PUNCTUATION */ 0x16EC, /* RUNIC MULTIPLE PUNCTUATION */ 0x16ED, /* RUNIC CROSS PUNCTUATION */ 0x1803, /* MONGOLIAN FULL STOP */ 0x1806, /* MONGOLIAN TODO SOFT HYPHEN */ 0x1809, /* MONGOLIAN MANCHU FULL STOP */ 0x180E, /* MONGOLIAN VOWEL SEPARATOR */ 0x2E2E, /* REVERSED QUESTION MARK;Po;0;ON;;;;;N;;;;; */ 0x3000, /* IDEOGRAPHIC SPACE*/ 0x3002, /* IDEOGRAPHIC FULL STOP*/ 0x300C, /* LEFT CORNER BRACKET*/ 0x300D, /* RIGHT CORNER BRACKET*/ 0x300E, /* LEFT WHITE CORNER BRACKET*/ 0x300F, /* RIGHT WHITE CORNER BRACKET*/ 0x301C, /* WAVE DASH*/ 0x301D, /* REVERSED DOUBLE PRIME QUOTATION MARK*/ 0x301E, /* LOW DOUBLE PRIME QUOTATION MARK*/ 0x3030, /* WAVY DASH*/ 0x30FB, /* KATAKANA MIDDLE DOT*/ 0xC2B6, /* PILCROW SIGN;So;0;ON;;;;;N;PARAGRAPH SIGN;;;; */ 0xC3B7, /* DIVISION SIGN;Sm;0;ON;;;;;N;;;;; */ 0xFE31, /* PRESENTATION FORM FOR VERTICAL EM DASH*/ 0xFE32, /* PRESENTATION FORM FOR VERTICAL EN DASH*/ 0xFE41, /* PRESENTATION FORM FOR VERTICAL LEFT CORNER BRACKET*/ 0xFE42, /* PRESENTATION FORM FOR VERTICAL RIGHT CORNER BRACKET*/ 0xFE43, /* PRESENTATION FORM FOR VERTICAL LEFT WHITE CORNER BRACKET*/ 0xFE44, /* PRESENTATION FORM FOR VERTICAL RIGHT WHITE CORNER BRACKET*/ 0xFE50, /* [3] SMALL COMMA..SMALL FULL STOP*/ 0xFE51, /* [3] SMALL COMMA..SMALL FULL STOP*/ 0xFE52, /* STOP*/ 0xFE52, /* [3] SMALL COMMA..SMALL FULL STOP*/ 0xFE54, /* [4] SMALL SEMICOLON..SMALL EXCLAMATION MARK*/ 0xFE55, /* [4] SMALL SEMICOLON..SMALL EXCLAMATION MARK*/ 0xFE56, /* [4] SMALL SEMICOLON..SMALL EXCLAMATION MARK*/ 0xFE57, /* [4] SMALL SEMICOLON..SMALL EXCLAMATION MARK*/ 0xFE58, /* SMALL EM DASH */ 0xFE63, /* SMALL HYPHEN-MINUS */ 0xFF01, /* FULLWIDTH EXCLAMATION MARK */ 0xFF02, /* FULLWIDTH QUOTATION MARK */ 0xFF03, /* FULLWIDTH NUMBER SIGN */ 0xFF04, /* FULLWIDTH DOLLAR SIGN */ 0xFF05, /* FULLWIDTH PERCENT SIGN */ 0xFF06, /* FULLWIDTH AMPERSAND */ 0xFF07, /* FULLWIDTH APOSTROPHE */ 0xFF08, /* FULLWIDTH LEFT PARENTHESIS */ 0xFF09, /* FULLWIDTH RIGHT PARENTHESIS */ 0xFF0A, /* FULLWIDTH ASTERISK */ 0xFF0B, /* FULLWIDTH PLUS SIGN */ 0xFF0C, /* FULLWIDTH COMMA */ 0xFF0D, /* FULLWIDTH HYPHEN-MINUS */ 0xFF0E, /* FULLWIDTH FULL STOP */ 0xFF0F, /* FULLWIDTH SOLIDUS */ 0xFF1A, /* [2] FULLWIDTH COLON..FULLWIDTH SEMICOLON*/ 0xFF1B, /* [2] FULLWIDTH COLON..FULLWIDTH SEMICOLON*/ 0xFF1F, /* FULLWIDTH QUESTION MARK*/ 0xFF61, /* HALFWIDTH IDEOGRAPHIC FULL STOP*/ 0xFF62, /* HALFWIDTH LEFT CORNER BRACKET*/ 0xFF63, /* HALFWIDTH RIGHT CORNER BRACKET*/ 0xFF64, /* HALFWIDTH IDEOGRAPHIC COMMA*/ 0xFF65, /* HALFWIDTH KATAKANA MIDDLE DOT*/ }; // Characters that should just be discarded. Some of these are in the // above blocks, but this array is tested first, so it's not worth // breaking the blocks static const unsigned int uniskip[] = { 0x00AD, /* SOFT HYPHEN */ 0x034F, /* COMBINING GRAPHEME JOINER */ 0x2027, /* HYPHENATION POINT */ 0x200C, /* ZERO WIDTH NON-JOINER */ 0x200D, /* ZERO WIDTH JOINER */ 0x2060, /* WORD JOINER . Actually this should not be ignored but used to * prevent a word break... */ }; /* Things that would visibly break a block of text, rendering obvious the need * of quotation if a phrase search is wanted */ static const unsigned int avsbwht[] = { 0x0009, /* CHARACTER TABULATION */ 0x000A, /* LINE FEED */ 0x000D, /* CARRIAGE RETURN */ 0x0020, /* SPACE;Zs;0;WS */ 0x00A0, /* NO-BREAK SPACE;Zs;0;CS */ 0x1680, /* OGHAM SPACE MARK;Zs;0;WS */ 0x180E, /* MONGOLIAN VOWEL SEPARATOR;Zs;0;WS */ 0x2000, /* EN QUAD;Zs;0;WS */ 0x2001, /* EM QUAD;Zs;0;WS */ 0x2002, /* EN SPACE;Zs;0;WS */ 0x2003, /* EM SPACE;Zs;0;WS */ 0x2004, /* THREE-PER-EM SPACE;Zs;0;WS */ 0x2005, /* FOUR-PER-EM SPACE;Zs;0;WS */ 0x2006, /* SIX-PER-EM SPACE;Zs;0;WS */ 0x2007, /* FIGURE SPACE;Zs;0;WS */ 0x2008, /* PUNCTUATION SPACE;Zs;0;WS */ 0x2009, /* THIN SPACE;Zs;0;WS */ 0x200A, /* HAIR SPACE;Zs;0;WS */ 0x202F, /* NARROW NO-BREAK SPACE;Zs;0;CS */ 0x205F, /* MEDIUM MATHEMATICAL SPACE;Zs;0;WS */ 0x3000, /* IDEOGRAPHIC SPACE;Zs;0;WS */ }; #endif // _PROPLIST_H_INCLUDED_ recoll-1.21.5/common/cstr.h0000644000175000017500000000606312602163536015007 0ustar dockesdockes/* Copyright (C) 2011 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CSTR_H_INCLUDED_ #define _CSTR_H_INCLUDED_ // recoll mostly uses STL strings. In many places we had automatic // conversion from a C string to an STL one. This costs, and can // become significant if used often. // // This file and the associated .cpp file declares/defines constant // strings used in the program. Strings are candidates for a move here // when they are used in a fast loop or are shared. #include using std::string; // The following slightly hacky preprocessing directives and the // companion code in the cpp file looks complicated, but it just // ensures that we only have to write the strings once to get the // extern declaration and the definition. #ifdef RCLIN_CSTR_CPPFILE #undef DEF_CSTR #define DEF_CSTR(NM, STR) const string cstr_##NM(STR) #else #define DEF_CSTR(NM, STR) extern const string cstr_##NM #endif DEF_CSTR(caption, "caption"); DEF_CSTR(colon, ":"); DEF_CSTR(dmtime, "dmtime"); DEF_CSTR(dquote, "\""); DEF_CSTR(fbytes, "fbytes"); DEF_CSTR(fileu, "file://"); DEF_CSTR(fmtime, "fmtime"); DEF_CSTR(iso_8859_1, "ISO-8859-1"); DEF_CSTR(utf8, "UTF-8"); DEF_CSTR(cp1252, "CP1252"); DEF_CSTR(minwilds, "*?["); DEF_CSTR(newline, "\n"); DEF_CSTR(null, ""); DEF_CSTR(plus, "+"); DEF_CSTR(textplain, "text/plain"); DEF_CSTR(url, "url"); // Marker for HTML format fields DEF_CSTR(fldhtm, "\007"); // Characters that can -begin- a wildcard or regexp expression. DEF_CSTR(wildSpecStChars, "*?["); DEF_CSTR(regSpecStChars, "(.[{"); // Values used as keys inside Dijon::Filter::metaData[]. This structure is // used to store all data generated by format-translating filters. It is // different from Rcl::Doc for mostly historical reasons. The translation // from Filter to Doc occurs inside internfile.cpp DEF_CSTR(dj_keyds, "description"); DEF_CSTR(dj_keyfn, "filename"); DEF_CSTR(dj_keymd, "modificationdate"); DEF_CSTR(dj_keyorigcharset, "origcharset"); DEF_CSTR(dj_keytitle, "title"); DEF_CSTR(dj_keyrecipient, "recipient"); DEF_CSTR(dj_keymsgid, "msgid"); DEF_CSTR(dj_keyabstract, "abstract"); DEF_CSTR(dj_keyauthor, "author"); DEF_CSTR(dj_keycharset, "charset"); DEF_CSTR(dj_keycontent, "content"); DEF_CSTR(dj_keyipath, "ipath"); DEF_CSTR(dj_keymd5, "md5"); DEF_CSTR(dj_keymt, "mimetype"); DEF_CSTR(dj_keydocsize, "docsize"); DEF_CSTR(dj_keyanc, "rclanc"); #endif /* _CSTR_H_INCLUDED_ */ recoll-1.21.5/common/beaglequeuecache.h0000644000175000017500000000306612602163536017304 0ustar dockesdockes/* Copyright (C) 2009 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _beaglequeuecache_h_included_ #define _beaglequeuecache_h_included_ #include using std::string; class RclConfig; namespace Rcl { class Db; class Doc; } class CirCache; /** * Manage the CirCache for the Beagle Queue indexer. Separated from the main * indexer code because it's also used for querying (getting the data for a * preview */ class BeagleQueueCache { public: BeagleQueueCache(RclConfig *config); ~BeagleQueueCache(); bool getFromCache(const string& udi, Rcl::Doc &doc, string& data, string *hittype = 0); // We could write proxies for all the circache ops, but why bother? CirCache *cc() {return m_cache;} private: CirCache *m_cache; }; extern const string cstr_bgc_mimetype; #endif /* _beaglequeuecache_h_included_ */ recoll-1.21.5/common/autoconfig.h.in0000644000175000017500000000570012602163571016573 0ustar dockesdockes/* common/autoconfig.h.in. Generated from configure.ac by autoheader. */ /* Path to the aspell api include file */ #undef ASPELL_INCLUDE /* Path to the aspell program */ #undef ASPELL_PROG /* No X11 session monitoring support */ #undef DISABLE_X11MON /* Path to the fam api include file */ #undef FAM_INCLUDE /* Path to the file program */ #undef FILE_PROG /* Define to 1 if you have the header file. */ #undef HAVE_SPAWN_H #undef HAVE_POSIX_SPAWN #undef USE_POSIX_SPAWN /* Define to 1 if you have the setrlimit() call. */ #undef HAVE_SETRLIMIT /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mkdtemp' function. */ #undef HAVE_MKDTEMP /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MOUNT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STATFS_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STATVFS_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_VFS_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* putenv parameter is const */ #undef PUTENV_ARG_CONST /* iconv parameter 2 is const char** */ #undef RCL_ICONV_INBUF_CONST /* Real time monitoring option */ #undef RCL_MONITOR /* Split camelCase words */ #undef RCL_SPLIT_CAMELCASE /* Compile the aspell interface */ #undef RCL_USE_ASPELL /* Compile the fam interface */ #undef RCL_USE_FAM /* Compile the inotify interface */ #undef RCL_USE_INOTIFY /* Use multiple threads for indexing */ #undef IDX_THREADS /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Enable using the system's 'file' command to id mime if we fail internally */ #undef USE_SYSTEM_FILE_COMMAND /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING #undef _FILE_OFFSET_BITS #undef _LARGE_FILES #undef WORDS_BIGENDIAN #undef HAVE_TR1_UNORDERED #undef HAVE_CXX0X_UNORDERED recoll-1.21.5/recollinstall.in0000755000175000017500000001213112602163572015566 0ustar dockesdockes#!/bin/sh # Install recoll files. fatal() { echo $* exit 1 } usage() { fatal 'Usage: recollinstall [], ie: recollinstall /usr/local' } if test $# -eq 0 ; then PREFIX=@prefix@ elif test $# -eq 1 ; then PREFIX=$1 else usage fi QTGUI=@QTGUI@ # The .qm files are in qtgui/i18n even if qt4 is used I18N=qtgui/i18n RCLLIBVERSION=@RCLLIBVERSION@ test -n "$bindir" || bindir=${PREFIX}/bin test -n "$libdir" || libdir=${PREFIX}/lib test -n "$datadir" || datadir=${PREFIX}/share if test -z "$mandir" ; then if test -d ${PREFIX}/man ; then mandir=${PREFIX}/man else mandir=${datadir}/man fi fi REALPREFIX=$PREFIX ROOTFORPYTHON="" if test -n "$DESTDIR" ; then PREFIX=$DESTDIR/$PREFIX bindir=$DESTDIR/$bindir libdir=$DESTDIR/$libdir datadir=$DESTDIR/$datadir mandir=$DESTDIR/$mandir ROOTFORPYTHON="--root=${DESTDIR}" fi if test -f /etc/debian_version ; then OPTSFORPYTHON=--install-layout=deb fi echo "Installing to $PREFIX" # Note: solaris 'install' does not understand -v INSTALL=${INSTALL:="install -c"} STRIP=${STRIP:=strip} sys=`uname` @NOQTMAKE@if test "$sys" = Darwin ; then @NOQTMAKE@ RECOLLPROG=${QTGUI}/recoll.app/Contents/MacOS/recoll @NOQTMAKE@else @NOQTMAKE@ RECOLLPROG=${QTGUI}/recoll @NOQTMAKE@fi TESTPROG=index/recollindex test -x $TESTPROG || fatal "$TESTPROG does not exist." \ " You need to build first (type 'make')." for d in \ ${bindir} \ ${libdir} \ ${libdir}/recoll \ ${mandir}/man1 \ ${mandir}/man5 \ ${datadir}/icons \ ${datadir}/recoll/doc \ ${datadir}/recoll/examples \ ${datadir}/recoll/filters \ ${datadir}/recoll/images \ ${datadir}/recoll/translations \ ${datadir}/icons/hicolor/48x48/apps \ ${datadir}/pixmaps do test -d $d || mkdir -p $d || exit 1 done @NOQTMAKE@test -d ${datadir}/applications \ @NOQTMAKE@ || mkdir -p ${datadir}/applications || exit 1 @NOQTMAKE@test -d ${datadir}/appdata \ @NOQTMAKE@ || mkdir -p ${datadir}/appdata || exit 1 # Use the xdg utilies to install the desktop file and icon? Couldn't find # out how to get this to work sanely. So keep the old way #PATH=$PATH:desktop/xdg-utils-1.0.1/scripts #export PATH #xdg-desktop-menu install desktop/recoll-searchgui.desktop #xdg-icon-resource install --size 48 desktop/recoll.png @NOQTMAKE@${INSTALL} -m 0444 desktop/recoll.appdata.xml ${datadir}/appdata @NOQTMAKE@${INSTALL} -m 0444 desktop/recoll-searchgui.desktop ${datadir}/applications @NOQTMAKE@${INSTALL} -m 0444 desktop/recoll.png ${datadir}/icons/hicolor/48x48/apps @NOQTMAKE@${INSTALL} -m 0444 desktop/recoll.png ${datadir}/pixmaps/ if test -f doc/user/usermanual.html ; then ${INSTALL} -m 0444 doc/user/usermanual.html doc/user/docbook-xsl.css \ ${datadir}/recoll/doc else echo "User manual not found -> not installed" fi @NOQTMAKE@${INSTALL} -m 0444 doc/man/recoll.1 ${mandir}/man1/ # Install the recollq man page in all cases, it's useful for recoll -t ${INSTALL} -m 0444 doc/man/recollq.1 ${mandir}/man1/ ${INSTALL} -m 0444 doc/man/recollindex.1 ${mandir}/man1/ ${INSTALL} -m 0444 doc/man/recoll.conf.5 ${mandir}/man5/ @NOQTMAKE@${INSTALL} -m 0755 ${RECOLLPROG} ${bindir} || exit 1 @NOQTMAKE@${STRIP} ${bindir}/recoll @NOCMDLINE@${INSTALL} -m 0755 query/recollq ${bindir} || exit 1 @NOCMDLINE@${STRIP} ${bindir}/recollq ${INSTALL} -m 0755 index/recollindex ${bindir} || exit 1 ${STRIP} ${bindir}/recollindex @NODYNLIB@${INSTALL} -m 0644 lib/librecoll.so.${RCLLIBVERSION} \ @NODYNLIB@ ${libdir}/recoll/ || exit 1 ${INSTALL} -m 0755 filters/rcl* ${datadir}/recoll/filters/ || exit 1 ${INSTALL} -m 0555 filters/ppt-dump.py ${datadir}/recoll/filters/ || exit 1 ${INSTALL} -m 0555 filters/xls-dump.py ${datadir}/recoll/filters/ || exit 1 ${INSTALL} -m 0555 filters/xlsxmltocsv.py ${datadir}/recoll/filters/ || exit 1 ${INSTALL} -m 0444 filters/msodump.zip ${datadir}/recoll/filters/ || exit 1 for f in rclexecm.py rcllatinstops.zip;do chmod 644 ${datadir}/recoll/filters/$f done ${INSTALL} -m 0755 desktop/xdg-utils-1.0.1/scripts/xdg-open \ ${datadir}/recoll/filters/ || exit 1 ${INSTALL} -m 0755 desktop/hotrecoll.py \ ${datadir}/recoll/filters/ || exit 1 ${INSTALL} -m 0644 python/recoll/recoll/rclconfig.py \ ${datadir}/recoll/filters/ || exit 1 ${INSTALL} -m 0444 \ desktop/recollindex.desktop \ sampleconf/fragbuts.xml \ sampleconf/mimeconf \ sampleconf/mimeview \ sampleconf/recoll.conf \ sampleconf/mimemap \ sampleconf/fields \ sampleconf/recoll.qss \ ${datadir}/recoll/examples/ || exit 1 ${INSTALL} -m 0755 index/rclmon.sh ${datadir}/recoll/examples/ || exit 1 ${INSTALL} -m 0444 qtgui/mtpics/*.png ${datadir}/recoll/images || exit 1 ${INSTALL} -m 0444 ${I18N}/recoll*.qm ${datadir}/recoll/translations || exit 1 # Install the simplified chinese file as just chinese until I can understand # if it's possible to have both. zh_CN doesn't seem to work ${INSTALL} -m 0444 ${I18N}/recoll_zh_CN.qm \ ${datadir}/recoll/translations/recoll_zh.qm || exit 1 @NOPYTHON@(cd python/recoll;python setup.py install \ @NOPYTHON@ --prefix=${REALPREFIX} ${ROOTFORPYTHON} ${OPTSFORPYTHON}) recoll-1.21.5/README0000644000175000017500000061611412652665303013263 0ustar dockesdockes More documentation can be found in the doc/ directory or at http://www.recoll.org Recoll user manual Jean-Francois Dockes Copyright (c) 2005-2015 Jean-Francois Dockes Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at the following location: GNU web site. This document introduces full text search notions and describes the installation and use of the Recoll application. This version describes Recoll 1.21. ---------------------------------------------------------------------- Table of Contents 1. Introduction 1.1. Giving it a try 1.2. Full text search 1.3. Recoll overview 2. Indexing 2.1. Introduction 2.1.1. Indexing modes 2.1.2. Configurations, multiple indexes 2.1.3. Document types 2.1.4. Indexing failures 2.1.5. Recovery 2.2. Index storage 2.2.1. Xapian index formats 2.2.2. Security aspects 2.3. Index configuration 2.3.1. Multiple indexes 2.3.2. Index case and diacritics sensitivity 2.3.3. The index configuration GUI 2.4. Indexing WEB pages you wisit 2.5. Extended attributes data 2.6. Importing external tags 2.7. Periodic indexing 2.7.1. Running indexing 2.7.2. Using cron to automate indexing 2.8. Real time indexing 2.8.1. Slowing down the reindexing rate for fast changing files 3. Searching 3.1. Searching with the Qt graphical user interface 3.1.1. Simple search 3.1.2. The default result list 3.1.3. The result table 3.1.4. Running arbitrary commands on result files (1.20 and later) 3.1.5. Displaying thumbnails 3.1.6. The preview window 3.1.7. The Query Fragments window 3.1.8. Complex/advanced search 3.1.9. The term explorer tool 3.1.10. Multiple indexes 3.1.11. Document history 3.1.12. Sorting search results and collapsing duplicates 3.1.13. Search tips, shortcuts 3.1.14. Saving and restoring queries (1.21 and later) 3.1.15. Customizing the search interface 3.2. Searching with the KDE KIO slave 3.2.1. What's this 3.2.2. Searchable documents 3.3. Searching on the command line 3.4. Path translations 3.5. The query language 3.5.1. Modifiers 3.6. Search case and diacritics sensitivity 3.7. Anchored searches and wildcards 3.7.1. More about wildcards 3.7.2. Anchored searches 3.8. Desktop integration 3.8.1. Hotkeying recoll 3.8.2. The KDE Kicker Recoll applet 4. Programming interface 4.1. Writing a document input handler 4.1.1. Simple input handlers 4.1.2. "Multiple" handlers 4.1.3. Telling Recoll about the handler 4.1.4. Input handler HTML output 4.1.5. Page numbers 4.2. Field data processing 4.3. API 4.3.1. Interface elements 4.3.2. Python interface 5. Installation and configuration 5.1. Installing a binary copy 5.2. Supporting packages 5.3. Building from source 5.3.1. Prerequisites 5.3.2. Building 5.3.3. Installation 5.4. Configuration overview 5.4.1. Environment variables 5.4.2. The main configuration file, recoll.conf 5.4.3. The fields file 5.4.4. The mimemap file 5.4.5. The mimeconf file 5.4.6. The mimeview file 5.4.7. The ptrans file 5.4.8. Examples of configuration adjustments Chapter 1. Introduction 1.1. Giving it a try If you do not like reading manuals (who does?) but wish to give Recoll a try, just install the application and start the recoll graphical user interface (GUI), which will ask permission to index your home directory by default, allowing you to search immediately after indexing completes. Do not do this if your home directory contains a huge number of documents and you do not want to wait or are very short on disk space. In this case, you may first want to customize the configuration to restrict the indexed area (for the very impatient with a completed package install, from the recoll GUI: Preferences -> Indexing configuration, then adjust the Top directories section). Also be aware that you may need to install the appropriate supporting applications for document types that need them (for example antiword for Microsoft Word files). 1.2. Full text search Recoll is a full text search application. Full text search finds your data by content rather than by external attributes (like a file name). You specify words (terms) which should or should not appear in the text you are looking for, and receive in return a list of matching documents, ordered so that the most relevant documents will appear first. You do not need to remember in what file or email message you stored a given piece of information. You just ask for related terms, and the tool will return a list of documents where these terms are prominent, in a similar way to Internet search engines. Full text search applications try to determine which documents are most relevant to the search terms you provide. Computer algorithms for determining relevance can be very complex, and in general are inferior to the power of the human mind to rapidly determine relevance. The quality of relevance guessing is probably the most important aspect when evaluating a search application. In many cases, you are looking for all the forms of a word, including plurals, different tenses for a verb, or terms derived from the same root or stem (example: floor, floors, floored, flooring...). Queries are usually automatically expanded to all such related terms (words that reduce to the same stem). This can be prevented for searching for a specific form. Stemming, by itself, does not accommodate for misspellings or phonetic searches. A full text search application may also support this form of approximation. For example, a search for aliterattion returning no result may propose, depending on index contents, alliteration alteration alterations altercation as possible replacement terms. 1.3. Recoll overview Recoll uses the Xapian information retrieval library as its storage and retrieval engine. Xapian is a very mature package using a sophisticated probabilistic ranking model. The Xapian library manages an index database which describes where terms appear in your document files. It efficiently processes the complex queries which are produced by the Recoll query expansion mechanism, and is in charge of the all-important relevance computation task. Recoll provides the mechanisms and interface to get data into and out of the index. This includes translating the many possible document formats into pure text, handling term variations (using Xapian stemmers), and spelling approximations (using the aspell speller), interpreting user queries and presenting results. In a shorter way, Recoll does the dirty footwork, Xapian deals with the intelligent parts of the process. The Xapian index can be big (roughly the size of the original document set), but it is not a document archive. Recoll can only display documents that still exist at the place from which they were indexed. (Actually, there is a way to reconstruct a document from the information in the index, but the result is not nice, as all formatting, punctuation and capitalization are lost). Recoll stores all internal data in Unicode UTF-8 format, and it can index files of many types with different character sets, encodings, and languages into the same index. It can process documents embedded inside other documents (for example a pdf document stored inside a Zip archive sent as an email attachment...), down to an arbitrary depth. Stemming is the process by which Recoll reduces words to their radicals so that searching does not depend, for example, on a word being singular or plural (floor, floors), or on a verb tense (flooring, floored). Because the mechanisms used for stemming depend on the specific grammatical rules for each language, there is a separate Xapian stemmer module for most common languages where stemming makes sense. Recoll stores the unstemmed versions of terms in the main index and uses auxiliary databases for term expansion (one for each stemming language), which means that you can switch stemming languages between searches, or add a language without needing a full reindex. Storing documents written in different languages in the same index is possible, and commonly done. In this situation, you can specify several stemming languages for the index. Recoll currently makes no attempt at automatic language recognition, which means that the stemmer will sometimes be applied to terms from other languages with potentially strange results. In practise, even if this introduces possibilities of confusion, this approach has been proven quite useful, and it is much less cumbersome than separating your documents according to what language they are written in. Before version 1.18, Recoll stripped most accents and diacritics from terms, and converted them to lower case before either storing them in the index or searching for them. As a consequence, it was impossible to search for a particular capitalization of a term (US / us), or to discriminate two terms based on diacritics (sake / sake, mate / mate). As of version 1.18, Recoll can optionally store the raw terms, without accent stripping or case conversion. In this configuration, it is still possible (and most common) for a query to be insensitive to case and/or diacritics. Appropriate term expansions are performed before actually accessing the main index. This is described in more detail in the section about index case and diacritics sensitivity. Recoll has many parameters which define exactly what to index, and how to classify and decode the source documents. These are kept in configuration files. A default configuration is copied into a standard location (usually something like /usr/[local/]share/recoll/examples) during installation. The default values set by the configuration files in this directory may be overridden by values that you set inside your personal configuration, found by default in the .recoll sub-directory of your home directory. The default configuration will index your home directory with default parameters and should be sufficient for giving Recoll a try, but you may want to adjust it later, which can be done either by editing the text files or by using configuration menus in the recoll GUI. Some other parameters affecting only the recoll GUI are stored in the standard location defined by Qt. The indexing process is started automatically the first time you execute the recoll GUI. Indexing can also be performed by executing the recollindex command. Recoll indexing is multithreaded by default when appropriate hardware resources are available, and can perform in parallel multiple tasks among text extraction, segmentation and index updates. Searches are usually performed inside the recoll GUI, which has many options to help you find what you are looking for. However, there are other ways to perform Recoll searches: mostly a command line interface, a Python programming interface, a KDE KIO slave module, and Ubuntu Unity Lens (for older versions) or Scope (for current versions) modules. Chapter 2. Indexing 2.1. Introduction Indexing is the process by which the set of documents is analyzed and the data entered into the database. Recoll indexing is normally incremental: documents will only be processed if they have been modified since the last run. On the first execution, all documents will need processing. A full index build can be forced later by specifying an option to the indexing command (recollindex -z or -Z). recollindex skips files which caused an error during a previous pass. This is a performance optimization, and a new behaviour in version 1.21 (failed files were always retried by previous versions). The command line option -k can be set to retry failed files, for example after updating a filter. The following sections give an overview of different aspects of the indexing processes and configuration, with links to detailed sections. Depending on your data, temporary files may be needed during indexing, some of them possibly quite big. You can use the RECOLL_TMPDIR or TMPDIR environment variables to determine where they are created (the default is to use /tmp). Using TMPDIR has the nice property that it may also be taken into account by auxiliary commands executed by recollindex. 2.1.1. Indexing modes Recoll indexing can be performed along two different modes: o Periodic (or batch) indexing: indexing takes place at discrete times, by executing the recollindex command. The typical usage is to have a nightly indexing run programmed into your cron file. o Real time indexing: indexing takes place as soon as a file is created or changed. recollindex runs as a daemon and uses a file system alteration monitor such as inotify, Fam or Gamin to detect file changes. The choice between the two methods is mostly a matter of preference, and they can be combined by setting up multiple indexes (ie: use periodic indexing on a big documentation directory, and real time indexing on a small home directory). Monitoring a big file system tree can consume significant system resources. The choice of method and the parameters used can be configured from the recoll GUI: Preferences -> Indexing schedule 2.1.2. Configurations, multiple indexes The parameters describing what is to be indexed and local preferences are defined in text files contained in a configuration directory. All parameters have defaults, defined in system-wide files. Without further configuration, Recoll will index all appropriate files from your home directory, with a reasonable set of defaults. A default personal configuration directory ($HOME/.recoll/) is created when a Recoll program is first executed. It is possible to create other configuration directories, and use them by setting the RECOLL_CONFDIR environment variable, or giving the -c option to any of the Recoll commands. In some cases, it may be interesting to index different areas of the file system to separate databases. You can do this by using multiple configuration directories, each indexing a file system area to a specific database. Typically, this would be done to separate personal and shared indexes, or to take advantage of the organization of your data to improve search precision. The generated indexes can be queried concurrently in a transparent manner. For index generation, multiple configurations are totally independant from each other. When multiple indexes need to be used for a single search, some parameters should be consistent among the configurations. 2.1.3. Document types Recoll knows about quite a few different document types. The parameters for document types recognition and processing are set in configuration files. Most file types, like HTML or word processing files, only hold one document. Some file types, like email folders or zip archives, can hold many individually indexed documents, which may themselves be compound ones. Such hierarchies can go quite deep, and Recoll can process, for example, a LibreOffice document stored as an attachment to an email message inside an email folder archived in a zip file... Recoll indexing processes plain text, HTML, OpenDocument (Open/LibreOffice), email formats, and a few others internally. Other file types (ie: postscript, pdf, ms-word, rtf ...) need external applications for preprocessing. The list is in the installation section. After every indexing operation, Recoll updates a list of commands that would be needed for indexing existing files types. This list can be displayed by selecting the menu option File -> Show Missing Helpers in the recoll GUI. It is stored in the missing text file inside the configuration directory. By default, Recoll will try to index any file type that it has a way to read. This is sometimes not desirable, and there are ways to either exclude some types, or on the contrary to define a positive list of types to be indexed. In the latter case, any type not in the list will be ignored. Excluding types can be done by adding wildcard name patterns to the skippedNames list, which can be done from the GUI Index configuration menu. For versions 1.20 and later, you can alternatively set the excludedmimetypes list in the configuration file. This can be redefined for subdirectories. You can also define an exclusive list of MIME types to be indexed (no others will be indexed), by settting the indexedmimetypes configuration variable. Example: indexedmimetypes = text/html application/pdf It is possible to redefine this parameter for subdirectories. Example: [/path/to/my/dir] indexedmimetypes = application/pdf (When using sections like this, don't forget that they remain in effect until the end of the file or another section indicator). excludedmimetypes or indexedmimetypes, can be set either by editing the main configuration file (recoll.conf), or from the GUI index configuration tool. 2.1.4. Indexing failures Indexing may fail for some documents, for a number of reasons: a helper program may be missing, the document may be corrupt, we may fail to uncompress a file because no file system space is available, etc. Recoll versions prior to 1.21 always retried to index files which had previously caused an error. This guaranteed that anything that may have become indexable (for example because a helper had been installed) would be indexed. However this was bad for performance because some indexing failures may be quite costly (for example failing to uncompress a big file because of insufficient disk space). The indexer in Recoll versions 1.21 and later do not retry failed file by default. Retrying will only occur if an explicit option (-k) is set on the recollindex command line, or if a script executed when recollindex starts up says so. The script is defined by a configuration variable (checkneedretryindexscript), and makes a rather lame attempt at deciding if a helper command may have been installed, by checking if any of the common bin directories have changed. 2.1.5. Recovery In the rare case where the index becomes corrupted (which can signal itself by weird search results or crashes), the index files need to be erased before restarting a clean indexing pass. Just delete the xapiandb directory (see next section), or, alternatively, start the next recollindex with the -z option, which will reset the database before indexing. 2.2. Index storage The default location for the index data is the xapiandb subdirectory of the Recoll configuration directory, typically $HOME/.recoll/xapiandb/. This can be changed via two different methods (with different purposes): o You can specify a different configuration directory by setting the RECOLL_CONFDIR environment variable, or using the -c option to the Recoll commands. This method would typically be used to index different areas of the file system to different indexes. For example, if you were to issue the following commands: export RECOLL_CONFDIR=~/.indexes-email recoll Then Recoll would use configuration files stored in ~/.indexes-email/ and, (unless specified otherwise in recoll.conf) would look for the index in ~/.indexes-email/xapiandb/. Using multiple configuration directories and configuration options allows you to tailor multiple configurations and indexes to handle whatever subset of the available data you wish to make searchable. o For a given configuration directory, you can specify a non-default storage location for the index by setting the dbdir parameter in the configuration file (see the configuration section). This method would mainly be of use if you wanted to keep the configuration directory in its default location, but desired another location for the index, typically out of disk occupation concerns. The size of the index is determined by the size of the set of documents, but the ratio can vary a lot. For a typical mixed set of documents, the index size will often be close to the data set size. In specific cases (a set of compressed mbox files for example), the index can become much bigger than the documents. It may also be much smaller if the documents contain a lot of images or other non-indexed data (an extreme example being a set of mp3 files where only the tags would be indexed). Of course, images, sound and video do not increase the index size, which means that nowadays (2012), typically, even a big index will be negligible against the total amount of data on the computer. The index data directory (xapiandb) only contains data that can be completely rebuilt by an index run (as long as the original documents exist), and it can always be destroyed safely. 2.2.1. Xapian index formats Xapian versions usually support several formats for index storage. A given major Xapian version will have a current format, used to create new indexes, and will also support the format from the previous major version. Xapian will not convert automatically an existing index from the older format to the newer one. If you want to upgrade to the new format, or if a very old index needs to be converted because its format is not supported any more, you will have to explicitly delete the old index, then run a normal indexing process. Using the -z option to recollindex is not sufficient to change the format, you will have to delete all files inside the index directory (typically ~/.recoll/xapiandb) before starting the indexing. 2.2.2. Security aspects The Recoll index does not hold copies of the indexed documents. But it does hold enough data to allow for an almost complete reconstruction. If confidential data is indexed, access to the database directory should be restricted. Recoll (since version 1.4) will create the configuration directory with a mode of 0700 (access by owner only). As the index data directory is by default a sub-directory of the configuration directory, this should result in appropriate protection. If you use another setup, you should think of the kind of protection you need for your index, set the directory and files access modes appropriately, and also maybe adjust the umask used during index updates. 2.3. Index configuration Variables set inside the Recoll configuration files control which areas of the file system are indexed, and how files are processed. These variables can be set either by editing the text files or by using the dialogs in the recoll GUI. The first time you start recoll, you will be asked whether or not you would like it to build the index. If you want to adjust the configuration before indexing, just click Cancel at this point, which will get you into the configuration interface. If you exit at this point, recoll will have created a ~/.recoll directory containing empty configuration files, which you can edit by hand. The configuration is documented inside the installation chapter of this document, or in the recoll.conf(5) man page, but the most current information will most likely be the comments inside the sample file. The most immediately useful variable you may interested in is probably topdirs, which determines what subtrees get indexed. The applications needed to index file types other than text, HTML or email (ie: pdf, postscript, ms-word...) are described in the external packages section. As of Recoll 1.18 there are two incompatible types of Recoll indexes, depending on the treatment of character case and diacritics. The next section describes the two types in more detail. 2.3.1. Multiple indexes Multiple Recoll indexes can be created by using several configuration directories which are usually set to index different areas of the file system. A specific index can be selected for updating or searching, using the RECOLL_CONFDIR environment variable or the -c option to recoll and recollindex. A typical usage scenario for the multiple index feature would be for a system administrator to set up a central index for shared data, that you choose to search or not in addition to your personal data. Of course, there are other possibilities. There are many cases where you know the subset of files that should be searched, and where narrowing the search can improve the results. You can achieve approximately the same effect with the directory filter in advanced search, but multiple indexes will have much better performance and may be worth the trouble. A recollindex program instance can only update one specific index. The main index (defined by RECOLL_CONFDIR or -c) is always active. If this is undesirable, you can set up your base configuration to index an empty directory. The different search interfaces (GUI, command line, ...) have different methods to define the set of indexes to be used, see the appropriate section. If a set of multiple indexes are to be used together for searches, some configuration parameters must be consistent among the set. These are parameters which need to be the same when indexing and searching. As the parameters come from the main configuration when searching, they need to be compatible with what was set when creating the other indexes (which came from their respective configuration directories). Most importantly, all indexes to be queried concurrently must have the same option concerning character case and diacritics stripping, but there are other constraints. Most of the relevant parameters are described in the linked section. 2.3.2. Index case and diacritics sensitivity As of Recoll version 1.18 you have a choice of building an index with terms stripped of character case and diacritics, or one with raw terms. For a source term of Resume, the former will store resume, the latter Resume. Each type of index allows performing searches insensitive to case and diacritics: with a raw index, the user entry will be expanded to match all case and diacritics variations present in the index. With a stripped index, the search term will be stripped before searching. A raw index allows for another possibility which a stripped index cannot offer: using case and diacritics to discriminate between terms, returning different results when searching for US and us or resume and resume. Read the section about search case and diacritics sensitivity for more details. The type of index to be created is controlled by the indexStripChars configuration variable which can only be changed by editing the configuration file. Any change implies an index reset (not automated by Recoll), and all indexes in a search must be set in the same way (again, not checked by Recoll). If the indexStripChars is not set, Recoll 1.18 creates a stripped index by default, for compatibility with previous versions. As a cost for added capability, a raw index will be slightly bigger than a stripped one (around 10%). Also, searches will be more complex, so probably slightly slower, and the feature is still young, so that a certain amount of weirdness cannot be excluded. One of the most adverse consequence of using a raw index is that some phrase and proximity searches may become impossible: because each term needs to be expanded, and all combinations searched for, the multiplicative expansion may become unmanageable. 2.3.3. The index configuration GUI Most parameters for a given index configuration can be set from a recoll GUI running on this configuration (either as default, or by setting RECOLL_CONFDIR or the -c option.) The interface is started from the Preferences -> Index Configuration menu entry. It is divided in four tabs, Global parameters, Local parameters, Web history (which is explained in the next section) and Search parameters. The Global parameters tab allows setting global variables, like the lists of top directories, skipped paths, or stemming languages. The Local parameters tab allows setting variables that can be redefined for subdirectories. This second tab has an initially empty list of customisation directories, to which you can add. The variables are then set for the currently selected directory (or at the top level if the empty line is selected). The Search parameters section defines parameters which are used at query time, but are global to an index and affect all search tools, not only the GUI. The meaning for most entries in the interface is self-evident and documented by a ToolTip popup on the text label. For more detail, you will need to refer to the configuration section of this guide. The configuration tool normally respects the comments and most of the formatting inside the configuration file, so that it is quite possible to use it on hand-edited files, which you might nevertheless want to backup first... 2.4. Indexing WEB pages you wisit With the help of a Firefox extension, Recoll can index the Internet pages that you visit. The extension was initially designed for the Beagle indexer, but it has recently be renamed and better adapted to Recoll. The extension works by copying visited WEB pages to an indexing queue directory, which Recoll then processes, indexing the data, storing it into a local cache, then removing the file from the queue. This feature can be enabled in the GUI Index configuration panel, or by editing the configuration file (set processwebqueue to 1). A current pointer to the extension can be found, along with up-to-date instructions, on the Recoll wiki. A copy of the indexed WEB pages is retained by Recoll in a local cache (from which previews can be fetched). The cache size can be adjusted from the Index configuration / Web history panel. Once the maximum size is reached, old pages are purged - both from the cache and the index - to make room for new ones, so you need to explicitly archive in some other place the pages that you want to keep indefinitely. 2.5. Extended attributes data User extended attributes are named pieces of information that most modern file systems can attach to any file. Recoll versions 1.19 and later process extended attributes as document fields by default. For older versions, this has to be activated at build time. A freedesktop standard defines a few special attributes, which are handled as such by Recoll: mime_type If set, this overrides any other determination of the file MIME type. charset If set, this defines the file character set (mostly useful for plain text files). By default, other attributes are handled as Recoll fields. On Linux, the user prefix is removed from the name. This can be configured more precisely inside the fields configuration file. 2.6. Importing external tags During indexing, it is possible to import metadata for each file by executing commands. For example, this could extract user tag data for the file and store it in a field for indexing. See the section about the metadatacmds field in the main configuration chapter for more detail. 2.7. Periodic indexing 2.7.1. Running indexing Indexing is always performed by the recollindex program, which can be started either from the command line or from the File menu in the recoll GUI program. When started from the GUI, the indexing will run on the same configuration recoll was started on. When started from the command line, recollindex will use the RECOLL_CONFDIR variable or accept a -c confdir option to specify a non-default configuration directory. If the recoll program finds no index when it starts, it will automatically start indexing (except if canceled). The recollindex indexing process can be interrupted by sending an interrupt (Ctrl-C, SIGINT) or terminate (SIGTERM) signal. Some time may elapse before the process exits, because it needs to properly flush and close the index. This can also be done from the recoll GUI File -> Stop Indexing menu entry. After such an interruption, the index will be somewhat inconsistent because some operations which are normally performed at the end of the indexing pass will have been skipped (for example, the stemming and spelling databases will be inexistant or out of date). You just need to restart indexing at a later time to restore consistency. The indexing will restart at the interruption point (the full file tree will be traversed, but files that were indexed up to the interruption and for which the index is still up to date will not need to be reindexed). recollindex has a number of other options which are described in its man page. Only a few will be described here. Option -z will reset the index when starting. This is almost the same as destroying the index files (the nuance is that the Xapian format version will not be changed). Option -Z will force the update of all documents without resetting the index first. This will not have the "clean start" aspect of -z, but the advantage is that the index will remain available for querying while it is rebuilt, which can be a significant advantage if it is very big (some installations need days for a full index rebuild). Option -k will force retrying files which previously failed to be indexed, for example because of a missing helper program. Of special interest also, maybe, are the -i and -f options. -i allows indexing an explicit list of files (given as command line parameters or read on stdin). -f tells recollindex to ignore file selection parameters from the configuration. Together, these options allow building a custom file selection process for some area of the file system, by adding the top directory to the skippedPaths list and using an appropriate file selection method to build the file list to be fed to recollindex -if. Trivial example: find . -name indexable.txt -print | recollindex -if recollindex -i will not descend into subdirectories specified as parameters, but just add them as index entries. It is up to the external file selection method to build the complete file list. 2.7.2. Using cron to automate indexing The most common way to set up indexing is to have a cron task execute it every night. For example the following crontab entry would do it every day at 3:30AM (supposing recollindex is in your PATH): 30 3 * * * recollindex > /some/tmp/dir/recolltrace 2>&1 Or, using anacron: 1 15 su mylogin -c "recollindex recollindex > /tmp/rcltraceme 2>&1" As of version 1.17 the Recoll GUI has dialogs to manage crontab entries for recollindex. You can reach them from the Preferences -> Indexing Schedule menu. They only work with the good old cron, and do not give access to all features of cron scheduling. The usual command to edit your crontab is crontab -e (which will usually start the vi editor to edit the file). You may have more sophisticated tools available on your system. Please be aware that there may be differences between your usual interactive command line environment and the one seen by crontab commands. Especially the PATH variable may be of concern. Please check the crontab manual pages about possible issues. 2.8. Real time indexing Real time monitoring/indexing is performed by starting the recollindex -m command. With this option, recollindex will detach from the terminal and become a daemon, permanently monitoring file changes and updating the index. Under KDE, Gnome and some other desktop environments, the daemon can automatically started when you log in, by creating a desktop file inside the ~/.config/autostart directory. This can be done for you by the Recoll GUI. Use the Preferences->Indexing Schedule menu. With older X11 setups, starting the daemon is normally performed as part of the user session script. The rclmon.sh script can be used to easily start and stop the daemon. It can be found in the examples directory (typically /usr/local/[share/]recoll/examples). For example, my out of fashion xdm-based session has a .xsession script with the following lines at the end: recollconf=$HOME/.recoll-home recolldata=/usr/local/share/recoll RECOLL_CONFDIR=$recollconf $recolldata/examples/rclmon.sh start fvwm The indexing daemon gets started, then the window manager, for which the session waits. By default the indexing daemon will monitor the state of the X11 session, and exit when it finishes, it is not necessary to kill it explicitly. (The X11 server monitoring can be disabled with option -x to recollindex). If you use the daemon completely out of an X11 session, you need to add option -x to disable X11 session monitoring (else the daemon will not start). By default, the messages from the indexing daemon will be setn to the same file as those from the interactive commands (logfilename). You may want to change this by setting the daemlogfilename and daemloglevel configuration parameters. Also the log file will only be truncated when the daemon starts. If the daemon runs permanently, the log file may grow quite big, depending on the log level. When building Recoll, the real time indexing support can be customised during package configuration with the --with[out]-fam or --with[out]-inotify options. The default is currently to include inotify monitoring on systems that support it, and, as of Recoll 1.17, gamin support on FreeBSD. While it is convenient that data is indexed in real time, repeated indexing can generate a significant load on the system when files such as email folders change. Also, monitoring large file trees by itself significantly taxes system resources. You probably do not want to enable it if your system is short on resources. Periodic indexing is adequate in most cases. Increasing resources for inotify On Linux systems, monitoring a big tree may need increasing the resources available to inotify, which are normally defined in /etc/sysctl.conf. ### inotify # # cat /proc/sys/fs/inotify/max_queued_events - 16384 # cat /proc/sys/fs/inotify/max_user_instances - 128 # cat /proc/sys/fs/inotify/max_user_watches - 16384 # # -- Change to: # fs.inotify.max_queued_events=32768 fs.notify.max_user_instances=256 fs.inotify.max_user_watches=32768 Especially, you will need to trim your tree or adjust the max_user_watches value if indexing exits with a message about errno ENOSPC (28) from inotify_add_watch. 2.8.1. Slowing down the reindexing rate for fast changing files When using the real time monitor, it may happen that some files need to be indexed, but change so often that they impose an excessive load for the system. Recoll provides a configuration option to specify the minimum time before which a file, specified by a wildcard pattern, cannot be reindexed. See the mondelaypatterns parameter in the configuration section. Chapter 3. Searching 3.1. Searching with the Qt graphical user interface The recoll program provides the main user interface for searching. It is based on the Qt library. recoll has two search modes: o Simple search (the default, on the main screen) has a single entry field where you can enter multiple words. o Advanced search (a panel accessed through the Tools menu or the toolbox bar icon) has multiple entry fields, which you may use to build a logical condition, with additional filtering on file type, location in the file system, modification date, and size. In most cases, you can enter the terms as you think them, even if they contain embedded punctuation or other non-textual characters. For example, Recoll can handle things like email addresses, or arbitrary cut and paste from another text window, punctation and all. The main case where you should enter text differently from how it is printed is for east-asian languages (Chinese, Japanese, Korean). Words composed of single or multiple characters should be entered separated by white space in this case (they would typically be printed without white space). Some searches can be quite complex, and you may want to re-use them later, perhaps with some tweaking. Recoll versions 1.21 and later can save and restore searches, using XML files. See Saving and restoring queries. 3.1.1. Simple search 1. Start the recoll program. 2. Possibly choose a search mode: Any term, All terms, File name or Query language. 3. Enter search term(s) in the text field at the top of the window. 4. Click the Search button or hit the Enter key to start the search. The initial default search mode is Query language. Without special directives, this will look for documents containing all of the search terms (the ones with more terms will get better scores), just like the All terms mode which will ignore such directives. Any term will search for documents where at least one of the terms appear. The Query Language features are described in a separate section. All search modes allow wildcards inside terms (*, ?, []). You may want to have a look at the section about wildcards for more information about this. File name will specifically look for file names. The point of having a separate file name search is that wild card expansion can be performed more efficiently on a small subset of the index (allowing wild cards on the left of terms without excessive penality). Things to know: o White space in the entry should match white space in the file name, and is not treated specially. o The search is insensitive to character case and accents, independantly of the type of index. o An entry without any wild card character and not capitalized will be prepended and appended with '*' (ie: etc -> *etc*, but Etc -> etc). o If you have a big index (many files), excessively generic fragments may result in inefficient searches. You can search for exact phrases (adjacent words in a given order) by enclosing the input inside double quotes. Ex: "virtual reality". When using a stripped index, character case has no influence on search, except that you can disable stem expansion for any term by capitalizing it. Ie: a search for floor will also normally look for flooring, floored, etc., but a search for Floor will only look for floor, in any character case. Stemming can also be disabled globally in the preferences. When using a raw index, the rules are a bit more complicated. Recoll remembers the last few searches that you performed. You can use the simple search text entry widget (a combobox) to recall them (click on the thing at the right of the text field). Please note, however, that only the search texts are remembered, not the mode (all/any/file name). Typing Esc Space while entering a word in the simple search entry will open a window with possible completions for the word. The completions are extracted from the database. Double-clicking on a word in the result list or a preview window will insert it into the simple search entry field. You can cut and paste any text into an All terms or Any term search field, punctuation, newlines and all - except for wildcard characters (single ? characters are ok). Recoll will process it and produce a meaningful search. This is what most differentiates this mode from the Query Language mode, where you have to care about the syntax. You can use the Tools -> Advanced search dialog for more complex searches. 3.1.2. The default result list After starting a search, a list of results will instantly be displayed in the main list window. By default, the document list is presented in order of relevance (how well the system estimates that the document matches the query). You can sort the result by ascending or descending date by using the vertical arrows in the toolbar. Clicking on the Preview link for an entry will open an internal preview window for the document. Further Preview clicks for the same search will open tabs in the existing preview window. You can use Shift+Click to force the creation of another preview window, which may be useful to view the documents side by side. (You can also browse successive results in a single preview window by typing Shift+ArrowUp/Down in the window). Clicking the Open link will start an external viewer for the document. By default, Recoll lets the desktop choose the appropriate application for most document types (there is a short list of exceptions, see further). If you prefer to completely customize the choice of applications, you can uncheck the Use desktop preferences option in the GUI preferences dialog, and click the Choose editor applications button to adjust the predefined Recoll choices. The tool accepts multiple selections of MIME types (e.g. to set up the editor for the dozens of office file types). Even when Use desktop preferences is checked, there is a small list of exceptions, for MIME types where the Recoll choice should override the desktop one. These are applications which are well integrated with Recoll, especially evince for viewing PDF and Postscript files because of its support for opening the document at a specific page and passing a search string as an argument. Of course, you can edit the list (in the GUI preferences) if you would prefer to lose the functionality and use the standard desktop tool. You may also change the choice of applications by editing the mimeview configuration file if you find this more convenient. Each result entry also has a right-click menu with an Open With entry. This lets you choose an application from the list of those which registered with the desktop for the document MIME type. The Preview and Open edit links may not be present for all entries, meaning that Recoll has no configured way to preview a given file type (which was indexed by name only), or no configured external editor for the file type. This can sometimes be adjusted simply by tweaking the mimemap and mimeview configuration files (the latter can be modified with the user preferences dialog). The format of the result list entries is entirely configurable by using the preference dialog to edit an HTML fragment. You can click on the Query details link at the top of the results page to see the query actually performed, after stem expansion and other processing. Double-clicking on any word inside the result list or a preview window will insert it into the simple search text. The result list is divided into pages (the size of which you can change in the preferences). Use the arrow buttons in the toolbar or the links at the bottom of the page to browse the results. 3.1.2.1. No results: the spelling suggestions When a search yields no result, and if the aspell dictionary is configured, Recoll will try to check for misspellings among the query terms, and will propose lists of replacements. Clicking on one of the suggestions will replace the word and restart the search. You can hold any of the modifier keys (Ctrl, Shift, etc.) while clicking if you would rather stay on the suggestion screen because several terms need replacement. 3.1.2.2. The result list right-click menu Apart from the preview and edit links, you can display a pop-up menu by right-clicking over a paragraph in the result list. This menu has the following entries: o Preview o Open o Open With o Run Script o Copy File Name o Copy Url o Save to File o Find similar o Preview Parent document o Open Parent document o Open Snippets Window The Preview and Open entries do the same thing as the corresponding links. Open With lets you open the document with one of the applications claiming to be able to handle its MIME type (the information comes from the .desktop files in /usr/share/applications). Run Script allows starting an arbitrary command on the result file. It will only appear for results which are top-level files. See further for a more detailed description. The Copy File Name and Copy Url copy the relevant data to the clipboard, for later pasting. Save to File allows saving the contents of a result document to a chosen file. This entry will only appear if the document does not correspond to an existing file, but is a subdocument inside such a file (ie: an email attachment). It is especially useful to extract attachments with no associated editor. The Open/Preview Parent document entries allow working with the higher level document (e.g. the email message an attachment comes from). Recoll is sometimes not totally accurate as to what it can or can't do in this area. For example the Parent entry will also appear for an email which is part of an mbox folder file, but you can't actually visualize the mbox (there will be an error dialog if you try). If the document is a top-level file, Open Parent will start the default file manager on the enclosing filesystem directory. The Find similar entry will select a number of relevant term from the current document and enter them into the simple search field. You can then start a simple search, with a good chance of finding documents related to the current result. I can't remember a single instance where this function was actually useful to me... The Open Snippets Window entry will only appear for documents which support page breaks (typically PDF, Postscript, DVI). The snippets window lists extracts from the document, taken around search terms occurrences, along with the corresponding page number, as links which can be used to start the native viewer on the appropriate page. If the viewer supports it, its search function will also be primed with one of the search terms. 3.1.3. The result table In Recoll 1.15 and newer, the results can be displayed in spreadsheet-like fashion. You can switch to this presentation by clicking the table-like icon in the toolbar (this is a toggle, click again to restore the list). Clicking on the column headers will allow sorting by the values in the column. You can click again to invert the order, and use the header right-click menu to reset sorting to the default relevance order (you can also use the sort-by-date arrows to do this). Both the list and the table display the same underlying results. The sort order set from the table is still active if you switch back to the list mode. You can click twice on a date sort arrow to reset it from there. The header right-click menu allows adding or deleting columns. The columns can be resized, and their order can be changed (by dragging). All the changes are recorded when you quit recoll Hovering over a table row will update the detail area at the bottom of the window with the corresponding values. You can click the row to freeze the display. The bottom area is equivalent to a result list paragraph, with links for starting a preview or a native application, and an equivalent right-click menu. Typing Esc (the Escape key) will unfreeze the display. 3.1.4. Running arbitrary commands on result files (1.20 and later) Apart from the Open and Open With operations, which allow starting an application on a result document (or a temporary copy), based on its MIME type, it is also possible to run arbitrary commands on results which are top-level files, using the Run Script entry in the results pop-up menu. The commands which will appear in the Run Script submenu must be defined by .desktop files inside the scripts subdirectory of the current configuration directory. Here follows an example of a .desktop file, which could be named for example, ~/.recoll/scripts/myscript.desktop (the exact file name inside the directory is irrelevant): [Desktop Entry] Type=Application Name=MyFirstScript Exec=/home/me/bin/tryscript %F MimeType=*/* The Name attribute defines the label which will appear inside the Run Script menu. The Exec attribute defines the program to be run, which does not need to actually be a script, of course. The MimeType attribute is not used, but needs to exist. The commands defined this way can also be used from links inside the result paragraph. As an example, it might make sense to write a script which would move the document to the trash and purge it from the Recoll index. 3.1.5. Displaying thumbnails The default format for the result list entries and the detail area of the result table display an icon for each result document. The icon is either a generic one determined from the MIME type, or a thumbnail of the document appearance. Thumbnails are only displayed if found in the standard freedesktop location, where they would typically have been created by a file manager. Recoll has no capability to create thumbnails. A relatively simple trick is to use the Open parent document/folder entry in the result list popup menu. This should open a file manager window on the containing directory, which should in turn create the thumbnails (depending on your settings). Restarting the search should then display the thumbnails. There are also some pointers about thumbnail generation on the Recoll wiki. 3.1.6. The preview window The preview window opens when you first click a Preview link inside the result list. Subsequent preview requests for a given search open new tabs in the existing window (except if you hold the Shift key while clicking which will open a new window for side by side viewing). Starting another search and requesting a preview will create a new preview window. The old one stays open until you close it. You can close a preview tab by typing Ctrl-W (Ctrl + W) in the window. Closing the last tab for a window will also close the window. Of course you can also close a preview window by using the window manager button in the top of the frame. You can display successive or previous documents from the result list inside a preview tab by typing Shift+Down or Shift+Up (Down and Up are the arrow keys). A right-click menu in the text area allows switching between displaying the main text or the contents of fields associated to the document (ie: author, abtract, etc.). This is especially useful in cases where the term match did not occur in the main text but in one of the fields. In the case of images, you can switch between three displays: the image itself, the image metadata as extracted by exiftool and the fields, which is the metadata stored in the index. You can print the current preview window contents by typing Ctrl-P (Ctrl + P) in the window text. 3.1.6.1. Searching inside the preview The preview window has an internal search capability, mostly controlled by the panel at the bottom of the window, which works in two modes: as a classical editor incremental search, where we look for the text entered in the entry zone, or as a way to walk the matches between the document and the Recoll query that found it. Incremental text search The preview tabs have an internal incremental search function. You initiate the search either by typing a / (slash) or CTL-F inside the text area or by clicking into the Search for: text field and entering the search string. You can then use the Next and Previous buttons to find the next/previous occurrence. You can also type F3 inside the text area to get to the next occurrence. If you have a search string entered and you use Ctrl-Up/Ctrl-Down to browse the results, the search is initiated for each successive document. If the string is found, the cursor will be positioned at the first occurrence of the search string. Walking the match lists If the entry area is empty when you click the Next or Previous buttons, the editor will be scrolled to show the next match to any search term (the next highlighted zone). If you select a search group from the dropdown list and click Next or Previous, the match list for this group will be walked. This is not the same as a text search, because the occurences will include non-exact matches (as caused by stemming or wildcards). The search will revert to the text mode as soon as you edit the entry area. 3.1.7. The Query Fragments window Selecting the Tools -> Query Fragments menu entry will open a window with radio- and check-buttons which can be used to activate query language fragments for filtering the current query. This can be useful if you have frequent reusable selectors, for example, filtering on alternate directories, or searching just one category of files, not covered by the standard category selectors. The contents of the window are entirely customizable, and defined by the contents of the fragbuts.xml file inside the configuration directory. The sample file distributed with Recoll (which you should be able to find under /usr/share/recoll/examples/fragbuts.xml), contains an example which filters the results from the WEB history. Here follows an example: -rclbes:BGL rclbes:BGL date:2010-01-01/2010-12-31 dir:/my/great/directory Each radiobuttons or buttons section defines a line of checkbuttons or radiobuttons inside the window. Any number of buttons can be selected, but the radiobuttons in a line are exclusive. Each fragbut section defines the label for a button, and the Query Language fragment which will be added (as an AND filter) before performing the query if the button is active. This feature is new in Recoll 1.20, and will probably be refined depending on user feedback. 3.1.8. Complex/advanced search The advanced search dialog helps you build more complex queries without memorizing the search language constructs. It can be opened through the Tools menu or through the main toolbar. Recoll keeps a history of searches. See Advanced search history. The dialog has two tabs: 1. The first tab lets you specify terms to search for, and permits specifying multiple clauses which are combined to build the search. 2. The second tab lets filter the results according to file size, date of modification, MIME type, or location. Click on the Start Search button in the advanced search dialog, or type Enter in any text field to start the search. The button in the main window always performs a simple search. Click on the Show query details link at the top of the result page to see the query expansion. 3.1.8.1. Avanced search: the "find" tab This part of the dialog lets you constructc a query by combining multiple clauses of different types. Each entry field is configurable for the following modes: o All terms. o Any term. o None of the terms. o Phrase (exact terms in order within an adjustable window). o Proximity (terms in any order within an adjustable window). o Filename search. Additional entry fields can be created by clicking the Add clause button. When searching, the non-empty clauses will be combined either with an AND or an OR conjunction, depending on the choice made on the left (All clauses or Any clause). Entries of all types except "Phrase" and "Near" accept a mix of single words and phrases enclosed in double quotes. Stemming and wildcard expansion will be performed as for simple search. Phrases and Proximity searches. These two clauses work in similar ways, with the difference that proximity searches do not impose an order on the words. In both cases, an adjustable number (slack) of non-matched words may be accepted between the searched ones (use the counter on the left to adjust this count). For phrases, the default count is zero (exact match). For proximity it is ten (meaning that two search terms, would be matched if found within a window of twelve words). Examples: a phrase search for quick fox with a slack of 0 will match quick fox but not quick brown fox. With a slack of 1 it will match the latter, but not fox quick. A proximity search for quick fox with the default slack will match the latter, and also a fox is a cunning and quick animal. 3.1.8.2. Avanced search: the "filter" tab This part of the dialog has several sections which allow filtering the results of a search according to a number of criteria o The first section allows filtering by dates of last modification. You can specify both a minimum and a maximum date. The initial values are set according to the oldest and newest documents found in the index. o The next section allows filtering the results by file size. There are two entries for minimum and maximum size. Enter decimal numbers. You can use suffix multipliers: k/K, m/M, g/G, t/T for 1E3, 1E6, 1E9, 1E12 respectively. o The next section allows filtering the results by their MIME types, or MIME categories (ie: media/text/message/etc.). You can transfer the types between two boxes, to define which will be included or excluded by the search. The state of the file type selection can be saved as the default (the file type filter will not be activated at program start-up, but the lists will be in the restored state). o The bottom section allows restricting the search results to a sub-tree of the indexed area. You can use the Invert checkbox to search for files not in the sub-tree instead. If you use directory filtering often and on big subsets of the file system, you may think of setting up multiple indexes instead, as the performance may be better. You can use relative/partial paths for filtering. Ie, entering dirA/dirB would match either /dir1/dirA/dirB/myfile1 or /dir2/dirA/dirB/someother/myfile2. 3.1.8.3. Avanced search history The advanced search tool memorizes the last 100 searches performed. You can walk the saved searches by using the up and down arrow keys while the keyboard focus belongs to the advanced search dialog. The complex search history can be erased, along with the one for simple search, by selecting the File -> Erase Search History menu entry. 3.1.9. The term explorer tool Recoll automatically manages the expansion of search terms to their derivatives (ie: plural/singular, verb inflections). But there are other cases where the exact search term is not known. For example, you may not remember the exact spelling, or only know the beginning of the name. The search will only propose replacement terms with spelling variations when no matching document were found. In some cases, both proper spellings and mispellings are present in the index, and it may be interesting to look for them explicitely. The term explorer tool (started from the toolbar icon or from the Term explorer entry of the Tools menu) can be used to search the full index terms list. It has three modes of operations: Wildcard In this mode of operation, you can enter a search string with shell-like wildcards (*, ?, []). ie: xapi* would display all index terms beginning with xapi. (More about wildcards here). Regular expression This mode will accept a regular expression as input. Example: word[0-9]+. The expression is implicitely anchored at the beginning. Ie: press will match pression but not expression. You can use .*press to match the latter, but be aware that this will cause a full index term list scan, which can be quite long. Stem expansion This mode will perform the usual stem expansion normally done as part user input processing. As such it is probably mostly useful to demonstrate the process. Spelling/Phonetic In this mode, you enter the term as you think it is spelled, and Recoll will do its best to find index terms that sound like your entry. This mode uses the Aspell spelling application, which must be installed on your system for things to work (if your documents contain non-ascii characters, Recoll needs an aspell version newer than 0.60 for UTF-8 support). The language which is used to build the dictionary out of the index terms (which is done at the end of an indexing pass) is the one defined by your NLS environment. Weird things will probably happen if languages are mixed up. Note that in cases where Recoll does not know the beginning of the string to search for (ie a wildcard expression like *coll), the expansion can take quite a long time because the full index term list will have to be processed. The expansion is currently limited at 10000 results for wildcards and regular expressions. It is possible to change the limit in the configuration file. Double-clicking on a term in the result list will insert it into the simple search entry field. You can also cut/paste between the result list and any entry field (the end of lines will be taken care of). 3.1.10. Multiple indexes See the section describing the use of multiple indexes for generalities. Only the aspects concerning the recoll GUI are described here. A recoll program instance is always associated with a specific index, which is the one to be updated when requested from the File menu, but it can use any number of Recoll indexes for searching. The external indexes can be selected through the external indexes tab in the preferences dialog. Index selection is performed in two phases. A set of all usable indexes must first be defined, and then the subset of indexes to be used for searching. These parameters are retained across program executions (there are kept separately for each Recoll configuration). The set of all indexes is usually quite stable, while the active ones might typically be adjusted quite frequently. The main index (defined by RECOLL_CONFDIR) is always active. If this is undesirable, you can set up your base configuration to index an empty directory. When adding a new index to the set, you can select either a Recoll configuration directory, or directly a Xapian index directory. In the first case, the Xapian index directory will be obtained from the selected configuration. As building the set of all indexes can be a little tedious when done through the user interface, you can use the RECOLL_EXTRA_DBS environment variable to provide an initial set. This might typically be set up by a system administrator so that every user does not have to do it. The variable should define a colon-separated list of index directories, ie: export RECOLL_EXTRA_DBS=/some/place/xapiandb:/some/other/db Another environment variable, RECOLL_ACTIVE_EXTRA_DBS allows adding to the active list of indexes. This variable was suggested and implemented by a Recoll user. It is mostly useful if you use scripts to mount external volumes with Recoll indexes. By using RECOLL_EXTRA_DBS and RECOLL_ACTIVE_EXTRA_DBS, you can add and activate the index for the mounted volume when starting recoll. RECOLL_ACTIVE_EXTRA_DBS is available for Recoll versions 1.17.2 and later. A change was made in the same update so that recoll will automatically deactivate unreachable indexes when starting up. 3.1.11. Document history Documents that you actually view (with the internal preview or an external tool) are entered into the document history, which is remembered. You can display the history list by using the Tools/Doc History menu entry. You can erase the document history by using the Erase document history entry in the File menu. 3.1.12. Sorting search results and collapsing duplicates The documents in a result list are normally sorted in order of relevance. It is possible to specify a different sort order, either by using the vertical arrows in the GUI toolbox to sort by date, or switching to the result table display and clicking on any header. The sort order chosen inside the result table remains active if you switch back to the result list, until you click one of the vertical arrows, until both are unchecked (you are back to sort by relevance). Sort parameters are remembered between program invocations, but result sorting is normally always inactive when the program starts. It is possible to keep the sorting activation state between program invocations by checking the Remember sort activation state option in the preferences. It is also possible to hide duplicate entries inside the result list (documents with the exact same contents as the displayed one). The test of identity is based on an MD5 hash of the document container, not only of the text contents (so that ie, a text document with an image added will not be a duplicate of the text only). Duplicates hiding is controlled by an entry in the GUI configuration dialog, and is off by default. As of release 1.19, when a result document does have undisplayed duplicates, a Dups link will be shown with the result list entry. Clicking the link will display the paths (URLs + ipaths) for the duplicate entries. 3.1.13. Search tips, shortcuts 3.1.13.1. Terms and search expansion Term completion. Typing Esc Space in the simple search entry field while entering a word will either complete the current word if its beginning matches a unique term in the index, or open a window to propose a list of completions. Picking up new terms from result or preview text. Double-clicking on a word in the result list or in a preview window will copy it to the simple search entry field. Wildcards. Wildcards can be used inside search terms in all forms of searches. More about wildcards. Automatic suffixes. Words like odt or ods can be automatically turned into query language ext:xxx clauses. This can be enabled in the Search preferences panel in the GUI. Disabling stem expansion. Entering a capitalized word in any search field will prevent stem expansion (no search for gardening if you enter Garden instead of garden). This is the only case where character case should make a difference for a Recoll search. You can also disable stem expansion or change the stemming language in the preferences. Finding related documents. Selecting the Find similar documents entry in the result list paragraph right-click menu will select a set of "interesting" terms from the current result, and insert them into the simple search entry field. You can then possibly edit the list and start a search to find documents which may be apparented to the current result. File names. File names are added as terms during indexing, and you can specify them as ordinary terms in normal search fields (Recoll used to index all directories in the file path as terms. This has been abandoned as it did not seem really useful). Alternatively, you can use the specific file name search which will only look for file names, and may be faster than the generic search especially when using wildcards. 3.1.13.2. Working with phrases and proximity Phrases and Proximity searches. A phrase can be looked for by enclosing it in double quotes. Example: "user manual" will look only for occurrences of user immediately followed by manual. You can use the This phrase field of the advanced search dialog to the same effect. Phrases can be entered along simple terms in all simple or advanced search entry fields (except This exact phrase). AutoPhrases. This option can be set in the preferences dialog. If it is set, a phrase will be automatically built and added to simple searches when looking for Any terms. This will not change radically the results, but will give a relevance boost to the results where the search terms appear as a phrase. Ie: searching for virtual reality will still find all documents where either virtual or reality or both appear, but those which contain virtual reality should appear sooner in the list. Phrase searches can strongly slow down a query if most of the terms in the phrase are common. This is why the autophrase option is off by default for Recoll versions before 1.17. As of version 1.17, autophrase is on by default, but very common terms will be removed from the constructed phrase. The removal threshold can be adjusted from the search preferences. Phrases and abbreviations. As of Recoll version 1.17, dotted abbreviations like I.B.M. are also automatically indexed as a word without the dots: IBM. Searching for the word inside a phrase (ie: "the IBM company") will only match the dotted abrreviation if you increase the phrase slack (using the advanced search panel control, or the o query language modifier). Literal occurences of the word will be matched normally. 3.1.13.3. Others Using fields. You can use the query language and field specifications to only search certain parts of documents. This can be especially helpful with email, for example only searching emails from a specific originator: search tips from:helpfulgui Ajusting the result table columns. When displaying results in table mode, you can use a right click on the table headers to activate a pop-up menu which will let you adjust what columns are displayed. You can drag the column headers to adjust their order. You can click them to sort by the field displayed in the column. You can also save the result list in CSV format. Changing the GUI geometry. It is possible to configure the GUI in wide form factor by dragging the toolbars to one of the sides (their location is remembered between sessions), and moving the category filters to a menu (can be set in the Preferences -> GUI configuration -> User interface panel). Query explanation. You can get an exact description of what the query looked for, including stem expansion, and Boolean operators used, by clicking on the result list header. Advanced search history. As of Recoll 1.18, you can display any of the last 100 complex searches performed by using the up and down arrow keys while the advanced search panel is active. Browsing the result list inside a preview window. Entering Shift-Down or Shift-Up (Shift + an arrow key) in a preview window will display the next or the previous document from the result list. Any secondary search currently active will be executed on the new document. Scrolling the result list from the keyboard. You can use PageUp and PageDown to scroll the result list, Shift+Home to go back to the first page. These work even while the focus is in the search entry. Result table: moving the focus to the table. You can use Ctrl-r to move the focus from the search entry to the table, and then use the arrow keys to change the current row. Ctrl-Shift-s returns to the search. Result table: open / preview. With the focus in the result table, you can use Ctrl-o to open the document from the current row, Ctrl-Shift-o to open the document and close recoll, Ctrl-d to preview the document. Editing a new search while the focus is not in the search entry. You can use the Ctrl-Shift-S shortcut to return the cursor to the search entry (and select the current search text), while the focus is anywhere in the main window. Forced opening of a preview window. You can use Shift+Click on a result list Preview link to force the creation of a preview window instead of a new tab in the existing one. Closing previews. Entering Ctrl-W in a tab will close it (and, for the last tab, close the preview window). Entering Esc will close the preview window and all its tabs. Printing previews. Entering Ctrl-P in a preview window will print the currently displayed text. Quitting. Entering Ctrl-Q almost anywhere will close the application. 3.1.14. Saving and restoring queries (1.21 and later) Both simple and advanced query dialogs save recent history, but the amount is limited: old queries will eventually be forgotten. Also, important queries may be difficult to find among others. This is why both types of queries can also be explicitely saved to files, from the GUI menus: File -> Save last query / Load last query The default location for saved queries is a subdirectory of the current configuration directory, but saved queries are ordinary files and can be written or moved anywhere. Some of the saved query parameters are part of the preferences (e.g. autophrase or the active external indexes), and may differ when the query is loaded from the time it was saved. In this case, Recoll will warn of the differences, but will not change the user preferences. 3.1.15. Customizing the search interface You can customize some aspects of the search interface by using the GUI configuration entry in the Preferences menu. There are several tabs in the dialog, dealing with the interface itself, the parameters used for searching and returning results, and what indexes are searched. User interface parameters: o Highlight color for query terms: Terms from the user query are highlighted in the result list samples and the preview window. The color can be chosen here. Any Qt color string should work (ie red, #ff0000). The default is blue. o Style sheet: The name of a Qt style sheet text file which is applied to the whole Recoll application on startup. The default value is empty, but there is a skeleton style sheet (recoll.qss) inside the /usr/share/recoll/examples directory. Using a style sheet, you can change most recoll graphical parameters: colors, fonts, etc. See the sample file for a few simple examples. You should be aware that parameters (e.g.: the background color) set inside the Recoll GUI style sheet will override global system preferences, with possible strange side effects: for example if you set the foreground to a light color and the background to a dark one in the desktop preferences, but only the background is set inside the Recoll style sheet, and it is light too, then text will appear light-on-light inside the Recoll GUI. o Maximum text size highlighted for preview Inserting highlights on search term inside the text before inserting it in the preview window involves quite a lot of processing, and can be disabled over the given text size to speed up loading. o Prefer HTML to plain text for preview if set, Recoll will display HTML as such inside the preview window. If this causes problems with the Qt HTML display, you can uncheck it to display the plain text version instead. o Plain text to HTML line style: when displaying plain text inside the preview window, Recoll tries to preserve some of the original text line breaks and indentation. It can either use PRE HTML tags, which will well preserve the indentation but will force horizontal scrolling for long lines, or use BR tags to break at the original line breaks, which will let the editor introduce other line breaks according to the window width, but will lose some of the original indentation. The third option has been available in recent releases and is probably now the best one: use PRE tags with line wrapping. o Choose editor applicationsr: this opens a dialog which allows you to select the application to be used to open each MIME type. The default is nornally to use the xdg-open utility, but you can override it. o Exceptions: even wen xdg-open is used by default for opening documents, you can set exceptions for MIME types that will still be opened according to Recoll preferences. This is useful for passing parameters like page numbers or search strings to applications that support them (e.g. evince). This cannot be done with xdg-open which only supports passing one parameter. o Document filter choice style: this will let you choose if the document categories are displayed as a list or a set of buttons, or a menu. o Start with simple search mode: this lets you choose the value of the simple search type on program startup. Either a fixed value (e.g. Query Language, or the value in use when the program last exited. o Auto-start simple search on white space entry: if this is checked, a search will be executed each time you enter a space in the simple search input field. This lets you look at the result list as you enter new terms. This is off by default, you may like it or not... o Start with advanced search dialog open : If you use this dialog frequently, checking the entries will get it to open when recoll starts. o Remember sort activation state if set, Recoll will remember the sort tool stat between invocations. It normally starts with sorting disabled. Result list parameters: o Number of results in a result page o Result list font: There is quite a lot of information shown in the result list, and you may want to customize the font and/or font size. The rest of the fonts used by Recoll are determined by your generic Qt config (try the qtconfig command). o Edit result list paragraph format string: allows you to change the presentation of each result list entry. See the result list customisation section. o Edit result page HTML header insert: allows you to define text inserted at the end of the result page HTML header. More detail in the result list customisation section. o Date format: allows specifying the format used for displaying dates inside the result list. This should be specified as an strftime() string (man strftime). o Abstract snippet separator: for synthetic abstracts built from index data, which are usually made of several snippets from different parts of the document, this defines the snippet separator, an ellipsis by default. Search parameters: o Hide duplicate results: decides if result list entries are shown for identical documents found in different places. o Stemming language: stemming obviously depends on the document's language. This listbox will let you chose among the stemming databases which were built during indexing (this is set in the main configuration file), or later added with recollindex -s (See the recollindex manual). Stemming languages which are dynamically added will be deleted at the next indexing pass unless they are also added in the configuration file. o Automatically add phrase to simple searches: a phrase will be automatically built and added to simple searches when looking for Any terms. This will give a relevance boost to the results where the search terms appear as a phrase (consecutive and in order). o Autophrase term frequency threshold percentage: very frequent terms should not be included in automatic phrase searches for performance reasons. The parameter defines the cutoff percentage (percentage of the documents where the term appears). o Replace abstracts from documents: this decides if we should synthesize and display an abstract in place of an explicit abstract found within the document itself. o Dynamically build abstracts: this decides if Recoll tries to build document abstracts (lists of snippets) when displaying the result list. Abstracts are constructed by taking context from the document information, around the search terms. o Synthetic abstract size: adjust to taste... o Synthetic abstract context words: how many words should be displayed around each term occurrence. o Query language magic file name suffixes: a list of words which automatically get turned into ext:xxx file name suffix clauses when starting a query language query (ie: doc xls xlsx...). This will save some typing for people who use file types a lot when querying. External indexes: This panel will let you browse for additional indexes that you may want to search. External indexes are designated by their database directory (ie: /home/someothergui/.recoll/xapiandb, /usr/local/recollglobal/xapiandb). Once entered, the indexes will appear in the External indexes list, and you can chose which ones you want to use at any moment by checking or unchecking their entries. Your main database (the one the current configuration indexes to), is always implicitly active. If this is not desirable, you can set up your configuration so that it indexes, for example, an empty directory. An alternative indexer may also need to implement a way of purging the index from stale data, 3.1.15.1. The result list format Newer versions of Recoll (from 1.17) normally use WebKit HTML widgets for the result list and the snippets window (this may be disabled at build time). Total customisation is possible with full support for CSS and Javascript. Conversely, there are limits to what you can do with the older Qt QTextBrowser, but still, it is possible to decide what data each result will contain, and how it will be displayed. The result list presentation can be exhaustively customized by adjusting two elements: o The paragraph format o HTML code inside the header section. For versions 1.21 and later, this is also used for the snippets window The paragraph format and the header fragment can be edited from the Result list tab of the GUI configuration. The header fragment is used both for the result list and the snippets window. The snippets list is a table and has a snippets class attribute. Each paragraph in the result list is a table, with class respar, but this can be changed by editing the paragraph format. There are a few examples on the page about customising the result list on the Recoll web site. The paragraph format This is an arbitrary HTML string where the following printf-like % substitutions will be performed: o %A. Abstract o %D. Date o %I. Icon image name. This is normally determined from the MIME type. The associations are defined inside the mimeconf configuration file. If a thumbnail for the file is found at the standard Freedesktop location, this will be displayed instead. o %K. Keywords (if any) o %L. Precooked Preview, Edit, and possibly Snippets links o %M. MIME type o %N. result Number inside the result page o %P. Parent folder Url. In the case of an embedded document, this is the parent folder for the top level container file. o %R. Relevance percentage o %S. Size information o %T. Title or Filename if not set. o %t. Title or Filename if not set. o %U. Url The format of the Preview, Edit, and Snippets links is , and where docnum (%N) expands to the document number inside the result page). A link target defined as "F%N" will open the document corresponding to the %P parent folder expansion, usually creating a file manager window on the folder where the container file resides. E.g.: %P A link target defined as R%N|scriptname will run the corresponding script on the result file (if the document is embedded, the script will be started on the top-level parent). See the section about defining scripts. In addition to the predefined values above, all strings like %(fieldname) will be replaced by the value of the field named fieldname for this document. Only stored fields can be accessed in this way, the value of indexed but not stored fields is not known at this point in the search process (see field configuration). There are currently very few fields stored by default, apart from the values above (only author and filename), so this feature will need some custom local configuration to be useful. An example candidate would be the recipient field which is generated by the message input handlers. The default value for the paragraph format string is: "\n" "\n" "\n" "\n" "
%L  %S   %T
\n" "%M %D    %U %i
\n" "%A %K
\n" You may, for example, try the following for a more web-like experience: %T
%A%U - %S - %L Note that the P%N link in the above paragraph makes the title a preview link. Or the clean looking: %L %R   %T&
%S  %U
%A
%K These samples, and some others are on the web site, with pictures to show how they look. It is also possible to define the value of the snippet separator inside the abstract section. 3.2. Searching with the KDE KIO slave 3.2.1. What's this The Recoll KIO slave allows performing a Recoll search by entering an appropriate URL in a KDE open dialog, or with an HTML-based interface displayed in Konqueror. The HTML-based interface is similar to the Qt-based interface, but slightly less powerful for now. Its advantage is that you can perform your search while staying fully within the KDE framework: drag and drop from the result list works normally and you have your normal choice of applications for opening files. The alternative interface uses a directory view of search results. Due to limitations in the current KIO slave interface, it is currently not obviously useful (to me). The interface is described in more detail inside a help file which you can access by entering recoll:/ inside the konqueror URL line (this works only if the recoll KIO slave has been previously installed). The instructions for building this module are located in the source tree. See: kde/kio/recoll/00README.txt. Some Linux distributions do package the kio-recoll module, so check before diving into the build process, maybe it's already out there ready for one-click installation. 3.2.2. Searchable documents As a sample application, the Recoll KIO slave could allow preparing a set of HTML documents (for example a manual) so that they become their own search interface inside konqueror. This can be done by either explicitly inserting links around some document areas, or automatically by adding a very small javascript program to the documents, like the following example, which would initiate a search by double-clicking any term: .... 3.3. Searching on the command line There are several ways to obtain search results as a text stream, without a graphical interface: o By passing option -t to the recoll program. o By using the recollq program. o By writing a custom Python program, using the Recoll Python API. The first two methods work in the same way and accept/need the same arguments (except for the additional -t to recoll). The query to be executed is specified as command line arguments. recollq is not built by default. You can use the Makefile in the query directory to build it. This is a very simple program, and if you can program a little c++, you may find it useful to taylor its output format to your needs. Not that recollq is only really useful on systems where the Qt libraries (or even the X11 ones) are not available. Otherwise, just use recoll -t, which takes the exact same parameters and options which are described for recollq recollq has a man page (not installed by default, look in the doc/man directory). The Usage string is as follows: recollq: usage: -P: Show the date span for all the documents present in the index [-o|-a|-f] [-q] Runs a recoll query and displays result lines. Default: will interpret the argument(s) as a xesam query string query may be like: implicit AND, Exclusion, field spec: t1 -t2 title:t3 OR has priority: t1 OR t2 t3 OR t4 means (t1 OR t2) AND (t3 OR t4) Phrase: "t1 t2" (needs additional quoting on cmd line) -o Emulate the GUI simple search in ANY TERM mode -a Emulate the GUI simple search in ALL TERMS mode -f Emulate the GUI simple search in filename mode -q is just ignored (compatibility with the recoll GUI command line) Common options: -c : specify config directory, overriding $RECOLL_CONFDIR -d also dump file contents -n [first-] define the result slice. The default value for [first] is 0. Without the option, the default max count is 2000. Use n=0 for no limit -b : basic. Just output urls, no mime types or titles -Q : no result lines, just the processed query and result count -m : dump the whole document meta[] array for each result -A : output the document abstracts -S fld : sort by field -s stemlang : set stemming language to use (must exist in index...) Use -s "" to turn off stem expansion -D : sort descending -i : additional index, several can be given -e use url encoding (%xx) for urls -F : output exactly these fields for each result. The field values are encoded in base64, output in one line and separated by one space character. This is the recommended format for use by other programs. Use a normal query with option -m to see the field names. Sample execution: recollq 'ilur -nautique mime:text/html' Recoll query: ((((ilur:(wqf=11) OR ilurs) AND_NOT (nautique:(wqf=11) OR nautiques OR nautiqu OR nautiquement)) FILTER Ttext/html)) 4 results text/html [file:///Users/uncrypted-dockes/projets/bateaux/ilur/comptes.html] [comptes.html] 18593 bytes text/html [file:///Users/uncrypted-dockes/projets/nautique/webnautique/articles/ilur1/index.html] [Constructio... text/html [file:///Users/uncrypted-dockes/projets/pagepers/index.html] [psxtcl/writemime/recoll]... text/html [file:///Users/uncrypted-dockes/projets/bateaux/ilur/factEtCie/recu-chasse-maree.... 3.4. Path translations In some cases, the document paths stored inside the index do not match the actual ones, so that document previews and accesses will fail. This can occur in a number of circumstances: o When using multiple indexes it is a relatively common occurrence that some will actually reside on a remote volume, for exemple mounted via NFS. In this case, the paths used to access the documents on the local machine are not necessarily the same than the ones used while indexing on the remote machine. For example, /home/me may have been used as a topdirs elements while indexing, but the directory might be mounted as /net/server/home/me on the local machine. o The case may also occur with removable disks. It is perfectly possible to configure an index to live with the documents on the removable disk, but it may happen that the disk is not mounted at the same place so that the documents paths from the index are invalid. o As a last exemple, one could imagine that a big directory has been moved, but that it is currently inconvenient to run the indexer. More generally, the path translation facility may be useful whenever the documents paths seen by the indexer are not the same as the ones which should be used at query time. Recoll has a facility for rewriting access paths when extracting the data from the index. The translations can be defined for the main index and for any additional query index. In the above NFS example, Recoll could be instructed to rewrite any file:///home/me URL from the index to file:///net/server/home/me, allowing accesses from the client. The translations are defined in the ptrans configuration file, which can be edited by hand or from the GUI external indexes configuration dialog. 3.5. The query language The query language processor is activated in the GUI simple search entry when the search mode selector is set to Query Language. It can also be used with the KIO slave or the command line search. It broadly has the same capabilities as the complex search interface in the GUI. The language is based on the (seemingly defunct) Xesam user search language specification. If the results of a query language search puzzle you and you doubt what has been actually searched for, you can use the GUI Show Query link at the top of the result list to check the exact query which was finally executed by Xapian. Here follows a sample request that we are going to explain: author:"john doe" Beatles OR Lennon Live OR Unplugged -potatoes This would search for all documents with John Doe appearing as a phrase in the author field (exactly what this is would depend on the document type, ie: the From: header, for an email message), and containing either beatles or lennon and either live or unplugged but not potatoes (in any part of the document). An element is composed of an optional field specification, and a value, separated by a colon (the field separator is the last colon in the element). Examples: Eugenie, author:balzac, dc:title:grandet dc:title:"eugenie grandet" The colon, if present, means "contains". Xesam defines other relations, which are mostly unsupported for now (except in special cases, described further down). All elements in the search entry are normally combined with an implicit AND. It is possible to specify that elements be OR'ed instead, as in Beatles OR Lennon. The OR must be entered literally (capitals), and it has priority over the AND associations: word1 word2 OR word3 means word1 AND (word2 OR word3) not (word1 AND word2) OR word3. Explicit parenthesis are not supported. As of Recoll 1.21, you can use parentheses to group elements, which will sometimes make things clearer, and may allow expressing combinations which would have been difficult otherwise. An element preceded by a - specifies a term that should not appear. As usual, words inside quotes define a phrase (the order of words is significant), so that title:"prejudice pride" is not the same as title:prejudice title:pride, and is unlikely to find a result. Words inside phrases and capitalized words are not stem-expanded. Wildcards may be used anywhere inside a term. Specifying a wild-card on the left of a term can produce a very slow search (or even an incorrect one if the expansion is truncated because of excessive size). Also see More about wildcards. To save you some typing, recent Recoll versions (1.20 and later) interpret a comma-separated list of terms as an AND list inside the field. Use slash characters ('/') for an OR list. No white space is allowed. So author:john,lennon will search for documents with john and lennon inside the author field (in any order), and author:john/ringo would search for john or ringo. Modifiers can be set on a double-quote value, for example to specify a proximity search (unordered). See the modifier section. No space must separate the final double-quote and the modifiers value, e.g. "two one"po10 Recoll currently manages the following default fields: o title, subject or caption are synonyms which specify data to be searched for in the document title or subject. o author or from for searching the documents originators. o recipient or to for searching the documents recipients. o keyword for searching the document-specified keywords (few documents actually have any). o filename for the document's file name. This is not necessarily set for all documents: internal documents contained inside a compound one (for example an EPUB section) do not inherit the container file name any more, this was replaced by an explicit field (see next). Sub-documents can still have a specific filename, if it is implied by the document format, for example the attachment file name for an email attachment. o containerfilename. This is set for all documents, both top-level and contained sub-documents, and is always the name of the filesystem directory entry which contains the data. The terms from this field can only be matched by an explicit field specification (as opposed to terms from filename which are also indexed as general document content). This avoids getting matches for all the sub-documents when searching for the container file name. o ext specifies the file name extension (Ex: ext:html) Recoll 1.20 and later have a way to specify aliases for the field names, which will save typing, for example by aliasing filename to fn or containerfilename to cfn. See the section about the fields file The field syntax also supports a few field-like, but special, criteria: o dir for filtering the results on file location (Ex: dir:/home/me/somedir). -dir also works to find results not in the specified directory (release >= 1.15.8). Tilde expansion will be performed as usual (except for a bug in versions 1.19 to 1.19.11p1). Wildcards will be expanded, but please have a look at an important limitation of wildcards in path filters. Relative paths also make sense, for example, dir:share/doc would match either /usr/share/doc or /usr/local/share/doc Several dir clauses can be specified, both positive and negative. For example the following makes sense: dir:recoll dir:src -dir:utils -dir:common This would select results which have both recoll and src in the path (in any order), and which have not either utils or common. You can also use OR conjunctions with dir: clauses. A special aspect of dir clauses is that the values in the index are not transcoded to UTF-8, and never lower-cased or unaccented, but stored as binary. This means that you need to enter the values in the exact lower or upper case, and that searches for names with diacritics may sometimes be impossible because of character set conversion issues. Non-ASCII UNIX file paths are an unending source of trouble and are best avoided. You need to use double-quotes around the path value if it contains space characters. o size for filtering the results on file size. Example: size<10000. You can use <, > or = as operators. You can specify a range like the following: size>100 size<1000. The usual k/K, m/M, g/G, t/T can be used as (decimal) multipliers. Ex: size>1k to search for files bigger than 1000 bytes. o date for searching or filtering on dates. The syntax for the argument is based on the ISO8601 standard for dates and time intervals. Only dates are supported, no times. The general syntax is 2 elements separated by a / character. Each element can be a date or a period of time. Periods are specified as PnYnMnD. The n numbers are the respective numbers of years, months or days, any of which may be missing. Dates are specified as YYYY-MM-DD. The days and months parts may be missing. If the / is present but an element is missing, the missing element is interpreted as the lowest or highest date in the index. Examples: o 2001-03-01/2002-05-01 the basic syntax for an interval of dates. o 2001-03-01/P1Y2M the same specified with a period. o 2001/ from the beginning of 2001 to the latest date in the index. o 2001 the whole year of 2001 o P2D/ means 2 days ago up to now if there are no documents with dates in the future. o /2003 all documents from 2003 or older. Periods can also be specified with small letters (ie: p2y). o mime or format for specifying the MIME type. This one is quite special because you can specify several values which will be OR'ed (the normal default for the language is AND). Ex: mime:text/plain mime:text/html. Specifying an explicit boolean operator before a mime specification is not supported and will produce strange results. You can filter out certain types by using negation (-mime:some/type), and you can use wildcards in the value (mime:text/*). Note that mime is the ONLY field with an OR default. You do need to use OR with ext terms for example. o type or rclcat for specifying the category (as in text/media/presentation/etc.). The classification of MIME types in categories is defined in the Recoll configuration (mimeconf), and can be modified or extended. The default category names are those which permit filtering results in the main GUI screen. Categories are OR'ed like MIME types above. This can't be negated with - either. The document input handlers used while indexing have the possibility to create other fields with arbitrary names, and aliases may be defined in the configuration, so that the exact field search possibilities may be different for you if someone took care of the customisation. 3.5.1. Modifiers Some characters are recognized as search modifiers when found immediately after the closing double quote of a phrase, as in "some term"modifierchars. The actual "phrase" can be a single term of course. Supported modifiers: o l can be used to turn off stemming (mostly makes sense with p because stemming is off by default for phrases). o o can be used to specify a "slack" for phrase and proximity searches: the number of additional terms that may be found between the specified ones. If o is followed by an integer number, this is the slack, else the default is 10. o p can be used to turn the default phrase search into a proximity one (unordered). Example:"order any in"p o C will turn on case sensitivity (if the index supports it). o D will turn on diacritics sensitivity (if the index supports it). o A weight can be specified for a query element by specifying a decimal value at the start of the modifiers. Example: "Important"2.5. 3.6. Search case and diacritics sensitivity For Recoll versions 1.18 and later, and when working with a raw index (not the default), searches can be made sensitive to character case and diacritics. How this happens is controlled by configuration variables and what search data is entered. The general default is that searches are insensitive to case and diacritics. An entry of resume will match any of Resume, RESUME, resume, Resume etc. Two configuration variables can automate switching on sensitivity: autodiacsens If this is set, search sensitivity to diacritics will be turned on as soon as an accented character exists in a search term. When the variable is set to true, resume will start a diacritics-unsensitive search, but resume will be matched exactly. The default value is false. autocasesens If this is set, search sensitivity to character case will be turned on as soon as an upper-case character exists in a search term except for the first one. When the variable is set to true, us or Us will start a diacritics-unsensitive search, but US will be matched exactly. The default value is true (contrary to autodiacsens). As in the past, capitalizing the first letter of a word will turn off its stem expansion and have no effect on case-sensitivity. You can also explicitely activate case and diacritics sensitivity by using modifiers with the query language. C will make the term case-sensitive, and D will make it diacritics-sensitive. Examples: "us"C will search for the term us exactly (Us will not be a match). "resume"D will search for the term resume exactly (resume will not be a match). When either case or diacritics sensitivity is activated, stem expansion is turned off. Having both does not make much sense. 3.7. Anchored searches and wildcards Some special characters are interpreted by Recoll in search strings to expand or specialize the search. Wildcards expand a root term in controlled ways. Anchor characters can restrict a search to succeed only if the match is found at or near the beginning of the document or one of its fields. 3.7.1. More about wildcards All words entered in Recoll search fields will be processed for wildcard expansion before the request is finally executed. The wildcard characters are: o * which matches 0 or more characters. o ? which matches a single character. o [] which allow defining sets of characters to be matched (ex: [abc] matches a single character which may be 'a' or 'b' or 'c', [0-9] matches any number. You should be aware of a few things when using wildcards. o Using a wildcard character at the beginning of a word can make for a slow search because Recoll will have to scan the whole index term list to find the matches. However, this is much less a problem for field searches, and queries like author:*@domain.com can sometimes be very useful. o For Recoll version 18 only, when working with a raw index (preserving character case and diacritics), the literal part of a wildcard expression will be matched exactly for case and diacritics. This is not true any more for versions 19 and later. o Using a * at the end of a word can produce more matches than you would think, and strange search results. You can use the term explorer tool to check what completions exist for a given term. You can also see exactly what search was performed by clicking on the link at the top of the result list. In general, for natural language terms, stem expansion will produce better results than an ending * (stem expansion is turned off when any wildcard character appears in the term). 3.7.1.1. Wildcards and path filtering Due to the way that Recoll processes wildcards inside dir path filtering clauses, they will have a multiplicative effect on the query size. A clause containg wildcards in several paths elements, like, for example, dir:/home/me/*/*/docdir, will almost certainly fail if your indexed tree is of any realistic size. Depending on the case, you may be able to work around the issue by specifying the paths elements more narrowly, with a constant prefix, or by using 2 separate dir: clauses instead of multiple wildcards, as in dir:/home/me dir:docdir. The latter query is not equivalent to the initial one because it does not specify a number of directory levels, but that's the best we can do (and it may be actually more useful in some cases). 3.7.2. Anchored searches Two characters are used to specify that a search hit should occur at the beginning or at the end of the text. ^ at the beginning of a term or phrase constrains the search to happen at the start, $ at the end force it to happen at the end. As this function is implemented as a phrase search it is possible to specify a maximum distance at which the hit should occur, either through the controls of the advanced search panel, or using the query language, for example, as in: "^someterm"o10 which would force someterm to be found within 10 terms of the start of the text. This can be combined with a field search as in somefield:"^someterm"o10 or somefield:someterm$. This feature can also be used with an actual phrase search, but in this case, the distance applies to the whole phrase and anchor, so that, for example, bla bla my unexpected term at the beginning of the text would be a match for "^my term"o5. Anchored searches can be very useful for searches inside somewhat structured documents like scientific articles, in case explicit metadata has not been supplied (a most frequent case), for example for looking for matches inside the abstract or the list of authors (which occur at the top of the document). 3.8. Desktop integration Being independant of the desktop type has its drawbacks: Recoll desktop integration is minimal. However there are a few tools available: o The KDE KIO Slave was described in a previous section. o If you use a recent version of Ubuntu Linux, you may find the Ubuntu Unity Lens module useful. o There is also an independantly developed Krunner plugin. Here follow a few other things that may help. 3.8.1. Hotkeying recoll It is surprisingly convenient to be able to show or hide the Recoll GUI with a single keystroke. Recoll comes with a small Python script, based on the libwnck window manager interface library, which will allow you to do just this. The detailed instructions are on this wiki page. 3.8.2. The KDE Kicker Recoll applet This is probably obsolete now. Anyway: The Recoll source tree contains the source code to the recoll_applet, a small application derived from the find_applet. This can be used to add a small Recoll launcher to the KDE panel. The applet is not automatically built with the main Recoll programs, nor is it included with the main source distribution (because the KDE build boilerplate makes it relatively big). You can download its source from the recoll.org download page. Use the omnipotent configure;make;make install incantation to build and install. You can then add the applet to the panel by right-clicking the panel and choosing the Add applet entry. The recoll_applet has a small text window where you can type a Recoll query (in query language form), and an icon which can be used to restrict the search to certain types of files. It is quite primitive, and launches a new recoll GUI instance every time (even if it is already running). You may find it useful anyway. Chapter 4. Programming interface Recoll has an Application Programming Interface, usable both for indexing and searching, currently accessible from the Python language. Another less radical way to extend the application is to write input handlers for new types of documents. The processing of metadata attributes for documents (fields) is highly configurable. 4.1. Writing a document input handler Terminology The small programs or pieces of code which handle the processing of the different document types for Recoll used to be called filters, which is still reflected in the name of the directory which holds them and many configuration variables. They were named this way because one of their primary functions is to filter out the formatting directives and keep the text content. However these modules may have other behaviours, and the term input handler is now progressively substituted in the documentation. filter is still used in many places though. Recoll input handlers cooperate to translate from the multitude of input document formats, simple ones as opendocument, acrobat), or compound ones such as Zip or Email, into the final Recoll indexing input format, which is plain text. Most input handlers are executable programs or scripts. A few handlers are coded in C++ and live inside recollindex. This latter kind will not be described here. There are currently (1.18 and since 1.13) two kinds of external executable input handlers: o Simple exec handlers run once and exit. They can be bare programs like antiword, or scripts using other programs. They are very simple to write, because they just need to print the converted document to the standard output. Their output can be plain text or HTML. HTML is usually preferred because it can store metadata fields and it allows preserving some of the formatting for the GUI preview. o Multiple execm handlers can process multiple files (sparing the process startup time which can be very significant), or multiple documents per file (e.g.: for zip or chm files). They communicate with the indexer through a simple protocol, but are nevertheless a bit more complicated than the older kind. Most of new handlers are written in Python, using a common module to handle the protocol. There is an exception, rclimg which is written in Perl. The subdocuments output by these handlers can be directly indexable (text or HTML), or they can be other simple or compound documents that will need to be processed by another handler. In both cases, handlers deal with regular file system files, and can process either a single document, or a linear list of documents in each file. Recoll is responsible for performing up to date checks, deal with more complex embedding and other upper level issues. A simple handler returning a document in text/plain format, can transfer no metadata to the indexer. Generic metadata, like document size or modification date, will be gathered and stored by the indexer. Handlers that produce text/html format can return an arbitrary amount of metadata inside HTML meta tags. These will be processed according to the directives found in the fields configuration file. The handlers that can handle multiple documents per file return a single piece of data to identify each document inside the file. This piece of data, called an ipath element will be sent back by Recoll to extract the document at query time, for previewing, or for creating a temporary file to be opened by a viewer. The following section describes the simple handlers, and the next one gives a few explanations about the execm ones. You could conceivably write a simple handler with only the elements in the manual. This will not be the case for the other ones, for which you will have to look at the code. 4.1.1. Simple input handlers Recoll simple handlers are usually shell-scripts, but this is in no way necessary. Extracting the text from the native format is the difficult part. Outputting the format expected by Recoll is trivial. Happily enough, most document formats have translators or text extractors which can be called from the handler. In some cases the output of the translating program is completely appropriate, and no intermediate shell-script is needed. Input handlers are called with a single argument which is the source file name. They should output the result to stdout. When writing a handler, you should decide if it will output plain text or HTML. Plain text is simpler, but you will not be able to add metadata or vary the output character encoding (this will be defined in a configuration file). Additionally, some formatting may be easier to preserve when previewing HTML. Actually the deciding factor is metadata: Recoll has a way to extract metadata from the HTML header and use it for field searches.. The RECOLL_FILTER_FORPREVIEW environment variable (values yes, no) tells the handler if the operation is for indexing or previewing. Some handlers use this to output a slightly different format, for example stripping uninteresting repeated keywords (ie: Subject: for email) when indexing. This is not essential. You should look at one of the simple handlers, for example rclps for a starting point. Don't forget to make your handler executable before testing ! 4.1.2. "Multiple" handlers If you can program and want to write an execm handler, it should not be too difficult to make sense of one of the existing modules. For example, look at rclzip which uses Zip file paths as identifiers (ipath), and rclics, which uses an integer index. Also have a look at the comments inside the internfile/mh_execm.h file and possibly at the corresponding module. execm handlers sometimes need to make a choice for the nature of the ipath elements that they use in communication with the indexer. Here are a few guidelines: o Use ASCII or UTF-8 (if the identifier is an integer print it, for example, like printf %d would do). o If at all possible, the data should make some kind of sense when printed to a log file to help with debugging. o Recoll uses a colon (:) as a separator to store a complex path internally (for deeper embedding). Colons inside the ipath elements output by a handler will be escaped, but would be a bad choice as a handler-specific separator (mostly, again, for debugging issues). In any case, the main goal is that it should be easy for the handler to extract the target document, given the file name and the ipath element. execm handlers will also produce a document with a null ipath element. Depending on the type of document, this may have some associated data (e.g. the body of an email message), or none (typical for an archive file). If it is empty, this document will be useful anyway for some operations, as the parent of the actual data documents. 4.1.3. Telling Recoll about the handler There are two elements that link a file to the handler which should process it: the association of file to MIME type and the association of a MIME type with a handler. The association of files to MIME types is mostly based on name suffixes. The types are defined inside the mimemap file. Example: .doc = application/msword If no suffix association is found for the file name, Recoll will try to execute the file -i command to determine a MIME type. The association of file types to handlers is performed in the mimeconf file. A sample will probably be of better help than a long explanation: [index] application/msword = exec antiword -t -i 1 -m UTF-8;\ mimetype = text/plain ; charset=utf-8 application/ogg = exec rclogg text/rtf = exec unrtf --nopict --html; charset=iso-8859-1; mimetype=text/html application/x-chm = execm rclchm The fragment specifies that: o application/msword files are processed by executing the antiword program, which outputs text/plain encoded in utf-8. o application/ogg files are processed by the rclogg script, with default output type (text/html, with encoding specified in the header, or utf-8 by default). o text/rtf is processed by unrtf, which outputs text/html. The iso-8859-1 encoding is specified because it is not the utf-8 default, and not output by unrtf in the HTML header section. o application/x-chm is processed by a persistant handler. This is determined by the execm keyword. 4.1.4. Input handler HTML output The output HTML could be very minimal like the following example: Some text content You should take care to escape some characters inside the text by transforming them into appropriate entities. At the very minimum, "&" should be transformed into "&", "<" should be transformed into "<". This is not always properly done by translating programs which output HTML, and of course never by those which output plain text. When encapsulating plain text in an HTML body, the display of a preview may be improved by enclosing the text inside

 tags.

   The character set needs to be specified in the header. It does not need to
   be UTF-8 (Recoll will take care of translating it), but it must be
   accurate for good results.

   Recoll will process meta tags inside the header as possible document
   fields candidates. Documents fields can be processed by the indexer in
   different ways, for searching or displaying inside query results. This is
   described in a following section.

   By default, the indexer will process the standard header fields if they
   are present: title, meta/description, and meta/keywords are both indexed
   and stored for query-time display.

   A predefined non-standard meta tag will also be processed by Recoll
   without further configuration: if a date tag is present and has the right
   format, it will be used as the document date (for display and sorting), in
   preference to the file modification date. The date format should be as
   follows:

 
 or
 
          

   Example:

 
          

   Input handlers also have the possibility to "invent" field names. This
   should also be output as meta tags:

 

   You can embed HTML markup inside the content of custom fields, for
   improving the display inside result lists. In this case, add a (wildly
   non-standard) markup attribute to tell Recoll that the value is HTML and
   should not be escaped for display.

 

   As written above, the processing of fields is described in a further
   section.

  4.1.5. Page numbers

   The indexer will interpret ^L characters in the handler output as
   indicating page breaks, and will record them. At query time, this allows
   starting a viewer on the right page for a hit or a snippet. Currently,
   only the PDF, Postscript and DVI handlers generate page breaks.

4.2. Field data processing

   Fields are named pieces of information in or about documents, like title,
   author, abstract.

   The field values for documents can appear in several ways during indexing:
   either output by input handlers as meta fields in the HTML header section,
   or extracted from file extended attributes, or added as attributes of the
   Doc object when using the API, or again synthetized internally by Recoll.

   The Recoll query language allows searching for text in a specific field.

   Recoll defines a number of default fields. Additional ones can be output
   by handlers, and described in the fields configuration file.

   Fields can be:

     o indexed, meaning that their terms are separately stored in inverted
       lists (with a specific prefix), and that a field-specific search is
       possible.

     o stored, meaning that their value is recorded in the index data record
       for the document, and can be returned and displayed with search
       results.

   A field can be either or both indexed and stored. This and other aspects
   of fields handling is defined inside the fields configuration file.

   The sequence of events for field processing is as follows:

     o During indexing, recollindex scans all meta fields in HTML documents
       (most document types are transformed into HTML at some point). It
       compares the name for each element to the configuration defining what
       should be done with fields (the fields file)

     o If the name for the meta element matches one for a field that should
       be indexed, the contents are processed and the terms are entered into
       the index with the prefix defined in the fields file.

     o If the name for the meta element matches one for a field that should
       be stored, the content of the element is stored with the document data
       record, from which it can be extracted and displayed at query time.

     o At query time, if a field search is performed, the index prefix is
       computed and the match is only performed against appropriately
       prefixed terms in the index.

     o At query time, the field can be displayed inside the result list by
       using the appropriate directive in the definition of the result list
       paragraph format. All fields are displayed on the fields screen of the
       preview window (which you can reach through the right-click menu).
       This is independant of the fact that the search which produced the
       results used the field or not.

   You can find more information in the section about the fields file, or in
   comments inside the file.

   You can also have a look at the example on the Wiki, detailing how one
   could add a page count field to pdf documents for displaying inside result
   lists.

4.3. API

  4.3.1. Interface elements

   A few elements in the interface are specific and and need an explanation.

   udi

           An udi (unique document identifier) identifies a document. Because
           of limitations inside the index engine, it is restricted in length
           (to 200 bytes), which is why a regular URI cannot be used. The
           structure and contents of the udi is defined by the application
           and opaque to the index engine. For example, the internal file
           system indexer uses the complete document path (file path +
           internal path), truncated to length, the suppressed part being
           replaced by a hash value.

   ipath

           This data value (set as a field in the Doc object) is stored,
           along with the URL, but not indexed by Recoll. Its contents are
           not interpreted, and its use is up to the application. For
           example, the Recoll internal file system indexer stores the part
           of the document access path internal to the container file (ipath
           in this case is a list of subdocument sequential numbers). url and
           ipath are returned in every search result and permit access to the
           original document.

   Stored and indexed fields

           The fields file inside the Recoll configuration defines which
           document fields are either "indexed" (searchable), "stored"
           (retrievable with search results), or both.

   Data for an external indexer, should be stored in a separate index, not
   the one for the Recoll internal file system indexer, except if the latter
   is not used at all). The reason is that the main document indexer purge
   pass would remove all the other indexer's documents, as they were not seen
   during indexing. The main indexer documents would also probably be a
   problem for the external indexer purge operation.

  4.3.2. Python interface

    4.3.2.1. Introduction

   Recoll versions after 1.11 define a Python programming interface, both for
   searching and indexing. The indexing portion has seen little use, but the
   searching one is used in the Recoll Ubuntu Unity Lens and Recoll Web UI.

   The API is inspired by the Python database API specification. There were
   two major changes in recent Recoll versions:

     o The basis for the Recoll API changed from Python database API version
       1.0 (Recoll versions up to 1.18.1), to version 2.0 (Recoll 1.18.2 and
       later).
     o The recoll module became a package (with an internal recoll module) as
       of Recoll version 1.19, in order to add more functions. For existing
       code, this only changes the way the interface must be imported.

   We will mostly describe the new API and package structure here. A
   paragraph at the end of this section will explain a few differences and
   ways to write code compatible with both versions.

   The Python interface can be found in the source package, under
   python/recoll.

   The python/recoll/ directory contains the usual setup.py. After
   configuring the main Recoll code, you can use the script to build and
   install the Python module:

             cd recoll-xxx/python/recoll
             python setup.py build
             python setup.py install
          

   The normal Recoll installer installs the Python API along with the main
   code.

   When installing from a repository, and depending on the distribution, the
   Python API can sometimes be found in a separate package.

    4.3.2.2. Recoll package

   The recoll package contains two modules:

     o The recoll module contains functions and classes used to query (or
       update) the index.

     o The rclextract module contains functions and classes used to access
       document data.

    4.3.2.3. The recoll module

      Functions

   connect(confdir=None, extra_dbs=None, writable = False)
           The connect() function connects to one or several Recoll index(es)
           and returns a Db object.
              o confdir may specify a configuration directory. The usual
                defaults apply.
              o extra_dbs is a list of additional indexes (Xapian
                directories).
              o writable decides if we can index new data through this
                connection.
           This call initializes the recoll module, and it should always be
           performed before any other call or object creation.

      Classes

        The Db class

   A Db object is created by a connect() call and holds a connection to a
   Recoll index.

   Methods

   Db.close()
           Closes the connection. You can't do anything with the Db object
           after this.

   Db.query(), Db.cursor()
           These aliases return a blank Query object for this index.

   Db.setAbstractParams(maxchars, contextwords)
           Set the parameters used to build snippets (sets of keywords in
           context text fragments). maxchars defines the maximum total size
           of the abstract. contextwords defines how many terms are shown
           around the keyword.

   Db.termMatch(match_type, expr, field='', maxlen=-1, casesens=False,
   diacsens=False, lang='english')
           Expand an expression against the index term list. Performs the
           basic function from the GUI term explorer tool. match_type can be
           either of wildcard, regexp or stem. Returns a list of terms
           expanded from the input expression.

        The Query class

   A Query object (equivalent to a cursor in the Python DB API) is created by
   a Db.query() call. It is used to execute index searches.

   Methods

   Query.sortby(fieldname, ascending=True)
           Sort results by fieldname, in ascending or descending order. Must
           be called before executing the search.

   Query.execute(query_string, stemming=1, stemlang="english")
           Starts a search for query_string, a Recoll search language string.

   Query.executesd(SearchData)
           Starts a search for the query defined by the SearchData object.

   Query.fetchmany(size=query.arraysize)
           Fetches the next Doc objects in the current search results, and
           returns them as an array of the required size, which is by default
           the value of the arraysize data member.

   Query.fetchone()
           Fetches the next Doc object from the current search results.

   Query.close()
           Closes the query. The object is unusable after the call.

   Query.scroll(value, mode='relative')
           Adjusts the position in the current result set. mode can be
           relative or absolute.

   Query.getgroups()
           Retrieves the expanded query terms as a list of pairs. Meaningful
           only after executexx In each pair, the first entry is a list of
           user terms (of size one for simple terms, or more for group and
           phrase clauses), the second a list of query terms as derived from
           the user terms and used in the Xapian Query.

   Query.getxquery()
           Return the Xapian query description as a Unicode string.
           Meaningful only after executexx.

   Query.highlight(text, ishtml = 0, methods = object)
           Will insert ,  tags around the match
           areas in the input text and return the modified text. ishtml can
           be set to indicate that the input text is HTML and that HTML
           special characters should not be escaped. methods if set should be
           an object with methods startMatch(i) and endMatch() which will be
           called for each match and should return a begin and end tag

   Query.makedocabstract(doc, methods = object))
           Create a snippets abstract for doc (a Doc object) by selecting
           text around the match terms. If methods is set, will also perform
           highlighting. See the highlight method.

   Query.__iter__() and Query.next()
           So that things like for doc in query: will work.

   Data descriptors

   Query.arraysize
           Default number of records processed by fetchmany (r/w).

   Query.rowcount
           Number of records returned by the last execute.

   Query.rownumber
           Next index to be fetched from results. Normally increments after
           each fetchone() call, but can be set/reset before the call to
           effect seeking (equivalent to using scroll()). Starts at 0.

        The Doc class

   A Doc object contains index data for a given document. The data is
   extracted from the index when searching, or set by the indexer program
   when updating. The Doc object has many attributes to be read or set by its
   user. It matches exactly the Rcl::Doc C++ object. Some of the attributes
   are predefined, but, especially when indexing, others can be set, the name
   of which will be processed as field names by the indexing configuration.
   Inputs can be specified as Unicode or strings. Outputs are Unicode
   objects. All dates are specified as Unix timestamps, printed as strings.
   Please refer to the rcldb/rcldoc.h C++ file for a description of the
   predefined attributes.

   At query time, only the fields that are defined as stored either by
   default or in the fields configuration file will be meaningful in the Doc
   object. Especially this will not be the case for the document text. See
   the rclextract module for accessing document contents.

   Methods

   get(key), [] operator
           Retrieve the named doc attribute

   getbinurl()
           Retrieve the URL in byte array format (no transcoding), for use as
           parameter to a system call.

   items()
           Return a dictionary of doc object keys/values

   keys()
           list of doc object keys (attribute names).

        The SearchData class

   A SearchData object allows building a query by combining clauses, for
   execution by Query.executesd(). It can be used in replacement of the query
   language approach. The interface is going to change a little, so no
   detailed doc for now...

   Methods

   addclause(type='and'|'or'|'excl'|'phrase'|'near'|'sub', qstring=string,
   slack=0, field='', stemming=1, subSearch=SearchData)

    4.3.2.4. The rclextract module

   Index queries do not provide document content (only a partial and
   unprecise reconstruction is performed to show the snippets text). In order
   to access the actual document data, the data extraction part of the
   indexing process must be performed (subdocument access and format
   translation). This is not trivial in general. The rclextract module
   currently provides a single class which can be used to access the data
   content for result documents.

      Classes

        The Extractor class

   Methods

   Extractor(doc)
           An Extractor object is built from a Doc object, output from a
           query.

   Extractor.textextract(ipath)
           Extract document defined by ipath and return a Doc object. The
           doc.text field has the document text converted to either
           text/plain or text/html according to doc.mimetype. The typical use
           would be as follows:

 qdoc = query.fetchone()
 extractor = recoll.Extractor(qdoc)
 doc = extractor.textextract(qdoc.ipath)
 # use doc.text, e.g. for previewing

   Extractor.idoctofile(ipath, targetmtype, outfile='')
           Extracts document into an output file, which can be given
           explicitly or will be created as a temporary file to be deleted by
           the caller. Typical use:

 qdoc = query.fetchone()
 extractor = recoll.Extractor(qdoc)
 filename = extractor.idoctofile(qdoc.ipath, qdoc.mimetype)

    4.3.2.5. Example code

   The following sample would query the index with a user language string.
   See the python/samples directory inside the Recoll source for other
   examples. The recollgui subdirectory has a very embryonic GUI which
   demonstrates the highlighting and data extraction functions.

 #!/usr/bin/env python

 from recoll import recoll

 db = recoll.connect()
 db.setAbstractParams(maxchars=80, contextwords=4)

 query = db.query()
 nres = query.execute("some user question")
 print "Result count: ", nres
 if nres > 5:
     nres = 5
 for i in range(nres):
     doc = query.fetchone()
     print "Result #%d" % (query.rownumber,)
     for k in ("title", "size"):
         print k, ":", getattr(doc, k).encode('utf-8')
     abs = db.makeDocAbstract(doc, query).encode('utf-8')
     print abs
     print



    4.3.2.6. Compatibility with the previous version

   The following code fragments can be used to ensure that code can run with
   both the old and the new API (as long as it does not use the new abilities
   of the new API of course).

   Adapting to the new package structure:


 try:
     from recoll import recoll
     from recoll import rclextract
     hasextract = True
 except:
     import recoll
     hasextract = False


   Adapting to the change of nature of the next Query member. The same test
   can be used to choose to use the scroll() method (new) or set the next
   value (old).


        rownum = query.next if type(query.next) == int else \
                  query.rownumber


Chapter 5. Installation and configuration

5.1. Installing a binary copy

   Recoll binary copies are always distributed as regular packages for your
   system. They can be obtained either through the system's normal software
   distribution framework (e.g. Debian/Ubuntu apt, FreeBSD ports, etc.), or
   from some type of "backports" repository providing versions newer than the
   standard ones, or found on the Recoll WEB site in some cases.

   There used to exist another form of binary install, as pre-compiled source
   trees, but these are just less convenient than the packages and don't
   exist any more.

   The package management tools will usually automatically deal with hard
   dependancies for packages obtained from a proper package repository. You
   will have to deal with them by hand for downloaded packages (for example,
   when dpkg complains about missing dependancies).

   In all cases, you will have to check or install supporting applications
   for the file types that you want to index beyond those that are natively
   processed by Recoll (text, HTML, email files, and a few others).

   You should also maybe have a look at the configuration section (but this
   may not be necessary for a quick test with default parameters). Most
   parameters can be more conveniently set from the GUI interface.

5.2. Supporting packages

   Recoll uses external applications to index some file types. You need to
   install them for the file types that you wish to have indexed (these are
   run-time optional dependencies. None is needed for building or running
   Recoll except for indexing their specific file type).

   After an indexing pass, the commands that were found missing can be
   displayed from the recoll File menu. The list is stored in the missing
   text file inside the configuration directory.

   A list of common file types which need external commands follows. Many of
   the handlers need the iconv command, which is not always listed as a
   dependancy.

   Please note that, due to the relatively dynamic nature of this
   information, the most up to date version is now kept on
   http://www.recoll.org/features.html along with links to the home pages or
   best source/patches pages, and misc tips. The list below is not updated
   often and may be quite stale.

   For many Linux distributions, most of the commands listed can be installed
   from the package repositories. However, the packages are sometimes
   outdated, or not the best version for Recoll, so you should take a look at
   http://www.recoll.org/features.html if a file type is important to you.

   As of Recoll release 1.14, a number of XML-based formats that were handled
   by ad hoc handler code now use the xsltproc command, which usually comes
   with libxslt. These are: abiword, fb2 (ebooks), kword, openoffice, svg.

   Now for the list:

     o Openoffice files need unzip and xsltproc.

     o PDF files need pdftotext which is part of Poppler (usually comes with
       the poppler-utils package). Avoid the original one from Xpdf.

     o Postscript files need pstotext. The original version has an issue with
       shell character in file names, which is corrected in recent packages.
       See http://www.recoll.org/features.html for more detail.

     o MS Word needs antiword. It is also useful to have wvWare installed as
       it may be be used as a fallback for some files which antiword does not
       handle.

     o MS Excel and PowerPoint are processed by internal Python handlers.

     o MS Open XML (docx) needs xsltproc.

     o Wordperfect files need wpd2html from the libwpd (or libwpd-tools on
       Ubuntu) package.

     o RTF files need unrtf, which, in its older versions, has much trouble
       with non-western character sets. Many Linux distributions carry
       outdated unrtf versions. Check http://www.recoll.org/features.html for
       details.

     o TeX files need untex or detex. Check
       http://www.recoll.org/features.html for sources if it's not packaged
       for your distribution.

     o dvi files need dvips.

     o djvu files need djvutxt and djvused from the DjVuLibre package.

     o Audio files: Recoll releases 1.14 and later use a single Python
       handler based on mutagen for all audio file types.

     o Pictures: Recoll uses the Exiftool Perl package to extract tag
       information. Most image file formats are supported. Note that there
       may not be much interest in indexing the technical tags (image size,
       aperture, etc.). This is only of interest if you store personal tags
       or textual descriptions inside the image files.

     o chm: files in Microsoft help format need Python and the pychm module
       (which needs chmlib).

     o ICS: up to Recoll 1.13, iCalendar files need Python and the icalendar
       module. icalendar is not needed for newer versions, which use internal
       code.

     o Zip archives need Python (and the standard zipfile module).

     o Rar archives need Python, the rarfile Python module and the unrar
       utility.

     o Midi karaoke files need Python and the Midi module

     o Konqueror webarchive format with Python (uses the Tarfile module).

     o Mimehtml web archive format (support based on the email handler, which
       introduces some mild weirdness, but still usable).

   Text, HTML, email folders, and Scribus files are processed internally. Lyx
   is used to index Lyx files. Many handlers need iconv and the standard sed
   and awk.

5.3. Building from source

  5.3.1. Prerequisites

   If you can install any or all of the following through the package manager
   for your system, all the better. Especially Qt is a very big piece of
   software, but you will most probably be able to find a binary package.

   You may have to compile Xapian but this is easy.

   The shopping list:

     o C++ compiler. Up to Recoll version 1.13.04, its absence can manifest
       itself by strange messages about a missing iconv_open.

     o Development files for Xapian core.

  Important

       If you are building Xapian for an older CPU (before Pentium 4 or
       Athlon 64), you need to add the --disable-sse flag to the configure
       command. Else all Xapian application will crash with an illegal
       instruction error.

     o Development files for Qt 4 . Recoll has not been tested with Qt 5 yet.
       Recoll 1.15.9 was the last version to support Qt 3. If you do not want
       to install or build the Qt Webkit module, Recoll has a configuration
       option to disable its use (see further).

     o Development files for X11 and zlib.

     o You may also need libiconv. On Linux systems, the iconv interface is
       part of libc and you should not need to do anything special.

   Check the Recoll download page for up to date version information.

  5.3.2. Building

   Recoll has been built on Linux, FreeBSD, Mac OS X, and Solaris, most
   versions after 2005 should be ok, maybe some older ones too (Solaris 8 is
   ok). If you build on another system, and need to modify things, I would
   very much welcome patches.

   Configure options: 

     o --without-aspell will disable the code for phonetic matching of search
       terms.

     o --with-fam or --with-inotify will enable the code for real time
       indexing. Inotify support is enabled by default on recent Linux
       systems.

     o --with-qzeitgeist will enable sending Zeitgeist events about the
       visited search results, and needs the qzeitgeist package.

     o --disable-webkit is available from version 1.17 to implement the
       result list with a Qt QTextBrowser instead of a WebKit widget if you
       do not or can't depend on the latter.

     o --disable-idxthreads is available from version 1.19 to suppress
       multithreading inside the indexing process. You can also use the
       run-time configuration to restrict recollindex to using a single
       thread, but the compile-time option may disable a few more unused
       locks. This only applies to the use of multithreading for the core
       index processing (data input). The Recoll monitor mode always uses at
       least two threads of execution.

     o --disable-python-module will avoid building the Python module.

     o --disable-xattr will prevent fetching data from file extended
       attributes. Beyond a few standard attributes, fetching extended
       attributes data can only be useful is some application stores data in
       there, and also needs some simple configuration (see comments in the
       fields configuration file).

     o --enable-camelcase will enable splitting camelCase words. This is not
       enabled by default as it has the unfortunate side-effect of making
       some phrase searches quite confusing: ie, "MySQL manual" would be
       matched by "MySQL manual" and "my sql manual" but not "mysql manual"
       (only inside phrase searches).

     o --with-file-command Specify the version of the 'file' command to use
       (ie: --with-file-command=/usr/local/bin/file). Can be useful to enable
       the gnu version on systems where the native one is bad.

     o --disable-qtgui Disable the Qt interface. Will allow building the
       indexer and the command line search program in absence of a Qt
       environment.

     o --disable-x11mon Disable X11 connection monitoring inside recollindex.
       Together with --disable-qtgui, this allows building recoll without Qt
       and X11.

     o --disable-pic will compile Recoll with position-dependant code. This
       is incompatible with building the KIO or the Python or PHP extensions,
       but might yield very marginally faster code.

     o Of course the usual autoconf configure options, like --prefix apply.

   Normal procedure:

         cd recoll-xxx
         ./configure
         make
         (practices usual hardship-repelling invocations)
      

   There is little auto-configuration. The configure script will mainly link
   one of the system-specific files in the mk directory to mk/sysconf. If
   your system is not known yet, it will tell you as much, and you may want
   to manually copy and modify one of the existing files (the new file name
   should be the output of uname -s).

    5.3.2.1. Building on Solaris

   We did not test building the GUI on Solaris for recent versions. You will
   need at least Qt 4.4. There are some hints on an old web site page, they
   may still be valid.

   Someone did test the 1.19 indexer and Python module build, they do work,
   with a few minor glitches. Be sure to use GNU make and install.

  5.3.3. Installation

   Either type make install or execute recollinstall prefix, in the root of
   the source tree. This will copy the commands to prefix/bin and the sample
   configuration files, scripts and other shared data to prefix/share/recoll.

   If the installation prefix given to recollinstall is different from either
   the system default or the value which was specified when executing
   configure (as in configure --prefix /some/path), you will have to set the
   RECOLL_DATADIR environment variable to indicate where the shared data is
   to be found (ie for (ba)sh: export
   RECOLL_DATADIR=/some/path/share/recoll).

   You can then proceed to configuration.

5.4. Configuration overview

   Most of the parameters specific to the recoll GUI are set through the
   Preferences menu and stored in the standard Qt place
   ($HOME/.config/Recoll.org/recoll.conf). You probably do not want to edit
   this by hand.

   Recoll indexing options are set inside text configuration files located in
   a configuration directory. There can be several such directories, each of
   which defines the parameters for one index.

   The configuration files can be edited by hand or through the Index
   configuration dialog (Preferences menu). The GUI tool will try to respect
   your formatting and comments as much as possible, so it is quite possible
   to use both ways.

   The most accurate documentation for the configuration parameters is given
   by comments inside the default files, and we will just give a general
   overview here.

   By default, for each index, there are two sets of configuration files.
   System-wide configuration files are kept in a directory named like
   /usr/[local/]share/recoll/examples, and define default values, shared by
   all indexes. For each index, a parallel set of files defines the
   customized parameters.

   In addition (as of Recoll version 1.19.7), it is possible to specify two
   additional configuration directories which will be stacked before and
   after the user configuration directory. These are defined by the
   RECOLL_CONFTOP and RECOLL_CONFMID environment variables. Values from
   configuration files inside the top directory will override user ones,
   values from configuration files inside the middle directory will override
   system ones and be overriden by user ones. These two variables may be of
   use to applications which augment Recoll functionality, and need to add
   configuration data without disturbing the user's files. Please note that
   the two, currently single, values will probably be interpreted as
   colon-separated lists in the future: do not use colon characters inside
   the directory paths.

   The default location of the configuration is the .recoll directory in your
   home. Most people will only use this directory.

   This location can be changed, or others can be added with the
   RECOLL_CONFDIR environment variable or the -c option parameter to recoll
   and recollindex.

   If the .recoll directory does not exist when recoll or recollindex are
   started, it will be created with a set of empty configuration files.
   recoll will give you a chance to edit the configuration file before
   starting indexing. recollindex will proceed immediately. To avoid
   mistakes, the automatic directory creation will only occur for the default
   location, not if -c or RECOLL_CONFDIR were used (in the latter cases, you
   will have to create the directory).

   All configuration files share the same format. For example, a short
   extract of the main configuration file might look as follows:

         # Space-separated list of directories to index.
         topdirs =  ~/docs /usr/share/doc

         [~/somedirectory-with-utf8-txt-files]
         defaultcharset = utf-8
        

   There are three kinds of lines:

     o Comment (starts with #) or empty.

     o Parameter affectation (name = value).

     o Section definition ([somedirname]).

   Depending on the type of configuration file, section definitions either
   separate groups of parameters or allow redefining some parameters for a
   directory sub-tree. They stay in effect until another section definition,
   or the end of file, is encountered. Some of the parameters used for
   indexing are looked up hierarchically from the current directory location
   upwards. Not all parameters can be meaningfully redefined, this is
   specified for each in the next section.

   When found at the beginning of a file path, the tilde character (~) is
   expanded to the name of the user's home directory, as a shell would do.

   White space is used for separation inside lists. List elements with
   embedded spaces can be quoted using double-quotes.

   Encoding issues. Most of the configuration parameters are plain ASCII. Two
   particular sets of values may cause encoding issues:

     o File path parameters may contain non-ascii characters and should use
       the exact same byte values as found in the file system directory.
       Usually, this means that the configuration file should use the system
       default locale encoding.

     o The unac_except_trans parameter should be encoded in UTF-8. If your
       system locale is not UTF-8, and you need to also specify non-ascii
       file paths, this poses a difficulty because common text editors cannot
       handle multiple encodings in a single file. In this relatively
       unlikely case, you can edit the configuration file as two separate
       text files with appropriate encodings, and concatenate them to create
       the complete configuration.

  5.4.1. Environment variables

   RECOLL_CONFDIR

           Defines the main configuration directory.

   RECOLL_TMPDIR, TMPDIR

           Locations for temporary files, in this order of priority. The
           default if none of these is set is to use /tmp. Big temporary
           files may be created during indexing, mostly for decompressing,
           and also for processing, e.g. email attachments.

   RECOLL_CONFTOP, RECOLL_CONFMID

           Allow adding configuration directories with priorities below and
           above the user directory (see above the Configuration overview
           section for details).

   RECOLL_EXTRA_DBS, RECOLL_ACTIVE_EXTRA_DBS

           Help for setting up external indexes. See this paragraph for
           explanations.

   RECOLL_DATADIR

           Defines replacement for the default location of Recoll data files,
           normally found in, e.g., /usr/share/recoll).

   RECOLL_FILTERSDIR

           Defines replacement for the default location of Recoll filters,
           normally found in, e.g., /usr/share/recoll/filters).

   ASPELL_PROG

           aspell program to use for creating the spelling dictionary. The
           result has to be compatible with the libaspell which Recoll is
           using.

   VARNAME

           Blabla

  5.4.2. The main configuration file, recoll.conf

   recoll.conf is the main configuration file. It defines things like what to
   index (top directories and things to ignore), and the default character
   set to use for document types which do not specify it internally.

   The default configuration will index your home directory. If this is not
   appropriate, start recoll to create a blank configuration, click Cancel,
   and edit the configuration file before restarting the command. This will
   start the initial indexing, which may take some time.

   Most of the following parameters can be changed from the Index
   Configuration menu in the recoll interface. Some can only be set by
   editing the configuration file.

    5.4.2.1. Parameters affecting what documents we index:

   topdirs

           Specifies the list of directories or files to index (recursively
           for directories). You can use symbolic links as elements of this
           list. See the followLinks option about following symbolic links
           found under the top elements (not followed by default).

   skippedNames

           A space-separated list of wilcard patterns for names of files or
           directories that should be completely ignored. The list defined in
           the default file is:

 skippedNames = #* bin CVS  Cache cache* caughtspam  tmp .thumbnails .svn \
                *~ .beagle .git .hg .bzr loop.ps .xsession-errors \
                .recoll* xapiandb recollrc recoll.conf

           The list can be redefined at any sub-directory in the indexed
           area.

           The top-level directories are not affected by this list (that is,
           a directory in topdirs might match and would still be indexed).

           The list in the default configuration does not exclude hidden
           directories (names beginning with a dot), which means that it may
           index quite a few things that you do not want. On the other hand,
           email user agents like thunderbird usually store messages in
           hidden directories, and you probably want this indexed. One
           possible solution is to have .* in skippedNames, and add things
           like ~/.thunderbird or ~/.evolution in topdirs.

           Not even the file names are indexed for patterns in this list. See
           the noContentSuffixes variable for an alternative approach which
           indexes the file names.

   noContentSuffixes

           This is a list of file name endings (not wildcard expressions, nor
           dot-delimited suffixes). Only the names of matching files will be
           indexed (no attempt at MIME type identification, no decompression,
           no content indexing). This can be redefined for subdirectories,
           and edited from the GUI. The default value is:

 noContentSuffixes = .md5 .map \
        .o .lib .dll .a .sys .exe .com \
        .mpp .mpt .vsd \
            .img .img.gz .img.bz2 .img.xz .image .image.gz .image.bz2 .image.xz \
        .dat .bak .rdf .log.gz .log .db .msf .pid \
        ,v ~ #

   skippedPaths and daemSkippedPaths

           A space-separated list of patterns for paths of files or
           directories that should be skipped. There is no default in the
           sample configuration file, but the code always adds the
           configuration and database directories in there.

           skippedPaths is used both by batch and real time indexing.
           daemSkippedPaths can be used to specify things that should be
           indexed at startup, but not monitored.

           Example of use for skipping text files only in a specific
           directory:

 skippedPaths = ~/somedir/*.txt
              

   skippedPathsFnmPathname

           The values in the *skippedPaths variables are matched by default
           with fnmatch(3), with the FNM_PATHNAME flag. This means that '/'
           characters must be matched explicitely. You can set
           skippedPathsFnmPathname to 0 to disable the use of FNM_PATHNAME
           (meaning that /*/dir3 will match /dir1/dir2/dir3).

   zipSkippedNames

           A space-separated list of patterns for names of files or
           directories that should be ignored inside zip archives. This is
           used directly by the zip handler, and has a function similar to
           skippedNames, but works independantly. Can be redefined for
           filesystem subdirectories. For versions up to 1.19, you will need
           to update the Zip handler and install a supplementary Python
           module. The details are described on the Recoll wiki.

   followLinks

           Specifies if the indexer should follow symbolic links while
           walking the file tree. The default is to ignore symbolic links to
           avoid multiple indexing of linked files. No effort is made to
           avoid duplication when this option is set to true. This option can
           be set individually for each of the topdirs members by using
           sections. It can not be changed below the topdirs level.

   indexedmimetypes

           Recoll normally indexes any file which it knows how to read. This
           list lets you restrict the indexed MIME types to what you specify.
           If the variable is unspecified or the list empty (the default),
           all supported types are processed. Can be redefined for
           subdirectories.

   excludedmimetypes

           This list lets you exclude some MIME types from indexing. Can be
           redefined for subdirectories.

   compressedfilemaxkbs

           Size limit for compressed (.gz or .bz2) files. These need to be
           decompressed in a temporary directory for identification, which
           can be very wasteful if 'uninteresting' big compressed files are
           present. Negative means no limit, 0 means no processing of any
           compressed file. Defaults to -1.

   textfilemaxmbs

           Maximum size for text files. Very big text files are often
           uninteresting logs. Set to -1 to disable (default 20MB).

   textfilepagekbs

           If set to other than -1, text files will be indexed as multiple
           documents of the given page size. This may be useful if you do
           want to index very big text files as it will both reduce memory
           usage at index time and help with loading data to the preview
           window. A size of a few megabytes would seem reasonable (default:
           1MB).

   membermaxkbs

           This defines the maximum size in kilobytes for an archive member
           (zip, tar or rar at the moment). Bigger entries will be skipped.

   indexallfilenames

           Recoll indexes file names in a special section of the database to
           allow specific file names searches using wild cards. This
           parameter decides if file name indexing is performed only for
           files with MIME types that would qualify them for full text
           indexing, or for all files inside the selected subtrees,
           independently of MIME type.

   usesystemfilecommand

           Decide if we execute a system command (file -i by default) as a
           final step for determining the MIME type for a file (the main
           procedure uses suffix associations as defined in the mimemap
           file). This can be useful for files with suffix-less names, but it
           will also cause the indexing of many bogus "text" files.

   systemfilecommand

           Command to use for mime for mime type determination if
           usesystefilecommand is set. Recent versions of xdg-mime sometimes
           work better than file.

   processwebqueue

           If this is set, process the directory where Web browser plugins
           copy visited pages for indexing.

   webqueuedir

           The path to the web indexing queue. This is hard-coded in the
           Firefox plugin as ~/.recollweb/ToIndex so there should be no need
           to change it.

    5.4.2.2. Parameters affecting how we generate terms:

   Changing some of these parameters will imply a full reindex. Also, when
   using multiple indexes, it may not make sense to search indexes that don't
   share the values for these parameters, because they usually affect both
   search and index operations.

   indexStripChars

           Decide if we strip characters of diacritics and convert them to
           lower-case before terms are indexed. If we don't, searches
           sensitive to case and diacritics can be performed, but the index
           will be bigger, and some marginal weirdness may sometimes occur.
           The default is a stripped index (indexStripChars = 1) for now.
           When using multiple indexes for a search, this parameter must be
           defined identically for all. Changing the value implies an index
           reset.

   maxTermExpand

           Maximum expansion count for a single term (e.g.: when using
           wildcards). The default of 10000 is reasonable and will avoid
           queries that appear frozen while the engine is walking the term
           list.

   maxXapianClauses

           Maximum number of elementary clauses we can add to a single Xapian
           query. In some cases, the result of term expansion can be
           multiplicative, and we want to avoid using excessive memory. The
           default of 100 000 should be both high enough in most cases and
           compatible with current typical hardware configurations.

   nonumbers

           If this set to true, no terms will be generated for numbers. For
           example "123", "1.5e6", 192.168.1.4, would not be indexed
           ("value123" would still be). Numbers are often quite interesting
           to search for, and this should probably not be set except for
           special situations, ie, scientific documents with huge amounts of
           numbers in them. This can only be set for a whole index, not for a
           subtree.

   nocjk

           If this set to true, specific east asian (Chinese Korean Japanese)
           characters/word splitting is turned off. This will save a small
           amount of cpu if you have no CJK documents. If your document base
           does include such text but you are not interested in searching it,
           setting nocjk may be a significant time and space saver.

   cjkngramlen

           This lets you adjust the size of n-grams used for indexing CJK
           text. The default value of 2 is probably appropriate in most
           cases. A value of 3 would allow more precision and efficiency on
           longer words, but the index will be approximately twice as large.

   indexstemminglanguages

           A list of languages for which the stem expansion databases will be
           built. See recollindex(1) or use the recollindex -l command for
           possible values. You can add a stem expansion database for a
           different language by using recollindex -s, but it will be deleted
           during the next indexing. Only languages listed in the
           configuration file are permanent.

   defaultcharset

           The name of the character set used for files that do not contain a
           character set definition (ie: plain text files). This can be
           redefined for any sub-directory. If it is not set at all, the
           character set used is the one defined by the nls environment (
           LC_ALL, LC_CTYPE, LANG), or iso8859-1 if nothing is set.

   unac_except_trans

           This is a list of characters, encoded in UTF-8, which should be
           handled specially when converting text to unaccented lowercase.
           For example, in Swedish, the letter a with diaeresis has full
           alphabet citizenship and should not be turned into an a. Each
           element in the space-separated list has the special character as
           first element and the translation following. The handling of both
           the lowercase and upper-case versions of a character should be
           specified, as appartenance to the list will turn-off both standard
           accent and case processing. Example for Swedish:

 unac_except_trans =  aaaa AAaa a:a: A:a: o:o: O:o:
            

           Note that the translation is not limited to a single character,
           you could very well have something like u:ue in the list.

           The default value set for unac_except_trans can't be listed here
           because I have trouble with SGML and UTF-8, but it only contains
           ligature decompositions: german ss, oe, ae, fi, fl.

           This parameter can't be defined for subdirectories, it is global,
           because there is no way to do otherwise when querying. If you have
           document sets which would need different values, you will have to
           index and query them separately.

   maildefcharset

           This can be used to define the default character set specifically
           for email messages which don't specify it. This is mainly useful
           for readpst (libpst) dumps, which are utf-8 but do not say so.

   localfields

           This allows setting fields for all documents under a given
           directory. Typical usage would be to set an "rclaptg" field, to be
           used in mimeview to select a specific viewer. If several fields
           are to be set, they should be separated with a semi-colon (';')
           character, which there is currently no way to escape. Also note
           the initial semi-colon. Example: localfields= ;rclaptg=gnus;other
           = val, then select specifier viewer with mimetype|tag=... in
           mimeview.

   testmodifusemtime

           If true, use mtime instead of default ctime to determine if a file
           has been modified (in addition to size, which is always used).
           Setting this can reduce re-indexing on systems where extended
           attributes are modified (by some other application), but not
           indexed (changing extended attributes only affects ctime). Notes:

              o This may prevent detection of change in some marginal file
                rename cases (the target would need to have the same size and
                mtime).

              o You should probably also set noxattrfields to 1 in this case,
                except if you still prefer to perform xattr indexing, for
                example if the local file update pattern makes it of value
                (as in general, there is a risk for pure extended attributes
                updates without file modification to go undetected).

           Perform a full index reset after changing the value of this
           parameter.

   noxattrfields

           Recoll versions 1.19 and later automatically translate file
           extended attributes into document fields (to be processed
           according to the parameters from the fields file). Setting this
           variable to 1 will disable the behaviour.

   metadatacmds

           This allows executing external commands for each file and storing
           the output in Recoll document fields. This could be used for
           example to index external tag data. The value is a list of field
           names and commands, don't forget an initial semi-colon. Example:

 [/some/area/of/the/fs]
 metadatacmds = ; tags = tmsu tags %f; otherfield = somecmd -xx %f
                

           As a specially disgusting hack brought by Recoll 1.19.7, if a
           "field name" begins with rclmulti, the data returned by the
           command is expected to contain multiple field values, in
           configuration file format. This allows setting several fields by
           executing a single command. Example:

 metadatacmds = ; rclmulti1 = somecmd %f
                

           If somecmd returns data in the form of:

 field1 = value1
 field2 = value for field2
                

           field1 and field2 will be set inside the document metadata.

    5.4.2.3. Parameters affecting where and how we store things:

   dbdir

           The name of the Xapian data directory. It will be created if
           needed when the index is initialized. If this is not an absolute
           path, it will be interpreted relative to the configuration
           directory. The value can have embedded spaces but starting or
           trailing spaces will be trimmed. You cannot use quotes here.

   idxstatusfile

           The name of the scratch file where the indexer process updates its
           status. Default: idxstatus.txt inside the configuration directory.

   maxfsoccuppc

           Maximum file system occupation before we stop indexing. The value
           is a percentage, corresponding to what the "Capacity" df output
           column shows. The default value is 0, meaning no checking.

   mboxcachedir

           The directory where mbox message offsets cache files are held.
           This is normally $RECOLL_CONFDIR/mboxcache, but it may be useful
           to share a directory between different configurations.

   mboxcacheminmbs

           The minimum mbox file size over which we cache the offsets. There
           is really no sense in caching offsets for small files. The default
           is 5 MB.

   webcachedir

           This is only used by the web browser plugin indexing code, and
           defines where the cache for visited pages will live. Default:
           $RECOLL_CONFDIR/webcache

   webcachemaxmbs

           This is only used by the web browser plugin indexing code, and
           defines the maximum size for the web page cache. Default: 40 MB.
           Quite unfortunately, this is only taken into account when creating
           the cache file. You need to delete the file for a change to be
           taken into account.

   idxflushmb

           Threshold (megabytes of new text data) where we flush from memory
           to disk index. Setting this can help control memory usage. A value
           of 0 means no explicit flushing, letting Xapian use its own
           default, which is flushing every 10000 (or XAPIAN_FLUSH_THRESHOLD)
           documents, which gives little memory usage control, as memory
           usage also depends on average document size. The default value is
           10, and it is probably a bit low. If your system usually has free
           memory, you can try higher values between 20 and 80. In my
           experience, values beyond 100 are always counterproductive.

    5.4.2.4. Parameters affecting multithread processing

   The Recoll indexing process recollindex can use multiple threads to speed
   up indexing on multiprocessor systems. The work done to index files is
   divided in several stages and some of the stages can be executed by
   multiple threads. The stages are:

    1. File system walking: this is always performed by the main thread.
    2. File conversion and data extraction.
    3. Text processing (splitting, stemming, etc.)
    4. Xapian index update.

   You can also read a longer document about the transformation of Recoll
   indexing to multithreading.

   The threads configuration is controlled by two configuration file
   parameters.

   thrQSizes

           This variable defines the job input queues configuration. There
           are three possible queues for stages 2, 3 and 4, and this
           parameter should give the queue depth for each stage (three
           integer values). If a value of -1 is used for a given stage, no
           queue is used, and the thread will go on performing the next
           stage. In practise, deep queues have not been shown to increase
           performance. A value of 0 for the first queue tells Recoll to
           perform autoconfiguration (no need for the two other values in
           this case) - this is the default configuration.

   thrTCounts

           This defines the number of threads used for each stage. If a value
           of -1 is used for one of the queue depths, the corresponding
           thread count is ignored. It makes no sense to use a value other
           than 1 for the last stage because updating the Xapian index is
           necessarily single-threaded (and protected by a mutex).

   The following example would use three queues (of depth 2), and 4 threads
   for converting source documents, 2 for processing their text, and one to
   update the index. This was tested to be the best configuration on the test
   system (quadri-processor with multiple disks).

 thrQSizes = 2 2 2
 thrTCounts =  4 2 1

   The following example would use a single queue, and the complete
   processing for each document would be performed by a single thread
   (several documents will still be processed in parallel in most cases). The
   threads will use mutual exclusion when entering the index update stage. In
   practise the performance would be close to the precedent case in general,
   but worse in certain cases (e.g. a Zip archive would be performed purely
   sequentially), so the previous approach is preferred. YMMV... The 2 last
   values for thrTCounts are ignored.

 thrQSizes = 2 -1 -1
 thrTCounts =  6 1 1

   The following example would disable multithreading. Indexing will be
   performed by a single thread.

 thrQSizes = -1 -1 -1

    5.4.2.5. Miscellaneous parameters:

   autodiacsens

           IF the index is not stripped, decide if we automatically trigger
           diacritics sensitivity if the search term has accented characters
           (not in unac_except_trans). Else you need to use the query
           language and the D modifier to specify diacritics sensitivity.
           Default is no.

   autocasesens

           IF the index is not stripped, decide if we automatically trigger
           character case sensitivity if the search term has upper-case
           characters in any but the first position. Else you need to use the
           query language and the C modifier to specify character-case
           sensitivity. Default is yes.

   loglevel,daemloglevel

           Verbosity level for recoll and recollindex. A value of 4 lists
           quite a lot of debug/information messages. 2 only lists errors.
           The daemversion is specific to the indexing monitor daemon.

   logfilename, daemlogfilename

           Where the messages should go. 'stderr' can be used as a special
           value, and is the default. The daemversion is specific to the
           indexing monitor daemon.

   checkneedretryindexscript

           This defines the name for a command executed by recollindex when
           starting indexing. If the exit status of the command is 0,
           recollindex retries to index all files which previously could not
           be indexed because of data extraction errors. The default value is
           a script which checks if any of the common bin directories have
           changed (indicating that a helper program may have been
           installed).

   mondelaypatterns

           This allows specify wildcard path patterns (processed with
           fnmatch(3) with 0 flag), to match files which change too often and
           for which a delay should be observed before re-indexing. This is a
           space-separated list, each entry being a pattern and a time in
           seconds, separated by a colon. You can use double quotes if a path
           entry contains white space. Example:

 mondelaypatterns = *.log:20 "this one has spaces*:10"
              

   monixinterval

           Minimum interval (seconds) for processing the indexing queue. The
           real time monitor does not process each event when it comes in,
           but will wait this time for the queue to accumulate to diminish
           overhead and in order to aggregate multiple events to the same
           file. Default 30 S.

   monauxinterval

           Period (in seconds) at which the real time monitor will regenerate
           the auxiliary databases (spelling, stemming) if needed. The
           default is one hour.

   monioniceclass, monioniceclassdata

           These allow defining the ionice class and data used by the indexer
           (default class 3, no data).

   filtermaxseconds

           Maximum handler execution time, after which it is aborted. Some
           postscript programs just loop...

   filtermaxmbytes

           Recoll 1.20.7 and later. Maximum handler memory utilisation. This
           uses setrlimit(RLIMIT_AS) on most systems (total virtual memory
           space size limit). Some programs may start with 500 MBytes of
           mapped shared libraries, so take this into account when choosing a
           value. The default is a liberal 2000MB.

   filtersdir

           A directory to search for the external input handler scripts used
           to index some types of files. The value should not be changed,
           except if you want to modify one of the default scripts. The value
           can be redefined for any sub-directory.

   iconsdir

           The name of the directory where recoll result list icons are
           stored. You can change this if you want different images.

   idxabsmlen

           Recoll stores an abstract for each indexed file inside the
           database. The text can come from an actual 'abstract' section in
           the document or will just be the beginning of the document. It is
           stored in the index so that it can be displayed inside the result
           lists without decoding the original file. The idxabsmlen parameter
           defines the size of the stored abstract. The default value is 250
           bytes. The search interface gives you the choice to display this
           stored text or a synthetic abstract built by extracting text
           around the search terms. If you always prefer the synthetic
           abstract, you can reduce this value and save a little space.

   idxmetastoredlen

           Maximum stored length for metadata fields. This does not affect
           indexing (the whole field is processed anyway), just the amount of
           data stored in the index for the purpose of displaying fields
           inside result lists or previews. The default value is 150 bytes
           which may be too low if you have custom fields.

   aspellLanguage

           Language definitions to use when creating the aspell dictionary.
           The value must match a set of aspell language definition files.
           You can type "aspell config" to see where these are installed
           (look for data-dir). The default if the variable is not set is to
           use your desktop national language environment to guess the value.

   noaspell

           If this is set, the aspell dictionary generation is turned off.
           Useful for cases where you don't need the functionality or when it
           is unusable because aspell crashes during dictionary generation.

   mhmboxquirks

           This allows definining location-related quirks for the mailbox
           handler. Currently only the tbird flag is defined, and it should
           be set for directories which hold Thunderbird data, as their
           folder format is weird.

  5.4.3. The fields file

   This file contains information about dynamic fields handling in Recoll.
   Some very basic fields have hard-wired behaviour, and, mostly, you should
   not change the original data inside the fields file. But you can create
   custom fields fitting your data and handle them just like they were native
   ones.

   The fields file has several sections, which each define an aspect of
   fields processing. Quite often, you'll have to modify several sections to
   obtain the desired behaviour.

   We will only give a short description here, you should refer to the
   comments inside the default file for more detailed information.

   Field names should be lowercase alphabetic ASCII.

   [prefixes]

           A field becomes indexed (searchable) by having a prefix defined in
           this section.

   [stored]

           A field becomes stored (displayable inside results) by having its
           name listed in this section (typically with an empty value).

   [aliases]

           This section defines lists of synonyms for the canonical names
           used inside the [prefixes] and [stored] sections

   [queryaliases]

           This section also defines aliases for the canonic field names,
           with the difference that the substitution will only be used at
           query time, avoiding any possibility that the value would pick-up
           random metadata from documents.

   handler-specific sections

           Some input handlers may need specific configuration for handling
           fields. Only the email message handler currently has such a
           section (named [mail]). It allows indexing arbitrary email headers
           in addition to the ones indexed by default. Other such sections
           may appear in the future.

   Here follows a small example of a personal fields file. This would extract
   a specific email header and use it as a searchable field, with data
   displayable inside result lists. (Side note: as the email handler does no
   decoding on the values, only plain ascii headers can be indexed, and only
   the first occurrence will be used for headers that occur several times).

 [prefixes]
 # Index mailmytag contents (with the given prefix)
 mailmytag = XMTAG

 [stored]
 # Store mailmytag inside the document data record (so that it can be
 # displayed - as %(mailmytag) - in result lists).
 mailmytag =

 [queryaliases]
 filename = fn
 containerfilename = cfn

 [mail]
 # Extract the X-My-Tag mail header, and use it internally with the
 # mailmytag field name
 x-my-tag = mailmytag

    5.4.3.1. Extended attributes in the fields file

   Recoll versions 1.19 and later process user extended file attributes as
   documents fields by default.

   Attributes are processed as fields of the same name, after removing the
   user prefix on Linux.

   The [xattrtofields] section of the fields file allows specifying
   translations from extended attributes names to Recoll field names. An
   empty translation disables use of the corresponding attribute data.

  5.4.4. The mimemap file

   mimemap specifies the file name extension to MIME type mappings.

   For file names without an extension, or with an unknown one, the system's
   file -i command will be executed to determine the MIME type (this can be
   switched off inside the main configuration file).

   The mappings can be specified on a per-subtree basis, which may be useful
   in some cases. Example: gaim logs have a .txt extension but should be
   handled specially, which is possible because they are usually all located
   in one place.

   The recoll_noindex mimemap variable has been moved to recoll.conf and
   renamed to noContentSuffixes, while keeping the same function, as of
   Recoll version 1.21. For older Recoll versions, see the documentation for
   noContentSuffixes but use recoll_noindex in mimemap.

  5.4.5. The mimeconf file

   mimeconf specifies how the different MIME types are handled for indexing,
   and which icons are displayed in the recoll result lists.

   Changing the parameters in the [index] section is probably not a good idea
   except if you are a Recoll developer.

   The [icons] section allows you to change the icons which are displayed by
   recoll in the result lists (the values are the basenames of the png images
   inside the iconsdir directory (specified in recoll.conf).

  5.4.6. The mimeview file

   mimeview specifies which programs are started when you click on an Open
   link in a result list. Ie: HTML is normally displayed using firefox, but
   you may prefer Konqueror, your openoffice.org program might be named
   oofice instead of openoffice etc.

   Changes to this file can be done by direct editing, or through the recoll
   GUI preferences dialog.

   If Use desktop preferences to choose document editor is checked in the
   Recoll GUI preferences, all mimeview entries will be ignored except the
   one labelled application/x-all (which is set to use xdg-open by default).

   In this case, the xallexcepts top level variable defines a list of MIME
   type exceptions which will be processed according to the local entries
   instead of being passed to the desktop. This is so that specific Recoll
   options such as a page number or a search string can be passed to
   applications that support them, such as the evince viewer.

   As for the other configuration files, the normal usage is to have a
   mimeview inside your own configuration directory, with just the
   non-default entries, which will override those from the central
   configuration file.

   All viewer definition entries must be placed under a [view] section.

   The keys in the file are normally MIME types. You can add an application
   tag to specialize the choice for an area of the filesystem (using a
   localfields specification in mimeconf). The syntax for the key is
   mimetype|tag

   The nouncompforviewmts entry, (placed at the top level, outside of the
   [view] section), holds a list of MIME types that should not be
   uncompressed before starting the viewer (if they are found compressed, ie:
   mydoc.doc.gz).

   The right side of each assignment holds a command to be executed for
   opening the file. The following substitutions are performed:

     o %D. Document date

     o %f. File name. This may be the name of a temporary file if it was
       necessary to create one (ie: to extract a subdocument from a
       container).

     o %i. Internal path, for subdocuments of containers. The format depends
       on the container type. If this appears in the command line, Recoll
       will not create a temporary file to extract the subdocument, expecting
       the called application (possibly a script) to be able to handle it.

     o %M. MIME type

     o %p. Page index. Only significant for a subset of document types,
       currently only PDF, Postscript and DVI files. Can be used to start the
       editor at the right page for a match or snippet.

     o %s. Search term. The value will only be set for documents with indexed
       page numbers (ie: PDF). The value will be one of the matched search
       terms. It would allow pre-setting the value in the "Find" entry inside
       Evince for example, for easy highlighting of the term.

     o %u. Url.

   In addition to the predefined values above, all strings like %(fieldname)
   will be replaced by the value of the field named fieldname for the
   document. This could be used in combination with field customisation to
   help with opening the document.

  5.4.7. The ptrans file

   ptrans specifies query-time path translations. These can be useful in
   multiple cases.

   The file has a section for any index which needs translations, either the
   main one or additional query indexes. The sections are named with the
   Xapian index directory names. No slash character should exist at the end
   of the paths (all comparisons are textual). An exemple should make things
   sufficiently clear

           [/home/me/.recoll/xapiandb]
           /this/directory/moved = /to/this/place

           [/path/to/additional/xapiandb]
           /server/volume1/docdir = /net/server/volume1/docdir
           /server/volume2/docdir = /net/server/volume2/docdir
        

  5.4.8. Examples of configuration adjustments

    5.4.8.1. Adding an external viewer for an non-indexed type

   Imagine that you have some kind of file which does not have indexable
   content, but for which you would like to have a functional Open link in
   the result list (when found by file name). The file names end in .blob and
   can be displayed by application blobviewer.

   You need two entries in the configuration files for this to work:

     o In $RECOLL_CONFDIR/mimemap (typically ~/.recoll/mimemap), add the
       following line:

 .blob = application/x-blobapp

       Note that the MIME type is made up here, and you could call it
       diesel/oil just the same.

     o In $RECOLL_CONFDIR/mimeview under the [view] section, add:

 application/x-blobapp = blobviewer %f

       We are supposing that blobviewer wants a file name parameter here, you
       would use %u if it liked URLs better.

   If you just wanted to change the application used by Recoll to display a
   MIME type which it already knows, you would just need to edit mimeview.
   The entries you add in your personal file override those in the central
   configuration, which you do not need to alter. mimeview can also be
   modified from the Gui.

    5.4.8.2. Adding indexing support for a new file type

   Let us now imagine that the above .blob files actually contain indexable
   text and that you know how to extract it with a command line program.
   Getting Recoll to index the files is easy. You need to perform the above
   alteration, and also to add data to the mimeconf file (typically in
   ~/.recoll/mimeconf):

     o Under the [index] section, add the following line (more about the
       rclblob indexing script later):

 application/x-blobapp = exec rclblob

     o Under the [icons] section, you should choose an icon to be displayed
       for the files inside the result lists. Icons are normally 64x64 pixels
       PNG files which live in /usr/[local/]share/recoll/images.

     o Under the [categories] section, you should add the MIME type where it
       makes sense (you can also create a category). Categories may be used
       for filtering in advanced search.

   The rclblob handler should be an executable program or script which exists
   inside /usr/[local/]share/recoll/filters. It will be given a file name as
   argument and should output the text or html contents on the standard
   output.

   The filter programming section describes in more detail how to write an
   input handler.
recoll-1.21.5/mk/0000755000175000017500000000000012652665251013003 5ustar  dockesdockesrecoll-1.21.5/mk/SunOS0000644000175000017500000000027112602163571013726 0ustar  dockesdockesinclude $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) 

CC = gcc
CXX = g++

LIBSYS = -lpthread -lnsl -lsocket -ldl
recoll-1.21.5/mk/Darwin0000644000175000017500000000027412602163571014146 0ustar  dockesdockesinclude $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS)

LIBRECOLL = -L$(depth)/lib -lrecoll

RANLIB = ranlib
LIBSYS = 
recoll-1.21.5/mk/Linux0000644000175000017500000000027312602163571014020 0ustar  dockesdockes
include $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) \
	 -D_GNU_SOURCE 

LIBSYS = -lpthread -ldl
LIBSYSTHREADS = 

recoll-1.21.5/mk/CYGWIN0000644000175000017500000000027312602163571013721 0ustar  dockesdockes
include $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) \
	 -D_GNU_SOURCE 

LIBSYS = -lpthread -ldl
LIBSYSTHREADS = 

recoll-1.21.5/mk/Default0000644000175000017500000000025112602163571014301 0ustar  dockesdockes
include $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) \
	 -D_GNU_SOURCE 

LIBSYS = -lpthread -ldl
recoll-1.21.5/mk/commondefs0000644000175000017500000000104712607224212015046 0ustar  dockesdockes
# Common/default for all systems, can be overridden by sys-specific include

COMMONCXXFLAGS = -I. \
	       -I$(depth)/aspell \
	       -I$(depth)/bincimapmime \
	       -I$(depth)/common \
	       -I$(depth)/index \
	       -I$(depth)/internfile \
	       -I$(depth)/rcldb \
	       -I$(depth)/unac \
	       -I$(depth)/utils 

# We happen to be using gcc on all platforms for now. Can be overridden in
# the sys file or localdefs
SYSPICFLAGS = -fPIC -DPIC

LIBRECOLL = -L$(depth)/lib -lrecoll -Wl,-rpath=$(libdir)/recoll

RANLIB = test -f
AR ?= ar
recoll-1.21.5/mk/localdefs.in0000644000175000017500000000146212602163571015263 0ustar  dockesdockes# @(#$Id: localdefs.in,v 1.14 2008-09-07 06:43:30 dockes Exp $  (C) 2006 J.F.Dockes

# 'Make' definitions which depend on local configuration.

LIBXAPIAN=@LIBXAPIAN@
XAPIANCXXFLAGS=@XAPIANCXXFLAGS@

LIBICONV=@LIBICONV@
INCICONV=@INCICONV@

LIBFAM = @LIBFAM@

RCLLIBVERSION=@RCLLIBVERSION@

X_CFLAGS=@X_CFLAGS@
X_PRE_LIBS=@X_PRE_LIBS@
X_LIBS=@X_LIBS@
X_EXTRA_LIBS=@X_EXTRA_LIBS@
X_LIBX11=@X_LIBX11@

prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@
libdir = @libdir@

RECOLL_DATADIR = ${datadir}/recoll

@NOPIC@PICFLAGS = $(SYSPICFLAGS)
@NOTHREADS@LIBTHREADS = $(LIBSYSTHREADS)

LOCALCXXFLAGS = -Wall -Wno-unused \
	      $(INCICONV) $(XAPIANCXXFLAGS) $(X_CFLAGS) \
	      -DRECOLL_DATADIR=\"$(RECOLL_DATADIR)\" \
	      $(PICFLAGS) \
	      @DEFS@

CXXFLAGS ?= @CXXFLAGS@

recoll-1.21.5/mk/OpenBSD0000644000175000017500000000024312602163571014150 0ustar  dockesdockesinclude $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) \
	 -pthread  -I/usr/include
LIBSYS = 
recoll-1.21.5/mk/commontargets0000644000175000017500000000035412602163571015603 0ustar  dockesdockes
librecoll:
	make -C $(depth)/lib

depend: alldeps.stamp
alldeps.stamp : $(SRCS)
	$(CXX) -M $(ALL_CXXFLAGS) $(SRCS) > alldeps
	touch alldeps.stamp

clean:
	cp /dev/null alldeps
	rm -f alldeps.stamp
	rm -f *.o ${LIBS} ${PROGS} ${OBJS} 

recoll-1.21.5/mk/FreeBSD0000644000175000017500000000023412602163571014130 0ustar  dockesdockesinclude $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) -pthread 
LIBSYS = -pthread -lz
recoll-1.21.5/mk/AIX0000644000175000017500000000024512602163571013341 0ustar  dockesdockesinclude $(depth)/mk/commondefs
include $(depth)/mk/localdefs

ALL_CXXFLAGS = $(CXXFLAGS) $(COMMONCXXFLAGS) $(LOCALCXXFLAGS) 

CC = gcc
CXX = g++

LIBSYS = -lpthread
recoll-1.21.5/kde/0000755000175000017500000000000012602163537013132 5ustar  dockesdockesrecoll-1.21.5/kde/kioslave/0000755000175000017500000000000012602163537014747 5ustar  dockesdockesrecoll-1.21.5/kde/kioslave/kio_recoll/0000755000175000017500000000000012602163571017067 5ustar  dockesdockesrecoll-1.21.5/kde/kioslave/kio_recoll/cleancmakestuff.sh0000644000175000017500000000045112602163537022560 0ustar  dockesdockes#!/bin/sh
rm -rf CMakeCache.txt CMakeFiles CTestTestfile.cmake \
    cmake_install.cmake CMakeTmp cmake_uninstall.cmake \
    CPackConfig.cmake CPackSourceConfig.cmake DartTestfile.txt \
    install_manifest.txt kio_recoll_automoc.cpp \
    kio_recoll_automoc.cpp.files kio_recoll.so lib Makefile
recoll-1.21.5/kde/kioslave/kio_recoll/recoll.protocol0000644000175000017500000000025612602163537022137 0ustar  dockesdockes[Protocol]
exec=kio_recoll
protocol=recoll
input=none
output=filesystem
listing=Name,Type, URL
reading=true
defaultMimeType=text/html
Icon=recoll
Class=:local
URIMode=rawuri
recoll-1.21.5/kde/kioslave/kio_recoll/notes.txt0000644000175000017500000001536012602163537020767 0ustar  dockesdockesRecoll KIO Slave notes/todoes/etc.

Goal: access Recoll search from other applications. 

We want to allow URLs like recoll:/?? to be used inside
Konqueror/Dolphin and open dialogs, to start a search with results
displayed/used inside the application.


Todoes
======


Implementation notes:
====================

- There are two main ways to do this: 
  - a-la kio_beagle, using listDir() to list entries pointing to the
    different operations or objects (help, status, search result
    entries, bookmarks, whatever...). The nice thing is that the
    results really look like file object in a directory (probably,
    didn't try it actually), no need for look and feel, it's provided by
    KDE 

  - Or a la strigi: all interactions are through html pages and get()
    operations.  Much simpler, but does not allow file management
    operations (except by drag/drop from the result list), and can't
    use it inside other application's Open dialogs.

Recoll is currently doing both things on KDE4.1 (only html for KDE4.0). 


Virtual tree:
=============

recoll: 
recoll:/
recoll:/help.html
recoll:/search.html
    Purely synthetic top level entries. Yes, given the following, this means
    that you can't search for 'help.html' directly (but you can do it through 
    the html interface). These have to exist in the top level directory

recoll:/some search string
recoll:/some search string/
 We have a 'mode' determined by the protocol name:
  	 recoll -> mixed
	 recollf -> file manager
  - html mode: these redirect to recoll://search/query?q="some search string"
  - file manager mode: do the search and display results.
  - mixed mode: what mode is entered depends on ending /

recoll://search/query?q=...
  html mode search  

recoll:/some search string/recollResultxyz
xyz is the index in result list.

When generating a directory, with use bogus names for the result
entries (the displayed ones are from UDS_DISPLAY_NAME and are the real
names). When doing drag/drop or "open with" Konqueror/Dolphin builds
an url by concatenating the current directory name and the UDS_NAME,
instead of using UDS_TARGET_URL as when the entry is clicked. This
forces us to use identifying names including the result number, which
has many ennoying side effects (such as the target app not knowing the
real file path...


KIO notes:
=========

- Slaves are reused seemingly at random. Even with connection-oriented
  ones (ie ftp), you can have 2 konqueror windows on different hosts
  with only one slave which will have to close/reopen the connection at
  each switch.
   For slaves with really expensive internal state, this is very wasteful.

- Use cases for father_url+name or target_url are ill defined.
- Need a way to block autocompletion queries !
- No way to display the target URL in konqueror

Todoes
======
- Improve the html interface to support more functions
 - Category filtering
 - Sorting

- Find a way to use the html form to enter the query and get the
  results as a directory ?  - Would it be possible to use a redirect
  to switch to the directory-oriented results for a query from the
  html form ? 
  -> No, even a redirect to a form that would initially trigger a
     listDir() triggers a get() when performed from a get()

KDE misc notes
==================
Debug areas: /usr/share/kde4/config/kdebug.areas
kdebugdialog [--fullmode] pour configurer
./.kde/share/config/kdebugrc
Output to ~/.xession-errors by default. How to change ?

kio_recoll misc notes:
===========================
Probleme quand l'url se termine par un / et qu'on edite le mot,
konqueror lance une recherche a chaque lettre.

Apparemment c'est l'entree "listing" du .protocol qui decide si le plugin
est trait plutot comme un dirlister ou comme un htmlgetter. Curieusement,
le changement ne s'opere pas toujours immediatement quand on change le
fichier .proto, y compris apres avoir tue tous les process kde (changement
 la deuxieme execution de konqueror sur kde4.0). Sur kde4.0 il faut que le
.proto soit sans entree "listing"

Problemes de gestion de l'etat
===============================
Les KIO slaves ne sont pas associes a une fenetre ! ils sont
reutilises au hasard, et leur etat n'a aucune raison de correspondre a
celui de l'affichage. On peut tres bien avoir 1 fenetre 2 kio ou 1 kio
deux fenetres, et le next d'un search peut arriver au kio qui a
l'autre search, donc n'importenaouak. Il faudrait que l'etat soit
partage et accede par un identifiant uniquement determine par l'url de
la fenetre.

Meme pour une fenetre unique, au bout d'un moment le kio timeout et exite.

En fait les slaves ne peuvent pas stocker d'etat du tout. Donc:
 - soit un serveur central auquel ils parlent
 - soit ils relancent dynamiquement les recherches si pas de match
C'est vrai aussi bien pour les dirlists que pour la version html. 

J'ai essaye de mettre une boucle timeout callback callspecial() mais
ca ne sert a rien, c'est gere dans le process kio_slave, ca ne
maintient pas l'association avec un konqueror.

KDE_FORK_SLAVES sort of solves the problem in a limited way: 
 - It applies to an application instance, not a KIO slave type, so it
   affects other KIO usages.  
 - If the application has 2 sessions with the same KIO there are no 
   warranties that 1 kio per session will be used ?



Old KDE3 notes, 
===============

kio_recoll has not been checked or worked under KDE3 for eons, no
reason to believe it works.

- Not using libtool. Probably should. compilation flags in the Makefile
  were copy-pasted from a kdebase compilation tree on FreeBSD (kio/man).
- You MUST install a kio_recoll.la in lib/kde3 along with kio_recoll.so,
  else kdeinit won't be able to load the lib (probably uses the libltdl
  thingy?). The one in this directory was duplicated/adjusted from
  kio_man.la. The contents don't seem too critical, just needs to exist.
- If you want to try, compile, then install kio_recoll.la kio_recoll.so
  wherever kde keeps its plugins (ie: lib/kde3), and recoll.protocol in the
  services directory (share/services ? look for other .protocol file).
- I saw after doing the build/config mockup that kdevelop can generate a
  kio_slave project. This might be the next thing to do. otoh would need to
  separate the kio from the main source to avoid having to distribute 2megs
  of kde build config files.



Connected mode
==============
Tried to add bogus connection status to see if this would prevent switching between apps/slaves, doesnt... checked that's the same for kio_ftp

void RecollProtocol::openConnection() 
{
    kDebug();
    connected();
}
void RecollProtocol::closeConnection() 
{
    kDebug();
}
void RecollProtocol::setHost(const QString& host, quint16, 
			     const QString&, const QString&)
{
    kDebug() << host;
}
void RecollProtocol::slave_status()
{
    kDebug();
    slaveStatus("search", true);
}
+    connected(); call in maybeopendb()
recoll-1.21.5/kde/kioslave/kio_recoll/00README.txt0000644000175000017500000000656412602163537020742 0ustar  dockesdockesRecoll KIO slave
================

An experiment with a recoll KIO slave.

Caveat: I am only currently testing this with a production, but very
recent, version of KDE 4.1, and I don't intend to really support
older versions. The most usable aspects work under KDE 4.0 though. As
a reference, my test system is an up to date (2009-01) Kubuntu 8.10.

Usage
=====

Depending on the protocol name used, the search results will be
returned either as HTML pages (looking quite like a normal Recoll
result list), or as directory entries.

The HTML mode only works with Konqueror, not Dolphin. The directory
mode is available with both browsers, and also application open dialog
(ie Kate).

The HTML mode is much more usable than the directory mode at this point

More detailed help/explanations can be found a document accessible
from the slave:

To try things out, after building and installing, enter "recoll:/" in
a Konqueror URL entry. Depending on the KDE version, this will bring
you either to an HTML search form, or to a directory listing, where
you should READ THE HELP FILE.

Building and installing:
=======================

Only tested with KDE 4.1 and later.

The main Recoll installation shares its prefix with the KIO slave,
which needs to use the KDE one. This means that, if KDE lives in /usr,
Recoll must be configured with --prefix=/usr, not /usr/local. Else
you'll have run-time problems, the slave will not be able to find the
Recoll configuration.

!!*Notice: You cannot share a build directory between recoll and kio_recoll
because they use different configure options for the main lib, but build it
in the same place. The main lib "configure" is run at "cmake" time for
kio_recoll, the build is done at "make" time.


Recipe:
 - Make sure the KDE4 core devel packages and cmake are installed.

 - Extract the Recoll source.

 - IF Recoll is not installed yet: configure recoll with 
   --prefix=/usr (or wherever KDE lives), build and install 
   Recoll.

 - In the Recoll source, go to kde/kioslave/recoll, then build and
   install the kio slave:

mkdir builddir
cd builddir
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
make
sudo make install

 - You should have a look at where "make install" copies things,
   because misconfigured distribution, generating wrong targets, are
   frequent. Especially, you should check that kio_recoll.so is copied
   to the right place, meaning among the output of "kde4-config --path
   module". As an additional check, there should be many other
   kio_[xxx].so in there. Same for the protocol file, check that it's
   not alone in its directory (really, this sounds strange, but, to
   this point, I've seen more systems with broken cmake/KDE configs
   than correct ones).

You need to build/update the index with recollindex, the KIO slave
doesn't deal with indexing for now.


Misc build problems:
===================

KUBUNTU 8.10 (updated to 2008-27-11)
------------------------------------
cmake generates a bad dependancy on
      /build/buildd/kde4libs-4.1.2/obj-i486-linux-gnu/lib/libkdecore.so 
inside CMakeFiles/kio_recoll.dir/build.make 

Found no way to fix this. You need to edit the line and replace the
/build/[...]/lib with /usr/lib. This manifests itself with the
following error message:

   make[2]: *** No rule to make target `/build/buildd/kde4libs-4.1.2/obj-i486-linux-gnu/lib/libkdecore.so', needed by `lib/kio_recoll.so'.  Stop.
recoll-1.21.5/kde/kioslave/kio_recoll/kio_recoll.la0000755000175000017500000000220612602163537021534 0ustar  dockesdockes# kio_recoll.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5a (1.1240 2003/06/26 06:55:19)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='kio_recoll.so'

# Names of this library.
library_names='kio_recoll.so kio_recoll.so kio_recoll.so'

# The name of the static archive.
old_library=''

# Libraries that this one depends upon.
dependency_libs=' -R/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/local/lib /usr/local/lib/libkio.la /usr/local/lib/libkdeui.la /usr/local/lib/libkdesu.la /usr/local/lib/libkwalletclient.la /usr/local/lib/libkdecore.la /usr/local/lib/libDCOP.la -lutil -lart_lgpl_2 -lidn /usr/local/lib/libkdefx.la -lqt-mt -lpng -lXext -lX11 -lSM -lICE -lXrender -lz /usr/local/lib/libfam.la -ljpeg'

# Version information for kio_recoll.
current=0
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn recoll portability when linking against -modules?
shouldnotlink=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib/kde3'
recoll-1.21.5/kde/kioslave/kio_recoll/recollf.protocol0000644000175000017500000000025712602163537022306 0ustar  dockesdockes[Protocol]
exec=kio_recoll
protocol=recollf
input=none
output=filesystem
listing=Name,Type, URL
reading=true
defaultMimeType=text/html
Icon=recoll
Class=:local
URIMode=rawuri
recoll-1.21.5/kde/kioslave/kio_recoll/kio_recoll.h0000644000175000017500000001422512602163571021366 0ustar  dockesdockes#ifndef _RECOLL_H
#define _RECOLL_H
/* Copyright (C) 2005 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#include 
using std::string;

#include 
#include 

#include 
#include 
#include 
#include 

#include "rclconfig.h"
#include "rcldb.h"
#include "reslistpager.h"
#include "docseq.h"
#include "refcntr.h"

class RecollProtocol;

/** Specialize the recoll html pager for the kind of links we use etc. */
class RecollKioPager : public ResListPager {
public:
    RecollKioPager() : m_parent(0) {}
    void setParent(RecollProtocol *proto) {m_parent = proto;}

    virtual bool append(const string& data);
    virtual bool append(const string& data, int, const Rcl::Doc&)
    {return append(data);}
    virtual string detailsLink();
    virtual const string &parFormat();
    virtual string nextUrl();
    virtual string prevUrl();
    virtual string pageTop();

private:
    RecollProtocol *m_parent;
};

class QueryDesc {
public:
    QueryDesc() : opt("l"), page(0), isDetReq(false) {}
    QString query;
    QString opt;
    int page;
    bool isDetReq;
    bool sameQuery(const QueryDesc& o) const {
	return !opt.compare(o.opt) && !query.compare(o.query);
    }
};

// Our virtual tree is a bit complicated. We need a class to analyse an URL
// and tell what we should do with it
class UrlIngester {
public:
    UrlIngester(RecollProtocol *p, const KUrl& url);
    enum RootEntryType {UIRET_NONE, UIRET_ROOT, UIRET_HELP, UIRET_SEARCH};
    bool isRootEntry(RootEntryType *tp) {
	if (m_type != UIMT_ROOTENTRY) return false;
	*tp = m_retType;
	return true;
    }
    bool isQuery(QueryDesc *q) {
	if (m_type != UIMT_QUERY) return false;
	*q = m_query;
	return true;
    }
    bool isResult(QueryDesc *q, int *num) {
	if (m_type != UIMT_QUERYRESULT) return false;
	*q = m_query;
	*num = m_resnum;
	return true;
    }
    bool isPreview(QueryDesc *q, int *num) {
	if (m_type != UIMT_PREVIEW) return false;
	*q = m_query;
	*num = m_resnum;
	return true;
    }
    bool endSlashQuery() {return m_slashend;}
    bool alwaysDir() {return m_alwaysdir;}

private:
    RecollProtocol *m_parent;
    QueryDesc       m_query;
    bool            m_slashend;
    bool            m_alwaysdir;
    RootEntryType   m_retType;
    int             m_resnum;
    enum MyType {UIMT_NONE, UIMT_ROOTENTRY, UIMT_QUERY, UIMT_QUERYRESULT,
		 UIMT_PREVIEW};
    MyType           m_type;
};


/**
 * A KIO slave to execute and display Recoll searches.
 *
 * Things are made a little complicated because KIO slaves can't hope
 * that their internal state will remain consistent with their user
 * application state: slaves die, are restarted, reused, at random
 * between requests. 
 * In our case, this means that any request has to be processed
 * without reference to the last operation performed. Ie, if the
 * search parameters are not those from the last request, the search
 * must be restarted anew. This happens for example with different
 * searches in 2 konqueror screens: typically only one kio_slave will
 * be used.
 * The fact that we check if the search is the same as the last one,
 * to avoid restarting is an optimization, not the base mechanism
 * (contrary to what was initially assumed, and may have left a few
 * crumbs around).
 *
 * We have two modes of operation, one based on html forms and result
 * pages, which can potentially be developped to the full Recoll
 * functionality, and one based on a directory listing model, which
 * will always be more limited, but may be useful in some cases to
 * allow easy copying of files etc. Which one is in use is decided by
 * the form of the URL. 
 */
class RecollProtocol : public KIO::SlaveBase {
 public:
    RecollProtocol(const QByteArray &pool, const QByteArray &app );
    virtual ~RecollProtocol();
    virtual void mimetype(const KUrl& url);
    virtual void get(const KUrl& url);
    // The directory mode is not available with KDE 4.0, I could find
    // no way to avoid crashing kdirmodel
#if KDE_IS_VERSION(4,1,0)
    virtual void stat(const KUrl & url);
    virtual void listDir(const KUrl& url);
#endif

    static RclConfig  *o_rclconfig;

    friend class RecollKioPager;
    friend class UrlIngester;

 private:
    bool maybeOpenDb(string& reason);
    bool URLToQuery(const KUrl &url, QString& q, QString& opt, int *page=0);
    bool doSearch(const QueryDesc& qd);

    void searchPage();
    void queryDetails();
    string makeQueryUrl(int page, bool isdet = false);
    bool syncSearch(const QueryDesc& qd);
    void htmlDoSearch(const QueryDesc& qd);
    void showPreview(const Rcl::Doc& doc);
    bool isRecollResult(const KUrl &url, int *num, QString* q);

    bool        m_initok;
    Rcl::Db    *m_rcldb;
    string      m_reason;
    bool        m_alwaysdir;
    string      m_stemlang; // english by default else env[RECOLL_KIO_STEMLANG]

    // Search state: because of how the KIO slaves are used / reused,
    // we can't be sure that the next request will be for the same
    // search, and we need to check and restart one if the data
    // changes. This is very wasteful but hopefully won't happen too
    // much in actual use. One possible workaround for some scenarios
    // (one slave several konqueror windows) would be to have a small
    // cache of recent searches kept open.
    RecollKioPager m_pager;
    RefCntr m_source;
    // Note: page here is not used, current page always comes from m_pager.
    QueryDesc      m_query;
};

extern "C" {int kdemain(int, char**);}

#endif // _RECOLL_H
recoll-1.21.5/kde/kioslave/kio_recoll/dirif.cpp0000644000175000017500000002514412602163537020700 0ustar  dockesdockes/* Copyright (C) 2008 J.F.Dockes
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

/*
 * A lot of code in this file was copied from kio_beagle 0.4.0,
 * which is a GPL program. The authors listed are:
 * Debajyoti Bera 
 * 
 * KDE4 port:
 * Stephan Binner 
 */

#include "autoconfig.h"

#include 

#if KDE_IS_VERSION(4,1,0)
// Couldn't get listDir() to work with kde 4.0, konqueror keeps
// crashing because of kdirmodel, couldn't find a workaround (not
// saying it's impossible)...

#include 

#include 
#include 
#include 
#include 

#include "kio_recoll.h"
#include "pathut.h"

using namespace KIO;

static const QString resultBaseName("recollResult");

// Check if the input URL is of the form that konqueror builds by
// appending one of our result file names to the directory name (which
// is the search string). If it is, extract return the result document
// number. Possibly restart the search if the search string does not
// match the current one
bool RecollProtocol::isRecollResult(const KUrl &url, int *num, QString *q)
{
    *num = -1;
    kDebug() << "url" << url;

    // Basic checks
    if (!url.host().isEmpty() || url.path().isEmpty() || 
        (url.protocol().compare("recoll") && url.protocol().compare("recollf")))
        return false;
    QString path = url.path();
    if (!path.startsWith("/")) 
        return false;

    // Look for the last '/' and check if it is followed by
    // resultBaseName (riiiight...)
    int slashpos = path.lastIndexOf("/");
    if (slashpos == -1 || slashpos == 0 || slashpos == path.length() -1)
        return false;
    slashpos++;
    //kDebug() << "Comparing " << path.mid(slashpos, resultBaseName.length()) <<
    //  "and " << resultBaseName;
    if (path.mid(slashpos, resultBaseName.length()).compare(resultBaseName))
        return false;

    // Extract the result number
    QString snum = path.mid(slashpos + resultBaseName.length());
    sscanf(snum.toAscii(), "%d", num);
    if (*num == -1)
        return false;

    //kDebug() << "URL analysis ok, num:" << *num;

    // We do have something that ressembles a recoll result locator. Check if
    // this matches the current search, else have to run the requested one
    *q = path.mid(1, slashpos-2);
    return true;
}

// Translate rcldoc result into directory entry
static const UDSEntry resultToUDSEntry(const Rcl::Doc& doc, int num)
{
    UDSEntry entry;
    
    KUrl url(doc.url.c_str());
//    kDebug() << doc.url.c_str();

    entry.insert(KIO::UDSEntry::UDS_DISPLAY_NAME, url.fileName());
    char cnum[30];sprintf(cnum, "%04d", num);
    entry.insert(KIO::UDSEntry::UDS_NAME, resultBaseName + cnum);

    if (!doc.mimetype.compare("application/x-fsdirectory") || 
        !doc.mimetype.compare("inode/directory")) {
        entry.insert(KIO::UDSEntry::UDS_MIME_TYPE, "inode/directory");
        entry.insert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
    } else {
        entry.insert(KIO::UDSEntry::UDS_MIME_TYPE, doc.mimetype.c_str());
        entry.insert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
    }
    entry.insert(KIO::UDSEntry::UDS_LOCAL_PATH, url.path());
    // For local files, supply the usual file stat information
    struct stat info;
    if (lstat(url.path().toAscii(), &info) >= 0) {
        entry.insert( KIO::UDSEntry::UDS_SIZE, info.st_size);
        entry.insert( KIO::UDSEntry::UDS_ACCESS, info.st_mode);
        entry.insert( KIO::UDSEntry::UDS_MODIFICATION_TIME, info.st_mtime);
        entry.insert( KIO::UDSEntry::UDS_ACCESS_TIME, info.st_atime);
        entry.insert( KIO::UDSEntry::UDS_CREATION_TIME, info.st_ctime);
    }
    entry.insert(KIO::UDSEntry::UDS_TARGET_URL, doc.url.c_str());

    return entry;
}


// From kio_beagle
static void createRootEntry(KIO::UDSEntry& entry)
{
    entry.clear();
    entry.insert( KIO::UDSEntry::UDS_NAME, ".");
    entry.insert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
    entry.insert( KIO::UDSEntry::UDS_ACCESS, 0700);
    entry.insert( KIO::UDSEntry::UDS_MIME_TYPE, "inode/directory");
}

// Points to html query screen
static void createGoHomeEntry(KIO::UDSEntry& entry)
{
    entry.clear();
    entry.insert(KIO::UDSEntry::UDS_NAME, "search.html");
    entry.insert(KIO::UDSEntry::UDS_DISPLAY_NAME, "Recoll search (click me)");
    entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
    entry.insert(KIO::UDSEntry::UDS_TARGET_URL, "recoll:///search.html");
    entry.insert(KIO::UDSEntry::UDS_ACCESS, 0500);
    entry.insert(KIO::UDSEntry::UDS_MIME_TYPE, "text/html");
    entry.insert(KIO::UDSEntry::UDS_ICON_NAME, "recoll");
}

// Points to help file
static void createGoHelpEntry(KIO::UDSEntry& entry)
{
    QString location = 
        KStandardDirs::locate("data", "kio_recoll/help.html");
    entry.clear();
    entry.insert(KIO::UDSEntry::UDS_NAME, "help");
    entry.insert(KIO::UDSEntry::UDS_DISPLAY_NAME, "Recoll help (click me first)");
    entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
    entry.insert(KIO::UDSEntry::UDS_TARGET_URL, QString("file://") +
                 location);
    entry.insert(KIO::UDSEntry::UDS_ACCESS, 0500);
    entry.insert(KIO::UDSEntry::UDS_MIME_TYPE, "text/html");
    entry.insert(KIO::UDSEntry::UDS_ICON_NAME, "help");
}

void RecollProtocol::stat(const KUrl & url)
{
    kDebug() << url << endl ;

    UrlIngester ingest(this, url);

    KIO::UDSEntry entry;
    entry.insert(KIO::UDSEntry::UDS_TARGET_URL, url.url());
    UrlIngester::RootEntryType rettp;
    QueryDesc qd;
    int num;
    if (ingest.isRootEntry(&rettp)) {
        switch(rettp) {
        case UrlIngester::UIRET_ROOT:
            createRootEntry(entry);
            break;
        case UrlIngester::UIRET_HELP: 
            createGoHelpEntry(entry);
            break;
        case UrlIngester::UIRET_SEARCH:
            createGoHomeEntry(entry);
            break;
        default: 
            error(ERR_DOES_NOT_EXIST, "");
            break;
        }
    } else if (ingest.isResult(&qd, &num)) {
        if (syncSearch(qd)) {
            Rcl::Doc doc;
            if (num >= 0 && !m_source.isNull() && 
                m_source->getDoc(num, doc)) {
                entry = resultToUDSEntry(doc, num);
            } else {
                error(ERR_DOES_NOT_EXIST, "");
            }
        } else {
            // hopefully syncSearch() set the error?
        }
    } else if (ingest.isQuery(&qd)) {
        // ie "recoll:/some string" or "recoll:/some string/" 
        //
        // We have a problem here. We'd like to let the user enter
        // either form and get an html or a dir contents result,
        // depending on the ending /. Otoh this makes the name space
        // inconsistent, because /toto can't be a file (the html
        // result page) while /toto/ would be a directory ? or can it
        //
        // Another approach would be to use different protocol names
        // to avoid any possibility of mixups
        if (m_alwaysdir || ingest.alwaysDir() || ingest.endSlashQuery()) {
            kDebug() << "Directory type";
            entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
            entry.insert(KIO::UDSEntry::UDS_ACCESS, 0700);
            entry.insert(KIO::UDSEntry::UDS_MIME_TYPE, "inode/directory");
            entry.insert(KIO::UDSEntry::UDS_NAME, qd.query);
            entry.insert( KIO::UDSEntry::UDS_MODIFICATION_TIME, time(0));
            entry.insert( KIO::UDSEntry::UDS_CREATION_TIME, time(0));
        }
    }
    statEntry(entry);
    finished();
}

void RecollProtocol::listDir(const KUrl& url)
{
    kDebug() << url << endl;

    UrlIngester ingest(this, url);
    UrlIngester::RootEntryType rettp;
    QueryDesc qd;

    if (ingest.isRootEntry(&rettp)) {
        switch(rettp) {
        case UrlIngester::UIRET_ROOT:
            {
                kDebug() << "list /" << endl;
                UDSEntryList entries;
                KIO::UDSEntry entry;
                createRootEntry(entry);
                entries.append(entry);
                createGoHomeEntry(entry);
                entries.append(entry);
                createGoHelpEntry(entry);
                entries.append(entry);
                listEntries(entries);
                finished();
            }
            return;
        default:
            error(ERR_CANNOT_ENTER_DIRECTORY, "");
            return;
        }
    } else if (ingest.isQuery(&qd)) {
        // At this point, it seems that when the request is from
        // konqueror autocompletion it comes with a / at the end,
        // which offers an opportunity to not perform it.
        if (ingest.endSlashQuery()) {
            kDebug() << "Ends With /" << endl;
            error(ERR_SLAVE_DEFINED, "Autocompletion search aborted");
            return;
        }
        if (!syncSearch(qd)) {
            // syncSearch did the error thing
            return;
        }
        // Fallthrough to actually listing the directory
    } else {
        kDebug() << "Cant grok input url";
        error(ERR_CANNOT_ENTER_DIRECTORY, "");
        return;
    }

    static int maxentries = -1;
    if (maxentries == -1) {
        if (o_rclconfig)
            o_rclconfig->getConfParam("kio_max_direntries", &maxentries);
        if (maxentries == -1)
            maxentries = 10000;
    }
    static const int pagesize = 200;
    int pagebase = 0;
    while (pagebase < maxentries) {
        vector page;
        int pagelen = m_source->getSeqSlice(pagebase, pagesize, page);
        UDSEntry entry;
        if (pagelen < 0) {
            error(ERR_SLAVE_DEFINED, "Internal error");
            listEntry(entry, true);
            break;
        }
        for (int i = 0; i < pagelen; i++) {
            listEntry(resultToUDSEntry(page[i].doc, i), false);
        }
        if (pagelen != pagesize) {
            listEntry(entry, true);
            break;
        }
        pagebase += pagelen;
    }
    finished();
}

#else // <--- KDE 4.1+ 

#include 
#include "kio_recoll.h"
bool RecollProtocol::isRecollResult(const KUrl &, int *, QString *)
{
    return false;
}
#endif 
recoll-1.21.5/kde/kioslave/kio_recoll/data/0000755000175000017500000000000012602163537020002 5ustar  dockesdockesrecoll-1.21.5/kde/kioslave/kio_recoll/data/help.html0000644000175000017500000000751612602163537021631 0ustar  dockesdockes

  
  Recoll Kio Slave


  Recoll search
  

Recoll kio slave

Use this module to perform Recoll searches from any program with a KIO interface.

The module can work in two modes:

  • Html interface, close to a simplified QT Recoll interface.
  • File manager interface, Only with KDE 4.1 and newer, which presents results as directory entries

The module is still in its infancy. You will undoubtedly obtain strange effects from time to time. If you have any remarks or ideas about improving kio_recoll, or observe an interesting and reproducible sequence, please report it.

kio_recoll is primarily designed and tested with konqueror, and you will undoubtedly get even more surprising effects with other tools.

The Html interface is currently much more usable. The directory interface is extremely quirky.

The module is particularly unhelpful with search hits inside email folders, which Konqueror has no way to access.

HTML interface

This works more or less like the Recoll QT GUI, much simplified. The Recoll manual describes the queries that can be performed.

Most pages in the interface should quite self-explanatory.

You normally enter this interface by entering "recoll:" or "recoll:/" in the Konqueror URL entry, and following the "search" link. You can also directly enter "recoll:/search.html".
In most circumstances, entering a link like recoll:/john smith will also yield an HTML result list.

Compared to QT Recoll, the nice point is that you can click or drag/drop the icons to access the results in the standard desktop way.

File manager interface

The path part of the URI is taken as a Recoll query language string and executed. The results are displayed as directory entries.

There are several ways to enter this interface:

  • Using "recollf" as protocol name instead of "recoll". This is probably the easiest option inside open dialogs.
  • Using an URL ending with a '/', ie:
    recoll:/red apples ext:html/
  • Users who will want to use the file manager view most of the time can set the RECOLL_KIO_ALWAYS_DIR environment variable or the kio_always_dir recoll.conf variable to 1. The HTML interface will then only be accessible through the search link in the top "recoll:" view.

No search result details (samples, relevance etc.) are available, but this interface allows multiple selections and copies, usage inside any KDE open dialog, etc.

To avoid swamping the interface with thousands of results, the result count is limited to 100 by default. You can change this value by setting the kio_max_direntries parameter in your recoll configuration file (typically ~/.recoll/recoll.conf)

Because of limitations in the current KIO slave usage, the actual entry names are not those displayed but synthetic ones like "recollResultxxx". This has unfortunate side-effects when dragging/dropping the entries to some other application, or when using an open dialog (the opened file doesn't have the correct path to the original file).

Recoll Search

recoll-1.21.5/kde/kioslave/kio_recoll/data/searchable.html0000644000175000017500000000145012602163537022761 0ustar dockesdockes Recoll searchable HTML

A Recoll-searchable HTML page

This is a text sample in which links have been inserted for words, such as system installation, which can be searched for in the whole document set by using recoll

Also a little bit of javascript magic can make all words searchable (try double-clicking any word).

recoll-1.21.5/kde/kioslave/kio_recoll/data/welcome.html0000644000175000017500000000145212602163537022325 0ustar dockesdockes Recoll Search

Recoll search

Query type:
Query language
All terms
Any term
File name
Enter search string:

recoll-1.21.5/kde/kioslave/kio_recoll/Makefile.kde30000644000175000017500000000344512602163537021364 0ustar dockesdockesdepth=../../.. include $(depth)/mk/sysconf # Need to set this by hand until we decide how to autoconf this without # bringing 2mbytes of kde config files. # May also need to adjust stuff such as the --rpath's below # KDE_INCLUDES=/usr/include/kde QT_INCLUDES=/usr/include/qt3 all: kio_recoll.so DEPS_CXXFLAGS = -MT pop3.lo -MD -MP -MF .deps/pop3.Tpo INC_CXXFLAGS = -I. \ -I$(KDE_INCLUDES) -I$(QT_INCLUDES) \ -I$(depth)/common -I$(depth)/query -I$(depth)/utils \ -I$(depth)/qtgui -I$(depth)/rcldb PIC_CXXFLAGS = -fPIC -DPIC DEBUG_CXXFLAGS = -DNDEBUG -DNO_DEBUG -O2 -O LANG_CXXFLAGS = -fno-exceptions -fno-check-new -fno-common QT_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL \ -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT SYS_CXXFLAGS = -D_GNU_SOURCE THREAD_CXXFLAGS = -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread # -rpath=/usr/lib:/usr/local/lib \ LDFLAGS = \ -Wl,--rpath -Wl,/usr/local/lib \ -Wl,--rpath -Wl,/usr/X11R6/lib \ -Wl,-export-dynamic -Wl,-soname -Wl,kio_recoll.so THREAD_LDFLAGS = -pthread kio_recoll.so : kio_recoll.o libpic c++ -shared $(LDFLAGS) $(THREAD_LDFLAGS) \ -Wl,--no-undefined \ kio_recoll.o piclib/librcl.a \ $(LIBXAPIAN) $(LIBICONV) \ -L/opt/kde3/lib -L/usr/local/lib -L/usr/X11R6/lib -lkio -lkdecore \ -L/usr/lib/qt3/lib -lqt-mt \ -L/usr/lib -lstdc++ -lm -lc \ -o kio_recoll.so kio_recoll.o : kio_recoll.cpp kio_recoll.h $(CXX) -c -pipe kio_recoll.cpp $(INC_CXXFLAGS) $(PIC_CXXFLAGS) \ $(DEBUG_CXXFLAGS) $(LANG_CXXFLAGS) $(QT_CXXFLAGS) $(SYS_CXXFLAGS) \ $(THREAD_CXXFLAGS) \ -o kio_recoll.o libpic: cd piclib;test -f Makefile || depth=$(depth)/.. sh $(depth)/../lib/mkMake cd piclib;$(MAKE) CXXFLAGS="$(CXXFLAGS) $(PIC_CXXFLAGS)" \ CFLAGS="$(CFLAGS) $(PIC_CXXFLAGS)" .PHONY: all libpic recoll-1.21.5/kde/kioslave/kio_recoll/kio_recoll.cpp0000644000175000017500000002475512602163571021732 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include using namespace std; #include #include #include #include #include #include #include #include "rclconfig.h" #include "rcldb.h" #include "rclinit.h" #include "pathut.h" #include "searchdata.h" #include "rclquery.h" #include "wasatorcl.h" #include "kio_recoll.h" #include "docseqdb.h" #include "readfile.h" #include "smallut.h" #include "textsplit.h" #include "guiutils.h" using namespace KIO; RclConfig *RecollProtocol::o_rclconfig; RecollProtocol::RecollProtocol(const QByteArray &pool, const QByteArray &app) : SlaveBase("recoll", pool, app), m_initok(false), m_rcldb(0), m_alwaysdir(false) { kDebug() << endl; if (o_rclconfig == 0) { o_rclconfig = recollinit(0, 0, m_reason); if (!o_rclconfig || !o_rclconfig->ok()) { m_reason = string("Configuration problem: ") + m_reason; return; } } if (o_rclconfig->getDbDir().empty()) { // Note: this will have to be replaced by a call to a // configuration building dialog for initial configuration? Or // do we assume that the QT GUO is always used for this ? m_reason = "No db directory in configuration ??"; return; } rwSettings(false); m_rcldb = new Rcl::Db(o_rclconfig); if (!m_rcldb) { m_reason = "Could not build database object. (out of memory ?)"; return; } // Decide if we allow switching between html and file manager // presentation by using an end slash or not. Can also be done dynamically // by switching proto names. const char *cp = getenv("RECOLL_KIO_ALWAYS_DIR"); if (cp) { m_alwaysdir = stringToBool(cp); } else { o_rclconfig->getConfParam("kio_always_dir", &m_alwaysdir); } cp = getenv("RECOLL_KIO_STEMLANG"); if (cp) { m_stemlang = cp; } else { m_stemlang = "english"; } m_pager.setParent(this); m_initok = true; return; } // There should be an object counter somewhere to delete the config when done. // Doesn't seem needed in the kio context. RecollProtocol::~RecollProtocol() { kDebug(); delete m_rcldb; } bool RecollProtocol::maybeOpenDb(string &reason) { if (!m_rcldb) { reason = "Internal error: initialization error"; return false; } if (!m_rcldb->isopen() && !m_rcldb->open(Rcl::Db::DbRO)) { reason = "Could not open database in " + o_rclconfig->getDbDir(); return false; } return true; } // This is never called afaik void RecollProtocol::mimetype(const KUrl &url) { kDebug() << url << endl; mimeType("text/html"); finished(); } UrlIngester::UrlIngester(RecollProtocol *p, const KUrl& url) : m_parent(p), m_slashend(false), m_alwaysdir(false), m_retType(UIRET_NONE), m_resnum(0), m_type(UIMT_NONE) { kDebug() << "Url" << url; m_alwaysdir = !url.protocol().compare("recollf"); QString path = url.path(); if (url.host().isEmpty()) { if (path.isEmpty() || !path.compare("/")) { m_type = UIMT_ROOTENTRY; m_retType = UIRET_ROOT; return; } else if (!path.compare("/help.html")) { m_type = UIMT_ROOTENTRY; m_retType = UIRET_HELP; return; } else if (!path.compare("/search.html")) { m_type = UIMT_ROOTENTRY; m_retType = UIRET_SEARCH; // Retrieve the query value for preloading the form m_query.query = url.queryItem("q"); return; } else if (m_parent->isRecollResult(url, &m_resnum, &m_query.query)) { m_type = UIMT_QUERYRESULT; m_query.opt = "l"; m_query.page = 0; } else { // Have to think this is some search string m_type = UIMT_QUERY; m_query.query = url.path(); m_query.opt = "l"; m_query.page = 0; } } else { // Non empty host, url must be something like : // //search/query?q=query¶m=value... kDebug() << "host" << url.host() << "path" << url.path(); if (url.host().compare("search") || url.path().compare("/query")) { return; } m_type = UIMT_QUERY; // Decode the forms' arguments m_query.query = url.queryItem("q"); m_query.opt = url.queryItem("qtp"); if (m_query.opt.isEmpty()) { m_query.opt = "l"; } QString p = url.queryItem("p"); if (p.isEmpty()) { m_query.page = 0; } else { sscanf(p.toAscii(), "%d", &m_query.page); } p = url.queryItem("det"); m_query.isDetReq = !p.isEmpty(); p = url.queryItem("cmd"); if (!p.isEmpty() && !p.compare("pv")) { p = url.queryItem("dn"); if (!p.isEmpty()) { // Preview and no docnum ?? m_resnum = atoi((const char *)p.toUtf8()); // Result in page is 1+ m_resnum--; m_type = UIMT_PREVIEW; } } } if (m_query.query.startsWith("/")) m_query.query.remove(0,1); if (m_query.query.endsWith("/")) { kDebug() << "Ends with /"; m_slashend = true; m_query.query.chop(1); } else { m_slashend = false; } return; } bool RecollProtocol::syncSearch(const QueryDesc &qd) { kDebug(); if (!m_initok || !maybeOpenDb(m_reason)) { string reason = "RecollProtocol::listDir: Init error:" + m_reason; error(KIO::ERR_SLAVE_DEFINED, reason.c_str()); return false; } if (qd.sameQuery(m_query)) { return true; } // doSearch() calls error() if appropriate. return doSearch(qd); } // This is used by the html interface, but also by the directory one // when doing file copies for exemple. This is the central dispatcher // for requests, it has to know a little about both models. void RecollProtocol::get(const KUrl& url) { kDebug() << url << endl; if (!m_initok || !maybeOpenDb(m_reason)) { string reason = "Recoll: init error: " + m_reason; error(KIO::ERR_SLAVE_DEFINED, reason.c_str()); return; } UrlIngester ingest(this, url); UrlIngester::RootEntryType rettp; QueryDesc qd; int resnum; if (ingest.isRootEntry(&rettp)) { switch(rettp) { case UrlIngester::UIRET_HELP: { QString location = KStandardDirs::locate("data", "kio_recoll/help.html"); redirection(location); } goto out; default: searchPage(); goto out; } } else if (ingest.isResult(&qd, &resnum)) { // Url matched one generated by konqueror/Dolphin out of a // search directory listing: ie: // recoll:/some search string/recollResultxx // // This happens when the user drags/drop the result to another // app, or with the "open-with" right-click. Does not happen // if the entry itself is clicked (the UDS_URL is apparently // used in this case // // Redirect to the result document URL if (!syncSearch(qd)) { return; } Rcl::Doc doc; if (resnum >= 0 && !m_source.isNull() && m_source->getDoc(resnum, doc)) { mimeType(doc.mimetype.c_str()); redirection(KUrl::fromLocalFile((const char *)(doc.url.c_str()+7))); goto out; } } else if (ingest.isPreview(&qd, &resnum)) { if (!syncSearch(qd)) { return; } Rcl::Doc doc; if (resnum >= 0 && !m_source.isNull() && m_source->getDoc(resnum, doc)) { showPreview(doc); goto out; } } else if (ingest.isQuery(&qd)) { #if 0 // Do we need this ? if (host.isEmpty()) { char cpage[20];sprintf(cpage, "%d", page); QString nurl = QString::fromAscii("recoll://search/query?q=") + query + "&qtp=" + opt + "&p=" + cpage; redirection(KUrl(nurl)); goto out; } #endif // htmlDoSearch does the search syncing (needs to know about changes). htmlDoSearch(qd); goto out; } error(KIO::ERR_SLAVE_DEFINED, "Unrecognized URL or internal error"); out: finished(); } // Execute Recoll search, and set the docsource bool RecollProtocol::doSearch(const QueryDesc& qd) { kDebug() << "query" << qd.query << "opt" << qd.opt; m_query = qd; char opt = qd.opt.isEmpty() ? 'l' : qd.opt.toUtf8().at(0); string qs = (const char *)qd.query.toUtf8(); Rcl::SearchData *sd = 0; if (opt != 'l') { Rcl::SearchDataClause *clp = 0; if (opt == 'f') { clp = new Rcl::SearchDataClauseFilename(qs); } else { clp = new Rcl::SearchDataClauseSimple(opt == 'o' ? Rcl::SCLT_OR : Rcl::SCLT_AND, qs); } sd = new Rcl::SearchData(Rcl::SCLT_OR, m_stemlang); if (sd && clp) sd->addClause(clp); } else { sd = wasaStringToRcl(o_rclconfig, m_stemlang, qs, m_reason); } if (!sd) { m_reason = "Internal Error: cant build search"; error(KIO::ERR_SLAVE_DEFINED, m_reason.c_str()); return false; } RefCntr sdata(sd); RefCntrquery(new Rcl::Query(m_rcldb)); query->setCollapseDuplicates(prefs.collapseDuplicates); if (!query->setQuery(sdata)) { m_reason = "Query execute failed. Invalid query or syntax error?"; error(KIO::ERR_SLAVE_DEFINED, m_reason.c_str()); return false; } DocSequenceDb *src = new DocSequenceDb(RefCntr(query), "Query results", sdata); if (src == 0) { error(KIO::ERR_SLAVE_DEFINED, "Can't build result sequence"); return false; } m_source = RefCntr(src); // Reset pager in all cases. Costs nothing, stays at page -1 initially // htmldosearch will fetch the first page if needed. m_pager.setDocSource(m_source); return true; } // Note: KDE_EXPORT is actually needed on Unix when building with // cmake. Says something like __attribute__(visibility(defautl)) // (cmake apparently sets all symbols to not exported) extern "C" {KDE_EXPORT int kdemain(int argc, char **argv);} int kdemain(int argc, char **argv) { #ifdef KDE_VERSION_3 KInstance instance("kio_recoll"); #else KComponentData instance("kio_recoll"); #endif kDebug() << "*** starting kio_recoll " << endl; if (argc != 4) { kDebug() << "Usage: kio_recoll proto dom-socket1 dom-socket2\n" << endl; exit(-1); } RecollProtocol slave(argv[2], argv[3]); slave.dispatchLoop(); kDebug() << "kio_recoll Done" << endl; return 0; } recoll-1.21.5/kde/kioslave/kio_recoll/recollnolist.protocol0000644000175000017500000000030012602163537023356 0ustar dockesdockes[Protocol] exec=kio_recoll protocol=recoll input=none output=filesystem # Version for kde4.0: no "listing" entry reading=true defaultMimeType=text/html Icon=recoll Class=:local URIMode=rawuri recoll-1.21.5/kde/kioslave/kio_recoll/htmlif.cpp0000644000175000017500000001764612602163537021076 0ustar dockesdockes/* Copyright (C) 2005 J.F.Dockes * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include using namespace std; #include #include #include "rclconfig.h" #include "rcldb.h" #include "rclinit.h" #include "pathut.h" #include "searchdata.h" #include "rclquery.h" #include "wasatorcl.h" #include "kio_recoll.h" #include "docseqdb.h" #include "readfile.h" #include "smallut.h" #include "plaintorich.h" #include "internfile.h" #include "wipedir.h" #include "hldata.h" using namespace KIO; bool RecollKioPager::append(const string& data) { if (!m_parent) return false; m_parent->data(QByteArray(data.c_str())); return true; } #include string RecollProtocol::makeQueryUrl(int page, bool isdet) { ostringstream str; str << "recoll://search/query?q=" << url_encode((const char*)m_query.query.toUtf8()) << "&qtp=" << (const char*)m_query.opt.toUtf8(); if (page >= 0) str << "&p=" << page; if (isdet) str << "&det=1"; return str.str(); } string RecollKioPager::detailsLink() { string chunk = string("makeQueryUrl(m_parent->m_pager.pageNumber(), true) + "\">" + "(show query)" + ""; return chunk; } static string parformat; const string& RecollKioPager::parFormat() { // Need to escape the % inside the query url string qurl = m_parent->makeQueryUrl(-1, false), escurl; for (string::size_type pos = 0; pos < qurl.length(); pos++) { switch(qurl.at(pos)) { case '%': escurl += "%%"; break; default: escurl += qurl.at(pos); } } ostringstream str; str << "" "%R %S " "Preview  " << "Open " << "%T
" "%M %D   %U  %i
" "%A %K"; return parformat = str.str(); } string RecollKioPager::pageTop() { string pt = "

m_query.query.toUtf8())); pt += "\">New Search"; return pt; // Would be nice to have but doesnt work because the query may be executed // by another kio instance which has no idea of the current page o #if 0 && KDE_IS_VERSION(4,1,0) "    m_query.query.toUtf8())) + "/\">Directory view (you may need to reload the page)" #endif } string RecollKioPager::nextUrl() { int pagenum = pageNumber(); if (pagenum < 0) pagenum = 0; else pagenum++; return m_parent->makeQueryUrl(pagenum); } string RecollKioPager::prevUrl() { int pagenum = pageNumber(); if (pagenum <= 0) pagenum = 0; else pagenum--; return m_parent->makeQueryUrl(pagenum); } static string welcomedata; void RecollProtocol::searchPage() { mimeType("text/html"); if (welcomedata.empty()) { QString location = KStandardDirs::locate("data", "kio_recoll/welcome.html"); string reason; if (location.isEmpty() || !file_to_string((const char *)location.toUtf8(), welcomedata, &reason)) { welcomedata = "Recoll Error" "

Could not locate Recoll welcome.html file: "; welcomedata += reason; welcomedata += "

"; } } string catgq; #if 0 // Catg filtering. A bit complicated to do because of the // stateless thing (one more thing to compare to check if same // query) right now. Would be easy by adding to the query // language, but not too useful in this case, so scrap it for now. list cats; if (o_rclconfig->getMimeCategories(cats) && !cats.empty()) { catgq = "

Filter on types: " "All"; for (list::iterator it = cats.begin(); it != cats.end();it++) { catgq += "\n" + *it ; } } #endif string tmp; map subs; subs['Q'] = (const char *)m_query.query.toUtf8(); subs['C'] = catgq; subs['S'] = ""; pcSubst(welcomedata, tmp, subs); data(tmp.c_str()); } void RecollProtocol::queryDetails() { mimeType("text/html"); QByteArray array; QTextStream os(&array, QIODevice::WriteOnly); os << "" << endl; os << "" << endl; os << "" << "Recoll query details" << "\n" << endl; os << "" << endl; os << "

Query details:

" << endl; os << "

" << m_pager.queryDescription().c_str() <<"

"<< endl; os << "

Return to results" << endl; os << "" << endl; data(array); } class PlainToRichKio : public PlainToRich { public: PlainToRichKio(const string& nm) : m_name(nm) { } virtual string header() { if (m_inputhtml) { return cstr_null; } else { return string("" ""). append(m_name). append("

");
	}
    }

    virtual string startMatch(unsigned int)
    {
	return string("");
    }

    virtual string endMatch() 
    {
	return string("");
    }

    const string &m_name;
};

void RecollProtocol::showPreview(const Rcl::Doc& idoc)
{
    FileInterner interner(idoc, o_rclconfig, FileInterner::FIF_forPreview);
    Rcl::Doc fdoc;
    string ipath = idoc.ipath;
    if (!interner.internfile(fdoc, ipath)) {
	error(KIO::ERR_SLAVE_DEFINED, "Cannot convert file to internal format");
	return;
    }
    if (!interner.get_html().empty()) {
	fdoc.text = interner.get_html();
	fdoc.mimetype = "text/html";
    }

    mimeType("text/html");

    string fname =  path_getsimple(fdoc.url).c_str();
    PlainToRichKio ptr(fname);
    ptr.set_inputhtml(!fdoc.mimetype.compare("text/html"));
    list otextlist;
    HighlightData hdata;
    if (!m_source.isNull())
	m_source->getTerms(hdata);
    ptr.plaintorich(fdoc.text, otextlist, hdata);

    QByteArray array;
    QTextStream os(&array, QIODevice::WriteOnly);
    for (list::iterator it = otextlist.begin(); 
	 it != otextlist.end(); it++) {
	os << (*it).c_str();
    }
    os << "" << endl;
    data(array);
}

void RecollProtocol::htmlDoSearch(const QueryDesc& qd)
{
    kDebug() << "q" << qd.query << "option" << qd.opt << "page" << qd.page <<
	"isdet" << qd.isDetReq << endl;
 
    mimeType("text/html");

    if (!syncSearch(qd))
	return;
    // syncSearch/doSearch do the setDocSource when needed
    if (m_pager.pageNumber() < 0) {
	m_pager.resultPageNext();
    }
    if (qd.isDetReq) {
	queryDetails();
	return;
    }

    // Check / adjust page number
    if (qd.page > m_pager.pageNumber()) {
	int npages = qd.page - m_pager.pageNumber();
	for (int i = 0; i < npages; i++)
	    m_pager.resultPageNext();
    } else if (qd.page < m_pager.pageNumber()) {
	int npages = m_pager.pageNumber() - qd.page;
	for (int i = 0; i < npages; i++) 
	    m_pager.resultPageBack();
    }
    // Display
    m_pager.displayPage(o_rclconfig);
}
recoll-1.21.5/kde/kioslave/kio_recoll/CMakeLists.txt0000644000175000017500000000546412602163571021640 0ustar  dockesdockescmake_minimum_required(VERSION 2.6)

project(kio_recoll)

find_package(KDE4 REQUIRED)

add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=7130
    -DRECOLL_DATADIR=\\"${CMAKE_INSTALL_PREFIX}/share/recoll\\"
    -DLIBDIR=\\"${CMAKE_INSTALL_PREFIX}/lib\\"
    -DHAVE_CONFIG_H
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}") 

set(rcltop ${CMAKE_CURRENT_SOURCE_DIR}/../../../)

# Execute recoll configuration to create autoconfig.h and version.h and
# generate a PIC lib
execute_process(COMMAND ${rcltop}/configure --disable-qtgui --disable-x11mon --enable-pic --prefix=${CMAKE_INSTALL_PREFIX} --mandir=${CMAKE_INSTALL_PREFIX}/share/man
		WORKING_DIRECTORY ${rcltop}
)
execute_process(COMMAND /bin/sh mkMake
		WORKING_DIRECTORY ${rcltop}/lib
)

link_directories(${rcltop}/lib ${CMAKE_INSTALL_PREFIX}/lib)

include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}
  ${rcltop}/aspell 
  ${rcltop}/bincimapmime
  ${rcltop}/common 
  ${rcltop}/index 
  ${rcltop}/internfile 
  ${rcltop}/query 
  ${rcltop}/rcldb 
  ${rcltop}/unac
  ${rcltop}/utils 
  ${rcltop}/qtgui
)

set(kio_recoll_SRCS  kio_recoll.cpp htmlif.cpp dirif.cpp ${rcltop}/qtgui/guiutils.cpp)

CHECK_LIBRARY_EXISTS(dl dlopen "" DLOPEN_IN_LIBDL)
IF(DLOPEN_IN_LIBDL)
	LIST(APPEND EXTRA_LIBS dl)
ENDIF(DLOPEN_IN_LIBDL)
CHECK_LIBRARY_EXISTS(pthread pthread_sigmask "" PTHREAD_IN_LIBPTHREAD)
IF(PTHREAD_IN_LIBPTHREAD)
	LIST(APPEND EXTRA_LIBS pthread)
ENDIF(PTHREAD_IN_LIBPTHREAD)

# Had the idea to add e.g. /usr/lib/recoll to the rpath so that the dyn lib 
# will be found at run time. But this does not seem to work with debian 
# which strips RPATH by default (I think there is a way for libs in app-specific
# paths but I did not find it. Link with the .a instead.
#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/recoll")

kde4_add_plugin(kio_recoll ${kio_recoll_SRCS})

add_custom_target(parser
                 COMMAND make wasaparse.tab.cpp
                 WORKING_DIRECTORY ${rcltop}/query
)
add_custom_target(rcllib
                 COMMAND make librecoll.a
                 WORKING_DIRECTORY ${rcltop}/lib
)
add_dependencies(rcllib parser)
add_dependencies(kio_recoll parser rcllib)

target_link_libraries(kio_recoll recoll xapian z ${EXTRA_LIBS} ${KDE4_KIO_LIBS})

install(TARGETS kio_recoll DESTINATION ${PLUGIN_INSTALL_DIR})

IF ("${KDE_VERSION_MAJOR}.${KDE_VERSION_MINOR}" GREATER 4.0)
     install(FILES recoll.protocol recollf.protocol DESTINATION ${SERVICES_INSTALL_DIR})
ELSE ("${KDE_VERSION_MAJOR}.${KDE_VERSION_MINOR}" GREATER 4.0)
   install(FILES recollnolist.protocol DESTINATION ${SERVICES_INSTALL_DIR}
   		 RENAME recoll.protocol)
ENDIF ("${KDE_VERSION_MAJOR}.${KDE_VERSION_MINOR}" GREATER 4.0)

install(FILES data/welcome.html	data/help.html
	      DESTINATION  ${DATA_INSTALL_DIR}/kio_recoll)
recoll-1.21.5/filters/0000755000175000017500000000000012637450503014037 5ustar  dockesdockesrecoll-1.21.5/filters/rclaudio0000755000175000017500000000620112602163571015564 0ustar  dockesdockes#!/usr/bin/env python

# Audio tag filter for Recoll, using mutagen

import sys
import os
import rclexecm

try:
    from mutagen.mp3 import MP3
    from mutagen.easyid3 import EasyID3
    from mutagen.flac import FLAC
    from mutagen.oggvorbis import OggVorbis
except:
    print "RECFILTERROR HELPERNOTFOUND python:mutagen"
    sys.exit(1);

# prototype for the html document we're returning
htmltemplate = '''

  
    
      
      
      
   
   
   %s
   

'''

# mp3:      album, title, artist, genre, date, tracknumber
# flac:     album, title, artist, genre, xxx, tracknumber
# oggvorbis:album, title, artist, genre, date, tracknumber
class AudioTagExtractor:
    def __init__(self, em):
        self.em = em
        self.currentindex = 0

    def extractone(self, params):
        #self.em.rclog("extractone %s %s" % (params["filename:"], params["mimetype:"]))
        docdata = ""
        ok = False
        if not params.has_key("mimetype:") or  not params.has_key("filename:"):
            self.em.rclog("extractone: no mime or file name")
            return (ok, docdata, "", rclexecm.RclExecM.eofnow)
        filename = params["filename:"]
        mimetype = params["mimetype:"]
        try:
            if mimetype == "audio/mpeg":
                tags = MP3(filename, ID3=EasyID3)
            elif mimetype == "application/ogg":
                tags = OggVorbis(filename)
            elif mimetype == "application/x-flac":
                tags = FLAC(filename)
            else:
                raise Exception, "Bad mime type %s" % mimetype
        except Exception, err:
            self.em.rclog("extractone: extract failed: [%s]" % err)
            return (ok, docdata, "", rclexecm.RclExecM.eofnow)

        album = ""
        artist = ""
        title = ""
        try:
            album = self.em.htmlescape(tags["album"][0].encode("utf-8"))
        except:
            pass
        try:
            artist = self.em.htmlescape(tags["artist"][0].encode("utf-8"))
        except:
            pass
        try:
            title = self.em.htmlescape(tags["title"][0].encode("utf-8"))
        except:
            pass
        self.em.setmimetype("text/html")
        alldata = self.em.htmlescape(tags.pprint().encode("utf-8"))
        alldata = alldata.replace("\n", "
") docdata = htmltemplate % (album, artist, title, alldata) ok = True return (ok, docdata, "", rclexecm.RclExecM.eofnext) ###### File type handler api, used by rclexecm ----------> def openfile(self, params): self.currentindex = 0 return True def getipath(self, params): return self.extractone(params) def getnext(self, params): if self.currentindex >= 1: return (False, "", "", rclexecm.RclExecM.eofnow) else: ret= self.extractone(params) self.currentindex += 1 return ret proto = rclexecm.RclExecM() extract = AudioTagExtractor(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/msodump.zip0000644000175000017500000034123312602163537016255 0ustar dockesdockesPKf)DG. <msodumper/globals.pyUT  RhSux ;s۸@QE-|9^N.ɻO! E$hYiv iMub߀Ɉ`1ډPnfCG$3:G#v#rvْ eIe./Kd3ɳmΒ}5,(`E$X8Cvﳩ?ً 2I/.YH\fbQH9`YP-)2Y?1gd)VQl}(O؉ md|{C f>T!~Fi:d@;^tn 7v:(sv"y&,ɼ%OHa:li_Ays/!f%ivoI9Dd^Oׯ^'"z|>~?2/j6Ԡ}꧒Almvv(=)pА܇$C(@:rdw b*pd:A4As;LXlӷQ:7ڧ.ܔ qB#` EYe',+bx%E !&Ɋ-dh[`Hd YX3 D3bIo5MmS}C)mԸ3=GqYdq5ĀfЮƚ+V/z=pUd]DRjYl%[(J_" ۰, .nAOq0,V x7\Nxoñ"uܓD]™+7 aޖ P[w&#cZ8iys7gȯf/Uu \YswEc*T]:Ya,8_OQ dM=b<"v>gg5NژPdZ9x%WͲ%8ݞ= 5c0z;68T].{z4yꫮ؂ 4gH% Am ,B q:" /{$n!t٥LB.dq Q_?ᵩ4-WSVf^9jtsS@ Aܰ<ɰֵlG|K q)0bj|  |v:΅@_ D3*Xͫ/^vU R\уM4E^-ٛʿB 4(r̤֭DRwN\zB(e_.\|9;x!2'3@iQO|ͱYQܼFVK\nxS" TKh^kGW>56@_vJ^q:U,WBڬ֒\YdN-2GVU Z,Iy+ Kp &cd8U"Uѷ$b.! kT@ $80S3(?(C:@id!T*j@nCD*c=&uP`_4 BRle"1PAu~ -JA&AF=ʥ>Jj cy;MҮLDZ^~5ha >qft\m,dLˆp׃qCNΫ-t4\((aoS44 ~UaP?nVQi$dIjЀ,yD[n)CdJ&3慀] ε) o3cWc@8U mwj!CUQ2gbzr8cEPz َd>2Tu.P ]f: **]]M?CSs aކ?47ĽTajZ_h*|>|KX},x ʤaň+̉Y3V㥖>裫'Wj]$Y}͡N{֞iZnw]XWku؃p3"~U"{ EILUW`i@hB6سPV41τ~UЙ p,d/,#5.E\x@Qx $ piQpLbbPյ9BvN u <1R r,HVߒoV(hٷl TssB٠ί*M0*k>vtMWypj,lGx4V1YB=DXIc=xSvl(vV==Pr0At^q؞_**mUX0#^rFpbĝۋys ,脫=W$j4* IGn,2\!'t2qyn ERd AizLӶFX\{r]:DG9,%-2d1LI\O+LkNJiA*ǜLBvUQ~}u\D)J֞0dϋuڱPT.(A(Ol2]Zkd8hlɆ4U]ɠ7yڒyE_c 8H$ .c}9F ^W5ԑZmKygX{=;߷7~W'sakҏǴA %NԖW$5CB_'bgH\`睤%?%~R[œa<7g t<9fWxh_zEZU8ߜ Yǁldg/i6&م}[:V55&˟coY~АG5x]=Ëu'DL74VL{Hj\+[9uqw <H*)-v.".@`(Zvwo3sANgvy3gˏy0<ضYL]4Assy3S}ީNA/.wжDJ۰G Ϲt.g[Hvlb]$E^CsmO4|))$ȼ+y8fY˸;+(S`'!mltL>gqw;02,c8$VOY!0xІ'$2JrG j$J7|h>ys bFܖ߱ԟg' >Y+(^qEAo Mݡ1}(Vh *Wq8TCwy@l!ܕqzgZug؝͔A/7|i΋bWl [md J?Ͻީ#H 2^nP}#VRS'+TI C : PK%~(DphHvmsodumper/ole.pyUT eeRhSux =ksF+fR(YAEq,\ 1&.ZVRR7;nm,b{zfz5=;xrxrp& x83i(o߰dY^$-"+@ZY4X>8+6UR<̋ۧ@)ttU^T/՟|/άȗ SmJo3*+~;>Ϧ0q|VC,a/z ^ia{2RY.|ų|6iOPOqf<\%=j:t%)U-]|UY?b+hVPHxu|ޤUY2=k| W?W0~I]0cz2-@)WU|8ߐD0^Nu K^$| ,(<~&6ݼHD?05t Aiպs!¤ʦx^8\7 Ʌt|fi|1d"^3Cj٢K>?-a^'jY7"PY`2̈́]qdgBmWmmn/_EYIf"rԕ&d7`u;9vPŲCܴk2Ɋ!ROtlt4&$N^b4A7zJk/N ._$&y-I(+ƝP=}Œװض*Ҭzߝ&]cl#?Yw`~ͺW|jz@|~>sq((-dlΠgj<]g?hoʢ oãJ-AVף=~%jgάk4Z5d*ժQEބFlIC[nؿ xYd`Y'N0{^x8M@Z6o`'` R mh뿩Iz"z >Zή5Y%)$V_xG+#B~1izIQL U rpr.z ;MPWٟ3IDF0Fi APv2 KAM/1o\2rMQgvKD/h2L_\/%]>rЪWn& o2u6\[iަˆIDԘr)XI-pW F7?ăfҬ} &mqA`{8ػZwJ_*8IR2buF}o ,& fkSFyf^t{p{$l^(E4:<:1YGh|xGG71"&ck [F7cW| d"&Qtr[F䴭 3oVV 8zvb2.+Xl {2ENfPFB"r<+ӲJ[|<.*IT btnX+rϠh.xv[kplSl\-H 9ҤeZ/;Xb{я뱞aZ}TI^lcyQ[>c 2ɳgZp=)И?!HJ*!؟"Nw/P("ۼB?.M.ۥ?β7ykn@|@/ RM"7eZf}EW\=mXGW`79sCbj8푅E\* 0fRe I))NG6mLaJy SMIn1p-˸ىP;W"0=aXMz$^@O''f2n@!-.ukwćY=='t{Mh>1sWESL`ͅ!_c]42W!8zY6fXWm#tK#XGz> ^rRڝ,IJcǸPyH*cNڢOƎ9댎i?Y}DNXU5͗4߬vKX[@pt.~؁yJKp@Y/2rƮxÇ33[ӫFJ!p^м\^[䁧[ItACMa1 2kZ"M =T3m~l,xʤ*)1KUi jdzd} >^jZxui:Rq׃39<{{[Fz-;I^aڄߦ[ 4m E!Rz (l],Vu'z6^ܼЫ?Jӫ*q "9ʭ ]>n~nĥ d}MюuDؙ GSn uj'60G0}U8>" @É2=PǍMGGP+p-0iIȡ`cfMuVE5c:zۣ{'@ h|v OArGᶀ!b9v іy E<%S=b 魿^n!+F?(a_3:{iɊ:UEK,S̨N % NIo -R~. ~)y!1ӃωKu?os/"_(Aq CDyQs'_xH]:c~kÙ5*O? ?Kjoo{Xg32@#F O4h- Ի̢_>ÌaCv.^YG55HE|[6BOIŽ+?eHuCj\ʸ6JP RIbH",)̰s0 kl)IYTeaļ}s2n7 K5xiă V f7ƿyf (h[̄;Xt[,% lϊp_9sɍ)l9死0a)j n +CwCZ*PuaɍT5rOًͨjql֜D]_luL&Ra6s:H&f/ʅH_u/jm^گs\΃p;:-[lv{8):W@~S-k fJj8D\øj oz#>=˕}Nݞ'atiZd%46P ^_wc>ʹr"^m'l7cn?N1+q =ځ sE΅hOC`K M㣙u@IP,̓t&+ ;+?#wIAAxZEg(y7݀Hf ) iɵw`7-O38%)7^GGv S[#͔5WdyfbN=Nx/KӓJH $7V&1Ujҫ4Pfu² JAOERc̍t1e)3 ,˲}FL9V+ )])/Y Fh!/I =>=$O1uBߓJC2xs8Pp6_H:TRBwM,/alfNAăY-{hFM}KU 6VU^MI_osr _Hb c@:~ahB9j6{ֵLHP]x +4 &sk n<:DZ6>r;OQ`kѵKN *:xH<5f Ǘߍ4,w޲&QW|+ Dwg{/ \ mL <voH:mUnD-Z7"^ HO0f*}WA=yG,B G~Uq@&ϪDžtO(lkQ_D~!\"PͅD;ǔ`ikh1U`{f1yuTmՅsWoM#L4AQ3Z΋yH :5 ǜxK3k.Q_I(X660:©Joٴ̸wXAu4.7eWC~fNH;eL)ޮkV0ray R5 ~͇ꦢ\˔οhlg{O/s“0DђxU,pKJT 586S]),-KcI`4}4KI Q;7C"SS[,<ڻPEq=/{0B |{L)ōJH@lw .#jճ}5MZYE?{vGIwa|YuPKlCX=Zdmsodumper/olestream.pyUT :RhSux Ymo6_qLnb.sM%haCWDl$R$ߑrZ,0EC|{@e=SWǰ(s =|)zwպVՁ9p!p0QNđ 99I@oE<(!Lè?É68<\,\½-q .2X*ţ>Bcpl|*m1xw70<". # BI 9EH.ϧ/eD8xd?8$B\.=ޒ,Cw|\ eT܀%t!HգaC\%t T#cgV;0J_Ѕ[n{ 7|.a_C5UJRFXpK8yD{+75\E1l Nh M"$nF^`lP63+E#lOQޡʾfqOV5~6x=OGMX?>e!:\y  #"DwX%,D=d0%h<"nlk*z]o`^buv!S*QmIS˗ t"U5\͐wKTp i;ϑuԱ%fi(XUk`pL"]ow[{?SZY/dWWk@G^/=NrLN ED<@ܷZd jM_ۋ젚fFaW2VnS^҃Ru -,jW)#E6Q+Q06l|+;i8v^ږQ;mjUp bӁw]5-f"gڦ&Ƀ{\ 5ê"<|MHiUyx>}B)kTtsʁ`xu*?#Y #AB}0* $CW :T << cM_% 2I#X570*Иn`C`@S>#4RAPF |}\G'M0D(q<}F+& 8C(KOqqBFѶS,;K?FX:,׽W[y]9)FƄ[jزᴟ0%] I !B.]jv+27ıƨ= @` Y[A661I[R44JhҚSPY4,یY5K LY3X$eSE ӑ5lA \U0vCcmdƯֆD9HUH`=]HQ3FN]KF A9#VPnr7@7=\DL|MNKm'J;!,M'\`PEq0 A7HpÔO R ,/yq.^c@~;I#Pal.S Žea67cٚX4,HC'̎C\tr|K "˄F)+{`dEO߾8z90nYJTL+zHAa mNc;04yH&b^ZSzDY"&BVHM+)󴋐VXMuce8PsR6kǫ#PKX^y$9詅Y"LtN}2@iZCЩ\CI7CqB j%s/O-]qpgQ?Vc}''P˪J$nNT$h<*bXji|>g l5NI4)Opt:&N F0hBtB+C#t0(m`aԥ2޾}[_VmyDYlʤ#*V,8x[C[W;G>%~?ֻegOrx{sp+bR7kqh=;S9N;uE_"q3UL^^NFe*0noJSa$/aCi=*8QM9 p)c+qS 5SJ);$yX$vH6VC6-" @їLHY?[kw2E1n01w)<ݖ̰*}6ANg:D<~IN>U/)3Pb A8'K^ KqϒK0 vmL"z! *GP<4QNV7=F iլNw!@!x{YVO&b( Kj <:ɮT=RE"2h R砒Kp dL!g $MЇ者 `*"d df>TT>!~ka5&6RG§(G\*c\a"> m_s~om ;vm疺c[`kK&[r{[vF΀زmg|(cl4rK~ cbmd # !e@j#F*#pdƷ1qd-,IjqkIBCB> O9U9)jmSSBcё!vn x7I}f,p%#o5wnBTA뭴ZSyRfL{k!>BEb%Y~;hmm/Rl4-&r.z0~vϣwڅ;hǣF ӫWo?WlޥO9>KVS9 6SW n"XB}h.\T?ET]ъIqdDEBWf8XMB}wjwySA\d{g)t<`ouBީPՃM?~aiHܱdY 6ptER܍5,_tL^; ܻ}ov0V$_A=&6I@Ͷg[t+Z*6+e+azxsצ*֔kFU^^h3ja sbvt ޚpjDm9c9mMߤum>vS`l#P:ToXk1Y҆Џ{.2YO4;.#hO,< !ef}(=Wc+{P .9K`΋ᵗW B TmH6el1*s@MXgqFOݮ/慾ߧ>+EwT-=PjZMVrM;8`($YmF 9Nsڄ}:򗉈Dn"2$؇fMaDꨛT pmv%ޣu?z@@ECV`Cjֹ y1G`L]Q)h~B$kBuԱcn=2ǿ-m_:[;_NF攇 <+Q͉zTNu&g;W ty%- OJaX2QM]j2L<k8pMF J3 XNFs 8 Ü Q#{# f@+C.MkIkJDhqm0= /E}j0^R,̒ Zvcv2G\卑mEdRnnry\r#Ũ\ E!`O=)ZQo*^VP4 9؟ElkêK;9ŗ^h\ f j)[̅sI<|Oz֒RJ1߯zQyBò-9K "]qo֩ι8IG&H()YzpV0yt\٬ogdDø؆q@.]&m,>]K,O_]xQvnMUEYr K%M eB9=sQS}Xy\C}/O CS !xMM{bJJHPqDބ\^B)5mF03cUTNj]HBnÊPLH%-nC5г KK Cd x4nyyuڞ[MG=_/OǎcTUW;!AVAnjz=dT~T9* 8树ԑh8HՑ[ 'I6amu Lm(c,h96Mv8eO4vgvzl/ Laͩn!=)ynyODBT=/tj;)Q''u6#ՌڧFӥB7l7ߑ,7rb'&Ĺm iKWko6`i&ŕ^䪵k5HyӑVR27"FmIֱWƫB=^Up^KRTĀʮb^sFR|чѯOR :׹N_žT߯{`>4]g!΀,[)b4Cxߪ 6"vѮ륾T1%sݏ$a2 ?CP>TAaގ Z3Wq-ћf2KUյ1z$.I7nx5}' ֣2!QlPw axn1.TAў#yϑ0+N{2[ߐWʍ4d*RY`t,Jb4Zs%&GJuԲP !^Q?,ٹj鲢6M3\7bVu0*[ _0~}qe+Xu8{zҜs/ž^˙Lfnj(%)?rko_t7/3s_` n4×FTGd^+K ƇpLWm6Br tR "^pIoB%LQظ2>F:w߅<7 ) w;p˩F/3vqڄݪིY3F֎0O/fzڶA lmCWIW4O Փr ~Kix1%=)T=GeLu֜][ZfDXp}}z2x¾UY}nyM-*)Г*z5};!KIz J.Q8!n}\3Bgekǫ:^ofՎLhw+_J03@IY]u C$1굌6!|jp}g0TJ6;݂h^.bQǐXJViQR:wXh*c߲Uj~&gaSXXYÈm5|$2)[|o=7oQPcl`eJ\Y&SN{Qgmxx`4[p]@NSL4L?F"g%x! FžMdw ;~~:' 1$ѐ+6/h};* sUzAvUHir{ ~Ӛ 5j+^΢,rN !MI Ea+0x3FCoQwAX uA-NkĆy6gI E$e6?Ym n Nonf&b%465EpCf,y~LL@tM]+x)htxUP#DfmZf5k]eOᑟUz8pُcfM5L7W#v'Cˑ욀G?xٲ1j:=g; ,.TPGCo,Sgٿ69ךֽqB$AC1Mp%_:~Y^?ij&gtK!ܴc;#[IvtJ h:gpW?{&(4g{eS7?bȧY /TO5&S ;9`~!99>Fqs9hc:3xyr5tІjZ5{ė`td3\Uqr'$}Tfx;_Ǥ*e!a40F&:JUBI8/:7/<u-,A/vD{ )ڝ8gjt}}&1j)䛕/1)S@hh xqƒ6pa ,q ԡŖr)T@#읆ڀbVD!^ȍoi0C Ȋl IWHm;Gj |ESK0Ķޮz䘷OYPzo7،n;UHQ Hٳ!= ۭqP޴8̾ƽ \x^24,i:*U2DzMxT(6Z灅ה'KǶf:5 w@u^ł#c5 ENPCÇ(7Y(n@eVEq.톺 |:mgݴBXç))@h*U3MjpyطUVakqƥۨX-ԍ36K(3Y-5.em5#|&t>"A o"> y`7]7j9΁#ՌxV,\ 8m6?QVW(=6r/~?: q O(Yp5hpf܃ZyK+35ξ3ܓٚ.!㙳UQ?F;7:4RSeo qhh_S .v{|! <C٢tJăƑu)`mׯ~}ǎh oͰ,노XInA΀&Ut'22$h9I4u;?OS٭'YΑhv1=o`^\q.t"H*lhXceX[t dxGb˜*]+4h C:zcS]YW[uA(w芛(Ǹѭ G|fJ1|46]=Ȃ}PUt F.~nFi]\V-)VKכ%`\\\JuDU}˃$rM:m 6I\874χ@@QYuӏttv~~$l0Y.LǑ?n,#J\f* XyO2X x+6TɫAю6h%;ֵŕ]s5-a[&C"ʒtB; }s]=&I|7\WDp 7}0o2^YQN\|s*ӮWH@v'<4b;p<rB]=$ G)x49>~hFw4G]=F u۷s(WmE9\&Rk+e;cB]ٖe&!y gBqfkp# gUC^F@MBBwHA_F?|QKG`?Nc6yt>#6d%iG*ŖlhG*ŖގaaK!vdOL8lɺ^FxŶaQ1mkSoN8妈h_ Hspzf6rٺg<fqeֺr빰qLe(ǟ˘Ge}q`:u\שh>0;"g`ڕ2޾f_/"B 7k%YC?"RV2ObM϶P@\L$_xJΣgE+%\I Wg*M@J=# AwlQ0>%z;s]\Pyfq("]@O{3/FxKE~rMʻo)q#z|=M=(9MM֦WzZnI@Tf|i`.ĚhK}Pa ^vu~VKױZ{0`ıC+pI,bBb5FؘI(lY8,hPL": ` Va-p3𪋙J.ufu1u-1/|lLzaR>10!pq1zxP%e ne+[[Eg t¹&xGeꦀ7tB{jG]@ϐp.-'zm;xߤAzOcx8 l ߎ#xwomjӇp %c\ Y0 o 6L!x2]>ޤ%;N1S!~B<l gz i߁HCoi͍ ^qFD0df\)+eޚGly![xwfGޚ+=̀q'iv!>mɡ~dD_Qh;a7 /@w*Yo&8џJ40;gkkKOkח+8%ᅪQ;:_]H A+d˃5O)OOW4`q$M<0kږv ꛳Sȱ4V}DIС~L}QZ7LC-87-NeT}+4KR =)Ӎ9W'AG2v[T]E3]bDt+@ X@@{b~`lقcYzX<и5CG{zX268Lަŀhәұ@s,8[@{P+-7dگr=OŒȈf˝~Ha#`-ouQ_𒯠n=$l􁤽Q7$c5L"he'-LEA}S7Ȋ%ga`a*wp|MI{qK6$Xp֯H?-VtF_0z/w uzi ?S3Y9DqYu?Dpm 2u,9l|zAx!Cϒ±f*>>1 &Dӟ13fa6pД 1YU[?ac lb|zp|")쫮6#I#Oymn`x/IfJN] U4ǫw̜zx-3蘐t0|cpWN0afu{YSscAYW - Wc'.${icOACͻP p b\l&Lrol$RYd~ >^SN&Ph'tY5:\wHL$!y *"k!+냘BW@7dۭ>w7ћAg}JGaPWoqD*8yB~p[ztf)O4ԳX1E5%Äʜŋȃw`jJgS?l%nLAЮPxaG)FZdEQZt'h ~,O2ʯJyOkD<\6i+^aPp'Ƃa4zE1(2` )\nrQ sEDH(;J"t o|ĽV;KC U&b(8y&Y&md"PwAɦ% ؤcZPQ׋>jvM&'@g~¡^x%zdc+RڈB퐩VY#UJY'9E}uбLn5$?ÚJnM%S7<u,^R()2xYEB9H uU U$YEwM^phDE H*L"I_"^GYc:^Zp Jz Hϖ]+S.2)xYRk⋪VOZEa)"M,r 5gOqz(>Nj]s"dz,nv2vqVo'ӥ޾"H$d%x Q& &) طV:ZC*]k_injvUZ%U$xu~pz/mV1UAwrXɆZ3C CEllYK]]Sn؆ƫx=J a.|_*"<'j%u3JRݽ4^S'6\]q`H5kꭽ3+]UtMUwlU$͕w*YGhfڂ+f(NE0Jviۥmv7ŦXܫL6W32.щݳ+yZZfY35f jbUi a (3YITY ݎ@P[g5E5E Դxbb©.J=tERfuݱ  e-GDY9:)i2Hlu!I"ERCT=[Y!jYɪYSXB-{G:| G" 63Z6iw Y8(HޞaEv0yRGS:][J?-Oq^ +Z͐5HdHj%Ceg]0U7E<)u KJC'9N#> i8R1$ͫ(t 9UԖņX.}+ Bܵ y%sWg8R+xfȓѪ2Ԯ)g1d3k`!pr.Mi| }C#m2/C B2z MKへm$[l2v7]Y:}Ωje*ޝJ.NSaUD{NM$kժWUO"auv·.zo/e,+Z0}xN <!|Q9+8_d 8K"2djYPqdxP ^r˳W2b/5+J9)h@ _AS*<~ ٠]-9,eJp]#0\~s!^&&>=B\aYr?cT]/m_W:Ю@,1Qen7(%~W15DK[*q'fD7;JQPӞRaǫ(+a>9[6ZgV[%6ϙ)cCViQwB@ZYnwJ )Rj 1)Ut,bm 0BʈQGKTPGfG⽼Q1_E!* +iV_d7r|D8kljƋdq[p~GޭGqy:/p3×=d~PKlC!wnv@msodumper/pptstream.pyUT :RhSux \S#ߟB;k c u`^۲c<㚑$u=-4#dnd܏Z[;} )a|>WɌEWyWyGKQI\ tEl3N9 KJ8MWI,B2L"6.ؔm&i5zNB2M֯Œ'f$N8ltF^_ee"`dCaL Sr|}zpwn&XfMPV$${`Ie ^NtVJN4v^L0H?GWvJל%q1xiijzG)Te buBub.u$dNQDBiքՒˌ#|$F.Th*S?ڔDrlRAѸVB6晦(`loJA}'\I-uZӴA'&,MiDCP9{)Xn{eÆ\|S`\،foH4E75D6Z-i8)@97yVD`"`+w\={g{{ rvtζg{{U868Z"/& xx(D|ȴKFIc1[8i$tBCby'iV}7יh<%gyW!ZCb.G-_A^Z _2*R (ߤk mifpS+-~KTGKPKFLޟi:.Ϛs҉2zx^48WD|ԤerhgŀI;*2XV1S&%kⅧK0h=QB&{u(CLp{%7j`CuQ΄pjɿmׇü)1xhe3)?SC_ΥBPBTgy d5'&KKkNkgr+OmU[;Rup7V*R=5wu_[iob.7vl*pOGNwN61}&F6t 7k+mTR3}~F5r8ݔCl gw|yCt0$+ |Ok>Cғa'Jk:wLf &O0޿\pBor DC^Q@uIjgu>'pW菔İ(ƾz=5k/DuuycSƨkWv;_3e8hjS"ca:ORDxn0^ڡQJ{3C͋vM^ f@۱7p?awy(mߖm"6c:ׅ+=X@0ڼZ|-njpW[T5aT:yazy_}RzZCcT1<:ZLQ\JMc+3N\ er.-:YFEk, 0~^ԚTPHq,;fF4oh%>ّvrb D{8r$Cn{"'p )ade`u2R {W/FY2ڹi4Iu)Xo ʑϿ'TWܛSfѷf Vb-@{Eb< iL(W/h( lɪj<45GpM,CC:eR<3[/SU ࿋$j4HV눂 4eA<ضH:;7(4؂^D t3Wq' ny9!"b )}U36S?aFԣ|qaF5O6:v!%?UkE:qI IlX#vZ/ATl۬AC3`eE^*u&DB4澁 3(?l>((je5F;4'lŭKu2 jekd~< 2hbm }UE|)''ry'SF1cI+IIJC8zwΫZlNL߾N6/},ibq1(+ ]ȱcMEu ]$5ގ}qoa,gtn"Cʡ(3HZʎR\BŴT\ 5-ULˠI林N7g4" 5K5fJ?t}nY)`K5*71h?8K6l0e Xah àâ8irp;U'r(NHb&tit}Y;ñ5Atw_޷u 76<0źJ}DQPH[Xt) ^ OaNϙRpG;לAcUBB' r 9M؂H]e:BN\>V45TC/[>IŮN1P`2) KdW5zq;:\JRʧav9 EF=S78!_Bԋ"(z"d!Pn^QL L78g;:2ѲhQ>,>kq :z剻kmzU]%~.hN*^rq*1^̀E '%&G xAw MX As-o~Ly".*/%iA`%ߊza؂2smfuhah XڒJ` u˃SnQP`=qGdoza?W9S' Ž'zbOb&k>0f>+=1YBۣy, Qls "m$)fLW"!F$hJ ?,%˺죝F} ,\O PUfY!2Nˀ, fWD5\,JKFi?zQaaR=r M(hwr !'tΟ)E@b3**4S3*DJKwkϹo |7okzε}v}ju1\P 5U6 CNFm5p.t{Ӹ'|l]1[pa8rg*Vzú1]f>x`sk. 7.4A-MCнY`~71ýSALmB }Ƹ:o0)\\v.ot?Mr3o8_axgh70A S#"M }˱5L-q: r;%:^AxXo=$oy5hҮC(gj*#K5B)Bc`uH.m)`=(\F.xE4yѐ%Zɘlu<5tL;Q?8 Yг'2Iq9|%4g0N~Haz%qNu%:B8=>:}H7!,BK3j)=d|`tpQSbY<}i 6Q'PAmohǕ,^,fiы ;jgu|Ǒ~窤G?l#V/plnܟ9'3m‡jaϟsԆwXZAe4YdX'TsAdڢL:bK}eDSiDjۚog[k;jxq&}*Ӷ.= {lۂ=ޗVɗ=aۉ*y;z-vXh刽؊EgfYX%V"h{ mr>[;mO" htRhY Z"2}vR(N # /(%Ż:, 5 Π@f3)pK;vNq-A ?tlb?0}rv tpoF,n[ѽi@ ߮M&gݏʥ$n|[`HkHSmCKI:=Rɓ)AvdQ/bסY.z ټ561mV.QN25-t_/GElbcD| _!r ]y9{_e.x1Z_7B(YtF1;aʊ=g B;&x^=XU7XkLwl1N*I9ǹi_u_TlIat-o7ШfQȠKL(:H{g|{V>`oE?-6;t d:U;zP# h .:eYqo,hZ[Ds\4+q:?m&W8s?_NBJx)&|<ؕPK(Dju>6msodumper/node.pyUT pRhSux YYoF~p)y:@4@7 ڤXKikrr 3{Tg[n-/%>yFVf,LtJE*XTv*Sp>582R$/c!dsA7+rnXf=*6fQ+v:N{S8lI‹5I KߓD>)W5Ʒ0 ^G]Rf|UN*<#xKH ͖H{c?y4HeHmR8{}a%3NJ/M$6~A8o>f|V~Jt |TrD w=-y m'-ۡkbC8DlxNt1~H;0BplQA|0v--f-Y^EC.4e#xu+8Χ4 YҔWDz  zD޷RTktB*YB?:/*s%ҪvYQ47'y E*bSJ΃>9wSP1w)f=Gc+zQ禄[gx Ev@t_YVֶ6J=l it/n Fفsd),hP<[P@'_u qҎ1C⢳ d3Nd.Q޽fE;d+  =YN#ϖ8rZ&/Wfi6":܀GOM>{'m('<2y<9CDj=V%Sh:&m 0AOo"3Nd} cDh+n{ʸO= ΂q`IB's-<}.xtoudY%TcGE})lGz3_"UTz"{",[k${?gz!d6?'F):߉mv!~, vroNz4g.]Gg.oճ1'dOK_IC;T=+oD>EǏxd4JKKy>SkYfШ~N]ڻa^{pvo /w"|c4P[j_!Op.I5/.J\?PK7(DQ*BJmsodumper/xlsmodel.pyUT lRhSux ks۸*OFTOb,5̩vǸ %B6TIʲڹŃx/MžX>fNX,&,mYVh&XOer;:>:f7YͮmzٻZ3heÚ55Z׬\忳D fJ_VUYEd[ cmN iHZޟ}| $<~gRCJ?IৢnAXkЊ_z B.mӓ9˓"M1+yYrjz`ޜF?/{uJ@&ne0 b9lVHV]42t\f[5{:Dn\pVMR,y4v g4ݞso {^VŧUe0E4I҆#*ys4U4ԋ|8vVb>@  9; +YʢH["Sad1*L!H X/k^ئ?b\>.j !GҤI&$C(LGa Zɚ6Ox5.r=F QD1p[@KSn 5eW_qprv~G\UZǀ\\d- aM^tH3UlZ b)հj3hj'gHB(&!&&Nz,Y YN]7Ix4=4`/X2mc c1 csG1`X6c†06.A|# }"ڱO{k/Hk ~rx@^@1Kd"Ҏѭv(F2iY_(PS ʤucEkZb1"$EGEgHE =G-J:m&Bo܋9p ]oit*!'w߉Jx«mL1D43kva3?X3Fӯc"%R!ϙ}˿ݞ9ʴĺ|*훾PLeI<5+XGSCkxoZ,33V3j: gs%jن^!ݑѰoq_VqB1"p#OoЌVUMP$z>%?2QݑNc2b~6o݌eeȒ1&ulxB:]vQl@W?'v܆HX|ݐռdj}_AA龢1j=xz:mN 9 uծ?tOijldV/6Ʌǜ0;d(Jw[(<<8uDMdi&>{Rq.˄LH @@p9 KAS=>\>\%!P4۷Iqj+X"nG3Tڳ|0S!Hr2 ,#I ),t#K~1,Sw+F^ 3R>XSe看y?AܼAz]*rL,i0>찪+7߾WҺw[-LE*hlMftďb/[q47峨w0I}J)-E_e$2SF(81̼[8V%i)ҬL*'xv`l,!Ht/BqFB}_hp?xgaм<0MnN}жˇmާdC9' CjuyDtcL1wq>S1) !2(!}anv<Kx"}pj%CJ&dl0~)fr?6XҔTN8560gN5])yG@(~ X?b>q%݆:q Ck짥eHӠ@̃7R=>L.Of݄< Akhl{0 BwӠ[nӠYxZUdWa)qF:`\,s&1.^K<O K1]6Ons1t˖~wz٨4_ S^Wː/ K:,FJ =(rPcGOtr8As(| 'k.?5tp )TG{Wjjq8)mγځVf%EV5W=+Bc=I8@ZcrMu&v9V5d+m~ h]0WEB>{\ͮQ* aMHGÖWy*!u m;i^`vOvM 'yZaʉkspq szxyG{n07k2DL$QwE iPddh|8=#, 3ƨ$a@ynjL2 ms[Ô&21#n>њ;R-:(9]lKKmR>5,q˚5n~(wOj){ę\#4Adf"}Iy60'aV/r4GNnjop[eb"? |3t L`2TOUiƹ(IE:2H$b{ؕ=IndP0fyA 7HkWMu xaJ=A!.Ԡ"2C#u36"U (=Γ+^h4o1LTF`.bKl8S?8TPɿATP)sRS\+%؝.+w̹R%92L$WPȭNdSJ L9M4k`W4P} eI/ހYdu$}|c>!&h40&Da Y Z.04+:U, . K+cu"T8bjG q^tǘSf3trk<\`Nj$-+FAFhVT=WXRƃ,*-Xm&Hscso̚r-7!Km ';VUseLT fi`j:Ӓ2k^*) hzikH¤{ 9imsLv{ŪWjzrQcn*#b30V*OEȲiSS2"[6yKŏ%Ίuc O;`ė]9xo{ oȸ٦r0on5lF~Yrѻttͳ"DRZ~q*NgܕR`VeZ MKTp,5m+ 0LҨ[ [M:tTՊ2/斆φ!Ww]DkѬ-ZV䪘ҕtVԔO› 0v&?8O~2~)m]2`I!H:'iܲSj@ z9Suvra/r.d)K{%70s:_bʦ8G>4 H4EPp mtS2ҴZA7zJW}~Ǖ>< ɠW'q~_4*h?ȚqxN{#-۞HԿX^,z+bk0W~bu_Gw9y `y[SiX< ~~N=Tl"NclN!N~6"&M-RPZڿ.JXw+T^~[ h8Sck\Z8uǞxE(8U+%̌wq9[)d>r@Nq+^ȣ;li?ň,170."t`w B)+qtOa'qq>WY$)\X7, p,7=g7 '8~S?tYmb| ؞ +e<_iXa?)NV̂s{<ӝڐ%1qnp+Fu.ю;Yc ޗp¾ ?5v[}5};Ҏkg5Eij= 'yhUlcQo#r9$MZjԅ|\aS(cJ FqcRLYWtn_] xdo7[kJ.N㉼Li|2ixFO"1~E1"\E"߷;AjfbF[$h^;Nh O ^浦)[U`oR}2ѱQ{-s4g/f/5 bJ}gP7sxpoUXrhæpzj`ĺ*gs xCXigՍg/; !<gՏ%?g$Y_t9>PKnB)D8p6msodumper/xlsrecord.pyUT MRhSux ]s6#לD؊3:3e+JMQ$$1H Zv_7$>ea,5F7bW;ӝu!O#ӝeC!mmomw %qxB)ɒ4N=FXL؂FeJqKf0e(Cr?"\̈KxWy{InJ?HYL3F}̂Xgs#OcWy'WAC*Nƙdž$}LգyO0, !ySTD8$4w5K⥢$O|k 4%7ԋ1,i(ԷWFl޳0v*!螂DL]NMGFӡbER-;JFv h1!GeK@-ÖH ;_}V뜠BYBIRrXbnN,0, Z}-֖=%s$V0*i$ c>'Fxn>i_.97G/ 3tPfPΖIJf_xʙe`jMewq]uNmʼn!s$ 789}x9?^f_xNT(5VNn]7$en#F^G5 _cNg |l99S V_~$a?C M<-4n-)Oְ%hTjUES14K$4Y!D8xp/;'1Ry̐B 1?1.$;YZP~:;91g:>. A:}\oVs[z EL9op H9azQ novnx%1k<Z M2ngK[@ !eqhJn<БY慻f1]0{OV+ fS9t+nά5;]]BuV5]rv-~hwktƚ11qMdϑ-|s=dIAJb`h\Yrgmx8zw9%>i$f,^jb27ApĐ$9 Yj~$ PMq~ՠMa߷i}Lbbw|.Cf-pk<`7o|h7ٲe> 7g֡5 eޟRc " wc SMBSS{Y xv̒lYPUP:ps## Wst\kYB~_%~,*@< gy'~R [;[q-< dF!W|(PA"=,ԛ:A-jUHh0Mi gàzqAZJNP:8\.\0j3a5,m0VL{Qߓby $XD7 -&dVmLQ4`b\\6dg @8?DI& GDPydQ?pL嚌>!R,mќ[Gqff&0K\PDNojVFo m5$$8k;*zǞG` F *@vr3*w i4g tgӐ⺘]L]ؾA},y&z% oЩJl1vPk]E%8*]5+BBޫY%t+b*>!]B7QA5 {7d'o߫(qPnV-bREK*kΥ2|&CVZayߤz,U3o'i9F,ܼ u6kwй^g`"vsVxSSij`/+V bșK!A[ѭVW j *, j\KOV 7NK}RÁ{s搨uFw!~54s$C9 ތ3ij0HZ*ccwjbIc/ZZ[xs%_EߊBRH{^-rc`Dn( tEsbȖ.?u2wE)`$=d9+E>O:NG KNYq4""`b3 Ѿ.`1蚠~8%K#6` ]#j?,+zPpbR7FMr#!V0REW#4Ѵa&WWy>i @; 1us "E9g0m5/J.ӑ2o* &JsT8"Ne+DVxZrp&'H6 OHs{Sj@ M1pX'sDGYHZo&|VL6+-]@)!(G/tHQxր9'_ I 3NQEsUVX!vO.z hEni\sFyyY [Ϡ)6[fMX-vw!8)mۤB6@ +JH0~[WrsH E-|FջJZ!gduMs[}E}]Q~( Xt!~ς} T0"/LINwKQq0KSugdvB ?]<| UŔ[v&E6r`Xی <d`0-*s˚Њyi\[Wvou~l釺>ƣ͕q|<\\j "?f[Rí*GqbȬ fSͤ!Sn¹)nvuDMsZ5"gMKIe 8EXls.(e>'\c6:eʝR!r>=4w'`c\;G|K"tő/&aL%p6}fᵋbI/WfeDt-HhWM"REp\as'ݥ9i:$ '8zЙ8y $dx$5#j_A}aLs`׸9 &3q|u`/c^ğYF>~p9H{L}r$e"+5-u?bQXcJd]A)-;҆(#5*r%mo~GzF9 ;4&o1Jkx'6x T&*dOF3E )'{6ZzZ8ک3Ha"+K] lK14[>`Joi0{Z;a闛aI)}Kn:+Yn~vFbq ;(nꓝMI}b<{/kN! 5 /MUNFhwIU֙LVR;J$_MZGQ֭!-*"-K 5JɥBsHW8y['fa>սUGx}n{k™tj4P늁˹\}uvޠ\cȠǘ.Y}mFg@"JÕ0(M*k%8]sc7iHs*r- ͍d%s<9WUvneX,kƻJc\K:GyrȕY<4Gڷ'IΩ&W| X8㯾TMw8O0'Wdxw$[ձ{vtُ|逋S|@U8:bJ5"R7jKUx1}9Μ0&iZyP;bYFq9R@8 77s5ڜVoh8vmdh; %8pV>AWIB ܘHure;O~  ' ĄUaYb`a35߸_\(uz kƛCm`<#k'Щw4PqOGO[sJtc%%نȯpitx/XS$_-7ʽM+<8^C o!}T{bCohҼA 遇"w%Xاn mt&v>̐v^'VGկbS@n)}4 BxN0 h"/|[3g''/wy]>5ԑŬ 4tHe}Mhr}#m׮[MN.&rő9iGfSyhcv$z⌟~ }uͨ8/8YxuڣMVVu^Z }q YE^cqE)encdžJ`<7VC!CEbH, GH0K8:I:7<Ѳ7` <,RQy@&Slv*.WiȬ@l*Kя x浲%fm# D4qx4\aSh^NfkoFlPPnIyȍL _dˣCp!4Qd 蠱GiC'ĵ)2aa:Т0[g}UG yDe@5M!?lrVr 陭Hͳ U݋pQR?$,RiyvҢxK=e%Ϡ̣ݦa$QrQDkD?|BO®;.4}MRUzT['5جC-_tm0|{P"gͦ ƐK'}:D$xdg3=Mk[f1h:Jyp;Jzp05B4)lʓDV#m9$!t3;_pzQ[*o#'PXQzO8&%J:xwC8 P*S,xVPs ~:5R%qE)WPʎ%yJޏ}3s5TQ\$#W\=\KIO8l-Ej@+jηr̳9usSqќQpzv)–<[*kzI[9Ts|\m_Inq@(՝9UN|N6]u/<.ܱ>Ikcl3xpw6!8+!pִ6v{1@g58E־Uq'$qԚINmTDEI ㏣D oET͎ 'n37ih+qvIR\@̥4l|u*u .}txu.1w*P'&b,%1Ccx:ō_kgahHELx)idV^xuS }+]݌w[ƎQaf)'we͟(Č,0M࿅ʎ7*o6ReN&Y}T[0 c^g^$;"[9,%*`"L%'ph–JF9v Zu24igkTXmU?= A\@ڱH4ͦa^B*rv82Th hPGlRl5`њD ̪^ݧh@0%6= EZZH Zt vMXiF~McbSQ:N./׳s@ho>hv!K0IN6Zq;QS) JkE*;eA<u$!mJI ؆l{ ΁HjXH@Ac4  K1Z*2w33V%:Kgׇ;U:b?JД146O,&+O1IT!a)!S 36R'I|Es](!]`N a1Oɴ`iC&'g:1eh8Zkjj- DŽ" \-;r+:)ٕiw-s(a|:'{q+ߣr`-'!!@H p]} H.T-0K!jDoa!xtVn'q/y΋RT;x ^kNcm( C~vo2yÜتT]n(>2ch8f3Qc|5x> @tan5^uq\]]^a{2?oWs,OR|[.T߭#uPǗ]H)a& /jhh*DVv'(;~Fo\[Y;@B+(+MBS\ķ.a9mf>xvrHq`h 7ūfXn1x_` @rlV7 +5$@d%3VQa0r[Bn#;d[b_]̫h(տ7$DiWG#Κ|tF)ѯbo&fdц[jN iq8cuͱ!r)- Β3hR~ ?2,8D5!q^vszm7~,p=yY7!ŵ .CE&&\zLoslg 5g7qbbx ^&㸋!5̘7#C5Ef O"o~)}Ú3(緼FJkzPX>oxf^ZRm"M=2и_J{JqQ c1JQ/{)w=uJ{cǃ4}+FPuĤX/>+&YV&`00+L8 jva^;IL ࢁlhbu3HgTnlsV[(,kQiv+X2Z2[֊Ԯu9+GYBSfE FVAgPr=`kKklAl~5i' z׵~g$o$2j,[hndƉ;B9sv4<^=cuHb}5n8jj}`p?Po}@رjNΔ5J93alrcӱja7L ׶j[~ӪVYs@VZo<$ai?y|No(Fߊw]>~x P׼})ZkLc}=* 5֯,⧦% ݜ2߹8L 0@|RxT@-Ԧ (.֪O;Ⱦȉ㷝%v7"٣掵"NG5r=V]o Tnz ޼7ɽo|2雰VkQtNdXEtn$Oe1hQXdYþhe`3ngRX= _[2-:K0lMV qP|)Gr) &UhF5VmD6! ;I?ԁ?5N3ы˅z6A=9iNt\ڃ0,If}`>HlS+4Ɍ+f5p*4M/K{{`lc]ةֲ粩i l-NJ--V/n]e ˇ@Ke@a8ۡ G-K8+u=@ŸL౶]UE̽I*Fo]39e).Gsyw偬 8x{: 4!'SZ"X_ItϫL)Ukn:ԴtYa)g~" L&7A6t{HTEj>> H=nDҭ;:g=+&=7tB"v%:S g&jI}0./U 1 jqdEB!M sURޟRx) 3T O/`_w6:_W7wLaF-k؛uxI.٥M6a<8(U )Ջހzn ۀ=r6=Z ~Unn )|ww6#}XOHWgc:pq+aLI:ϿX=Mc)Kftkc[2пD{̭v<¨0|!Nݯo@mN%.rSH\.Ik.|r ~usv^9BV xifCaX''v^{t\Od~0Xgf\O@Bt?;?Lb$LQ"!ڂj|'ã r=iԿʫcV?#"ёYGۮI4Ap<0 ߄5Jz%P^pT)j)Е :1fxՓwϚV-$+1x!6b䟢PWΛU%vL5$*_8ʷsj\PƣafJ#Uj"]\F(^}Z5[Z AXq߻Q]ן L3RuBHb6<<S5m,5,xmkL3h·" N׫'H4JCjhU {p,?>W ONUhE`cLld*-p.s$ 뺚&fGӚn8n;kb b~ 2F-QQBW$mFLf#,Q|D@;aD+G):+烄WB b6qe6ȅKi8|9E `Lqz8x@_э1?\uO@L`9Ě !ă5<>jj> LSSzVh@}|xdl^޲O[ 6Fq<+*TTa R W9m}iig|}֠$Uy - L[ReAg9ˠJz(B!oȻrc6Fulm;fNպ0i~C=O&8tzOh{Z.oom j{-0HGL[f˛QVi^>lOV#Jx`9ksޫ OjT{괰P%xNքg,dWIEcK2M*t0/}-}sע }4ƯSfx[~4Aj܏rDpPJܚ ^bpB@ԑt2vCCNۂIo"Ӹi񀲟M %B9U+0t \=g +>m66XhS->pmи%xcfKsiզ [B/6Z*mV_'0}veziy6F$d=| ƬU/Jy%)"-, >&Gn+wǮJItO(Yu:Q`Yi\&BdOHWW@±ZZ@RUQ p1(yvB V 6TBlbyPypvʁPJǂ1 B 2Ӫ:^"oTvy,^%{j+Dr5UzF`4_ֿ3#1Ӷo}Fʯރ,#y JTHКĵAՉ NAH{32L -a # b66@Z}>Hє}5jz'Lj>DqhFs&ux9֟&l?zG#)Kb(NZq-RػME ;ve8prB2'[,Ȟ :{$\:#kxm>"Vw!RLŔ`'#$P[IW_NOFP&* :;$_ck$ίͅ$E%(Z "af3et-=NZ9=.bMrc| # _ ^xA``g_UlVKUv'/Zb8*m(QlB; OƴUu'x_D)V0D\+7u-dRe{H:zoh vؙ?>n, P,AJ  ""VTSPY(AR"*Y8!Arc^`j;7E({%*)W$(F֪"ny`BмRc5 *K2NQ7]OfuC /IV0Ԃ cKP;cZvFAν9XY0hF)LNygQ ވ վ=`bDVUv7*3vWr;n"5a3[a-L\DPň;ë6}FPU563^F3DU׍sLN$W5fw9Pܲd/ߪPa GXʖ`J|FjocUnB#|Ze݆?UYl)XJ> 7f`b>eRvA’" 1_^pŴƃEAVTp (3 1DxlPgtZ~8d受'ͪxAvt Hs6d.ƷXGb*zj0m-h֩zww E2n ^D74ӾlOCD)s&  RS <>4sbZM1nBL˳6qL qr٘O wd@_wIhIlܪ$MT$c]DI ")1$iáqb=2"b݊[(YHNSp#.Fa_6ͯ Ti/j*Ǻov,eҪKh tϝhǓ?,Go˃O?a{r!/V Nܢ 7w˟vRW\MuU*|WmaB*抎yBg.N8׶tC>I#qcav&YW OWs}T%]$.vZ-rh@Y {rB8it[u#^ROL%Iɷ5fcn6-="ST\~4|<8u T3V6/gRH`lljQhʕKfPz66tY$T{M!)Y\,K-;)w֚ +ۨ$TUv*uaTkak1kP&_ݛ~y:㹦#E#o]'5K+qUUBQDϏxU"DɡL8Z;6Ć"z4+2m *}v.1SәZI_f_oc|mzq[i\Q^HW]8sovq]}Nh~L]p3^Xn 7fzyR8.-soeм"!cZY3wA:Db3hL\~pИ ,*k?fw:[eVٯ";&ZZ5W39D-6h8q/AD'"JTf)IZn*4Wzpbv(~yYWx+1onNu~ va, ^t7IkæPQ>Տ3((&svNL0zxY蛀߱h#7U5])\et9ͅd|Vn}R;)J9z\YGi0:h(j5j$6syѰ6=FyvĺְK#jѴ`Zv:D{eq) %;zUUj/0-ڕ*])ړvz+r9JkAidSyh苘0כčEo vE\+=DC38. x;K3Ѭ +~looYq!<=IcS1AG;2`lœ+嫜2/b:?-9RfOfgF;zUSsN[ 'Gvm{ZѪy}Ǯ ~A4)p?I+] ?{&_j:Fw4aT̨%<)FH SPO4Ӣ8Bn&[?&Œ΍t a ׊N.X.R@v+Sy\C~Z)P^z'%I~[lD*yq HXy6RNG$?ۖf:Np;SM⩑Ju}ZVezO}$\\ l+ jkګGrl?h: ` W_]PT(3S:g'0hRW'NJ`3ȉF[yfsiV5RWe6v'u-6Y ^0bS3M$Jl} 6Sz!t*) SU"Y¢v/m~]{lP=/v_a_|~}pkg]__?^r|kmp{u^I{'5/?^]9B^u!Ӷw?^_TS;(8TDa2RH7).2{`2,?+7j٘{2.K*wіiPa@m#`Y0T6sHNƜ90+Zex ˩|j帼X̔Qur~s5jj~V+t+0neMtǞ}v8y *ˇ cN̍ S+ҍto>{z{N{Wsy `a>Zr.< 7q:Y-,CqEp47\`8D=BJ滈K@#g7ծ Be6? c+KJ"qJbc>%R$-l$ -ˮUÝ`-Fb|2M6ԫC6)=eg!֔NU|^ R"YC뱑1ܢdI%{?3(˥aƸ]?/?쑕=?9Z(|RS #X[2hG''wY"㕘ks]HZPۯݚ]I.A,4,[g'GGxK򲎩s }>0H5W+ ^gځ5ίM>Y)j3F]#=%'pjZSE3f%vU}zf`P(d߀zc'NsC1hGu襫n%b߃/DhZpKDX*rhy34oesvڈbXm`B7* |. (QSZ < Z]x\؏\2!ڠ"ʦdڲ"M.cIz2.}**\ kXdB:6Nf VULhx=%)Ģ"bEIsuI|EwSvC'{wNd6߻i`S 8"~>rpL RC"[c;%}(Z_*,Oc:ʯŽLTl[ɱt1wܚUr̐9ƹc7:7֫WP>H< p˟r t:/nɯ[i!.#56]ej󻦾}J+W9DUߡ u՜#W#3Cۤ?~vyɶer'p'^ANݧL5TLtaCb=6 icyL`:5z(깝R$LK\7\w]!a{F1B3Mj 6nWx+ xdMBt,{5qA5B82b;G BV´ d;dtCJ$M c:V$Vz k /Kƺy !gB6A2NʤiuMt@^ ^Ūڐ[.,/#džv@~,]YȬ: / 2zdrI8+3 ,Hk흈 wuL 7F*;KtĚ>0n wk nz'U/|j.Mh3b^sMs;tx0kxƷpֶ3NU`D[Ta>ݢDX1F'6Q-v+{M*xeb}U{14.<9Ծp&8ɍBTX7s'}J^R[yp  v _wð\}YC<} o0iHME:5N]¬D\Z,Ճzͨ`2k16dv$IG +xpT 0^6o/@_Q&QQ ֗`-ʾ̦LyB0pRw!;ba fII5Cy;oG=3+vj@[}(OZrH Q*2d *f%U}2nELfJ7&աIel.'dirQ"Ӂi:ԇdF#uEsRi2T)5>_G%;aԈC ?;YZRmgi&}Qn/vQ2N;  vͶ J& %Do PrOirB ɣ R~p8ݿMhEx|?Si+ s.iR:w|qfg\-Z, wN&,\#t[ax#`V8= >%c;; }˰lݏ\MןOOy7o/r(WR>:Lr 7=7S|6 ˿nNAm5#Wj#@kqtD-Y6O07[M9bvÍņdp֛%j<TiBtKU.2ו].;1|@q\;oo I%9 T]-HAuP.ȄՊ}29>pNrweEy?D ]#& J_ZיĪbihhí(B wcǑ{f5t=ebtN 2ML,96~pEQݥ\Zmn1m9zbúYzu⬹ u SHQuW|K|&1m4`]b xU |*<oXzX!ؓEՕW xd#E*k(GL D5BP@7Vu0؀hozLЛI丐()h<+B#Y6I[",3Y6u-7-߮fMO)?DoI.O ^4܄g jV\q<oC0u@' ٝ%cK1/>ecaGe=A?!$a!YFۋ 1M $4 #'QFNREFRDBP,bTp9WcѢ xj"PTd^&l(j3v9f;v- zpQJd&Ӧlp 6]{<ϙnW#5x~j٫}l n@5.Ǖ$(^> Nf|U+luTuŐ _~#EpV!xZ(Ç'X5Dt>`ýT5{үQdß/O?jRqV9sqDx#twPgsH/:<;IA.NGۇ8pϋBZnF|P@2b[=6Dv+7ww\àha L:r?Pc8ȨTfdPyќϲkIYځ) ,ltr{p$݃1 (cGKGb4؍,.Æx=e uwo {&s[mڢn5;rf\]x+)"Tjqv^4#9OAވ?/@S1Qk-XSiBVz*l,G0iLbk5sfJM[uhv4dM/8C % 0 G{TduUc =1;#ؔm^E9l< Y/PM@;d+ D.IP!ƫMh K ;2H5fc(r85ߢk$ Ff~?$-2Ok7I?iאRWd{r~"2_ԙt7rW|Lۄa{ òBG]o'4~$4X5 _%Sضl2SK#GI&a C@ze.RY5aX"2SUM ψn ռ@_]RM:Y"Vc>tLNEzϠVE;8b% ZpMv9jb9j>z V&+'Mo:ĦDNGU0T ƕ6!ל(\ŷ=3ͭ&7Neط4u=V,=6//' p*7M!$:ge#i/Dr;[TjV?$%Ϯw$ydC;g;U)V?! W >}h4=`*u/ٗq<%USHW)EAg#-N!;U-46A:W0Ǩj ?5ë\\ :ny#n{%mΧ_Uk5G.t0|hİՀvJ7{7ۘdMQ~485Rq_~WĖ'ɪ j6Z5թhpA 57nZIACChy|1aՀEh! g>9^ܪ&VB[` g!yWTruϫʆ T,m vauU4 X;}u镡(MC(GDR5Sa6b&L+ ]A#P,:b$\$8B>-}#%khPnuRԍa!k](eY,Ip:8^1 pEڜd/ PDG']_aC^dq4&R9 Q/.չb\*A.2v9:؋i|#}VAny9{!.C*.7_@YR ɐ 2#z)ϺKm_cלRJآKcpM]W%Ϊ_k@BKN)xؾLٌdddLٳlE- 4@1)Eɏ[fkё0dK2rEn6XIt[&c͐c5VZlZ*` }B # [G=H66ƊSuË_R]*2~;2DP^:ք+dC EӇ*3xW oaSsi A7Z(2EC٪݃6TFP% I9 CkEXp*gYo}>I?aɁ#`°ʣqB.yMsaMܨJaC¾:;RSG'F9>tUQJ0"i8_ $ɳV(BCa-H (]L|'b)gAuMea˩9q0#Rtľ$U_w}RX B59?$|D 8yF;˓4+a{4 f ؉@"m6 cG8_2ip S:٥j 6Q{j5J/ixQbhu1ġ#^SM:A[ } r{(i߂hT"x*m[Ӂ:xX<2\o *EF:V 2, M~t%A}g)seRޑgnʨ) xVR 2+XtjBڬ+QsF [e8EU\&q﫩%iZ޸ 3;JG!Nvd28T*} x|e#H}ϪBj gtj\$Pwmʴ=J^Q ݻmx=G'L4:Ayʟg皾OU9Hlo,_'cDt Y^Gl{GU9 -U}%C"=#E8oG"~`} pqdVZXpSÑT`6!>nx{A=wh1bz` #** IUiw$~͠JHZCO=9:5'Ѧd¿$ f:\@]q%A8k<6̟?|v$pϕ*FCl^W/D90&N|u ô\1-cJsU<' x0]oHB֓"gyXFEW'ftԔ4ygٴzTi>PUtU$ªGQ|LlZ380Qfu-ZC.W]8<x:"G X`2PhOmM-j(Fj3*Q b=0Yg+gU3~`DD|zx^ɧzkƅ_="Nz8Ys  -. j^X>a+(;C%Tc#v.I:3pc*%)E9$wvN|f$s;#p bZ7cI]jlZ`:VsM#9U0נ"AON + ODgr&1`c vP]A&Pm(CF;4[@?}JLzo"N}wXE\Ai9dE9k~F"LAא^* EKD Zy{d9v#S %HS~ ʶXE[V`5&u_1>$%';Ȧ%fݪQeH|/bBxB f],_vEDFRaV{9=!K}_0GGS(_kQS&.qOiӧKιD/k ':!zq:i[oraڠǶӕ;J4- ^7 +j-؆zjMC__}}C`9E oyD]6e 9ZYY~2IQ\UzC6oETO?_؟%UȰ؈&RMmTۖmCeBHD񹺓o*DhL;"2%;{,/jWFW DN0ϻFBA>Ex|?:4ZzYQCxJm<FT-3 c!#UиG2Z `;oQMېbINzv41iO% A&Svz' DVC-~gZd჻V*jrЏԥ;4cr!0~w1#L=ޔTEH,~\` _Kÿ?:(dOv/T'3|s үh 2Lb} 58fkeEl2BDYi]gPTAuYMRS$fxd5G ;LE$ϧ`"R4bO6K>Y;+ :Y0zX}2 Y>+Xp20bF % b*ώbK0tLgHO+|v#YKT׏E.)@]0RjS)Bl-D:Π텛P5͎S&nxt+V)1)yԑHw =FW?%áOhtEplp`^Ey!0Iz@ڷ|@FXT{*E62ǘnΝ#K.ᛏ} ©7F IaR7 eưTȰPI\M\އxtF Z! fJ\ gkSy=%Fi4A>`GbQcŕՏxf#}0`w #kcL}>E"ѷLXr85c/|1Cޣ;E>h݊0Xhax@1@h{8|b]fܹV1F28_D0,Q7ab0R &evL9be:Q5&gPxqWƇ_:+OԘ^,SAH ɺ ԩ~@j/~k } jΗx/G;[_s1lkgߏ l{gcӄmll {ra5z\+jč,HEn|Vءpܧr(Bv/,JO|AX_(>6mێDۑr`{c_%w'YwI PQlN7, .9CQ>-GQx7 p.0Z9G\O4i~nΐh|YT}g2owMY/:f7=pm p}K_,j{dqgfv2`HbVPB bNn: Mbϛ|$f3^ .FV3nCiv3nS_O]AH6~>r`;]Q;*= PBjTNA:-_Hy͢eoռ:0Ѳ8dӛ{{Q>߹HG3,iG5r^_51?Ź%j5p&iLwD?uk?&g,ϲlyMSa صƹVP[ɂj˯JYȻ佊Bڨ0B{ aU)N}_̀_:l}57Xf`FRƚܺU zx= ST< 5vTeH".˳#u,qpTH0[12|7sJ.>亵".draCi&Pi X5cP&޹0b(WuQ .bl+uqz0Itɍ -@.RȔ0+ P܍ID:&فv*/R ߬0 |LlB:<ľT;ygnB%W]N+=v<3%fiZRe:w/3UooZXNTLȶvHk5II~xqY9KC5}n/ƛRbOnS]TSiY^>0P0& B1I5KP0,aby0aHׇ4T=LEjk"ZE]4H~ 4d}*u?~xcHs.RRMGbe(Adc{qR:30knkW|>hZ\5wk+uBI==4[V6!I)UxϵJ4r qޥ#Sy{'gSmě-ھjv+mm ՆBT/SgLLW.Wi 4/>{%;44o%wyz36Lf0 5 6w&@,oNtg:exbNQj>ckyCq2+>i3ȲL(eTAV9BsA,f}谍1NGUpV!CS&*̗bi\z0Kpf,s8u"av >٪j(*AAN;$hNڞ6BᥳP4 \6HzUTXAVNWzt-8ZeuޤS`4 yZ&г?t`$"p{+3GEbc Bh }z6\#OdB1LɊՓ7Ξ0H5uF8|Qy3s/`!9̶˗!5"aډ`]ÈUw,Ul'k@2U]pDV Z0D.86vpdrޓxǓ v"-G!ȲV2*s1 ~oPRZ_i-) o! q^Y`x<ǡGD$|𤜊F *:mm6 \qH{lFمժQ5 " ӦӦ7#ech\Ľ͇-ēeԐvY&obcpc6 ֈ1c?,Hp##B0ZCFctd>k/-¿l7DWPd2m4P$ū=|֘ȶvI{5~6C:-r5FGzdzzqWKee5@EH 3mi*ݲ<@0;1G|/;jT\\ 8p P+;)͎C ~oު" *YEiH;SVٵ XF-5fPK˔.ҘmV{5kfGé-ń-s(RQC؏ǼXu$CiV^ ]({&7v>@ytͤ,c6e?9vh7T>`N&Z K6A '$f ~oGn %gw:nJ};2d{D&lvlo 2FB?.GaYF~Yw,_ =s o;lk >l٣r?ʦgoWh:>rCu!)>2yޜ)ftqZ.-O:\!`w6Pf )5p*~U f̟ 9eL{`ز@A㋬bPkԀM3u훂sx؁l/D?1 n)0ɚ}f #.}aꨣ=[n {2'큆Sh n0 GWPo*PPY ^U)w}S*+JTv|OA) t( 2t%tHr-+&!*]Yʮ05o|?ͬ`ͩ׾13A6Zz2fWQҿqhdV0P?=)C?lÕ6ljtU?ycѝ9u&3B͞_ɶ.lhRH^9kyt'JQ|PTڍj/k|@˜3x0 x⨟ <$ 8݀N5}O`#Px( z .a|d0(\rFʐv:А?,2e)(b+%'͸}+K/>B{P<%!HLPRblBW׎> %B(1(@Wx0*Lx؆?׵be{;7#,߄ʗ5Q[P'/..g@tKqupꎲ|C y m_eWV-E_ow.O{2,Gxo^V$oO-;Y YnQMY.ׇ'[›w  -I+">5{fڄ(b|805h,Vivc7$$$QNz ':6v;۵ JVܒa[PR7_l@-HTOj xj]면Eḑ^Ru~lxfiPj}OQg0FxQ*&3PsM?-GQ&֞ե87WiHU%!?DkE 2uLǘ,(Pf/,U -MD4T5(@"x $7u3J>l/ miFT3;$:%>Ҍι*,lӳ@'F-31/I5}W[XIo%^`ZhTu4ߑvQ>|@UM!ׇ9+BBfkq' 6@okk˴W($)GYUI _KQ'L|3FDvEUܦ3[S 4"-3J h9"ըXp.*lD Q/L $.nBN)( 6h@# ȴ!sgs.qh1p]`H}T2LJSjqSӆ0OAFr#?O>Nd$~${@P'nbGu}Jr 恥Td@x0x<*r|6oX:`X*Q狣ȒueD"ĭ[t2b]!"1{YAu/Rt'a!ɸ1R.f8<73XR^e I'X hFV4ғ=g[x8@:)=*L X^adC"bv%_@s$scS>&|Ff[CX8֔CׯcGo ? m/meY/]poX+Hhzށw_;ʪs|Z3R/ыUר 2n0DstqDQ֜Cjy /~y+c1纫=XIal/9bR Kx`BփdRYU?i,Zaw6L(fqg^Znӟfo>1dMC*DmUZ|gYG]o=q6}9 X<~h@,Tmw*b8v}㧘_ӯ>R6r@R]DFJo Z|kC^vg .`= ]11"s46KԢ[1V#Tauh$КifzZ2eB}RmĭTOI6d0و"ȍO4-.U9aimpqj&jr6!/dJSgd>-ڛ>78˦CdQA:DeѺlx#? EԪ= E;֮&kOgژ&o QjOɬt.Q=8)a *@}%]kRFkq0! 24t#冈ю;8;n'3Ï AG5 }E6gg cλ9jj/j C+>(Q :Bߴm[+g=U_`Oⓕd].?)g,uH\ w U I,÷b!&AgvyIm7'3ۡ6A' mcy79l"`6y6LdILX.po˗eI8ۋ:=C,rZ`$8gMrL%A^N[ Ǝa;OOZxj4N|gx\esVظWِ9ejtyB.ktZ^MKGit=%I41 'rNi2Ҙ={Pn`xQ&BJŐoe~!ۣr('RdW>?-;A͍; k5^tmK$͙ޟitIPj45*J%(Ȱ JUU,ӸX i!P-ڕ%I 6"w3HuQ ;Y>v GMj[~\[xNOgF#h~$.GMcːT> ]>4<;ۜElљE]M# Psk~d͖.lߛ: ]2s " U- uFL) рэ-`apzx5(KrUF(Ӟ$LN8=Y8Ee.MVsPRj0 :HLܜiX_sV'%:fU#<ƻBE/IZyQv\Im!јXj+eMG8$S>S=-,B8NB#BQQb'}Ud jAqTllC*aì>7#=ƵfgGcU6%kLsT`*+c:Qc.ԧˤ"&f[򕾶U*X~86? ЏCaYCK^%q_Hfo,, P 룶cru1Őֱ9\*!mXN+B NV ]˛;؇Tc%-k4#y<%}|}p;.A"!֛x{ nѵ5a55QސU>lFឱZ N!817dB6gZO1 vl9S4[pwkot^Ue!v/vMS|LU?n 5td_g膂ö9T5pOgo˲Ш(ql2{Rq2#h/LXf^R!],!*I~^M'#{#A:&ZJ6uKJvQHZ[N% ߉`:YFiW[! "_A}wSOcN΃=!Qk>3HL n9#>ĕhEr3W?U1nkyit\8l1oܬ9+ >`Mf,CarN秕xk*GKE;^䖴XD3TvYl,,%]5ȷΒ`&3RꖯH<KTlN)%aR: ~Qn٨A}/K?y"L&o  Oss ;)VqNA IH!fTd@2(SMІUlM8$ݒiJ%6+D^l+y*%xr³+zWLӒ>SZRP-8Z9WUBB{f1vŎ81 3ohy-X@LnS \8aUpSΣN% ,+N JWƒJHb7:,hHbL&[G8Źwk(8Υ|'(K9eUmϔa{msb{b-6{{QGx#|Rɿ0г`JvӬjrAqB:9,rh]Sp+9^}SYOJC*:,YQ!z9203B{\FIiwTJKھꃷ~qhYO+X\{ & _`a9RRQ u#!t8IH_hmWx2(s6]n[gKTܚ[FЈ qpyD)}k NZʖݿ1ZW;8WT((-U_2wg:U{ʉ,.ޏt{j٦v\u^WIݫ9V&)9)B8|PT"?Mf& m ҄9xN[ZS(rv(xt= ~Sulc' vB+ile% (T2ЎIaY<@5WQ}t WװMl&(l/Ƭ@jL)+A>MEcAO7U+8a%8םUs^\eIUJBJk4!Қ|!Q%{i +\sHV1CꗶBMee+ sENj-+!򕻩UtsuUݽᷙ+XC-Ѕ9*oo.DTVz?Tq@߃$L 0\J mF9X'UaeK1,SYY5MhҁWOCeEdW aHen=gdVDŽG;#÷< EmoL-l 8GGWLhѶ24^1hȀ>]LL.Y |??⦸ @es:y7JJA=:uCċ6T R`%B*Ytm<ܐ̔faHm |ܨv{K7@ c;>)Oa:NH׶d #<;Hdwf8zpD-rQW jkWprl]9B(E-@~ώ/ Ee7́t~^Ȭ-Rb(~wm&?X~DBh\~2w/6~ᛁhYF$wn m7~#}m에q,/'v@rG>1®Agʍ2* 1_f.&[!_,/,H!TᮟGW,QNW1`țl,A#7@8SR(T3}yr3܈@h{pk܋W^2zIt⎀INaSS?_J>XCn=`yr-tܳE+%KR-gYpcwgB6(x%$;S .8`\L=Rw*,TQ (K+>w BGSR'X t% *M'թQd|7+3.{XJh/ץus<. ɉϗ\gZ=!8Ɩn+veL_>s"g;1v /BSSrV۶yߒ>{TGgT%Ƈ(°ӪnD3j-яKjl%cI"&&ruk##EJe  I0bKHVQZ2QZr Ḳcܾ7$z{ `/ 92o~ǣ*uwFY*Ѱ#Jef_L:.i *za81Էql%0i*?.F8RK!"\e'Yɉ*7ƍH0]H"MSgZ}xT:G*YRF!뾉 9JOdKi~C#"G&tڿחt"\^VYwp^B8eC{DžvGn^R)4UbSJO0s=Hdk~uQ$ffAvS s%N0+`z@_Xn`ǀK5x|y 8G6az3k9UNtrq40ϢdCc(*HكƑ> "3[lq`l96n5hou!?x$fspKmWY&~i8x-]Z# aAAѸD"anҌ7?L./4.Le h8ϖ#g_h3OF4'/4q/CtUR-!2i%AE'|Qյ+Qai% axuǯ%Ej>P?h6KkSQ*}@A EF=u?A6 QXxJ/ccBʹJEJ,X𓇶;][ۡm0IgE @$&EbG@ȩ`7PlJUȳpIVОζ\IYm'%xxt$saJ$8ΰHA(?ɫmfj&ɟNDxo3BoLAʶzxx?ls |V[XwMQ8|d-ɏnvnV[%fDߩ|,&%{B&!&.k/z5-ÞcU9q* p>kgNE+ml1B⳷=N%o/pSh7t\Z=D/-VpN&%)`[-rJ('aq^@O|HOVlHq-l78i[TTmzpظ~T{qIXt3)z׳=9d(Vp1׀fc&]Ѱ1D[hi1>j|1F_JJdkzɣ+tTfV7`O0G>iw^L4 TƋrDv:&2z]]n\Nrg <Uf`$r_(Eîx-5c`Y#g5CB%2jAsinV6 ˺qi>*K [^GJL|Rp#( I2S&$@]R@0[RLjPɛpCsNMZ2bIJϵ?KRgxSƸ.Y=JcN T;?ne j|˵1`6@3̎> &xh!uA5Ľ;;1l8)Jorڙ$NEEJFkXGl9=l%e?-"uRnQRŎ΋qopE}S36'F<1푩@bDfL cNc-l U[.Z.E"-=ܘ麮zW;*e|2^O`FSݴ J%Nu5ݨ^բzTrW )ё_bmɳFFւϚskVGO)d|څ_<ӷns&l5+’WSf^"zC~ B5s (fʝty/%tRyMD&kjwU>cQrNBIwi.Seo>uY$]G' "ꑲyV@Rnu`U:/Q;,m\ҵvsC%}P^۴xR4v 2Udъ%ެ,ťZn"t1OQ]%=gon\߻PKlCoMmsodumper/formula.pyUT :RhSux au+8/#E@ʷRݶ l. tJaƕ|՚f%\g,*8~5 r~{-+t<[?SdfcR_=8\M-"I}9NI{d4*]*2_td&cw$YLgq:)J+ LeRI啉 r#D@%j8-j/qmKnw,S밋&@0K %A9ӭ]+ z1(HĘ, F$%-0nc31Z^{R. 0I䩣]L8Z֖QJk:_F#O/-wGDƴfIF7|7 ‡߰-c ?_ 5k)3*Ԧla7f[KӫK~&j(9|2>,ɦ7KafI?!Tj%@0_:U]4$+]D` CK&1Jy!0vPJcC n\r35?dz2(F~X CH<[?Bo&X5!^543}>wXVPZ- BHZ+-d]8;XTKDIڛ۷Mm6=t,A|??[+ENV)/Eo{|zR'^v(yq(*kꎷiSe!!oDS)8{DqxÔfgۦ62W ~L$>֘,:aNtȩ nZUZob-b,Cɦfp_4gӁU@roQ4i9ɲz0ǧMLTܽ 釦z g!kKPR[7vo "2P+SZů_vieڮRM"%j#.(⯲x^+[1`JVYلU aO#6܉;Gl(h 2ϋyh;%qUFRYASĤp.*lnw2!%o;# ݰ+kErC||,HI7"u.ﲨ$*el̎4;NSf]PF(TQ^^u9b4>  Hp:kB-N oñjj26 oly*A0TGT1 >֏ >BG*A#cnl`sU}yB lF5p(P$ƪvMw5R(>̆@=9>`e43}8278e|4`ވI#X(rd/TL 9 Cm63 V*}@Ỻk],T_s*rVE[GcC DDޕ:& %xLͦSMT8\Š&(Tᨋsz:"cURMMԅϠFja4`v*UY7 اnZ r eq[`M[dC& l¿P591cʙE L<'&-B%cVZ"0j" 9n58;<M3-^d2FvMS]ou}P1s.1Շ66hg Mӈs MÈXUd;QpW;BU)SiKEPY@Il4 ruPCA%]QG¯~dSLMT(k J:x0U'wi(qW,}"GKf\G鈻#hj0Z<_jg3HTq#XF}QqDKhڛDAۑHt]i# ,:ȡ#q|yyy"|Bh"qCAIo?( :*.cTZdTZ:Fo j!,->>Q*b8<.p*⏘8vd-cWFb-u3,Gr}jqݞ 6*v?d}O2^%rw2@צnT8`QC{K;8' xNtzvD#9_"t%jor^x(ӲoTƨһW[jov*Mu;pa1%0(1Q6 x:lS OllgS}M+e@6S,|E٨!_ 6a<)ZzQ5d 't%f=%-:҈Dtl3;M^L\㏓<ٟur7%<O) 6 YL4p+7Ty::(*'}ԚkӦLb:T"CeT6WJOvPy AO' 1Ǖ9[YߦC*md!<cyݐiKv+T}ۡ^ՈKB9si:nO'XH>Mu;Υd EK[2|(coZy _Ϥj0pQ Ԩ~azTC(' b)uDI'F+JX9Z vC\};CITU7I`uj7hX0J` `gFbI'a=l<$ HxZ ?*ZAbPAmjL9֡. ߕ_}RjeÍoU0N GdI %,d\1/4m*Vc0?g7 I<&IX9^g;0  C~%6-TL:*bҤc.\7?*"W\^O;vs/>4-x·Qţ5]pMAWw{mn*{탂N)c[dJ#IX\ ,K_eEfCp\}^F-_ <-dOVtk8ۗw%SރˋYk\ّPU:-NE2ut)ʋ;| ]Kh]4&!X|7 X[\.`nU=>+ߧ+*\@D_UT^A-1 zQ~b#O ?*r6nqk`gb{}'g>}`{~XLf|O`1U8[.V3|x.q{{!>LEMfFB~JeޕE{OFOMuL$Z?fr 1Zět/*_u HQgH0[]$1DmZͳ/cX>,Arהy4j^~BwE'ūM)XS?J-qF"G .j-ś ʁ_ PKlCv*Fmsodumper/msodraw.pyUT :RhSux ]{s8?'WҌ,Kxt%3R)J$n(RER $8S{ݱ_?h4^LKb{:|@N\ߡ~ E]^_܍(XJN-h5$H<$"".zMVcϝʵ;~DkXn\MM&9e&vD &š;^!n<7߃> Ʊ|Jx9[pɝ !2c2EmEhW0X2$KѫW GR5xE'*IO9'Sۡ *6UϤF^/?8bv?]6ފ NwJ؟#$fS`׳޴"ZJ3 b"+G CNaAZd@o%zrV9"??AH\p?@1c/wT#;گZk߄?Aijܳd4xŨ#/Nsf!~Yn7%<AH󴂰'!B+%D*%R~Fx_SN g'^0B #<Ï |##Ìptwq_LLXx=d >)Gxyo^W'Hm]jF#8 V=ZpKzP-Nl~y 1p*\$ i(RDZؔ~<0){[H(`N_EytW6;ŽOẸϫ*T\W(/ZH 4PItt5Pb;v' =dFcE|`z 3]gnGg3`rF@ Rt6/I!rG&{,蓷䠫jD#(|?5~ Ii+ 6DHJ5gҌ7m ,$L N#wSʏV&6n59`\ m'mۂZwc@k"d}(q@P88JXBퟤ>RHo͑&Xނ;NiDNSª]BlZ۩B OL^N4 {gXȎSQB)w;תmZqa)n J63"Z*g!0G5akmZ$J5Gx:<:7ɕϦ0( 0nGPA\I+(J hv3"/ԛ*hډM$*]ϔ.=é\aV 1R(tPϱ `Vi$a~,Brcz15r$_k SϞ +7o,ȡ*h+ߡOț!17Gy/Ne≞.8oBf9,#Lrz]cHLV9c›[E(J6l _MVaY ?"; r"Y,Q;C/53\bN|*D /bB`wƺ3x_<2_ B$S̄dR/8HhT +sS#ʊpv.i+I_yqVю~D{+A'B,Tjm#zWth\/^RDU I翨 5(Kdhk[֒#RwQP)4J9 +2PWobA_ nR񣩷]ьZ2(ٯ%xVO~h/(3TIaYIn(K[$%UUIC1x=b .pa8; VJS;`yiܱ֮ b']F;[Zwjnl+QW^bsy[@>F*2Uՙ bHk^[ pEIT3S2^X뜮B3bpiHKfȳ͢ڙz8Ol,I0WFoJQ|-?~ʀ4יxzi1ƚUvT+1N,,0TV.7͗ T,Hʼ&@ :GRcbS\݈:_XĶ'A2"\,=/ Hvf'P$b**qmX퀑 3Ft?QNsqEޫQv |@pz;_'2S;">Y`o*&Ԟ%8S{-Gj6dz 4%Ip KqAgmgfsݞ̐+A72L )6R`F&>t!aZ.kCf6& k&&;]b ۥkw?0a=u(wS.E{*9>P~p >;<+Ji@{+f1B:fgaPDfd9d9GAdbx`!, +7M;%L+4třEޗ#u7svLVQ91:Hm@FLwd)Mq EhZ-*Řx} <}-5̣ZQ>40gy'QFpW8})/0G5qˈ،>ȓ蚺 ]U.f@G]|;\cVuԖf5XǧU*.UF'W5xD\2i\*Tꍃ]Mb,]D.X ^b8C['GesS:»1@IF.ɤ)ؽD)E/0văA,r嶉}PWus.2G|"w,(%sIEf<\S;MtaȊyie=t悩WؠR03&Z0I!vZ.d,61M˂YPڗXa(8+ɯ k ^ W06ok?Z0k*ci\=Ӆ NenT^P/8?L&5Sʬg7;y x!O RsIɈS!tcIRM2Nd10 B_; qnN EQ-KϞZGىxL-M^d::K[ CjZ$ڴ  ;Q.'KNH2/$Q2nI:=;ojr RԼrv[IRjy G?10 _yFI.p܏-Q5s?%J oӈkHer,O#U [.#fo[(Oe^*+ҮzG08̧T.x bI vrٝbc{0B ]zDJ؎iBPj1sAR'w)NBΞNߢg:4WH?$Rg H˽)):'ڰGٴGL|5U,ܐO(4KID(O5ʫdANrgcs'_n؝>'urQ94ޙ NBgh/UurQؠ|S(yy_ɕFyy So%@C|MuFA~(5ʛ34Qmm߱CG'Ck¼=NurQ^*O究m7huro4h #f>F佁uuu@i:u_JS֥"4h vC։SКz 5P*1Rf^ۑtV$6_TeX IKɇ}yUpJOK+?vz:G؏ĵ=je2Ctyf\`*_%ߓ :+jcV}6$.meAt)VƿqB"#c*>`f-=q Eu Ԙ30wUH!}NO1 k׹`e|D4.SS@#Gs` ]'υo/ 0=!NL ^cΜ9^6s\Şfۀ;Ng{O(*(JJ_`bRAIB+{Q =éCHSZ_I,lˢxaOwu3'>.Qjrgq׀wPDv}wxoJ.;xor)u9!RX·*%~xhl /{x2+GAQFg@ʍ:x!bY!T4J1\ 1߆9 C* !y<+rKBdi0꾄!dW"x(!bsmn5"r7 DLVqFeŗ%#b mrK"2"T!ʈg># iWF>c[I ytp @yy ґ9sQz`?t2 vP2"і?Ii9-t u)=z'J;!%;izmK#3RvlDzI&SA1t?]̦~qM>d;=~i=rF*qp>FE& -e[\wI2a*\~כIl#~/1:4StӼ'ɽ:Whyb||-Q{{:`Ds/t}}>\eG ]wvPwFK~&5##լ((Cf) 5Z3 A?? 8X("~zH3Gݝ\2p={Vj$g kosǶƭ{WȓȪ%;;_6=NNtY[jdfw]ntDA $A`6{7El\|~N0.6Idk/M /6q,bfK-N@U 7hb@9[ߔ$iIh1~ l9G 9|tn"կ//H iR8bp{ɞtj i"^-6O[T]AF jC7C=Z"gw3z9^ J}>f3˺W(q=xBr/}hS e3C uouɵ@>K@`,0p7r?\T.&OP9r|wtoF0EĠHڲcifxD5*>kaFw#܍|> f]L]o01@0;La^KJT YkBĸ)v~g ܲø?9`^$ >6ZKާQ̌X9G{jPa \eF,I)Q;Dhh)cPWn/"Z/-@&\vÛ&؏5b>?;ހtd+J'h ϖN\,JUSќsѽv҉:\FECåtSŴ}#!ǫa]-F⦫4ȑ.8S$0y|s;99b6ֵxM^Y7<Ґ Lz-K'10»Bki]+o6-q:DPOUZ0+ tT A4WL$6Սx \wY| 7 NF~ӨeNp^Q oú|9=:\XW[|m{RK^\iZ9̀cO -ś5EIxummF zRZİ};bNtzcO.?YZf[*e8~\ 5Kqx:b 7?َjG^[) GlVf/iV't_$όTy|Ez6GCs#5l"y[ zm[m뽃?-m{ uwizz N=ߚdx*D}|sI56Ŋ"6CE[][P(š`2wd |l]1e1CWa02@Z3x*(D$t.UL9˯aWuViހYtD?&-p :]JE,ܼg󨌅t5oZ⼵GQ|T̢x:?k6gԌeQ]M-^[ fuE)s6w ɨ[c*^R2nH:El4j9G'aTdc GNN6*l\y{ r_t{l)cz9S#rK=W $DuXՋtv`eZ{ o-PrfJ3G_{JOD.!$iIDOv N^2?S lG܇[AՙN79!cIZn|ixE oIDxl5`g6+*Ɓf MzT V2Me yy 7MMĨ[:|=Ne[gɔ% mW%1+|źPcwX=xN ·`xph {FΝl`|XOijr›jW!퉩̄.'p:/wldmtH}כoV,Te-Uv~i>W/od(k=<92k?//l } D17]Ⱦ 60^AmPٛ>{1nl|̬Hwo_ZAo`x=uR21MNib`Ln(rhݕxHeVl5?hio緛Ӑt49Ƃ㷦ky(_Xe>q}MA O#U(NLY+ z4fe eׇLz>1]4AY8EoWz5.j}?K\=f չx4gB#ӂpMih.Q^S5@zs_za[J뢶օ ==}o굦Bz5 EP0`a æ{FG>ΫLR&:wBŘBWo'ZݻDzSa]m3d^uso2U!dBЗl<VC )a2J&|p*)6:]jSZ:<%,MKi>L:7a'ܗHubUȌ dQ$G6ErzzǸӁ8ۜ bIbGHRղ s6MӇhk ^[w6 ]Ñ/qOMXNKvU|:F>:\H߇nm]wO<.்b/5ģf X.!޿ˡYhRM&{N˙:={-$ډ*a7жlYzonSϣ7|0 P`5ӎ^ b w`MLJEfxcN=ΈT~dO}TI5+9 ^s/0]{f?՞CGR (w_?\©U[n4Vs- Y%ݸ6- z qe. a*F;WvRc e]m{|T|h mO14GuRuJiP#֝.- f76*h_g-5_Q5r P%45hnɖ]>etk(5r{WL>{ZjN*Z~GqW*RoJ h xfhʎ.s|UZYܜ^U=WuvLvuG; 'X t B12[A1wr_M)gE ׈}:Gu; @?lj*?/0Z!Oݐ o/kd&n`?=?}S"%[wr g w"*Ѹ(%+}X2f/PKlC^ msodumper/msocrypto.pyUT :RhSux VKo8WB^IJ݅9 h`PfW"rJ1e=4"q8̓83 eB,T4c:(9d4;iN&F]M,ec@;B[i,p[F壌QY<.Eĺ{ۏ(,(MHKFF%av -2cu P#_ A숊|מCmsyȉd^hCt$2;ř*6V@W)MWS|SQx t'e!뭬$SJ==6>4luȠȃZM4k ]*st |TuCWmX:/VaQ\tɥz›ȴ .mѲeR;0Slbփ|=t //_^uTS4ۓ^v'qvfAe;,o0{]X2˛MXtgy@hHaN Q"rfᝬ!oŤy{^1/o>].|dNSM{?uM[rẀj\9[n` ]RQ;3<”ݰYGӃêDm6&S(;UuRV ,Fv pOJ6msodumper/node.pyUTpRux PK7(DQ*BJٙmsodumper/xlsmodel.pyUTlRux PKlC! Scmsodumper/xlsparser.pyUT:Rux PKnB)D8p6msodumper/xlsrecord.pyUTMRux PK;d(D?R{gbYmsodumper/xlsstream.pyUT7Rux PKlCoM-ymsodumper/formula.pyUT:Rux PKlCv*Fmsodumper/msodraw.pyUT:Rux PKlC^ ;msodumper/msocrypto.pyUT:Rux PK lCmsodumper/__init__.pyUT:Rux PKM8recoll-1.21.5/filters/rclimg0000755000175000017500000001246312602163571015246 0ustar dockesdockes#! /usr/bin/perl -w # @(#$Id: rclimg,v 1.5 2008-10-09 06:41:21 dockes Exp $ (C) 2007 Cedric Scott ####################################################### # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ###################################################### # # Extract image tags with exiftool and convert the data to html for # recoll indexing. # # # maps image file tags to xapian tags # $tagMap = { 'subject' => 'subject', 'title' => 'title', 'headline' => 'title', 'caption' => 'caption', 'caption-abstract' => 'caption', 'author' => 'author', 'creator' => 'creator', 'from' => 'from', 'keywords' => 'keywords', 'keyword' => 'keyword', 'tag' => 'tag', }; # set to non-zero if tags which map to xapian tags are to output # in the body as well as the header # $headAndBody = 1; # xapianTag # returns a xapian tag to be used for this tag # sub xapianTag { my $imgtag = shift; while ( ( $tagre, $xapiantag) = each %{$tagMap} ) { return $xapiantag if $imgtag =~ /^$tagre$/i; } return undef; } sub imgTagsToHtml { my $imageFile = shift; my $output = ""; $imageFile = '-' if $imageFile eq ''; unless ( open(IMGF, $imageFile) ) { print STDERR "$0: can't open file $imageFile\n"; return $output; # file doesn't exist or can't be read } $info = ImageInfo(\*IMGF); return $output unless $info; $fields = []; $other = []; $titleHtmlTag = ""; foreach $tagname ( sort keys %{$info} ) { $xapiantag = xapianTag($tagname); if (defined $xapiantag ) { push @{$fields}, [ $xapiantag, $info->{$tagname} ]; if ($xapiantag eq 'title') { $titleHtmlTag = "$info->{$tagname}"; } push @{$other}, [ $tagname, $info->{$tagname} ] if $headAndBody; } else { push @{$other}, [ $tagname, $info->{$tagname} ]; } } $output = "\n\n$titleHtmlTag\n" . "\n"; foreach $tagpair ( @{$fields} ) { ($tagname, $value) = @{$tagpair}; $output = $output . "\n"; } $output = $output . "\n"; foreach $tagpair (@{$other} ) { ($tagname, $value) = @{$tagpair}; $output = $output . sprintf("%30s : %s
\n", $tagname, $value); } $output = $output . "\n\n"; return $output; } #################################################################### # Code for the rclexecm filter<->indexer protocol from here # Get one line from stdin (from recollindex), exit on eof sub readlineorexit { my $s = ; unless ($s) { # print STDERR "RCLIMG: EOF\n"; exit 0; } return $s } # Read one named parameter sub readparam { my $s = readlineorexit(); if ($s eq "\n") { return ("",""); } my @l = split(' ', $s); if (scalar(@l) != 2) { print STDERR "RCLIMG: bad line:", $s; exit 1; } my $paramname = lc $l[0]; my $paramsize = $l[1]; if ($paramsize > 0) { my $n = read STDIN, $paramdata, $paramsize; if ($n != $paramsize) { print STDERR "RCLIMG: [$paramname] expected $paramsize, got $n\n"; exit 1; } } # print STDERR "RCLIMG: [$paramname] $paramsize bytes: [$paramdata]\n"; return ($paramname, $paramdata); } # # Main program starts here. Talks the rclexecm protocol # # JFD: replaced the "use" call with a runtime load with error checking, # for compat with the missing filter detection code. #use Image::ExifTool qw(:Public); eval {require Image::ExifTool; Image::ExifTool->import(qw(:Public));}; if ($@) { print "RECFILTERROR HELPERNOTFOUND Perl::Image::ExifTool\n"; exit(1); } #print STDERR "RCLIMG: Starting\n"; $| = 1; while (1) { # print STDERR "RCLIMG: waiting for command\n"; my %params = (); # Read at most 10 parameters (we only actually use one), stop at empty line for($i = 1; $i < 10; $i++) { my ($name, $value) = readparam; if ($name eq "") { last; } $params{$name} = $value; } unless (defined $params{"filename:"}) { print STDERR "RCLIMG: no filename ??\n"; # Recoll is requesting next subdocument (it shouldn't cause we # returned eofnext last time), but we have none, just say so: print "Eofnow:0\nDocument: 0\n\n"; next; } print "Mimetype: 9\ntext/html"; my $data = imgTagsToHtml($params{"filename:"}); my $l = length($data); print "Document: $l\n"; # print STDERR "RCLIMG: writing $l bytes of data\n"; print $data; # Say we have no further documents for this file print "Eofnext: 0\n"; # End of output parameters: print empty line print "\n"; # print STDERR "RCLIMG: done writing data\n"; } #print STDERR "RCLIMG: Exiting\n"; recoll-1.21.5/filters/rcldvi0000755000175000017500000000733012602163537015253 0ustar dockesdockes#!/bin/sh # @(#$Id: rcldvi,v 1.7 2008-10-08 16:15:22 dockes Exp $ (C) 2006 J.F.Dockes # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # Extract text from a dvi file by either executing dvitops and rclps # or using catdvi. dvitops has given better results during tests, and is # chosen first if available, but the dvitops/rclps combination is much # slower than catdvi # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rcldvi" filetype=dvi #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE # Find rclps. Note: this only works because we are always executed with a # full path rclps=`dirname $0`/rclps decoder="" if iscmd dvips -a iscmd pstotext ; then decoder=dvips elif iscmd catdvi ; then decoder=catdvi fi if test X$decoder = X ; then senderror HELPERNOTFOUND dvips or catdvi fi if test X$decoder = Xdvips ; then $decoder -f < "$infile" 2> /dev/null | $rclps - exit $? fi # The strange 'BEGIN' setup is to prevent 'file' from thinking this file # is an awk program $decoder "$infile" | awk 'BEGIN'\ ' { printf("\n") printf("\n") printf("\n

"); cont = "" } { $0 = cont $0 cont = "" if ($0 == "\f") { print "

\n
\n\f

" next } else if ($0 ~ /-$/) { match($0, "[ \t][^ \t]+$") line = substr($0, 0, RSTART) cont = substr($0, RSTART, RLENGTH) $0 = line gsub("-", "", cont) } gsub(/&/, "\\&", $0) gsub(//, "\\>", $0) print $0 "
" } END { print "

" }' recoll-1.21.5/filters/rcllatinstops.zip0000644000175000017500000003062112602163537017466 0ustar dockesdockesPKҝ#@% 6bulgarian_iso-8859-5.txtUT  MO MOux 5[ E2b2N1laUҕB*F,#[UnZ7JA+rӮhhie}-: 0_*Avm2:G(gƌ-A,R;jIY3as"l!w!}@b&~jYdVEjn80h%v ݚ:FG\ tbwoݣ"&HE׊:lWoI*$5_)!B7 3#؝Vm$ߎx5S$bMMR!SlJM7ZÑx19>]7i Yة-țy^ߒ%CLB_np{+9I.u5# šю\ pCZ(R?Raqqrl(]Jď_ؒ,bId[FX 4*"כ Q6[$^gI -{}9=)O@v`n29Xtf*|G"} =-A?U%>tP"Eņ ])`@81@!_A]؞YUpRA͛MƅÄ^r1K[>)%U=cӪD?5˿1enPKٝ#@MVM6bulgarian_windows-1251.txtUT MOMOux 5 s1{CmDM>03 "|a2*U]~$(Ա-w1zVעÐ$h,csrF k"5`m1c_>7|._W{rBw $f跨&ܑuIf5\]dQxYbpЭcttM-zf=-b;j(1T$qq~e䌬BO\B*t03riզKB툧Q>ՁI*Ԕ!5:5~Ȧt3j8y'ص}3ۀeڂW-Y>`;$ǿRi*ZW=`_u}>"])6)džҥDKJL-r+dIe 9MJ8>-2)r)!n#[{E:|]?QY!;bzYw[ݓ \]`W 6&#.5?ͿOh6wI *ҷs#^<_ysH u/^Tl5 &jpԋ# ؅홟U '$8ڼd\8L%+퓪r*YR3v8JTSˍSPK>>- czech_iso-8859-2.txtUT dEMIOux 5RK0 -Ě AnƆ[N;?Ue $x(.6'tog{c),ry5Ӝ.3M$Xj2Ѳ<x3k;-kNV>xeg1KāI}A6L`UƳI1(K[OǔA7~(Sd@!z@eJFv3_*Z'H7K7cpsٵqR1# ^p%ZOJ4"6gVpubyXqq(Om,<{ykMy}%f]:nb:\Ң($lB8 rmB!&K ~4y@"Eh+B q\Tx#DְOVĿh|`>"ҔPK>>-Idanish_cp1252.txtUT EMIOux -PA!>qrsdutch_cp1252.txtUT 1EMIOux Q 0D;,4l AQ 7%Wy8IHEaEը@;"CQX:E剦d@n Fc2w*y1RRvdPKd>>english_cp1252.txtUT [EMIOux ER[!^Ns.gG1~7@H#=u'Fh.Ճ79+ŵ@\vqCrӆ O ̺cٕ(O]6ĒB: y@ނ+u#R&=4Mr:n@bwxG[ItC?DtcG1~6at\~AnM.l6@fЂٓ #7N)uʬ3:R#pY ^6YCl,3b3wńс1Z?ߊc?]#p뤢"ڡAyfrPKY>>!Ybfinnish_cp1252.txtUT EMIOux UX[(޺F2KEb{+"H zis}-,'7!\UȃX ?Z"Ǿ'3F*oݯe[[EVIBȱȯT#=*Ӝ"syt:VX)v0y[ޚRZe)iF/wAvˋXr RXgOw˓zv6~҆yApC2Ȇ&[cZ⍕y+m0@8I\qdk᧲=&07*D @R+SG*aM1ڌB '1J[ƀ}37A\pHM?Z[-n0Lcȯ9b,1ba[b CktwT#2 cr(12 #YF1hvVRݤޱL˲`7A8Jp* E g Lʧ\,K ʥyL.K]xdz,If#B'Ik USiG4M&jx_PrUL$_FHvĜKU'׻ 9N)9/&} _ KjP/QVr|9V…Dcӈ6-}D#b];JΙSΰڲ5rRҮFDZ{. I vPT7;M-Bk9xۍlw }4oD֏׎&A'avfwic̈Qa Ѿ;Yqg scg((OSG ť6]NCq5B|:w5e+weǭn?tE0F&e?U*d#E]Z ي,jNWRDϾ<~B޿!XcTx(l8Tߍ* Q2*fnH6Bl<UROZA)6f~WE25p20Gփփ×VjbVUo61(yT7hFׁ P JR`{feWˮ]C?~[s0tC<}gpk}ڿkRpSf#)p+dbvT;i5@$;)۱05Ӗe``S9HCrV"-g56ܖx+dEW e|)(7͠_mI`~+p-q!"rt3>`։@ej4ӭ_uD MBY[~I K7ں`D t#ٶ_fq P[`Z|B[Kud܈?}  _\ 8|IăGy*MQJ-1KY8=eyH:Qs!} &lr°t<ȗv64'#&̙.û8r'U[2~.0+fpz5 cWJ#Jā!K1^), z2OE雑 Cߚ4M'0e7U**"6iwgCpL}qUo}Ra<& ROTXjSq7T)u!}v<>>&l0S;ĝ6޸z#0fAslH12m2=oӵAi s6[g2jt.^\"N9]K13;H KCs_[ A#,%qPQ@v-9.Ȝ ?'5lUT° ΌkX݊$L<[Ɓ߹:B;F$=y PؑlC@Zc`rc(ȩ[+y2.>A2 *:N$W2w Ãڼs pwv10RFPKL>>T:8german_cp1252.txtUT EMIOux %An E)z5R<`$ 4[tE7R1cH:tH:]RdO0C`NTX t؇ GA(9+S1CrUQ}ܒ][ƎD u =9uӶPHUMdTTeTjc$OhA ?S^,ן)- hH#q;FĐ`icᔈ/#LX@لW:~G¿ aa2}0[ f!/5bB9uӶL~l B{k!7PKܛ#@]hzgreek_iso-8859-7.txtUT _IOIOux  C#h+T8DRg[F8NRwǍ`~3"Iz6N*?.~U\ yr9p[%vHDN-XRV[GqЇͯnC1.OܚMO+OrWpg꾍DSd#0PKŬ>>Ռdhungarian_iso-8859-2.txtUT 2EMJOux  0 k^YD ֥p6_N/,T壕5^֓>dCiitalian_cp1252.txtUT FEMIOux MRK0[фߢ+8 iXQBnhG8^FeL/[HyXc&"<^.{"̻6m ×q'1]N N 28me;'[<=6` .\>0R/qDzвJ4+sA`Vf\)meFߘ;Eb89A$&j\چMLXDTӽaw`Nٰc_j}'6`~4ttPDYY8ܕ4}(!2ޤ=fCdʠ}Hi3!1:π)<t%PK{>>=e9Bnorwegian_cp1252.txtUT EMIOux Qn D;Ո` %0W^+yƉ H -xlD-圴1bj4X0#~+Qm(5,9l'H7G#g{SEף{8l*O7rʏE{h J> U<LJ{Ri\P8ZIg>2opolish_iso-8859-2.txtUT  EMIOux %A DS4u:Dn},f;eFr=ܲ=! 'o?„76ePiV/{H~6cm=S]q`\,n|0=i]NFZhkmwtˁ 6nN}PK˪>>yWQportuguese_cp1252.txtUT ~EMIOux =RA0!drussian_cp1251.txtUT NMIOux -뮣0 ?`{ !rV~iWƗحZW2˓RУì m62%`ŮҬ^KSܳL+͵_A~k@KEmKee 4w tDC&ޔx˷d鉭s¢H7?5gmIU G9Eb5dR\_:mA@j [ÀϠ!ݵ\v}`LRZjl'VVt&Wy12DŽȯ F#ehӉC5HPäYmpQl.ӹy^: >jgs9^0QɿEL |?ovGbQc(] YQHSBLBT2*XPK>>!ʤtspanish_cp1252.txtUT  EMWKOux USQ {53lE͈jWx_ڪMFQ5@.-I[y"VEǿBe?.$P}Kj!J4S]'_;Zd"6GmH_vȌ 61 ֆlXCødč"ð[-!pl!gTu2oucX >au*>|t[&Kz*Bd eˮWdCgƫTabW` +l {j.Ȇ`mw\4$(߯uc}Ps k.*gjn귤ZjN K6z+nX0)G*A:5C+Z,9\ 8.@BcO0 'cc6Bh<8Q0i89V /˄4 T.w)MoKT8DtO6tWQPK>>γ)C swedish_cp1252.txtUT pEMIOux M[r D]&9-|e!@H<|m!MK(ioP zn9}6l쮶\Qou'Jq}\Tm hD1벿ɿ4 IPV:0*?H|阽Y$|D"b%*h 5,Oұܸ dԘgf2lE% DT1dtx]EU*JAhy B I~D`/E2Y8m{E ׽LޚHbr5b^ůU.Vw4pԮ2a ZՈZ@8ݰ7 ܙ1FGѿ%(nc/ s=H|4ݎP'(`/.wjLZgKVH/P5X&ŕ4cMMopө77sts__JNzC!ba3ڮ$A YrR܇Wk[57:XMq` :k̒fsmlɨm$+Ȇͭq1 b"V*w qPiF1moGܾ?gBȗJghefVl|DdCڛH9No9]mDT3Spۖe&ۋxķY۸oSyuq-*r3`q'1tl`XVFݟ#.S?D95KCgVU&MJPT'BvuvK?& Y2:N/Mu$Ar;X ո i%\C-+"b2ATe{l>l 3QӮW+%%ft8kJ%aB*xX s\Ŧ}9ԓ(@TW.;Ы⥩앐҄3 >- czech_iso-8859-2.txtUTdEMux PK>>-Idanish_cp1252.txtUTEMux PK+>>qrsdutch_cp1252.txtUT1EMux PKd>> english_cp1252.txtUT[EMux PKY>>!Yb finnish_cp1252.txtUTEMux PK.;%@ gaP french_cp1252.txtUTWBOux PKL>>T:8german_cp1252.txtUTEMux PKܛ#@]hzOgreek_iso-8859-7.txtUT_IOux PKŬ>>ՌdFhungarian_iso-8859-2.txtUT2EMux PK%>>dCiitalian_cp1252.txtUTFEMux PK{>>=e9Bnorwegian_cp1252.txtUTEMux PK>>2o8polish_iso-8859-2.txtUT EMux PK˪>>yWQportuguese_cp1252.txtUT~EMux PKF>!d russian_cp1251.txtUTNMux PK>>!ʤt"spanish_cp1252.txtUT EMux PK>>γ)C %swedish_cp1252.txtUTpEMux PK2#@e;i#La)turkish_iso-8859-9.txtUT?Oux PK*recoll-1.21.5/filters/rcltext0000755000175000017500000000443112602163537015454 0ustar dockesdockes#!/bin/sh # @(#$Id: rcltext,v 1.1 2008-09-12 11:30:03 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Wrap generic text (ie: program text) in html # Assumes ascii or iso-8859-1 #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rcltext" filetype=text #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds sed echo '
'

sed -e 's/\&/\&/g' -e 's/'
recoll-1.21.5/filters/xls-dump.py0000755000175000017500000002077412602163537016177 0ustar  dockesdockes#!/usr/bin/env python
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

import sys, os.path, optparse
sys.path.append(sys.path[0]+"/msodump.zip")

from msodumper import ole, xlsstream, globals, node, xlsmodel, olestream
from msodumper import xlsparser, msocrypto

from msodumper.globals import error

def equalsName (name, array):
    if len(name) != len(array):
        return False

    for i in xrange(0, len(name)):
        if ord(name[i]) != array[i]:
            return False

    return True

def isOleStream (dirname):
    """Determine whether or not a stream is an OLE stream.

Accodring to the spec, an OLE stream is always named '\1Ole'."""

    name = [0x01, 0x4F, 0x6C, 0x65] # 0x01, 'Ole'
    return equalsName(dirname, name)

def isCompObjStream (dirname):
    name = [0x01, 0x43, 0x6F, 0x6D, 0x70, 0x4F, 0x62, 0x6A] # 0x01, 'CompObj'
    return equalsName(dirname, name)

class XLDumper(object):

    def __init__ (self, filepath, params):
        self.filepath = filepath
        self.params = params
        self.strm = None
        self.strmData = None

    def __printDirHeader (self, direntry, byteLen):
        dirname = direntry.Name
        dirname = globals.encodeName(dirname)
        print("")
        print("="*globals.OutputWidth)
        if direntry.isStorage():
            print("%s (storage)"%dirname)
        else:
            print("%s (stream, size: %d bytes)"%(dirname, byteLen))
        print("-"*globals.OutputWidth)

    def __parseFile (self):
        file = open(self.filepath, 'rb')
        self.strmData = xlsstream.StreamData()
        self.strm = xlsstream.XLStream(file.read(), self.params, self.strmData)
        file.close()

    def dumpXML (self):
        self.__parseFile()
        dirs = self.strm.getDirectoryEntries()
        docroot = node.Root()
        root = docroot.appendElement('xls-dump')

        for d in dirs:
            if d.Name != "Workbook":
                # for now, we only dump the Workbook directory stream.
                continue

            dirstrm = self.strm.getDirectoryStream(d)
            data = self.__readSubStreamXML(dirstrm)
            self.__dumpDataAsXML(data, root)
        node.prettyPrint(sys.stdout, docroot, utf8 = self.params.utf8)

    def dumpCanonicalXML (self):
        try:
            self.__parseFile()
            docroot = node.Root()
            root = docroot.appendElement('xls-dump')

            dirEntries = self.strm.getDirectoryEntries()
            for entry in dirEntries:
                dirname = entry.Name
                if dirname != "Workbook":
                    # for now, we only dump the Workbook directory stream.
                    continue
                
                dirstrm = self.strm.getDirectoryStream(entry)
                wbmodel = self.__buildWorkbookModel(dirstrm)
                wbmodel.encrypted = self.strmData.encrypted
                root.appendChild(wbmodel.createDOM())
                
                node.prettyPrint(sys.stdout, docroot, utf8 = self.params.utf8)

        except Exception as err:
            print >> sys.stderr, "xls-dump.py: error: %s" % err
            sys.exit(1)

    def dump (self):
        self.__parseFile()
        self.strm.printStreamInfo()
        self.strm.printHeader()
        self.strm.printMSAT()
        self.strm.printSAT()
        self.strm.printSSAT()
        self.strm.printDirectory()
        dirEntries = self.strm.getDirectoryEntries()
        for entry in dirEntries:
            dirname = entry.Name
            if len(dirname) == 0:
                continue

            dirstrm = self.strm.getDirectoryStream(entry)
            self.__printDirHeader(entry, len(dirstrm.bytes))
            if entry.isStorage():
                continue

            elif dirname == "Workbook":
                success = True
                while success:
                    success = self.__readSubStream(dirstrm)

            elif dirname == "Revision Log":
                dirstrm.type = xlsstream.DirType.RevisionLog
                self.__readSubStream(dirstrm)

            elif dirname == "EncryptionInfo":
                globals.dumpBytes(dirstrm.bytes, 512)
                print("-"*globals.OutputWidth)
                info = msocrypto.EncryptionInfo(dirstrm.bytes)
                info.read()
                info.output()

            elif self.strmData.isPivotCacheStream(dirname):
                dirstrm.type = xlsstream.DirType.PivotTableCache
                self.__readSubStream(dirstrm)
            elif isOleStream(dirname):
                self.__readOleStream(dirstrm)
            elif isCompObjStream(dirname):
                self.__readCompObjStream(dirstrm)
            else:
                globals.dumpBytes(dirstrm.bytes, 512)

    def __readSubStream (self, strm):
        try:
            # read bytes from BOF to EOF.
            header = 0x0000
            while header != 0x000A:
                header = strm.readRecord()
            return True
        except xlsstream.EndOfStream:
            return False

    def __readOleStream (self, dirstrm):
        strm = olestream.OLEStream(dirstrm.bytes)
        strm.read()

    def __readCompObjStream (self, dirstrm):
        try:
            strm = olestream.CompObjStream(dirstrm.bytes)
            strm.read()
        except olestream.CompObjStreamError:
            globals.error("failed to parse CompObj stream.\n")

    def __dumpDataAsXML(self, data, root):
        if isinstance(data, tuple):
            newRoot = root.appendElement(data[0])
            if isinstance(data[1], dict): # attrs
                for key,val in data[1].iteritems():
                    newRoot.setAttr(key, val)
                if len(data) > 2: # data has a list of children
                    self.__dumpDataAsXML(data[2], newRoot)
            else:
                self.__dumpDataAsXML(data[1], newRoot)
        elif isinstance(data, list):
            for x in data:
                self.__dumpDataAsXML(x, root)
        else:
            pass # we're skipping all unknown elems

    def __readSubStreamXML (self, strm):
        handlers = []
        try:
            while True:
                handler = strm.getNextRecordHandler()
                handlers.append(handler)
        except xlsstream.EndOfStream:
            pass
        parser = xlsparser.XlsParser(handlers)
        return parser.dumpData()

    def __buildWorkbookModel (self, strm):
        model = xlsmodel.Workbook()
        try:
            while True:
                strm.fillModel(model)
        except xlsstream.EndOfStream:
            pass

        return model

def main ():
    parser = optparse.OptionParser()
    parser.add_option("-d", "--debug", action="store_true", dest="debug", default=False,
        help="Turn on debug mode")
    parser.add_option("--show-sector-chain", action="store_true", dest="show_sector_chain", default=False,
        help="Show sector chain information at the start of the output.")
    parser.add_option("--show-stream-pos", action="store_true", dest="show_stream_pos", default=False,
        help="Show the position of each record relative to the stream.")
    parser.add_option("--dump-mode", dest="dump_mode", default="flat", metavar="MODE",
        help="Specify the dump mode.  Possible values are: 'flat', 'xml', or 'canonical-xml'.  The default value is 'flat'.")
    parser.add_option("--catch", action="store_true", dest="catch_exceptions", default=False,
        help="Catch exceptions and try to continue.")
    parser.add_option("--utf-8", action="store_true", dest="utf8", default=False,
        help="Output strings as UTF-8.")
    options, args = parser.parse_args()
    params = globals.params
    params.debug = options.debug
    params.showSectorChain = options.show_sector_chain
    params.showStreamPos = options.show_stream_pos
    params.catchExceptions = options.catch_exceptions
    params.utf8 = options.utf8
    
    if len(args) < 1:
        globals.error("takes at least one argument\n")
        parser.print_help()
        sys.exit(1)

    dumper = XLDumper(args[0], params)
    if options.dump_mode == 'flat':
        dumper.dump()
    elif options.dump_mode == 'xml':
        dumper.dumpXML()
    elif options.dump_mode == 'canonical-xml' or options.dump_mode == 'cxml':
        dumper.dumpCanonicalXML()
    else:
        error("unknown dump mode: '%s'\n"%options.dump_mode)
        parser.print_help()
        sys.exit(1)

if __name__ == '__main__':
    main()

# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab:
recoll-1.21.5/filters/recfiltcommon0000755000175000017500000000277612602163537016642 0ustar  dockesdockes
#RECFILTCOMMONCODE
##############################################################################
# !! Leave the previous line unmodified!! Code imported from the
# recfiltcommon file

# Utility code common to all shell filters. This could be sourced at run
# time, but it's slightly more efficient to include the code in the
# filters at build time (with a sed script).

# Describe error in a way that can be interpreted by our caller
senderror()
{
    echo RECFILTERROR $*
    # Also alert on stderr just in case
    echo ":2:$progname::: $*" 1>&2
    exit 1
}

iscmd()
{
    cmd=$1
    case $cmd in
    */*)
	if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;;
    *)
      oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs
      for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done
      return 1 ;;
    esac
}

checkcmds()
{
    for cmd in $*;do
      if iscmd $cmd 
      then 
        a=1
      else 
        senderror HELPERNOTFOUND $cmd
      fi
    done
}

# show help message
if test $# -ne 1 -o "$1" = "--help" 
then
  echo "Convert a $filetype file to HTML text for Recoll indexing."
  echo "Usage: $progname [infile]"
  exit 1
fi

infile="$1"

# check the input file existence (may be '-' for stdin)
if test "X$infile" != X- -a ! -f "$infile"
then
  senderror INPUTNOSUCHFILE "$infile"
fi

# protect access to our temp files and directories
umask 77

##############################################################################
# !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE
recoll-1.21.5/filters/rcldjvu0000755000175000017500000001111112602163537015431 0ustar  dockesdockes#!/bin/sh
# @(#$Id: rcldjvu,v 1.6 2008-10-08 08:27:34 dockes Exp $  (C) 2005 J.F.Dockes

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#================================================================
# Extract text from a djvu file by executing djvused and djvutxt
#
# We use djvused to extract a possible title, djvutxt for the text
#
# Of course this only means anything if the djvu document actually has
# a text layer !
#
# djvu utilities (04-2010) have a bug in which they try to interpret
# and convert file paths as character data, and fail miserably if the
# locale is not consistent with the actual encoding of the path (which
# could be arbitrary binary for all they know). We use a temporary
# symbolic link to get around this.
# 
#================================================================

progname="rcldjvu"
filetype=dejavu


#RECFILTCOMMONCODE
##############################################################################
# !! Leave the previous line unmodified!! Code imported from the
# recfiltcommon file

# Utility code common to all shell filters. This could be sourced at run
# time, but it's slightly more efficient to include the code in the
# filters at build time (with a sed script).

# Describe error in a way that can be interpreted by our caller
senderror()
{
    echo RECFILTERROR $*
    # Also alert on stderr just in case
    echo ":2:$progname::: $*" 1>&2
    exit 1
}

iscmd()
{
    cmd=$1
    case $cmd in
    */*)
	if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;;
    *)
      oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs
      for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done
      return 1 ;;
    esac
}

checkcmds()
{
    for cmd in $*;do
      if iscmd $cmd 
      then 
        a=1
      else 
        senderror HELPERNOTFOUND $cmd
      fi
    done
}

# show help message
if test $# -ne 1 -o "$1" = "--help" 
then
  echo "Convert a $filetype file to HTML text for Recoll indexing."
  echo "Usage: $progname [infile]"
  exit 1
fi

infile="$1"

# check the input file existence (may be '-' for stdin)
if test "X$infile" != X- -a ! -f "$infile"
then
  senderror INPUTNOSUCHFILE "$infile"
fi

# protect access to our temp files and directories
umask 77

##############################################################################
# !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE

checkcmds djvutxt djvused awk

# We need a temporary symlink to avoid path encoding issues
if test z"$RECOLL_TMPDIR" != z; then
   ttdir=$RECOLL_TMPDIR
elif test z"$TMPDIR" != z ; then
   ttdir=$TMPDIR
else
   ttdir=/tmp
fi
tmplink=$ttdir/rcldjvu_tmp$$.djvu
rm -f $tmplink
ln -s "$infile" $tmplink || exit 1

cleanup()
{
    rm -f $tmplink
}
    
trap cleanup EXIT HUP QUIT INT TERM

# Title: we try to extract it from the annotations. djvused outputs string
# in C/awk \-escaped notation. Awk can only process this in string
# constants, so we have a first awk pass to create an awk program to parse
# the string as a constant (...). This is not exactly robust or nice
title=`djvused "$tmplink" -e 'select 1;output-ant' | \
grep ' (title ' | sed -e 's/^.* (title //' -e 's/)$//' |\
awk '
{
      printf("BEGIN" " {s = %s; print s}\n", $0)
}' | awk -f -`


cat <

    $title
    


EOF

# The strange 'BEGIN' setup is to prevent 'file' from thinking this file
# is an awk program
djvutxt "$tmplink" | sed -e 's/[ 	][ 	]*$//' | \
awk 'BEGIN'\
' {
  cont = ""
}
{
    $0 = cont $0
    cont = ""

    if ($0 == "\f") {
       print "

\n
\n

" next } else if ($0 ~ /[-]$/) { # Break at last whitespace match($0, "[ \t][^ \t]+$") line = substr($0, 0, RSTART) cont = substr($0, RSTART, RLENGTH) $0 = line gsub("-", "", cont) } gsub(/&/, "\\&", $0) gsub(//, "\\>", $0) print $0 }' cat < EOF recoll-1.21.5/filters/rclinfo0000755000175000017500000001525712602163537015433 0ustar dockesdockes#!/usr/bin/env python # Read a file in GNU info format and output its nodes as subdocs, # interfacing with recoll execm import rclexecm import sys import os.path import subprocess # Prototype for the html document we're returning. Info files are # normally ascii. Set no charset, and let it be provided by the # environment if necessary # # Some info source docs contain charset info like: # @documentencoding ISO-2022-JP # But this seems to be absent from outputs. htmltemplate = ''' %s

   %s
   
''' # RclExecm interface class InfoExtractor: def __init__(self, em): self.file = "" self.contents = [] self.em = em def extractone(self, index): if index >= len(self.contents): return(False, "", "", True) nodename, docdata = self.contents[index] nodename = self.em.htmlescape(nodename) docdata = self.em.htmlescape(docdata) docdata = htmltemplate % (nodename, docdata) iseof = rclexecm.RclExecM.noteof if self.currentindex >= len(self.contents) -1: iseof = rclexecm.RclExecM.eofnext self.em.setmimetype("text/html") return (True, docdata, str(index), iseof) ###### File type handler api, used by rclexecm ----------> def openfile(self, params): self.file = params["filename:"] if not os.path.isfile(self.file): self.em.rclog("Openfile: %s is not a file" % self.file) return False cmd = "info --subnodes -o - -f " + self.file nullstream = open("/dev/null", 'w') try: infostream = subprocess.Popen(cmd, shell=True, bufsize=1, stderr=nullstream, stdout=subprocess.PIPE).stdout except Exception, e: # Consider this as permanently fatal. self.em.rclog("Openfile: exec info: %s" % str(e)) print "RECFILTERROR HELPERNOTFOUND info" sys.exit(1); self.currentindex = -1 self.contents = InfoSimpleSplitter().splitinfo(self.file, infostream) #self.em.rclog("openfile: Entry count: %d"%(len(self.contents))) return True # Extract specific node def getipath(self, params): try: index = int(params["ipath:"]) except: return (False, "", "", True) return self.extractone(index) # Extract next in list def getnext(self, params): if self.currentindex == -1: # Return "self" doc self.currentindex = 0 self.em.setmimetype('text/plain') if len(self.contents) == 0: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof return (True, "", "", eof) if self.currentindex >= len(self.contents): self.em.rclog("getnext: EOF hit") return (False, "", "", rclexecm.RclExecM.eofnow) else: ret= self.extractone(self.currentindex) self.currentindex += 1 return ret # Info file splitter class InfoSimpleSplitter: def splitinfo(self, filename, fin): gotblankline = 1 index = 0 listout = [] node_dict = {} node = "" infofile = os.path.basename(filename) nodename = "Unknown" for line in fin: # Top of node ? # It sometimes happens that info --subnodes produces a Node line # beginning with spaces (it's a bug probably, only seen it once) # Maybe we'd actually be better off directly interpreting the # info files if gotblankline and line.lstrip(" ").startswith("File: "): prevnodename = nodename line = line.rstrip("\n\r") pairs = line.split(",") up = "Top" nodename = str(index) try: for pair in pairs: name, value = pair.split(':') name = name.strip(" ") value = value.strip(" ") if name == "Node": nodename = value if name == "Up": up = value if name == "File": infofile = value except: print >> sys.stderr, "rclinfo: bad line in %s: [%s]\n" % \ (infofile, line) nodename = prevnodename node += line continue if node_dict.has_key(nodename): print >> sys.stderr, "Info file", filename, \ "Dup node: ", nodename node_dict[nodename] = up if index != 0: listout.append((prevnodename, node)) node = "" index += 1 if line.rstrip("\n\r") == '': gotblankline = 1 else: gotblankline = 0 node += line # File done, add last dangling node if node != "": listout.append((nodename, node)) # Compute node paths (concatenate "Up" values), to be used # as page titles. It's unfortunate that this will crash if # the info file tree is bad listout1 = [] for nodename, node in listout: title = "" loop = 0 error = 0 while nodename != "Top": title = nodename + " / " + title if node_dict.has_key(nodename): nodename = node_dict[nodename] else: print >> sys.stderr, \ "Infofile: node's Up does not exist: file %s, path %s, up [%s]" % \ (infofile, title, nodename) error = 1 break loop += 1 if loop > 50: print >> sys.stderr, "Infofile: bad tree (looping)", \ infofile error = 1 break if error: continue if title == "": title = infofile else: title = infofile + " / " + title title = title.rstrip(" / ") listout1.append((title, node)) return listout1 ##### Main program: either talk to the parent or execute test loop proto = rclexecm.RclExecM() extract = InfoExtractor(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rclzip0000755000175000017500000001312712602163537015274 0ustar dockesdockes#!/usr/bin/env python # Zip file filter for Recoll import os import fnmatch import rclexecm from zipfile import ZipFile try: from recoll import rclconfig hasrclconfig = True except: hasrclconfig = False # As a temporary measure, we also look for rclconfig as a bare # module. This is so that the intermediate releases of the filter can # ship and use rclconfig.py with the filter code if not hasrclconfig: try: import rclconfig hasrclconfig = True except: pass # Note about file names (python 2.6. 2.7, don't know about 3.) # # There is a bit in zip entries to indicate if the filename is encoded # as utf-8 or not. If the bit is set, zipfile decodes the file name # and stores it in the catalog as an unicode object. Else it uses a # binary string. # # When reading the file, the input file name is used directly as an # index into the catalog. # # When we send the file name data to the indexer, we have to serialize # it as byte string, we can't pass unicode objects to and fro. This # means that we have to test if the name is unicode. If it is, we send # the string encoded as utf-8. When reading, if the input is utf-8, we # turn it to unicode and use this to access the zip member, else we # use the binary string. # # In the case where an archive member name is a valid non-ascii utf-8 # string, but the flag is not set (which could probably happen if the # archiver did not try to detect utf-8 file names), this will fail, # because we'll convert back the utf-8 string to unicode and pass this # to zipfile, but an utf-8 string, not a unicode object is actually in # the catalog in this case, so the access will fail (will be seen at # preview or open time). This does not affect ascii file names because # the representation is the same anyway. # # To avoid this problem, we'd need to pass a separate bit of # information indicating that encoding was performed, not just rely on # the utf-8 validity test (ie have a 1st char switch), but this would be # incompatible with existing indexes. Instead we try both ways... # class ZipExtractor: def __init__(self, em): self.currentindex = 0 self.em = em def extractone(self, ipath): #self.em.rclog("extractone: [%s]" % ipath) docdata = "" try: info = self.zip.getinfo(ipath) # There could be a 4GB Iso in the zip. We have to set a limit if info.file_size > self.em.maxmembersize: self.em.rclog("extractone: entry %s size %d too big" % (ipath, info.file_size)) docdata = "" #raise BadZipfile() else: docdata = self.zip.read(ipath) ok = True except Exception, err: self.em.rclog("extractone: failed: [%s]" % err) ok = False iseof = rclexecm.RclExecM.noteof if self.currentindex >= len(self.zip.namelist()) -1: iseof = rclexecm.RclExecM.eofnext if isinstance(ipath, unicode): ipath = ipath.encode("utf-8") return (ok, docdata, ipath, iseof) ###### File type handler api, used by rclexecm ----------> def openfile(self, params): filename = params["filename:"] self.currentindex = -1 self.skiplist = [] if hasrclconfig: config = rclconfig.RclConfig() config.setKeyDir(os.path.dirname(filename)) skipped = config.getConfParam("zipSkippedNames") if skipped is not None: self.skiplist = skipped.split(" ") try: self.zip = ZipFile(filename) return True except Exception, err: self.em.rclog("openfile: failed: [%s]" % err) return False def getipath(self, params): ipath = params["ipath:"] ok, data, ipath, eof = self.extractone(ipath) if ok: return (ok, data, ipath, eof) # Not found. Maybe we need to decode the path? try: ipath = ipath.decode("utf-8") return self.extractone(ipath) except Exception, err: return (ok, data, ipath, eof) def getnext(self, params): if self.currentindex == -1: # Return "self" doc self.currentindex = 0 self.em.setmimetype('text/plain') if len(self.zip.namelist()) == 0: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof return (True, "", "", eof) if self.currentindex >= len(self.zip.namelist()): #self.em.rclog("getnext: EOF hit") return (False, "", "", rclexecm.RclExecM.eofnow) else: entryname = self.zip.namelist()[self.currentindex] if hasrclconfig and len(self.skiplist) != 0: while self.currentindex < len(self.zip.namelist()): entryname = self.zip.namelist()[self.currentindex] for pat in self.skiplist: if fnmatch.fnmatch(entryname, pat): entryname = None break if entryname is not None: break self.currentindex += 1 if entryname is None: return (False, "", "", rclexecm.RclExecM.eofnow) ret= self.extractone(entryname) self.currentindex += 1 return ret # Main program: create protocol handler and extractor and run them proto = rclexecm.RclExecM() extract = ZipExtractor(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rcllatinclass.py0000755000175000017500000001063712602163571017257 0ustar dockesdockes#!/usr/bin/env python """Try to guess a text's language and character set by checking how it matches lists of common words. This is not a primary method of detection because it's slow and unreliable, but it may be a help in discrimating, for exemple, before european languages using relatively close variations of iso-8859. This is used in association with a zip file containing a number of stopwords list: rcllatinstops.zip As a note, I am looking for a good iso-8859-7 stop words list for greek, the only ones I found were utf-8 and there are errors when transcoding to iso-8859-7. I guess that there is something about Greek accents that I don't know and would enable fixing this (some kind of simplification allowing transliteration from utf-8 to iso-8859-7). An exemple of difficulty is the small letter epsilon with dasia (in unicode but not iso). Can this be replaced by either epsilon or epsilon with acute accent ? """ import sys import string import glob import os import os.path from zipfile import ZipFile class European8859TextClassifier: def __init__(self, langzip=""): """langzip contains text files. Each text file is named like lang_code.txt (ie: french_cp1252.txt) and contains an encoded stop word list for the language""" if langzip == "": langzip = os.path.join(os.path.dirname(__file__), 'rcllatinstops.zip') self.readlanguages(langzip) # Table to translate from punctuation to spaces self.punct = '''*?[].@+-,#_$%&={};.,:!"''' + "'\n\r" spaces = len(self.punct) * " " self.spacetable = string.maketrans(self.punct, spaces) def readlanguages(self, langzip): """Extract the stop words lists from the zip file. We build a merge dictionary from the lists. The keys are the words from all the files. The values are a list of the (lang,code) origin(s) for the each word. """ zip = ZipFile(langzip) langfiles = zip.namelist() self.allwords = {} for fn in langfiles: langcode = os.path.basename(fn) langcode = os.path.splitext(langcode)[0] (lang,code) = langcode.split('_') text = zip.read(fn) words = text.split() for word in words: if self.allwords.has_key(word): self.allwords[word].append((lang, code)) else: self.allwords[word] = [(lang, code)] def classify(self, rawtext): # Note: we can't use an re-based method to split the data because it # should be considered binary, not text. # Limit to reasonable size. if len(rawtext) > 10000: i = rawtext.find(" ", 9000) if i == -1: i = 9000 rawtext = rawtext[0:i] # Remove punctuation rawtext = rawtext.translate(self.spacetable) # Make of list of all text words, order it by frequency, we only # use the ntest most frequent words. ntest = 20 words = rawtext.split() dict = {} for w in words: dict[w] = dict.get(w, 0) + 1 lfreq = [a[0] for a in sorted(dict.iteritems(), \ key=lambda entry: entry[1], reverse=True)[0:ntest]] #print lfreq # Build a dict (lang,code)->matchcount langstats = {} for w in lfreq: lcl = self.allwords.get(w, []) for lc in lcl: langstats[lc] = langstats.get(lc, 0) + 1 # Get a list of (lang,code) sorted by match count lcfreq = sorted(langstats.iteritems(), \ key=lambda entry: entry[1], reverse=True) #print lcfreq[0:3] if len(lcfreq) != 0: lc,maxcount = lcfreq[0] maxlang = lc[0] maxcode = lc[1] else: maxcount = 0 # If the match is too bad, default to most common. Maybe we should # generate an error instead, but the caller can look at the count # anyway. if maxcount == 0: maxlang,maxcode = ('english', 'cp1252') return (maxlang, maxcode, maxcount) if __name__ == "__main__": f = open(sys.argv[1]) rawtext = f.read() f.close() classifier = European8859TextClassifier() lang,code,count = classifier.classify(rawtext) if count > 0: print "%s %s %d" % (code, lang, count) else: print "UNKNOWN UNKNOWN 0" recoll-1.21.5/filters/rclabw0000755000175000017500000001072612602163537015245 0ustar dockesdockes#!/bin/sh # @(#$Id: rclabw,v 1.3 2008-10-08 08:27:34 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Extract text from an abiword file #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclabw" filetype=abiword #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds xsltproc xsltproc --nonet --novalid - "$infile" <

author keywords keywords abstract <xsl:value-of select="."/>
EOF # exit normally exit 0 recoll-1.21.5/filters/rclpurple0000755000175000017500000001115212602163537015775 0ustar dockesdockes#!/bin/sh # @(#$Id: rclpurple,v 1.1 2008-09-15 08:00:17 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Extract text and other information from gaim logs # #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclpurple" filetype="purple/pidgin log" #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds awk awk ' # First line: parse from, to , output html header NR == 1 { if (NF != 14 && NF != 13 && NF != 9) { printf("Bad format: (NF %d) %s\n", NF, $0) exit 1 } to = $3 if (NF == 14 || NF == 13) { mon_i["Jan"] = "01" mon_i["Feb"] = "02" mon_i["Mar"] = "03" mon_i["Apr"] = "04" mon_i["May"] = "05" mon_i["Jun"] = "06" mon_i["Jul"] = "07" mon_i["Aug"] = "08" mon_i["Sep"] = "09" mon_i["Oct"] = "10" mon_i["Nov"] = "11" mon_i["Dec"] = "12" date = $8 "-" mon_i[$7] "-" $6 "T" $9 if (NF == 14) { from = $13 } if (NF == 13) { from = $12 } } if (NF == 9) { from = $8 date = $5 } #printf("from [%s] to [%s] date [%s]\n", from, to, date) print "" print " " $0 "" # Yes there is no such thing as a "date" meta tag. This probably should # be http-equiv=last-modified or such, but recollindex understands "date" printf("\n", date) printf("\n", from) printf("\n", to) print "" print "
"

    if (ENVIRON["RECOLL_FILTER_FORPREVIEW"] == "yes") {
        printf("%s\n", $0)
    }

    # Remember who the main persons are. This is so that we output
    # them once while indexing the conversation body, to avoid giving
    # excessive weight by repeated indexing to the term.
    authors[from] = "yes"
    authors[to] = "yes"
    next
}

/^\([0-2][0-9]:[0-5][0-9]:[0-5][0-9]\)/ {
    # Conversation element 1st line. We strip from/to (except 1st
    # occurrence) and time when indexing.  Time is not interesting and
    # repeated from/to indexing would give excessive weight
    if (ENVIRON["RECOLL_FILTER_FORPREVIEW"] == "yes") {
        # Preview: output everything
        print $0
    } else {
	# Index: output only text, except each new author once. Unfortunately,
        # it is too late to add them to the "author" field.
	from = $2
	sub(":$", "", from);
	if (authors[from] == "") {
	   authors[from] = "yes"
	   printf("%s : ", from);
	}
        for (idx = 3; idx <= NR; idx++) {
            printf("%s ", $idx)
	}
	printf("\n")
    }
    next
}
# Conversation element continuation line: print it
{
    printf("%s\n", $0) 
}
END {
    printf("
\n") } ' < "$infile" # exit normally exit 0 recoll-1.21.5/filters/rclkar0000755000175000017500000002554412602163537015255 0ustar dockesdockes#!/usr/bin/env python # Read a .kar midi karaoke file and translate to recoll indexable format import rclexecm import sys import os.path import string import re import codecs try: import rcllatinclass except: pass try: import midi except: print "RECFILTERROR HELPERNOTFOUND python:midi" sys.exit(1); try: import chardet has_chardet = True except: has_chardet = False # Prototype for the html document we're returning htmltemplate = ''' %s %s ''' class KarTextExtractor: # Afaik, the only charset encodings with null bytes are variations on # utf-16 and utf-32 and iso relatives. A hopefully comprehensive # list follows, compiled from iconv and python values. This is used for # stripping garbage from some files. acceptnullencodings = \ set(('csucs4', 'csunicode', 'csunicode11', 'iso-10646-ucs-2', 'iso-10646-ucs-4', 'u16', 'u32', 'ucs-2', 'ucs-2-internal', 'ucs-2-swapped', 'ucs-2be', 'ucs-2le', 'ucs-4', 'ucs-4-internal', 'ucs-4-swapped', 'ucs-4be', 'ucs-4le', 'unicode-1-1', 'unicodebig', 'unicodelittle', 'utf-16', 'utf-16be', 'utf-16le', 'utf-32', 'utf-32be', 'utf-32le', 'utf16', 'utf32', 'utf_16', 'utf_16_be', 'utf_16_le', 'utf_32', 'utf_32_be', 'utf_32_le')) def __init__(self, em): self.em = em self.currentindex = 0 self.encoding = "" self.defaultencoding = "" self.hadnulls = False self.classifier = None # Compute the fallback encoding to use if we can't determine # one when processing the file. Based on the nls environment try: self.defaultencoding = sys.getfilesystemencoding() except: pass if self.defaultencoding is None: self.defaultencoding = sys.getdefaultencoding() if not self.defaultencoding or \ self.defaultencoding.lower().find('ascii') != -1: self.defaultencoding = 'cp1252' try: codecs.lookup(self.defaultencoding) except: self.defaultencoding = 'cp1252' def nulltrunc(self, data): '''Truncate data after 1st null byte. For messages with garbage after a null byte. Must not be done for utf-16/32 of course''' if not data: return data firstnull = data.find(chr(0)) if firstnull != -1: self.hadnulls = True data = data[0 : firstnull] return data def reencode(self, data): '''Decode from whatever encoding we think this file is using and reencode as UTF-8''' # self.em.rclog("Reencoding from [%s] to UTF-8" % self.encoding) if data: try: data = data.decode(self.encoding, 'ignore') except Exception, err: self.em.rclog("Decode failed: " + str(err)) return "" try: data = data.encode('utf-8') except Exception, err: self.em.rclog("Encode failed: " + str(err)) return "" data = self.em.htmlescape(data).replace("\n", "
\n") return data def encodingfromfilename(self, fn): '''Compute encoding from file name: some karaoke files have the encoding as part of the file name as 'some title (encoding).xxx'. This is not an established convention though, just one our users could use if there is trouble with guessing encodings''' rexp = r'\(([^\)]+)\)\.[a-zA-Z]+$' m = re.search(rexp, fn) if m: return m.group(1) else: return "" def chardet_detect(self, text): encodconf = chardet.detect(text) encoding = encodconf['encoding'] confidence = encodconf['confidence'] #self.em.rclog("Chardet returns %s %.2f" % (encoding,confidence)) # chardet is awfully bad at detecting 8bit european # encodings/languages and will mostly return iso-8859-2 for # everything, which is a bad default (iso-8859-1/cp1252 being # much more common). We use our own ad-hoc stopwords based # module to try and improve if encoding.lower() == 'iso-8859-2': if self.classifier is None: try: import __main__ dir = os.path.dirname(__main__.__file__) langszip = os.path.join(dir, 'rcllatinstops.zip') f = open(langszip) f.close() classifier = rcllatinclass.European8859TextClassifier(langszip) except: self.em.rclog("Can't build euroclassifier (missing stopwords zip?") return (encoding, confidence) try: lang,code,count = classifier.classify(text) #self.em.rclog("euclass lang/code/matchcount: %s %s %d" % \ # (lang, code, count)) if count > 0: confidence = 1.0 encoding = code except Exception, err: self.em.rclog("stopwords-based classifier failed: %s" % err) return (encoding, confidence) return (encoding, confidence) def extractone(self, params): '''Process one file''' docdata = "" ok = False if not params.has_key("filename:"): self.em.rclog("extractone: no mime or file name") return (ok, docdata, "", rclexecm.RclExecM.eofnow) filename = params["filename:"] # Character encoding from file name ? self.encoding = self.encodingfromfilename(filename) if self.encoding: try: codecs.lookup(self.encoding) except: self.encoding = "" # Mimetype not used for now if not params.has_key("mimetype:"): mimetype = 'audio/x-midi' else: mimetype = params["mimetype:"] # Read in and midi-decode the file try: stream = midi.read_midifile(filename) except Exception, err: self.em.rclog("extractone: midi extract failed: [%s]" % err) return (ok, docdata, "", rclexecm.RclExecM.eofnow) title = None author = None language = None lyrics = "" lyricsN = "" self.hadnulls = False for event in stream.iterevents(): edata = "" if isinstance(event, midi.TextMetaEvent): if not event.data: continue elif event.data[0] == '/' or event.data[0] == '\\': edata = "\n" + event.data[1:] elif event.data[0] == '[' or event.data[0] == ']': edata = event.data[1:] elif event.data[0] == '@': if len(event.data) == 1: continue else: if event.data[1] == 'I': edata = event.data[2:] + '\n' elif event.data[1] == 'L': language = self.nulltrunc(event.data[2:]) languageN = event.data[2:] elif event.data[1] == 'T': if title is None: title = self.nulltrunc(event.data[2:]) titleN = event.data[2:] elif author is None: author = self.nulltrunc(event.data[2:]) authorN = event.data[2:] else: edata = event.data elif isinstance(event, midi.LryricsEvent) or \ isinstance(event, midi.TrackNameEvent): space = "" if isinstance(event, midi.TrackNameEvent): nl = "\n" if not event.data: continue elif event.data[0] == '/' or event.data[0] == '\\': edata = "\n" + event.data[1:] + nl else: edata = event.data + nl lyrics += self.nulltrunc(edata) lyricsN += edata # Try to guess the encoding. First do it with the data # possibly containing nulls. If we get one of the accepted # nullbyte encodings, go with this, else repeat with the # de-nulled data # self.em.rclog("Lyrics length %d" % len(lyrics)) if self.encoding == "" and has_chardet: if self.hadnulls: (encoding, confidence) = self.chardet_detect(lyricsN) # self.em.rclog("With nulls: chardet: enc [%s], conf %.2f" % \ # (encoding, confidence)) if confidence > 0.6 and \ encoding.lower() in self.acceptnullencodings: self.encoding = encoding lyrics = lyricsN title = titleN author = authorN if self.encoding == "": (encoding, confidence) = self.chardet_detect(lyrics) #self.em.rclog("No nulls: chardet: enc [%s], conf %.2f" % \ # (encoding, confidence)) if confidence > 0.6: self.encoding = encoding if self.encoding == "": self.em.rclog("Encoding not guessed, defaulting to [%s]" % \ (self.defaultencoding,)) self.encoding = self.defaultencoding if title is None: title = "" if author is None: author = "" if language is None: language = "" title = self.reencode(title) author = self.reencode(author) lyrics = self.reencode(lyrics) self.em.setmimetype("text/html") docdata = htmltemplate % (title, author, language, lyrics) ok = True return (ok, docdata, "", rclexecm.RclExecM.eofnext) ###### File type handler api, used by rclexecm. Some stuff makes little # sense because we only have one doc per file. def openfile(self, params): self.currentindex = 0 return True def getipath(self, params): return self.extractone(params) def getnext(self, params): if self.currentindex >= 1: return (False, "", "", rclexecm.RclExecM.eofnow) else: ret= self.extractone(params) self.currentindex += 1 return ret proto = rclexecm.RclExecM() extract = KarTextExtractor(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rclman0000755000175000017500000000672512602163537015253 0ustar dockesdockes#!/bin/sh # @(#$Id: rclman,v 1.2 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Process a manual page with groff and output html # We'd like to use -Thtml, but this doesn't seem to be always available. # So we use -Tutf8 and postprocess this to remove the ^H overstriking # #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclman" filetype=man #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds groff # We need a temporary directory if test z"$RECOLL_TMPDIR" != z; then ttdir=$RECOLL_TMPDIR elif test z"$TMPDIR" != z ; then ttdir=$TMPDIR else ttdir=/tmp fi tmpdir=$ttdir/rclman_tmp$$ mkdir $tmpdir || exit 1 mkdir $tmpdir/rclmantmp || exit 1 cleanup() { # Note that we're using a constant part (rclmantmp), that hopefully # guarantees that we can't do big mistakes here. rm -rf $tmpdir/rclmantmp rmdir $tmpdir } trap cleanup EXIT HUP QUIT INT TERM # Note: the qt preview really likes to find an tag at the top echo '' # Filter out some unwanted data when indexing if test X$RECOLL_FILTER_FORPREVIEW = Xyes ; then (cd $tmpdir/rclmantmp; groff -man -Thtml) < "$infile" else # When indexing we try to avoid adding terms for the section headers, which # are unfortunately somewhat ill defined. We eliminate rather loosely # lines containing likely section header words preceded by a tag. (cd $tmpdir/rclmantmp; groff -man -Thtml) < "$infile" | \ egrep -v \ '>NAME|>SYNOPSIS|>DESCRIPTION|>EXIT|>OPTIONS|>DIAGNOSTICS|>SUPPORTED HARDWARE|>CONFIGURATION|>AUTHOR|>BUGS|>REPORTING BUGS|>KNOWN BUGS|>COPYRIGHT|>SEE ALSO|>HISTORY|>ENVIRONMENT|>FILES' fi exit 0 recoll-1.21.5/filters/rclopxml0000755000175000017500000001416012602163537015627 0ustar dockesdockes#!/bin/sh # @(#$Id: rclopxml,v 1.3 2008-10-08 08:27:34 dockes Exp $ (C) 2004 J.F.Dockes #================================================================ # Extract text from an openxml msword file (will be extended for spreadsheets) # TODO: Also process docProps/core.xml for attributes, and word/endnotes.xml #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname=rclopxml filetype=openxml #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds xsltproc unzip # We need a temporary directory if test z"$RECOLL_TMPDIR" != z; then ttdir=$RECOLL_TMPDIR elif test z"$TMPDIR" != z ; then ttdir=$TMPDIR else ttdir=/tmp fi tmpdir=$ttdir/rclopxml_tmp$$ mkdir $tmpdir || exit 1 mkdir $tmpdir/rclopxmltmp || exit 1 cleanup() { # Note that we're using a constant part (rclopxmltmp), that hopefully # guarantees that we can't do big mistakes here. rm -rf $tmpdir/rclopxmltmp rmdir $tmpdir } trap cleanup EXIT HUP QUIT INT TERM # Unzip the input file and change to the unzipped directory unzip -q -d $tmpdir/rclopxmltmp "$infile" cd $tmpdir/rclopxmltmp echo ' ' xsltproc --novalid --nonet - docProps/core.xml < author date EOF echo ' ' filename='' if test -f word/document.xml ; then filenames=word/document.xml tagmatch="w:p" xmlns_decls=' xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" ' elif test -f xl/sharedStrings.xml ; then filenames=xl/sharedStrings.xml tagmatch='x:t' xmlns_decls=' xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main" ' elif test -f ppt/slides/slide1.xml ; then filenames=`echo ppt/slides/slide*.xml` tagmatch='a:t' xmlns_decls=' xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" ' # I want to suppress text output for all except a:t, don't know how to do it # help ! At least get rid of these: moretemplates=' ' else # ?? exit 1 fi for filename in $filenames;do xsltproc --novalid --nonet - $filename <

$moretemplates
EOF done echo '' recoll-1.21.5/filters/rclokulnote0000755000175000017500000000577712602163537016346 0ustar dockesdockes#!/bin/sh # @(#$Id: rclsoff,v 1.12 2008-10-08 08:27:34 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Extract text from a gnumeric spreadsheet #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclgnumeric" filetype=gnumeric #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds xsltproc xsltproc --novalid --nonet - "$infile" < Okular notes about: <xsl:value-of select="/documentInfo/@url" />

EOF recoll-1.21.5/filters/rclchm0000755000175000017500000002762212602163537015246 0ustar dockesdockes#!/usr/bin/env python """Extract Html files from a Microsoft Compiled Html Help file (.chm) Needs at least python 2.2 for HTMLParser (chmlib needs 2.2 too)""" # Do we return individual chapters as html pages or concatenate everything? rclchm_catenate = 0 # Use special html type to allow for mimeconf/mimeview Open magic, # Or go the regular html way with text/html #rclchm_html_mtype = "text/x-chm-html" rclchm_html_mtype = "text/html" import sys import os import re import posixpath import urlparse import urllib if rclchm_catenate: import subprocess import rclexecm try: from chm import chm,chmlib except: print "RECFILTERROR HELPERNOTFOUND python:chm" sys.exit(1); try: from HTMLParser import HTMLParser except: print "RECFILTERROR HELPERNOTFOUND python:HTMLParser" sys.exit(1); # Small helper routines def getfile(chmfile, path): """Extract internal file text from chm object, given path""" res, ui = chmfile.ResolveObject(path) if res != chmlib.CHM_RESOLVE_SUCCESS: #print "ResolveObject failed", path return "" res, doc = chmfile.RetrieveObject(ui) if not res: print "RetrieveObject failed", path return "" return doc def peekfile(chmfile, path): """Check that path resolves in chm object""" res, ui = chmfile.ResolveObject(path) if res != chmlib.CHM_RESOLVE_SUCCESS: return False return True # CHM Topics tree handler class ChmTopicsParser(HTMLParser): """Parse the chm's Topic file which is basically a listing of internal nodes (html files mostly). Build a list of all nodes (parent.contents), which will then be used to walk and index the chm. Most nodes in the Topic file look like the following:
  • Maybe we should filter out non "text/sitemap" Objects, and maybe there are things of interest whose name is not Local, but for now, we just take all values for parameters named "Local" (with some filtering/massaging), until proven wrong """ def __init__(self, rclchm): HTMLParser.__init__(self) self.em = rclchm.em self.rclchm = rclchm def handle_starttag(self, tag, attrs): #self.em.rclog("Beginning of a %s tag" % tag) # If this is a param tag with name Local, we're interested in # the value which lists a file ref. Discard those with # # in them (references inside files) # Sometimes it seems that refs are like Vendor:filename::path, # we only keep the path, and only if the file matches if tag != 'param': return name = '' value = '' for (nm,val) in attrs: if nm == 'name': name = val if nm == 'value': value = val #self.em.rclog("Name [%s] value [%s]" %(name, value)) if name != 'Local' or value == '': return # value may be url-encoded. Decode it. If there are no % in there, will # do nothing value = urllib.unquote(value) localpath = "" ll = value.split(":") if len(ll) == 1: localpath = value elif len(ll) == 4 and ll[-1] and ll[-3]: #self.em.rclog("File: [%s] sfn [%s]" % ((ll[-3]), self.rclchm.sfn)) # We used to test against the simple file name, but this does # not work if the file is renamed. Just check that the internal # path resolves. Old: if ll[-3] == self.rclchm.sfn: localpath = ll[-1] if not peekfile(self.rclchm.chm, localpath): #self.em.rclog("SKIPPING %s" % ll[-3]) localpath = "" if len(localpath) != 0 and localpath.find("#") == -1: if localpath[0] != '/': localpath = "/" + localpath self.rclchm.contents.append(localpath) # Used when there is no Topics node. Walk the links tree class ChmWalker(HTMLParser): """Links tree walker. This recursively follows all internal links found in the tree from the top node given as input, and augments the contents list.""" def __init__(self, rclchm, path, contents): HTMLParser.__init__(self) self.rclchm = rclchm self.chm = rclchm.chm self.contents = contents self.path = posixpath.normpath(path) self.dir = posixpath.dirname(self.path) contents.append(self.path) def handle_starttag(self, tag, attrs): if tag != 'a': return href = '' for (nm,val) in attrs: if nm == 'href': href = val path = "" res = urlparse.urlparse(href) if (not res.scheme or res.scheme.lower == "ms-its"): path = res.path lpath = path.split(':') if len(lpath) == 3: # MS-ITS::somefile.chm:/some/path/file.htm ? As far as I # know this never happens because there was a runtime error # in this path path = lpath[2] if not peekfile(self.chm, path): path = "" elif len(lpath) == 1: path = lpath[0] else: path = "" if path: #print "got path", path, "me", self.path, "dir", self.dir if path[0] == "/": npath = posixpath.normpath(path) else: npath = posixpath.normpath(posixpath.join(self.dir, path)) if not npath in self.contents: #print("Going into [%s] paths [%s]\n" % #(npath,str(self.contents))) text = getfile(self.chm, npath) if text: try: newwalker = ChmWalker(self.rclchm, npath, self.contents) newwalker.feed(self.rclchm.fixencoding(text)) except: pass class rclCHM: """RclExecM slave worker for extracting all files from an Msoft chm file. We first extract the list of internal nodes, and them return them one by one. The ipath is the node path""" def __init__(self, em): self.contents = [] self.chm = chm.CHMFile() self.em = em if rclchm_catenate: self.em.setmimetype("text/plain") else: self.em.setmimetype(rclchm_html_mtype) expr = r'()' self.asciito1252re = re.compile(expr, re.IGNORECASE) expr = r'' self.findcharsetre = re.compile(expr, re.IGNORECASE) def extractone(self, path): """Extract one path-named internal file from the chm file""" #self.em.rclog("extractone: [%s]" % (path,)) iseof = rclexecm.RclExecM.noteof if self.currentindex >= len(self.contents) -1: iseof = rclexecm.RclExecM.eofnext res, ui = self.chm.ResolveObject(path) #self.em.rclog("extract: ResolveO: %d [%s]" % (res, ui)) if res != chmlib.CHM_RESOLVE_SUCCESS: return (False, "", path, iseof) # RetrieveObject() returns len,value res, doc = self.chm.RetrieveObject(ui) #self.em.rclog("extract: RetrieveObject: %d [%s]" % (res, doc)) if res > 0: doc = re.sub('''''', doc) self.em.setmimetype(rclchm_html_mtype) return (True, doc, path, iseof) return (False, "", path, iseof) def dumpall(self): alltxt="" for pth in self.contents: ret,doc,path,iseof = self.extractone(pth) if not ret: continue # Feed doc to lynx process = subprocess.Popen(["lynx", "-stdin", "-dump", "-nolist", "-display_charset=utf8", "-force_html"], stdin=subprocess.PIPE, stdout=subprocess.PIPE ) txt,err = process.communicate(doc) alltxt += txt return alltxt def fixencoding(self, text): """Fix encoding for supposedly html document. We do 2 things here: - Change any 'ASCII' charset decl to windows-1252 because windows people can't learn and we have to cope. - Decode the string to unicode if it's originally an str because that's what Python HTMLParser actually expects even if it does not really say so. See http://bugs.python.org/issue3932. """ # Memo. Charset decl example. Maybe we should also process the # HTML5 charset tag ? # if isinstance(text, str): # Fix an ascii charset decl to windows-1252 text = self.asciito1252re.sub(r"\1windows-1252\4", text, 1) # Convert to unicode according to charset decl m = self.findcharsetre.search(text) if m: text = text.decode(m.group(1)) return text def openfile(self, params): """Open the chm file and build the contents list by extracting and parsing the Topics object""" self.currentindex = -1 self.contents = [] filename = params["filename:"] if not self.chm.LoadCHM(filename): self.em.rclog("LoadCHM failed") return False #self.em.rclog("home [%s] topics [%s] title [%s]" % # (self.chm.home, self.chm.topics, self.chm.title)) self.topics = self.chm.GetTopicsTree() if self.topics: # Parse Topics file and extract list of internal nodes #self.em.rclog("Got topics"); tp = ChmTopicsParser(self) tp.feed(self.fixencoding(self.topics)) tp.close() else: # No topics. If there is a home, let's try to walk the tree #self.em.rclog("GetTopicsTree failed") if not self.chm.home: self.em.rclog("No topics and no home") return False home = self.chm.home if home[0] != '/': home = "/" + home text = getfile(self.chm, home) if not text: self.em.rclog("No topics and no home content") return False walker = ChmWalker(self, self.chm.home, self.contents) walker.feed(self.fixencoding(text)) walker.close() #self.em.rclog("Contents size %d" % len(self.contents)) uniq = set(self.contents) self.contents = list(uniq) return True def getipath(self, params): return self.extractone(params["ipath:"]) def getnext(self, params): if rclchm_catenate: alltxt = self.dumpall() if alltxt: return (True, alltxt, "", rclexecm.RclExecM.eofnext) else: return (False, "", "", rclexecm.RclExecM.eofnow) if self.currentindex == -1: # Return "self" doc self.currentindex = 0 self.em.setmimetype('text/plain') if len(self.contents) == 0: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof return (True, "", "", eof) if self.currentindex >= len(self.contents): return (False, "", "", rclexecm.RclExecM.eofnow) else: ret= self.extractone(self.contents[self.currentindex]) self.currentindex += 1 return ret proto = rclexecm.RclExecM() extract = rclCHM(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rcltex0000755000175000017500000000445012602163537015271 0ustar dockesdockes#!/bin/sh # @(#$Id: rcltex,v 1.2 2007-11-09 15:56:14 dockes Exp $ (C) 2004 J.F.Dockes #================================================================ # Translate TeX files for recoll. Uses either untex or detex to translate to html #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rcltex" filetype=TeX #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE if iscmd detex ; then checkcmds iconv CMD="detex -n -e ''" else checkcmds untex iconv CMD="untex -giso -a" fi # output the result cat <
    EOF
    
    $CMD "$infile" | \
       iconv -c -f iso-8859-1 -t utf-8 | \
       sed -e 's/'
    
    # exit normally
    exit 0
    recoll-1.21.5/filters/rclgnm0000755000175000017500000001146312602163537015254 0ustar  dockesdockes#!/bin/sh
    # @(#$Id: rclsoff,v 1.12 2008-10-08 08:27:34 dockes Exp $  (C) 2004 J.F.Dockes
    # Parts taken from Estraier:
    #================================================================
    # Estraier: a personal full-text search system
    # Copyright (C) 2003-2004 Mikio Hirabayashi
    #================================================================
    #================================================================
    # Extract text from a gnumeric spreadsheet
    #================================================================
    
    # set variables
    LANG=C ; export LANG
    LC_ALL=C ; export LC_ALL
    progname="rclgnumeric"
    filetype=gnumeric
    
    
    #RECFILTCOMMONCODE
    ##############################################################################
    # !! Leave the previous line unmodified!! Code imported from the
    # recfiltcommon file
    
    # Utility code common to all shell filters. This could be sourced at run
    # time, but it's slightly more efficient to include the code in the
    # filters at build time (with a sed script).
    
    # Describe error in a way that can be interpreted by our caller
    senderror()
    {
        echo RECFILTERROR $*
        # Also alert on stderr just in case
        echo ":2:$progname::: $*" 1>&2
        exit 1
    }
    
    iscmd()
    {
        cmd=$1
        case $cmd in
        */*)
    	if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;;
        *)
          oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs
          for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done
          return 1 ;;
        esac
    }
    
    checkcmds()
    {
        for cmd in $*;do
          if iscmd $cmd 
          then 
            a=1
          else 
            senderror HELPERNOTFOUND $cmd
          fi
        done
    }
    
    # show help message
    if test $# -ne 1 -o "$1" = "--help" 
    then
      echo "Convert a $filetype file to HTML text for Recoll indexing."
      echo "Usage: $progname [infile]"
      exit 1
    fi
    
    infile="$1"
    
    # check the input file existence (may be '-' for stdin)
    if test "X$infile" != X- -a ! -f "$infile"
    then
      senderror INPUTNOSUCHFILE "$infile"
    fi
    
    # protect access to our temp files and directories
    umask 77
    
    ##############################################################################
    # !! Leave the following line unmodified !
    #ENDRECFILTCOMMONCODE
    
    checkcmds xsltproc gunzip
    
    # We need a temporary file
    if test z"$RECOLL_TMPDIR" != z; then
       ttdir=$RECOLL_TMPDIR
    elif test z"$TMPDIR" != z ; then
       ttdir=$TMPDIR
    else
       ttdir=/tmp
    fi
    tmpfile=$ttdir/rclgnm.XXXXXX
    
    tmpfile=`mktemp "$tmpfile"`
    if [ $? -ne 0 ]; then
       senderror "$0: Can't create temp file, exiting..."
    fi
    
    cleanup()
    {
        rm -f $tmpfile
    }
        
    trap cleanup EXIT HUP QUIT INT TERM
    
    gunzip < $1 > $tmpfile || senderror "Cant uncompress input"
    xsltproc --novalid --nonet - $tmpfile <
    
    
    
    
    
    
      
       
       
      
    
      
        
        
      
    
    
    
    
       
         date
         
       
    
    
    
      
        abstract
        
      
    
    
    
      
        keywords
        
      
    
    
    
      
        keywords
        
      
    
    
    
       <xsl:value-of select="."/> 
    
    
    
      
        author
        
      
    
    
    
    
    
      

    EOF recoll-1.21.5/filters/injectcommon.sh0000755000175000017500000000053012602163537017061 0ustar dockesdockes#!/bin/sh fatal() { echo $* exit 1 } commoncode=recfiltcommon test -f recfiltcommon || fatal must be executed inside the filters directory for filter in rcl* ; do sed -e '/^#RECFILTCOMMONCODE/r recfiltcommon /^#RECFILTCOMMONCODE/,/^#ENDRECFILTCOMMONCODE/d ' < $filter > filtertmp && mv -f filtertmp $filter && chmod a+x $filter done recoll-1.21.5/filters/rclpython0000755000175000017500000001425012602163537016011 0ustar dockesdockes#!/usr/bin/env python # -*- coding: iso-8859-1 -*- """ MoinMoin - Python source parser and colorizer """ # Rclpython is verbatim "colorize.py" from: # http://chrisarndt.de/en/software/python/colorize.html # # Based on the code from Jrgen Herman, the following changes where made: # # Mike Brown : # - make script callable as a CGI and a Apache handler for .py files. # # Christopher Arndt : # - make script usable as a module # - use class tags and style sheet instead of """ class Parser: """ Send colored python source. """ stylesheet = _STYLESHEET def __init__(self, raw, out=sys.stdout): """ Store the source text. """ self.raw = string.strip(string.expandtabs(raw)) self.out = out def format(self): """ Parse and send the colored source. """ # store line offsets in self.lines self.lines = [0, 0] pos = 0 while 1: pos = string.find(self.raw, '\n', pos) + 1 if not pos: break self.lines.append(pos) self.lines.append(len(self.raw)) # parse the source and write it self.pos = 0 text = cStringIO.StringIO(self.raw) self.out.write(self.stylesheet) self.out.write('
    \n')
            try:
                tokenize.tokenize(text.readline, self)
            except tokenize.TokenError, ex:
                msg = ex[0]
                line = ex[1][0]
                self.out.write("

    ERROR: %s

    %s\n" % ( msg, self.raw[self.lines[line]:])) except IndentationError, ex: msg = ex[0] self.out.write("

    ERROR: %s

    \n" % (msg)) self.out.write('\n
    ') def __call__(self, toktype, toktext, (srow,scol), (erow,ecol), line): """ Token handler. """ if 0: print "type", toktype, token.tok_name[toktype], "text", toktext, print "start", srow,scol, "end", erow,ecol, "
    " # calculate new positions oldpos = self.pos newpos = self.lines[srow] + scol self.pos = newpos + len(toktext) # handle newlines if toktype in [token.NEWLINE, tokenize.NL]: self.out.write('\n') return # send the original whitespace, if needed if newpos > oldpos: self.out.write(self.raw[oldpos:newpos]) # skip indenting tokens if toktype in [token.INDENT, token.DEDENT]: self.pos = newpos return # map token type to a color group if token.LPAR <= toktype and toktype <= token.OP: toktype = token.OP elif toktype == token.NAME and keyword.iskeyword(toktext): toktype = _KEYWORD css_class = _css_classes.get(toktype, 'text') # send text self.out.write('' % (css_class,)) self.out.write(cgi.escape(toktext)) self.out.write('') def colorize_file(file=None, outstream=sys.stdout, standalone=True): """Convert a python source file into colorized HTML. Reads file and writes to outstream (default sys.stdout). file can be a filename or a file-like object (only the read method is used). If file is None, act as a filter and read from sys.stdin. If standalone is True (default), send a complete HTML document with header and footer. Otherwise only a stylesheet and a
     section are written.
        """
    
        from os.path import basename
        if hasattr(file, 'read'):
            sourcefile = file
            file = None
            try:
                filename = basename(file.name)
            except:
                filename = 'STREAM'
        elif file is not None:
            try:
                sourcefile = open(file)
                filename = basename(file)
            except IOError:
                raise SystemExit("File %s unknown." % file)
        else:
            sourcefile = sys.stdin
            filename = 'STDIN'
        source = sourcefile.read()
    
        if standalone:
            outstream.write(_HTML_HEADER % {'title': filename})
        Parser(source, out=outstream).format()
        if standalone:
            outstream.write(_HTML_FOOTER)
    
        if file:
            sourcefile.close()
    
    if __name__ == "__main__":
        import os
        if os.environ.get('PATH_TRANSLATED'):
            filepath = os.environ.get('PATH_TRANSLATED')
            print 'Content-Type: text/html; charset="iso-8859-1"\n'
            colorize_file(filepath)
        elif len(sys.argv) > 1:
            filepath = sys.argv[1]
            colorize_file(filepath)
        else:
            colorize_file()
    recoll-1.21.5/filters/rclfb20000755000175000017500000000657112602163537015150 0ustar  dockesdockes#!/bin/sh
    # @(#$Id: rclopxml,v 1.3 2008-10-08 08:27:34 dockes Exp $  (C) 2004 J.F.Dockes
    #================================================================
    # Extract text from an fb2 ebook (xml)
    #================================================================
    
    # set variables
    LANG=C ; export LANG
    LC_ALL=C ; export LC_ALL
    progname=rclfb2
    filetype=fb2
    
    
    #RECFILTCOMMONCODE
    ##############################################################################
    # !! Leave the previous line unmodified!! Code imported from the
    # recfiltcommon file
    
    # Utility code common to all shell filters. This could be sourced at run
    # time, but it's slightly more efficient to include the code in the
    # filters at build time (with a sed script).
    
    # Describe error in a way that can be interpreted by our caller
    senderror()
    {
        echo RECFILTERROR $*
        # Also alert on stderr just in case
        echo ":2:$progname::: $*" 1>&2
        exit 1
    }
    
    iscmd()
    {
        cmd=$1
        case $cmd in
        */*)
    	if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;;
        *)
          oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs
          for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done
          return 1 ;;
        esac
    }
    
    checkcmds()
    {
        for cmd in $*;do
          if iscmd $cmd 
          then 
            a=1
          else 
            senderror HELPERNOTFOUND $cmd
          fi
        done
    }
    
    # show help message
    if test $# -ne 1 -o "$1" = "--help" 
    then
      echo "Convert a $filetype file to HTML text for Recoll indexing."
      echo "Usage: $progname [infile]"
      exit 1
    fi
    
    infile="$1"
    
    # check the input file existence (may be '-' for stdin)
    if test "X$infile" != X- -a ! -f "$infile"
    then
      senderror INPUTNOSUCHFILE "$infile"
    fi
    
    # protect access to our temp files and directories
    umask 77
    
    ##############################################################################
    # !! Leave the following line unmodified !
    #ENDRECFILTCOMMONCODE
    
    checkcmds xsltproc
    
    xsltproc --nonet --novalid - "$infile" <
    
    
    
    
    
     
      
      
     
    
    
    
      
        
      
    
    
    
    
        
        
    
    
    
     <xsl:value-of select="."/> 
    
    
    
      
      author
      
          
          
         
      
      
    
    
    
     
     
     
    
    
    
      
      

    EOF recoll-1.21.5/filters/rclmpdf0000755000175000017500000001770712602163537015430 0ustar dockesdockes#!/usr/bin/env python # Copyright (C) 2014 J.F.Dockes # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Recoll PDF extractor, with support for attachments import os import sys import re import rclexecm import subprocess import distutils.spawn import tempfile import atexit import signal tmpdir = None def finalcleanup(): if tmpdir: vacuumdir(tmpdir) os.rmdir(tmpdir) def signal_handler(signal, frame): sys.exit(1) atexit.register(finalcleanup) signal.signal(signal.SIGHUP, signal_handler) signal.signal(signal.SIGINT, signal_handler) signal.signal(signal.SIGQUIT, signal_handler) signal.signal(signal.SIGTERM, signal_handler) def vacuumdir(dir): if dir: for fn in os.listdir(dir): path = os.path.join(dir, fn) if os.path.isfile(path): os.unlink(path) return True class PDFExtractor: def __init__(self, em): self.currentindex = 0 self.pdftotext = "" self.pdftk = "" self.em = em self.attextractdone = False # Extract all attachments if any into temporary directory def extractAttach(self): if self.attextractdone: return True self.attextractdone = True global tmpdir if not tmpdir or not self.pdftk: return False try: vacuumdir(tmpdir) subprocess.check_call([self.pdftk, self.filename, "unpack_files", "output", tmpdir]) self.attachlist = sorted(os.listdir(tmpdir)) return True except Exception, e: self.em.rclog("extractAttach: failed: %s" % e) return False def extractone(self, ipath): #self.em.rclog("extractone: [%s]" % ipath) if not self.attextractdone: if not self.extractAttach(): return (False, "", "", rclexecm.RclExecM.eofnow) path = os.path.join(tmpdir, ipath) if os.path.isfile(path): f = open(path) docdata = f.read(); f.close() if self.currentindex == len(self.attachlist) - 1: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof return (True, docdata, ipath, eof) # pdftotext (used to?) badly escape text inside the header # fields. We do it here. This is not an html parser, and depends a # lot on the actual format output by pdftotext. def _fixhtml(self, input): #print input inheader = False inbody = False didcs = False output = '' cont = '' for line in input.split('\n'): line = cont + line cont = '' if re.search('', line): inheader = False if re.search('
    ', line): inbody = False if inheader: if not didcs: output += '\n' didcs = True m = re.search(r'(.*)(.*)(<\/title>.*)', line) if not m: m = re.search(r'(.*content=")(.*)(".*/>.*)', line) if m: line = m.group(1) + self.em.htmlescape(m.group(2)) + \ m.group(3) # Recoll treats "Subject" as a "title" element # (based on emails). The PDF "Subject" metadata # field is more like an HTML "description" line = re.sub('name="Subject"', 'name="Description"', line, 1) elif inbody: # Remove end-of-line hyphenation. It's not clear that # we should do this as pdftotext without the -layout # option does it ? #if re.search(r'[-]$', line): #m = re.search(r'(.*)[ \t]([^ \t]+)$', line) #if m: #line = m.group(1) #cont = m.group(2).rstrip('-') line = self.em.htmlescape(line) if re.search('<head>', line): inheader = True if re.search('<pre>', line): inbody = True output += line + '\n' return output def _selfdoc(self): self.em.setmimetype('text/html') if self.attextractdone and len(self.attachlist) == 0: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof data = subprocess.check_output([self.pdftotext, "-htmlmeta", "-enc", "UTF-8", "-eol", "unix", "-q", self.filename, "-"]) data = self._fixhtml(data) #self.em.rclog("%s" % data) return (True, data, "", eof) ###### File type handler api, used by rclexecm ----------> def openfile(self, params): self.filename = params["filename:"] #self.em.rclog("openfile: [%s]" % self.filename) self.currentindex = -1 self.attextractdone = False if self.pdftotext == "": self.pdftotext = distutils.spawn.find_executable("pdftotext") if self.pdftotext is None: print("RECFILTERROR HELPERNOTFOUND pdftotext") sys.exit(1); if self.pdftk == "": self.pdftk = distutils.spawn.find_executable("pdftk") if self.pdftk: global tmpdir if tmpdir: if not vacuumdir(tmpdir): self.em.rclog("openfile: vacuumdir %s failed" % tmpdir) return False else: tmpdir = tempfile.mkdtemp(prefix='rclmpdf') preview = os.environ.get("RECOLL_FILTER_FORPREVIEW", "no") if preview != "yes": # When indexing, extract attachments at once. This # will be needed anyway and it allows generating an # eofnext error instead of waiting for actual eof, # which avoids a bug in recollindex up to 1.20 self.extractAttach() return True def getipath(self, params): ipath = params["ipath:"] ok, data, ipath, eof = self.extractone(ipath) return (ok, data, ipath, eof) def getnext(self, params): if self.currentindex == -1: #self.em.rclog("getnext: current -1") self.currentindex = 0 return self._selfdoc() else: self.em.setmimetype('') if not self.attextractdone: if not self.extractAttach(): return (False, "", "", rclexecm.RclExecM.eofnow) if self.currentindex >= len(self.attachlist): return (False, "", "", rclexecm.RclExecM.eofnow) try: ok, data, ipath, eof = \ self.extractone(self.attachlist[self.currentindex]) self.currentindex += 1 #self.em.rclog("getnext: returning ok for [%s]" % ipath) return (ok, data, ipath, eof) except: return (False, "", "", rclexecm.RclExecM.eofnow) # Main program: create protocol handler and extractor and run them proto = rclexecm.RclExecM() extract = PDFExtractor(proto) rclexecm.main(proto, extract) ���������������������������������������������������������recoll-1.21.5/filters/rclkwd������������������������������������������������������������������������0000755�0001750�0001750�00000012641�12602163537�015257� 0����������������������������������������������������������������������������������������������������ustar �dockes��������������������������dockes�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # @(#$Id: rclkwd,v 1.2 2008-10-08 08:27:34 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Extract text from a kword file #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclkwd" filetype=kword #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds unzip gunzip tar xsltproc # We need a temporary directory if test z"$RECOLL_TMPDIR" != z; then ttdir=$RECOLL_TMPDIR elif test z"$TMPDIR" != z ; then ttdir=$TMPDIR else ttdir=/tmp fi tmpdir=$ttdir/rclkwd_tmp$$ mkdir $tmpdir || exit 1 mkdir $tmpdir/rclkwdtmp || exit 1 cleanup() { # Note that we're using a constant part (rclkwdtmp), that hopefully # guarantees that we can't do big mistakes here. rm -rf $tmpdir/rclkwdtmp rmdir $tmpdir } trap cleanup EXIT HUP QUIT INT TERM # Old kwd files are gzip/tar archibes. Newer ones are zip archives. if file "$infile" | grep -qi gzip ; then # Unzip the input file and change to the unzipped directory gunzip < "$infile" | (cd $tmpdir/rclkwdtmp;tar xf -) else # Unzip the input file and change to the unzipped directory unzip -q -d $tmpdir/rclkwdtmp "$infile" fi cd $tmpdir/rclkwdtmp metafile=documentinfo.xml contentfile=maindoc.xml echo '<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' if test -f $metafile ; then xsltproc --nonet --novalid - $metafile <<EOF <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:kw="http://www.koffice.org/DTD/document-info" exclude-result-prefixes="kw" > <xsl:output method="html" encoding="UTF-8"/> <xsl:template match="/"> <xsl:apply-templates select="kw:document-info|document-info"/> </xsl:template> <xsl:template match="/kw:document-info|/document-info"> <xsl:apply-templates select="kw:author|author"/> <xsl:apply-templates select="kw:about/kw:abstract|abstract"/> <xsl:apply-templates select="kw:about/kw:title|title"/> <xsl:apply-templates select="kw:about/kw:keyword|keyword"/> <xsl:apply-templates select="kw:about/kw:subject|subject"/> </xsl:template> <xsl:template match="kw:author|author"> <meta> <xsl:attribute name="name">author</xsl:attribute> <xsl:attribute name="content"> <xsl:value-of select="kw:full-name|full-name"/> </xsl:attribute> </meta><xsl:text> </xsl:text> </xsl:template> <xsl:template match="kw:abstract|abstract"> <meta> <xsl:attribute name="name">abtract</xsl:attribute> <xsl:attribute name="content"> <xsl:value-of select="."/> </xsl:attribute> </meta><xsl:text> </xsl:text> </xsl:template> <xsl:template match="kw:keyword|kw:subject|keyword|subject"> <meta> <xsl:attribute name="name">keywords</xsl:attribute> <xsl:attribute name="content"> <xsl:value-of select="."/> </xsl:attribute> </meta><xsl:text> </xsl:text> </xsl:template> <xsl:template match="kw:title|title"> <title><xsl:value-of select="."/> EOF fi echo '' xsltproc --nonet --novalid - $contentfile <

    EOF echo '' cd / # exit normally exit 0 recoll-1.21.5/filters/xlsxmltocsv.py0000755000175000017500000000324012602163571017017 0ustar dockesdockes#!/usr/bin/env python import sys import xml.sax sys.path.append(sys.path[0]+"/msodump.zip") from msodumper.globals import error dtt = True if dtt: sepstring = "\t" dquote = '' else: sepstring = "," dquote = '"' class XlsXmlHandler(xml.sax.handler.ContentHandler): def startElement(self, name, attrs): if name == "worksheet": if "name" in attrs: print("%s" % attrs["name"].encode("UTF-8")) elif name == "row": self.cells = dict() elif name == "label-cell" or name == "number-cell": if "value" in attrs: value = attrs["value"].encode("UTF-8") else: value = unicode() if "col" in attrs: self.cells[int(attrs["col"])] = value else: #?? sys.stdout.write("%s%s"%(value.encode("UTF-8"),sepstring)) elif name == "formula-cell": if "formula-result" in attrs and "col" in attrs: self.cells[int(attrs["col"])] = \ attrs["formula-result"].encode("UTF-8") def endElement(self, name, ): if name == "row": curidx = 0 for idx, value in self.cells.iteritems(): sys.stdout.write(sepstring * (idx - curidx)) sys.stdout.write('%s%s%s' % (dquote, value, dquote)) curidx = idx sys.stdout.write("\n") elif name == "worksheet": print("") try: xml.sax.parse(sys.stdin, XlsXmlHandler()) except BaseException as err: error("xml-parse: %s\n" % (str(sys.exc_info()[:2]),)) sys.exit(1) sys.exit(0) recoll-1.21.5/filters/rcluncomp0000755000175000017500000000221512602163537015767 0ustar dockesdockes#!/bin/sh # @(#$Id: rcluncomp,v 1.3 2007-10-27 08:40:25 dockes Exp $ (C) 2004 J.F.Dockes # Uncompress file using any program like gunzip/bunzip2. We jump through # hoops to let the decompressor remove the compression suffix in the file # name. The input directory must be empty on entry. if test $# != 3 -o ! -f "$2" -o ! -d "$3" ; then echo "Usage: rcluncomp " exit 1 fi uncomp=$1 infile=$2 outdir=$3 sinfile=`basename "$infile"` #echo "rcluncomp: $sinfile" 1>&2 case "$sinfile" in # File with a suffix: try to decompress in file mode so that the # decompressor can transform the file name if it knows how. Try # filter mode if this fails *.*) cp "$infile" "$outdir/$sinfile" || exit 1 # try uncompress if $uncomp "$outdir/$sinfile" ; then uncompressed=`echo $outdir/*` else rm -f "$outdir/sinfile" $uncomp < "$infile" > "$outdir/$sinfile" || exit 1 uncompressed="$outdir/$sinfile" fi ;; # Suffixless file names: use filter mode *) $uncomp < "$infile" > "$outdir/$sinfile" || exit 1 uncompressed="$outdir/$sinfile" ;; esac cat <&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds awk antiword iconv # We need to do some strange stuff to retrieve the status from antiword. Things # would be simpler if we relied on using bash. # Explanations: #http://stackoverflow.com/questions/1221833/bash-pipe-output-and-capture-exit-status stdintoexitstatus() { read exitstatus return $exitstatus } # The strange 'BEGIN' setup is to prevent 'file' from thinking this file # is an awk program (((($decoder "$infile"; echo $? >&3) | awk 'BEGIN'\ ' { cont = "" gotdata = 0 } { if (!($0 ~ /^[ ]*$/) && gotdata == 0) { print "" print "" print "\n\n

    " gotdata = 1 } $0 = cont $0 cont = "" if ($0 ~ /[-]$/) { # Note : soft-hyphen is iso8859 0xad # Break at last whitespace match($0, "[ \t][^ \t]+$") line = substr($0, 0, RSTART) cont = substr($0, RSTART, RLENGTH-1) $0 = line } if($0 == "\f") { print "


    " next } if (gotdata == 1) { gsub(/&/, "\\&", $0) gsub(//, "\\>", $0) print $0 "
    " } } END { if (gotdata == 1) print "

    " }' >&4) 3>&1) | stdintoexitstatus) 4>&1 # Antiword rarely fails, we try to catch the most common reasons: if test $? -eq 1 ; then # Check actual document type mtype=`file -b -i "$infile" | awk '{sub(";", "", $1);print $1}'` if test X"$mtype" = Xtext/rtf; then # RTF document disguising as msword either because it has a .doc # extension or because it's an attachment with a wrong mime. exec `dirname $0`/rclrtf "$infile" fi if test X"$mtype" = Xtext/plain; then # Someone gave a .doc ext to their texts. Happens... exec `dirname $0`/rcltext "$infile" fi if test X"$mtype" = Xapplication/msword; then # Actually application/msword: try wvWare, which is much # slower and we don't use it by default, but it handles some # files that antiword won't, so use it as a last resort. if iscmd wvWare ; then exec wvWare --nographics --charset=utf-8 "$infile" fi fi # else let the error be... exit 1 fi recoll-1.21.5/filters/rclwar0000755000175000017500000000334712602163537015266 0ustar dockesdockes#!/usr/bin/env python # WAR web archive filter for recoll. War file are gzipped tar files import rclexecm import tarfile class WarExtractor: def __init__(self, em): self.em = em def extractone(self, tarinfo): docdata = "" try: member = self.tar.extractfile(tarinfo) docdata = member.read() ok = True except Exception, err: self.em.rclog("extractone: failed: [%s]" % err) ok = False return (ok, docdata, tarinfo.name, rclexecm.RclExecM.noteof) ###### File type handler api, used by rclexecm ----------> def openfile(self, params): self.currentindex = -1 try: self.tar = tarfile.open(params["filename:"]) return True except Exception, err: self.em.rclog(str(err)) return False def getipath(self, params): ipath = params["ipath:"] try: tarinfo = self.tar.getmember(ipath) except Exception, err: self.em.rclog(str(err)) return (False, "", ipath, rclexecm.RclExecM.noteof) return self.extractone(tarinfo) def getnext(self, params): if self.currentindex == -1: # Return "self" doc self.currentindex = 0 return (True, "", "", rclexecm.RclExecM.noteof) tarinfo = self.tar.next() if tarinfo is None: #self.em.rclog("getnext: EOF hit") return (False, "", "", rclexecm.RclExecM.eofnow) else: ret = self.extractone(tarinfo) return ret # Main program: create protocol handler and extractor and run them proto = rclexecm.RclExecM() extract = WarExtractor(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rclshowinfo0000755000175000017500000000126312602163537016324 0ustar dockesdockes#!/bin/sh # A small script to help recoll start info on the node corresponding to # the result document. The title is the node path, but it needs to be # somewhat processed fatal() { echo $* exit 1 } Usage() { fatal "Usage: rclshowinfo filename top node / sub node [/ ...]" } test $# -ge 2 || Usage filename=`echo $1 | sed -e 's!^file://!!'` shift # The title set by recoll while indexing is like: # infofilename / first node path element / second node path element ... IFS=/ set $* while test $# -gt 1;do shift # node=`echo $1 | sed -e 's/^ *//' -e 's/ *$//'` node=`eval "echo $1"` nodepath="$nodepath '$node'" done set -x exec xterm -e "info -f $filename $nodepath" recoll-1.21.5/filters/rcl7z0000755000175000017500000001010312602163571015017 0ustar dockesdockes#!/usr/bin/env python # 7-Zip file filter for Recoll # Thanks to Recoll user Martin Ziegler # This is a modified version of rclzip, with some help from rcltar # Python pylzma library required. See http://www.joachim-bauch.de/projects/pylzma/ import os import fnmatch import rclexecm try: import pylzma from py7zlib import Archive7z except: print "RECFILTERROR HELPERNOTFOUND python:pylzma" sys.exit(1); try: from recoll import rclconfig hasrclconfig = True except: hasrclconfig = False # As a temporary measure, we also look for rclconfig as a bare # module. This is so that the intermediate releases of the filter can # ship and use rclconfig.py with the filter code if not hasrclconfig: try: import rclconfig hasrclconfig = True except: pass class SevenZipExtractor: def __init__(self, em): self.currentindex = 0 self.em = em def extractone(self, ipath): #self.em.rclog("extractone: [%s]" % ipath) docdata = "" try: docdata = self.sevenzip.getmember(ipath).read() ok = True except Exception, err: self.em.rclog("extractone: failed: [%s]" % err) ok = False iseof = rclexecm.RclExecM.noteof if self.currentindex >= len(self.sevenzip.getnames()) -1: iseof = rclexecm.RclExecM.eofnext if isinstance(ipath, unicode): ipath = ipath.encode("utf-8") return (ok, docdata, ipath, iseof) ###### File type handler api, used by rclexecm ----------> def openfile(self, params): filename = params["filename:"] self.currentindex = -1 self.skiplist = [] if hasrclconfig: config = rclconfig.RclConfig() config.setKeyDir(os.path.dirname(filename)) skipped = config.getConfParam("zipSkippedNames") if skipped is not None: self.skiplist = skipped.split(" ") try: fp = open(filename, 'rb') self.sevenzip = Archive7z(fp) return True except Exception, err: self.em.rclog("openfile: failed: [%s]" % err) return False def getipath(self, params): ipath = params["ipath:"] ok, data, ipath, eof = self.extractone(ipath) if ok: return (ok, data, ipath, eof) # Not found. Maybe we need to decode the path? try: ipath = ipath.decode("utf-8") return self.extractone(ipath) except Exception, err: return (ok, data, ipath, eof) def getnext(self, params): if self.currentindex == -1: # Return "self" doc self.currentindex = 0 self.em.setmimetype('text/plain') if len(self.sevenzip.getnames()) == 0: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof return (True, "", "", eof) if self.currentindex >= len(self.sevenzip.getnames()): #self.em.rclog("getnext: EOF hit") return (False, "", "", rclexecm.RclExecM.eofnow) else: entryname = self.sevenzip.getnames()[self.currentindex] if hasrclconfig and len(self.skiplist) != 0: while self.currentindex < len(self.sevenzip.getnames()): entryname = self.sevenzip.getnames()[self.currentindex] for pat in self.skiplist: if fnmatch.fnmatch(entryname, pat): entryname = None break if entryname is not None: break self.currentindex += 1 if entryname is None: return (False, "", "", rclexecm.RclExecM.eofnow) ret= self.extractone(entryname) self.currentindex += 1 return ret # Main program: create protocol handler and extractor and run them proto = rclexecm.RclExecM() extract = SevenZipExtractor(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rclxml0000755000175000017500000000511512602163537015270 0ustar dockesdockes#!/bin/sh #================================================================ # Extract text from a generic XML file (Justus Piater) #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclxml" filetype=xml #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds xsltproc xsltproc --novalid --nonet - "$infile" < <xsl:value-of select="//*[local-name() = 'title'][1]"/>

    EOF exit 0 recoll-1.21.5/filters/rclppt0000755000175000017500000000571512602163537015301 0ustar dockesdockes#!/bin/sh # @(#$Id: rclppt,v 1.4 2008-10-08 08:27:34 dockes Exp $ (C) 2004 J.F.Dockes # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #================================================================ # Handle powerpoint files for recoll. # Use unoconv, this is very slow, but catppt just can't handle the majority # of semi-modern ppt files #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclppt" filetype=powerpoint #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE filtersdir=`dirname $0` checkcmds $filtersdir/ppt-dump.py mso="$filtersdir/ppt-dump.py --no-struct-output --dump-text" cat <
    EOF
    
    $mso "$infile"| sed -e 's/'
    recoll-1.21.5/filters/rcllyx0000755000175000017500000001546512602163537015315 0ustar  dockesdockes#!/bin/sh
    # @(#$Id: rcllyx,v 1.6 2007-06-08 13:51:09 dockes Exp $  (C) 2004 J.F.Dockes
    # There may still be code from Estraier in here:
    #================================================================
    # Estraier: a personal full-text search system
    # Copyright (C) 2003-2004 Mikio Hirabayashi
    #================================================================
    #================================================================
    # Convert a lyx file to recoll HTML.
    #
    # We use lyx --export. It was suggested to use untex, but it doesn't give 
    # good results on raw lyx (of course, this is not TeX), and exporting to
    # LaTex then using untex doesn't look nice when we can use the native  lyx
    # text export.
    # The character encoding of the exported text is defined by the
    # \inputencoding directive in the lyx file header and, in quite an obscure
    # way, by the \language parameter. We use a heuristic to divine the output
    # text encoding and it is guaranteed not to work in all cases. Trials using
    # an intermediary dvi, pdf or ps file gave worse results. This needs
    # improvement. It doesn't even take into account the fact that the language
    # can change inside the doc (does this change the encoding or not ?). To be
    # frank, this is not entirely my fault, the lyx format is a joke.
    #
    # As there is unfortunately no way to define the output file name, we have
    # to use a temporary directory and link the input file in there.
    
    # set variables
    #LANG=C ; export LANG
    #LC_ALL=C ; export LC_ALL
    progname="rcllyx"
    filetype=lyx
    
    
    
    
    
    #RECFILTCOMMONCODE
    ##############################################################################
    # !! Leave the previous line unmodified!! Code imported from the
    # recfiltcommon file
    
    # Utility code common to all shell filters. This could be sourced at run
    # time, but it's slightly more efficient to include the code in the
    # filters at build time (with a sed script).
    
    # Describe error in a way that can be interpreted by our caller
    senderror()
    {
        echo RECFILTERROR $*
        # Also alert on stderr just in case
        echo ":2:$progname::: $*" 1>&2
        exit 1
    }
    
    iscmd()
    {
        cmd=$1
        case $cmd in
        */*)
    	if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;;
        *)
          oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs
          for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done
          return 1 ;;
        esac
    }
    
    checkcmds()
    {
        for cmd in $*;do
          if iscmd $cmd 
          then 
            a=1
          else 
            senderror HELPERNOTFOUND $cmd
          fi
        done
    }
    
    # show help message
    if test $# -ne 1 -o "$1" = "--help" 
    then
      echo "Convert a $filetype file to HTML text for Recoll indexing."
      echo "Usage: $progname [infile]"
      exit 1
    fi
    
    infile="$1"
    
    # check the input file existence (may be '-' for stdin)
    if test "X$infile" != X- -a ! -f "$infile"
    then
      senderror INPUTNOSUCHFILE "$infile"
    fi
    
    # protect access to our temp files and directories
    umask 77
    
    ##############################################################################
    # !! Leave the following line unmodified !
    #ENDRECFILTCOMMONCODE
    
    checkcmds lyx iconv
    
    # We need a temporary directory
    if test z"$RECOLL_TMPDIR" != z; then
       ttdir=$RECOLL_TMPDIR
    elif test z"$TMPDIR" != z ; then
       ttdir=$TMPDIR
    else
       ttdir=/tmp
    fi
    
    tmpdir=$ttdir/rcllyx_tmp$$
    mkdir $tmpdir || exit 1
    mkdir $tmpdir/rcllyxtmp || exit 1
    
    cleanup()
    {
        # Note that we're using a constant part (rcllyxtmp), that hopefully
        # guarantees that we can't do big mistakes here.
        rm -rf $tmpdir/rcllyxtmp
        rmdir $tmpdir
    }
        
    trap cleanup EXIT HUP QUIT INT TERM
    
    workdir=$tmpdir/rcllyxtmp
    case "$infile" in
     */*) ;;
     *) infile=`pwd`/"$infile";;
    esac
    
    ln -s "$infile" "$workdir/input.lyx" || exit 1
    lyxfile=$workdir/input.lyx
    textfile=$workdir/input.txt
    
    #echo lyxfile: $lyxfile ; ls -l $lyxfile; echo textfile: $textfile
    
    # Run lyx --export
    lyx --export text "$lyxfile" || senderror "lyx --export text "$lyxfile" failed"
    
    # Need the lyx version. After some point -export prints utf-8,
    # whatever the input version
    LYXOUTPUTUTF=No
    vline=`lyx --version 2>&1 | head -1 | tr '.' ' '`
    set $vline
    for i in $2 $3 $4;do
        expr "$i" ':' '[0-9][0-9]*' > /dev/null || \
            senderror "Bad lyx version string $vline"
    done
    maj=`expr $2 '*' 10000`
    med=`expr $3 '*' 100` 
    min=`expr $4 '*' 1` 
    version=`expr $maj + $med + $min` || senderror "Bad lyx version string $vline"
    
    if test $version -ge 10607 ; then
      LYXOUTPUTUTF=Yes
    fi
    if test X$LYXOUTPUTUTF = XNo ; then
    echo "OLD VERSION"
      # Charset and language
      formatline=`egrep '^\\\lyxformat ' "$lyxfile"`
      if test -n "$formatline" ; then 
         set $formatline
         format=$2
      fi
      charsetline=`egrep '^\\\inputencoding ' "$lyxfile"`
      if test -n "$charsetline" ; then 
         set $charsetline
         charset=$2
      fi
      langline=`egrep '^\\\language ' "$lyxfile"`
      if test -n "$langline" ; then 
         set $langline
         lang=$2
      fi
      #echo format: [$format] charset: [$charset] lang [$lang]
      
      if test "$format" -ge 249 ; then
        charset=utf-8
      else
        # try to guess the charset from the language: this is in no way guaranteed
        # to work, the logic has built-in inconsistencies even beyond the numerous
        # external ones (what if the ukrainian writer prefers koi8-r ?). This is a
        # joke. 
      if test -z "$charset" -o "$charset" = default -o "$charset" = auto ; then
        case "$lang" in
          american|afrikaans|basque|catalan|danish|dutch|english|faeroese|finnish|french|galician|german|icelandic|irish|italian|norwegian|portuguese|spanish|swedish)
            charset=iso-8859-1;;
          czech|german|hungarian|polish|romanian|croatian|slovak|slovene)
            charset=iso-8859-2;;
          esperanto|galician|maltese|Turkish) 
            charset=iso-8859-3;;
          estonian|latvian|lithuanian) 
            charset=iso-8859-4;;
          bulgarian|byelorussian|macedonian|russian|serbian|ukrainian) 
            charset=iso-8859-5;;
          arabic) 
            charset=iso-8859-6;;
          greek) 
            charset=iso-8859-7;;
          hebrew) 
            charset=iso-8859-8;;
          #ISO-8859-9 - Latin 5 Same as 8859-1 except for Turkish instead of
          #Icelandic. ? What is one to do :)
          #ISO-8859-10 - Latin 6
          lappish|nordic|eskimo|inuit|sami)
            charset=iso-8859-10;;
        albanian|german|english|basque|breton|catalan|danish|spanish|estonian|esthonian|faeroese|faroese|finnish|french|frisian|friesian|scottish|goidelic|irish|gaelic|galician|welsh|greenlandic|inuit|icelandic|italian|latin|dutch|norvegian|portuguese|romansch|romansh|friulian|ladin|swedish)
            charset=iso-8859-15;;
          *)
            charset=iso-8859-1;;
          esac
        fi
      fi
    # End Old lyx needing output tweaking
    fi
    
    if test -n "$charset" ; then
       inputcmd="iconv -f $charset -t UTF-8 -c -s"
    else
       inputcmd=cat
    fi
    #echo inputcmd: [$inputcmd]
    
    cat <
    
        $title
        
    
    
    
    EOF
    
    $inputcmd < "$textfile"
    
    cat <
    
    
    EOF
    recoll-1.21.5/filters/rclnull0000755000175000017500000000063412602163571015441 0ustar  dockesdockes#!/bin/sh
    # It may make sense in some cases to set this null filter (no output)
    # instead of using recoll_noindex or leaving the default filter in
    # case one doesn't want to install it: this will avoid endless retries
    # to reindex the affected files, as recoll will think it has succeeded
    # indexing them. Downside: the files won't be indexed when one
    # actually installs the real filter, will need a -z
    
    exit 0
    recoll-1.21.5/filters/rclsoff0000755000175000017500000001273712602163537015435 0ustar  dockesdockes#!/bin/sh
    # @(#$Id: rclsoff,v 1.12 2008-10-08 08:27:34 dockes Exp $  (C) 2004 J.F.Dockes
    # Parts taken from Estraier:
    #================================================================
    # Estraier: a personal full-text search system
    # Copyright (C) 2003-2004 Mikio Hirabayashi
    #================================================================
    #================================================================
    # Extract text from an openoffice/soffice file
    #
    #================================================================
    
    # set variables
    LANG=C ; export LANG
    LC_ALL=C ; export LC_ALL
    progname="rclsoff"
    filetype=openoffice
    
    
    #RECFILTCOMMONCODE
    ##############################################################################
    # !! Leave the previous line unmodified!! Code imported from the
    # recfiltcommon file
    
    # Utility code common to all shell filters. This could be sourced at run
    # time, but it's slightly more efficient to include the code in the
    # filters at build time (with a sed script).
    
    # Describe error in a way that can be interpreted by our caller
    senderror()
    {
        echo RECFILTERROR $*
        # Also alert on stderr just in case
        echo ":2:$progname::: $*" 1>&2
        exit 1
    }
    
    iscmd()
    {
        cmd=$1
        case $cmd in
        */*)
    	if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;;
        *)
          oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs
          for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done
          return 1 ;;
        esac
    }
    
    checkcmds()
    {
        for cmd in $*;do
          if iscmd $cmd 
          then 
            a=1
          else 
            senderror HELPERNOTFOUND $cmd
          fi
        done
    }
    
    # show help message
    if test $# -ne 1 -o "$1" = "--help" 
    then
      echo "Convert a $filetype file to HTML text for Recoll indexing."
      echo "Usage: $progname [infile]"
      exit 1
    fi
    
    infile="$1"
    
    # check the input file existence (may be '-' for stdin)
    if test "X$infile" != X- -a ! -f "$infile"
    then
      senderror INPUTNOSUCHFILE "$infile"
    fi
    
    # protect access to our temp files and directories
    umask 77
    
    ##############################################################################
    # !! Leave the following line unmodified !
    #ENDRECFILTCOMMONCODE
    
    checkcmds xsltproc unzip
    
    # We need a temporary directory
    if test z"$RECOLL_TMPDIR" != z; then
       ttdir=$RECOLL_TMPDIR
    elif test z"$TMPDIR" != z ; then
       ttdir=$TMPDIR
    else
       ttdir=/tmp
    fi
    tmpdir=$ttdir/rclsoff_tmp$$
    mkdir $tmpdir || exit 1
    mkdir $tmpdir/rclsofftmp || exit 1
    
    cleanup()
    {
        # Note that we're using a constant part (rclsofftmp), that hopefully
        # guarantees that we can't do big mistakes here.
        rm -rf $tmpdir/rclsofftmp
        rmdir $tmpdir
    }
        
    trap cleanup EXIT HUP QUIT INT TERM
    
    # Unzip the input file and change to the unzipped directory
    unzip -q -d $tmpdir/rclsofftmp "$infile"
    cd $tmpdir/rclsofftmp
    
    echo '
    '
    
    xsltproc --novalid --nonet - meta.xml <
    
    
    
    
    
      
      
      
      
      
    
    
    
     <xsl:value-of select="."/> 
    
    
    
    
      
      abstract
      
         
      
      
    
    
    
    
      
      keywords
      
         
      
      
    
    
    
    
      
      author
      
         
      
      
    
    
    
    
      
      keywords
      
         
      
      
    
    
    
    
    EOF
    
    echo ''
    
    xsltproc --novalid --nonet - content.xml <
    
    
    
    
    
      


    EOF echo '' cd / exit 0 recoll-1.21.5/filters/rclrar0000755000175000017500000000776212602163537015266 0ustar dockesdockes#!/usr/bin/env python # Rar file filter for Recoll # Adapted from the Zip archive filter by mroark. # Copyright (C) 2004 J.F.Dockes + mroark for rar bits # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. import sys import rclexecm try: from rarfile import RarFile except: print "RECFILTERROR HELPERNOTFOUND python:rarfile" sys.exit(1); # Requires RarFile python module. Try "sudo pip install rarfile" # # This is identical to rclzip except I did a search/replace from zip # to rar, and changed this comment. class RarExtractor: def __init__(self, em): self.currentindex = 0 self.em = em def extractone(self, ipath): #self.em.rclog("extractone: [%s]" % ipath) docdata = "" isdir = False try: rarinfo = self.rar.getinfo(ipath) isdir = rarinfo.isdir() except Exception, err: self.em.rclog("extractone: getinfo failed: [%s]" % err) return (True, docdata, ipath, false) if not isdir: try: if rarinfo.file_size > self.em.maxmembersize: self.em.rclog("extractone: entry %s size %d too big" % (ipath, rarinfo.file_size)) docdata = "" else: docdata = self.rar.read(ipath) ok = True except Exception, err: self.em.rclog("extractone: failed: [%s]" % err) ok = False else: docdata = "" ok = True self.em.setmimetype("application/x-fsdirectory") iseof = rclexecm.RclExecM.noteof if self.currentindex >= len(self.rar.namelist()) -1: iseof = rclexecm.RclExecM.eofnext if isinstance(ipath, unicode): ipath = ipath.encode("utf-8") return (ok, docdata, ipath, iseof) ###### File type handler api, used by rclexecm ----------> def openfile(self, params): self.currentindex = -1 try: self.rar = RarFile(params["filename:"]) return True except: return False def getipath(self, params): ipath = params["ipath:"] ok, data, ipath, eof = self.extractone(ipath) if ok: return (ok, data, ipath, eof) # Not found. Maybe we need to decode the path? try: ipath = ipath.decode("utf-8") return self.extractone(ipath) except Exception, err: return (ok, data, ipath, eof) def getnext(self, params): if self.currentindex == -1: # Return "self" doc self.currentindex = 0 self.em.setmimetype('text/plain') if len(self.rar.namelist()) == 0: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof return (True, "", "", eof) if self.currentindex >= len(self.rar.namelist()): #self.em.rclog("getnext: EOF hit") return (False, "", "", rclexecm.RclExecM.eofnow) else: ret= self.extractone(self.rar.namelist()[self.currentindex]) self.currentindex += 1 return ret # Main program: create protocol handler and extractor and run them proto = rclexecm.RclExecM() extract = RarExtractor(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rclcheckneedretry.sh0000755000175000017500000000203612612631501020067 0ustar dockesdockes#!/bin/sh # Check /usr/bin and /usr/local/bin modification date against recorded # state, as recorded inside ~/.config/Recoll.org/needidxretrydate # # If any argument is given, we record the new state instead of # generating it (this should be used at the end of an indexing pass # with retry set). # # The script exits with 0 if retrying should be performed (something # changed), 1 else. # Bin dirs to be tested: bindirs="/usr/bin /usr/local/bin $HOME/bin /opt/*/bin" rfiledir=$HOME/.config/Recoll.org rfile=$rfiledir/needidxretrydate nrfile=$rfiledir/tneedidxretrydate test -d $rfiledir || mkdir -p $rfiledir # If any argument is given, we are called just to record the new # state. We do not recompute it as it may have changed during # indexing, but just move the state in place if test $# != 0 ; then mv -f $nrfile $rfile exit 0 fi # Compute state of bin dirs and see if anything changed: > $nrfile for dir in $bindirs; do ls -ld $dir >> $nrfile 2> /dev/null done if cmp -s $rfile $nrfile ; then exit 1 else exit 0 fi recoll-1.21.5/filters/rclepub0000755000175000017500000000656412602163537015434 0ustar dockesdockes#!/usr/bin/env python """Extract Html content from an EPUB file (.chm)""" rclepub_html_mtype = "text/html" import sys import os import re import rclexecm try: import epub except: print "RECFILTERROR HELPERNOTFOUND python:epub" sys.exit(1); class rclEPUB: """RclExecM slave worker for extracting all text from an EPUB file. We first extract the list of internal nodes, and them return them one by one. The ipath is the internal href""" def __init__(self, em): self.currentindex = 0 self.em = em self.em.setmimetype(rclepub_html_mtype) def _selfdoc(self): meta = self.book.opf.metadata title = "" for tt, lang in meta.titles: title += tt + " " author = "" for name, role, fileas in meta.creators: author += name + " " data = "\n\n" if title: data += "" + self.em.htmlescape(title) + "\n" if author: data += '\n' if meta.description: data += '\n' data = data.encode('UTF-8') self.em.setmimetype('text/html') if len(self.contents) == 0: eof = rclexecm.RclExecM.eofnext else: eof = rclexecm.RclExecM.noteof return (True, data, "", eof) def extractone(self, id): """Extract one path-named internal file from the EPUB file""" #self.em.rclog("extractone: [%s]"%(path)) iseof = rclexecm.RclExecM.noteof if self.currentindex >= len(self.contents) -1: iseof = rclexecm.RclExecM.eofnext try: item = self.book.get_item(id) if item is None: raise Exception("Item not found for id %s" % (id,)) doc = self.book.read_item(item) doc = re.sub('''''', '''''', doc) self.em.setmimetype(rclepub_html_mtype) return (True, doc, id, iseof) except Exception, err: self.em.rclog("extractone: failed: [%s]" % err) return (False, "", id, iseof) def openfile(self, params): """Open the EPUB file, create a contents array""" self.currentindex = -1 self.contents = [] try: self.book = epub.open(params["filename:"]) except Exception, err: self.em.rclog("openfile: epub.open failed: [%s]" % err) return False for id, item in self.book.opf.manifest.iteritems(): if item.media_type == 'application/xhtml+xml': self.contents.append(id) return True def getipath(self, params): return self.extractone(params["ipath:"]) def getnext(self, params): if self.currentindex == -1: self.currentindex = 0 return self._selfdoc() if self.currentindex >= len(self.contents): return (False, "", "", rclexecm.RclExecM.eofnow) else: ret= self.extractone(self.contents[self.currentindex]) self.currentindex += 1 return ret proto = rclexecm.RclExecM() extract = rclEPUB(proto) rclexecm.main(proto, extract) recoll-1.21.5/filters/rclgaim0000755000175000017500000000710612602163537015407 0ustar dockesdockes#!/bin/sh # @(#$Id: rclgaim,v 1.4 2007-06-08 13:51:08 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Extract text and other information from gaim logs # #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclgaim" filetype="gaim log" #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds awk iconv awk ' # First line: parse from, to , output html header NR == 1 { if (NF != 9) { printf("Bad format: (NF %d) %s\n", NF, $0) exit 1 } to = $3 from = $8 proto = $9 date = $5 " " $6 #printf("from [%s] to [%s] proto [%s] date [%s]\n", from, to, proto, date) print "" print " " $0 "" print "" # Yes there is no such thing as a "date" meta tag. This probably should # be http-equiv=last-modified or such printf("\n", date) print "" # Remember who the main persons are. authors[from] = "yes" authors[to] = "yes" next } # Message first line. We strip from/to and time when indexing /^\([0-2][0-9]:[0-5][0-9]:[0-5][0-9]\)/ { if (ENVIRON["RECOLL_FILTER_FORPREVIEW"] == "yes") { # Preview: output everything print $0 " " "
    " } else { # Index: output only text, except each new author once #printf("INDEX: NF %d [%s] [%s] [%s] ", NF, $1, $2, $3); from = $2 sub(":$", "", from); if (authors[from] == "") { authors[from] = "yes" printf("%s : ", from); } for (idx = 3; idx <= NR; idx++) { printf("%s ", $idx) } printf("
    \n") } next } # Continuation line: print it { printf("%s
    \n", $0) } END { printf("\n") } ' < "$infile" # exit normally exit 0 recoll-1.21.5/filters/rclexecm.py0000644000175000017500000001603412602163571016215 0ustar dockesdockes#!/usr/bin/env python ########################################### ## Generic recoll multifilter communication code import sys import os class RclExecM: noteof = 0 eofnext = 1 eofnow = 2 noerror = 0 subdocerror = 1 fileerror = 2 def __init__(self): self.myname = os.path.basename(sys.argv[0]) self.mimetype = "" if os.environ.get("RECOLL_FILTER_MAXMEMBERKB"): self.maxmembersize = \ int(os.environ.get("RECOLL_FILTER_MAXMEMBERKB")) else: self.maxmembersize = 50 * 1024 self.maxmembersize = self.maxmembersize * 1024 def rclog(self, s, doexit = 0, exitvalue = 1): print >> sys.stderr, "RCLMFILT:", self.myname, ":", s if doexit: sys.exit(exitvalue) # Note: tried replacing this with a multiple replacer according to # http://stackoverflow.com/a/15221068, which was **10 times** slower def htmlescape(self, txt): # This must stay first (it somehow had managed to skip after # the next line, with rather interesting results) txt = txt.replace("&", "&") txt = txt.replace("<", "<") txt = txt.replace(">", ">") txt = txt.replace('"', """) return txt # Our worker sometimes knows the mime types of the data it sends def setmimetype(self, mt): self.mimetype = mt # Read single parameter from process input: line with param name and size # followed by data. def readparam(self): s = sys.stdin.readline() if s == '': sys.exit(0) # self.rclog(": EOF on input", 1, 0) s = s.rstrip("\n") if s == "": return ("","") l = s.split() if len(l) != 2: self.rclog("bad line: [" + s + "]", 1, 1) paramname = l[0].lower() paramsize = int(l[1]) if paramsize > 0: paramdata = sys.stdin.read(paramsize) if len(paramdata) != paramsize: self.rclog("Bad read: wanted %d, got %d" % (paramsize, len(paramdata)), 1,1) else: paramdata = "" #self.rclog("paramname [%s] paramsize %d value [%s]" % # (paramname, paramsize, paramdata)) return (paramname, paramdata) # Send answer: document, ipath, possible eof. def answer(self, docdata, ipath, iseof = noteof, iserror = noerror): if iserror != RclExecM.fileerror and iseof != RclExecM.eofnow: if isinstance(docdata, unicode): self.rclog("GOT UNICODE for ipath [%s]" % (ipath,)) docdata = docdata.encode("UTF-8") print "Document:", len(docdata) sys.stdout.write(docdata) if len(ipath): print "Ipath:", len(ipath) sys.stdout.write(ipath) if len(self.mimetype): print "Mimetype:", len(self.mimetype) sys.stdout.write(self.mimetype) # If we're at the end of the contents, say so if iseof == RclExecM.eofnow: print "Eofnow: 0" elif iseof == RclExecM.eofnext: print "Eofnext: 0" if iserror == RclExecM.subdocerror: print "Subdocerror: 0" elif iserror == RclExecM.fileerror: print "Fileerror: 0" # End of message print sys.stdout.flush() #self.rclog("done writing data") def processmessage(self, processor, params): # We must have a filename entry (even empty). Else exit if not params.has_key("filename:"): self.rclog("no filename ??", 1, 1) # If we're given a file name, open it. if len(params["filename:"]) != 0: try: if not processor.openfile(params): self.answer("", "", iserror = RclExecM.fileerror) return except Exception, err: self.rclog("processmessage: openfile raised: [%s]" % err) self.answer("", "", iserror = RclExecM.fileerror) return # If we have an ipath, that's what we look for, else ask for next entry ipath = "" eof = True self.mimetype = "" try: if params.has_key("ipath:") and len(params["ipath:"]): ok, data, ipath, eof = processor.getipath(params) else: ok, data, ipath, eof = processor.getnext(params) except Exception, err: self.answer("", "", eof, RclExecM.fileerror) return #self.rclog("processmessage: ok %s eof %s ipath %s"%(ok, eof, ipath)) if ok: self.answer(data, ipath, eof) else: self.answer("", "", eof, RclExecM.subdocerror) # Loop on messages from our master def mainloop(self, processor): while 1: #self.rclog("waiting for command") params = dict() # Read at most 10 parameters (normally 1 or 2), stop at empty line # End of message is signalled by empty paramname for i in range(10): paramname, paramdata = self.readparam() if paramname == "": break params[paramname] = paramdata # Got message, act on it self.processmessage(processor, params) # Common main routine for all python execm filters: either run the # normal protocol engine or a local loop to test without recollindex def main(proto, extract): if len(sys.argv) == 1: proto.mainloop(extract) else: # Got a file name parameter: TESTING without an execm parent # Loop on all entries or get specific ipath params = {'filename:':sys.argv[1]} if not extract.openfile(params): print "Open error" sys.exit(1) ipath = "" if len(sys.argv) == 3: ipath = sys.argv[2] if ipath != "": params['ipath:'] = ipath ok, data, ipath, eof = extract.getipath(params) if ok: print "== Found entry for ipath %s (mimetype [%s]):" % \ (ipath, proto.mimetype) if isinstance(data, unicode): bdata = data.encode("UTF-8") else: bdata = data sys.stdout.write(bdata) print else: print "Got error, eof %d"%eof sys.exit(0) ecnt = 0 while 1: ok, data, ipath, eof = extract.getnext(params) if ok: ecnt = ecnt + 1 print "== Entry %d ipath %s (mimetype [%s]):" % \ (ecnt, ipath, proto.mimetype) if isinstance(data, unicode): bdata = data.encode("UTF-8") else: bdata = data #sys.stdout.write(bdata) print if eof != RclExecM.noteof: break else: print "Not ok, eof %d" % eof break recoll-1.21.5/filters/rclps0000755000175000017500000000656712602163537015126 0ustar dockesdockes#!/bin/sh # @(#$Id: rclps,v 1.10 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Extract text from a postscript file by executing pstotext or ps2ascii. # # The default is to use pstotext which can deal with accents, but in a # partially broken way (it always outputs iso8859-1, when it should use utf. # # OTOH, ps2ascii is much faster, comes with ghostscript, and sometimes work # better (ie: on some openoffice output files). # #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclps" decoder=pstotext #decoder=ps2ascii filetype=postscript #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds $decoder iconv awk # output the result # The strange 'BEGIN' setup is to prevent 'file' from thinking this file # is an awk program $decoder "$infile" | awk 'BEGIN'\ ' { printf("\n") printf("\n") printf("\n

    "); doescape = 1 cont = "" } { $0 = cont $0 cont = "" if ($0 == "\f") { print "

    \n
    \n\f

    " next } else if ($0 ~ /$/) { # Note : soft-hyphen is iso8859 0xad # Break at last whitespace match($0, "[ \t][^ \t]+$") line = substr($0, 0, RSTART) cont = substr($0, RSTART, RLENGTH) $0 = line gsub("", "", cont) } if(doescape > 0) { gsub(/&/, "\\&", $0) gsub(//, "\\>", $0) } print $0 "
    " } END { print "

    " }' | iconv -f iso-8859-1 -t UTF-8 -c -s recoll-1.21.5/filters/rclsvg0000755000175000017500000000737712602163537015303 0ustar dockesdockes#!/bin/sh #================================================================ # Extract text from a Scalable Vector Graphics file #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclsvg" filetype=svg #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds xsltproc xsltproc --novalid --nonet - "$infile" < keywords author keywords description <xsl:value-of select="."/>

    EOF exit 0 recoll-1.21.5/filters/rclsiduxman0000755000175000017500000000463712602163537016330 0ustar dockesdockes#!/bin/sh # @(#$Id: rclsiduxman,v 1.1 2008-06-09 09:12:05 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system # Copyright (C) 2003-2004 Mikio Hirabayashi #================================================================ #================================================================ # Strip the menu part from sidux manual pages to improve search precision #================================================================ # set variables LANG=C ; export LANG LC_ALL=C ; export LC_ALL progname="rclsiduxman" filetype="sidux manual htm" #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the # recfiltcommon file # Utility code common to all shell filters. This could be sourced at run # time, but it's slightly more efficient to include the code in the # filters at build time (with a sed script). # Describe error in a way that can be interpreted by our caller senderror() { echo RECFILTERROR $* # Also alert on stderr just in case echo ":2:$progname::: $*" 1>&2 exit 1 } iscmd() { cmd=$1 case $cmd in */*) if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; *) oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done return 1 ;; esac } checkcmds() { for cmd in $*;do if iscmd $cmd then a=1 else senderror HELPERNOTFOUND $cmd fi done } # show help message if test $# -ne 1 -o "$1" = "--help" then echo "Convert a $filetype file to HTML text for Recoll indexing." echo "Usage: $progname [infile]" exit 1 fi infile="$1" # check the input file existence (may be '-' for stdin) if test "X$infile" != X- -a ! -f "$infile" then senderror INPUTNOSUCHFILE "$infile" fi # protect access to our temp files and directories umask 77 ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE checkcmds sed # Delete everything from